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,8 +1,9 @@
|
|
|
1
|
-
import { AbiEvent, Address, Hex } from 'ox'
|
|
2
1
|
import type { Errors } from 'ox'
|
|
2
|
+
import { AbiEvent, Address, Hex } from 'ox'
|
|
3
|
+
import type { TransactionReceipt } from '../../chainConfig.js'
|
|
3
4
|
|
|
4
5
|
import * as Account from '../../../core/Account.js'
|
|
5
|
-
import
|
|
6
|
+
import * as Chain from '../../../core/Chain.js'
|
|
6
7
|
import type * as Client from '../../../core/Client.js'
|
|
7
8
|
import { BaseError } from '../../../core/Errors.js'
|
|
8
9
|
import { getCode } from '../../../core/actions/address/getCode.js'
|
|
@@ -24,13 +25,38 @@ import {
|
|
|
24
25
|
pickWriteParameters,
|
|
25
26
|
pickWriteSyncParameters,
|
|
26
27
|
} from '../../internal/utils.js'
|
|
27
|
-
import type { TransactionReceipt } from '../../chainConfig.js'
|
|
28
28
|
|
|
29
29
|
const maxUint64 = 2n ** 64n - 1n
|
|
30
30
|
const maxUint256 = 2n ** 256n - 1n
|
|
31
31
|
const zeroAddress =
|
|
32
32
|
'0x0000000000000000000000000000000000000000' as const satisfies Address.Address
|
|
33
33
|
|
|
34
|
+
const engineBindingAbi = [
|
|
35
|
+
{
|
|
36
|
+
type: 'function',
|
|
37
|
+
name: 'initializeEarnVault',
|
|
38
|
+
inputs: [
|
|
39
|
+
{ name: 'earnVault_', type: 'address' },
|
|
40
|
+
{ name: 'finalOwner_', type: 'address' },
|
|
41
|
+
],
|
|
42
|
+
outputs: [],
|
|
43
|
+
stateMutability: 'nonpayable',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'function',
|
|
47
|
+
name: 'initializeEarnVault',
|
|
48
|
+
inputs: [{ name: 'earnVault_', type: 'address' }],
|
|
49
|
+
outputs: [],
|
|
50
|
+
stateMutability: 'nonpayable',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'event',
|
|
54
|
+
name: 'EarnVaultInitialized',
|
|
55
|
+
inputs: [{ name: 'earnVault', type: 'address', indexed: true }],
|
|
56
|
+
anonymous: false,
|
|
57
|
+
},
|
|
58
|
+
] as const
|
|
59
|
+
|
|
34
60
|
/** @experimental Factory addresses for one reviewed Tempo Earn release. */
|
|
35
61
|
export type EarnFactoryAddresses = {
|
|
36
62
|
/** `ERC4626EngineFactory` address. */
|
|
@@ -147,7 +173,7 @@ export namespace createErc4626Engine {
|
|
|
147
173
|
venue: Address.Address
|
|
148
174
|
}
|
|
149
175
|
|
|
150
|
-
export type Parameters = WriteParameters &
|
|
176
|
+
export type Parameters = Omit<WriteParameters, 'owner'> &
|
|
151
177
|
Omit<Args, 'owner'> & {
|
|
152
178
|
/** Final engine owner. @default `account.address` */
|
|
153
179
|
owner?: Account.Account | Address.Address | undefined
|
|
@@ -333,6 +359,8 @@ export async function createErc4626EngineSync<
|
|
|
333
359
|
...parameters,
|
|
334
360
|
throwOnReceiptRevert,
|
|
335
361
|
} as never)
|
|
362
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
363
|
+
return { receipt } as never
|
|
336
364
|
const { args } = createErc4626Engine.extractEvent(receipt.logs, { factory })
|
|
337
365
|
return { ...args, receipt }
|
|
338
366
|
}
|
|
@@ -406,7 +434,7 @@ export namespace createStack {
|
|
|
406
434
|
transferPolicyId?: bigint | undefined
|
|
407
435
|
}
|
|
408
436
|
|
|
409
|
-
export type Parameters = WriteParameters &
|
|
437
|
+
export type Parameters = Omit<WriteParameters, 'owner'> &
|
|
410
438
|
Omit<Args, 'owner'> & {
|
|
411
439
|
/** Final stack owner and operator. @default `account.address` */
|
|
412
440
|
owner?: Account.Account | Address.Address | undefined
|
|
@@ -593,6 +621,8 @@ export async function createStackSync<
|
|
|
593
621
|
...parameters,
|
|
594
622
|
throwOnReceiptRevert,
|
|
595
623
|
} as never)
|
|
624
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
625
|
+
return { receipt } as never
|
|
596
626
|
const { args } = createStack.extractEvent(receipt.logs, { factory })
|
|
597
627
|
return { ...args, receipt }
|
|
598
628
|
}
|
|
@@ -610,7 +640,7 @@ export namespace createStackSync {
|
|
|
610
640
|
}
|
|
611
641
|
|
|
612
642
|
/**
|
|
613
|
-
* Permanently binds an
|
|
643
|
+
* Permanently binds an engine to its EarnVault.
|
|
614
644
|
*
|
|
615
645
|
* @experimental
|
|
616
646
|
*
|
|
@@ -625,8 +655,9 @@ export namespace createStackSync {
|
|
|
625
655
|
* chain: tempoModerato,
|
|
626
656
|
* transport: http(),
|
|
627
657
|
* })
|
|
628
|
-
* const hash = await Actions.earn.
|
|
658
|
+
* const hash = await Actions.earn.bindEngine(client, {
|
|
629
659
|
* engine: '0x...',
|
|
660
|
+
* finalOwner: '0x...',
|
|
630
661
|
* vault: '0x...',
|
|
631
662
|
* })
|
|
632
663
|
* ```
|
|
@@ -635,20 +666,22 @@ export namespace createStackSync {
|
|
|
635
666
|
* @param parameters - Parameters.
|
|
636
667
|
* @returns The transaction hash.
|
|
637
668
|
*/
|
|
638
|
-
export async function
|
|
669
|
+
export async function bindEngine<
|
|
639
670
|
chain extends Chain.Chain | undefined,
|
|
640
671
|
account extends Account.Account | undefined,
|
|
641
672
|
>(
|
|
642
673
|
client: Client.Client<chain, account>,
|
|
643
|
-
parameters:
|
|
644
|
-
): Promise<
|
|
645
|
-
return
|
|
674
|
+
parameters: bindEngine.Parameters,
|
|
675
|
+
): Promise<bindEngine.ReturnValue> {
|
|
676
|
+
return bindEngine.inner(write, client, parameters)
|
|
646
677
|
}
|
|
647
678
|
|
|
648
|
-
export namespace
|
|
679
|
+
export namespace bindEngine {
|
|
649
680
|
export type Args = {
|
|
650
681
|
/** ERC-4626 engine address. */
|
|
651
682
|
engine: Address.Address
|
|
683
|
+
/** Address that will own the initialized engine. Omit to retain its current owner. */
|
|
684
|
+
finalOwner?: Address.Address | undefined
|
|
652
685
|
/** Factory-created EarnVault address. */
|
|
653
686
|
vault: Address.Address
|
|
654
687
|
}
|
|
@@ -667,10 +700,10 @@ export namespace bindErc4626Engine {
|
|
|
667
700
|
client: Client.Client<chain, account>,
|
|
668
701
|
parameters: Parameters,
|
|
669
702
|
): Promise<ReturnType<action>> {
|
|
670
|
-
const { engine, vault, ...rest } = parameters
|
|
703
|
+
const { engine, finalOwner, vault, ...rest } = parameters
|
|
671
704
|
return (await action(client, {
|
|
672
705
|
...rest,
|
|
673
|
-
...
|
|
706
|
+
...bindEngine.call({ engine, finalOwner, vault }),
|
|
674
707
|
} as never)) as never
|
|
675
708
|
}
|
|
676
709
|
|
|
@@ -690,7 +723,7 @@ export namespace bindErc4626Engine {
|
|
|
690
723
|
*
|
|
691
724
|
* const client = Client.create({ chain: tempoModerato, transport: http() })
|
|
692
725
|
* await client.transaction.send({
|
|
693
|
-
* calls: [Actions.earn.
|
|
726
|
+
* calls: [Actions.earn.bindEngine.call({
|
|
694
727
|
* engine: '0x...',
|
|
695
728
|
* vault: '0x...',
|
|
696
729
|
* })],
|
|
@@ -701,11 +734,19 @@ export namespace bindErc4626Engine {
|
|
|
701
734
|
* @returns The call.
|
|
702
735
|
*/
|
|
703
736
|
export function call(args: Args) {
|
|
737
|
+
const { engine, finalOwner, vault } = args
|
|
738
|
+
if (finalOwner)
|
|
739
|
+
return defineCall({
|
|
740
|
+
address: engine,
|
|
741
|
+
abi: engineBindingAbi,
|
|
742
|
+
functionName: 'initializeEarnVault',
|
|
743
|
+
args: [vault, finalOwner],
|
|
744
|
+
})
|
|
704
745
|
return defineCall({
|
|
705
|
-
address:
|
|
706
|
-
abi:
|
|
746
|
+
address: engine,
|
|
747
|
+
abi: engineBindingAbi,
|
|
707
748
|
functionName: 'initializeEarnVault',
|
|
708
|
-
args: [
|
|
749
|
+
args: [vault],
|
|
709
750
|
})
|
|
710
751
|
}
|
|
711
752
|
|
|
@@ -722,7 +763,7 @@ export namespace bindErc4626Engine {
|
|
|
722
763
|
})[],
|
|
723
764
|
>(logs: logs, parameters: { engine: Address.Address }) {
|
|
724
765
|
const [log] = AbiEvent.extractLogs(
|
|
725
|
-
|
|
766
|
+
engineBindingAbi,
|
|
726
767
|
logs.filter((log): log is logs[number] =>
|
|
727
768
|
Address.isEqual(log.address, parameters.engine),
|
|
728
769
|
),
|
|
@@ -737,7 +778,7 @@ export namespace bindErc4626Engine {
|
|
|
737
778
|
}
|
|
738
779
|
|
|
739
780
|
/**
|
|
740
|
-
* Binds an
|
|
781
|
+
* Binds an engine and waits for confirmation.
|
|
741
782
|
*
|
|
742
783
|
* @experimental
|
|
743
784
|
*
|
|
@@ -752,8 +793,9 @@ export namespace bindErc4626Engine {
|
|
|
752
793
|
* chain: tempoModerato,
|
|
753
794
|
* transport: http(),
|
|
754
795
|
* })
|
|
755
|
-
* const result = await Actions.earn.
|
|
796
|
+
* const result = await Actions.earn.bindEngineSync(client, {
|
|
756
797
|
* engine: '0x...',
|
|
798
|
+
* finalOwner: '0x...',
|
|
757
799
|
* vault: '0x...',
|
|
758
800
|
* })
|
|
759
801
|
* ```
|
|
@@ -762,25 +804,28 @@ export namespace bindErc4626Engine {
|
|
|
762
804
|
* @param parameters - Parameters.
|
|
763
805
|
* @returns The receipt and bound addresses.
|
|
764
806
|
*/
|
|
765
|
-
export async function
|
|
807
|
+
export async function bindEngineSync<
|
|
766
808
|
chain extends Chain.Chain | undefined,
|
|
767
809
|
account extends Account.Account | undefined,
|
|
768
810
|
>(
|
|
769
811
|
client: Client.Client<chain, account>,
|
|
770
|
-
parameters:
|
|
771
|
-
): Promise<
|
|
812
|
+
parameters: bindEngineSync.Parameters,
|
|
813
|
+
): Promise<bindEngineSync.ReturnValue> {
|
|
772
814
|
const { engine, throwOnReceiptRevert = true } = parameters
|
|
773
|
-
const receipt = await
|
|
815
|
+
const receipt = await bindEngine.inner(writeSync, client, {
|
|
774
816
|
...parameters,
|
|
775
817
|
throwOnReceiptRevert,
|
|
776
818
|
} as never)
|
|
777
|
-
|
|
819
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
820
|
+
return { receipt } as bindEngineSync.ReturnValue
|
|
821
|
+
|
|
822
|
+
const { args } = bindEngine.extractEvent(receipt.logs, { engine })
|
|
778
823
|
return { engine, vault: args.earnVault, receipt }
|
|
779
824
|
}
|
|
780
825
|
|
|
781
|
-
export namespace
|
|
782
|
-
export type Args =
|
|
783
|
-
export type Parameters =
|
|
826
|
+
export namespace bindEngineSync {
|
|
827
|
+
export type Args = bindEngine.Args
|
|
828
|
+
export type Parameters = bindEngine.Parameters & WriteSyncParameters
|
|
784
829
|
export type ReturnValue = {
|
|
785
830
|
/** ERC-4626 engine address. */
|
|
786
831
|
engine: Address.Address
|
|
@@ -844,7 +889,6 @@ export class DeployErc4626StackError extends BaseError<Error> {
|
|
|
844
889
|
* })
|
|
845
890
|
* const result = await Actions.earn.deployErc4626StackSync(client, {
|
|
846
891
|
* deploymentId: '0x...',
|
|
847
|
-
* factories: { earn: '0x...', erc4626Engine: '0x...' },
|
|
848
892
|
* venue: '0x...',
|
|
849
893
|
* })
|
|
850
894
|
* ```
|
|
@@ -877,6 +921,20 @@ export async function deployErc4626StackSync<
|
|
|
877
921
|
)
|
|
878
922
|
throw new Error('`bindingAccount` must match `owner`.')
|
|
879
923
|
|
|
924
|
+
const factories = (() => {
|
|
925
|
+
if (parameters.factories) return parameters.factories
|
|
926
|
+
if (!client.chain) throw new Chain.NotFoundError()
|
|
927
|
+
return {
|
|
928
|
+
earn: Chain.getContractAddress({
|
|
929
|
+
chain: client.chain,
|
|
930
|
+
contract: 'earnFactory',
|
|
931
|
+
}),
|
|
932
|
+
erc4626Engine: Chain.getContractAddress({
|
|
933
|
+
chain: client.chain,
|
|
934
|
+
contract: 'erc4626EngineFactory',
|
|
935
|
+
}),
|
|
936
|
+
}
|
|
937
|
+
})()
|
|
880
938
|
validateDeploymentId(parameters.deploymentId)
|
|
881
939
|
if (
|
|
882
940
|
parameters.resume &&
|
|
@@ -885,7 +943,7 @@ export async function deployErc4626StackSync<
|
|
|
885
943
|
)
|
|
886
944
|
throw new Error('The resumed deployment ID does not match `deploymentId`.')
|
|
887
945
|
await validateContracts(client, {
|
|
888
|
-
factories
|
|
946
|
+
factories,
|
|
889
947
|
venue: parameters.venue,
|
|
890
948
|
})
|
|
891
949
|
|
|
@@ -893,6 +951,7 @@ export async function deployErc4626StackSync<
|
|
|
893
951
|
gas: _,
|
|
894
952
|
keyAuthorization: __,
|
|
895
953
|
nonce: ___,
|
|
954
|
+
owner: ____,
|
|
896
955
|
...sharedWriteParameters
|
|
897
956
|
} = pickWriteParameters(parameters as never)
|
|
898
957
|
const writeParameters = {
|
|
@@ -903,7 +962,7 @@ export async function deployErc4626StackSync<
|
|
|
903
962
|
}
|
|
904
963
|
const engineArgs = {
|
|
905
964
|
deploymentId: parameters.deploymentId,
|
|
906
|
-
factory:
|
|
965
|
+
factory: factories.erc4626Engine,
|
|
907
966
|
name: parameters.name,
|
|
908
967
|
owner,
|
|
909
968
|
symbol: parameters.symbol,
|
|
@@ -952,7 +1011,7 @@ export async function deployErc4626StackSync<
|
|
|
952
1011
|
} as never)
|
|
953
1012
|
receipts.engine = receipt
|
|
954
1013
|
createErc4626Engine.extractEvent(receipt.logs, {
|
|
955
|
-
factory:
|
|
1014
|
+
factory: factories.erc4626Engine,
|
|
956
1015
|
})
|
|
957
1016
|
}
|
|
958
1017
|
await verifyEngine(client, engineArgs, predictedEngine)
|
|
@@ -965,7 +1024,7 @@ export async function deployErc4626StackSync<
|
|
|
965
1024
|
deploymentId: parameters.deploymentId,
|
|
966
1025
|
distributor: parameters.distributor,
|
|
967
1026
|
engine: predictedEngine,
|
|
968
|
-
factory:
|
|
1027
|
+
factory: factories.earn,
|
|
969
1028
|
fees: parameters.fees,
|
|
970
1029
|
owner,
|
|
971
1030
|
transferPolicyId: parameters.transferPolicyId,
|
|
@@ -1005,8 +1064,10 @@ export async function deployErc4626StackSync<
|
|
|
1005
1064
|
...stackArgs,
|
|
1006
1065
|
} as never)
|
|
1007
1066
|
receipts.stack = receipt
|
|
1067
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
1068
|
+
return { receipt } as never
|
|
1008
1069
|
const { args } = createStack.extractEvent(receipt.logs, {
|
|
1009
|
-
factory:
|
|
1070
|
+
factory: factories.earn,
|
|
1010
1071
|
})
|
|
1011
1072
|
state.vault = args.earnVault
|
|
1012
1073
|
if (
|
|
@@ -1025,7 +1086,7 @@ export async function deployErc4626StackSync<
|
|
|
1025
1086
|
if (!state.vault) {
|
|
1026
1087
|
const event = await findStackDeployment(client, {
|
|
1027
1088
|
earnShare: predicted.earnShare,
|
|
1028
|
-
factory:
|
|
1089
|
+
factory: factories.earn,
|
|
1029
1090
|
fromBlock: parameters.fromBlock,
|
|
1030
1091
|
})
|
|
1031
1092
|
state.vault = event.args.earnVault
|
|
@@ -1063,20 +1124,25 @@ export async function deployErc4626StackSync<
|
|
|
1063
1124
|
...writeParameters,
|
|
1064
1125
|
account: bindingAccount,
|
|
1065
1126
|
engine: predictedEngine,
|
|
1127
|
+
finalOwner: owner,
|
|
1066
1128
|
vault,
|
|
1067
1129
|
}
|
|
1068
1130
|
await simulate(client, {
|
|
1069
1131
|
...sharedWriteParameters,
|
|
1070
1132
|
account: bindingAccount,
|
|
1071
|
-
...
|
|
1133
|
+
...bindEngine.call({
|
|
1134
|
+
engine: predictedEngine,
|
|
1135
|
+
finalOwner: owner,
|
|
1136
|
+
vault,
|
|
1137
|
+
}),
|
|
1072
1138
|
} as never)
|
|
1073
|
-
const receipt = await
|
|
1139
|
+
const receipt = await bindEngine.inner(
|
|
1074
1140
|
writeSync,
|
|
1075
1141
|
client,
|
|
1076
1142
|
bindingParameters as never,
|
|
1077
1143
|
)
|
|
1078
1144
|
receipts.binding = receipt
|
|
1079
|
-
|
|
1145
|
+
bindEngine.extractEvent(receipt.logs, { engine: predictedEngine })
|
|
1080
1146
|
} else if (!Address.isEqual(boundVault, vault)) {
|
|
1081
1147
|
throw new Error(`Engine is already bound to ${boundVault}.`)
|
|
1082
1148
|
}
|
|
@@ -1104,7 +1170,7 @@ export async function deployErc4626StackSync<
|
|
|
1104
1170
|
export namespace deployErc4626StackSync {
|
|
1105
1171
|
export type Parameters = Omit<
|
|
1106
1172
|
WriteParameters,
|
|
1107
|
-
'gas' | 'keyAuthorization' | 'nonce' | 'throwOnReceiptRevert'
|
|
1173
|
+
'gas' | 'keyAuthorization' | 'nonce' | 'owner' | 'throwOnReceiptRevert'
|
|
1108
1174
|
> &
|
|
1109
1175
|
WriteSyncParameters & {
|
|
1110
1176
|
/** Account used only for the final owner binding. */
|
|
@@ -1115,8 +1181,8 @@ export namespace deployErc4626StackSync {
|
|
|
1115
1181
|
deploymentId: Hex.Hex
|
|
1116
1182
|
/** Optional protected fee distributor. */
|
|
1117
1183
|
distributor?: EarnDistributorConfiguration | undefined
|
|
1118
|
-
/** Reviewed factory pair from one Earn release. */
|
|
1119
|
-
factories
|
|
1184
|
+
/** Reviewed factory pair from one Earn release. @default `client.chain.contracts` */
|
|
1185
|
+
factories?: EarnFactoryAddresses | undefined
|
|
1120
1186
|
/** Initial fee configuration. Omit for fee-free deployment. */
|
|
1121
1187
|
fees?: EarnFeeConfiguration | undefined
|
|
1122
1188
|
/** First block to search for a prior factory deployment event. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AbiEvent, AbiParameters, Address, Hex } from 'ox'
|
|
2
1
|
import type { Errors } from 'ox'
|
|
2
|
+
import { AbiEvent, AbiParameters, Address, Hex } from 'ox'
|
|
3
3
|
import { EarnShares } from 'ox/tempo'
|
|
4
|
+
import type { TransactionReceipt } from '../chainConfig.js'
|
|
4
5
|
|
|
5
6
|
import * as Account from '../../core/Account.js'
|
|
6
7
|
import type * as Chain from '../../core/Chain.js'
|
|
@@ -17,8 +18,8 @@ import { sendSync } from '../../core/actions/transaction/sendSync.js'
|
|
|
17
18
|
import { type ObserveErrorType, observe } from '../../core/internal/observe.js'
|
|
18
19
|
import { type PollErrorType, poll } from '../../core/internal/poll.js'
|
|
19
20
|
import { withResolvers } from '../../core/internal/promise.js'
|
|
20
|
-
import type { Compute, OneOf } from '../../core/internal/types.js'
|
|
21
21
|
import { stringify } from '../../core/internal/stringify.js'
|
|
22
|
+
import type { Compute, OneOf } from '../../core/internal/types.js'
|
|
22
23
|
import * as Abis from '../Abis.js'
|
|
23
24
|
import * as Addresses from '../Addresses.js'
|
|
24
25
|
import {
|
|
@@ -43,7 +44,6 @@ import {
|
|
|
43
44
|
resolveTokenWithDecimals,
|
|
44
45
|
simulateWrite,
|
|
45
46
|
} from '../internal/utils.js'
|
|
46
|
-
import { getPortalAddress } from '../zones/zone.js'
|
|
47
47
|
import * as policyActions from './policy/index.js'
|
|
48
48
|
import * as tokenActions from './token/index.js'
|
|
49
49
|
import * as zoneActions from './zone/index.js'
|
|
@@ -595,6 +595,9 @@ export async function depositSync<
|
|
|
595
595
|
...options,
|
|
596
596
|
throwOnReceiptRevert,
|
|
597
597
|
})
|
|
598
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
599
|
+
return { receipt } as depositSync.ReturnType
|
|
600
|
+
|
|
598
601
|
const { args } = deposit.extractEvent(receipt.logs, { vault })
|
|
599
602
|
return {
|
|
600
603
|
assetAmount: args.assets,
|
|
@@ -891,6 +894,9 @@ export async function depositSharesSync<
|
|
|
891
894
|
...options,
|
|
892
895
|
throwOnReceiptRevert,
|
|
893
896
|
})
|
|
897
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
898
|
+
return { receipt } as depositSharesSync.ReturnType
|
|
899
|
+
|
|
894
900
|
const { args } = depositShares.extractEvent(receipt.logs, { vault })
|
|
895
901
|
return {
|
|
896
902
|
caller: args.caller,
|
|
@@ -934,7 +940,7 @@ export namespace depositSharesSync {
|
|
|
934
940
|
* assetToken: '0x…',
|
|
935
941
|
* gateway: '0x…',
|
|
936
942
|
* recipient: '0x…',
|
|
937
|
-
*
|
|
943
|
+
* tempoRefundRecipient: '0x…',
|
|
938
944
|
* shareAmountMin: 99_500_000n,
|
|
939
945
|
* vault: '0x...',
|
|
940
946
|
* vaultAssetAmountMin: 99_000_000n,
|
|
@@ -984,17 +990,17 @@ export namespace privateDeposit {
|
|
|
984
990
|
actionId = Hex.random(32),
|
|
985
991
|
assetAmount,
|
|
986
992
|
callbackGas = zoneGatewayCallbackGas,
|
|
987
|
-
fallbackRecipient = options.
|
|
993
|
+
fallbackRecipient = options.tempoRefundRecipient,
|
|
988
994
|
gateway,
|
|
989
995
|
portalAddress: portalAddress_,
|
|
990
996
|
recipient,
|
|
991
|
-
|
|
997
|
+
tempoRefundRecipient,
|
|
992
998
|
returnMemo,
|
|
993
999
|
vault,
|
|
994
1000
|
withdrawalMemo,
|
|
995
1001
|
zoneId,
|
|
996
1002
|
} = options
|
|
997
|
-
const portalAddress = portalAddress_ ??
|
|
1003
|
+
const portalAddress = portalAddress_ ?? Addresses.zonePortal(zoneId)
|
|
998
1004
|
const readParameters = pickReadParameters(options)
|
|
999
1005
|
const [fromBlock, config] = await Promise.all([
|
|
1000
1006
|
getNumber(client, { cacheTime: 0 }),
|
|
@@ -1027,7 +1033,11 @@ export namespace privateDeposit {
|
|
|
1027
1033
|
minEarnShares: shareAmountMin,
|
|
1028
1034
|
minOutputAmount: 0n,
|
|
1029
1035
|
minVaultAssets: options.vaultAssetAmountMin ?? assetAmount,
|
|
1030
|
-
zoneReturn: {
|
|
1036
|
+
zoneReturn: {
|
|
1037
|
+
encrypted,
|
|
1038
|
+
keyIndex,
|
|
1039
|
+
refundRecipient: tempoRefundRecipient,
|
|
1040
|
+
},
|
|
1031
1041
|
},
|
|
1032
1042
|
])
|
|
1033
1043
|
return {
|
|
@@ -2254,6 +2264,9 @@ export async function redeemSync<
|
|
|
2254
2264
|
...options,
|
|
2255
2265
|
throwOnReceiptRevert,
|
|
2256
2266
|
})
|
|
2267
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
2268
|
+
return { receipt } as redeemSync.ReturnType
|
|
2269
|
+
|
|
2257
2270
|
const { args } = redeem.extractEvent(receipt.logs, { vault })
|
|
2258
2271
|
return {
|
|
2259
2272
|
assetAmount: args.assets,
|
|
@@ -2292,7 +2305,7 @@ export namespace redeemSync {
|
|
|
2292
2305
|
* const prepared = await Actions.earn.privateRedeem.prepare(parentClient, {
|
|
2293
2306
|
* gateway: '0x…',
|
|
2294
2307
|
* recipient: '0x…',
|
|
2295
|
-
*
|
|
2308
|
+
* tempoRefundRecipient: '0x…',
|
|
2296
2309
|
* shareAmount: 100_000_000n,
|
|
2297
2310
|
* slippageBps: 50,
|
|
2298
2311
|
* vault: '0x...',
|
|
@@ -2341,18 +2354,18 @@ export namespace privateRedeem {
|
|
|
2341
2354
|
const {
|
|
2342
2355
|
actionId = Hex.random(32),
|
|
2343
2356
|
callbackGas = zoneGatewayCallbackGas,
|
|
2344
|
-
fallbackRecipient = options.
|
|
2357
|
+
fallbackRecipient = options.tempoRefundRecipient,
|
|
2345
2358
|
gateway,
|
|
2346
2359
|
portalAddress: portalAddress_,
|
|
2347
2360
|
recipient,
|
|
2348
|
-
|
|
2361
|
+
tempoRefundRecipient,
|
|
2349
2362
|
returnMemo,
|
|
2350
2363
|
shareAmount,
|
|
2351
2364
|
vault,
|
|
2352
2365
|
withdrawalMemo,
|
|
2353
2366
|
zoneId,
|
|
2354
2367
|
} = options
|
|
2355
|
-
const portalAddress = portalAddress_ ??
|
|
2368
|
+
const portalAddress = portalAddress_ ?? Addresses.zonePortal(zoneId)
|
|
2356
2369
|
const readParameters = pickReadParameters(options)
|
|
2357
2370
|
const [fromBlock, config] = await Promise.all([
|
|
2358
2371
|
getNumber(client, { cacheTime: 0 }),
|
|
@@ -2401,7 +2414,11 @@ export namespace privateRedeem {
|
|
|
2401
2414
|
minEarnShares: 0n,
|
|
2402
2415
|
minOutputAmount: assetAmountMin,
|
|
2403
2416
|
minVaultAssets: assetAmountMin,
|
|
2404
|
-
zoneReturn: {
|
|
2417
|
+
zoneReturn: {
|
|
2418
|
+
encrypted,
|
|
2419
|
+
keyIndex,
|
|
2420
|
+
refundRecipient: tempoRefundRecipient,
|
|
2421
|
+
},
|
|
2405
2422
|
},
|
|
2406
2423
|
])
|
|
2407
2424
|
return {
|
|
@@ -2899,6 +2916,9 @@ export async function withdrawExactSync<
|
|
|
2899
2916
|
...options,
|
|
2900
2917
|
throwOnReceiptRevert,
|
|
2901
2918
|
})
|
|
2919
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
2920
|
+
return { receipt } as withdrawExactSync.ReturnType
|
|
2921
|
+
|
|
2902
2922
|
const { args } = withdrawExact.extractEvent(receipt.logs, { vault })
|
|
2903
2923
|
return {
|
|
2904
2924
|
assetAmount: args.assets,
|
|
@@ -2946,7 +2966,7 @@ type PrivatePreparationParameters = {
|
|
|
2946
2966
|
actionId?: Hex.Hex | undefined
|
|
2947
2967
|
/** Gas reserved for the parent-chain callback. @default `10_000_000n` */
|
|
2948
2968
|
callbackGas?: bigint | undefined
|
|
2949
|
-
/** Public recipient if the parent-chain callback fails. @default `
|
|
2969
|
+
/** Public recipient if the parent-chain callback fails. @default `tempoRefundRecipient` */
|
|
2950
2970
|
fallbackRecipient?: Address.Address | undefined
|
|
2951
2971
|
/** Zone gateway address. */
|
|
2952
2972
|
gateway: Address.Address
|
|
@@ -2955,7 +2975,7 @@ type PrivatePreparationParameters = {
|
|
|
2955
2975
|
/** Encrypted recipient for the returned tokens. */
|
|
2956
2976
|
recipient: Address.Address
|
|
2957
2977
|
/** Public recipient if the encrypted return fails. */
|
|
2958
|
-
|
|
2978
|
+
tempoRefundRecipient: Address.Address
|
|
2959
2979
|
/** Optional memo encrypted with the returned Zone deposit. */
|
|
2960
2980
|
returnMemo?: Hex.Hex | undefined
|
|
2961
2981
|
/** Vault address. */
|
|
@@ -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 setUserTokenSync<
|
|
|
41
42
|
...options,
|
|
42
43
|
throwOnReceiptRevert,
|
|
43
44
|
})
|
|
45
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
46
|
+
return { receipt } as setUserTokenSync.ReturnType
|
|
47
|
+
|
|
44
48
|
const { args } = setUserToken.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'
|
|
@@ -42,6 +43,9 @@ export async function setValidatorTokenSync<
|
|
|
42
43
|
...options,
|
|
43
44
|
throwOnReceiptRevert,
|
|
44
45
|
})
|
|
46
|
+
if ((receipt as TransactionReceipt).status === 'pending')
|
|
47
|
+
return { receipt } as setValidatorTokenSync.ReturnType
|
|
48
|
+
|
|
45
49
|
const { args } = setValidatorToken.extractEvent(receipt.logs)
|
|
46
50
|
return {
|
|
47
51
|
...args,
|
|
@@ -8,9 +8,13 @@ export * as faucet from './faucet/index.js'
|
|
|
8
8
|
export * as fee from './fee/index.js'
|
|
9
9
|
export * as nonce from './nonce/index.js'
|
|
10
10
|
export * as policy from './policy/index.js'
|
|
11
|
+
export * as propAmm from './propAmm.js'
|
|
11
12
|
export * as receivePolicy from './receivePolicy/index.js'
|
|
12
13
|
export * as token from './token/index.js'
|
|
13
14
|
export * as validator from './validator/index.js'
|
|
14
15
|
export * as virtualAddress from './virtualAddress/index.js'
|
|
15
16
|
export * as wallet from './wallet/index.js'
|
|
16
17
|
export * as zone from './zone/index.js'
|
|
18
|
+
|
|
19
|
+
/** Native multisig configuration and approval actions. */
|
|
20
|
+
export * as multisig from './multisig/index.js'
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Address, Errors } from 'ox'
|
|
2
|
+
import { MultisigConfig } from 'ox/tempo'
|
|
3
|
+
import type * as Client from '../../../core/Client.js'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Gets the current cached config for a multisig account.
|
|
7
|
+
*
|
|
8
|
+
* The coordinator reads the account's current onchain commitment and returns
|
|
9
|
+
* the matching config from its store. It returns `null` when the config is not
|
|
10
|
+
* cached.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const config = await client.multisig.getConfig({
|
|
15
|
+
* address: '0x...',
|
|
16
|
+
* })
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param client - Client.
|
|
20
|
+
* @param parameters - Parameters.
|
|
21
|
+
* @returns The config, or `null` when it is unknown.
|
|
22
|
+
*/
|
|
23
|
+
export async function getConfig(
|
|
24
|
+
client: Client.Client,
|
|
25
|
+
parameters: getConfig.Options,
|
|
26
|
+
): Promise<getConfig.ReturnType> {
|
|
27
|
+
const config = await client.request({
|
|
28
|
+
method: 'multisig_getConfig',
|
|
29
|
+
params: [{ address: parameters.address }],
|
|
30
|
+
})
|
|
31
|
+
return config ? MultisigConfig.fromRpc(config as MultisigConfig.Rpc) : null
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare namespace getConfig {
|
|
35
|
+
/** Parameters for {@link getConfig}. */
|
|
36
|
+
export type Options = {
|
|
37
|
+
/** Multisig account address. */
|
|
38
|
+
address: Address.Address
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Return value for {@link getConfig}. */
|
|
42
|
+
export type ReturnType = MultisigConfig.Config | null
|
|
43
|
+
|
|
44
|
+
/** Error type for {@link getConfig}. */
|
|
45
|
+
export type ErrorType = Errors.GlobalErrorType
|
|
46
|
+
}
|