Commit graph

102 commits

Author SHA1 Message Date
Daniel Liu
2611f1dd9a
fix(all): fix typo foudation (#2063) 2026-02-28 18:00:55 +04:00
Daniel Liu
ad0eea0f07
refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046)
The upstream libray has removed the assembly-based implementation of
keccak. We need to maintain our own library to avoid a peformance
regression.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: lightclient <lightclient@protonmail.com>
2026-02-28 17:23:57 +04:00
wit liu
267222d4a5
all: fix goimports warning (#1903) 2026-01-04 17:22:26 +05:30
wit liu
b3d12e4fda
common: remove unused variables (#1875) 2025-12-19 10:39:23 +04:00
wit liu
66e96b507c
all: use 0x-prefix for Address type in log (#1830) 2025-12-07 15:36:36 +05:30
Daniel Liu
07e2609c25
common: improve variable names for ExtractAddressFromBytes(), close XFN-27 (#1726) 2025-11-15 16:48:01 +05:30
Daniel Liu
4aafff2826
common: improve function ExtractAddressFromBytes, close XFN-15 (#1658) 2025-11-03 12:56:14 +05:30
Daniel Liu
31dcbc7645
eth/tracers: use slices package for sorting #27490 (#1337) 2025-09-09 15:12:22 +08:00
Daniel Liu
d2859ecb9c
common, common/hexutil: use reflect.TypeFor #32321 (#1434)
Co-authored-by: cui <cuiweixie@gmail.com>
2025-09-06 17:13:56 +08:00
wgr523
e13265a7d7
record total minted into smart contract (#1026)
* feat: record total minted into smart contract

* feat: GetCurrentTotalMinted API
2025-06-16 02:31:33 -07:00
wanwiset25
52f03dd9dc add new api XDPoS_getRewardByAccount 2025-04-24 13:42:35 +04:00
JukLee0ira
51dac59e92 common: change type of variables for constants 2025-02-17 11:38:16 +08:00
Halimao
dff8e50085 common: using ParseUint instead of ParseInt (#30020)
Since Decimal is defined as unsiged `uint64`, we should use `strconv.ParseUint` instead of `strconv.ParseInt` during unmarshalling.

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-12-28 09:06:31 +08:00
Daniel Liu
441f8ed70c common: add variable MaxHash (#28306) 2024-12-28 09:06:31 +08:00
Felföldi Zsolt
f74cccd1cb beacon/types: add beacon chain data types (#27292)
* beacon/types: add beacon chain data types

* beacon/merkle: added comments

* go.mod: cleanups

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-12-28 09:06:31 +08:00
Daniel Liu
59b14ed2cb internal/ethapi: make NewAccount return EIP-55 format (#26973) 2024-12-28 09:06:31 +08:00
Mark Tyneway
5059114992 common/types: add Address.Big (#26132)
Many of the other types have a function to convert the type to a big.Int,
but Address was missing this function.

It is useful to be able to turn an Address into a big.Int when doing
EVM-like computations natively in Go. Sometimes a Solidity address
type is casted to a uint256 and having a Big method on the Address
type makes this easy.
2024-12-28 09:06:31 +08:00
Alexander Yastrebov
4db72a0548 common: fixes format verb (#23495) 2024-12-28 09:06:30 +08:00
Daniel Liu
c2db0e42d7 common: improve printing of Hash and Address (#21834) 2024-12-28 09:06:30 +08:00
Daniel Liu
7f63a690ee common: unify hex prefix check code (#19937) 2024-12-28 09:06:30 +08:00
Daniel Liu
cd1ff5d322 common: remove function Big() for type Address (#19210) 2024-12-28 09:06:30 +08:00
Daniel Liu
89c51c5e69 common: improve documentation comments (#16701) 2024-12-28 09:06:30 +08:00
Daniel Liu
92fc843683 crypto: switch over to upstream sha3 package (#18390) 2024-12-09 17:48:59 +08:00
Daniel Liu
aedfea681b all: make logs a bit easier on the eye to digest (#22665) 2024-11-15 10:02:41 +08:00
Daniel Liu
d3eaeb9381 eth/gasprice: use slices package for sorting (#27490 #27909 #29314) 2024-11-13 09:30:55 +08:00
Daniel Liu
5b0b5b52c7 common: fix staticcheck warning S1001: replace loop with copy 2024-10-30 21:05:15 +08:00
JukLee0ira
0aab4ced98 common: add binary variables for system contract 2024-06-06 19:33:59 +08:00
Daniel Liu
4a59bdf15a add function IsZero for type Address 2023-10-24 12:00:08 +08:00
Daniel Liu
8339e133ee add function IsZero for type Hash 2023-10-24 12:00:08 +08:00
Liam Lai
5623ce8de0 merge from master 2023-07-30 16:50:45 +10:00
Daniel Liu
6a768b04f9
add enable-0x-prefix flag (#194) 2022-12-09 19:15:13 +08:00
Liam Lai
d0cde5c51e fix new masternode bug 2022-04-14 02:07:26 -06:00
olumuyiwadad
75b2f3ca9c
Merge pull request #2 from XinFinOrg/apothem
Handle '0x' or 'xdc' prefix
2021-09-27 12:30:57 +05:30
Anil Chinchawale
e1daa99b52
Handle '0x' or 'xdc' prefix 2021-09-23 17:54:08 +05:30
olumuyiwadad
cf18ceba33 Merge branch 'forking-incident-fix' of https://github.com/hash-laboratories-au/XDPoSChain into hash-laboratories-au-forking-incident-fix 2021-09-23 17:01:19 +05:30
olumuyiwadad
b5abbfed79 new EVM Upgrade
- Solidity Upgraded up to v0.8.0
-  Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
8daf35ff1c fix error in address prefix hasXDCPrefix 2021-09-17 18:53:18 +05:30
olumuyiwadad
571c41f891 FIx Bad block error. 2021-09-17 17:59:06 +05:30
Jianrong
944de1130a add StringToAddress method 2021-08-29 17:18:37 +10:00
Jianrong
0fdab2027c add linting as the first CI task 2021-08-07 14:27:08 +10:00
dev-vadim
dbe8c9d984 upgrade XDC.Network with v1.8.27. 2020-12-23 16:32:06 +05:30
diglspacedavid
474cc37036 upgrade codebase with ethereum:v1.8.13 2020-11-23 13:40:30 +05:30
ronakgothi
1d62749437 updated foundation address 2019-05-29 20:33:23 +05:30
AnilChinchawale
9fb068a25a Change prefix to xdc
Add prefix to Str method of Address.
Make jsre works.
2019-03-16 16:12:33 +05:30
AnilChinchawale
a638d2adc0 Minor error fixed. 2019-03-16 16:02:10 +05:30
AnilChinchawale
1ce4eba0d6 Fixed issue | File updated 2019-01-06 08:32:23 +05:30
Dave McGregor
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
MestryOmkar
590bcb448e resolve conflicts 2018-12-04 10:09:52 +05:30
MestryOmkar
dfbac0dcf2 updated version.go 2018-11-24 16:52:55 +05:30
parmarrushabh
1596ba2489 Fixed genesis for add team MSW contract. 2018-11-14 18:07:45 +05:30