-
Notifications
You must be signed in to change notification settings - Fork 201
feat: support tron #11217
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
Merged
Merged
feat: support tron #11217
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
946199b
feat: support tron
NeOMakinG a1d9dd9
fix: send
NeOMakinG 7bb446a
fix: wrong types
NeOMakinG 14aaa6d
feat: bumpy bump
gomesalexandre 0bcefde
Merge remote-tracking branch 'origin/develop' into tron-support
gomesalexandre 0af9799
feat: bring pin back
gomesalexandre 5c45900
Merge remote-tracking branch 'origin/develop' into tron-support
gomesalexandre 3cb427a
feat: bump hdwallet to 1.62.15 and remove gridplus pin
gomesalexandre a1c307d
feat: pin tronweb version for security
gomesalexandre 9107af8
fix: add Tron case to useTradeNetworkFeeCryptoBaseUnit switch statement
gomesalexandre 039a198
feat: yarn.lock bump
gomesalexandre a4e5682
feat: tackle @coderabbitai comments
gomesalexandre 9f4ec2a
fix: harden Tron utilities against runtime errors
gomesalexandre 573546f
fix: restore TRX asset data lost in develop merge
gomesalexandre 7d67f03
fix: restore 'No double-toasty' comment
gomesalexandre 89a685a
test: add Tron USDC to coingecko adapter tests
gomesalexandre aa73b51
Merge remote-tracking branch 'origin/develop' into tron-support
gomesalexandre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { loadEnv } from 'vite' | ||
|
|
||
| import type { Csp } from '../../types' | ||
|
|
||
| const mode = process.env.MODE ?? process.env.NODE_ENV ?? 'development' | ||
| const env = loadEnv(mode, process.cwd(), '') | ||
|
|
||
| export const csp: Csp = { | ||
| 'connect-src': [env.VITE_TRON_NODE_URL], | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/caip/src/adapters/coingecko/generated/tron_0x2b6653dc/adapter.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"tron:0x2b6653dc/slip44:195":"tron","tron:0x2b6653dc/trc20:TQgcDvhr6c1EUDnFxiAmuYpBewT3uJSnHF":"4tb-coin","tron:0x2b6653dc/trc20:TLeVfrdym8RoJreJ23dAGyfJDygRtiWKBZ":"a7a5","tron:0x2b6653dc/trc20:TFczxzPhnThNSqr5by8tvxsdCFRRz6cPNq":"apenft","tron:0x2b6653dc/trc20:TD74cpU4JfMKhuWVs6uKYXKUy8nvC6EQ95":"astrazion","tron:0x2b6653dc/trc20:TF7ixydn7nfCgj9wQj3fRdKRAvsZ8egHcx":"b1coin","tron:0x2b6653dc/trc20:TAoA331n3iKDkR62kAZ4H2n3vNL7y3d8x9":"bemchain","tron:0x2b6653dc/trc20:TR95WcjR78Y4puyv8BkbFuxaf4WcvmmPpd":"biaoqing-tron","tron:0x2b6653dc/trc20:TN3W4H6rK2ce4vX9YnFQHwKENnHjoxb3m9":"bitcoin-trc20","tron:0x2b6653dc/trc20:TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4":"bittorrent","tron:0x2b6653dc/trc20:1002000":"bittorrent-old","tron:0x2b6653dc/trc20:TXBcx59eDVndV5upFQnTR2xdvqFd5reXET":"black-phoenix","tron:0x2b6653dc/trc20:TXtu3Ke9mJQtPtAQxmoTbzu3N4Qx4XP9Y2":"blake","tron:0x2b6653dc/trc20:THkzgVF6wE9wUacsetbokJUophZtaLHRLJ":"brihlo","tron:0x2b6653dc/trc20:TKmrM2UUNcTsC5UjiujDHwzRAmzzTJDcYd":"caprisun","tron:0x2b6653dc/trc20:TL7RJPC7zqpj9B2F4RRc4mk4YpzuVrd4Ar":"cashbackpro","tron:0x2b6653dc/trc20:TCfCGjekyqmdYt1yxfUM5v5SDtaY6tuWik":"cnh-tether","tron:0x2b6653dc/trc20:TRv9ipj4kKAZqQggQ7ceJpe5ERD1ZShpgs":"coconut-chicken","tron:0x2b6653dc/trc20:TKg1nGjtWYDcf1HNTSNQtwGwNAuTxd1X2A":"core","tron:0x2b6653dc/trc20:TL5BvThAMg9QBCvbgXu7HwHh8HqGdAq4DD":"cornatto","tron:0x2b6653dc/trc20:TVzP8uYrFeynuZXhsHjgCxBd8CxPeP511e":"croin","tron:0x2b6653dc/trc20:TY2Ge1YYphoAatwaBxa1zYfJVa8CqNyL6B":"crosswallet","tron:0x2b6653dc/trc20:TWP6GgtstiuYbpygSFcZLzJQrj9eDVQcq2":"crypto-whale","tron:0x2b6653dc/trc20:TVXmroHbJsJ6rVm3wGn2G9723yz3Kbqp9x":"cyber-dog","tron:0x2b6653dc/trc20:TNzctnHygQxx2shHScTJKQBU9U4gVWctfk":"dct","tron:0x2b6653dc/trc20:TRwptGFfX3fuffAMbWDDLJZAZFmP6bGfqL":"degree-crypto-token","tron:0x2b6653dc/trc20:TV5yB8f4AdoAfVVUdkytyZnX5e7SeGAZr2":"dragon-sun","tron:0x2b6653dc/trc20:TUFonyWZ4Tza5MzgDj6g2u5rfdGoRVYG7g":"fofar-2","tron:0x2b6653dc/trc20:TQWQTZ7LzyttfnHQyfLUkKUs8eZZepgXiQ":"ftx-users-debt","tron:0x2b6653dc/trc20:TPN3AXU6GH9abi7xKchewq4jTuSFLGjq5i":"global-commercial-business","tron:0x2b6653dc/trc20:TQX4NJaSspcjXWUDHMgjcejRZ7k1VojNLz":"guarantee","tron:0x2b6653dc/trc20:TEBdrpWiPVSU3cmR96wCVYgsxb9fwwJSZi":"hammy","tron:0x2b6653dc/trc20:TUPM7K8REVzD2UdV4R5fe5M8XbnR2DdoJ6":"htx-dao","tron:0x2b6653dc/trc20:TSig7sWzEL2K83mkJMQtbyPpiVSbR6pZnb":"invest-zone","tron:0x2b6653dc/trc20:TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9":"just","tron:0x2b6653dc/trc20:TVHH59uHVpHzLDMFFpUgCx2dNAQqCzPhcR":"justmoney-2","tron:0x2b6653dc/trc20:TMwFHYXLJaRUPeW6421aqXL4ZEzPRFGkGT":"just-stablecoin","tron:0x2b6653dc/trc20:THvqUNvSRvV1DRJ9wuugBVKeq3rFxpxJej":"knight","tron:0x2b6653dc/trc20:THS2ZuQowumzFPD1z3wchB1PijWMggUgmA":"kyrrex","tron:0x2b6653dc/trc20:TC8QDMS2nLdWMT7iJwvtG5YH6XiGEJT6om":"liberland-lld","tron:0x2b6653dc/trc20:TW8617uDAUBe3mGeGZo5mkaV8RhN6YfozN":"liora","tron:0x2b6653dc/trc20:TDBNKiYQ8yfJtT5MDP3byu7f1npJuG2DBN":"lumi-credits","tron:0x2b6653dc/trc20:TBoupmmqSwULKpa3jQJZuWNPDpbzfT2Grh":"madhouse","tron:0x2b6653dc/trc20:TR1iXU8Sp7oUYHXWiddsBervJzSbdibMFZ":"meow-2","tron:0x2b6653dc/trc20:TEfg1LnM3yApCjAgax35wDg6SRpmZFuQS3":"mew-woof-dao","tron:0x2b6653dc/trc20:TE2T2vLnEQT1XW647EAQAHWqd6NZL1hweR":"muncat","tron:0x2b6653dc/trc20:TNzfB1nvRPusCn5UhQLxUbZaX7DFuWkxR4":"mynth","tron:0x2b6653dc/trc20:TCGPc27oyS2x7S5pex7ssyZxZ2edPWonk2":"neiro-on-tron","tron:0x2b6653dc/trc20:TBBThLgHtUhGuT9DJ1rrzXDQ6j2XSP2Dq5":"nforbanana","tron:0x2b6653dc/trc20:TDk91SWz2GvwfZwMTGX21d4ngUUH8YZZAv":"osk","tron:0x2b6653dc/trc20:TMacq4TDUw5q8NFBwmbY4RLXvzvG5JTkvi":"pepeontron","tron:0x2b6653dc/trc20:TXdN5fvFjCdqjWJRvWmBzSRLBN7JLYmmrs":"pht-stablecoin","tron:0x2b6653dc/trc20:TAbkLGngV1k8bNb5hnqW7oX46FG4Dbs5e2":"pino-trx","tron:0x2b6653dc/trc20:TYV5eu6UgSPtxVLkPD9YfxmUEcXhum35yS":"prcy-coin","tron:0x2b6653dc/trc20:TWcDDx1Q6QEoBrJi9qehtZnD4vcXXuVLer":"proof-of-liquidity","tron:0x2b6653dc/trc20:TFf1aBoNFqxN32V2NQdvNrXVyYCy9qY8p1":"prospective","tron:0x2b6653dc/trc20:TX5eXdf8458bZ77fk8xdvUgiQmC3L93iv7":"puss","tron:0x2b6653dc/trc20:TGBfBt6Y2Dm3RHdNpZAdqywBsvfdysf834":"reallink","tron:0x2b6653dc/trc20:TD4bVgcwj3FRbmAo283HxNvqZvY7T3uD8k":"revain","tron:0x2b6653dc/trc20:TJvwMR3RjHc8jA9QwwjWGANrR3Y4scLSZm":"rock-4","tron:0x2b6653dc/trc20:TZ3c6bmoqVeq9YEEBMSNrBLq2rHJ1vR8Nc":"rock-dao","tron:0x2b6653dc/trc20:TQRkaeX4AkdWZBQLivcnwFwjZd7dKehUBH":"rubx","tron:0x2b6653dc/trc20:TYq22mVD6aQdvzYhNxVYtjmRBCQmmcp2EK":"satozhi","tron:0x2b6653dc/trc20:TFzDQj414wFKhnc2k7DsbrP1g4gSNpJTTN":"seagle","tron:0x2b6653dc/trc20:TBLQs7LqUYAgzYirNtaiX3ixnCKnhrVVCe":"socialswap-token","tron:0x2b6653dc/trc20:TU3kjFuhtEo42tsCBtfYUAZxoqQ4yuSLQ5":"staked-trx","tron:0x2b6653dc/trc20:TThzxNRLrW2Brp9DcTQU8i4Wd9udCWEdZ3":"staked-usdt","tron:0x2b6653dc/trc20:TVnuZu3GF8CLKn4D6nMWNwkHhnUwzAqn8W":"striker","tron:0x2b6653dc/trc20:TV5MV8wjCY8xbJ6NfQSArP7xZRHHTw48No":"stronghands-finance","tron:0x2b6653dc/trc20:TQKQRxEDH2vhtxGB4obGeHwu7AqGDryU3C":"sugar-boy","tron:0x2b6653dc/trc20:TAwAg9wtQzTMFsijnSFotJrpxhMm3AqW1d":"suncat","tron:0x2b6653dc/trc20:TXL6rJbvmjD46zeN1JssfgxvSo99qC8MRT":"sundog","tron:0x2b6653dc/trc20:TBk4dXtfo6j3rxPc1VJDhA7BsVi2XHK1bi":"sunlion","tron:0x2b6653dc/trc20:THMpAfhJwJic2V9SbReQhwXLPuRGSLsj5q":"sunned","tron:0x2b6653dc/trc20:TAzpJHxxgJd8f5AKjzndEndH3S9pzNUM5W":"sunpepe","tron:0x2b6653dc/trc20:TX4xgxs6ctAz8RFbpk4rPzBrULWHE7Siiq":"sunpig","tron:0x2b6653dc/trc20:TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S":"sun-token","tron:0x2b6653dc/trc20:TP3prcvQknVthrVnn281cKST56eWiLgJJM":"sunwukong","tron:0x2b6653dc/trc20:TKdpGm5wKPLz3stemW8gkGvAdhztJcDjcW":"swapz-app","tron:0x2b6653dc/trc20:TDxL4V5LE6TYSFXSCWJkkSsCYbgmrDnTer":"szn","tron:0x2b6653dc/trc20:TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t":"tether","tron:0x2b6653dc/trc20:TD6xZDStjpd5FjgpNGihSYnm46nQUA6Dsj":"topcat-2","tron:0x2b6653dc/trc20:TMwk13CthNktLiNpo8WDRuUMpyrzZTVZYH":"to-the-sun","tron:0x2b6653dc/trc20:TQH4JFjzGnWswNeaCxFJi3pSqmsvTXULY8":"tourism-industry-metavers","tron:0x2b6653dc/trc20:THVR1Biz4ZYYxewha6Wmi47HeB5opj1dv2":"trepe","tron:0x2b6653dc/trc20:TAt4ufXFaHZAEV44ev7onThjTnF61SEaEM":"tron-bull","tron:0x2b6653dc/trc20:TPeoxx1VhUMnAUyjwWfximDYFDQaxNQQ45":"tron-bull-coin","tron:0x2b6653dc/trc20:TVgHqeP41s3qMDH3oKBsScEUzvyXw6bKAm":"tron-cat","tron:0x2b6653dc/trc20:TVwzGbGPoQWXcN9CQ1q2REiMcMtV78MKPg":"tronches","tron:0x2b6653dc/trc20:TPP9Pq2LQwtrwfyUDLSyFsKJwJjFouf45B":"tron-mascot","tron:0x2b6653dc/trc20:THiSwGN4S9MFodhUMaqTjhnhc95rLdEKFi":"tronstrategy","tron:0x2b6653dc/trc20:TUpMhErZL2fhh4sVNULAbNKLokS4GjC1F4":"true-usd","tron:0x2b6653dc/trc20:TCMwzYUUCxLkTNpXjkYSBgXgqXwt7KJ82y":"ttcoin","tron:0x2b6653dc/trc20:TTFreuJ4pYDaCeEMEtiR1GQDwPPrS4jKFk":"twiskers","tron:0x2b6653dc/trc20:TGo8MJaSxvVVicZ1ixC7n3ibJMt9NJvxuU":"uplift","tron:0x2b6653dc/trc20:TYX2iy3i3793YgKU5vqKxDnLpiBMSa5EdV":"upstabletoken","tron:0x2b6653dc/trc20:TPFqcBAaaUMCSVRCqPaQ9QnzKhmuoLR6Rc":"usd1-wlfi","tron:0x2b6653dc/trc20:TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8":"usd-coin","tron:0x2b6653dc/trc20:TXDk8mbtRbXeYuMNS83CfKPaYYT8XWv9Hz":"usdd","tron:0x2b6653dc/trc20:TE9f8MGouEdh2jPqDaUgUVaJYLKkV6vhv6":"ushark","tron:0x2b6653dc/trc20:TP7r1pDoS1snMjEJE1kE17GRt3Df4mYuZz":"vikita","tron:0x2b6653dc/trc20:THb4CqiFdwNHsWsQCs4JhzwjMWys4aqCbF":"weth","tron:0x2b6653dc/trc20:TQb8rm1BDjArsBh78yw8enstQ3E85XFc9u":"wfdp","tron:0x2b6653dc/trc20:TFptbWaARrWTX5Yvy3gNG5Lm8BmhPx82Bt":"whitebit","tron:0x2b6653dc/trc20:TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7":"wink","tron:0x2b6653dc/trc20:TKaPzvnXD9Tb2E5XHb54vwDCyHz2LbKAnc":"won-chang","tron:0x2b6653dc/trc20:TYhWwKpw43ENFWBTGpzLHn3882f2au7SMi":"wrapped-bitcoin","tron:0x2b6653dc/trc20:TKfjV9RNKJJCqPvBtK8L7Knykh7DNWvnYt":"wrapped-btt-tron","tron:0x2b6653dc/trc20:TGkxzkDKyMeq2T7edKnyjZoFypyzjkkssq":"wrapped-staked-usdt","tron:0x2b6653dc/trc20:TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR":"wrapped-tron","tron:0x2b6653dc/trc20:TXb7CvPFwxW6vShGWtXTVZU353Efig4H6o":"wrapped-xoc","tron:0x2b6653dc/trc20:TQzUXP5eXHwrRMou9KYQQq7wEmu8KQF7mX":"xiao-lang-gou","tron:0x2b6653dc/trc20:TBAbgFHHpuLERRcUFvjnojtBjkBr39NFB7":"yalla-sun","tron:0x2b6653dc/trc20:TAP7qf8Ao26ZAKYS5E6SGozUNoSLvBHsGa":"yfx","tron:0x2b6653dc/trc20:TPUZseUsV89tM157aLfkuKYEaRKzBirmRb":"zapo","tron:0x2b6653dc/trc20:TUP3g7kbaESRFRhULeA19USSrcVBEpWLVY":"zedxion"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.