Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support ERC tokens #1587

Merged
merged 52 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
98e1f9b
Added ERC20Cache and AccountERC20Cache (experimental).
ericleponner Nov 12, 2024
abb587d
Initial support for ERC Tokens section in AccountDetails.
svienot Nov 14, 2024
a806afc
Added AccountERC20Cache.forgetContract() (to be used later).
ericleponner Nov 14, 2024
9c50f98
Protopye of ERC20Table.refreshBalance().
ericleponner Nov 14, 2024
f846409
Fixed AccountERC20Cache.forgetContract().
ericleponner Nov 14, 2024
9d01381
Change title of "Tokens" section to "HTS Tokens".
svienot Nov 19, 2024
c2c3e25
Put "HTS Tokens" section above "ERC Tokens".
svienot Nov 19, 2024
bf6dba3
Add ERC20Cache.lookupContract() (for further use).
svienot Nov 20, 2024
e012082
Better balance contract properties between left and right when enable…
svienot Nov 20, 2024
d9b4152
Add a 'VERIFIED' label at the top of the ContractDetails when relevant.
svienot Nov 20, 2024
8070cfa
Add 'ERC Token' section and 'ERC20' label to the ContractDetails when…
svienot Nov 20, 2024
b80e824
HederaSchemas.ts -> MirrorNodeSchemas.ts
svienot Nov 20, 2024
3e87c24
ERC20Cache.load() catches 404.
svienot Nov 20, 2024
927bd4a
Adjust ContractDetails unit tests.
svienot Nov 20, 2024
56f4dce
TokensSection is shown only if there is any token/nft/airdrop to disp…
svienot Nov 20, 2024
d58b155
ERCTokensSection is shown only if there is any ERC to display.
svienot Nov 20, 2024
dd84f02
Adjust maxSupply and totalSupply of the ERC20 according to decimals.
svienot Nov 20, 2024
7df9449
Display only standard ERC20 parameters in ContractDetails.
svienot Nov 21, 2024
486df74
Added erc20IndexURL and erc721IndexURL to NetworkConfig (to be used l…
ericleponner Nov 22, 2024
e0eddb3
ContractDetails vue now uses ERC20InfoCache.
ericleponner Nov 22, 2024
d4cf34f
Fixed ERC20InfoCache.call()
ericleponner Nov 22, 2024
6341a2e
Renamed ERC20Token as ERC20Contract.
ericleponner Nov 25, 2024
bc0fdc9
Moved ERC20InfoCache.loadXXX() to ERCUtils.
ericleponner Nov 25, 2024
bad9372
Fixed regression in ERC20Table caused by renaming.
ericleponner Nov 25, 2024
f61b8ba
Moved AccountERC20Cache.getBalance() to ERCUtils.loadBalance().
ericleponner Nov 25, 2024
9c3c9ee
Added ERC721 caches (to be used later).
ericleponner Nov 25, 2024
6ab4543
Added ERCTokensSection now displays ERC721Table view.
ericleponner Nov 25, 2024
7c8a109
Removed prototypal code from ERC721InfoCache.
ericleponner Nov 25, 2024
281f8ec
Applied lint recommendations.
ericleponner Nov 25, 2024
f5dab4e
ERCTokensSection.showSection now takes ERC721 tokens into account.
ericleponner Nov 27, 2024
fd38ad9
ContractDetails vue now displays ERC721 token.
ericleponner Nov 27, 2024
9afc41c
Added debug trace in ERCUtils.call().
ericleponner Nov 28, 2024
043205f
ERC721InfoCache now auto-discovers ERC721 contract.
ericleponner Dec 5, 2024
6a86963
Add (null) erc20IndexURL and erc721IndexURL parameters in networks-co…
svienot Dec 16, 2024
8015787
Add ContractAnalyzer.isVerified and remove unneeded computed in Contr…
svienot Dec 16, 2024
50f490a
Display contract name (from verification or ERC token interface) and …
svienot Dec 16, 2024
c082b28
Fix typo in ContractResultsSection.
svienot Dec 20, 2024
eb814af
Introduce ContractERCSection component.
svienot Dec 20, 2024
9f4c9c3
Disable ERCTokensSection in AccountDetails for now.
svienot Dec 20, 2024
0d0cdff
Remove debug trace
svienot Dec 20, 2024
22cb4dd
First step of Searching for ERCs.
svienot Dec 20, 2024
252df65
Fix typo in TokensByPopularity.
svienot Dec 20, 2024
e648961
First complete prototype of ERC search.
svienot Dec 22, 2024
1463979
Add configuration for ERC tokens index URLs.
svienot Jan 6, 2025
8baa18f
Get rid of ERCTokensSection.
svienot Jan 7, 2025
93c5211
Fix lint errors and warnings.
svienot Jan 7, 2025
ffedc4a
Add popular-tokens.json.
svienot Jan 7, 2025
f68a0bc
Get rid of ERC20Table and ERC721Table.
svienot Jan 8, 2025
8eae0fd
Get rid of unused code.
svienot Jan 8, 2025
d20403b
Always show TokensSection when displaying My Account.
svienot Jan 8, 2025
f3cd639
Get rid of AccountERC20Cache and AccountERC721Cache.
svienot Jan 8, 2025
c079f3e
Get rid of unused import.
svienot Jan 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,226 changes: 4,226 additions & 0 deletions public/mainnet/erc-20.json

Large diffs are not rendered by default.

842 changes: 842 additions & 0 deletions public/mainnet/erc-721.json

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion public/networks-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"enableStaking": true,
"enableExpiry": true,
"enableMarket": true,
"popularTokenIndexURL": null,
"popularTokenIndexURL": "popular-tokens.json",
"erc20IndexURL": "mainnet/erc-20.json",
"erc721IndexURL": "mainnet/erc-721.json",
"sourcifySetup": {
"activate": true,
"repoURL": "https://repository.local/contracts/",
Expand All @@ -25,6 +27,8 @@
"enableStaking": true,
"enableExpiry": false,
"enableMarket": false,
"erc20IndexURL": "testnet/erc-20.json",
"erc721IndexURL": "testnet/erc-721.json",
"sourcifySetup": {
"activate": true,
"repoURL": "https://repository.local/contracts/",
Expand All @@ -41,6 +45,8 @@
"enableStaking": false,
"enableExpiry": false,
"enableMarket": false,
"erc20IndexURL": null,
"erc721IndexURL": "previewnet/erc-721.json",
"sourcifySetup": {
"activate": true,
"repoURL": "https://repository.local/contracts/",
Expand Down
Loading