viem 3.0.0-next.10 → 3.0.0-next.13
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/dist/chains/definitions/arc.d.ts +15 -1
- package/dist/chains/definitions/arc.d.ts.map +1 -1
- package/dist/chains/definitions/arc.js +19 -1
- package/dist/chains/definitions/arc.js.map +1 -1
- package/dist/chains/definitions/berachainBepolia.d.ts +1 -1
- package/dist/chains/definitions/berachainBepolia.js +1 -1
- package/dist/chains/definitions/blockdag.d.ts +18 -0
- package/dist/chains/definitions/blockdag.d.ts.map +1 -0
- package/dist/chains/definitions/blockdag.js +18 -0
- package/dist/chains/definitions/blockdag.js.map +1 -0
- package/dist/chains/definitions/candyChain.d.ts +27 -0
- package/dist/chains/definitions/candyChain.d.ts.map +1 -0
- package/dist/chains/definitions/candyChain.js +26 -0
- package/dist/chains/definitions/candyChain.js.map +1 -0
- package/dist/chains/definitions/creditCoin3Devnet.d.ts +6 -0
- package/dist/chains/definitions/creditCoin3Devnet.d.ts.map +1 -1
- package/dist/chains/definitions/creditCoin3Devnet.js +6 -0
- package/dist/chains/definitions/creditCoin3Devnet.js.map +1 -1
- package/dist/chains/definitions/creditCoin3Mainnet.d.ts +5 -1
- package/dist/chains/definitions/creditCoin3Mainnet.d.ts.map +1 -1
- package/dist/chains/definitions/creditCoin3Mainnet.js +4 -0
- package/dist/chains/definitions/creditCoin3Mainnet.js.map +1 -1
- package/dist/chains/definitions/creditCoin3Testnet.d.ts +5 -1
- package/dist/chains/definitions/creditCoin3Testnet.d.ts.map +1 -1
- package/dist/chains/definitions/creditCoin3Testnet.js +4 -0
- package/dist/chains/definitions/creditCoin3Testnet.js.map +1 -1
- package/dist/chains/definitions/crymad.d.ts +25 -0
- package/dist/chains/definitions/crymad.d.ts.map +1 -0
- package/dist/chains/definitions/crymad.js +23 -0
- package/dist/chains/definitions/crymad.js.map +1 -0
- package/dist/chains/definitions/crymadL2.d.ts +26 -0
- package/dist/chains/definitions/crymadL2.d.ts.map +1 -0
- package/dist/chains/definitions/crymadL2.js +24 -0
- package/dist/chains/definitions/crymadL2.js.map +1 -0
- package/dist/chains/definitions/eCanna.d.ts +18 -0
- package/dist/chains/definitions/eCanna.d.ts.map +1 -0
- package/dist/chains/definitions/eCanna.js +18 -0
- package/dist/chains/definitions/eCanna.js.map +1 -0
- package/dist/chains/definitions/eCannaTestnet.d.ts +19 -0
- package/dist/chains/definitions/eCannaTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/eCannaTestnet.js +19 -0
- package/dist/chains/definitions/eCannaTestnet.js.map +1 -0
- package/dist/chains/definitions/hausTestnet.d.ts +20 -0
- package/dist/chains/definitions/hausTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/hausTestnet.js +18 -0
- package/dist/chains/definitions/hausTestnet.js.map +1 -0
- package/dist/chains/definitions/hyveChain.d.ts +26 -0
- package/dist/chains/definitions/hyveChain.d.ts.map +1 -0
- package/dist/chains/definitions/hyveChain.js +22 -0
- package/dist/chains/definitions/hyveChain.js.map +1 -0
- package/dist/chains/definitions/kortana.d.ts +18 -0
- package/dist/chains/definitions/kortana.d.ts.map +1 -0
- package/dist/chains/definitions/kortana.js +16 -0
- package/dist/chains/definitions/kortana.js.map +1 -0
- package/dist/chains/definitions/morphTachyon.d.ts +18 -0
- package/dist/chains/definitions/morphTachyon.d.ts.map +1 -0
- package/dist/chains/definitions/morphTachyon.js +16 -0
- package/dist/chains/definitions/morphTachyon.js.map +1 -0
- package/dist/chains/definitions/morphTachyonTestnet.d.ts +19 -0
- package/dist/chains/definitions/morphTachyonTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/morphTachyonTestnet.js +17 -0
- package/dist/chains/definitions/morphTachyonTestnet.js.map +1 -0
- package/dist/chains/definitions/rabbitChainTestnet.d.ts +19 -0
- package/dist/chains/definitions/rabbitChainTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/rabbitChainTestnet.js +19 -0
- package/dist/chains/definitions/rabbitChainTestnet.js.map +1 -0
- package/dist/chains/definitions/robinhood.d.ts +2 -1
- package/dist/chains/definitions/robinhood.d.ts.map +1 -1
- package/dist/chains/definitions/robinhood.js +6 -2
- package/dist/chains/definitions/robinhood.js.map +1 -1
- package/dist/chains/definitions/tempo.d.ts +11 -3
- package/dist/chains/definitions/tempo.d.ts.map +1 -1
- package/dist/chains/definitions/tempo.js +10 -0
- package/dist/chains/definitions/tempo.js.map +1 -1
- package/dist/chains/definitions/tempoModerato.d.ts +11 -3
- package/dist/chains/definitions/tempoModerato.d.ts.map +1 -1
- package/dist/chains/definitions/tempoModerato.js +10 -0
- package/dist/chains/definitions/tempoModerato.js.map +1 -1
- package/dist/chains/definitions/whitechainSepolia.d.ts +54 -2
- package/dist/chains/definitions/whitechainSepolia.d.ts.map +1 -1
- package/dist/chains/definitions/whitechainSepolia.js +27 -3
- package/dist/chains/definitions/whitechainSepolia.js.map +1 -1
- package/dist/chains/definitions/xgrTestnet.d.ts +19 -0
- package/dist/chains/definitions/xgrTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/xgrTestnet.js +19 -0
- package/dist/chains/definitions/xgrTestnet.js.map +1 -0
- package/dist/chains/definitions/ynxTestnet.d.ts +19 -0
- package/dist/chains/definitions/ynxTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/ynxTestnet.js +17 -0
- package/dist/chains/definitions/ynxTestnet.js.map +1 -0
- package/dist/chains/definitions/zagros.d.ts +26 -0
- package/dist/chains/definitions/zagros.d.ts.map +1 -0
- package/dist/chains/definitions/zagros.js +26 -0
- package/dist/chains/definitions/zagros.js.map +1 -0
- package/dist/chains/index.d.ts +16 -0
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +15 -0
- package/dist/chains/index.js.map +1 -1
- package/dist/core/actions/address/getStorageValues.d.ts +30 -0
- package/dist/core/actions/address/getStorageValues.d.ts.map +1 -0
- package/dist/core/actions/address/getStorageValues.js +29 -0
- package/dist/core/actions/address/getStorageValues.js.map +1 -0
- package/dist/core/actions/address/index.d.ts +1 -0
- package/dist/core/actions/address/index.d.ts.map +1 -1
- package/dist/core/actions/address/index.js +1 -0
- package/dist/core/actions/address/index.js.map +1 -1
- package/dist/core/actions/block/simulate.d.ts +2 -0
- package/dist/core/actions/block/simulate.d.ts.map +1 -1
- package/dist/core/actions/block/simulate.js +3 -0
- package/dist/core/actions/block/simulate.js.map +1 -1
- package/dist/core/actions/multicall.d.ts.map +1 -1
- package/dist/core/actions/multicall.js +7 -1
- package/dist/core/actions/multicall.js.map +1 -1
- package/dist/core/actions/siwe/verify.d.ts.map +1 -1
- package/dist/core/actions/siwe/verify.js +2 -1
- package/dist/core/actions/siwe/verify.js.map +1 -1
- package/dist/core/actions/transaction/Errors.d.ts +1 -0
- package/dist/core/actions/transaction/Errors.d.ts.map +1 -1
- package/dist/core/actions/transaction/Errors.js +1 -0
- package/dist/core/actions/transaction/Errors.js.map +1 -1
- package/dist/core/actions/transaction/fill.d.ts +10 -1
- package/dist/core/actions/transaction/fill.d.ts.map +1 -1
- package/dist/core/actions/transaction/fill.js +71 -38
- package/dist/core/actions/transaction/fill.js.map +1 -1
- package/dist/core/actions/transaction/prepare.d.ts.map +1 -1
- package/dist/core/actions/transaction/prepare.js +4 -1
- package/dist/core/actions/transaction/prepare.js.map +1 -1
- package/dist/core/actions/transaction/sign.d.ts.map +1 -1
- package/dist/core/actions/transaction/sign.js +3 -1
- package/dist/core/actions/transaction/sign.js.map +1 -1
- package/dist/core/actions/wallet/sendCalls.d.ts.map +1 -1
- package/dist/core/actions/wallet/sendCalls.js +1 -0
- package/dist/core/actions/wallet/sendCalls.js.map +1 -1
- package/dist/core/internal/transport.js +1 -1
- package/dist/core/internal/transport.js.map +1 -1
- package/dist/erc4337/actions/userOperation/get.d.ts.map +1 -1
- package/dist/erc4337/actions/userOperation/get.js +3 -1
- package/dist/erc4337/actions/userOperation/get.js.map +1 -1
- package/dist/erc4337/actions/userOperation/waitForReceipt.js +1 -1
- package/dist/erc4337/actions/userOperation/waitForReceipt.js.map +1 -1
- package/dist/internal/inference.d.ts +24 -0
- package/dist/internal/inference.d.ts.map +1 -1
- package/dist/node/transports/ipc.d.ts.map +1 -1
- package/dist/node/transports/ipc.js +20 -2
- package/dist/node/transports/ipc.js.map +1 -1
- package/dist/op-stack/actions/l1/getGame.js +1 -1
- package/dist/op-stack/actions/l1/getGame.js.map +1 -1
- package/dist/op-stack/actions/l1/getGames.js +1 -1
- package/dist/op-stack/actions/l1/getGames.js.map +1 -1
- package/dist/op-stack/actions/l1/getTimeToNextGame.js +1 -1
- package/dist/op-stack/actions/l1/getTimeToNextGame.js.map +1 -1
- package/dist/op-stack/actions/l1/getTimeToNextL2Output.js +1 -1
- package/dist/op-stack/actions/l1/getTimeToNextL2Output.js.map +1 -1
- package/dist/tempo/Abis.d.ts +36662 -5677
- package/dist/tempo/Abis.d.ts.map +1 -1
- package/dist/tempo/Abis.js +5626 -1536
- package/dist/tempo/Abis.js.map +1 -1
- package/dist/tempo/Account.d.ts +86 -29
- package/dist/tempo/Account.d.ts.map +1 -1
- package/dist/tempo/Account.js +204 -70
- package/dist/tempo/Account.js.map +1 -1
- package/dist/tempo/Addresses.d.ts +16 -1
- package/dist/tempo/Addresses.d.ts.map +1 -1
- package/dist/tempo/Addresses.js +41 -1
- package/dist/tempo/Addresses.js.map +1 -1
- package/dist/tempo/Capabilities.d.ts +7 -13
- package/dist/tempo/Capabilities.d.ts.map +1 -1
- package/dist/tempo/Client.d.ts.map +1 -1
- package/dist/tempo/Client.js +1 -1
- package/dist/tempo/Client.js.map +1 -1
- package/dist/tempo/Decorator.d.ts +226 -7
- package/dist/tempo/Decorator.d.ts.map +1 -1
- package/dist/tempo/Decorator.js +27 -5
- package/dist/tempo/Decorator.js.map +1 -1
- package/dist/tempo/ExecutionError.d.ts +81 -0
- package/dist/tempo/ExecutionError.d.ts.map +1 -0
- package/dist/tempo/ExecutionError.js +309 -0
- package/dist/tempo/ExecutionError.js.map +1 -0
- package/dist/tempo/Relay.d.ts +303 -0
- package/dist/tempo/Relay.d.ts.map +1 -0
- package/dist/tempo/Relay.js +170 -0
- package/dist/tempo/Relay.js.map +1 -0
- package/dist/tempo/Selectors.d.ts +219 -66
- package/dist/tempo/Selectors.d.ts.map +1 -1
- package/dist/tempo/Selectors.js +220 -67
- package/dist/tempo/Selectors.js.map +1 -1
- package/dist/tempo/Store.d.ts +62 -0
- package/dist/tempo/Store.d.ts.map +1 -0
- package/dist/tempo/Store.js +107 -0
- package/dist/tempo/Store.js.map +1 -0
- package/dist/tempo/Transport.d.ts +48 -2
- package/dist/tempo/Transport.d.ts.map +1 -1
- package/dist/tempo/Transport.js +116 -34
- package/dist/tempo/Transport.js.map +1 -1
- package/dist/tempo/Zone.d.ts +51 -0
- package/dist/tempo/Zone.d.ts.map +1 -0
- package/dist/tempo/Zone.js +40 -0
- package/dist/tempo/Zone.js.map +1 -0
- package/dist/tempo/actions/accessKey/authorizeSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/authorizeSync.js +2 -0
- package/dist/tempo/actions/accessKey/authorizeSync.js.map +1 -1
- package/dist/tempo/actions/accessKey/burnWitnessSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/burnWitnessSync.js +2 -0
- package/dist/tempo/actions/accessKey/burnWitnessSync.js.map +1 -1
- package/dist/tempo/actions/accessKey/index.d.ts +1 -0
- package/dist/tempo/actions/accessKey/index.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/index.js +1 -0
- package/dist/tempo/actions/accessKey/index.js.map +1 -1
- package/dist/tempo/actions/accessKey/prepareAuthorization.d.ts +76 -0
- package/dist/tempo/actions/accessKey/prepareAuthorization.d.ts.map +1 -0
- package/dist/tempo/actions/accessKey/prepareAuthorization.js +62 -0
- package/dist/tempo/actions/accessKey/prepareAuthorization.js.map +1 -0
- package/dist/tempo/actions/accessKey/revokeSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/revokeSync.js +2 -0
- package/dist/tempo/actions/accessKey/revokeSync.js.map +1 -1
- package/dist/tempo/actions/accessKey/signAuthorization.d.ts +43 -38
- package/dist/tempo/actions/accessKey/signAuthorization.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/signAuthorization.js +102 -44
- package/dist/tempo/actions/accessKey/signAuthorization.js.map +1 -1
- package/dist/tempo/actions/accessKey/updateLimitSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/updateLimitSync.js +2 -0
- package/dist/tempo/actions/accessKey/updateLimitSync.js.map +1 -1
- package/dist/tempo/actions/amm/burnSync.d.ts.map +1 -1
- package/dist/tempo/actions/amm/burnSync.js +2 -0
- package/dist/tempo/actions/amm/burnSync.js.map +1 -1
- package/dist/tempo/actions/amm/mintSync.d.ts.map +1 -1
- package/dist/tempo/actions/amm/mintSync.js +2 -0
- package/dist/tempo/actions/amm/mintSync.js.map +1 -1
- package/dist/tempo/actions/amm/rebalanceSwapSync.d.ts.map +1 -1
- package/dist/tempo/actions/amm/rebalanceSwapSync.js +2 -0
- package/dist/tempo/actions/amm/rebalanceSwapSync.js.map +1 -1
- package/dist/tempo/actions/channel/closeSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/closeSync.js +2 -0
- package/dist/tempo/actions/channel/closeSync.js.map +1 -1
- package/dist/tempo/actions/channel/openSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/openSync.js +2 -0
- package/dist/tempo/actions/channel/openSync.js.map +1 -1
- package/dist/tempo/actions/channel/requestCloseSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/requestCloseSync.js +2 -0
- package/dist/tempo/actions/channel/requestCloseSync.js.map +1 -1
- package/dist/tempo/actions/channel/settleSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/settleSync.js +2 -0
- package/dist/tempo/actions/channel/settleSync.js.map +1 -1
- package/dist/tempo/actions/channel/topUpSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/topUpSync.js +2 -0
- package/dist/tempo/actions/channel/topUpSync.js.map +1 -1
- package/dist/tempo/actions/channel/withdrawSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/withdrawSync.js +2 -0
- package/dist/tempo/actions/channel/withdrawSync.js.map +1 -1
- package/dist/tempo/actions/dex/cancelStaleSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/cancelStaleSync.js +2 -0
- package/dist/tempo/actions/dex/cancelStaleSync.js.map +1 -1
- package/dist/tempo/actions/dex/cancelSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/cancelSync.js +2 -0
- package/dist/tempo/actions/dex/cancelSync.js.map +1 -1
- package/dist/tempo/actions/dex/createPairSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/createPairSync.js +2 -0
- package/dist/tempo/actions/dex/createPairSync.js.map +1 -1
- package/dist/tempo/actions/dex/placeFlipSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/placeFlipSync.js +2 -0
- package/dist/tempo/actions/dex/placeFlipSync.js.map +1 -1
- package/dist/tempo/actions/dex/placeSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/placeSync.js +2 -0
- package/dist/tempo/actions/dex/placeSync.js.map +1 -1
- package/dist/tempo/actions/dex/withdrawSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/withdrawSync.js +2 -0
- package/dist/tempo/actions/dex/withdrawSync.js.map +1 -1
- package/dist/tempo/actions/earn/deployment.d.ts +36 -21
- package/dist/tempo/actions/earn/deployment.d.ts.map +1 -1
- package/dist/tempo/actions/earn/deployment.js +96 -32
- package/dist/tempo/actions/earn/deployment.js.map +1 -1
- package/dist/tempo/actions/earn.d.ts +21 -21
- package/dist/tempo/actions/earn.d.ts.map +1 -1
- package/dist/tempo/actions/earn.js +24 -9
- package/dist/tempo/actions/earn.js.map +1 -1
- package/dist/tempo/actions/fee/setUserTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/fee/setUserTokenSync.js +2 -0
- package/dist/tempo/actions/fee/setUserTokenSync.js.map +1 -1
- package/dist/tempo/actions/fee/setValidatorTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/fee/setValidatorTokenSync.js +2 -0
- package/dist/tempo/actions/fee/setValidatorTokenSync.js.map +1 -1
- package/dist/tempo/actions/index.d.ts +3 -0
- package/dist/tempo/actions/index.d.ts.map +1 -1
- package/dist/tempo/actions/index.js +3 -0
- package/dist/tempo/actions/index.js.map +1 -1
- package/dist/tempo/actions/multisig/getConfig.d.ts +34 -0
- package/dist/tempo/actions/multisig/getConfig.d.ts.map +1 -0
- package/dist/tempo/actions/multisig/getConfig.js +27 -0
- package/dist/tempo/actions/multisig/getConfig.js.map +1 -0
- package/dist/tempo/actions/multisig/getConfigCommitment.d.ts +72 -0
- package/dist/tempo/actions/multisig/getConfigCommitment.d.ts.map +1 -0
- package/dist/tempo/actions/multisig/getConfigCommitment.js +55 -0
- package/dist/tempo/actions/multisig/getConfigCommitment.js.map +1 -0
- package/dist/tempo/actions/multisig/getOperation.d.ts +23 -0
- package/dist/tempo/actions/multisig/getOperation.d.ts.map +1 -0
- package/dist/tempo/actions/multisig/getOperation.js +18 -0
- package/dist/tempo/actions/multisig/getOperation.js.map +1 -0
- package/dist/tempo/actions/multisig/index.d.ts +6 -0
- package/dist/tempo/actions/multisig/index.d.ts.map +1 -0
- package/dist/tempo/actions/multisig/index.js +6 -0
- package/dist/tempo/actions/multisig/index.js.map +1 -0
- package/dist/tempo/actions/multisig/updateConfig.d.ts +193 -0
- package/dist/tempo/actions/multisig/updateConfig.d.ts.map +1 -0
- package/dist/tempo/actions/multisig/updateConfig.js +170 -0
- package/dist/tempo/actions/multisig/updateConfig.js.map +1 -0
- package/dist/tempo/actions/multisig/updateConfigSync.d.ts +50 -0
- package/dist/tempo/actions/multisig/updateConfigSync.d.ts.map +1 -0
- package/dist/tempo/actions/multisig/updateConfigSync.js +55 -0
- package/dist/tempo/actions/multisig/updateConfigSync.js.map +1 -0
- package/dist/tempo/actions/policy/createSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/createSync.js +2 -0
- package/dist/tempo/actions/policy/createSync.js.map +1 -1
- package/dist/tempo/actions/policy/modifyBlacklistSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/modifyBlacklistSync.js +2 -0
- package/dist/tempo/actions/policy/modifyBlacklistSync.js.map +1 -1
- package/dist/tempo/actions/policy/modifyWhitelistSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/modifyWhitelistSync.js +2 -0
- package/dist/tempo/actions/policy/modifyWhitelistSync.js.map +1 -1
- package/dist/tempo/actions/policy/setAdminSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/setAdminSync.js +2 -0
- package/dist/tempo/actions/policy/setAdminSync.js.map +1 -1
- package/dist/tempo/actions/propAmm.d.ts +1025 -0
- package/dist/tempo/actions/propAmm.d.ts.map +1 -0
- package/dist/tempo/actions/propAmm.js +541 -0
- package/dist/tempo/actions/propAmm.js.map +1 -0
- package/dist/tempo/actions/receivePolicy/burnSync.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/burnSync.js +2 -0
- package/dist/tempo/actions/receivePolicy/burnSync.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/claimSync.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/claimSync.js +2 -0
- package/dist/tempo/actions/receivePolicy/claimSync.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/setSync.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/setSync.js +2 -0
- package/dist/tempo/actions/receivePolicy/setSync.js.map +1 -1
- package/dist/tempo/actions/token/approveSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/approveSync.js +2 -0
- package/dist/tempo/actions/token/approveSync.js.map +1 -1
- package/dist/tempo/actions/token/burn.d.ts +38 -9
- package/dist/tempo/actions/token/burn.d.ts.map +1 -1
- package/dist/tempo/actions/token/burn.js +12 -5
- package/dist/tempo/actions/token/burn.js.map +1 -1
- package/dist/tempo/actions/token/burnBlockedSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/burnBlockedSync.js +2 -0
- package/dist/tempo/actions/token/burnBlockedSync.js.map +1 -1
- package/dist/tempo/actions/token/burnSync.d.ts +2 -0
- package/dist/tempo/actions/token/burnSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/burnSync.js +2 -0
- package/dist/tempo/actions/token/burnSync.js.map +1 -1
- package/dist/tempo/actions/token/changeTransferPolicySync.d.ts.map +1 -1
- package/dist/tempo/actions/token/changeTransferPolicySync.js +2 -0
- package/dist/tempo/actions/token/changeTransferPolicySync.js.map +1 -1
- package/dist/tempo/actions/token/createSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/createSync.js +2 -0
- package/dist/tempo/actions/token/createSync.js.map +1 -1
- package/dist/tempo/actions/token/grantRolesSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/grantRolesSync.js +2 -0
- package/dist/tempo/actions/token/grantRolesSync.js.map +1 -1
- package/dist/tempo/actions/token/mintSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/mintSync.js +2 -0
- package/dist/tempo/actions/token/mintSync.js.map +1 -1
- package/dist/tempo/actions/token/pauseSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/pauseSync.js +2 -0
- package/dist/tempo/actions/token/pauseSync.js.map +1 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteTokenSync.js +2 -0
- package/dist/tempo/actions/token/prepareUpdateQuoteTokenSync.js.map +1 -1
- package/dist/tempo/actions/token/renounceRolesSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/renounceRolesSync.js +2 -0
- package/dist/tempo/actions/token/renounceRolesSync.js.map +1 -1
- package/dist/tempo/actions/token/revokeRolesSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/revokeRolesSync.js +2 -0
- package/dist/tempo/actions/token/revokeRolesSync.js.map +1 -1
- package/dist/tempo/actions/token/setRoleAdminSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/setRoleAdminSync.js +2 -0
- package/dist/tempo/actions/token/setRoleAdminSync.js.map +1 -1
- package/dist/tempo/actions/token/setSupplyCapSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/setSupplyCapSync.js +2 -0
- package/dist/tempo/actions/token/setSupplyCapSync.js.map +1 -1
- package/dist/tempo/actions/token/transferSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/transferSync.js +2 -0
- package/dist/tempo/actions/token/transferSync.js.map +1 -1
- package/dist/tempo/actions/token/unpauseSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/unpauseSync.js +2 -0
- package/dist/tempo/actions/token/unpauseSync.js.map +1 -1
- package/dist/tempo/actions/token/updateQuoteTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/updateQuoteTokenSync.js +2 -0
- package/dist/tempo/actions/token/updateQuoteTokenSync.js.map +1 -1
- package/dist/tempo/actions/virtualAddress/registerMasterSync.d.ts.map +1 -1
- package/dist/tempo/actions/virtualAddress/registerMasterSync.js +2 -0
- package/dist/tempo/actions/virtualAddress/registerMasterSync.js.map +1 -1
- package/dist/tempo/actions/zone/deposit.d.ts +56 -13
- package/dist/tempo/actions/zone/deposit.d.ts.map +1 -1
- package/dist/tempo/actions/zone/deposit.js +8 -10
- package/dist/tempo/actions/zone/deposit.js.map +1 -1
- package/dist/tempo/actions/zone/depositSync.d.ts.map +1 -1
- package/dist/tempo/actions/zone/depositSync.js +2 -0
- package/dist/tempo/actions/zone/depositSync.js.map +1 -1
- package/dist/tempo/actions/zone/encryptedDeposit.d.ts +15 -15
- package/dist/tempo/actions/zone/encryptedDeposit.d.ts.map +1 -1
- package/dist/tempo/actions/zone/encryptedDeposit.js +12 -12
- package/dist/tempo/actions/zone/encryptedDeposit.js.map +1 -1
- package/dist/tempo/actions/zone/getEncryptionKey.d.ts +3 -4
- package/dist/tempo/actions/zone/getEncryptionKey.d.ts.map +1 -1
- package/dist/tempo/actions/zone/getEncryptionKey.js +18 -7
- package/dist/tempo/actions/zone/getEncryptionKey.js.map +1 -1
- package/dist/tempo/actions/zone/getPortalInfo.d.ts +61 -0
- package/dist/tempo/actions/zone/getPortalInfo.d.ts.map +1 -0
- package/dist/tempo/actions/zone/getPortalInfo.js +63 -0
- package/dist/tempo/actions/zone/getPortalInfo.js.map +1 -0
- package/dist/tempo/actions/zone/getWithdrawalFee.d.ts.map +1 -1
- package/dist/tempo/actions/zone/getWithdrawalFee.js +1 -1
- package/dist/tempo/actions/zone/getWithdrawalFee.js.map +1 -1
- package/dist/tempo/actions/zone/index.d.ts +1 -0
- package/dist/tempo/actions/zone/index.d.ts.map +1 -1
- package/dist/tempo/actions/zone/index.js +1 -0
- package/dist/tempo/actions/zone/index.js.map +1 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawal.d.ts +8 -8
- package/dist/tempo/actions/zone/requestVerifiableWithdrawal.d.ts.map +1 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawal.js +1 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawal.js.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawal.d.ts +8 -8
- package/dist/tempo/actions/zone/requestWithdrawal.d.ts.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawal.js +1 -1
- package/dist/tempo/actions/zone/requestWithdrawal.js.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawalSync.d.ts.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawalSync.js +2 -0
- package/dist/tempo/actions/zone/requestWithdrawalSync.js.map +1 -1
- package/dist/tempo/actions/zone/signAuthorizationToken.d.ts +3 -3
- package/dist/tempo/actions/zone/signAuthorizationToken.d.ts.map +1 -1
- package/dist/tempo/actions/zone/signAuthorizationToken.js +5 -5
- package/dist/tempo/actions/zone/signAuthorizationToken.js.map +1 -1
- package/dist/tempo/actions/zone/types.d.ts +1 -1
- package/dist/tempo/actions/zone/types.d.ts.map +1 -1
- package/dist/tempo/chainConfig.d.ts +33 -17
- package/dist/tempo/chainConfig.d.ts.map +1 -1
- package/dist/tempo/chainConfig.js +188 -72
- package/dist/tempo/chainConfig.js.map +1 -1
- package/dist/tempo/index.d.ts +11 -5
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +9 -3
- package/dist/tempo/index.js.map +1 -1
- package/dist/tempo/internal/relay/cache.d.ts +9 -0
- package/dist/tempo/internal/relay/cache.d.ts.map +1 -0
- package/dist/tempo/internal/relay/cache.js +72 -0
- package/dist/tempo/internal/relay/cache.js.map +1 -0
- package/dist/tempo/internal/relay/deadline.d.ts +4 -0
- package/dist/tempo/internal/relay/deadline.d.ts.map +1 -0
- package/dist/tempo/internal/relay/deadline.js +34 -0
- package/dist/tempo/internal/relay/deadline.js.map +1 -0
- package/dist/tempo/internal/relay/error.d.ts +47 -0
- package/dist/tempo/internal/relay/error.d.ts.map +1 -0
- package/dist/tempo/internal/relay/error.js +101 -0
- package/dist/tempo/internal/relay/error.js.map +1 -0
- package/dist/tempo/internal/relay/feePayer.d.ts +70 -0
- package/dist/tempo/internal/relay/feePayer.d.ts.map +1 -0
- package/dist/tempo/internal/relay/feePayer.js +442 -0
- package/dist/tempo/internal/relay/feePayer.js.map +1 -0
- package/dist/tempo/internal/relay/feeToken.d.ts +38 -0
- package/dist/tempo/internal/relay/feeToken.d.ts.map +1 -0
- package/dist/tempo/internal/relay/feeToken.js +143 -0
- package/dist/tempo/internal/relay/feeToken.js.map +1 -0
- package/dist/tempo/internal/relay/multisig.d.ts +4 -0
- package/dist/tempo/internal/relay/multisig.d.ts.map +1 -0
- package/dist/tempo/internal/relay/multisig.js +1039 -0
- package/dist/tempo/internal/relay/multisig.js.map +1 -0
- package/dist/tempo/internal/relay/plugin.d.ts +5 -0
- package/dist/tempo/internal/relay/plugin.d.ts.map +1 -0
- package/dist/tempo/internal/relay/plugin.js +10 -0
- package/dist/tempo/internal/relay/plugin.js.map +1 -0
- package/dist/tempo/internal/relay/preflight.d.ts +17 -0
- package/dist/tempo/internal/relay/preflight.d.ts.map +1 -0
- package/dist/tempo/internal/relay/preflight.js +53 -0
- package/dist/tempo/internal/relay/preflight.js.map +1 -0
- package/dist/tempo/internal/relay/request.d.ts +16 -0
- package/dist/tempo/internal/relay/request.d.ts.map +1 -0
- package/dist/tempo/internal/relay/request.js +327 -0
- package/dist/tempo/internal/relay/request.js.map +1 -0
- package/dist/tempo/internal/relay/simulate.d.ts +62 -0
- package/dist/tempo/internal/relay/simulate.d.ts.map +1 -0
- package/dist/tempo/internal/relay/simulate.js +284 -0
- package/dist/tempo/internal/relay/simulate.js.map +1 -0
- package/dist/tempo/internal/relay/utils.d.ts +346 -0
- package/dist/tempo/internal/relay/utils.d.ts.map +1 -0
- package/dist/tempo/internal/relay/utils.js +185 -0
- package/dist/tempo/internal/relay/utils.js.map +1 -0
- package/dist/tempo/internal/relay/virtualAddress.d.ts +9 -0
- package/dist/tempo/internal/relay/virtualAddress.d.ts.map +1 -0
- package/dist/tempo/internal/relay/virtualAddress.js +73 -0
- package/dist/tempo/internal/relay/virtualAddress.js.map +1 -0
- package/dist/tempo/internal/relay.d.ts +4 -0
- package/dist/tempo/internal/relay.d.ts.map +1 -0
- package/dist/tempo/internal/relay.js +132 -0
- package/dist/tempo/internal/relay.js.map +1 -0
- package/dist/tempo/internal/types.d.ts +2 -2
- package/dist/tempo/internal/types.d.ts.map +1 -1
- package/dist/tempo/internal/utils.d.ts +1 -0
- package/dist/tempo/internal/utils.d.ts.map +1 -1
- package/dist/tempo/internal/utils.js +2 -1
- package/dist/tempo/internal/utils.js.map +1 -1
- package/dist/tempo/multisig/Config.d.ts +43 -0
- package/dist/tempo/multisig/Config.d.ts.map +1 -0
- package/dist/tempo/multisig/Config.js +92 -0
- package/dist/tempo/multisig/Config.js.map +1 -0
- package/dist/tempo/multisig/Operation.d.ts +34 -0
- package/dist/tempo/multisig/Operation.d.ts.map +1 -0
- package/dist/tempo/multisig/Operation.js +179 -0
- package/dist/tempo/multisig/Operation.js.map +1 -0
- package/dist/tempo/multisig/Signature.d.ts +4 -0
- package/dist/tempo/multisig/Signature.d.ts.map +1 -0
- package/dist/tempo/multisig/Signature.js +9 -0
- package/dist/tempo/multisig/Signature.js.map +1 -0
- package/dist/tempo/zones/Abis.d.ts +2 -2
- package/dist/tempo/zones/Abis.d.ts.map +1 -1
- package/dist/tempo/zones/Abis.js +2 -2
- package/dist/tempo/zones/Abis.js.map +1 -1
- package/dist/tempo/zones/transport.d.ts +1 -33
- package/dist/tempo/zones/transport.d.ts.map +1 -1
- package/dist/tempo/zones/transport.js +1 -49
- package/dist/tempo/zones/transport.js.map +1 -1
- package/dist/tokens/definitions/cirbtc.d.ts +1 -0
- package/dist/tokens/definitions/cirbtc.d.ts.map +1 -1
- package/dist/tokens/definitions/cirbtc.js +1 -0
- package/dist/tokens/definitions/cirbtc.js.map +1 -1
- package/dist/tokens/definitions/eurc.d.ts +2 -0
- package/dist/tokens/definitions/eurc.d.ts.map +1 -1
- package/dist/tokens/definitions/eurc.js +2 -0
- package/dist/tokens/definitions/eurc.js.map +1 -1
- package/dist/tokens/definitions/ousd.d.ts +26 -0
- package/dist/tokens/definitions/ousd.d.ts.map +1 -0
- package/dist/tokens/definitions/ousd.js +26 -0
- package/dist/tokens/definitions/ousd.js.map +1 -0
- package/dist/tokens/definitions/usdc.d.ts +2 -0
- package/dist/tokens/definitions/usdc.d.ts.map +1 -1
- package/dist/tokens/definitions/usdc.js +2 -0
- package/dist/tokens/definitions/usdc.js.map +1 -1
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +2 -0
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/sets.d.ts +40 -0
- package/dist/tokens/sets.d.ts.map +1 -1
- package/dist/tokens/sets.js +4 -1
- package/dist/tokens/sets.js.map +1 -1
- package/dist/utils/Siwe.d.ts +7 -0
- package/dist/utils/Siwe.d.ts.map +1 -1
- package/dist/utils/Siwe.js +28 -0
- package/dist/utils/Siwe.js.map +1 -1
- package/dist/utils/TxEnvelope.d.ts.map +1 -1
- package/dist/utils/TxEnvelope.js +2 -1
- package/dist/utils/TxEnvelope.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/src/chains/definitions/arc.ts +19 -1
- package/src/chains/definitions/berachainBepolia.ts +1 -1
- package/src/chains/definitions/blockdag.ts +18 -0
- package/src/chains/definitions/candyChain.ts +26 -0
- package/src/chains/definitions/creditCoin3Devnet.ts +6 -0
- package/src/chains/definitions/creditCoin3Mainnet.ts +4 -0
- package/src/chains/definitions/creditCoin3Testnet.ts +4 -0
- package/src/chains/definitions/crymad.ts +23 -0
- package/src/chains/definitions/crymadL2.ts +24 -0
- package/src/chains/definitions/eCanna.ts +18 -0
- package/src/chains/definitions/eCannaTestnet.ts +19 -0
- package/src/chains/definitions/hausTestnet.ts +18 -0
- package/src/chains/definitions/hyveChain.ts +22 -0
- package/src/chains/definitions/kortana.ts +16 -0
- package/src/chains/definitions/morphTachyon.ts +16 -0
- package/src/chains/definitions/morphTachyonTestnet.ts +17 -0
- package/src/chains/definitions/rabbitChainTestnet.ts +19 -0
- package/src/chains/definitions/robinhood.ts +6 -2
- package/src/chains/definitions/tempo.ts +10 -0
- package/src/chains/definitions/tempoModerato.ts +10 -0
- package/src/chains/definitions/whitechainSepolia.ts +28 -3
- package/src/chains/definitions/xgrTestnet.ts +19 -0
- package/src/chains/definitions/ynxTestnet.ts +17 -0
- package/src/chains/definitions/zagros.ts +26 -0
- package/src/chains/index.ts +17 -0
- package/src/core/actions/address/getStorageValues.ts +55 -0
- package/src/core/actions/address/index.ts +1 -0
- package/src/core/actions/block/simulate.ts +6 -0
- package/src/core/actions/multicall.ts +8 -1
- package/src/core/actions/siwe/verify.ts +3 -1
- package/src/core/actions/transaction/Errors.ts +1 -0
- package/src/core/actions/transaction/fill.ts +83 -41
- package/src/core/actions/transaction/prepare.ts +6 -1
- package/src/core/actions/transaction/sign.ts +4 -1
- package/src/core/actions/wallet/sendCalls.ts +1 -0
- package/src/core/internal/transport.ts +1 -1
- package/src/erc4337/actions/userOperation/get.ts +3 -1
- package/src/erc4337/actions/userOperation/waitForReceipt.ts +1 -1
- package/src/internal/inference.ts +24 -0
- package/src/node/transports/ipc.ts +17 -2
- package/src/op-stack/actions/l1/getGame.ts +1 -1
- package/src/op-stack/actions/l1/getGames.ts +1 -1
- package/src/op-stack/actions/l1/getTimeToNextGame.ts +1 -1
- package/src/op-stack/actions/l1/getTimeToNextL2Output.ts +1 -1
- package/src/tempo/Abis.ts +5619 -1513
- package/src/tempo/Account.ts +387 -82
- package/src/tempo/Addresses.ts +46 -17
- package/src/tempo/Capabilities.ts +7 -15
- package/src/tempo/Client.ts +1 -1
- package/src/tempo/Decorator.ts +304 -22
- package/src/tempo/ExecutionError.ts +428 -0
- package/src/tempo/Relay.ts +430 -0
- package/src/tempo/Selectors.ts +248 -78
- package/src/tempo/Store.ts +170 -0
- package/src/tempo/Transport.ts +202 -5
- package/src/tempo/Zone.ts +72 -0
- package/src/tempo/actions/accessKey/authorizeSync.ts +4 -0
- package/src/tempo/actions/accessKey/burnWitnessSync.ts +4 -0
- package/src/tempo/actions/accessKey/index.ts +2 -0
- package/src/tempo/actions/accessKey/prepareAuthorization.ts +132 -0
- package/src/tempo/actions/accessKey/revokeSync.ts +4 -0
- package/src/tempo/actions/accessKey/signAuthorization.ts +222 -53
- package/src/tempo/actions/accessKey/updateLimitSync.ts +4 -0
- package/src/tempo/actions/amm/burnSync.ts +4 -0
- package/src/tempo/actions/amm/mintSync.ts +4 -0
- package/src/tempo/actions/amm/rebalanceSwapSync.ts +4 -0
- package/src/tempo/actions/channel/closeSync.ts +4 -0
- package/src/tempo/actions/channel/openSync.ts +4 -0
- package/src/tempo/actions/channel/requestCloseSync.ts +4 -0
- package/src/tempo/actions/channel/settleSync.ts +4 -0
- package/src/tempo/actions/channel/topUpSync.ts +4 -0
- package/src/tempo/actions/channel/withdrawSync.ts +4 -0
- package/src/tempo/actions/dex/cancelStaleSync.ts +4 -0
- package/src/tempo/actions/dex/cancelSync.ts +4 -0
- package/src/tempo/actions/dex/createPairSync.ts +4 -0
- package/src/tempo/actions/dex/placeFlipSync.ts +4 -0
- package/src/tempo/actions/dex/placeSync.ts +4 -0
- package/src/tempo/actions/dex/withdrawSync.ts +4 -0
- package/src/tempo/actions/earn/deployment.ts +108 -42
- package/src/tempo/actions/earn.ts +35 -15
- package/src/tempo/actions/fee/setUserTokenSync.ts +4 -0
- package/src/tempo/actions/fee/setValidatorTokenSync.ts +4 -0
- package/src/tempo/actions/index.ts +4 -0
- package/src/tempo/actions/multisig/getConfig.ts +46 -0
- package/src/tempo/actions/multisig/getConfigCommitment.ts +79 -0
- package/src/tempo/actions/multisig/getOperation.ts +37 -0
- package/src/tempo/actions/multisig/index.ts +5 -0
- package/src/tempo/actions/multisig/updateConfig.ts +210 -0
- package/src/tempo/actions/multisig/updateConfigSync.ts +80 -0
- package/src/tempo/actions/policy/createSync.ts +4 -0
- package/src/tempo/actions/policy/modifyBlacklistSync.ts +4 -0
- package/src/tempo/actions/policy/modifyWhitelistSync.ts +4 -0
- package/src/tempo/actions/policy/setAdminSync.ts +4 -0
- package/src/tempo/actions/propAmm.ts +985 -0
- package/src/tempo/actions/receivePolicy/burnSync.ts +4 -0
- package/src/tempo/actions/receivePolicy/claimSync.ts +4 -0
- package/src/tempo/actions/receivePolicy/setSync.ts +5 -1
- package/src/tempo/actions/token/approveSync.ts +5 -1
- package/src/tempo/actions/token/burn.ts +21 -9
- package/src/tempo/actions/token/burnBlockedSync.ts +5 -1
- package/src/tempo/actions/token/burnSync.ts +7 -1
- package/src/tempo/actions/token/changeTransferPolicySync.ts +4 -0
- package/src/tempo/actions/token/createSync.ts +4 -0
- package/src/tempo/actions/token/grantRolesSync.ts +4 -0
- package/src/tempo/actions/token/mintSync.ts +5 -1
- package/src/tempo/actions/token/pauseSync.ts +4 -0
- package/src/tempo/actions/token/prepareUpdateQuoteTokenSync.ts +4 -0
- package/src/tempo/actions/token/renounceRolesSync.ts +4 -0
- package/src/tempo/actions/token/revokeRolesSync.ts +4 -0
- package/src/tempo/actions/token/setRoleAdminSync.ts +4 -0
- package/src/tempo/actions/token/setSupplyCapSync.ts +4 -0
- package/src/tempo/actions/token/transferSync.ts +5 -1
- package/src/tempo/actions/token/unpauseSync.ts +4 -0
- package/src/tempo/actions/token/updateQuoteTokenSync.ts +4 -0
- package/src/tempo/actions/virtualAddress/registerMasterSync.ts +4 -0
- package/src/tempo/actions/zone/deposit.ts +13 -24
- package/src/tempo/actions/zone/depositSync.ts +4 -0
- package/src/tempo/actions/zone/encryptedDeposit.ts +18 -26
- package/src/tempo/actions/zone/getEncryptionKey.ts +20 -8
- package/src/tempo/actions/zone/getPortalInfo.ts +126 -0
- package/src/tempo/actions/zone/getWithdrawalFee.ts +1 -1
- package/src/tempo/actions/zone/index.ts +2 -0
- package/src/tempo/actions/zone/requestVerifiableWithdrawal.ts +1 -1
- package/src/tempo/actions/zone/requestWithdrawal.ts +1 -1
- package/src/tempo/actions/zone/requestWithdrawalSync.ts +4 -0
- package/src/tempo/actions/zone/signAuthorizationToken.ts +7 -7
- package/src/tempo/actions/zone/types.ts +1 -1
- package/src/tempo/chainConfig.ts +287 -86
- package/src/tempo/index.ts +15 -4
- package/src/tempo/internal/relay/cache.ts +82 -0
- package/src/tempo/internal/relay/deadline.ts +45 -0
- package/src/tempo/internal/relay/error.ts +129 -0
- package/src/tempo/internal/relay/feePayer.ts +693 -0
- package/src/tempo/internal/relay/feeToken.ts +190 -0
- package/src/tempo/internal/relay/multisig.ts +1357 -0
- package/src/tempo/internal/relay/plugin.ts +13 -0
- package/src/tempo/internal/relay/preflight.ts +83 -0
- package/src/tempo/internal/relay/request.ts +401 -0
- package/src/tempo/internal/relay/simulate.ts +394 -0
- package/src/tempo/internal/relay/utils.ts +213 -0
- package/src/tempo/internal/relay/virtualAddress.ts +95 -0
- package/src/tempo/internal/relay.ts +149 -0
- package/src/tempo/internal/types.ts +2 -1
- package/src/tempo/internal/utils.ts +2 -0
- package/src/tempo/multisig/Config.ts +139 -0
- package/src/tempo/multisig/Operation.ts +213 -0
- package/src/tempo/multisig/Signature.ts +11 -0
- package/src/tempo/zones/Abis.ts +2 -2
- package/src/tempo/zones/transport.ts +1 -66
- package/src/tokens/definitions/cirbtc.ts +1 -0
- package/src/tokens/definitions/eurc.ts +2 -0
- package/src/tokens/definitions/ousd.ts +26 -0
- package/src/tokens/definitions/usdc.ts +2 -0
- package/src/tokens/index.ts +2 -0
- package/src/tokens/sets.ts +4 -1
- package/src/utils/Siwe.ts +36 -0
- package/src/utils/TxEnvelope.ts +3 -1
- package/src/version.ts +1 -1
- package/dist/tempo/Storage.d.ts +0 -43
- package/dist/tempo/Storage.d.ts.map +0 -1
- package/dist/tempo/Storage.js +0 -96
- package/dist/tempo/Storage.js.map +0 -1
- package/src/tempo/Storage.ts +0 -119
package/src/tempo/Selectors.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Generated with `pnpm gen:tempo-abis`. Do not modify manually.
|
|
2
2
|
|
|
3
3
|
import type { Abi, ExtractAbiFunctionNames } from 'abitype'
|
|
4
4
|
import type { Hex } from 'ox'
|
|
5
|
-
|
|
6
5
|
import type * as Abis from './Abis.js'
|
|
7
6
|
|
|
8
7
|
type FunctionSelectors<abi extends Abi, excluded extends string = never> = {
|
|
@@ -52,6 +51,17 @@ export const addressRegistry = {
|
|
|
52
51
|
resolveVirtualAddress: '0xe2fc56ef',
|
|
53
52
|
} as const satisfies FunctionSelectors<typeof Abis.addressRegistry>
|
|
54
53
|
|
|
54
|
+
export const nativeMultisig = {
|
|
55
|
+
deriveAccount: '0xce8e071c',
|
|
56
|
+
getConfigCommitment: '0x5bd93359',
|
|
57
|
+
updateConfig: '0x64203645',
|
|
58
|
+
} as const satisfies FunctionSelectors<typeof Abis.nativeMultisig>
|
|
59
|
+
|
|
60
|
+
export const currentCommittee = {
|
|
61
|
+
getCommitteeMembers: '0xb2a275f9',
|
|
62
|
+
setCommitteeMembers: '0x229bdd9c',
|
|
63
|
+
} as const satisfies FunctionSelectors<typeof Abis.currentCommittee>
|
|
64
|
+
|
|
55
65
|
/** Function selectors of the nonce manager precompile. */
|
|
56
66
|
export const nonce = {
|
|
57
67
|
getNonce: '0x89535803',
|
|
@@ -82,6 +92,8 @@ export const stablecoinDex = {
|
|
|
82
92
|
PRICE_SCALE: '0xc33f59d3',
|
|
83
93
|
TICK_SPACING: '0x46ca626b',
|
|
84
94
|
balanceOf: '0xf7888aec',
|
|
95
|
+
bookIndexForKey: '0x61285475',
|
|
96
|
+
bookKeyForIndex: '0x3c047a7a',
|
|
85
97
|
books: '0x0c0dee70',
|
|
86
98
|
cancel: '0x81649d06',
|
|
87
99
|
cancelStaleOrder: '0x928b0e7f',
|
|
@@ -95,6 +107,7 @@ export const stablecoinDex = {
|
|
|
95
107
|
priceToTick: '0x87b4e352',
|
|
96
108
|
quoteSwapExactAmountIn: '0xe7c98f1a',
|
|
97
109
|
quoteSwapExactAmountOut: '0x1576fa0e',
|
|
110
|
+
setBookIndex: '0xaecbd005',
|
|
98
111
|
storageCredits: '0x4d65338b',
|
|
99
112
|
swapExactAmountIn: '0xf8856c0f',
|
|
100
113
|
swapExactAmountOut: '0xf0122b75',
|
|
@@ -111,8 +124,69 @@ export const storageCredits = {
|
|
|
111
124
|
setMode: '0x21175b4a',
|
|
112
125
|
} as const satisfies FunctionSelectors<typeof Abis.storageCredits>
|
|
113
126
|
|
|
127
|
+
/** Function selectors of the fee manager precompile. */
|
|
128
|
+
export const feeManager = {
|
|
129
|
+
collectedFees: '0x4c97f766',
|
|
130
|
+
distributeFees: '0xa6c07924',
|
|
131
|
+
setUserToken: '0xe7897444',
|
|
132
|
+
setValidatorToken: '0xb60d2ddb',
|
|
133
|
+
userTokens: '0xed498fa8',
|
|
134
|
+
validatorTokens: '0x6dc54a7a',
|
|
135
|
+
} as const satisfies FunctionSelectors<typeof Abis.feeManager>
|
|
136
|
+
|
|
137
|
+
/** Function selectors of the fee AMM precompile. */
|
|
138
|
+
export const feeAmm = {
|
|
139
|
+
M: '0x693f917e',
|
|
140
|
+
MIN_LIQUIDITY: '0x21b77d63',
|
|
141
|
+
N: '0xc9e525df',
|
|
142
|
+
SCALE: '0xeced5526',
|
|
143
|
+
burn: '0xfa291e53',
|
|
144
|
+
getPool: '0x531aa03e',
|
|
145
|
+
getPoolId: '0x2ef61c21',
|
|
146
|
+
liquidityBalances: '0x4fb5bf7f',
|
|
147
|
+
mint: '0xf1aa8cb8',
|
|
148
|
+
pools: '0xb5217bb4',
|
|
149
|
+
rebalanceSwap: '0x1bd94ac7',
|
|
150
|
+
totalSupply: '0xb524abcf',
|
|
151
|
+
} as const satisfies FunctionSelectors<typeof Abis.feeAmm>
|
|
152
|
+
|
|
153
|
+
/** Function selectors of the TIP-20 channel reserve precompile. */
|
|
154
|
+
export const tip20ChannelReserve = {
|
|
155
|
+
CLOSE_GRACE_PERIOD: '0x956c8327',
|
|
156
|
+
VOUCHER_TYPEHASH: '0x94739e87',
|
|
157
|
+
close: '0x73b57f74',
|
|
158
|
+
computeChannelId: '0x185eeeac',
|
|
159
|
+
domainSeparator: '0xf698da25',
|
|
160
|
+
getChannel: '0xeef95313',
|
|
161
|
+
getChannelState: '0xd18da8b1',
|
|
162
|
+
getChannelStatesBatch: '0xd1f4cda2',
|
|
163
|
+
getVoucherDigest: '0xf3b349e8',
|
|
164
|
+
open: '0xedc53b00',
|
|
165
|
+
requestClose: '0x675402e5',
|
|
166
|
+
settle: '0x97fb5104',
|
|
167
|
+
storageCredits: '0x4d65338b',
|
|
168
|
+
topUp: '0xdc48471e',
|
|
169
|
+
withdraw: '0x41e2c664',
|
|
170
|
+
} as const satisfies FunctionSelectors<typeof Abis.tip20ChannelReserve>
|
|
171
|
+
|
|
172
|
+
/** Function selectors of the TIP-20 token factory precompile. */
|
|
173
|
+
export const tip20Factory = {
|
|
174
|
+
createToken: {
|
|
175
|
+
'createToken(string,string,string,address,address,bytes32)': '0x68130445',
|
|
176
|
+
'createToken(string,string,string,address,address,bytes32,string)':
|
|
177
|
+
'0x5323d222',
|
|
178
|
+
},
|
|
179
|
+
getTokenAddress: '0x9ed7cd64',
|
|
180
|
+
isTIP20: '0x35ec42c9',
|
|
181
|
+
} as const satisfies FunctionSelectors<
|
|
182
|
+
typeof Abis.tip20Factory,
|
|
183
|
+
'createToken'
|
|
184
|
+
> &
|
|
185
|
+
OverloadedFunctionSelectors<'createToken'>
|
|
186
|
+
|
|
114
187
|
/** Function selectors of the TIP-20 token interface. */
|
|
115
188
|
export const tip20 = {
|
|
189
|
+
BURN_AT_ROLE: '0xc6990381',
|
|
116
190
|
BURN_BLOCKED_ROLE: '0x32ad9be8',
|
|
117
191
|
DOMAIN_SEPARATOR: '0x3644e515',
|
|
118
192
|
ISSUER_ROLE: '0x82aefa24',
|
|
@@ -122,6 +196,7 @@ export const tip20 = {
|
|
|
122
196
|
approve: '0x095ea7b3',
|
|
123
197
|
balanceOf: '0x70a08231',
|
|
124
198
|
burn: '0x42966c68',
|
|
199
|
+
burnAt: '0x9803f216',
|
|
125
200
|
burnBlocked: '0xec0cf3dc',
|
|
126
201
|
burnWithMemo: '0x38f23b0b',
|
|
127
202
|
changeTransferPolicyId: '0xfd5e9420',
|
|
@@ -165,40 +240,6 @@ export const tip20 = {
|
|
|
165
240
|
userRewardInfo: '0x360b8ed9',
|
|
166
241
|
} as const satisfies FunctionSelectors<typeof Abis.tip20>
|
|
167
242
|
|
|
168
|
-
/** Function selectors of the TIP-20 channel reserve precompile. */
|
|
169
|
-
export const tip20ChannelReserve = {
|
|
170
|
-
CLOSE_GRACE_PERIOD: '0x956c8327',
|
|
171
|
-
VOUCHER_TYPEHASH: '0x94739e87',
|
|
172
|
-
close: '0x73b57f74',
|
|
173
|
-
computeChannelId: '0x185eeeac',
|
|
174
|
-
domainSeparator: '0xf698da25',
|
|
175
|
-
getChannel: '0xeef95313',
|
|
176
|
-
getChannelState: '0xd18da8b1',
|
|
177
|
-
getChannelStatesBatch: '0xd1f4cda2',
|
|
178
|
-
getVoucherDigest: '0xf3b349e8',
|
|
179
|
-
open: '0xedc53b00',
|
|
180
|
-
requestClose: '0x675402e5',
|
|
181
|
-
settle: '0x97fb5104',
|
|
182
|
-
storageCredits: '0x4d65338b',
|
|
183
|
-
topUp: '0xdc48471e',
|
|
184
|
-
withdraw: '0x41e2c664',
|
|
185
|
-
} as const satisfies FunctionSelectors<typeof Abis.tip20ChannelReserve>
|
|
186
|
-
|
|
187
|
-
/** Function selectors of the TIP-20 token factory precompile. */
|
|
188
|
-
export const tip20Factory = {
|
|
189
|
-
createToken: {
|
|
190
|
-
'createToken(string,string,string,address,address,bytes32)': '0x68130445',
|
|
191
|
-
'createToken(string,string,string,address,address,bytes32,string)':
|
|
192
|
-
'0x5323d222',
|
|
193
|
-
},
|
|
194
|
-
getTokenAddress: '0x9ed7cd64',
|
|
195
|
-
isTIP20: '0x35ec42c9',
|
|
196
|
-
} as const satisfies FunctionSelectors<
|
|
197
|
-
typeof Abis.tip20Factory,
|
|
198
|
-
'createToken'
|
|
199
|
-
> &
|
|
200
|
-
OverloadedFunctionSelectors<'createToken'>
|
|
201
|
-
|
|
202
243
|
/** Function selectors of the TIP-403 registry precompile. */
|
|
203
244
|
export const tip403Registry = {
|
|
204
245
|
compoundPolicyData: '0xb6266019',
|
|
@@ -209,6 +250,7 @@ export const tip403Registry = {
|
|
|
209
250
|
isAuthorizedMintRecipient: '0xb389e305',
|
|
210
251
|
isAuthorizedRecipient: '0x6fbc13d6',
|
|
211
252
|
isAuthorizedSender: '0x14abd81d',
|
|
253
|
+
migrateTransferPolicyIds: '0xa783dc99',
|
|
212
254
|
modifyPolicyBlacklist: '0xc62b27d4',
|
|
213
255
|
modifyPolicyWhitelist: '0x71ec67a3',
|
|
214
256
|
policyData: '0x50214329',
|
|
@@ -217,51 +259,10 @@ export const tip403Registry = {
|
|
|
217
259
|
receivePolicy: '0xe111e611',
|
|
218
260
|
setPolicyAdmin: '0x25f7d376',
|
|
219
261
|
setReceivePolicy: '0xdda03d86',
|
|
262
|
+
tokenTransferPolicyId: '0x23143aff',
|
|
220
263
|
validateReceivePolicy: '0xb72b0c59',
|
|
221
264
|
} as const satisfies FunctionSelectors<typeof Abis.tip403Registry>
|
|
222
265
|
|
|
223
|
-
/** Function selectors of the fee manager precompile. */
|
|
224
|
-
export const feeManager = {
|
|
225
|
-
collectedFees: '0x4c97f766',
|
|
226
|
-
distributeFees: '0xa6c07924',
|
|
227
|
-
setUserToken: '0xe7897444',
|
|
228
|
-
setValidatorToken: '0xb60d2ddb',
|
|
229
|
-
userTokens: '0xed498fa8',
|
|
230
|
-
validatorTokens: '0x6dc54a7a',
|
|
231
|
-
} as const satisfies FunctionSelectors<typeof Abis.feeManager>
|
|
232
|
-
|
|
233
|
-
/** Function selectors of the fee AMM precompile. */
|
|
234
|
-
export const feeAmm = {
|
|
235
|
-
M: '0x693f917e',
|
|
236
|
-
MIN_LIQUIDITY: '0x21b77d63',
|
|
237
|
-
N: '0xc9e525df',
|
|
238
|
-
SCALE: '0xeced5526',
|
|
239
|
-
burn: '0xfa291e53',
|
|
240
|
-
getPool: '0x531aa03e',
|
|
241
|
-
getPoolId: '0x2ef61c21',
|
|
242
|
-
liquidityBalances: '0x4fb5bf7f',
|
|
243
|
-
mint: '0xf1aa8cb8',
|
|
244
|
-
pools: '0xb5217bb4',
|
|
245
|
-
rebalanceSwap: '0x1bd94ac7',
|
|
246
|
-
totalSupply: '0xb524abcf',
|
|
247
|
-
} as const satisfies FunctionSelectors<typeof Abis.feeAmm>
|
|
248
|
-
|
|
249
|
-
/** Function selectors of the validator config precompile. */
|
|
250
|
-
export const validatorConfig = {
|
|
251
|
-
addValidator: '0xffb4822e',
|
|
252
|
-
changeOwner: '0xa6f9dae1',
|
|
253
|
-
changeValidatorStatus: '0xa1b3f4a9',
|
|
254
|
-
changeValidatorStatusByIndex: '0x5aa3d0e1',
|
|
255
|
-
getNextFullDkgCeremony: '0x281a69ec',
|
|
256
|
-
getValidators: '0xb7ab4db5',
|
|
257
|
-
owner: '0x8da5cb5b',
|
|
258
|
-
setNextFullDkgCeremony: '0xc3576d46',
|
|
259
|
-
updateValidator: '0x09970c76',
|
|
260
|
-
validatorCount: '0x0f43a677',
|
|
261
|
-
validators: '0xfa52c7d8',
|
|
262
|
-
validatorsArray: '0x031fadbd',
|
|
263
|
-
} as const satisfies FunctionSelectors<typeof Abis.validatorConfig>
|
|
264
|
-
|
|
265
266
|
/** Function selectors of the validator config v2 precompile. */
|
|
266
267
|
export const validatorConfigV2 = {
|
|
267
268
|
addValidator: '0x6dcf616a',
|
|
@@ -284,3 +285,172 @@ export const validatorConfigV2 = {
|
|
|
284
285
|
validatorByPublicKey: '0x1b425d5e',
|
|
285
286
|
validatorCount: '0x0f43a677',
|
|
286
287
|
} as const satisfies FunctionSelectors<typeof Abis.validatorConfigV2>
|
|
288
|
+
|
|
289
|
+
/** Function selectors of the validator config precompile. */
|
|
290
|
+
export const validatorConfig = {
|
|
291
|
+
addValidator: '0xffb4822e',
|
|
292
|
+
changeOwner: '0xa6f9dae1',
|
|
293
|
+
changeValidatorStatus: '0xa1b3f4a9',
|
|
294
|
+
changeValidatorStatusByIndex: '0x5aa3d0e1',
|
|
295
|
+
getNextFullDkgCeremony: '0x281a69ec',
|
|
296
|
+
getValidators: '0xb7ab4db5',
|
|
297
|
+
owner: '0x8da5cb5b',
|
|
298
|
+
setNextFullDkgCeremony: '0xc3576d46',
|
|
299
|
+
updateValidator: '0x09970c76',
|
|
300
|
+
validatorCount: '0x0f43a677',
|
|
301
|
+
validators: '0xfa52c7d8',
|
|
302
|
+
validatorsArray: '0x031fadbd',
|
|
303
|
+
} as const satisfies FunctionSelectors<typeof Abis.validatorConfig>
|
|
304
|
+
|
|
305
|
+
export const zoneFactory = {
|
|
306
|
+
createZone: {
|
|
307
|
+
'createZone((address,address,address,address,(bytes32,bytes32,uint64),string))':
|
|
308
|
+
'0x2d45796a',
|
|
309
|
+
'createZone((address,bool,bool,address[],address[],address,address[],uint8,string))':
|
|
310
|
+
'0x89677d9e',
|
|
311
|
+
},
|
|
312
|
+
isZonePortal: '0x01b290d3',
|
|
313
|
+
nextZoneId: '0x266db436',
|
|
314
|
+
owner: '0x8da5cb5b',
|
|
315
|
+
transferOwnership: '0xf2fde38b',
|
|
316
|
+
verifier: '0x2b7ac3f3',
|
|
317
|
+
zones: '0x90b7f6fd',
|
|
318
|
+
} as const satisfies FunctionSelectors<typeof Abis.zoneFactory, 'createZone'> &
|
|
319
|
+
OverloadedFunctionSelectors<'createZone'>
|
|
320
|
+
|
|
321
|
+
export const zoneVerifier = {
|
|
322
|
+
verify: '0xebb2ddc9',
|
|
323
|
+
} as const satisfies FunctionSelectors<typeof Abis.zoneVerifier>
|
|
324
|
+
|
|
325
|
+
export const zonePortal = {
|
|
326
|
+
FIXED_DEPOSIT_GAS: '0xf706cfbf',
|
|
327
|
+
MAX_DEPOSITS_PER_TEMPO_BLOCK: '0x1bf00ca8',
|
|
328
|
+
MAX_GAS_FEE_RATE: '0xf490ca96',
|
|
329
|
+
MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK: '0x3fcf7df4',
|
|
330
|
+
MAX_TOKEN_METADATA_BYTES: '0x996329a2',
|
|
331
|
+
MAX_UNPROCESSED_DEPOSITS: '0x5e53dcd3',
|
|
332
|
+
MAX_UNPROCESSED_TOKEN_ENABLEMENTS: '0x3b667e74',
|
|
333
|
+
MAX_WITHDRAWAL_GAS_LIMIT: '0x86f47e55',
|
|
334
|
+
abdicate: '0xbf4c5411',
|
|
335
|
+
abdicationEffectiveAt: '0x04a3b098',
|
|
336
|
+
acceptAdmin: '0x0e18b681',
|
|
337
|
+
admin: '0xf851a440',
|
|
338
|
+
areDepositsActive: '0x37f981d8',
|
|
339
|
+
blockHash: '0xf22a195e',
|
|
340
|
+
bouncebackGas: '0xfb2f1206',
|
|
341
|
+
calculateBouncebackFee: '0x83a146b3',
|
|
342
|
+
calculateDepositFee: '0x8976248d',
|
|
343
|
+
claimRefund: '0xbffa55d5',
|
|
344
|
+
currentDepositQueueHash: '0x45c5d2fb',
|
|
345
|
+
deliverWithdrawal: '0x005d97ef',
|
|
346
|
+
deposit: {
|
|
347
|
+
'deposit(address,address,uint128,bytes32,address)': '0x09a0a234',
|
|
348
|
+
'deposit(address,uint128,uint256,(bytes32,uint8,bytes,bytes12,bytes16),address)':
|
|
349
|
+
'0x03dd6f34',
|
|
350
|
+
},
|
|
351
|
+
depositCount: '0x2dfdf0b5',
|
|
352
|
+
depositEncrypted: '0xb01f22e4',
|
|
353
|
+
enableToken: '0xc690908a',
|
|
354
|
+
enabledTokenAt: '0xb02690f2',
|
|
355
|
+
enabledTokenCount: '0xe4717849',
|
|
356
|
+
encryptionKeyAt: '0x9a97784b',
|
|
357
|
+
encryptionKeyAtBlock: '0x39dc015d',
|
|
358
|
+
encryptionKeyCount: '0x4256ce38',
|
|
359
|
+
hasRole: '0x95a8c58d',
|
|
360
|
+
initialize: '0x86829b82',
|
|
361
|
+
isAccessEnforced: '0x71649b6e',
|
|
362
|
+
isEncryptionKeyValid: '0x9ecd4cc0',
|
|
363
|
+
isGatewayOpen: '0x1b32199b',
|
|
364
|
+
isSequencer: '0x6d46e987',
|
|
365
|
+
isTokenEnabled: '0x748538d9',
|
|
366
|
+
lastProcessedDepositNumber: '0xe84abe69',
|
|
367
|
+
lastProcessedEnabledTokenCount: '0xccd537ca',
|
|
368
|
+
lastSyncedTempoBlockNumber: '0xbe2a63ee',
|
|
369
|
+
leader: '0x40eedabb',
|
|
370
|
+
leaderActivationTempoBlock: '0xb83c755f',
|
|
371
|
+
leaderEpoch: '0x3a6b889b',
|
|
372
|
+
maxTempoGasRate: '0x8d8bd5fb',
|
|
373
|
+
messenger: '0x3cb747bf',
|
|
374
|
+
pause: '0x8456cb59',
|
|
375
|
+
pauseDeposits: '0x27c71b50',
|
|
376
|
+
pauseExpiry: '0xf125af6b',
|
|
377
|
+
paused: '0x5c975abb',
|
|
378
|
+
pendingAdmin: '0x26782247',
|
|
379
|
+
processWithdrawals: '0x91aa3f04',
|
|
380
|
+
refunds: '0x857e85f8',
|
|
381
|
+
resume: '0x046f7da2',
|
|
382
|
+
resumeDeposits: '0x00ebfdb4',
|
|
383
|
+
rpcUrl: '0x959f47c3',
|
|
384
|
+
sequencerAt: '0x129c8240',
|
|
385
|
+
sequencerCount: '0x84b71123',
|
|
386
|
+
sequencerEncryptionKey: '0x3488ce0d',
|
|
387
|
+
sequencerSetVersion: '0x83888ecc',
|
|
388
|
+
sequencerThreshold: '0x1950dd11',
|
|
389
|
+
setAccessMode: '0xf6087442',
|
|
390
|
+
setAllowedAccount: '0x90f59598',
|
|
391
|
+
setBouncebackGas: '0xe09eae10',
|
|
392
|
+
setGateway: '0x10cea857',
|
|
393
|
+
setGatewayMode: '0x0f3804b8',
|
|
394
|
+
setLeader: '0x4fdf2ec2',
|
|
395
|
+
setMaxTempoGasRate: '0x78d8599e',
|
|
396
|
+
setPauseGuardian: '0x35577962',
|
|
397
|
+
setRpcUrl: '0x652ef10b',
|
|
398
|
+
setSequencerEncryptionKey: '0xef10b187',
|
|
399
|
+
setSequencerSet: '0x86012b45',
|
|
400
|
+
setZoneGasRate: '0x0e86bbdc',
|
|
401
|
+
submitBatch: {
|
|
402
|
+
'submitBatch(uint64,uint64,(bytes32,bytes32),(bytes32,bytes32,uint64,uint64),(uint64,uint64),bytes32,bytes,bytes,uint256,bytes[])':
|
|
403
|
+
'0x4cd6c7c7',
|
|
404
|
+
'submitBatch(uint64,uint64,(bytes32,bytes32),(bytes32,bytes32,uint64,uint64),bytes32,bytes,bytes,uint256,bytes[])':
|
|
405
|
+
'0x78fb159b',
|
|
406
|
+
},
|
|
407
|
+
tokenConfig: '0xfe136c4e',
|
|
408
|
+
tokenEnablementCursorInitialized: '0x370ddf99',
|
|
409
|
+
tokenEnablementHash: '0xb456c0dd',
|
|
410
|
+
transferAdmin: '0x75829def',
|
|
411
|
+
verifier: '0x2b7ac3f3',
|
|
412
|
+
withdrawalBatchIndex: '0x2c37826e',
|
|
413
|
+
withdrawalQueueHead: '0x94ce88b0',
|
|
414
|
+
withdrawalQueueSlot: '0xcfaabb4d',
|
|
415
|
+
withdrawalQueueTail: '0x8081a8b2',
|
|
416
|
+
zoneGasRate: '0xecf79a4e',
|
|
417
|
+
zoneHeight: '0x430f8b4f',
|
|
418
|
+
zoneId: '0xd179978a',
|
|
419
|
+
} as const satisfies FunctionSelectors<
|
|
420
|
+
typeof Abis.zonePortal,
|
|
421
|
+
'deposit' | 'submitBatch'
|
|
422
|
+
> &
|
|
423
|
+
OverloadedFunctionSelectors<'deposit' | 'submitBatch'>
|
|
424
|
+
|
|
425
|
+
export const zonePortalPreT13Retired = {
|
|
426
|
+
MAX_DEPOSITS_PER_TEMPO_BLOCK: '0x1bf00ca8',
|
|
427
|
+
MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK: '0x3fcf7df4',
|
|
428
|
+
submitBatch: '0x78fb159b',
|
|
429
|
+
} as const satisfies FunctionSelectors<typeof Abis.zonePortalPreT13Retired>
|
|
430
|
+
|
|
431
|
+
export const zoneOutbox = {
|
|
432
|
+
AUTHENTICATED_WITHDRAWAL_CIPHERTEXT_LENGTH: '0x43c3cb83',
|
|
433
|
+
MAX_CALLBACK_DATA_SIZE: '0x53a8d739',
|
|
434
|
+
MAX_WITHDRAWAL_GAS_LIMIT: '0x86f47e55',
|
|
435
|
+
REVEAL_TO_KEY_LENGTH: '0x378fa8fa',
|
|
436
|
+
WITHDRAWAL_BASE_GAS: '0xc9b6ca9b',
|
|
437
|
+
calculateWithdrawalFee: '0x7b9c9aa4',
|
|
438
|
+
consumeFallbackRecipient: '0xa3a124c3',
|
|
439
|
+
enqueueDepositBounceBack: '0xe2e3ee5c',
|
|
440
|
+
finalizeWithdrawalBatch: '0xce7025e9',
|
|
441
|
+
getPendingWithdrawals: '0xc37fc8a8',
|
|
442
|
+
lastBatch: '0x48aa4108',
|
|
443
|
+
lastFallbackNonce: '0x3d1c5a93',
|
|
444
|
+
lastFinalizedTimestamp: '0x413e9cde',
|
|
445
|
+
maxWithdrawalsPerBlock: '0x545525f1',
|
|
446
|
+
nextWithdrawalIndex: '0xbba9282e',
|
|
447
|
+
pendingWithdrawalsCount: '0xd93af1d2',
|
|
448
|
+
requestWithdrawal: '0xb3b200aa',
|
|
449
|
+
setMaxWithdrawalsPerBlock: '0xb9d1fd68',
|
|
450
|
+
setTempoGasRate: '0x79fa3289',
|
|
451
|
+
tempoGasRate: '0x34065272',
|
|
452
|
+
} as const satisfies FunctionSelectors<typeof Abis.zoneOutbox>
|
|
453
|
+
|
|
454
|
+
export const zoneMessenger = {
|
|
455
|
+
relayMessage: '0x11da5261',
|
|
456
|
+
} as const satisfies FunctionSelectors<typeof Abis.zoneMessenger>
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { MaybePromise } from '../core/internal/types.js'
|
|
2
|
+
|
|
3
|
+
export type Store = {
|
|
4
|
+
/** Atomically replaces `expected` with `value` when supported. */
|
|
5
|
+
compareAndSet?: CompareAndSet | undefined
|
|
6
|
+
/** Reads a value. */
|
|
7
|
+
getItem(key: string): MaybePromise<string | null | undefined>
|
|
8
|
+
/** Removes a value. */
|
|
9
|
+
removeItem(key: string): MaybePromise<void>
|
|
10
|
+
/** Writes a value. */
|
|
11
|
+
setItem(key: string, value: string): MaybePromise<void>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Atomic compare-and-set operation. */
|
|
15
|
+
export type CompareAndSet = (
|
|
16
|
+
key: string,
|
|
17
|
+
expected: string | null,
|
|
18
|
+
value: string,
|
|
19
|
+
options?: CompareAndSet.Options | undefined,
|
|
20
|
+
) => MaybePromise<boolean>
|
|
21
|
+
|
|
22
|
+
export declare namespace CompareAndSet {
|
|
23
|
+
/** Compare-and-set options. */
|
|
24
|
+
export type Options = {
|
|
25
|
+
/** Unix timestamp in milliseconds after which the value expires. */
|
|
26
|
+
expiresAt?: number | undefined
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Store with atomic compare-and-set support. */
|
|
31
|
+
export type Atomic = Store & {
|
|
32
|
+
/** Atomically replaces `expected` with `value` and applies its expiration. */
|
|
33
|
+
compareAndSet: CompareAndSet
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Wraps a base store with an optional key prefix and request deduplication.
|
|
38
|
+
* Concurrent `getItem` calls for the same key share one in-flight promise.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* import { Store } from 'viem/tempo'
|
|
43
|
+
*
|
|
44
|
+
* const store = Store.from(Store.memory(), { key: 'tempo' })
|
|
45
|
+
* await store.setItem('foo', 'bar')
|
|
46
|
+
* // stored under "tempo:foo"
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export function from(store: Atomic, options?: from.Options | undefined): Atomic
|
|
50
|
+
export function from(store: Store, options?: from.Options | undefined): Store
|
|
51
|
+
export function from(store: Store, options: from.Options = {}): Store {
|
|
52
|
+
const { key } = options
|
|
53
|
+
const prefix = key ? `${key}:` : ''
|
|
54
|
+
const inflight = new Map<string, Promise<string | null | undefined>>()
|
|
55
|
+
const compareAndSet = store.compareAndSet?.bind(store)
|
|
56
|
+
return {
|
|
57
|
+
...(compareAndSet
|
|
58
|
+
? {
|
|
59
|
+
compareAndSet(k, expected, value, options) {
|
|
60
|
+
const fullKey = `${prefix}${k}`
|
|
61
|
+
inflight.delete(fullKey)
|
|
62
|
+
return compareAndSet(fullKey, expected, value, options)
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
: {}),
|
|
66
|
+
getItem(k) {
|
|
67
|
+
const fullKey = `${prefix}${k}`
|
|
68
|
+
const existing = inflight.get(fullKey)
|
|
69
|
+
if (existing) return existing
|
|
70
|
+
const result = Promise.resolve(store.getItem(fullKey)).finally(() => {
|
|
71
|
+
inflight.delete(fullKey)
|
|
72
|
+
})
|
|
73
|
+
inflight.set(fullKey, result)
|
|
74
|
+
return result
|
|
75
|
+
},
|
|
76
|
+
setItem(k, value) {
|
|
77
|
+
const fullKey = `${prefix}${k}`
|
|
78
|
+
inflight.delete(fullKey)
|
|
79
|
+
return store.setItem(fullKey, value)
|
|
80
|
+
},
|
|
81
|
+
removeItem(k) {
|
|
82
|
+
const fullKey = `${prefix}${k}`
|
|
83
|
+
inflight.delete(fullKey)
|
|
84
|
+
return store.removeItem(fullKey)
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export declare namespace from {
|
|
90
|
+
/** Store options. */
|
|
91
|
+
type Options = {
|
|
92
|
+
/** Key prefix prepended to all store keys. */
|
|
93
|
+
key?: string | undefined
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** Creates an in-memory store backed by a `Map`. */
|
|
98
|
+
export function memory(options: from.Options = {}): Atomic {
|
|
99
|
+
const store = new Map<
|
|
100
|
+
string,
|
|
101
|
+
{ expiresAt: number | undefined; value: string }
|
|
102
|
+
>()
|
|
103
|
+
const get = (key: string) => {
|
|
104
|
+
const entry = store.get(key)
|
|
105
|
+
if (!entry) return undefined
|
|
106
|
+
if (entry.expiresAt === undefined || entry.expiresAt > Date.now())
|
|
107
|
+
return entry
|
|
108
|
+
store.delete(key)
|
|
109
|
+
return undefined
|
|
110
|
+
}
|
|
111
|
+
return from(
|
|
112
|
+
{
|
|
113
|
+
compareAndSet(key, expected, value, options) {
|
|
114
|
+
if ((get(key)?.value ?? null) !== expected) return false
|
|
115
|
+
store.set(key, { expiresAt: options?.expiresAt, value })
|
|
116
|
+
return true
|
|
117
|
+
},
|
|
118
|
+
getItem(key) {
|
|
119
|
+
return get(key)?.value ?? null
|
|
120
|
+
},
|
|
121
|
+
setItem(key, value) {
|
|
122
|
+
store.set(key, { expiresAt: undefined, value })
|
|
123
|
+
},
|
|
124
|
+
removeItem(key) {
|
|
125
|
+
store.delete(key)
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
options,
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** Creates a store backed by `globalThis.sessionStorage`. */
|
|
133
|
+
export function session(options: from.Options = {}): Store {
|
|
134
|
+
return from(
|
|
135
|
+
{
|
|
136
|
+
getItem(key) {
|
|
137
|
+
return globalThis.sessionStorage.getItem(key)
|
|
138
|
+
},
|
|
139
|
+
setItem(key, value) {
|
|
140
|
+
try {
|
|
141
|
+
globalThis.sessionStorage.setItem(key, value)
|
|
142
|
+
} catch {}
|
|
143
|
+
},
|
|
144
|
+
removeItem(key) {
|
|
145
|
+
globalThis.sessionStorage.removeItem(key)
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
options,
|
|
149
|
+
)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
let _default: Store | undefined
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Returns the default store for the current environment.
|
|
156
|
+
*
|
|
157
|
+
* Returns a singleton so that the zone transport and actions share the
|
|
158
|
+
* same instance without requiring explicit plumbing.
|
|
159
|
+
*
|
|
160
|
+
* - Browser: `sessionStorage`
|
|
161
|
+
* - Server/unsupported: in-memory `Map`-based store
|
|
162
|
+
*/
|
|
163
|
+
export function defaultStore(): Store {
|
|
164
|
+
if (_default) return _default
|
|
165
|
+
try {
|
|
166
|
+
if (globalThis.sessionStorage) _default = session()
|
|
167
|
+
} catch {}
|
|
168
|
+
_default ??= memory()
|
|
169
|
+
return _default
|
|
170
|
+
}
|