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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Address } from 'ox'
|
|
2
|
+
import type * as Account from '../../../core/Account.js'
|
|
3
|
+
import type * as Chain from '../../../core/Chain.js'
|
|
4
|
+
import type * as Client from '../../../core/Client.js'
|
|
5
|
+
import { read } from '../../../core/actions/contract/read.js'
|
|
6
|
+
import * as Abis from '../../Abis.js'
|
|
7
|
+
import * as Addresses from '../../Addresses.js'
|
|
8
|
+
import type { ReadParameters } from '../../internal/types.js'
|
|
9
|
+
import { defineCall } from '../../internal/utils.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Gets the current configuration commitment for a native multisig account.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { Client, http } from 'viem'
|
|
17
|
+
* import { tempo } from 'viem/chains'
|
|
18
|
+
* import { Actions } from 'viem/tempo'
|
|
19
|
+
*
|
|
20
|
+
* const client = Client.create({
|
|
21
|
+
* chain: tempo,
|
|
22
|
+
* transport: http(),
|
|
23
|
+
* })
|
|
24
|
+
*
|
|
25
|
+
* const commitment = await Actions.multisig.getConfigCommitment(client, {
|
|
26
|
+
* account: '0x...',
|
|
27
|
+
* })
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @param client - Client.
|
|
31
|
+
* @param parameters - Parameters.
|
|
32
|
+
* @returns The current configuration commitment, or zero when no config has
|
|
33
|
+
* been committed.
|
|
34
|
+
*/
|
|
35
|
+
export async function getConfigCommitment<
|
|
36
|
+
chain extends Chain.Chain | undefined,
|
|
37
|
+
account extends Account.Account | undefined,
|
|
38
|
+
>(
|
|
39
|
+
client: Client.Client<chain, account>,
|
|
40
|
+
parameters: getConfigCommitment.Options,
|
|
41
|
+
): Promise<getConfigCommitment.ReturnType> {
|
|
42
|
+
const { account, ...rest } = parameters
|
|
43
|
+
return read(client, {
|
|
44
|
+
...rest,
|
|
45
|
+
...getConfigCommitment.call({ account }),
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace getConfigCommitment {
|
|
50
|
+
export type Options = ReadParameters & Args
|
|
51
|
+
|
|
52
|
+
export type Args = {
|
|
53
|
+
/** Initialized multisig account address. */
|
|
54
|
+
account: Address.Address
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ReturnType = read.ReturnType<
|
|
58
|
+
typeof Abis.nativeMultisig,
|
|
59
|
+
'getConfigCommitment',
|
|
60
|
+
never
|
|
61
|
+
>
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Defines a call to the `getConfigCommitment` function.
|
|
65
|
+
*
|
|
66
|
+
* Can be passed to [`multicall`](https://viem.sh/docs/contract/multicall).
|
|
67
|
+
*
|
|
68
|
+
* @param args - Arguments.
|
|
69
|
+
* @returns The call.
|
|
70
|
+
*/
|
|
71
|
+
export function call(args: Args) {
|
|
72
|
+
return defineCall({
|
|
73
|
+
address: Addresses.nativeMultisig,
|
|
74
|
+
abi: Abis.nativeMultisig,
|
|
75
|
+
args: [args.account],
|
|
76
|
+
functionName: 'getConfigCommitment',
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Errors, Hex } from 'ox'
|
|
2
|
+
import { MultisigOperation } from 'ox/tempo'
|
|
3
|
+
import type * as Client from '../../../core/Client.js'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Gets a coordinated multisig operation by its hash.
|
|
7
|
+
*
|
|
8
|
+
* @param client - Client.
|
|
9
|
+
* @param parameters - Parameters.
|
|
10
|
+
* @returns The operation, or `null` when it is unknown.
|
|
11
|
+
*/
|
|
12
|
+
export async function getOperation(
|
|
13
|
+
client: Client.Client,
|
|
14
|
+
parameters: getOperation.Options,
|
|
15
|
+
): Promise<getOperation.ReturnType> {
|
|
16
|
+
const operation = await client.request({
|
|
17
|
+
method: 'multisig_getOperation',
|
|
18
|
+
params: [parameters.hash],
|
|
19
|
+
})
|
|
20
|
+
return operation
|
|
21
|
+
? MultisigOperation.fromRpc(operation as MultisigOperation.Rpc)
|
|
22
|
+
: null
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare namespace getOperation {
|
|
26
|
+
/** Parameters for {@link getOperation}. */
|
|
27
|
+
export type Options = {
|
|
28
|
+
/** Multisig operation hash. */
|
|
29
|
+
hash: Hex.Hex
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Return value for {@link getOperation}. */
|
|
33
|
+
export type ReturnType = MultisigOperation.Operation | null
|
|
34
|
+
|
|
35
|
+
/** Error type for {@link getOperation}. */
|
|
36
|
+
export type ErrorType = Errors.GlobalErrorType
|
|
37
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import type { Address, Errors } from 'ox'
|
|
2
|
+
import { AbiEvent } from 'ox'
|
|
3
|
+
import { MultisigConfig } from 'ox/tempo'
|
|
4
|
+
import type * as Account from '../../../core/Account.js'
|
|
5
|
+
import type * as Chain from '../../../core/Chain.js'
|
|
6
|
+
import type * as Client from '../../../core/Client.js'
|
|
7
|
+
import { write } from '../../../core/actions/contract/write.js'
|
|
8
|
+
import { writeSync } from '../../../core/actions/contract/writeSync.js'
|
|
9
|
+
import * as Abis from '../../Abis.js'
|
|
10
|
+
import { fromMultisig, type MultisigAccount } from '../../Account.js'
|
|
11
|
+
import * as Addresses from '../../Addresses.js'
|
|
12
|
+
import type { WriteParameters } from '../../internal/types.js'
|
|
13
|
+
import { defineCall, dispatchWrite } from '../../internal/utils.js'
|
|
14
|
+
import { getConfig } from './getConfig.js'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Replaces the current configuration for a native multisig account.
|
|
18
|
+
*
|
|
19
|
+
* The transaction must be authorized directly by the account's current owner
|
|
20
|
+
* quorum. Local owner-signing flows can include {@link updateConfig.call} in a
|
|
21
|
+
* prepared transaction before collecting approvals.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* import { Client, http } from 'viem'
|
|
26
|
+
* import { Actions as CoreActions } from 'viem'
|
|
27
|
+
* import { tempoLocalnet } from 'viem/chains'
|
|
28
|
+
* import { Account, Actions } from 'viem/tempo'
|
|
29
|
+
*
|
|
30
|
+
* const owner = Account.fromSecp256k1(
|
|
31
|
+
* '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
|
|
32
|
+
* )
|
|
33
|
+
* const account = Account.fromMultisig({
|
|
34
|
+
* address: 'infer',
|
|
35
|
+
* owners: [owner],
|
|
36
|
+
* })
|
|
37
|
+
* const client = Client.create({
|
|
38
|
+
* chain: tempoLocalnet,
|
|
39
|
+
* transport: http(),
|
|
40
|
+
* })
|
|
41
|
+
*
|
|
42
|
+
* await CoreActions.transaction.sendSync(client, {
|
|
43
|
+
* account,
|
|
44
|
+
* to: account.address,
|
|
45
|
+
* })
|
|
46
|
+
*
|
|
47
|
+
* const hash = await Actions.multisig.updateConfig(client, {
|
|
48
|
+
* account,
|
|
49
|
+
* nextConfig: {
|
|
50
|
+
* owners: [{ owner: owner.address, weight: 1 }],
|
|
51
|
+
* threshold: 1,
|
|
52
|
+
* },
|
|
53
|
+
* })
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param client - Client.
|
|
57
|
+
* @param parameters - Parameters.
|
|
58
|
+
* @returns The transaction hash.
|
|
59
|
+
*/
|
|
60
|
+
export async function updateConfig<
|
|
61
|
+
chain extends Chain.Chain | undefined,
|
|
62
|
+
account extends Account.Account | undefined,
|
|
63
|
+
>(
|
|
64
|
+
client: Client.Client<chain, account>,
|
|
65
|
+
parameters: updateConfig.Options,
|
|
66
|
+
): Promise<updateConfig.ReturnType> {
|
|
67
|
+
return updateConfig.inner(write, client, parameters)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export namespace updateConfig {
|
|
71
|
+
export type Options = WriteParameters & {
|
|
72
|
+
/** Complete current config. Inferred from the account or coordinator when omitted. */
|
|
73
|
+
currentConfig?: MultisigConfig.Config | undefined
|
|
74
|
+
/** Replacement owners and threshold. */
|
|
75
|
+
nextConfig: Pick<MultisigConfig.Config, 'owners' | 'threshold'>
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type Args = {
|
|
79
|
+
/** Complete current config. */
|
|
80
|
+
currentConfig: MultisigConfig.Config
|
|
81
|
+
/** Replacement owners and threshold. */
|
|
82
|
+
nextConfig: Pick<MultisigConfig.Config, 'owners' | 'threshold'>
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type ReturnType = write.ReturnType
|
|
86
|
+
|
|
87
|
+
// TODO: exhaustive error type
|
|
88
|
+
export type ErrorType = Errors.GlobalErrorType
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export async function inner<
|
|
92
|
+
action extends typeof write | typeof writeSync,
|
|
93
|
+
chain extends Chain.Chain | undefined,
|
|
94
|
+
account extends Account.Account | undefined,
|
|
95
|
+
>(
|
|
96
|
+
action: action,
|
|
97
|
+
client: Client.Client<chain, account>,
|
|
98
|
+
parameters: Options,
|
|
99
|
+
): Promise<dispatchWrite.ReturnType<action>> {
|
|
100
|
+
const {
|
|
101
|
+
account: account_,
|
|
102
|
+
currentConfig: currentConfig_,
|
|
103
|
+
nextConfig,
|
|
104
|
+
...rest
|
|
105
|
+
} = parameters
|
|
106
|
+
const accountValue = account_ ?? client.account
|
|
107
|
+
const account = (() => {
|
|
108
|
+
if (
|
|
109
|
+
typeof accountValue === 'object' &&
|
|
110
|
+
'source' in accountValue &&
|
|
111
|
+
accountValue.source === 'multisig'
|
|
112
|
+
)
|
|
113
|
+
return accountValue as MultisigAccount
|
|
114
|
+
return undefined
|
|
115
|
+
})()
|
|
116
|
+
const config = (() => {
|
|
117
|
+
if (currentConfig_) return currentConfig_
|
|
118
|
+
if (account?.config) return account.config
|
|
119
|
+
return undefined
|
|
120
|
+
})()
|
|
121
|
+
const address = (() => {
|
|
122
|
+
if (account) return account.address
|
|
123
|
+
if (typeof accountValue === 'string')
|
|
124
|
+
return accountValue as Address.Address
|
|
125
|
+
if (accountValue) return accountValue.address
|
|
126
|
+
return undefined
|
|
127
|
+
})()
|
|
128
|
+
const currentConfig = await (async () => {
|
|
129
|
+
if (config) return MultisigConfig.from(config)
|
|
130
|
+
if (!address)
|
|
131
|
+
throw new Error(
|
|
132
|
+
'A multisig account address or current config is required.',
|
|
133
|
+
)
|
|
134
|
+
const cachedConfig = await getConfig(client, { address })
|
|
135
|
+
if (!cachedConfig)
|
|
136
|
+
throw new Error(
|
|
137
|
+
`No current multisig config is cached for account ${address}. Provide the current config.`,
|
|
138
|
+
)
|
|
139
|
+
return cachedConfig
|
|
140
|
+
})()
|
|
141
|
+
const resolvedAccount = (() => {
|
|
142
|
+
if (account) return { ...account, config: currentConfig }
|
|
143
|
+
if (typeof accountValue === 'object') return accountValue
|
|
144
|
+
if (address) return fromMultisig({ address, ...currentConfig })
|
|
145
|
+
return undefined
|
|
146
|
+
})()
|
|
147
|
+
return dispatchWrite(action, client, {
|
|
148
|
+
...rest,
|
|
149
|
+
...(resolvedAccount ? { account: resolvedAccount } : {}),
|
|
150
|
+
...updateConfig.call({ currentConfig, nextConfig }),
|
|
151
|
+
})
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Defines a call to the `updateConfig` function.
|
|
156
|
+
*
|
|
157
|
+
* Can be passed as a parameter to:
|
|
158
|
+
* - [`estimateContractGas`](https://viem.sh/docs/contract/estimateContractGas): estimate gas
|
|
159
|
+
* - [`simulateContract`](https://viem.sh/docs/contract/simulateContract): simulate the update
|
|
160
|
+
* - [`sendCalls`](https://viem.sh/docs/actions/wallet/sendCalls): include the update in a call batch
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```ts
|
|
164
|
+
* import { Actions, type MultisigConfig } from 'viem/tempo'
|
|
165
|
+
*
|
|
166
|
+
* declare const currentConfig: MultisigConfig.Config
|
|
167
|
+
*
|
|
168
|
+
* const call = Actions.multisig.updateConfig.call({
|
|
169
|
+
* currentConfig,
|
|
170
|
+
* nextConfig: {
|
|
171
|
+
* owners: [{ owner: '0x...', weight: 1 }],
|
|
172
|
+
* threshold: 1,
|
|
173
|
+
* },
|
|
174
|
+
* })
|
|
175
|
+
* ```
|
|
176
|
+
*
|
|
177
|
+
* @param args - Current and replacement multisig configurations.
|
|
178
|
+
* @returns The call.
|
|
179
|
+
*/
|
|
180
|
+
export function call(args: Args) {
|
|
181
|
+
const currentConfig = MultisigConfig.from(args.currentConfig)
|
|
182
|
+
const nextConfig = MultisigConfig.from({
|
|
183
|
+
owners: args.nextConfig.owners,
|
|
184
|
+
salt: currentConfig.salt,
|
|
185
|
+
threshold: args.nextConfig.threshold,
|
|
186
|
+
version: currentConfig.version + 1n,
|
|
187
|
+
})
|
|
188
|
+
return defineCall({
|
|
189
|
+
address: Addresses.nativeMultisig,
|
|
190
|
+
abi: Abis.nativeMultisig,
|
|
191
|
+
args: [currentConfig, nextConfig.threshold, nextConfig.owners],
|
|
192
|
+
functionName: 'updateConfig',
|
|
193
|
+
})
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Extracts the `MultisigConfigUpdated` event from logs.
|
|
198
|
+
*
|
|
199
|
+
* @param logs - Transaction logs.
|
|
200
|
+
* @returns The configuration update event.
|
|
201
|
+
*/
|
|
202
|
+
export function extractEvent(logs: readonly AbiEvent.extractLogs.Log[]) {
|
|
203
|
+
const [log] = AbiEvent.extractLogs(Abis.nativeMultisig, logs, {
|
|
204
|
+
eventName: 'MultisigConfigUpdated',
|
|
205
|
+
strict: true,
|
|
206
|
+
})
|
|
207
|
+
if (!log) throw new Error('`MultisigConfigUpdated` event not found.')
|
|
208
|
+
return log
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { Address } from 'ox'
|
|
2
|
+
import { MultisigConfig } from 'ox/tempo'
|
|
3
|
+
import type * as Account from '../../../core/Account.js'
|
|
4
|
+
import type * as Chain from '../../../core/Chain.js'
|
|
5
|
+
import type * as Client from '../../../core/Client.js'
|
|
6
|
+
import { writeSync } from '../../../core/actions/contract/writeSync.js'
|
|
7
|
+
import type { TransactionReceipt } from '../../chainConfig.js'
|
|
8
|
+
import { updateConfig } from './updateConfig.js'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Replaces a native multisig configuration and waits for confirmation.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { createWalletClient, custom, type EIP1193Provider } from 'viem'
|
|
16
|
+
* import { tempo } from 'viem/chains'
|
|
17
|
+
* import { Actions, type MultisigConfig } from 'viem/tempo'
|
|
18
|
+
*
|
|
19
|
+
* declare const provider: EIP1193Provider
|
|
20
|
+
* declare const currentConfig: MultisigConfig.Config
|
|
21
|
+
*
|
|
22
|
+
* const client = createWalletClient({
|
|
23
|
+
* account: '0x...',
|
|
24
|
+
* chain: tempo,
|
|
25
|
+
* transport: custom(provider),
|
|
26
|
+
* })
|
|
27
|
+
*
|
|
28
|
+
* const { receipt } = await Actions.multisig.updateConfigSync(client, {
|
|
29
|
+
* currentConfig,
|
|
30
|
+
* nextConfig: {
|
|
31
|
+
* owners: [{ owner: '0x...', weight: 1 }],
|
|
32
|
+
* threshold: 1,
|
|
33
|
+
* },
|
|
34
|
+
* })
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param client - Client.
|
|
38
|
+
* @param parameters - Parameters.
|
|
39
|
+
* @returns The updated configuration event and transaction receipt.
|
|
40
|
+
*/
|
|
41
|
+
export async function updateConfigSync<
|
|
42
|
+
chain extends Chain.Chain | undefined,
|
|
43
|
+
account extends Account.Account | undefined,
|
|
44
|
+
>(
|
|
45
|
+
client: Client.Client<chain, account>,
|
|
46
|
+
parameters: updateConfigSync.Options,
|
|
47
|
+
): Promise<updateConfigSync.ReturnType> {
|
|
48
|
+
const { throwOnReceiptRevert = true, ...rest } = parameters
|
|
49
|
+
const receipt = await updateConfig.inner(writeSync, client, {
|
|
50
|
+
...rest,
|
|
51
|
+
throwOnReceiptRevert,
|
|
52
|
+
})
|
|
53
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
54
|
+
return { receipt } as updateConfigSync.ReturnType
|
|
55
|
+
const { args } = updateConfig.extractEvent(receipt.logs)
|
|
56
|
+
return {
|
|
57
|
+
account: args.account,
|
|
58
|
+
config: MultisigConfig.from({
|
|
59
|
+
owners: args.owners,
|
|
60
|
+
salt: args.salt,
|
|
61
|
+
threshold: args.threshold,
|
|
62
|
+
version: args.version,
|
|
63
|
+
}),
|
|
64
|
+
receipt,
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace updateConfigSync {
|
|
69
|
+
export type Options = updateConfig.Options
|
|
70
|
+
|
|
71
|
+
export type Args = updateConfig.Args
|
|
72
|
+
|
|
73
|
+
export type ReturnType = {
|
|
74
|
+
account: Address.Address
|
|
75
|
+
config: MultisigConfig.Config
|
|
76
|
+
receipt: TransactionReceipt
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type ErrorType = updateConfig.ErrorType
|
|
80
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors } from 'ox'
|
|
2
|
+
import type { TransactionReceipt } from '../../chainConfig.js'
|
|
2
3
|
|
|
3
4
|
import type * as Account from '../../../core/Account.js'
|
|
4
5
|
import type * as Chain from '../../../core/Chain.js'
|
|
@@ -20,6 +21,9 @@ export async function createSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as createSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = create.extractEvent(receipt.logs)
|
|
24
28
|
return {
|
|
25
29
|
policyId: args.policyId,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors } from 'ox'
|
|
2
|
+
import type { TransactionReceipt } from '../../chainConfig.js'
|
|
2
3
|
|
|
3
4
|
import type * as Account from '../../../core/Account.js'
|
|
4
5
|
import type * as Chain from '../../../core/Chain.js'
|
|
@@ -20,6 +21,9 @@ export async function modifyBlacklistSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as modifyBlacklistSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = modifyBlacklist.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors } from 'ox'
|
|
2
|
+
import type { TransactionReceipt } from '../../chainConfig.js'
|
|
2
3
|
|
|
3
4
|
import type * as Account from '../../../core/Account.js'
|
|
4
5
|
import type * as Chain from '../../../core/Chain.js'
|
|
@@ -20,6 +21,9 @@ export async function modifyWhitelistSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as modifyWhitelistSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = modifyWhitelist.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors } from 'ox'
|
|
2
|
+
import type { TransactionReceipt } from '../../chainConfig.js'
|
|
2
3
|
|
|
3
4
|
import type * as Account from '../../../core/Account.js'
|
|
4
5
|
import type * as Chain from '../../../core/Chain.js'
|
|
@@ -20,6 +21,9 @@ export async function setAdminSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as setAdminSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = setAdmin.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|