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
|
@@ -1,80 +1,249 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { parseApproval } from '../../multisig/Signature.js'
|
|
2
|
+
import { Address, type Errors, type Hex } from 'ox'
|
|
3
|
+
import {
|
|
4
|
+
KeyAuthorization,
|
|
5
|
+
MultisigOperation,
|
|
6
|
+
SignatureEnvelope,
|
|
7
|
+
} from 'ox/tempo'
|
|
3
8
|
import * as CoreAccount from '../../../core/Account.js'
|
|
4
9
|
import type * as Chain from '../../../core/Chain.js'
|
|
5
10
|
import type * as Client from '../../../core/Client.js'
|
|
6
|
-
import
|
|
11
|
+
import type { Compute, OneOf } from '../../../core/internal/types.js'
|
|
12
|
+
import {
|
|
13
|
+
fromMultisig,
|
|
14
|
+
resolveAccessKey,
|
|
15
|
+
signKeyAuthorization,
|
|
16
|
+
type MultisigAccount,
|
|
17
|
+
type RootAccount,
|
|
18
|
+
} from '../../Account.js'
|
|
19
|
+
import { getConfig } from '../multisig/getConfig.js'
|
|
20
|
+
import { prepareAuthorization } from './prepareAuthorization.js'
|
|
7
21
|
|
|
8
22
|
/**
|
|
9
23
|
* Signs a key authorization for an access key.
|
|
10
24
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* for a one-step variant).
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* import { P256 } from 'viem/utils'
|
|
18
|
-
* import { Account, Actions, Client, http } from 'viem/tempo'
|
|
19
|
-
*
|
|
20
|
-
* const account = Account.fromSecp256k1('0x…')
|
|
21
|
-
* const client = Client.create({
|
|
22
|
-
* account,
|
|
23
|
-
* transport: http(),
|
|
24
|
-
* })
|
|
25
|
-
*
|
|
26
|
-
* const accessKey = Account.fromP256(P256.randomPrivateKey(), {
|
|
27
|
-
* access: account,
|
|
28
|
-
* })
|
|
29
|
-
*
|
|
30
|
-
* const keyAuthorization = await Actions.accessKey.signAuthorization(client, {
|
|
31
|
-
* accessKey,
|
|
32
|
-
* expiry: Math.floor((Date.now() + 30_000) / 1000),
|
|
33
|
-
* })
|
|
34
|
-
* ```
|
|
25
|
+
* Use {@link prepareAuthorization} before this action when signing requires
|
|
26
|
+
* transient user activation.
|
|
35
27
|
*
|
|
36
28
|
* @param client - Client.
|
|
37
|
-
* @param
|
|
38
|
-
* @returns
|
|
29
|
+
* @param parameters - Authorization fields, or a stored operation hash.
|
|
30
|
+
* @returns A signed key authorization with multisig operation metadata when coordinated.
|
|
39
31
|
*/
|
|
32
|
+
export function signAuthorization<
|
|
33
|
+
chain extends Chain.Chain | undefined,
|
|
34
|
+
account extends CoreAccount.Account | undefined,
|
|
35
|
+
>(
|
|
36
|
+
client: Client.Client<chain, account>,
|
|
37
|
+
parameters: signAuthorization.CoordinatedOptions,
|
|
38
|
+
): Promise<signAuthorization.CoordinatedReturnType>
|
|
39
|
+
export function signAuthorization<
|
|
40
|
+
chain extends Chain.Chain | undefined,
|
|
41
|
+
account extends CoreAccount.Account | undefined,
|
|
42
|
+
>(
|
|
43
|
+
client: Client.Client<chain, account>,
|
|
44
|
+
parameters: signAuthorization.LocalOptions<account>,
|
|
45
|
+
): Promise<signAuthorization.ReturnType>
|
|
40
46
|
export async function signAuthorization<
|
|
41
47
|
chain extends Chain.Chain | undefined,
|
|
42
48
|
account extends CoreAccount.Account | undefined,
|
|
43
49
|
>(
|
|
44
50
|
client: Client.Client<chain, account>,
|
|
45
|
-
|
|
46
|
-
): Promise<
|
|
51
|
+
parameters: signAuthorization.Options<account>,
|
|
52
|
+
): Promise<
|
|
53
|
+
signAuthorization.CoordinatedReturnType | signAuthorization.ReturnType
|
|
54
|
+
> {
|
|
55
|
+
const coordinated =
|
|
56
|
+
('hash' in parameters && parameters.hash) ||
|
|
57
|
+
('owner' in parameters && parameters.owner)
|
|
58
|
+
|
|
59
|
+
if (coordinated) {
|
|
60
|
+
const parameters_ = parameters as signAuthorization.CoordinatedOptions
|
|
61
|
+
const owner_ = parameters_.owner
|
|
62
|
+
if (!owner_ || typeof owner_ === 'string')
|
|
63
|
+
throw new Error(
|
|
64
|
+
'A local owner account is required to approve a multisig key authorization.',
|
|
65
|
+
)
|
|
66
|
+
const owner = owner_
|
|
67
|
+
const sign = owner.sign
|
|
68
|
+
if (!sign)
|
|
69
|
+
throw new Error(
|
|
70
|
+
'A local owner account is required to approve a multisig key authorization.',
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
const request = await (async () => {
|
|
74
|
+
if ('hash' in parameters_ && parameters_.hash) {
|
|
75
|
+
const signature = SignatureEnvelope.serialize(
|
|
76
|
+
SignatureEnvelope.from(await sign({ hash: parameters_.hash })),
|
|
77
|
+
)
|
|
78
|
+
return { hash: parameters_.hash, signature }
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const {
|
|
82
|
+
account: account_,
|
|
83
|
+
owner: _,
|
|
84
|
+
...authorization
|
|
85
|
+
} = parameters_ as signAuthorization.CoordinatedInitialOptions
|
|
86
|
+
const address = typeof account_ === 'string' ? account_ : account_.address
|
|
87
|
+
const config = await (async () => {
|
|
88
|
+
if (typeof account_ !== 'string' && account_.config)
|
|
89
|
+
return account_.config
|
|
90
|
+
const config = await getConfig(client, { address })
|
|
91
|
+
if (config) return config
|
|
92
|
+
throw new Error(
|
|
93
|
+
`No current multisig config is cached for account ${address}. Provide the current config.`,
|
|
94
|
+
)
|
|
95
|
+
})()
|
|
96
|
+
const account = (() => {
|
|
97
|
+
if (config.version !== 0n) return fromMultisig({ address, ...config })
|
|
98
|
+
const { version: _, ...initialConfig } = config
|
|
99
|
+
return fromMultisig({ address: 'infer', ...initialConfig })
|
|
100
|
+
})()
|
|
101
|
+
if (!Address.isEqual(account.address, address))
|
|
102
|
+
throw new Error('Initial multisig config does not match the account.')
|
|
103
|
+
const prepared = await prepareAuthorization(client, {
|
|
104
|
+
...authorization,
|
|
105
|
+
account,
|
|
106
|
+
})
|
|
107
|
+
const signature = SignatureEnvelope.serialize(
|
|
108
|
+
SignatureEnvelope.from(await sign({ hash: prepared.signPayload })),
|
|
109
|
+
)
|
|
110
|
+
const { accessKey, admin, chainId, expiry, limits, scopes, witness } =
|
|
111
|
+
prepared
|
|
112
|
+
const { accessKeyAddress, keyType: type } = resolveAccessKey(accessKey)
|
|
113
|
+
const keyAuthorization = KeyAuthorization.from({
|
|
114
|
+
account: account.address,
|
|
115
|
+
address: accessKeyAddress,
|
|
116
|
+
chainId: BigInt(chainId),
|
|
117
|
+
signature: SignatureEnvelope.from({
|
|
118
|
+
account: account.address,
|
|
119
|
+
config,
|
|
120
|
+
signatures: [parseApproval(signature)],
|
|
121
|
+
}),
|
|
122
|
+
type,
|
|
123
|
+
...(witness ? { witness } : {}),
|
|
124
|
+
...(admin ? { isAdmin: true } : { expiry, limits, scopes }),
|
|
125
|
+
} as KeyAuthorization.Signed)
|
|
126
|
+
return { keyAuthorization: KeyAuthorization.toRpc(keyAuthorization) }
|
|
127
|
+
})()
|
|
128
|
+
|
|
129
|
+
const operation = await client.request({
|
|
130
|
+
method: 'multisig_approveKeyAuthorization',
|
|
131
|
+
params: [request],
|
|
132
|
+
})
|
|
133
|
+
const multisig = MultisigOperation.fromRpc(
|
|
134
|
+
operation as MultisigOperation.KeyAuthorizationRpc,
|
|
135
|
+
)
|
|
136
|
+
const keyAuthorization = KeyAuthorization.deserialize(
|
|
137
|
+
await (async () => {
|
|
138
|
+
if (multisig.status === 'success') return multisig.keyAuthorization
|
|
139
|
+
const approvals = await MultisigOperation.selectApprovals({
|
|
140
|
+
account: multisig.account,
|
|
141
|
+
approvals: multisig.approvals,
|
|
142
|
+
config: multisig.config,
|
|
143
|
+
hash: multisig.hash,
|
|
144
|
+
})
|
|
145
|
+
return MultisigOperation.serializeKeyAuthorization(
|
|
146
|
+
multisig.keyAuthorization,
|
|
147
|
+
{
|
|
148
|
+
account: multisig.account,
|
|
149
|
+
approvals:
|
|
150
|
+
approvals.selectedApprovals.length > 0
|
|
151
|
+
? approvals.selectedApprovals
|
|
152
|
+
: approvals.approvals.slice(0, 1),
|
|
153
|
+
config: multisig.config,
|
|
154
|
+
},
|
|
155
|
+
)
|
|
156
|
+
})(),
|
|
157
|
+
)
|
|
158
|
+
if (!keyAuthorization.signature)
|
|
159
|
+
throw new Error('Expected a signed multisig key authorization.')
|
|
160
|
+
return {
|
|
161
|
+
...keyAuthorization,
|
|
162
|
+
hash: multisig.hash,
|
|
163
|
+
multisig,
|
|
164
|
+
status: multisig.status,
|
|
165
|
+
} as signAuthorization.CoordinatedReturnType
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
const prepared = (
|
|
169
|
+
'signPayload' in parameters
|
|
170
|
+
? parameters
|
|
171
|
+
: await prepareAuthorization(
|
|
172
|
+
client,
|
|
173
|
+
parameters as signAuthorization.LocalOptions<account>,
|
|
174
|
+
)
|
|
175
|
+
) as prepareAuthorization.ReturnType
|
|
47
176
|
const {
|
|
48
177
|
accessKey,
|
|
49
|
-
account: account_
|
|
50
|
-
chainId = client.chain?.id,
|
|
51
|
-
...rest
|
|
52
|
-
} = options
|
|
53
|
-
if (!account_) throw new CoreAccount.NotFoundError()
|
|
54
|
-
if (typeof account_ === 'string')
|
|
55
|
-
throw new Error('account signing is required.')
|
|
56
|
-
if (chainId === undefined) throw new Error('chainId is required.')
|
|
57
|
-
return Account.signKeyAuthorization(account_ as CoreAccount.Local, {
|
|
58
|
-
...rest,
|
|
178
|
+
account: account_,
|
|
59
179
|
chainId,
|
|
180
|
+
multisig: multisigState,
|
|
181
|
+
signPayload: _,
|
|
182
|
+
...rest
|
|
183
|
+
} = prepared
|
|
184
|
+
return signKeyAuthorization(account_ as CoreAccount.Local, {
|
|
185
|
+
chainId: BigInt(chainId),
|
|
60
186
|
key: accessKey,
|
|
187
|
+
multisig: multisigState,
|
|
188
|
+
...rest,
|
|
61
189
|
})
|
|
62
190
|
}
|
|
63
191
|
|
|
64
192
|
export namespace signAuthorization {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
193
|
+
/** Initial coordinated key authorization parameters. */
|
|
194
|
+
export type CoordinatedInitialOptions = Omit<
|
|
195
|
+
prepareAuthorization.Options<CoreAccount.Account>,
|
|
196
|
+
'account' | 'multisig'
|
|
68
197
|
> & {
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
/** Chain ID for replay protection. @default client.chain.id */
|
|
74
|
-
chainId?: number | bigint | undefined
|
|
198
|
+
/** Multisig account being authorized. */
|
|
199
|
+
account: Address.Address | MultisigAccount
|
|
200
|
+
/** Local owner that approves the authorization. */
|
|
201
|
+
owner: RootAccount
|
|
75
202
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
203
|
+
|
|
204
|
+
/** Coordinated key authorization parameters. */
|
|
205
|
+
export type CoordinatedOptions = OneOf<
|
|
206
|
+
| CoordinatedInitialOptions
|
|
207
|
+
| {
|
|
208
|
+
/** Stored multisig operation hash. */
|
|
209
|
+
hash: Hex.Hex
|
|
210
|
+
/** Local owner that approves the authorization. */
|
|
211
|
+
owner: RootAccount
|
|
212
|
+
}
|
|
213
|
+
>
|
|
214
|
+
|
|
215
|
+
/** Locally signed key authorization parameters. */
|
|
216
|
+
export type LocalOptions<
|
|
217
|
+
account extends CoreAccount.Account | undefined =
|
|
218
|
+
| CoreAccount.Account
|
|
219
|
+
| undefined,
|
|
220
|
+
> = prepareAuthorization.Options<account> & {
|
|
221
|
+
/** Serialized approvals from external multisig owners. */
|
|
222
|
+
signatures?: readonly SignatureEnvelope.Serialized[] | undefined
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/** Parameters for {@link signAuthorization}. */
|
|
226
|
+
export type Options<
|
|
227
|
+
account extends CoreAccount.Account | undefined =
|
|
228
|
+
| CoreAccount.Account
|
|
229
|
+
| undefined,
|
|
230
|
+
> = CoordinatedOptions | LocalOptions<account>
|
|
231
|
+
|
|
232
|
+
/** Local return value for {@link signAuthorization}. */
|
|
233
|
+
export type ReturnType = KeyAuthorization.Signed
|
|
234
|
+
|
|
235
|
+
/** Coordinated return value for {@link signAuthorization}. */
|
|
236
|
+
export type CoordinatedReturnType = Compute<
|
|
237
|
+
ReturnType & {
|
|
238
|
+
/** Deterministic multisig operation hash. */
|
|
239
|
+
hash: Hex.Hex
|
|
240
|
+
/** Current multisig operation. */
|
|
241
|
+
multisig: MultisigOperation.KeyAuthorizationOperation
|
|
242
|
+
/** Current multisig operation status. */
|
|
243
|
+
status: MultisigOperation.KeyAuthorizationOperation['status']
|
|
244
|
+
}
|
|
245
|
+
>
|
|
246
|
+
|
|
247
|
+
/** Error type for {@link signAuthorization}. */
|
|
79
248
|
export type ErrorType = Errors.GlobalErrorType
|
|
80
249
|
}
|
|
@@ -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'
|
|
@@ -43,6 +44,9 @@ export async function updateLimitSync<
|
|
|
43
44
|
...options,
|
|
44
45
|
throwOnReceiptRevert,
|
|
45
46
|
})
|
|
47
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
48
|
+
return { receipt } as updateLimitSync.ReturnType
|
|
49
|
+
|
|
46
50
|
const { args } = updateLimit.extractEvent(receipt.logs)
|
|
47
51
|
return {
|
|
48
52
|
account: args.account,
|
|
@@ -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'
|
|
@@ -41,6 +42,9 @@ export async function burnSync<
|
|
|
41
42
|
...options,
|
|
42
43
|
throwOnReceiptRevert,
|
|
43
44
|
})
|
|
45
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
46
|
+
return { receipt } as burnSync.ReturnType
|
|
47
|
+
|
|
44
48
|
const { args } = burn.extractEvent(receipt.logs)
|
|
45
49
|
return {
|
|
46
50
|
...args,
|
|
@@ -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'
|
|
@@ -41,6 +42,9 @@ export async function mintSync<
|
|
|
41
42
|
...options,
|
|
42
43
|
throwOnReceiptRevert,
|
|
43
44
|
})
|
|
45
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
46
|
+
return { receipt } as mintSync.ReturnType
|
|
47
|
+
|
|
44
48
|
const { args } = mint.extractEvent(receipt.logs)
|
|
45
49
|
return {
|
|
46
50
|
...args,
|
|
@@ -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'
|
|
@@ -41,6 +42,9 @@ export async function rebalanceSwapSync<
|
|
|
41
42
|
...options,
|
|
42
43
|
throwOnReceiptRevert,
|
|
43
44
|
})
|
|
45
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
46
|
+
return { receipt } as rebalanceSwapSync.ReturnType
|
|
47
|
+
|
|
44
48
|
const { args } = rebalanceSwap.extractEvent(receipt.logs)
|
|
45
49
|
return {
|
|
46
50
|
...args,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors, Hex } 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 closeSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as closeSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = close.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors, Hex } 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 openSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as openSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = open.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors, Hex } 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 requestCloseSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as requestCloseSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = requestClose.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors, Hex } 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 settleSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as settleSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = settle.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors, Hex } 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 topUpSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as topUpSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = topUp.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Address, Errors, Hex } 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 withdrawSync<
|
|
|
20
21
|
...options,
|
|
21
22
|
throwOnReceiptRevert,
|
|
22
23
|
})
|
|
24
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
25
|
+
return { receipt } as withdrawSync.ReturnType
|
|
26
|
+
|
|
23
27
|
const { args } = withdraw.extractEvent(receipt.logs)
|
|
24
28
|
return { ...args, receipt }
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { 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'
|
|
@@ -40,6 +41,9 @@ export async function cancelStaleSync<
|
|
|
40
41
|
...options,
|
|
41
42
|
throwOnReceiptRevert,
|
|
42
43
|
})
|
|
44
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
45
|
+
return { receipt } as cancelStaleSync.ReturnType
|
|
46
|
+
|
|
43
47
|
const { args } = cancelStale.extractEvent(receipt.logs)
|
|
44
48
|
return {
|
|
45
49
|
...args,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { 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'
|
|
@@ -40,6 +41,9 @@ export async function cancelSync<
|
|
|
40
41
|
...options,
|
|
41
42
|
throwOnReceiptRevert,
|
|
42
43
|
})
|
|
44
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
45
|
+
return { receipt } as cancelSync.ReturnType
|
|
46
|
+
|
|
43
47
|
const { args } = cancel.extractEvent(receipt.logs)
|
|
44
48
|
return {
|
|
45
49
|
...args,
|
|
@@ -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'
|
|
@@ -40,6 +41,9 @@ export async function createPairSync<
|
|
|
40
41
|
...options,
|
|
41
42
|
throwOnReceiptRevert,
|
|
42
43
|
})
|
|
44
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
45
|
+
return { receipt } as createPairSync.ReturnType
|
|
46
|
+
|
|
43
47
|
const { args } = createPair.extractEvent(receipt.logs)
|
|
44
48
|
return {
|
|
45
49
|
...args,
|
|
@@ -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'
|
|
@@ -40,6 +41,9 @@ export async function placeFlipSync<
|
|
|
40
41
|
...options,
|
|
41
42
|
throwOnReceiptRevert,
|
|
42
43
|
})
|
|
44
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
45
|
+
return { receipt } as placeFlipSync.ReturnType
|
|
46
|
+
|
|
43
47
|
const { args } = placeFlip.extractEvent(receipt.logs)
|
|
44
48
|
return {
|
|
45
49
|
...args,
|
|
@@ -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'
|
|
@@ -40,6 +41,9 @@ export async function placeSync<
|
|
|
40
41
|
...options,
|
|
41
42
|
throwOnReceiptRevert,
|
|
42
43
|
})
|
|
44
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
45
|
+
return { receipt } as placeSync.ReturnType
|
|
46
|
+
|
|
43
47
|
const { args } = place.extractEvent(receipt.logs)
|
|
44
48
|
return {
|
|
45
49
|
...args,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { 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'
|
|
@@ -40,6 +41,9 @@ export async function withdrawSync<
|
|
|
40
41
|
...options,
|
|
41
42
|
throwOnReceiptRevert,
|
|
42
43
|
})
|
|
44
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
45
|
+
return { receipt } as withdrawSync.ReturnType
|
|
46
|
+
|
|
43
47
|
return { receipt }
|
|
44
48
|
}
|
|
45
49
|
|