viem 2.53.1 → 2.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/_cjs/actions/index.js +3 -2
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/token/approve.js +62 -0
- package/_cjs/actions/token/approve.js.map +1 -0
- package/_cjs/actions/token/approveSync.js +25 -0
- package/_cjs/actions/token/approveSync.js.map +1 -0
- package/_cjs/actions/token/getAllowance.js +32 -0
- package/_cjs/actions/token/getAllowance.js.map +1 -0
- package/_cjs/actions/token/getBalance.js +41 -0
- package/_cjs/actions/token/getBalance.js.map +1 -0
- package/_cjs/actions/token/getMetadata.js +40 -0
- package/_cjs/actions/token/getMetadata.js.map +1 -0
- package/_cjs/actions/token/getTotalSupply.js +32 -0
- package/_cjs/actions/token/getTotalSupply.js.map +1 -0
- package/_cjs/actions/token/index.js +20 -0
- package/_cjs/actions/token/index.js.map +1 -0
- package/_cjs/actions/token/internal.js +125 -0
- package/_cjs/actions/token/internal.js.map +1 -0
- package/_cjs/actions/token/transfer.js +70 -0
- package/_cjs/actions/token/transfer.js.map +1 -0
- package/_cjs/actions/token/transferSync.js +25 -0
- package/_cjs/actions/token/transferSync.js.map +1 -0
- package/_cjs/chains/definitions/battlechain.js +31 -0
- package/_cjs/chains/definitions/battlechain.js.map +1 -0
- package/_cjs/chains/definitions/marooTestnet.js +30 -0
- package/_cjs/chains/definitions/marooTestnet.js.map +1 -0
- package/_cjs/chains/index.js +18 -14
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClient.js +39 -1
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/createPublicClient.js.map +1 -1
- package/_cjs/clients/createWalletClient.js.map +1 -1
- package/_cjs/clients/decorators/public.js +11 -0
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/decorators/wallet.js +8 -0
- package/_cjs/clients/decorators/wallet.js.map +1 -1
- package/_cjs/clients/transports/http.js +2 -1
- package/_cjs/clients/transports/http.js.map +1 -1
- package/_cjs/errors/encoding.js +9 -1
- package/_cjs/errors/encoding.js.map +1 -1
- package/_cjs/errors/request.js +24 -1
- package/_cjs/errors/request.js.map +1 -1
- package/_cjs/errors/transaction.js +9 -1
- package/_cjs/errors/transaction.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +9 -6
- package/_cjs/index.js.map +1 -1
- package/_cjs/tempo/Client.js +3 -1
- package/_cjs/tempo/Client.js.map +1 -1
- package/_cjs/tempo/Decorator.js +234 -215
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/actions/token.js +210 -112
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tempo/internal/utils.js +108 -0
- package/_cjs/tempo/internal/utils.js.map +1 -1
- package/_cjs/tokens/defineToken.js +21 -0
- package/_cjs/tokens/defineToken.js.map +1 -0
- package/_cjs/tokens/definitions/alphausd.js +14 -0
- package/_cjs/tokens/definitions/alphausd.js.map +1 -0
- package/_cjs/tokens/definitions/betausd.js +14 -0
- package/_cjs/tokens/definitions/betausd.js.map +1 -0
- package/_cjs/tokens/definitions/brla.js +14 -0
- package/_cjs/tokens/definitions/brla.js.map +1 -0
- package/_cjs/tokens/definitions/cbbtc.js +14 -0
- package/_cjs/tokens/definitions/cbbtc.js.map +1 -0
- package/_cjs/tokens/definitions/chfau.js +14 -0
- package/_cjs/tokens/definitions/chfau.js.map +1 -0
- package/_cjs/tokens/definitions/cirbtc.js +16 -0
- package/_cjs/tokens/definitions/cirbtc.js.map +1 -0
- package/_cjs/tokens/definitions/cusd.js +14 -0
- package/_cjs/tokens/definitions/cusd.js.map +1 -0
- package/_cjs/tokens/definitions/dlusd.js +14 -0
- package/_cjs/tokens/definitions/dlusd.js.map +1 -0
- package/_cjs/tokens/definitions/eurau.js +14 -0
- package/_cjs/tokens/definitions/eurau.js.map +1 -0
- package/_cjs/tokens/definitions/eurc.js +24 -0
- package/_cjs/tokens/definitions/eurc.js.map +1 -0
- package/_cjs/tokens/definitions/eurce.js +15 -0
- package/_cjs/tokens/definitions/eurce.js.map +1 -0
- package/_cjs/tokens/definitions/frxusd.js +14 -0
- package/_cjs/tokens/definitions/frxusd.js.map +1 -0
- package/_cjs/tokens/definitions/gbpa.js +14 -0
- package/_cjs/tokens/definitions/gbpa.js.map +1 -0
- package/_cjs/tokens/definitions/gusd.js +14 -0
- package/_cjs/tokens/definitions/gusd.js.map +1 -0
- package/_cjs/tokens/definitions/iusd.js +14 -0
- package/_cjs/tokens/definitions/iusd.js.map +1 -0
- package/_cjs/tokens/definitions/pathusd.js +15 -0
- package/_cjs/tokens/definitions/pathusd.js.map +1 -0
- package/_cjs/tokens/definitions/reusd.js +14 -0
- package/_cjs/tokens/definitions/reusd.js.map +1 -0
- package/_cjs/tokens/definitions/rusd.js +14 -0
- package/_cjs/tokens/definitions/rusd.js.map +1 -0
- package/_cjs/tokens/definitions/sbc.js +14 -0
- package/_cjs/tokens/definitions/sbc.js.map +1 -0
- package/_cjs/tokens/definitions/siusd.js +14 -0
- package/_cjs/tokens/definitions/siusd.js.map +1 -0
- package/_cjs/tokens/definitions/stcusd.js +14 -0
- package/_cjs/tokens/definitions/stcusd.js.map +1 -0
- package/_cjs/tokens/definitions/susde.js +14 -0
- package/_cjs/tokens/definitions/susde.js.map +1 -0
- package/_cjs/tokens/definitions/syrupusdc.js +14 -0
- package/_cjs/tokens/definitions/syrupusdc.js.map +1 -0
- package/_cjs/tokens/definitions/thetausd.js +14 -0
- package/_cjs/tokens/definitions/thetausd.js.map +1 -0
- package/_cjs/tokens/definitions/usd1.js +14 -0
- package/_cjs/tokens/definitions/usd1.js.map +1 -0
- package/_cjs/tokens/definitions/usdb.js +14 -0
- package/_cjs/tokens/definitions/usdb.js.map +1 -0
- package/_cjs/tokens/definitions/usdc.js +59 -0
- package/_cjs/tokens/definitions/usdc.js.map +1 -0
- package/_cjs/tokens/definitions/usdce.js +15 -0
- package/_cjs/tokens/definitions/usdce.js.map +1 -0
- package/_cjs/tokens/definitions/usde.js +14 -0
- package/_cjs/tokens/definitions/usde.js.map +1 -0
- package/_cjs/tokens/definitions/usdt0.js +14 -0
- package/_cjs/tokens/definitions/usdt0.js.map +1 -0
- package/_cjs/tokens/definitions/usyc.js +18 -0
- package/_cjs/tokens/definitions/usyc.js.map +1 -0
- package/_cjs/tokens/definitions/wsrusd.js +14 -0
- package/_cjs/tokens/definitions/wsrusd.js.map +1 -0
- package/_cjs/tokens/index.js +72 -0
- package/_cjs/tokens/index.js.map +1 -0
- package/_cjs/tokens/sets.js +102 -0
- package/_cjs/tokens/sets.js.map +1 -0
- package/_cjs/utils/encoding/fromRlp.js +7 -4
- package/_cjs/utils/encoding/fromRlp.js.map +1 -1
- package/_cjs/utils/rpc/http.js +58 -3
- package/_cjs/utils/rpc/http.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js +4 -1
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_esm/actions/index.js +1 -0
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/token/approve.js +123 -0
- package/_esm/actions/token/approve.js.map +1 -0
- package/_esm/actions/token/approveSync.js +50 -0
- package/_esm/actions/token/approveSync.js.map +1 -0
- package/_esm/actions/token/getAllowance.js +62 -0
- package/_esm/actions/token/getAllowance.js.map +1 -0
- package/_esm/actions/token/getBalance.js +70 -0
- package/_esm/actions/token/getBalance.js.map +1 -0
- package/_esm/actions/token/getMetadata.js +60 -0
- package/_esm/actions/token/getMetadata.js.map +1 -0
- package/_esm/actions/token/getTotalSupply.js +60 -0
- package/_esm/actions/token/getTotalSupply.js.map +1 -0
- package/_esm/actions/token/index.js +10 -0
- package/_esm/actions/token/index.js.map +1 -0
- package/_esm/actions/token/internal.js +188 -0
- package/_esm/actions/token/internal.js.map +1 -0
- package/_esm/actions/token/transfer.js +147 -0
- package/_esm/actions/token/transfer.js.map +1 -0
- package/_esm/actions/token/transferSync.js +54 -0
- package/_esm/actions/token/transferSync.js.map +1 -0
- package/_esm/chains/definitions/battlechain.js +28 -0
- package/_esm/chains/definitions/battlechain.js.map +1 -0
- package/_esm/chains/definitions/marooTestnet.js +27 -0
- package/_esm/chains/definitions/marooTestnet.js.map +1 -0
- package/_esm/chains/index.js +2 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/createClient.js +53 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/createPublicClient.js.map +1 -1
- package/_esm/clients/createWalletClient.js.map +1 -1
- package/_esm/clients/decorators/public.js +17 -0
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/clients/decorators/wallet.js +8 -0
- package/_esm/clients/decorators/wallet.js.map +1 -1
- package/_esm/clients/transports/http.js +2 -1
- package/_esm/clients/transports/http.js.map +1 -1
- package/_esm/errors/encoding.js +7 -0
- package/_esm/errors/encoding.js.map +1 -1
- package/_esm/errors/request.js +22 -0
- package/_esm/errors/request.js.map +1 -1
- package/_esm/errors/transaction.js +7 -0
- package/_esm/errors/transaction.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +3 -3
- package/_esm/index.js.map +1 -1
- package/_esm/tempo/Client.js +3 -1
- package/_esm/tempo/Client.js.map +1 -1
- package/_esm/tempo/Decorator.js +234 -218
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/actions/token.js +335 -186
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tempo/actions/wallet.js +1 -1
- package/_esm/tempo/internal/utils.js +154 -0
- package/_esm/tempo/internal/utils.js.map +1 -1
- package/_esm/tokens/defineToken.js +57 -0
- package/_esm/tokens/defineToken.js.map +1 -0
- package/_esm/tokens/definitions/alphausd.js +12 -0
- package/_esm/tokens/definitions/alphausd.js.map +1 -0
- package/_esm/tokens/definitions/betausd.js +12 -0
- package/_esm/tokens/definitions/betausd.js.map +1 -0
- package/_esm/tokens/definitions/brla.js +12 -0
- package/_esm/tokens/definitions/brla.js.map +1 -0
- package/_esm/tokens/definitions/cbbtc.js +12 -0
- package/_esm/tokens/definitions/cbbtc.js.map +1 -0
- package/_esm/tokens/definitions/chfau.js +12 -0
- package/_esm/tokens/definitions/chfau.js.map +1 -0
- package/_esm/tokens/definitions/cirbtc.js +21 -0
- package/_esm/tokens/definitions/cirbtc.js.map +1 -0
- package/_esm/tokens/definitions/cusd.js +12 -0
- package/_esm/tokens/definitions/cusd.js.map +1 -0
- package/_esm/tokens/definitions/dlusd.js +12 -0
- package/_esm/tokens/definitions/dlusd.js.map +1 -0
- package/_esm/tokens/definitions/eurau.js +12 -0
- package/_esm/tokens/definitions/eurau.js.map +1 -0
- package/_esm/tokens/definitions/eurc.js +29 -0
- package/_esm/tokens/definitions/eurc.js.map +1 -0
- package/_esm/tokens/definitions/eurce.js +13 -0
- package/_esm/tokens/definitions/eurce.js.map +1 -0
- package/_esm/tokens/definitions/frxusd.js +12 -0
- package/_esm/tokens/definitions/frxusd.js.map +1 -0
- package/_esm/tokens/definitions/gbpa.js +12 -0
- package/_esm/tokens/definitions/gbpa.js.map +1 -0
- package/_esm/tokens/definitions/gusd.js +12 -0
- package/_esm/tokens/definitions/gusd.js.map +1 -0
- package/_esm/tokens/definitions/iusd.js +12 -0
- package/_esm/tokens/definitions/iusd.js.map +1 -0
- package/_esm/tokens/definitions/pathusd.js +13 -0
- package/_esm/tokens/definitions/pathusd.js.map +1 -0
- package/_esm/tokens/definitions/reusd.js +12 -0
- package/_esm/tokens/definitions/reusd.js.map +1 -0
- package/_esm/tokens/definitions/rusd.js +12 -0
- package/_esm/tokens/definitions/rusd.js.map +1 -0
- package/_esm/tokens/definitions/sbc.js +12 -0
- package/_esm/tokens/definitions/sbc.js.map +1 -0
- package/_esm/tokens/definitions/siusd.js +12 -0
- package/_esm/tokens/definitions/siusd.js.map +1 -0
- package/_esm/tokens/definitions/stcusd.js +12 -0
- package/_esm/tokens/definitions/stcusd.js.map +1 -0
- package/_esm/tokens/definitions/susde.js +12 -0
- package/_esm/tokens/definitions/susde.js.map +1 -0
- package/_esm/tokens/definitions/syrupusdc.js +12 -0
- package/_esm/tokens/definitions/syrupusdc.js.map +1 -0
- package/_esm/tokens/definitions/thetausd.js +12 -0
- package/_esm/tokens/definitions/thetausd.js.map +1 -0
- package/_esm/tokens/definitions/usd1.js +12 -0
- package/_esm/tokens/definitions/usd1.js.map +1 -0
- package/_esm/tokens/definitions/usdb.js +12 -0
- package/_esm/tokens/definitions/usdb.js.map +1 -0
- package/_esm/tokens/definitions/usdc.js +85 -0
- package/_esm/tokens/definitions/usdc.js.map +1 -0
- package/_esm/tokens/definitions/usdce.js +13 -0
- package/_esm/tokens/definitions/usdce.js.map +1 -0
- package/_esm/tokens/definitions/usde.js +12 -0
- package/_esm/tokens/definitions/usde.js.map +1 -0
- package/_esm/tokens/definitions/usdt0.js +12 -0
- package/_esm/tokens/definitions/usdt0.js.map +1 -0
- package/_esm/tokens/definitions/usyc.js +23 -0
- package/_esm/tokens/definitions/usyc.js.map +1 -0
- package/_esm/tokens/definitions/wsrusd.js +12 -0
- package/_esm/tokens/definitions/wsrusd.js.map +1 -0
- package/_esm/tokens/index.js +36 -0
- package/_esm/tokens/index.js.map +1 -0
- package/_esm/tokens/sets.js +104 -0
- package/_esm/tokens/sets.js.map +1 -0
- package/_esm/utils/encoding/fromRlp.js +8 -5
- package/_esm/utils/encoding/fromRlp.js.map +1 -1
- package/_esm/utils/rpc/http.js +59 -4
- package/_esm/utils/rpc/http.js.map +1 -1
- package/_esm/utils/transaction/parseTransaction.js +5 -2
- package/_esm/utils/transaction/parseTransaction.js.map +1 -1
- package/_types/actions/index.d.ts +1 -0
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/token/approve.d.ts +253 -0
- package/_types/actions/token/approve.d.ts.map +1 -0
- package/_types/actions/token/approveSync.d.ts +57 -0
- package/_types/actions/token/approveSync.d.ts.map +1 -0
- package/_types/actions/token/getAllowance.d.ts +77 -0
- package/_types/actions/token/getAllowance.d.ts.map +1 -0
- package/_types/actions/token/getBalance.d.ts +69 -0
- package/_types/actions/token/getBalance.d.ts.map +1 -0
- package/_types/actions/token/getMetadata.d.ts +43 -0
- package/_types/actions/token/getMetadata.d.ts.map +1 -0
- package/_types/actions/token/getTotalSupply.d.ts +63 -0
- package/_types/actions/token/getTotalSupply.d.ts.map +1 -0
- package/_types/actions/token/index.d.ts +9 -0
- package/_types/actions/token/index.d.ts.map +1 -0
- package/_types/actions/token/internal.d.ts +168 -0
- package/_types/actions/token/internal.d.ts.map +1 -0
- package/_types/actions/token/transfer.d.ts +288 -0
- package/_types/actions/token/transfer.d.ts.map +1 -0
- package/_types/actions/token/transferSync.d.ts +61 -0
- package/_types/actions/token/transferSync.d.ts.map +1 -0
- package/_types/chains/definitions/battlechain.d.ts +447 -0
- package/_types/chains/definitions/battlechain.d.ts.map +1 -0
- package/_types/chains/definitions/marooTestnet.d.ts +49 -0
- package/_types/chains/definitions/marooTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +2 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +24 -6
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/createPublicClient.d.ts +4 -3
- package/_types/clients/createPublicClient.d.ts.map +1 -1
- package/_types/clients/createWalletClient.d.ts +4 -3
- package/_types/clients/createWalletClient.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +128 -3
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/clients/decorators/wallet.d.ts +208 -3
- package/_types/clients/decorators/wallet.d.ts.map +1 -1
- package/_types/clients/transports/http.d.ts +2 -0
- package/_types/clients/transports/http.d.ts.map +1 -1
- package/_types/errors/encoding.d.ts +8 -0
- package/_types/errors/encoding.d.ts.map +1 -1
- package/_types/errors/request.d.ts +11 -0
- package/_types/errors/request.d.ts.map +1 -1
- package/_types/errors/transaction.d.ts +8 -0
- package/_types/errors/transaction.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +4 -3
- package/_types/index.d.ts.map +1 -1
- package/_types/tempo/Client.d.ts +1 -1
- package/_types/tempo/Client.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +88 -5
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +223 -151
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tempo/actions/wallet.d.ts +3 -3
- package/_types/tempo/internal/types.d.ts +17 -0
- package/_types/tempo/internal/types.d.ts.map +1 -1
- package/_types/tempo/internal/utils.d.ts +73 -0
- package/_types/tempo/internal/utils.d.ts.map +1 -1
- package/_types/tokens/defineToken.d.ts +112 -0
- package/_types/tokens/defineToken.d.ts.map +1 -0
- package/_types/tokens/definitions/alphausd.d.ts +11 -0
- package/_types/tokens/definitions/alphausd.d.ts.map +1 -0
- package/_types/tokens/definitions/betausd.d.ts +11 -0
- package/_types/tokens/definitions/betausd.d.ts.map +1 -0
- package/_types/tokens/definitions/brla.d.ts +11 -0
- package/_types/tokens/definitions/brla.d.ts.map +1 -0
- package/_types/tokens/definitions/cbbtc.d.ts +11 -0
- package/_types/tokens/definitions/cbbtc.d.ts.map +1 -0
- package/_types/tokens/definitions/chfau.d.ts +11 -0
- package/_types/tokens/definitions/chfau.d.ts.map +1 -0
- package/_types/tokens/definitions/cirbtc.d.ts +21 -0
- package/_types/tokens/definitions/cirbtc.d.ts.map +1 -0
- package/_types/tokens/definitions/cusd.d.ts +11 -0
- package/_types/tokens/definitions/cusd.d.ts.map +1 -0
- package/_types/tokens/definitions/dlusd.d.ts +11 -0
- package/_types/tokens/definitions/dlusd.d.ts.map +1 -0
- package/_types/tokens/definitions/eurau.d.ts +11 -0
- package/_types/tokens/definitions/eurau.d.ts.map +1 -0
- package/_types/tokens/definitions/eurc.d.ts +29 -0
- package/_types/tokens/definitions/eurc.d.ts.map +1 -0
- package/_types/tokens/definitions/eurce.d.ts +12 -0
- package/_types/tokens/definitions/eurce.d.ts.map +1 -0
- package/_types/tokens/definitions/frxusd.d.ts +11 -0
- package/_types/tokens/definitions/frxusd.d.ts.map +1 -0
- package/_types/tokens/definitions/gbpa.d.ts +11 -0
- package/_types/tokens/definitions/gbpa.d.ts.map +1 -0
- package/_types/tokens/definitions/gusd.d.ts +11 -0
- package/_types/tokens/definitions/gusd.d.ts.map +1 -0
- package/_types/tokens/definitions/iusd.d.ts +11 -0
- package/_types/tokens/definitions/iusd.d.ts.map +1 -0
- package/_types/tokens/definitions/pathusd.d.ts +12 -0
- package/_types/tokens/definitions/pathusd.d.ts.map +1 -0
- package/_types/tokens/definitions/reusd.d.ts +11 -0
- package/_types/tokens/definitions/reusd.d.ts.map +1 -0
- package/_types/tokens/definitions/rusd.d.ts +11 -0
- package/_types/tokens/definitions/rusd.d.ts.map +1 -0
- package/_types/tokens/definitions/sbc.d.ts +11 -0
- package/_types/tokens/definitions/sbc.d.ts.map +1 -0
- package/_types/tokens/definitions/siusd.d.ts +11 -0
- package/_types/tokens/definitions/siusd.d.ts.map +1 -0
- package/_types/tokens/definitions/stcusd.d.ts +11 -0
- package/_types/tokens/definitions/stcusd.d.ts.map +1 -0
- package/_types/tokens/definitions/susde.d.ts +11 -0
- package/_types/tokens/definitions/susde.d.ts.map +1 -0
- package/_types/tokens/definitions/syrupusdc.d.ts +11 -0
- package/_types/tokens/definitions/syrupusdc.d.ts.map +1 -0
- package/_types/tokens/definitions/thetausd.d.ts +11 -0
- package/_types/tokens/definitions/thetausd.d.ts.map +1 -0
- package/_types/tokens/definitions/usd1.d.ts +11 -0
- package/_types/tokens/definitions/usd1.d.ts.map +1 -0
- package/_types/tokens/definitions/usdb.d.ts +11 -0
- package/_types/tokens/definitions/usdb.d.ts.map +1 -0
- package/_types/tokens/definitions/usdc.d.ts +85 -0
- package/_types/tokens/definitions/usdc.d.ts.map +1 -0
- package/_types/tokens/definitions/usdce.d.ts +12 -0
- package/_types/tokens/definitions/usdce.d.ts.map +1 -0
- package/_types/tokens/definitions/usde.d.ts +11 -0
- package/_types/tokens/definitions/usde.d.ts.map +1 -0
- package/_types/tokens/definitions/usdt0.d.ts +11 -0
- package/_types/tokens/definitions/usdt0.d.ts.map +1 -0
- package/_types/tokens/definitions/usyc.d.ts +23 -0
- package/_types/tokens/definitions/usyc.d.ts.map +1 -0
- package/_types/tokens/definitions/wsrusd.d.ts +11 -0
- package/_types/tokens/definitions/wsrusd.d.ts.map +1 -0
- package/_types/tokens/index.d.ts +35 -0
- package/_types/tokens/index.d.ts.map +1 -0
- package/_types/tokens/sets.d.ts +607 -0
- package/_types/tokens/sets.d.ts.map +1 -0
- package/_types/utils/encoding/fromRlp.d.ts +2 -2
- package/_types/utils/encoding/fromRlp.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts +6 -2
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/_types/utils/transaction/parseTransaction.d.ts +2 -2
- package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
- package/actions/index.ts +1 -0
- package/actions/token/approve.ts +202 -0
- package/actions/token/approveSync.ts +95 -0
- package/actions/token/getAllowance.ts +105 -0
- package/actions/token/getBalance.ts +115 -0
- package/actions/token/getMetadata.ts +98 -0
- package/actions/token/getTotalSupply.ts +97 -0
- package/actions/token/index.ts +9 -0
- package/actions/token/internal.ts +367 -0
- package/actions/token/transfer.ts +230 -0
- package/actions/token/transferSync.ts +99 -0
- package/chains/definitions/battlechain.ts +28 -0
- package/chains/definitions/marooTestnet.ts +27 -0
- package/chains/index.ts +2 -0
- package/clients/createClient.ts +90 -8
- package/clients/createPublicClient.ts +22 -4
- package/clients/createWalletClient.ts +22 -4
- package/clients/decorators/public.ts +166 -4
- package/clients/decorators/wallet.ts +242 -3
- package/clients/transports/http.ts +4 -0
- package/errors/encoding.ts +11 -0
- package/errors/request.ts +17 -0
- package/errors/transaction.ts +11 -0
- package/errors/version.ts +1 -1
- package/index.ts +7 -0
- package/package.json +6 -1
- package/tempo/Client.ts +7 -3
- package/tempo/Decorator.ts +398 -337
- package/tempo/actions/token.ts +519 -296
- package/tempo/actions/wallet.ts +3 -3
- package/tempo/internal/types.ts +19 -0
- package/tempo/internal/utils.ts +204 -0
- package/tokens/defineToken.ts +142 -0
- package/tokens/definitions/alphausd.ts +13 -0
- package/tokens/definitions/betausd.ts +13 -0
- package/tokens/definitions/brla.ts +13 -0
- package/tokens/definitions/cbbtc.ts +13 -0
- package/tokens/definitions/chfau.ts +13 -0
- package/tokens/definitions/cirbtc.ts +21 -0
- package/tokens/definitions/cusd.ts +13 -0
- package/tokens/definitions/dlusd.ts +13 -0
- package/tokens/definitions/eurau.ts +13 -0
- package/tokens/definitions/eurc.ts +29 -0
- package/tokens/definitions/eurce.ts +14 -0
- package/tokens/definitions/frxusd.ts +13 -0
- package/tokens/definitions/gbpa.ts +13 -0
- package/tokens/definitions/gusd.ts +13 -0
- package/tokens/definitions/iusd.ts +13 -0
- package/tokens/definitions/pathusd.ts +14 -0
- package/tokens/definitions/reusd.ts +13 -0
- package/tokens/definitions/rusd.ts +13 -0
- package/tokens/definitions/sbc.ts +13 -0
- package/tokens/definitions/siusd.ts +13 -0
- package/tokens/definitions/stcusd.ts +13 -0
- package/tokens/definitions/susde.ts +13 -0
- package/tokens/definitions/syrupusdc.ts +13 -0
- package/tokens/definitions/thetausd.ts +13 -0
- package/tokens/definitions/usd1.ts +13 -0
- package/tokens/definitions/usdb.ts +13 -0
- package/tokens/definitions/usdc.ts +85 -0
- package/tokens/definitions/usdce.ts +14 -0
- package/tokens/definitions/usde.ts +13 -0
- package/tokens/definitions/usdt0.ts +13 -0
- package/tokens/definitions/usyc.ts +23 -0
- package/tokens/definitions/wsrusd.ts +13 -0
- package/tokens/index.ts +35 -0
- package/tokens/package.json +6 -0
- package/tokens/sets.ts +109 -0
- package/utils/encoding/fromRlp.ts +22 -3
- package/utils/rpc/http.ts +70 -2
- package/utils/transaction/parseTransaction.ts +7 -2
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
/** Curated token sets that can be passed to a Client's `tokens` property. */
|
|
2
|
+
export declare const tokens: {
|
|
3
|
+
all: readonly [import("./defineToken.js").defineToken.ReturnType<{
|
|
4
|
+
readonly addresses: {
|
|
5
|
+
readonly 42431: "0x20c0000000000000000000000000000000000001";
|
|
6
|
+
};
|
|
7
|
+
readonly currency: "USD";
|
|
8
|
+
readonly decimals: 6;
|
|
9
|
+
readonly name: "AlphaUSD";
|
|
10
|
+
readonly symbol: "alphaUSD";
|
|
11
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
12
|
+
readonly addresses: {
|
|
13
|
+
readonly 42431: "0x20c0000000000000000000000000000000000002";
|
|
14
|
+
};
|
|
15
|
+
readonly currency: "USD";
|
|
16
|
+
readonly decimals: 6;
|
|
17
|
+
readonly name: "BetaUSD";
|
|
18
|
+
readonly symbol: "betaUSD";
|
|
19
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
20
|
+
readonly addresses: {
|
|
21
|
+
readonly 4217: "0x20c000000000000000000000f047dd7018e50367";
|
|
22
|
+
};
|
|
23
|
+
readonly currency: "BRL";
|
|
24
|
+
readonly decimals: 6;
|
|
25
|
+
readonly name: "BRLA Token";
|
|
26
|
+
readonly symbol: "BRLA";
|
|
27
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
28
|
+
readonly addresses: {
|
|
29
|
+
readonly 4217: "0x20c000000000000000000000c412ec89d0c08be5";
|
|
30
|
+
};
|
|
31
|
+
readonly currency: "BTC";
|
|
32
|
+
readonly decimals: 6;
|
|
33
|
+
readonly name: "Coinbase Wrapped BTC";
|
|
34
|
+
readonly symbol: "cbBTC";
|
|
35
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
36
|
+
readonly addresses: {
|
|
37
|
+
readonly 4217: "0x20c00000000000000000000042109aef2f8b28e1";
|
|
38
|
+
};
|
|
39
|
+
readonly currency: "CHF";
|
|
40
|
+
readonly decimals: 6;
|
|
41
|
+
readonly name: "AllUnity CHF";
|
|
42
|
+
readonly symbol: "CHFAU";
|
|
43
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
44
|
+
readonly addresses: {
|
|
45
|
+
readonly 1: "0x72DFB2E44f59C5AD2bAFE84314E5b99a7cd5075E";
|
|
46
|
+
readonly 5042002: "0xf0C4a4CE82A5746AbAAd9425360Ab04fbBA432BF";
|
|
47
|
+
readonly 11155111: "0x3a3fe695F684Bf9b9e43CF43C2b895Ea5e392bB3";
|
|
48
|
+
};
|
|
49
|
+
readonly currency: "BTC";
|
|
50
|
+
readonly decimals: 8;
|
|
51
|
+
readonly name: "Circle Wrapped Bitcoin";
|
|
52
|
+
readonly symbol: "cirBTC";
|
|
53
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
54
|
+
readonly addresses: {
|
|
55
|
+
readonly 4217: "0x20c0000000000000000000000520792dcccccccc";
|
|
56
|
+
};
|
|
57
|
+
readonly currency: "USD";
|
|
58
|
+
readonly decimals: 6;
|
|
59
|
+
readonly name: "Cap USD";
|
|
60
|
+
readonly symbol: "cUSD";
|
|
61
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
62
|
+
readonly addresses: {
|
|
63
|
+
readonly 4217: "0x20c0000000000000000000006fd9a167923ba194";
|
|
64
|
+
};
|
|
65
|
+
readonly currency: "USD";
|
|
66
|
+
readonly decimals: 6;
|
|
67
|
+
readonly name: "Deel USD";
|
|
68
|
+
readonly symbol: "DLUSD";
|
|
69
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
70
|
+
readonly addresses: {
|
|
71
|
+
readonly 4217: "0x20c0000000000000000000009a4a4b17e0dc6651";
|
|
72
|
+
};
|
|
73
|
+
readonly currency: "EUR";
|
|
74
|
+
readonly decimals: 6;
|
|
75
|
+
readonly name: "AllUnity EUR";
|
|
76
|
+
readonly symbol: "EURAU";
|
|
77
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
78
|
+
readonly addresses: {
|
|
79
|
+
readonly 1: "0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c";
|
|
80
|
+
readonly 25: "0xA6dE01a2d62C6B5f3525d768f34d276652C554c8";
|
|
81
|
+
readonly 338: "0x31f7538adb53cF16350e6B0c89d03D91b7D12c46";
|
|
82
|
+
readonly 480: "0x1C60ba0A0eD1019e8Eb035E6daF4155A5cE2380B";
|
|
83
|
+
readonly 4801: "0xe479EcA5740Ac65d6E1823bea2f1C08Bc14e954F";
|
|
84
|
+
readonly 8453: "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42";
|
|
85
|
+
readonly 43113: "0x5E44db7996c682E92a960b65AC713a54AD815c6B";
|
|
86
|
+
readonly 43114: "0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD";
|
|
87
|
+
readonly 84532: "0x808456652fdb597867f38412077A9182bf77359F";
|
|
88
|
+
readonly 5042002: "0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a";
|
|
89
|
+
readonly 11155111: "0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4";
|
|
90
|
+
};
|
|
91
|
+
readonly currency: "EUR";
|
|
92
|
+
readonly decimals: 6;
|
|
93
|
+
readonly name: "EURC";
|
|
94
|
+
readonly symbol: "EURC";
|
|
95
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
96
|
+
readonly addresses: {
|
|
97
|
+
readonly 4217: "0x20c0000000000000000000001621e21f71cf12fb";
|
|
98
|
+
readonly 42431: "0x20c000000000000000000000d72572838bbee59c";
|
|
99
|
+
};
|
|
100
|
+
readonly currency: "EUR";
|
|
101
|
+
readonly decimals: 6;
|
|
102
|
+
readonly name: "Bridged EURC (Stargate)";
|
|
103
|
+
readonly symbol: "EURC.e";
|
|
104
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
105
|
+
readonly addresses: {
|
|
106
|
+
readonly 4217: "0x20c0000000000000000000003554d28269e0f3c2";
|
|
107
|
+
};
|
|
108
|
+
readonly currency: "USD";
|
|
109
|
+
readonly decimals: 6;
|
|
110
|
+
readonly name: "Frax USD";
|
|
111
|
+
readonly symbol: "frxUSD";
|
|
112
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
113
|
+
readonly addresses: {
|
|
114
|
+
readonly 4217: "0x20c0000000000000000000000a6da882d075a4c3";
|
|
115
|
+
};
|
|
116
|
+
readonly currency: "GBP";
|
|
117
|
+
readonly decimals: 6;
|
|
118
|
+
readonly name: "Agant GBP";
|
|
119
|
+
readonly symbol: "GBPA";
|
|
120
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
121
|
+
readonly addresses: {
|
|
122
|
+
readonly 4217: "0x20c0000000000000000000005c0bac7cef389a11";
|
|
123
|
+
};
|
|
124
|
+
readonly currency: "USD";
|
|
125
|
+
readonly decimals: 6;
|
|
126
|
+
readonly name: "Generic USD";
|
|
127
|
+
readonly symbol: "GUSD";
|
|
128
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
129
|
+
readonly addresses: {
|
|
130
|
+
readonly 4217: "0x20c000000000000000000000ab02d39df30bd17e";
|
|
131
|
+
};
|
|
132
|
+
readonly currency: "USD";
|
|
133
|
+
readonly decimals: 6;
|
|
134
|
+
readonly name: "InfiniFi USD";
|
|
135
|
+
readonly symbol: "iUSD";
|
|
136
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
137
|
+
readonly addresses: {
|
|
138
|
+
readonly 4217: "0x20c0000000000000000000000000000000000000";
|
|
139
|
+
readonly 42431: "0x20c0000000000000000000000000000000000000";
|
|
140
|
+
};
|
|
141
|
+
readonly currency: "USD";
|
|
142
|
+
readonly decimals: 6;
|
|
143
|
+
readonly name: "PathUSD";
|
|
144
|
+
readonly symbol: "pathUSD";
|
|
145
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
146
|
+
readonly addresses: {
|
|
147
|
+
readonly 4217: "0x20c000000000000000000000383a23bacb546ab9";
|
|
148
|
+
};
|
|
149
|
+
readonly currency: "USD";
|
|
150
|
+
readonly decimals: 6;
|
|
151
|
+
readonly name: "Re Protocol reUSD";
|
|
152
|
+
readonly symbol: "reUSD";
|
|
153
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
154
|
+
readonly addresses: {
|
|
155
|
+
readonly 4217: "0x20c0000000000000000000007f7ba549dd0251b9";
|
|
156
|
+
};
|
|
157
|
+
readonly currency: "USD";
|
|
158
|
+
readonly decimals: 6;
|
|
159
|
+
readonly name: "Reservoir Stablecoin";
|
|
160
|
+
readonly symbol: "rUSD";
|
|
161
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
162
|
+
readonly addresses: {
|
|
163
|
+
readonly 4217: "0x20c000000000000000000000ae247a1130450f09";
|
|
164
|
+
};
|
|
165
|
+
readonly currency: "USD";
|
|
166
|
+
readonly decimals: 6;
|
|
167
|
+
readonly name: "Stable Coin";
|
|
168
|
+
readonly symbol: "SBC";
|
|
169
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
170
|
+
readonly addresses: {
|
|
171
|
+
readonly 4217: "0x20c000000000000000000000048c8f36df1c9a4a";
|
|
172
|
+
};
|
|
173
|
+
readonly currency: "siUSD";
|
|
174
|
+
readonly decimals: 6;
|
|
175
|
+
readonly name: "InfiniFi Staked USD";
|
|
176
|
+
readonly symbol: "siUSD";
|
|
177
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
178
|
+
readonly addresses: {
|
|
179
|
+
readonly 4217: "0x20c0000000000000000000008ee4fcff88888888";
|
|
180
|
+
};
|
|
181
|
+
readonly currency: "stcUSD";
|
|
182
|
+
readonly decimals: 6;
|
|
183
|
+
readonly name: "Staked Cap USD";
|
|
184
|
+
readonly symbol: "stcUSD";
|
|
185
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
186
|
+
readonly addresses: {
|
|
187
|
+
readonly 4217: "0x20c000000000000000000000bd95bfb69fbe6ce3";
|
|
188
|
+
};
|
|
189
|
+
readonly currency: "sUSDe";
|
|
190
|
+
readonly decimals: 6;
|
|
191
|
+
readonly name: "Staked USDe";
|
|
192
|
+
readonly symbol: "sUSDe";
|
|
193
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
194
|
+
readonly addresses: {
|
|
195
|
+
readonly 4217: "0x20c0000000000000000000008191667423f70e67";
|
|
196
|
+
};
|
|
197
|
+
readonly currency: "syrupUSDC";
|
|
198
|
+
readonly decimals: 6;
|
|
199
|
+
readonly name: "Syrup USDC";
|
|
200
|
+
readonly symbol: "syrupUSDC";
|
|
201
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
202
|
+
readonly addresses: {
|
|
203
|
+
readonly 42431: "0x20c0000000000000000000000000000000000003";
|
|
204
|
+
};
|
|
205
|
+
readonly currency: "USD";
|
|
206
|
+
readonly decimals: 6;
|
|
207
|
+
readonly name: "ThetaUSD";
|
|
208
|
+
readonly symbol: "thetaUSD";
|
|
209
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
210
|
+
readonly addresses: {
|
|
211
|
+
readonly 4217: "0x20c000000000000000000000111111111e910f0f";
|
|
212
|
+
};
|
|
213
|
+
readonly currency: "USD";
|
|
214
|
+
readonly decimals: 6;
|
|
215
|
+
readonly name: "USD1";
|
|
216
|
+
readonly symbol: "USD1";
|
|
217
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
218
|
+
readonly addresses: {
|
|
219
|
+
readonly 4217: "0x20c0000000000000000000003158081efd85bfc2";
|
|
220
|
+
};
|
|
221
|
+
readonly currency: "USD";
|
|
222
|
+
readonly decimals: 6;
|
|
223
|
+
readonly name: "USDBridge";
|
|
224
|
+
readonly symbol: "USDB";
|
|
225
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
226
|
+
readonly addresses: {
|
|
227
|
+
readonly 1: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
228
|
+
readonly 10: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
|
|
229
|
+
readonly 25: "0x3D7F2C478aAfdB65542BCB44bCeeC05849999d2D";
|
|
230
|
+
readonly 50: "0xfA2958CB79b0491CC627c1557F441eF849Ca8eb1";
|
|
231
|
+
readonly 51: "0xb5AB69F7bBada22B28e79C8FFAECe55eF1c771D4";
|
|
232
|
+
readonly 130: "0x078D782b760474a361dDA0AF3839290b0EF57AD6";
|
|
233
|
+
readonly 137: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
|
|
234
|
+
readonly 143: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
|
|
235
|
+
readonly 146: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894";
|
|
236
|
+
readonly 300: "0xAe045DE5638162fa134807Cb558E15A3F5A7F853";
|
|
237
|
+
readonly 324: "0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4";
|
|
238
|
+
readonly 338: "0xEb33dc5fac03833e132593659e1dE7256aB59794";
|
|
239
|
+
readonly 480: "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1";
|
|
240
|
+
readonly 998: "0x2B3370eE501B4a559b57D449569354196457D8Ab";
|
|
241
|
+
readonly 999: "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
242
|
+
readonly 1301: "0x31d0220469e10c4E71834a79b1f276d740d3768F";
|
|
243
|
+
readonly 1328: "0x4fCF1784B31630811181f670Aea7A7bEF803eaED";
|
|
244
|
+
readonly 1329: "0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392";
|
|
245
|
+
readonly 1439: "0x0C382e685bbeeFE5d3d9C29e29E341fEE8E84C5d";
|
|
246
|
+
readonly 1776: "0xa00C59fF5a080D2b954d0c75e46E22a0c371235a";
|
|
247
|
+
readonly 2818: "0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B";
|
|
248
|
+
readonly 4801: "0x66145f38cBAC35Ca6F1Dfb4914dF98F1614aeA88";
|
|
249
|
+
readonly 8453: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
250
|
+
readonly 10143: "0x534b2f3A21130d7a60830c2Df862319e593943A3";
|
|
251
|
+
readonly 42161: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
252
|
+
readonly 42220: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C";
|
|
253
|
+
readonly 43113: "0x5425890298aed601595a70AB815c96711a31Bc65";
|
|
254
|
+
readonly 43114: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
|
|
255
|
+
readonly 57054: "0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6";
|
|
256
|
+
readonly 57073: "0x2D270e6886d130D724215A266106e6832161EAEd";
|
|
257
|
+
readonly 59141: "0xFEce4462D57bD51A6A552365A011b95f0E16d9B7";
|
|
258
|
+
readonly 59144: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff";
|
|
259
|
+
readonly 64165: "0x0BA304580ee7c9a980CF72e55f5Ed2E9fd30Bc51";
|
|
260
|
+
readonly 80002: "0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582";
|
|
261
|
+
readonly 81224: "0xd996633a415985DBd7D6D12f4A4343E31f5037cf";
|
|
262
|
+
readonly 84532: "0x036CbD53842c5426634e7929541eC2318f3dCF7e";
|
|
263
|
+
readonly 98866: "0x222365EF19F7947e5484218551B56bb3965Aa7aF";
|
|
264
|
+
readonly 98867: "0xcB5f30e335672893c7eb944B374c196392C19D18";
|
|
265
|
+
readonly 421614: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d";
|
|
266
|
+
readonly 763373: "0xFabab97dCE620294D2B0b0e46C68964e326300Ac";
|
|
267
|
+
readonly 812242: "0x6d7f141b6819C2c9CC2f818e6ad549E7Ca090F8f";
|
|
268
|
+
readonly 5042002: "0x3600000000000000000000000000000000000000";
|
|
269
|
+
readonly 11142220: "0x01C5C0122039549AD1493B8220cABEdD739BC44E";
|
|
270
|
+
readonly 11155111: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238";
|
|
271
|
+
readonly 11155420: "0x5fd84259d66Cd46123540766Be93DFE6D43130D7";
|
|
272
|
+
};
|
|
273
|
+
readonly currency: "USD";
|
|
274
|
+
readonly decimals: 6;
|
|
275
|
+
readonly name: "USD Coin";
|
|
276
|
+
readonly popular: true;
|
|
277
|
+
readonly symbol: "USDC";
|
|
278
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
279
|
+
readonly addresses: {
|
|
280
|
+
readonly 4217: "0x20c000000000000000000000b9537d11c60e8b50";
|
|
281
|
+
readonly 42431: "0x20c0000000000000000000009e8d7eb59b783726";
|
|
282
|
+
};
|
|
283
|
+
readonly currency: "USD";
|
|
284
|
+
readonly decimals: 6;
|
|
285
|
+
readonly name: "Bridged USDC (Stargate)";
|
|
286
|
+
readonly symbol: "USDC.e";
|
|
287
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
288
|
+
readonly addresses: {
|
|
289
|
+
readonly 4217: "0x20c0000000000000000000002f52d5cc21a3207b";
|
|
290
|
+
};
|
|
291
|
+
readonly currency: "USD";
|
|
292
|
+
readonly decimals: 6;
|
|
293
|
+
readonly name: "USDe";
|
|
294
|
+
readonly symbol: "USDe";
|
|
295
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
296
|
+
readonly addresses: {
|
|
297
|
+
readonly 4217: "0x20c00000000000000000000014f22ca97301eb73";
|
|
298
|
+
};
|
|
299
|
+
readonly currency: "USD";
|
|
300
|
+
readonly decimals: 6;
|
|
301
|
+
readonly name: "USDT0";
|
|
302
|
+
readonly symbol: "USDT0";
|
|
303
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
304
|
+
readonly addresses: {
|
|
305
|
+
readonly 1: "0x136471a34f6ef19fE571EFFC1CA711fdb8E49f2b";
|
|
306
|
+
readonly 56: "0x8D0fA28f221eB5735BC71d3a0Da67EE5bC821311";
|
|
307
|
+
readonly 97: "0x109656Aba6F175c634c63C9874f29CeAAAB8E606";
|
|
308
|
+
readonly 5042002: "0xe9185F0c5F296Ed1797AaE4238D26CCaBEadb86C";
|
|
309
|
+
readonly 11155111: "0x38D3A3f8717F4DB1CcB4Ad7D8C755919440848A3";
|
|
310
|
+
};
|
|
311
|
+
readonly currency: "USD";
|
|
312
|
+
readonly decimals: 6;
|
|
313
|
+
readonly name: "US Yield Coin";
|
|
314
|
+
readonly symbol: "USYC";
|
|
315
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
316
|
+
readonly addresses: {
|
|
317
|
+
readonly 4217: "0x20c000000000000000000000aeed2ec36a54d0e5";
|
|
318
|
+
};
|
|
319
|
+
readonly currency: "wsrUSD";
|
|
320
|
+
readonly decimals: 6;
|
|
321
|
+
readonly name: "Wrapped Savings rUSD";
|
|
322
|
+
readonly symbol: "wsrUSD";
|
|
323
|
+
}>];
|
|
324
|
+
popular: readonly [import("./defineToken.js").defineToken.ReturnType<{
|
|
325
|
+
readonly addresses: {
|
|
326
|
+
readonly 1: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
327
|
+
readonly 10: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
|
|
328
|
+
readonly 25: "0x3D7F2C478aAfdB65542BCB44bCeeC05849999d2D";
|
|
329
|
+
readonly 50: "0xfA2958CB79b0491CC627c1557F441eF849Ca8eb1";
|
|
330
|
+
readonly 51: "0xb5AB69F7bBada22B28e79C8FFAECe55eF1c771D4";
|
|
331
|
+
readonly 130: "0x078D782b760474a361dDA0AF3839290b0EF57AD6";
|
|
332
|
+
readonly 137: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359";
|
|
333
|
+
readonly 143: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603";
|
|
334
|
+
readonly 146: "0x29219dd400f2Bf60E5a23d13Be72B486D4038894";
|
|
335
|
+
readonly 300: "0xAe045DE5638162fa134807Cb558E15A3F5A7F853";
|
|
336
|
+
readonly 324: "0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4";
|
|
337
|
+
readonly 338: "0xEb33dc5fac03833e132593659e1dE7256aB59794";
|
|
338
|
+
readonly 480: "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1";
|
|
339
|
+
readonly 998: "0x2B3370eE501B4a559b57D449569354196457D8Ab";
|
|
340
|
+
readonly 999: "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
|
|
341
|
+
readonly 1301: "0x31d0220469e10c4E71834a79b1f276d740d3768F";
|
|
342
|
+
readonly 1328: "0x4fCF1784B31630811181f670Aea7A7bEF803eaED";
|
|
343
|
+
readonly 1329: "0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392";
|
|
344
|
+
readonly 1439: "0x0C382e685bbeeFE5d3d9C29e29E341fEE8E84C5d";
|
|
345
|
+
readonly 1776: "0xa00C59fF5a080D2b954d0c75e46E22a0c371235a";
|
|
346
|
+
readonly 2818: "0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B";
|
|
347
|
+
readonly 4801: "0x66145f38cBAC35Ca6F1Dfb4914dF98F1614aeA88";
|
|
348
|
+
readonly 8453: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
349
|
+
readonly 10143: "0x534b2f3A21130d7a60830c2Df862319e593943A3";
|
|
350
|
+
readonly 42161: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
351
|
+
readonly 42220: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C";
|
|
352
|
+
readonly 43113: "0x5425890298aed601595a70AB815c96711a31Bc65";
|
|
353
|
+
readonly 43114: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E";
|
|
354
|
+
readonly 57054: "0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6";
|
|
355
|
+
readonly 57073: "0x2D270e6886d130D724215A266106e6832161EAEd";
|
|
356
|
+
readonly 59141: "0xFEce4462D57bD51A6A552365A011b95f0E16d9B7";
|
|
357
|
+
readonly 59144: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff";
|
|
358
|
+
readonly 64165: "0x0BA304580ee7c9a980CF72e55f5Ed2E9fd30Bc51";
|
|
359
|
+
readonly 80002: "0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582";
|
|
360
|
+
readonly 81224: "0xd996633a415985DBd7D6D12f4A4343E31f5037cf";
|
|
361
|
+
readonly 84532: "0x036CbD53842c5426634e7929541eC2318f3dCF7e";
|
|
362
|
+
readonly 98866: "0x222365EF19F7947e5484218551B56bb3965Aa7aF";
|
|
363
|
+
readonly 98867: "0xcB5f30e335672893c7eb944B374c196392C19D18";
|
|
364
|
+
readonly 421614: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d";
|
|
365
|
+
readonly 763373: "0xFabab97dCE620294D2B0b0e46C68964e326300Ac";
|
|
366
|
+
readonly 812242: "0x6d7f141b6819C2c9CC2f818e6ad549E7Ca090F8f";
|
|
367
|
+
readonly 5042002: "0x3600000000000000000000000000000000000000";
|
|
368
|
+
readonly 11142220: "0x01C5C0122039549AD1493B8220cABEdD739BC44E";
|
|
369
|
+
readonly 11155111: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238";
|
|
370
|
+
readonly 11155420: "0x5fd84259d66Cd46123540766Be93DFE6D43130D7";
|
|
371
|
+
};
|
|
372
|
+
readonly currency: "USD";
|
|
373
|
+
readonly decimals: 6;
|
|
374
|
+
readonly name: "USD Coin";
|
|
375
|
+
readonly popular: true;
|
|
376
|
+
readonly symbol: "USDC";
|
|
377
|
+
}>];
|
|
378
|
+
tempo: readonly [import("./defineToken.js").defineToken.ReturnType<{
|
|
379
|
+
readonly addresses: {
|
|
380
|
+
readonly 42431: "0x20c0000000000000000000000000000000000001";
|
|
381
|
+
};
|
|
382
|
+
readonly currency: "USD";
|
|
383
|
+
readonly decimals: 6;
|
|
384
|
+
readonly name: "AlphaUSD";
|
|
385
|
+
readonly symbol: "alphaUSD";
|
|
386
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
387
|
+
readonly addresses: {
|
|
388
|
+
readonly 42431: "0x20c0000000000000000000000000000000000002";
|
|
389
|
+
};
|
|
390
|
+
readonly currency: "USD";
|
|
391
|
+
readonly decimals: 6;
|
|
392
|
+
readonly name: "BetaUSD";
|
|
393
|
+
readonly symbol: "betaUSD";
|
|
394
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
395
|
+
readonly addresses: {
|
|
396
|
+
readonly 4217: "0x20c000000000000000000000f047dd7018e50367";
|
|
397
|
+
};
|
|
398
|
+
readonly currency: "BRL";
|
|
399
|
+
readonly decimals: 6;
|
|
400
|
+
readonly name: "BRLA Token";
|
|
401
|
+
readonly symbol: "BRLA";
|
|
402
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
403
|
+
readonly addresses: {
|
|
404
|
+
readonly 4217: "0x20c000000000000000000000c412ec89d0c08be5";
|
|
405
|
+
};
|
|
406
|
+
readonly currency: "BTC";
|
|
407
|
+
readonly decimals: 6;
|
|
408
|
+
readonly name: "Coinbase Wrapped BTC";
|
|
409
|
+
readonly symbol: "cbBTC";
|
|
410
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
411
|
+
readonly addresses: {
|
|
412
|
+
readonly 4217: "0x20c00000000000000000000042109aef2f8b28e1";
|
|
413
|
+
};
|
|
414
|
+
readonly currency: "CHF";
|
|
415
|
+
readonly decimals: 6;
|
|
416
|
+
readonly name: "AllUnity CHF";
|
|
417
|
+
readonly symbol: "CHFAU";
|
|
418
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
419
|
+
readonly addresses: {
|
|
420
|
+
readonly 4217: "0x20c0000000000000000000000520792dcccccccc";
|
|
421
|
+
};
|
|
422
|
+
readonly currency: "USD";
|
|
423
|
+
readonly decimals: 6;
|
|
424
|
+
readonly name: "Cap USD";
|
|
425
|
+
readonly symbol: "cUSD";
|
|
426
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
427
|
+
readonly addresses: {
|
|
428
|
+
readonly 4217: "0x20c0000000000000000000006fd9a167923ba194";
|
|
429
|
+
};
|
|
430
|
+
readonly currency: "USD";
|
|
431
|
+
readonly decimals: 6;
|
|
432
|
+
readonly name: "Deel USD";
|
|
433
|
+
readonly symbol: "DLUSD";
|
|
434
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
435
|
+
readonly addresses: {
|
|
436
|
+
readonly 4217: "0x20c0000000000000000000009a4a4b17e0dc6651";
|
|
437
|
+
};
|
|
438
|
+
readonly currency: "EUR";
|
|
439
|
+
readonly decimals: 6;
|
|
440
|
+
readonly name: "AllUnity EUR";
|
|
441
|
+
readonly symbol: "EURAU";
|
|
442
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
443
|
+
readonly addresses: {
|
|
444
|
+
readonly 4217: "0x20c0000000000000000000001621e21f71cf12fb";
|
|
445
|
+
readonly 42431: "0x20c000000000000000000000d72572838bbee59c";
|
|
446
|
+
};
|
|
447
|
+
readonly currency: "EUR";
|
|
448
|
+
readonly decimals: 6;
|
|
449
|
+
readonly name: "Bridged EURC (Stargate)";
|
|
450
|
+
readonly symbol: "EURC.e";
|
|
451
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
452
|
+
readonly addresses: {
|
|
453
|
+
readonly 4217: "0x20c0000000000000000000003554d28269e0f3c2";
|
|
454
|
+
};
|
|
455
|
+
readonly currency: "USD";
|
|
456
|
+
readonly decimals: 6;
|
|
457
|
+
readonly name: "Frax USD";
|
|
458
|
+
readonly symbol: "frxUSD";
|
|
459
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
460
|
+
readonly addresses: {
|
|
461
|
+
readonly 4217: "0x20c0000000000000000000000a6da882d075a4c3";
|
|
462
|
+
};
|
|
463
|
+
readonly currency: "GBP";
|
|
464
|
+
readonly decimals: 6;
|
|
465
|
+
readonly name: "Agant GBP";
|
|
466
|
+
readonly symbol: "GBPA";
|
|
467
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
468
|
+
readonly addresses: {
|
|
469
|
+
readonly 4217: "0x20c0000000000000000000005c0bac7cef389a11";
|
|
470
|
+
};
|
|
471
|
+
readonly currency: "USD";
|
|
472
|
+
readonly decimals: 6;
|
|
473
|
+
readonly name: "Generic USD";
|
|
474
|
+
readonly symbol: "GUSD";
|
|
475
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
476
|
+
readonly addresses: {
|
|
477
|
+
readonly 4217: "0x20c000000000000000000000ab02d39df30bd17e";
|
|
478
|
+
};
|
|
479
|
+
readonly currency: "USD";
|
|
480
|
+
readonly decimals: 6;
|
|
481
|
+
readonly name: "InfiniFi USD";
|
|
482
|
+
readonly symbol: "iUSD";
|
|
483
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
484
|
+
readonly addresses: {
|
|
485
|
+
readonly 4217: "0x20c0000000000000000000000000000000000000";
|
|
486
|
+
readonly 42431: "0x20c0000000000000000000000000000000000000";
|
|
487
|
+
};
|
|
488
|
+
readonly currency: "USD";
|
|
489
|
+
readonly decimals: 6;
|
|
490
|
+
readonly name: "PathUSD";
|
|
491
|
+
readonly symbol: "pathUSD";
|
|
492
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
493
|
+
readonly addresses: {
|
|
494
|
+
readonly 4217: "0x20c000000000000000000000383a23bacb546ab9";
|
|
495
|
+
};
|
|
496
|
+
readonly currency: "USD";
|
|
497
|
+
readonly decimals: 6;
|
|
498
|
+
readonly name: "Re Protocol reUSD";
|
|
499
|
+
readonly symbol: "reUSD";
|
|
500
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
501
|
+
readonly addresses: {
|
|
502
|
+
readonly 4217: "0x20c0000000000000000000007f7ba549dd0251b9";
|
|
503
|
+
};
|
|
504
|
+
readonly currency: "USD";
|
|
505
|
+
readonly decimals: 6;
|
|
506
|
+
readonly name: "Reservoir Stablecoin";
|
|
507
|
+
readonly symbol: "rUSD";
|
|
508
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
509
|
+
readonly addresses: {
|
|
510
|
+
readonly 4217: "0x20c000000000000000000000ae247a1130450f09";
|
|
511
|
+
};
|
|
512
|
+
readonly currency: "USD";
|
|
513
|
+
readonly decimals: 6;
|
|
514
|
+
readonly name: "Stable Coin";
|
|
515
|
+
readonly symbol: "SBC";
|
|
516
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
517
|
+
readonly addresses: {
|
|
518
|
+
readonly 4217: "0x20c000000000000000000000048c8f36df1c9a4a";
|
|
519
|
+
};
|
|
520
|
+
readonly currency: "siUSD";
|
|
521
|
+
readonly decimals: 6;
|
|
522
|
+
readonly name: "InfiniFi Staked USD";
|
|
523
|
+
readonly symbol: "siUSD";
|
|
524
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
525
|
+
readonly addresses: {
|
|
526
|
+
readonly 4217: "0x20c0000000000000000000008ee4fcff88888888";
|
|
527
|
+
};
|
|
528
|
+
readonly currency: "stcUSD";
|
|
529
|
+
readonly decimals: 6;
|
|
530
|
+
readonly name: "Staked Cap USD";
|
|
531
|
+
readonly symbol: "stcUSD";
|
|
532
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
533
|
+
readonly addresses: {
|
|
534
|
+
readonly 4217: "0x20c000000000000000000000bd95bfb69fbe6ce3";
|
|
535
|
+
};
|
|
536
|
+
readonly currency: "sUSDe";
|
|
537
|
+
readonly decimals: 6;
|
|
538
|
+
readonly name: "Staked USDe";
|
|
539
|
+
readonly symbol: "sUSDe";
|
|
540
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
541
|
+
readonly addresses: {
|
|
542
|
+
readonly 4217: "0x20c0000000000000000000008191667423f70e67";
|
|
543
|
+
};
|
|
544
|
+
readonly currency: "syrupUSDC";
|
|
545
|
+
readonly decimals: 6;
|
|
546
|
+
readonly name: "Syrup USDC";
|
|
547
|
+
readonly symbol: "syrupUSDC";
|
|
548
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
549
|
+
readonly addresses: {
|
|
550
|
+
readonly 42431: "0x20c0000000000000000000000000000000000003";
|
|
551
|
+
};
|
|
552
|
+
readonly currency: "USD";
|
|
553
|
+
readonly decimals: 6;
|
|
554
|
+
readonly name: "ThetaUSD";
|
|
555
|
+
readonly symbol: "thetaUSD";
|
|
556
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
557
|
+
readonly addresses: {
|
|
558
|
+
readonly 4217: "0x20c000000000000000000000111111111e910f0f";
|
|
559
|
+
};
|
|
560
|
+
readonly currency: "USD";
|
|
561
|
+
readonly decimals: 6;
|
|
562
|
+
readonly name: "USD1";
|
|
563
|
+
readonly symbol: "USD1";
|
|
564
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
565
|
+
readonly addresses: {
|
|
566
|
+
readonly 4217: "0x20c0000000000000000000003158081efd85bfc2";
|
|
567
|
+
};
|
|
568
|
+
readonly currency: "USD";
|
|
569
|
+
readonly decimals: 6;
|
|
570
|
+
readonly name: "USDBridge";
|
|
571
|
+
readonly symbol: "USDB";
|
|
572
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
573
|
+
readonly addresses: {
|
|
574
|
+
readonly 4217: "0x20c000000000000000000000b9537d11c60e8b50";
|
|
575
|
+
readonly 42431: "0x20c0000000000000000000009e8d7eb59b783726";
|
|
576
|
+
};
|
|
577
|
+
readonly currency: "USD";
|
|
578
|
+
readonly decimals: 6;
|
|
579
|
+
readonly name: "Bridged USDC (Stargate)";
|
|
580
|
+
readonly symbol: "USDC.e";
|
|
581
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
582
|
+
readonly addresses: {
|
|
583
|
+
readonly 4217: "0x20c0000000000000000000002f52d5cc21a3207b";
|
|
584
|
+
};
|
|
585
|
+
readonly currency: "USD";
|
|
586
|
+
readonly decimals: 6;
|
|
587
|
+
readonly name: "USDe";
|
|
588
|
+
readonly symbol: "USDe";
|
|
589
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
590
|
+
readonly addresses: {
|
|
591
|
+
readonly 4217: "0x20c00000000000000000000014f22ca97301eb73";
|
|
592
|
+
};
|
|
593
|
+
readonly currency: "USD";
|
|
594
|
+
readonly decimals: 6;
|
|
595
|
+
readonly name: "USDT0";
|
|
596
|
+
readonly symbol: "USDT0";
|
|
597
|
+
}>, import("./defineToken.js").defineToken.ReturnType<{
|
|
598
|
+
readonly addresses: {
|
|
599
|
+
readonly 4217: "0x20c000000000000000000000aeed2ec36a54d0e5";
|
|
600
|
+
};
|
|
601
|
+
readonly currency: "wsrUSD";
|
|
602
|
+
readonly decimals: 6;
|
|
603
|
+
readonly name: "Wrapped Savings rUSD";
|
|
604
|
+
readonly symbol: "wsrUSD";
|
|
605
|
+
}>];
|
|
606
|
+
};
|
|
607
|
+
//# sourceMappingURL=sets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sets.d.ts","sourceRoot":"","sources":["../../tokens/sets.ts"],"names":[],"mappings":"AA2GA,6EAA6E;AAC7E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseErrorType } from '../../errors/base.js';
|
|
2
|
-
import { type InvalidHexValueErrorType } from '../../errors/encoding.js';
|
|
2
|
+
import { type InvalidHexValueErrorType, type RlpDepthLimitExceededErrorType } from '../../errors/encoding.js';
|
|
3
3
|
import type { ErrorType } from '../../errors/utils.js';
|
|
4
4
|
import type { ByteArray, Hex } from '../../types/misc.js';
|
|
5
5
|
import { type CreateCursorErrorType } from '../cursor.js';
|
|
@@ -8,7 +8,7 @@ import { type BytesToHexErrorType } from './toHex.js';
|
|
|
8
8
|
import type { RecursiveArray } from './toRlp.js';
|
|
9
9
|
type To = 'hex' | 'bytes';
|
|
10
10
|
export type FromRlpReturnType<to extends To> = (to extends 'bytes' ? RecursiveArray<ByteArray> : never) | (to extends 'hex' ? RecursiveArray<Hex> : never);
|
|
11
|
-
export type FromRlpErrorType = CreateCursorErrorType | FromRlpCursorErrorType | HexToBytesErrorType | InvalidHexValueErrorType | ErrorType;
|
|
11
|
+
export type FromRlpErrorType = CreateCursorErrorType | FromRlpCursorErrorType | HexToBytesErrorType | InvalidHexValueErrorType | RlpDepthLimitExceededErrorType | ErrorType;
|
|
12
12
|
export declare function fromRlp<to extends To = 'hex'>(value: ByteArray | Hex, to?: to | To | undefined): FromRlpReturnType<to>;
|
|
13
13
|
type FromRlpCursorErrorType = BytesToHexErrorType | ReadLengthErrorType | ReadListErrorType | ErrorType;
|
|
14
14
|
type ReadLengthErrorType = BaseErrorType | ErrorType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromRlp.d.ts","sourceRoot":"","sources":["../../../utils/encoding/fromRlp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAEL,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"fromRlp.d.ts","sourceRoot":"","sources":["../../../utils/encoding/fromRlp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAEL,KAAK,wBAAwB,EAE7B,KAAK,8BAA8B,EACpC,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,KAAK,mBAAmB,EAAc,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,KAAK,mBAAmB,EAAc,MAAM,YAAY,CAAA;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhD,KAAK,EAAE,GAAG,KAAK,GAAG,OAAO,CAAA;AAIzB,MAAM,MAAM,iBAAiB,CAAC,EAAE,SAAS,EAAE,IACvC,CAAC,EAAE,SAAS,OAAO,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,GACxD,CAAC,EAAE,SAAS,KAAK,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAA;AAEpD,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,mBAAmB,GACnB,wBAAwB,GACxB,8BAA8B,GAC9B,SAAS,CAAA;AAEb,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAC3C,KAAK,EAAE,SAAS,GAAG,GAAG,EACtB,EAAE,GAAE,EAAE,GAAG,EAAE,GAAG,SAAiB,GAC9B,iBAAiB,CAAC,EAAE,CAAC,CAgBvB;AAED,KAAK,sBAAsB,GACvB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,SAAS,CAAA;AAmCb,KAAK,mBAAmB,GAAG,aAAa,GAAG,SAAS,CAAA;AAYpD,KAAK,iBAAiB,GAAG,SAAS,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HttpRequestErrorType as HttpRequestErrorType_, type TimeoutErrorType } from '../../errors/request.js';
|
|
1
|
+
import { type HttpRequestErrorType as HttpRequestErrorType_, type ResponseBodyTooLargeErrorType, type TimeoutErrorType } from '../../errors/request.js';
|
|
2
2
|
import { type ErrorType } from '../../errors/utils.js';
|
|
3
3
|
import type { RpcRequest, RpcResponse } from '../../types/rpc.js';
|
|
4
4
|
import type { MaybePromise } from '../../types/utils.js';
|
|
@@ -8,6 +8,8 @@ export type HttpRpcClientOptions = {
|
|
|
8
8
|
fetchFn?: ((input: string | URL | Request, init?: RequestInit) => Promise<Response>) | undefined;
|
|
9
9
|
/** Request configuration to pass to `fetch`. */
|
|
10
10
|
fetchOptions?: Omit<RequestInit, 'body'> | undefined;
|
|
11
|
+
/** Maximum response body size in bytes. Set to `false` to disable. @default 10_485_760 */
|
|
12
|
+
maxResponseBodySize?: number | false | undefined;
|
|
11
13
|
/** A callback to handle the request. */
|
|
12
14
|
onRequest?: ((request: Request, init: RequestInit) => MaybePromise<void | undefined | (RequestInit & {
|
|
13
15
|
url?: string | undefined;
|
|
@@ -24,6 +26,8 @@ export type HttpRequestParameters<body extends RpcRequest | RpcRequest[] = RpcRe
|
|
|
24
26
|
fetchFn?: HttpRpcClientOptions['fetchFn'] | undefined;
|
|
25
27
|
/** Request configuration to pass to `fetch`. */
|
|
26
28
|
fetchOptions?: HttpRpcClientOptions['fetchOptions'] | undefined;
|
|
29
|
+
/** Maximum response body size in bytes. Set to `false` to disable. */
|
|
30
|
+
maxResponseBodySize?: HttpRpcClientOptions['maxResponseBodySize'] | undefined;
|
|
27
31
|
/** A callback to handle the response. */
|
|
28
32
|
onRequest?: ((request: Request, init: RequestInit) => MaybePromise<void | undefined | (RequestInit & {
|
|
29
33
|
url?: string | undefined;
|
|
@@ -34,7 +38,7 @@ export type HttpRequestParameters<body extends RpcRequest | RpcRequest[] = RpcRe
|
|
|
34
38
|
timeout?: HttpRpcClientOptions['timeout'] | undefined;
|
|
35
39
|
};
|
|
36
40
|
export type HttpRequestReturnType<body extends RpcRequest | RpcRequest[] = RpcRequest> = body extends RpcRequest[] ? RpcResponse[] : RpcResponse;
|
|
37
|
-
export type HttpRequestErrorType = HttpRequestErrorType_ | TimeoutErrorType | WithTimeoutErrorType | ErrorType;
|
|
41
|
+
export type HttpRequestErrorType = HttpRequestErrorType_ | ResponseBodyTooLargeErrorType | TimeoutErrorType | WithTimeoutErrorType | ErrorType;
|
|
38
42
|
export type HttpRpcClient = {
|
|
39
43
|
request<body extends RpcRequest | RpcRequest[]>(params: HttpRequestParameters<body>): Promise<HttpRequestReturnType<body>>;
|
|
40
44
|
};
|