viem 2.53.1 → 2.54.0
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 +55 -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.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/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/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 +41 -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/wsrusd.js +14 -0
- package/_cjs/tokens/definitions/wsrusd.js.map +1 -0
- package/_cjs/tokens/index.js +64 -0
- package/_cjs/tokens/index.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.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/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/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 +67 -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/wsrusd.js +12 -0
- package/_esm/tokens/definitions/wsrusd.js.map +1 -0
- package/_esm/tokens/index.js +32 -0
- package/_esm/tokens/index.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/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/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 +67 -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/wsrusd.d.ts +11 -0
- package/_types/tokens/definitions/wsrusd.d.ts.map +1 -0
- package/_types/tokens/index.d.ts +31 -0
- package/_types/tokens/index.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 +4 -2
- 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/cusd.ts +13 -0
- package/tokens/definitions/dlusd.ts +13 -0
- package/tokens/definitions/eurau.ts +13 -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 +67 -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/wsrusd.ts +13 -0
- package/tokens/index.ts +31 -0
- package/tokens/package.json +6 -0
- package/utils/encoding/fromRlp.ts +22 -3
- package/utils/rpc/http.ts +70 -2
- package/utils/transaction/parseTransaction.ts +7 -2
package/tempo/Decorator.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from 'abitype'
|
|
2
2
|
import type { Account } from '../accounts/types.js'
|
|
3
|
-
import type
|
|
3
|
+
import { bindActionDecorators, type Client } from '../clients/createClient.js'
|
|
4
4
|
import type { Transport } from '../clients/transports/createTransport.js'
|
|
5
5
|
import type { Chain } from '../types/chain.js'
|
|
6
6
|
import * as accessKeyActions from './actions/accessKey.js'
|
|
@@ -19,7 +19,7 @@ import * as validatorActions from './actions/validator.js'
|
|
|
19
19
|
import * as virtualAddressActions from './actions/virtualAddress.js'
|
|
20
20
|
import * as zoneActions from './actions/zone.js'
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
type DecoratorBase<
|
|
23
23
|
chain extends Chain | undefined = Chain | undefined,
|
|
24
24
|
account extends Account | undefined = Account | undefined,
|
|
25
25
|
> = {
|
|
@@ -3382,13 +3382,15 @@ export type Decorator<
|
|
|
3382
3382
|
* }).extend(tempoActions())
|
|
3383
3383
|
*
|
|
3384
3384
|
* const allowance = await client.token.getAllowance({
|
|
3385
|
+
* account: '0x...',
|
|
3385
3386
|
* spender: '0x...',
|
|
3387
|
+
* token: '0x...',
|
|
3386
3388
|
* })
|
|
3387
3389
|
* ```
|
|
3388
3390
|
*
|
|
3389
3391
|
* @param client - Client.
|
|
3390
3392
|
* @param parameters - Parameters.
|
|
3391
|
-
* @returns The token allowance.
|
|
3393
|
+
* @returns The token allowance, in base units and human-readable form.
|
|
3392
3394
|
*/
|
|
3393
3395
|
getAllowance: (
|
|
3394
3396
|
parameters: tokenActions.getAllowance.Parameters,
|
|
@@ -3409,12 +3411,15 @@ export type Decorator<
|
|
|
3409
3411
|
* transport: http(),
|
|
3410
3412
|
* }).extend(tempoActions())
|
|
3411
3413
|
*
|
|
3412
|
-
* const balance = await client.token.getBalance(
|
|
3414
|
+
* const balance = await client.token.getBalance({
|
|
3415
|
+
* account: '0x...',
|
|
3416
|
+
* token: '0x...',
|
|
3417
|
+
* })
|
|
3413
3418
|
* ```
|
|
3414
3419
|
*
|
|
3415
3420
|
* @param client - Client.
|
|
3416
3421
|
* @param parameters - Parameters.
|
|
3417
|
-
* @returns The token balance.
|
|
3422
|
+
* @returns The token balance, in base units and human-readable form.
|
|
3418
3423
|
*/
|
|
3419
3424
|
getBalance: (
|
|
3420
3425
|
parameters: tokenActions.getBalance.Parameters<account>,
|
|
@@ -3445,6 +3450,32 @@ export type Decorator<
|
|
|
3445
3450
|
getMetadata: (
|
|
3446
3451
|
parameters: tokenActions.getMetadata.Parameters,
|
|
3447
3452
|
) => Promise<tokenActions.getMetadata.ReturnValue>
|
|
3453
|
+
/**
|
|
3454
|
+
* Gets the total supply of a TIP20 token.
|
|
3455
|
+
*
|
|
3456
|
+
* @example
|
|
3457
|
+
* ```ts
|
|
3458
|
+
* import { createClient, http } from 'viem'
|
|
3459
|
+
* import { tempo } from 'viem/chains'
|
|
3460
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3461
|
+
*
|
|
3462
|
+
* const client = createClient({
|
|
3463
|
+
* chain: tempo
|
|
3464
|
+
* transport: http(),
|
|
3465
|
+
* }).extend(tempoActions())
|
|
3466
|
+
*
|
|
3467
|
+
* const totalSupply = await client.token.getTotalSupply({
|
|
3468
|
+
* token: '0x...',
|
|
3469
|
+
* })
|
|
3470
|
+
* ```
|
|
3471
|
+
*
|
|
3472
|
+
* @param client - Client.
|
|
3473
|
+
* @param parameters - Parameters.
|
|
3474
|
+
* @returns The token total supply, in base units and human-readable form.
|
|
3475
|
+
*/
|
|
3476
|
+
getTotalSupply: (
|
|
3477
|
+
parameters: tokenActions.getTotalSupply.Parameters,
|
|
3478
|
+
) => Promise<tokenActions.getTotalSupply.ReturnValue>
|
|
3448
3479
|
/**
|
|
3449
3480
|
* Gets the admin role for a specific role in a TIP20 token.
|
|
3450
3481
|
*
|
|
@@ -5074,6 +5105,140 @@ export type Decorator<
|
|
|
5074
5105
|
}
|
|
5075
5106
|
}
|
|
5076
5107
|
|
|
5108
|
+
type BoundHelper<helper> = helper extends (
|
|
5109
|
+
...parameters: infer parameters
|
|
5110
|
+
) => infer returnType
|
|
5111
|
+
? parameters extends [Client<any, any, any>, infer args, ...unknown[]]
|
|
5112
|
+
? (args: args) => returnType
|
|
5113
|
+
: parameters extends [Client<any, any, any>]
|
|
5114
|
+
? () => returnType
|
|
5115
|
+
: parameters extends [infer args, ...unknown[]]
|
|
5116
|
+
? (args: args) => returnType
|
|
5117
|
+
: () => returnType
|
|
5118
|
+
: never
|
|
5119
|
+
|
|
5120
|
+
type BoundActionHelpers<action> = (action extends { call: infer helper }
|
|
5121
|
+
? { call: BoundHelper<helper> }
|
|
5122
|
+
: {}) &
|
|
5123
|
+
(action extends { calls: infer helper }
|
|
5124
|
+
? { calls: BoundHelper<helper> }
|
|
5125
|
+
: {}) &
|
|
5126
|
+
(action extends { callWithPeriod: infer helper }
|
|
5127
|
+
? { callWithPeriod: BoundHelper<helper> }
|
|
5128
|
+
: {}) &
|
|
5129
|
+
(action extends { estimateGas: infer helper }
|
|
5130
|
+
? { estimateGas: BoundHelper<helper> }
|
|
5131
|
+
: {}) &
|
|
5132
|
+
(action extends { simulate: infer helper }
|
|
5133
|
+
? { simulate: BoundHelper<helper> }
|
|
5134
|
+
: {}) &
|
|
5135
|
+
(action extends { extractEvent: infer helper }
|
|
5136
|
+
? { extractEvent: BoundHelper<helper> }
|
|
5137
|
+
: {}) &
|
|
5138
|
+
(action extends { extractEvents: infer helper }
|
|
5139
|
+
? { extractEvents: BoundHelper<helper> }
|
|
5140
|
+
: {})
|
|
5141
|
+
|
|
5142
|
+
type BoundAction<action> = action extends (
|
|
5143
|
+
...parameters: infer parameters
|
|
5144
|
+
) => infer returnType
|
|
5145
|
+
? (parameters extends [Client<any, any, any>, infer args, ...unknown[]]
|
|
5146
|
+
? (args: args) => returnType
|
|
5147
|
+
: parameters extends [Client<any, any, any>]
|
|
5148
|
+
? () => returnType
|
|
5149
|
+
: never) &
|
|
5150
|
+
BoundActionHelpers<action>
|
|
5151
|
+
: never
|
|
5152
|
+
|
|
5153
|
+
type DecorateNamespace<namespace, actions> = {
|
|
5154
|
+
[key in keyof namespace]: key extends keyof actions
|
|
5155
|
+
? namespace[key] & BoundActionHelpers<actions[key]>
|
|
5156
|
+
: namespace[key]
|
|
5157
|
+
} & {
|
|
5158
|
+
[key in Exclude<keyof actions, keyof namespace> as actions[key] extends (
|
|
5159
|
+
...parameters: any
|
|
5160
|
+
) => any
|
|
5161
|
+
? key
|
|
5162
|
+
: never]: BoundAction<actions[key]>
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5165
|
+
export type Decorator<
|
|
5166
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
5167
|
+
account extends Account | undefined = Account | undefined,
|
|
5168
|
+
> = {
|
|
5169
|
+
accessKey: DecorateNamespace<
|
|
5170
|
+
DecoratorBase<chain, account>['accessKey'],
|
|
5171
|
+
typeof accessKeyActions
|
|
5172
|
+
>
|
|
5173
|
+
amm: DecorateNamespace<
|
|
5174
|
+
DecoratorBase<chain, account>['amm'],
|
|
5175
|
+
typeof ammActions
|
|
5176
|
+
>
|
|
5177
|
+
channel: DecorateNamespace<
|
|
5178
|
+
DecoratorBase<chain, account>['channel'],
|
|
5179
|
+
typeof channelActions
|
|
5180
|
+
>
|
|
5181
|
+
dex: DecorateNamespace<
|
|
5182
|
+
DecoratorBase<chain, account>['dex'],
|
|
5183
|
+
typeof dexActions
|
|
5184
|
+
>
|
|
5185
|
+
faucet: DecorateNamespace<
|
|
5186
|
+
DecoratorBase<chain, account>['faucet'],
|
|
5187
|
+
typeof faucetActions
|
|
5188
|
+
>
|
|
5189
|
+
nonce: DecorateNamespace<
|
|
5190
|
+
DecoratorBase<chain, account>['nonce'],
|
|
5191
|
+
typeof nonceActions
|
|
5192
|
+
>
|
|
5193
|
+
fee: DecorateNamespace<
|
|
5194
|
+
DecoratorBase<chain, account>['fee'],
|
|
5195
|
+
typeof feeActions
|
|
5196
|
+
>
|
|
5197
|
+
policy: DecorateNamespace<
|
|
5198
|
+
DecoratorBase<chain, account>['policy'],
|
|
5199
|
+
typeof policyActions
|
|
5200
|
+
>
|
|
5201
|
+
receivePolicy: DecorateNamespace<
|
|
5202
|
+
DecoratorBase<chain, account>['receivePolicy'],
|
|
5203
|
+
typeof receivePolicyActions
|
|
5204
|
+
>
|
|
5205
|
+
reward: DecorateNamespace<
|
|
5206
|
+
DecoratorBase<chain, account>['reward'],
|
|
5207
|
+
typeof rewardActions
|
|
5208
|
+
>
|
|
5209
|
+
simulate: DecorateNamespace<
|
|
5210
|
+
DecoratorBase<chain, account>['simulate'],
|
|
5211
|
+
typeof simulateActions
|
|
5212
|
+
>
|
|
5213
|
+
token: DecorateNamespace<
|
|
5214
|
+
DecoratorBase<chain, account>['token'],
|
|
5215
|
+
typeof tokenActions
|
|
5216
|
+
>
|
|
5217
|
+
validator: DecorateNamespace<
|
|
5218
|
+
DecoratorBase<chain, account>['validator'],
|
|
5219
|
+
typeof validatorActions
|
|
5220
|
+
>
|
|
5221
|
+
virtualAddress: DecorateNamespace<
|
|
5222
|
+
DecoratorBase<chain, account>['virtualAddress'],
|
|
5223
|
+
typeof virtualAddressActions
|
|
5224
|
+
>
|
|
5225
|
+
zone: DecorateNamespace<
|
|
5226
|
+
DecoratorBase<chain, account>['zone'],
|
|
5227
|
+
typeof zoneActions
|
|
5228
|
+
>
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5231
|
+
function bindActions<actions extends Record<string, unknown>>(
|
|
5232
|
+
client: Client<Transport, Chain | undefined, Account | undefined>,
|
|
5233
|
+
actions: actions,
|
|
5234
|
+
keys: readonly (keyof actions)[],
|
|
5235
|
+
) {
|
|
5236
|
+
const bound: Record<string, unknown> = {}
|
|
5237
|
+
for (const key of keys)
|
|
5238
|
+
bound[key as string] = bindActionDecorators(client, actions[key])
|
|
5239
|
+
return bound
|
|
5240
|
+
}
|
|
5241
|
+
|
|
5077
5242
|
export function decorator() {
|
|
5078
5243
|
return <
|
|
5079
5244
|
transport extends Transport,
|
|
@@ -5083,337 +5248,233 @@ export function decorator() {
|
|
|
5083
5248
|
client: Client<transport, chain, account>,
|
|
5084
5249
|
): Decorator<chain, account> => {
|
|
5085
5250
|
return {
|
|
5086
|
-
accessKey:
|
|
5087
|
-
authorize
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
grantRolesSync: (parameters) =>
|
|
5315
|
-
tokenActions.grantRolesSync(client, parameters),
|
|
5316
|
-
mint: (parameters) => tokenActions.mint(client, parameters),
|
|
5317
|
-
mintSync: (parameters) => tokenActions.mintSync(client, parameters),
|
|
5318
|
-
pause: (parameters) => tokenActions.pause(client, parameters),
|
|
5319
|
-
pauseSync: (parameters) => tokenActions.pauseSync(client, parameters),
|
|
5320
|
-
renounceRoles: (parameters) =>
|
|
5321
|
-
tokenActions.renounceRoles(client, parameters),
|
|
5322
|
-
renounceRolesSync: (parameters) =>
|
|
5323
|
-
tokenActions.renounceRolesSync(client, parameters),
|
|
5324
|
-
revokeRoles: (parameters) =>
|
|
5325
|
-
tokenActions.revokeRoles(client, parameters),
|
|
5326
|
-
revokeRolesSync: (parameters) =>
|
|
5327
|
-
tokenActions.revokeRolesSync(client, parameters),
|
|
5328
|
-
setSupplyCap: (parameters) =>
|
|
5329
|
-
tokenActions.setSupplyCap(client, parameters),
|
|
5330
|
-
setSupplyCapSync: (parameters) =>
|
|
5331
|
-
tokenActions.setSupplyCapSync(client, parameters),
|
|
5332
|
-
setRoleAdmin: (parameters) =>
|
|
5333
|
-
tokenActions.setRoleAdmin(client, parameters),
|
|
5334
|
-
setRoleAdminSync: (parameters) =>
|
|
5335
|
-
tokenActions.setRoleAdminSync(client, parameters),
|
|
5336
|
-
transfer: (parameters) => tokenActions.transfer(client, parameters),
|
|
5337
|
-
transferSync: (parameters) =>
|
|
5338
|
-
tokenActions.transferSync(client, parameters),
|
|
5339
|
-
unpause: (parameters) => tokenActions.unpause(client, parameters),
|
|
5340
|
-
unpauseSync: (parameters) =>
|
|
5341
|
-
tokenActions.unpauseSync(client, parameters),
|
|
5342
|
-
watchApprove: (parameters) =>
|
|
5343
|
-
tokenActions.watchApprove(client, parameters),
|
|
5344
|
-
watchBurn: (parameters) => tokenActions.watchBurn(client, parameters),
|
|
5345
|
-
watchCreate: (parameters) =>
|
|
5346
|
-
tokenActions.watchCreate(client, parameters),
|
|
5347
|
-
watchMint: (parameters) => tokenActions.watchMint(client, parameters),
|
|
5348
|
-
watchAdminRole: (parameters) =>
|
|
5349
|
-
tokenActions.watchAdminRole(client, parameters),
|
|
5350
|
-
watchRole: (parameters) => tokenActions.watchRole(client, parameters),
|
|
5351
|
-
watchTransfer: (parameters) =>
|
|
5352
|
-
tokenActions.watchTransfer(client, parameters),
|
|
5353
|
-
},
|
|
5354
|
-
validator: {
|
|
5355
|
-
add: (parameters) => validatorActions.add(client, parameters),
|
|
5356
|
-
addSync: (parameters) => validatorActions.addSync(client, parameters),
|
|
5357
|
-
changeOwner: (parameters) =>
|
|
5358
|
-
validatorActions.changeOwner(client, parameters),
|
|
5359
|
-
changeOwnerSync: (parameters) =>
|
|
5360
|
-
validatorActions.changeOwnerSync(client, parameters),
|
|
5361
|
-
changeStatus: (parameters) =>
|
|
5362
|
-
validatorActions.changeStatus(client, parameters),
|
|
5363
|
-
changeStatusSync: (parameters) =>
|
|
5364
|
-
validatorActions.changeStatusSync(client, parameters),
|
|
5365
|
-
get: (parameters) => validatorActions.get(client, parameters),
|
|
5366
|
-
getByIndex: (parameters) =>
|
|
5367
|
-
validatorActions.getByIndex(client, parameters),
|
|
5368
|
-
getCount: (parameters) => validatorActions.getCount(client, parameters),
|
|
5369
|
-
getNextFullDkgCeremony: (parameters) =>
|
|
5370
|
-
validatorActions.getNextFullDkgCeremony(client, parameters),
|
|
5371
|
-
getOwner: (parameters) => validatorActions.getOwner(client, parameters),
|
|
5372
|
-
list: (parameters) => validatorActions.list(client, parameters),
|
|
5373
|
-
setNextFullDkgCeremony: (parameters) =>
|
|
5374
|
-
validatorActions.setNextFullDkgCeremony(client, parameters),
|
|
5375
|
-
setNextFullDkgCeremonySync: (parameters) =>
|
|
5376
|
-
validatorActions.setNextFullDkgCeremonySync(client, parameters),
|
|
5377
|
-
update: (parameters) => validatorActions.update(client, parameters),
|
|
5378
|
-
updateSync: (parameters) =>
|
|
5379
|
-
validatorActions.updateSync(client, parameters),
|
|
5380
|
-
},
|
|
5381
|
-
virtualAddress: {
|
|
5382
|
-
getMasterAddress: (parameters) =>
|
|
5383
|
-
virtualAddressActions.getMasterAddress(client, parameters),
|
|
5384
|
-
registerMaster: (parameters) =>
|
|
5385
|
-
virtualAddressActions.registerMaster(client, parameters),
|
|
5386
|
-
registerMasterSync: (parameters) =>
|
|
5387
|
-
virtualAddressActions.registerMasterSync(client, parameters),
|
|
5388
|
-
resolve: (parameters) =>
|
|
5389
|
-
virtualAddressActions.resolve(client, parameters),
|
|
5390
|
-
},
|
|
5391
|
-
zone: {
|
|
5392
|
-
deposit: (parameters) => zoneActions.deposit(client, parameters),
|
|
5393
|
-
depositSync: (parameters) =>
|
|
5394
|
-
zoneActions.depositSync(client, parameters),
|
|
5395
|
-
encryptedDeposit: (parameters) =>
|
|
5396
|
-
zoneActions.encryptedDeposit(client, parameters),
|
|
5397
|
-
encryptedDepositSync: (parameters) =>
|
|
5398
|
-
zoneActions.encryptedDepositSync(client, parameters),
|
|
5399
|
-
getAuthorizationTokenInfo: () =>
|
|
5400
|
-
zoneActions.getAuthorizationTokenInfo(client),
|
|
5401
|
-
getDepositStatus: (parameters) =>
|
|
5402
|
-
zoneActions.getDepositStatus(client, parameters),
|
|
5403
|
-
getWithdrawalFee: (parameters) =>
|
|
5404
|
-
zoneActions.getWithdrawalFee(client, parameters),
|
|
5405
|
-
getZoneInfo: () => zoneActions.getZoneInfo(client),
|
|
5406
|
-
requestWithdrawal: (parameters) =>
|
|
5407
|
-
zoneActions.requestWithdrawal(client, parameters),
|
|
5408
|
-
requestWithdrawalSync: (parameters) =>
|
|
5409
|
-
zoneActions.requestWithdrawalSync(client, parameters),
|
|
5410
|
-
requestVerifiableWithdrawal: (parameters) =>
|
|
5411
|
-
zoneActions.requestVerifiableWithdrawal(client, parameters),
|
|
5412
|
-
requestVerifiableWithdrawalSync: (parameters) =>
|
|
5413
|
-
zoneActions.requestVerifiableWithdrawalSync(client, parameters),
|
|
5414
|
-
signAuthorizationToken: (parameters) =>
|
|
5415
|
-
zoneActions.signAuthorizationToken(client, parameters),
|
|
5416
|
-
},
|
|
5417
|
-
}
|
|
5251
|
+
accessKey: bindActions(client, accessKeyActions, [
|
|
5252
|
+
'authorize',
|
|
5253
|
+
'authorizeSync',
|
|
5254
|
+
'burnWitness',
|
|
5255
|
+
'burnWitnessSync',
|
|
5256
|
+
'getMetadata',
|
|
5257
|
+
'getRemainingLimit',
|
|
5258
|
+
'isAdmin',
|
|
5259
|
+
'isWitnessBurned',
|
|
5260
|
+
'revoke',
|
|
5261
|
+
'revokeSync',
|
|
5262
|
+
'signAuthorization',
|
|
5263
|
+
'updateLimit',
|
|
5264
|
+
'updateLimitSync',
|
|
5265
|
+
'verifyHash',
|
|
5266
|
+
'watchAdminAuthorized',
|
|
5267
|
+
'watchWitness',
|
|
5268
|
+
'watchWitnessBurned',
|
|
5269
|
+
]),
|
|
5270
|
+
amm: bindActions(client, ammActions, [
|
|
5271
|
+
'getPool',
|
|
5272
|
+
'getLiquidityBalance',
|
|
5273
|
+
'burn',
|
|
5274
|
+
'burnSync',
|
|
5275
|
+
'mint',
|
|
5276
|
+
'mintSync',
|
|
5277
|
+
'rebalanceSwap',
|
|
5278
|
+
'rebalanceSwapSync',
|
|
5279
|
+
'watchBurn',
|
|
5280
|
+
'watchMint',
|
|
5281
|
+
'watchRebalanceSwap',
|
|
5282
|
+
]),
|
|
5283
|
+
channel: bindActions(client, channelActions, [
|
|
5284
|
+
'close',
|
|
5285
|
+
'closeSync',
|
|
5286
|
+
'getStates',
|
|
5287
|
+
'open',
|
|
5288
|
+
'openSync',
|
|
5289
|
+
'requestClose',
|
|
5290
|
+
'requestCloseSync',
|
|
5291
|
+
'settle',
|
|
5292
|
+
'settleSync',
|
|
5293
|
+
'signVoucher',
|
|
5294
|
+
'topUp',
|
|
5295
|
+
'topUpSync',
|
|
5296
|
+
'withdraw',
|
|
5297
|
+
'withdrawSync',
|
|
5298
|
+
]),
|
|
5299
|
+
dex: bindActions(client, dexActions, [
|
|
5300
|
+
'buy',
|
|
5301
|
+
'buySync',
|
|
5302
|
+
'cancel',
|
|
5303
|
+
'cancelSync',
|
|
5304
|
+
'cancelStale',
|
|
5305
|
+
'cancelStaleSync',
|
|
5306
|
+
'createPair',
|
|
5307
|
+
'createPairSync',
|
|
5308
|
+
'getBalance',
|
|
5309
|
+
'getBuyQuote',
|
|
5310
|
+
'getOrder',
|
|
5311
|
+
'getOrderbook',
|
|
5312
|
+
'getTickLevel',
|
|
5313
|
+
'getSellQuote',
|
|
5314
|
+
'place',
|
|
5315
|
+
'placeSync',
|
|
5316
|
+
'placeFlip',
|
|
5317
|
+
'placeFlipSync',
|
|
5318
|
+
'sell',
|
|
5319
|
+
'sellSync',
|
|
5320
|
+
'withdraw',
|
|
5321
|
+
'withdrawSync',
|
|
5322
|
+
'watchFlipOrderPlaced',
|
|
5323
|
+
'watchOrderCancelled',
|
|
5324
|
+
'watchOrderFilled',
|
|
5325
|
+
'watchOrderPlaced',
|
|
5326
|
+
]),
|
|
5327
|
+
faucet: bindActions(client, faucetActions, ['fund', 'fundSync']),
|
|
5328
|
+
nonce: bindActions(client, nonceActions, [
|
|
5329
|
+
'getNonce',
|
|
5330
|
+
'watchNonceIncremented',
|
|
5331
|
+
]),
|
|
5332
|
+
fee: bindActions(client, feeActions, [
|
|
5333
|
+
'validateToken',
|
|
5334
|
+
'getUserToken',
|
|
5335
|
+
'setUserToken',
|
|
5336
|
+
'setUserTokenSync',
|
|
5337
|
+
'getValidatorToken',
|
|
5338
|
+
'setValidatorToken',
|
|
5339
|
+
'setValidatorTokenSync',
|
|
5340
|
+
'watchSetUserToken',
|
|
5341
|
+
'watchSetValidatorToken',
|
|
5342
|
+
]),
|
|
5343
|
+
policy: bindActions(client, policyActions, [
|
|
5344
|
+
'create',
|
|
5345
|
+
'createSync',
|
|
5346
|
+
'setAdmin',
|
|
5347
|
+
'setAdminSync',
|
|
5348
|
+
'modifyWhitelist',
|
|
5349
|
+
'modifyWhitelistSync',
|
|
5350
|
+
'modifyBlacklist',
|
|
5351
|
+
'modifyBlacklistSync',
|
|
5352
|
+
'getData',
|
|
5353
|
+
'isAuthorized',
|
|
5354
|
+
'watchCreate',
|
|
5355
|
+
'watchAdminUpdated',
|
|
5356
|
+
'watchWhitelistUpdated',
|
|
5357
|
+
'watchBlacklistUpdated',
|
|
5358
|
+
]),
|
|
5359
|
+
receivePolicy: bindActions(client, receivePolicyActions, [
|
|
5360
|
+
'burn',
|
|
5361
|
+
'burnSync',
|
|
5362
|
+
'claim',
|
|
5363
|
+
'claimSync',
|
|
5364
|
+
'get',
|
|
5365
|
+
'getBlockedBalance',
|
|
5366
|
+
'set',
|
|
5367
|
+
'setSync',
|
|
5368
|
+
'validate',
|
|
5369
|
+
'watchBlocked',
|
|
5370
|
+
'watchBurned',
|
|
5371
|
+
'watchClaimed',
|
|
5372
|
+
'watchUpdated',
|
|
5373
|
+
]),
|
|
5374
|
+
reward: bindActions(client, rewardActions, [
|
|
5375
|
+
'claim',
|
|
5376
|
+
'claimSync',
|
|
5377
|
+
'distribute',
|
|
5378
|
+
'distributeSync',
|
|
5379
|
+
'getGlobalRewardPerToken',
|
|
5380
|
+
'getPendingRewards',
|
|
5381
|
+
'getUserRewardInfo',
|
|
5382
|
+
'setRecipient',
|
|
5383
|
+
'setRecipientSync',
|
|
5384
|
+
'watchRewardDistributed',
|
|
5385
|
+
'watchRewardRecipientSet',
|
|
5386
|
+
]),
|
|
5387
|
+
simulate: bindActions(client, simulateActions, [
|
|
5388
|
+
'simulateBlocks',
|
|
5389
|
+
'simulateCalls',
|
|
5390
|
+
]),
|
|
5391
|
+
token: bindActions(client, tokenActions, [
|
|
5392
|
+
'approve',
|
|
5393
|
+
'approveSync',
|
|
5394
|
+
'burnBlocked',
|
|
5395
|
+
'burnBlockedSync',
|
|
5396
|
+
'burn',
|
|
5397
|
+
'burnSync',
|
|
5398
|
+
'changeTransferPolicy',
|
|
5399
|
+
'changeTransferPolicySync',
|
|
5400
|
+
'create',
|
|
5401
|
+
'createSync',
|
|
5402
|
+
'getAllowance',
|
|
5403
|
+
'getBalance',
|
|
5404
|
+
'getMetadata',
|
|
5405
|
+
'getTotalSupply',
|
|
5406
|
+
'getRoleAdmin',
|
|
5407
|
+
'hasRole',
|
|
5408
|
+
'grantRoles',
|
|
5409
|
+
'grantRolesSync',
|
|
5410
|
+
'mint',
|
|
5411
|
+
'mintSync',
|
|
5412
|
+
'pause',
|
|
5413
|
+
'pauseSync',
|
|
5414
|
+
'renounceRoles',
|
|
5415
|
+
'renounceRolesSync',
|
|
5416
|
+
'revokeRoles',
|
|
5417
|
+
'revokeRolesSync',
|
|
5418
|
+
'setSupplyCap',
|
|
5419
|
+
'setSupplyCapSync',
|
|
5420
|
+
'setRoleAdmin',
|
|
5421
|
+
'setRoleAdminSync',
|
|
5422
|
+
'transfer',
|
|
5423
|
+
'transferSync',
|
|
5424
|
+
'unpause',
|
|
5425
|
+
'unpauseSync',
|
|
5426
|
+
'prepareUpdateQuoteToken',
|
|
5427
|
+
'prepareUpdateQuoteTokenSync',
|
|
5428
|
+
'updateQuoteToken',
|
|
5429
|
+
'updateQuoteTokenSync',
|
|
5430
|
+
'watchApprove',
|
|
5431
|
+
'watchBurn',
|
|
5432
|
+
'watchCreate',
|
|
5433
|
+
'watchMint',
|
|
5434
|
+
'watchAdminRole',
|
|
5435
|
+
'watchRole',
|
|
5436
|
+
'watchTransfer',
|
|
5437
|
+
'watchUpdateQuoteToken',
|
|
5438
|
+
]),
|
|
5439
|
+
validator: bindActions(client, validatorActions, [
|
|
5440
|
+
'add',
|
|
5441
|
+
'addSync',
|
|
5442
|
+
'changeOwner',
|
|
5443
|
+
'changeOwnerSync',
|
|
5444
|
+
'changeStatus',
|
|
5445
|
+
'changeStatusSync',
|
|
5446
|
+
'get',
|
|
5447
|
+
'getByIndex',
|
|
5448
|
+
'getCount',
|
|
5449
|
+
'getNextFullDkgCeremony',
|
|
5450
|
+
'getOwner',
|
|
5451
|
+
'list',
|
|
5452
|
+
'setNextFullDkgCeremony',
|
|
5453
|
+
'setNextFullDkgCeremonySync',
|
|
5454
|
+
'update',
|
|
5455
|
+
'updateSync',
|
|
5456
|
+
]),
|
|
5457
|
+
virtualAddress: bindActions(client, virtualAddressActions, [
|
|
5458
|
+
'getMasterAddress',
|
|
5459
|
+
'registerMaster',
|
|
5460
|
+
'registerMasterSync',
|
|
5461
|
+
'resolve',
|
|
5462
|
+
]),
|
|
5463
|
+
zone: bindActions(client, zoneActions, [
|
|
5464
|
+
'deposit',
|
|
5465
|
+
'depositSync',
|
|
5466
|
+
'encryptedDeposit',
|
|
5467
|
+
'encryptedDepositSync',
|
|
5468
|
+
'getAuthorizationTokenInfo',
|
|
5469
|
+
'getDepositStatus',
|
|
5470
|
+
'getWithdrawalFee',
|
|
5471
|
+
'getZoneInfo',
|
|
5472
|
+
'requestWithdrawal',
|
|
5473
|
+
'requestWithdrawalSync',
|
|
5474
|
+
'requestVerifiableWithdrawal',
|
|
5475
|
+
'requestVerifiableWithdrawalSync',
|
|
5476
|
+
'signAuthorizationToken',
|
|
5477
|
+
]),
|
|
5478
|
+
} as Decorator<chain, account>
|
|
5418
5479
|
}
|
|
5419
5480
|
}
|