viem 3.0.0-next.13 → 3.0.0-next.15
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/arcTestnet.d.ts +5 -5
- package/dist/chains/definitions/arcTestnet.d.ts.map +1 -1
- package/dist/chains/definitions/arcTestnet.js +11 -8
- package/dist/chains/definitions/arcTestnet.js.map +1 -1
- package/dist/chains/definitions/hashKeyChain.d.ts +4 -4
- package/dist/chains/definitions/hashKeyChain.js +4 -4
- package/dist/chains/definitions/hashKeyChain.js.map +1 -1
- package/dist/chains/definitions/hashkeyChainTestnet.d.ts +4 -4
- package/dist/chains/definitions/hashkeyChainTestnet.js +4 -4
- package/dist/chains/definitions/hashkeyChainTestnet.js.map +1 -1
- package/dist/chains/definitions/hyperEvm.d.ts +3 -0
- package/dist/chains/definitions/hyperEvm.d.ts.map +1 -1
- package/dist/chains/definitions/hyperEvm.js +3 -0
- package/dist/chains/definitions/hyperEvm.js.map +1 -1
- package/dist/chains/definitions/hyperliquidEvmTestnet.d.ts +3 -0
- package/dist/chains/definitions/hyperliquidEvmTestnet.d.ts.map +1 -1
- package/dist/chains/definitions/hyperliquidEvmTestnet.js +3 -0
- package/dist/chains/definitions/hyperliquidEvmTestnet.js.map +1 -1
- package/dist/chains/definitions/molibra.d.ts +18 -0
- package/dist/chains/definitions/molibra.d.ts.map +1 -0
- package/dist/chains/definitions/molibra.js +14 -0
- package/dist/chains/definitions/molibra.js.map +1 -0
- package/dist/chains/definitions/monad.d.ts +1 -1
- package/dist/chains/definitions/monad.js +1 -1
- package/dist/chains/definitions/monadTestnet.d.ts +1 -1
- package/dist/chains/definitions/monadTestnet.js +1 -1
- package/dist/chains/definitions/qmsTestnet.d.ts +27 -0
- package/dist/chains/definitions/qmsTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/qmsTestnet.js +23 -0
- package/dist/chains/definitions/qmsTestnet.js.map +1 -0
- package/dist/chains/definitions/rwaChain.d.ts +78 -0
- package/dist/chains/definitions/rwaChain.d.ts.map +1 -0
- package/dist/chains/definitions/rwaChain.js +45 -0
- package/dist/chains/definitions/rwaChain.js.map +1 -0
- package/dist/chains/definitions/rwaChainSepolia.d.ts +79 -0
- package/dist/chains/definitions/rwaChainSepolia.d.ts.map +1 -0
- package/dist/chains/definitions/rwaChainSepolia.js +46 -0
- package/dist/chains/definitions/rwaChainSepolia.js.map +1 -0
- package/dist/chains/definitions/tempo.d.ts +9 -1
- package/dist/chains/definitions/tempo.d.ts.map +1 -1
- package/dist/chains/definitions/tempo.js +5 -1
- package/dist/chains/definitions/tempo.js.map +1 -1
- package/dist/chains/definitions/tempoDevnet.d.ts +11 -3
- package/dist/chains/definitions/tempoDevnet.d.ts.map +1 -1
- package/dist/chains/definitions/tempoDevnet.js +7 -0
- package/dist/chains/definitions/tempoDevnet.js.map +1 -1
- package/dist/chains/definitions/tempoLocalnet.d.ts +4 -0
- package/dist/chains/definitions/tempoLocalnet.d.ts.map +1 -1
- package/dist/chains/definitions/tempoModerato.d.ts +10 -2
- package/dist/chains/definitions/tempoModerato.d.ts.map +1 -1
- package/dist/chains/definitions/tempoModerato.js +6 -2
- package/dist/chains/definitions/tempoModerato.js.map +1 -1
- package/dist/chains/definitions/turkchain.d.ts +24 -0
- package/dist/chains/definitions/turkchain.d.ts.map +1 -0
- package/dist/chains/definitions/turkchain.js +23 -0
- package/dist/chains/definitions/turkchain.js.map +1 -0
- package/dist/chains/definitions/valuechain.d.ts +25 -0
- package/dist/chains/definitions/valuechain.d.ts.map +1 -0
- package/dist/chains/definitions/valuechain.js +20 -0
- package/dist/chains/definitions/valuechain.js.map +1 -0
- package/dist/chains/definitions/valuechainTestnet.d.ts +26 -0
- package/dist/chains/definitions/valuechainTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/valuechainTestnet.js +21 -0
- package/dist/chains/definitions/valuechainTestnet.js.map +1 -0
- package/dist/chains/definitions/zksync.d.ts +1 -1
- package/dist/chains/definitions/zksync.js +1 -1
- package/dist/chains/definitions/zksync.js.map +1 -1
- package/dist/chains/definitions/zksyncEraTestnet.d.ts +30 -0
- package/dist/chains/definitions/zksyncEraTestnet.d.ts.map +1 -0
- package/dist/chains/definitions/zksyncEraTestnet.js +25 -0
- package/dist/chains/definitions/zksyncEraTestnet.js.map +1 -0
- package/dist/chains/index.d.ts +8 -0
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +8 -0
- package/dist/chains/index.js.map +1 -1
- package/dist/core/Chain.d.ts +50 -3
- package/dist/core/Chain.d.ts.map +1 -1
- package/dist/core/Chain.js.map +1 -1
- package/dist/core/Client.d.ts +42 -2
- package/dist/core/Client.d.ts.map +1 -1
- package/dist/core/Client.js +41 -6
- package/dist/core/Client.js.map +1 -1
- package/dist/core/NonceManager.d.ts +16 -1
- package/dist/core/NonceManager.d.ts.map +1 -1
- package/dist/core/NonceManager.js.map +1 -1
- package/dist/core/RpcError.d.ts.map +1 -1
- package/dist/core/RpcError.js +11 -5
- package/dist/core/RpcError.js.map +1 -1
- package/dist/core/actions/block/watch.d.ts +6 -1
- package/dist/core/actions/block/watch.d.ts.map +1 -1
- package/dist/core/actions/block/watch.js +42 -78
- package/dist/core/actions/block/watch.js.map +1 -1
- package/dist/core/actions/block/watchHeaders.d.ts.map +1 -1
- package/dist/core/actions/block/watchHeaders.js +13 -68
- package/dist/core/actions/block/watchHeaders.js.map +1 -1
- package/dist/core/actions/block/watchNumber.d.ts +5 -1
- package/dist/core/actions/block/watchNumber.d.ts.map +1 -1
- package/dist/core/actions/block/watchNumber.js +19 -72
- package/dist/core/actions/block/watchNumber.js.map +1 -1
- package/dist/core/actions/call.d.ts.map +1 -1
- package/dist/core/actions/call.js +6 -5
- package/dist/core/actions/call.js.map +1 -1
- package/dist/core/actions/contract/watchEvent.d.ts +3 -2
- package/dist/core/actions/contract/watchEvent.d.ts.map +1 -1
- package/dist/core/actions/contract/watchEvent.js +3 -2
- package/dist/core/actions/contract/watchEvent.js.map +1 -1
- package/dist/core/actions/ens/getAddress.d.ts.map +1 -1
- package/dist/core/actions/ens/getAddress.js +10 -5
- package/dist/core/actions/ens/getAddress.js.map +1 -1
- package/dist/core/actions/ens/internal/avatar.d.ts +13 -0
- package/dist/core/actions/ens/internal/avatar.d.ts.map +1 -1
- package/dist/core/actions/ens/internal/avatar.js +22 -7
- package/dist/core/actions/ens/internal/avatar.js.map +1 -1
- package/dist/core/actions/ens/internal/batchGateway.d.ts +28 -1
- package/dist/core/actions/ens/internal/batchGateway.d.ts.map +1 -1
- package/dist/core/actions/ens/internal/batchGateway.js +45 -17
- package/dist/core/actions/ens/internal/batchGateway.js.map +1 -1
- package/dist/core/actions/event/createFilter.d.ts +1 -2
- package/dist/core/actions/event/createFilter.d.ts.map +1 -1
- package/dist/core/actions/event/createFilter.js +3 -8
- package/dist/core/actions/event/createFilter.js.map +1 -1
- package/dist/core/actions/event/getLogs.d.ts +2 -2
- package/dist/core/actions/event/getLogs.d.ts.map +1 -1
- package/dist/core/actions/event/getLogs.js +4 -9
- package/dist/core/actions/event/getLogs.js.map +1 -1
- package/dist/core/actions/event/internal.d.ts +24 -0
- package/dist/core/actions/event/internal.d.ts.map +1 -0
- package/dist/core/actions/event/internal.js +51 -0
- package/dist/core/actions/event/internal.js.map +1 -0
- package/dist/core/actions/event/watch.d.ts +4 -4
- package/dist/core/actions/event/watch.d.ts.map +1 -1
- package/dist/core/actions/event/watch.js +94 -106
- package/dist/core/actions/event/watch.js.map +1 -1
- package/dist/core/actions/filter/getChanges.d.ts +1 -1
- package/dist/core/actions/filter/getChanges.d.ts.map +1 -1
- package/dist/core/actions/filter/getChanges.js +3 -2
- package/dist/core/actions/filter/getChanges.js.map +1 -1
- package/dist/core/actions/filter/getLogs.d.ts +1 -2
- package/dist/core/actions/filter/getLogs.d.ts.map +1 -1
- package/dist/core/actions/filter/getLogs.js +3 -2
- package/dist/core/actions/filter/getLogs.js.map +1 -1
- package/dist/core/actions/internal/ccip.d.ts +25 -4
- package/dist/core/actions/internal/ccip.d.ts.map +1 -1
- package/dist/core/actions/internal/ccip.js +32 -9
- package/dist/core/actions/internal/ccip.js.map +1 -1
- package/dist/core/actions/internal/transactionRequest.js +2 -2
- package/dist/core/actions/internal/transactionRequest.js.map +1 -1
- package/dist/core/actions/transaction/fill.d.ts.map +1 -1
- package/dist/core/actions/transaction/fill.js +4 -0
- package/dist/core/actions/transaction/fill.js.map +1 -1
- package/dist/core/actions/transaction/getConfirmations.d.ts.map +1 -1
- package/dist/core/actions/transaction/getConfirmations.js +11 -1
- package/dist/core/actions/transaction/getConfirmations.js.map +1 -1
- package/dist/core/actions/transaction/prepare.d.ts +6 -1
- package/dist/core/actions/transaction/prepare.d.ts.map +1 -1
- package/dist/core/actions/transaction/prepare.js +58 -14
- package/dist/core/actions/transaction/prepare.js.map +1 -1
- package/dist/core/actions/transaction/send.d.ts.map +1 -1
- package/dist/core/actions/transaction/send.js +7 -2
- package/dist/core/actions/transaction/send.js.map +1 -1
- package/dist/core/actions/transaction/sendSync.d.ts +1 -1
- package/dist/core/actions/transaction/sendSync.d.ts.map +1 -1
- package/dist/core/actions/transaction/sendSync.js +77 -10
- package/dist/core/actions/transaction/sendSync.js.map +1 -1
- package/dist/core/actions/transaction/waitForReceipt.d.ts +37 -1
- package/dist/core/actions/transaction/waitForReceipt.d.ts.map +1 -1
- package/dist/core/actions/transaction/waitForReceipt.js +158 -26
- package/dist/core/actions/transaction/waitForReceipt.js.map +1 -1
- package/dist/core/actions/transaction/watchPending.d.ts.map +1 -1
- package/dist/core/actions/transaction/watchPending.js +13 -70
- package/dist/core/actions/transaction/watchPending.js.map +1 -1
- package/dist/core/actions/wallet/sendCalls.js +1 -1
- package/dist/core/actions/wallet/sendCalls.js.map +1 -1
- package/dist/core/actions/wallet/waitForCallsStatus.d.ts.map +1 -1
- package/dist/core/actions/wallet/waitForCallsStatus.js +24 -1
- package/dist/core/actions/wallet/waitForCallsStatus.js.map +1 -1
- package/dist/core/internal/asyncIterator.d.ts +11 -0
- package/dist/core/internal/asyncIterator.d.ts.map +1 -0
- package/dist/core/internal/asyncIterator.js +70 -0
- package/dist/core/internal/asyncIterator.js.map +1 -0
- package/dist/core/internal/promise.d.ts.map +1 -1
- package/dist/core/internal/promise.js +6 -1
- package/dist/core/internal/promise.js.map +1 -1
- package/dist/core/internal/transport.d.ts.map +1 -1
- package/dist/core/internal/transport.js +56 -17
- package/dist/core/internal/transport.js.map +1 -1
- package/dist/core/internal/wait.d.ts.map +1 -1
- package/dist/core/internal/wait.js +2 -1
- package/dist/core/internal/wait.js.map +1 -1
- package/dist/core/transports/fallback.d.ts.map +1 -1
- package/dist/core/transports/fallback.js +27 -0
- package/dist/core/transports/fallback.js.map +1 -1
- package/dist/core/transports/http.d.ts +4 -1
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/core/transports/http.js +15 -4
- package/dist/core/transports/http.js.map +1 -1
- package/dist/erc4337/actions/userOperation/prepare.d.ts.map +1 -1
- package/dist/erc4337/actions/userOperation/prepare.js +1 -1
- package/dist/erc4337/actions/userOperation/prepare.js.map +1 -1
- package/dist/internal/inference.d.ts +7 -3
- package/dist/internal/inference.d.ts.map +1 -1
- package/dist/op-stack/Withdrawal.d.ts +12 -0
- package/dist/op-stack/Withdrawal.d.ts.map +1 -1
- package/dist/op-stack/Withdrawal.js +16 -0
- package/dist/op-stack/Withdrawal.js.map +1 -1
- package/dist/op-stack/abis.d.ts +40 -0
- package/dist/op-stack/abis.d.ts.map +1 -1
- package/dist/op-stack/abis.js +52 -0
- package/dist/op-stack/abis.js.map +1 -1
- package/dist/op-stack/actions/l1/getTimeToFinalize.d.ts +6 -2
- package/dist/op-stack/actions/l1/getTimeToFinalize.d.ts.map +1 -1
- package/dist/op-stack/actions/l1/getTimeToFinalize.js +72 -9
- package/dist/op-stack/actions/l1/getTimeToFinalize.js.map +1 -1
- package/dist/op-stack/actions/l1/getTimeToProve.d.ts +7 -3
- package/dist/op-stack/actions/l1/getTimeToProve.d.ts.map +1 -1
- package/dist/op-stack/actions/l1/getTimeToProve.js +12 -2
- package/dist/op-stack/actions/l1/getTimeToProve.js.map +1 -1
- package/dist/op-stack/actions/l1/getWithdrawalStatus.d.ts +5 -2
- package/dist/op-stack/actions/l1/getWithdrawalStatus.d.ts.map +1 -1
- package/dist/op-stack/actions/l1/getWithdrawalStatus.js +10 -3
- package/dist/op-stack/actions/l1/getWithdrawalStatus.js.map +1 -1
- package/dist/op-stack/actions/l1/internal.d.ts +13 -1
- package/dist/op-stack/actions/l1/internal.d.ts.map +1 -1
- package/dist/op-stack/actions/l1/internal.js +25 -0
- package/dist/op-stack/actions/l1/internal.js.map +1 -1
- package/dist/op-stack/actions/l1/waitToProve.d.ts +6 -3
- package/dist/op-stack/actions/l1/waitToProve.d.ts.map +1 -1
- package/dist/op-stack/actions/l1/waitToProve.js +8 -2
- package/dist/op-stack/actions/l1/waitToProve.js.map +1 -1
- package/dist/tempo/Abis.d.ts +2548 -288
- package/dist/tempo/Abis.d.ts.map +1 -1
- package/dist/tempo/Abis.js +619 -13
- package/dist/tempo/Abis.js.map +1 -1
- package/dist/tempo/Account.d.ts +221 -56
- package/dist/tempo/Account.d.ts.map +1 -1
- package/dist/tempo/Account.js +358 -115
- package/dist/tempo/Account.js.map +1 -1
- package/dist/tempo/Addresses.d.ts +6 -3
- package/dist/tempo/Addresses.d.ts.map +1 -1
- package/dist/tempo/Addresses.js +6 -3
- package/dist/tempo/Addresses.js.map +1 -1
- package/dist/tempo/Capabilities.d.ts +30 -19
- package/dist/tempo/Capabilities.d.ts.map +1 -1
- package/dist/tempo/Decorator.d.ts +123 -53
- package/dist/tempo/Decorator.d.ts.map +1 -1
- package/dist/tempo/Decorator.js +13 -10
- package/dist/tempo/Decorator.js.map +1 -1
- package/dist/tempo/ExecutionError.d.ts +3 -1
- package/dist/tempo/ExecutionError.d.ts.map +1 -1
- package/dist/tempo/ExecutionError.js +120 -4
- package/dist/tempo/ExecutionError.js.map +1 -1
- package/dist/tempo/Expiry.d.ts +12 -0
- package/dist/tempo/Expiry.d.ts.map +1 -1
- package/dist/tempo/Expiry.js +12 -0
- package/dist/tempo/Expiry.js.map +1 -1
- package/dist/tempo/Gateway.d.ts +338 -0
- package/dist/tempo/Gateway.d.ts.map +1 -0
- package/dist/tempo/Gateway.js +316 -0
- package/dist/tempo/Gateway.js.map +1 -0
- package/dist/tempo/GatewayDecorator.d.ts +642 -0
- package/dist/tempo/GatewayDecorator.d.ts.map +1 -0
- package/dist/tempo/GatewayDecorator.js +218 -0
- package/dist/tempo/GatewayDecorator.js.map +1 -0
- package/dist/tempo/Hardfork.d.ts +6 -2
- package/dist/tempo/Hardfork.d.ts.map +1 -1
- package/dist/tempo/Hardfork.js +17 -2
- package/dist/tempo/Hardfork.js.map +1 -1
- package/dist/tempo/KeyAuthorizationManager.d.ts +24 -13
- package/dist/tempo/KeyAuthorizationManager.d.ts.map +1 -1
- package/dist/tempo/KeyAuthorizationManager.js +44 -25
- package/dist/tempo/KeyAuthorizationManager.js.map +1 -1
- package/dist/tempo/Relay.d.ts +117 -14
- package/dist/tempo/Relay.d.ts.map +1 -1
- package/dist/tempo/Relay.js +68 -8
- package/dist/tempo/Relay.js.map +1 -1
- package/dist/tempo/Selectors.d.ts +19 -1
- package/dist/tempo/Selectors.d.ts.map +1 -1
- package/dist/tempo/Selectors.js +19 -1
- package/dist/tempo/Selectors.js.map +1 -1
- package/dist/tempo/Transport.d.ts +19 -6
- package/dist/tempo/Transport.d.ts.map +1 -1
- package/dist/tempo/Transport.js +21 -14
- package/dist/tempo/Transport.js.map +1 -1
- package/dist/tempo/{multisig → accounts}/Config.d.ts +18 -9
- package/dist/tempo/accounts/Config.d.ts.map +1 -0
- package/dist/tempo/{multisig → accounts}/Config.js +37 -22
- package/dist/tempo/accounts/Config.js.map +1 -0
- package/dist/tempo/{multisig → accounts}/Operation.d.ts +8 -8
- package/dist/tempo/{multisig → accounts}/Operation.d.ts.map +1 -1
- package/dist/tempo/{multisig → accounts}/Operation.js +19 -19
- package/dist/tempo/{multisig → accounts}/Operation.js.map +1 -1
- package/dist/tempo/{multisig → accounts}/Signature.d.ts +1 -1
- package/dist/tempo/accounts/Signature.d.ts.map +1 -0
- package/dist/tempo/accounts/Signature.js +9 -0
- package/dist/tempo/accounts/Signature.js.map +1 -0
- package/dist/tempo/actions/accessKey/authorize.d.ts +3 -2
- package/dist/tempo/actions/accessKey/authorize.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/authorize.js +6 -6
- package/dist/tempo/actions/accessKey/authorize.js.map +1 -1
- package/dist/tempo/actions/accessKey/authorizeSync.d.ts +2 -1
- package/dist/tempo/actions/accessKey/authorizeSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/authorizeSync.js.map +1 -1
- package/dist/tempo/actions/accessKey/burnWitness.d.ts +2 -1
- package/dist/tempo/actions/accessKey/burnWitness.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/burnWitness.js.map +1 -1
- package/dist/tempo/actions/accessKey/burnWitnessSync.d.ts +2 -1
- package/dist/tempo/actions/accessKey/burnWitnessSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/burnWitnessSync.js.map +1 -1
- package/dist/tempo/actions/accessKey/errors.d.ts +139 -0
- package/dist/tempo/actions/accessKey/errors.d.ts.map +1 -0
- package/dist/tempo/actions/accessKey/errors.js +397 -0
- package/dist/tempo/actions/accessKey/errors.js.map +1 -0
- package/dist/tempo/actions/accessKey/getMetadata.d.ts +4 -3
- package/dist/tempo/actions/accessKey/getMetadata.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/getMetadata.js +2 -9
- package/dist/tempo/actions/accessKey/getMetadata.js.map +1 -1
- package/dist/tempo/actions/accessKey/getRemainingLimit.d.ts +2 -1
- package/dist/tempo/actions/accessKey/getRemainingLimit.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/getRemainingLimit.js +1 -2
- package/dist/tempo/actions/accessKey/getRemainingLimit.js.map +1 -1
- package/dist/tempo/actions/accessKey/index.d.ts +2 -2
- package/dist/tempo/actions/accessKey/index.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/index.js +2 -2
- package/dist/tempo/actions/accessKey/index.js.map +1 -1
- package/dist/tempo/actions/accessKey/internal.d.ts +7 -0
- package/dist/tempo/actions/accessKey/internal.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/internal.js +7 -0
- package/dist/tempo/actions/accessKey/internal.js.map +1 -1
- package/dist/tempo/actions/accessKey/isWitnessBurned.d.ts +2 -1
- package/dist/tempo/actions/accessKey/isWitnessBurned.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/isWitnessBurned.js +1 -2
- package/dist/tempo/actions/accessKey/isWitnessBurned.js.map +1 -1
- package/dist/tempo/actions/accessKey/prepareAuthorization.d.ts +4 -12
- package/dist/tempo/actions/accessKey/prepareAuthorization.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/prepareAuthorization.js +10 -10
- package/dist/tempo/actions/accessKey/prepareAuthorization.js.map +1 -1
- package/dist/tempo/actions/accessKey/revoke.d.ts +2 -1
- package/dist/tempo/actions/accessKey/revoke.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/revoke.js.map +1 -1
- package/dist/tempo/actions/accessKey/revokeSync.d.ts +2 -1
- package/dist/tempo/actions/accessKey/revokeSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/revokeSync.js.map +1 -1
- package/dist/tempo/actions/accessKey/saveAuthorization.d.ts +40 -0
- package/dist/tempo/actions/accessKey/saveAuthorization.d.ts.map +1 -0
- package/dist/tempo/actions/accessKey/saveAuthorization.js +32 -0
- package/dist/tempo/actions/accessKey/saveAuthorization.js.map +1 -0
- package/dist/tempo/actions/accessKey/signAuthorization.d.ts +17 -13
- package/dist/tempo/actions/accessKey/signAuthorization.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/signAuthorization.js +46 -32
- package/dist/tempo/actions/accessKey/signAuthorization.js.map +1 -1
- package/dist/tempo/actions/accessKey/updateLimit.d.ts +2 -1
- package/dist/tempo/actions/accessKey/updateLimit.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/updateLimit.js.map +1 -1
- package/dist/tempo/actions/accessKey/updateLimitSync.d.ts +2 -1
- package/dist/tempo/actions/accessKey/updateLimitSync.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/updateLimitSync.js.map +1 -1
- package/dist/tempo/actions/accessKey/verifyHash.d.ts +13 -6
- package/dist/tempo/actions/accessKey/verifyHash.d.ts.map +1 -1
- package/dist/tempo/actions/accessKey/verifyHash.js +9 -4
- package/dist/tempo/actions/accessKey/verifyHash.js.map +1 -1
- package/dist/tempo/actions/accounts/deriveAccount.d.ts +97 -0
- package/dist/tempo/actions/accounts/deriveAccount.d.ts.map +1 -0
- package/dist/tempo/actions/accounts/deriveAccount.js +60 -0
- package/dist/tempo/actions/accounts/deriveAccount.js.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/getConfig.d.ts +5 -5
- package/dist/tempo/actions/accounts/getConfig.d.ts.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/getConfig.js +5 -5
- package/dist/tempo/actions/accounts/getConfig.js.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/getConfigCommitment.d.ts +5 -5
- package/dist/tempo/actions/accounts/getConfigCommitment.d.ts.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/getConfigCommitment.js +5 -6
- package/dist/tempo/actions/accounts/getConfigCommitment.js.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/getOperation.d.ts +4 -4
- package/dist/tempo/actions/{multisig → accounts}/getOperation.d.ts.map +1 -1
- package/dist/tempo/actions/{multisig → accounts}/getOperation.js +4 -4
- package/dist/tempo/actions/accounts/getOperation.js.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/index.d.ts +4 -0
- package/dist/tempo/actions/accounts/index.d.ts.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/index.js +4 -0
- package/dist/tempo/actions/accounts/index.js.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/updateConfig.d.ts +19 -15
- package/dist/tempo/actions/accounts/updateConfig.d.ts.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/updateConfig.js +26 -28
- package/dist/tempo/actions/accounts/updateConfig.js.map +1 -0
- package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.d.ts +6 -6
- package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.d.ts.map +1 -1
- package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.js +6 -6
- package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.js.map +1 -1
- package/dist/tempo/actions/accounts/upgrade.d.ts +138 -0
- package/dist/tempo/actions/accounts/upgrade.d.ts.map +1 -0
- package/dist/tempo/actions/accounts/upgrade.js +113 -0
- package/dist/tempo/actions/accounts/upgrade.js.map +1 -0
- package/dist/tempo/actions/accounts/upgradeSync.d.ts +56 -0
- package/dist/tempo/actions/accounts/upgradeSync.d.ts.map +1 -0
- package/dist/tempo/actions/accounts/upgradeSync.js +53 -0
- package/dist/tempo/actions/accounts/upgradeSync.js.map +1 -0
- package/dist/tempo/actions/accounts/verifyHash.d.ts +86 -0
- package/dist/tempo/actions/accounts/verifyHash.d.ts.map +1 -0
- package/dist/tempo/actions/accounts/verifyHash.js +60 -0
- package/dist/tempo/actions/accounts/verifyHash.js.map +1 -0
- package/dist/tempo/actions/ai/embed.d.ts +41 -0
- package/dist/tempo/actions/ai/embed.d.ts.map +1 -0
- package/dist/tempo/actions/ai/embed.js +35 -0
- package/dist/tempo/actions/ai/embed.js.map +1 -0
- package/dist/tempo/actions/ai/generateText.d.ts +67 -0
- package/dist/tempo/actions/ai/generateText.d.ts.map +1 -0
- package/dist/tempo/actions/ai/generateText.js +44 -0
- package/dist/tempo/actions/ai/generateText.js.map +1 -0
- package/dist/tempo/actions/ai/index.d.ts +4 -0
- package/dist/tempo/actions/ai/index.d.ts.map +1 -0
- package/dist/tempo/actions/ai/index.js +5 -0
- package/dist/tempo/actions/ai/index.js.map +1 -0
- package/dist/tempo/actions/ai/streamText.d.ts +42 -0
- package/dist/tempo/actions/ai/streamText.d.ts.map +1 -0
- package/dist/tempo/actions/ai/streamText.js +57 -0
- package/dist/tempo/actions/ai/streamText.js.map +1 -0
- package/dist/tempo/actions/amm/burn.d.ts +2 -1
- package/dist/tempo/actions/amm/burn.d.ts.map +1 -1
- package/dist/tempo/actions/amm/burn.js.map +1 -1
- package/dist/tempo/actions/amm/burnSync.d.ts +2 -1
- package/dist/tempo/actions/amm/burnSync.d.ts.map +1 -1
- package/dist/tempo/actions/amm/burnSync.js.map +1 -1
- package/dist/tempo/actions/amm/errors.d.ts +32 -0
- package/dist/tempo/actions/amm/errors.d.ts.map +1 -0
- package/dist/tempo/actions/amm/errors.js +91 -0
- package/dist/tempo/actions/amm/errors.js.map +1 -0
- package/dist/tempo/actions/amm/getLiquidityBalance.d.ts +2 -1
- package/dist/tempo/actions/amm/getLiquidityBalance.d.ts.map +1 -1
- package/dist/tempo/actions/amm/getLiquidityBalance.js +1 -2
- package/dist/tempo/actions/amm/getLiquidityBalance.js.map +1 -1
- package/dist/tempo/actions/amm/getPool.d.ts +2 -1
- package/dist/tempo/actions/amm/getPool.d.ts.map +1 -1
- package/dist/tempo/actions/amm/getPool.js +1 -2
- package/dist/tempo/actions/amm/getPool.js.map +1 -1
- package/dist/tempo/actions/amm/index.d.ts +1 -0
- package/dist/tempo/actions/amm/index.d.ts.map +1 -1
- package/dist/tempo/actions/amm/index.js +1 -0
- package/dist/tempo/actions/amm/index.js.map +1 -1
- package/dist/tempo/actions/amm/mint.d.ts +2 -1
- package/dist/tempo/actions/amm/mint.d.ts.map +1 -1
- package/dist/tempo/actions/amm/mint.js.map +1 -1
- package/dist/tempo/actions/amm/mintSync.d.ts +2 -1
- package/dist/tempo/actions/amm/mintSync.d.ts.map +1 -1
- package/dist/tempo/actions/amm/mintSync.js.map +1 -1
- package/dist/tempo/actions/amm/rebalanceSwap.d.ts +2 -1
- package/dist/tempo/actions/amm/rebalanceSwap.d.ts.map +1 -1
- package/dist/tempo/actions/amm/rebalanceSwap.js.map +1 -1
- package/dist/tempo/actions/amm/rebalanceSwapSync.d.ts +2 -1
- package/dist/tempo/actions/amm/rebalanceSwapSync.d.ts.map +1 -1
- package/dist/tempo/actions/amm/rebalanceSwapSync.js.map +1 -1
- package/dist/tempo/actions/bucket/delete.d.ts +34 -0
- package/dist/tempo/actions/bucket/delete.d.ts.map +1 -0
- package/dist/tempo/actions/bucket/delete.js +29 -0
- package/dist/tempo/actions/bucket/delete.js.map +1 -0
- package/dist/tempo/actions/bucket/get.d.ts +44 -0
- package/dist/tempo/actions/bucket/get.d.ts.map +1 -0
- package/dist/tempo/actions/bucket/get.js +44 -0
- package/dist/tempo/actions/bucket/get.js.map +1 -0
- package/dist/tempo/actions/bucket/head.d.ts +33 -0
- package/dist/tempo/actions/bucket/head.d.ts.map +1 -0
- package/dist/tempo/actions/bucket/head.js +30 -0
- package/dist/tempo/actions/bucket/head.js.map +1 -0
- package/dist/tempo/actions/bucket/index.d.ts +7 -0
- package/dist/tempo/actions/bucket/index.d.ts.map +1 -0
- package/dist/tempo/actions/bucket/index.js +7 -0
- package/dist/tempo/actions/bucket/index.js.map +1 -0
- package/dist/tempo/actions/bucket/list.d.ts +43 -0
- package/dist/tempo/actions/bucket/list.d.ts.map +1 -0
- package/dist/tempo/actions/bucket/list.js +31 -0
- package/dist/tempo/actions/bucket/list.js.map +1 -0
- package/dist/tempo/actions/bucket/put.d.ts +47 -0
- package/dist/tempo/actions/bucket/put.d.ts.map +1 -0
- package/dist/tempo/actions/bucket/put.js +53 -0
- package/dist/tempo/actions/bucket/put.js.map +1 -0
- package/dist/tempo/actions/bucket/types.d.ts +20 -0
- package/dist/tempo/actions/bucket/types.d.ts.map +1 -0
- package/dist/tempo/actions/bucket/types.js +2 -0
- package/dist/tempo/actions/bucket/types.js.map +1 -0
- package/dist/tempo/actions/channel/close.d.ts +2 -1
- package/dist/tempo/actions/channel/close.d.ts.map +1 -1
- package/dist/tempo/actions/channel/close.js.map +1 -1
- package/dist/tempo/actions/channel/closeSync.d.ts +2 -1
- package/dist/tempo/actions/channel/closeSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/closeSync.js.map +1 -1
- package/dist/tempo/actions/channel/errors.d.ts +65 -0
- package/dist/tempo/actions/channel/errors.d.ts.map +1 -0
- package/dist/tempo/actions/channel/errors.js +181 -0
- package/dist/tempo/actions/channel/errors.js.map +1 -0
- package/dist/tempo/actions/channel/getStates.d.ts +2 -1
- package/dist/tempo/actions/channel/getStates.d.ts.map +1 -1
- package/dist/tempo/actions/channel/getStates.js +1 -2
- package/dist/tempo/actions/channel/getStates.js.map +1 -1
- package/dist/tempo/actions/channel/index.d.ts +1 -0
- package/dist/tempo/actions/channel/index.d.ts.map +1 -1
- package/dist/tempo/actions/channel/index.js +1 -0
- package/dist/tempo/actions/channel/index.js.map +1 -1
- package/dist/tempo/actions/channel/open.d.ts +2 -1
- package/dist/tempo/actions/channel/open.d.ts.map +1 -1
- package/dist/tempo/actions/channel/open.js.map +1 -1
- package/dist/tempo/actions/channel/openSync.d.ts +2 -1
- package/dist/tempo/actions/channel/openSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/openSync.js.map +1 -1
- package/dist/tempo/actions/channel/requestClose.d.ts +2 -1
- package/dist/tempo/actions/channel/requestClose.d.ts.map +1 -1
- package/dist/tempo/actions/channel/requestClose.js.map +1 -1
- package/dist/tempo/actions/channel/requestCloseSync.d.ts +2 -1
- package/dist/tempo/actions/channel/requestCloseSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/requestCloseSync.js.map +1 -1
- package/dist/tempo/actions/channel/settle.d.ts +2 -1
- package/dist/tempo/actions/channel/settle.d.ts.map +1 -1
- package/dist/tempo/actions/channel/settle.js.map +1 -1
- package/dist/tempo/actions/channel/settleSync.d.ts +2 -1
- package/dist/tempo/actions/channel/settleSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/settleSync.js.map +1 -1
- package/dist/tempo/actions/channel/topUp.d.ts +2 -1
- package/dist/tempo/actions/channel/topUp.d.ts.map +1 -1
- package/dist/tempo/actions/channel/topUp.js.map +1 -1
- package/dist/tempo/actions/channel/topUpSync.d.ts +2 -1
- package/dist/tempo/actions/channel/topUpSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/topUpSync.js.map +1 -1
- package/dist/tempo/actions/channel/withdraw.d.ts +2 -1
- package/dist/tempo/actions/channel/withdraw.d.ts.map +1 -1
- package/dist/tempo/actions/channel/withdraw.js.map +1 -1
- package/dist/tempo/actions/channel/withdrawSync.d.ts +2 -1
- package/dist/tempo/actions/channel/withdrawSync.d.ts.map +1 -1
- package/dist/tempo/actions/channel/withdrawSync.js.map +1 -1
- package/dist/tempo/actions/compute/create.d.ts +110 -0
- package/dist/tempo/actions/compute/create.d.ts.map +1 -0
- package/dist/tempo/actions/compute/create.js +55 -0
- package/dist/tempo/actions/compute/create.js.map +1 -0
- package/dist/tempo/actions/compute/exec.d.ts +58 -0
- package/dist/tempo/actions/compute/exec.d.ts.map +1 -0
- package/dist/tempo/actions/compute/exec.js +33 -0
- package/dist/tempo/actions/compute/exec.js.map +1 -0
- package/dist/tempo/actions/compute/index.d.ts +14 -0
- package/dist/tempo/actions/compute/index.d.ts.map +1 -0
- package/dist/tempo/actions/compute/index.js +14 -0
- package/dist/tempo/actions/compute/index.js.map +1 -0
- package/dist/tempo/actions/compute/list.d.ts +39 -0
- package/dist/tempo/actions/compute/list.d.ts.map +1 -0
- package/dist/tempo/actions/compute/list.js +29 -0
- package/dist/tempo/actions/compute/list.js.map +1 -0
- package/dist/tempo/actions/compute/logs.d.ts +62 -0
- package/dist/tempo/actions/compute/logs.d.ts.map +1 -0
- package/dist/tempo/actions/compute/logs.js +37 -0
- package/dist/tempo/actions/compute/logs.js.map +1 -0
- package/dist/tempo/actions/compute/read.d.ts +54 -0
- package/dist/tempo/actions/compute/read.d.ts.map +1 -0
- package/dist/tempo/actions/compute/read.js +45 -0
- package/dist/tempo/actions/compute/read.js.map +1 -0
- package/dist/tempo/actions/compute/renew.d.ts +39 -0
- package/dist/tempo/actions/compute/renew.d.ts.map +1 -0
- package/dist/tempo/actions/compute/renew.js +34 -0
- package/dist/tempo/actions/compute/renew.js.map +1 -0
- package/dist/tempo/actions/compute/snapshot.d.ts +42 -0
- package/dist/tempo/actions/compute/snapshot.d.ts.map +1 -0
- package/dist/tempo/actions/compute/snapshot.js +33 -0
- package/dist/tempo/actions/compute/snapshot.js.map +1 -0
- package/dist/tempo/actions/compute/spawn.d.ts +49 -0
- package/dist/tempo/actions/compute/spawn.d.ts.map +1 -0
- package/dist/tempo/actions/compute/spawn.js +34 -0
- package/dist/tempo/actions/compute/spawn.js.map +1 -0
- package/dist/tempo/actions/compute/status.d.ts +39 -0
- package/dist/tempo/actions/compute/status.d.ts.map +1 -0
- package/dist/tempo/actions/compute/status.js +31 -0
- package/dist/tempo/actions/compute/status.js.map +1 -0
- package/dist/tempo/actions/compute/stream.d.ts +52 -0
- package/dist/tempo/actions/compute/stream.d.ts.map +1 -0
- package/dist/tempo/actions/compute/stream.js +37 -0
- package/dist/tempo/actions/compute/stream.js.map +1 -0
- package/dist/tempo/actions/compute/terminate.d.ts +41 -0
- package/dist/tempo/actions/compute/terminate.d.ts.map +1 -0
- package/dist/tempo/actions/compute/terminate.js +30 -0
- package/dist/tempo/actions/compute/terminate.js.map +1 -0
- package/dist/tempo/actions/compute/types.d.ts +26 -0
- package/dist/tempo/actions/compute/types.d.ts.map +1 -0
- package/dist/tempo/actions/compute/types.js +2 -0
- package/dist/tempo/actions/compute/types.js.map +1 -0
- package/dist/tempo/actions/compute/write.d.ts +45 -0
- package/dist/tempo/actions/compute/write.d.ts.map +1 -0
- package/dist/tempo/actions/compute/write.js +49 -0
- package/dist/tempo/actions/compute/write.js.map +1 -0
- package/dist/tempo/actions/dex/buy.d.ts +2 -1
- package/dist/tempo/actions/dex/buy.d.ts.map +1 -1
- package/dist/tempo/actions/dex/buy.js.map +1 -1
- package/dist/tempo/actions/dex/buySync.d.ts +2 -1
- package/dist/tempo/actions/dex/buySync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/buySync.js.map +1 -1
- package/dist/tempo/actions/dex/cancel.d.ts +2 -1
- package/dist/tempo/actions/dex/cancel.d.ts.map +1 -1
- package/dist/tempo/actions/dex/cancel.js.map +1 -1
- package/dist/tempo/actions/dex/cancelStale.d.ts +2 -1
- package/dist/tempo/actions/dex/cancelStale.d.ts.map +1 -1
- package/dist/tempo/actions/dex/cancelStale.js.map +1 -1
- package/dist/tempo/actions/dex/cancelStaleSync.d.ts +2 -1
- package/dist/tempo/actions/dex/cancelStaleSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/cancelStaleSync.js.map +1 -1
- package/dist/tempo/actions/dex/cancelSync.d.ts +2 -1
- package/dist/tempo/actions/dex/cancelSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/cancelSync.js.map +1 -1
- package/dist/tempo/actions/dex/createPair.d.ts +2 -1
- package/dist/tempo/actions/dex/createPair.d.ts.map +1 -1
- package/dist/tempo/actions/dex/createPair.js.map +1 -1
- package/dist/tempo/actions/dex/createPairSync.d.ts +2 -1
- package/dist/tempo/actions/dex/createPairSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/createPairSync.js.map +1 -1
- package/dist/tempo/actions/dex/errors.d.ts +201 -0
- package/dist/tempo/actions/dex/errors.d.ts.map +1 -0
- package/dist/tempo/actions/dex/errors.js +514 -0
- package/dist/tempo/actions/dex/errors.js.map +1 -0
- package/dist/tempo/actions/dex/getBalance.d.ts +2 -1
- package/dist/tempo/actions/dex/getBalance.d.ts.map +1 -1
- package/dist/tempo/actions/dex/getBalance.js +1 -2
- package/dist/tempo/actions/dex/getBalance.js.map +1 -1
- package/dist/tempo/actions/dex/getBuyQuote.d.ts +2 -1
- package/dist/tempo/actions/dex/getBuyQuote.d.ts.map +1 -1
- package/dist/tempo/actions/dex/getBuyQuote.js +1 -2
- package/dist/tempo/actions/dex/getBuyQuote.js.map +1 -1
- package/dist/tempo/actions/dex/getOrder.d.ts +2 -1
- package/dist/tempo/actions/dex/getOrder.d.ts.map +1 -1
- package/dist/tempo/actions/dex/getOrder.js +1 -2
- package/dist/tempo/actions/dex/getOrder.js.map +1 -1
- package/dist/tempo/actions/dex/getOrderbook.d.ts +2 -1
- package/dist/tempo/actions/dex/getOrderbook.d.ts.map +1 -1
- package/dist/tempo/actions/dex/getOrderbook.js +1 -2
- package/dist/tempo/actions/dex/getOrderbook.js.map +1 -1
- package/dist/tempo/actions/dex/getSellQuote.d.ts +2 -1
- package/dist/tempo/actions/dex/getSellQuote.d.ts.map +1 -1
- package/dist/tempo/actions/dex/getSellQuote.js +1 -2
- package/dist/tempo/actions/dex/getSellQuote.js.map +1 -1
- package/dist/tempo/actions/dex/getTickLevel.d.ts +2 -1
- package/dist/tempo/actions/dex/getTickLevel.d.ts.map +1 -1
- package/dist/tempo/actions/dex/getTickLevel.js +1 -2
- package/dist/tempo/actions/dex/getTickLevel.js.map +1 -1
- package/dist/tempo/actions/dex/index.d.ts +1 -0
- package/dist/tempo/actions/dex/index.d.ts.map +1 -1
- package/dist/tempo/actions/dex/index.js +1 -0
- package/dist/tempo/actions/dex/index.js.map +1 -1
- package/dist/tempo/actions/dex/place.d.ts +2 -1
- package/dist/tempo/actions/dex/place.d.ts.map +1 -1
- package/dist/tempo/actions/dex/place.js.map +1 -1
- package/dist/tempo/actions/dex/placeFlip.d.ts +2 -1
- package/dist/tempo/actions/dex/placeFlip.d.ts.map +1 -1
- package/dist/tempo/actions/dex/placeFlip.js.map +1 -1
- package/dist/tempo/actions/dex/placeFlipSync.d.ts +2 -1
- package/dist/tempo/actions/dex/placeFlipSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/placeFlipSync.js.map +1 -1
- package/dist/tempo/actions/dex/placeSync.d.ts +2 -1
- package/dist/tempo/actions/dex/placeSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/placeSync.js.map +1 -1
- package/dist/tempo/actions/dex/sell.d.ts +2 -1
- package/dist/tempo/actions/dex/sell.d.ts.map +1 -1
- package/dist/tempo/actions/dex/sell.js.map +1 -1
- package/dist/tempo/actions/dex/sellSync.d.ts +2 -1
- package/dist/tempo/actions/dex/sellSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/sellSync.js.map +1 -1
- package/dist/tempo/actions/dex/withdraw.d.ts +2 -1
- package/dist/tempo/actions/dex/withdraw.d.ts.map +1 -1
- package/dist/tempo/actions/dex/withdraw.js.map +1 -1
- package/dist/tempo/actions/dex/withdrawSync.d.ts +2 -1
- package/dist/tempo/actions/dex/withdrawSync.d.ts.map +1 -1
- package/dist/tempo/actions/dex/withdrawSync.js.map +1 -1
- package/dist/tempo/actions/earn/deployment.d.ts +11 -9
- package/dist/tempo/actions/earn/deployment.d.ts.map +1 -1
- package/dist/tempo/actions/earn/deployment.js +7 -8
- package/dist/tempo/actions/earn/deployment.js.map +1 -1
- package/dist/tempo/actions/earn.d.ts +16 -16
- package/dist/tempo/actions/earn.d.ts.map +1 -1
- package/dist/tempo/actions/earn.js +1 -2
- package/dist/tempo/actions/earn.js.map +1 -1
- package/dist/tempo/actions/fee/errors.d.ts +26 -0
- package/dist/tempo/actions/fee/errors.d.ts.map +1 -0
- package/dist/tempo/actions/fee/errors.js +93 -0
- package/dist/tempo/actions/fee/errors.js.map +1 -0
- package/dist/tempo/actions/fee/getUserToken.d.ts +2 -1
- package/dist/tempo/actions/fee/getUserToken.d.ts.map +1 -1
- package/dist/tempo/actions/fee/getUserToken.js +1 -2
- package/dist/tempo/actions/fee/getUserToken.js.map +1 -1
- package/dist/tempo/actions/fee/getValidatorToken.d.ts +2 -1
- package/dist/tempo/actions/fee/getValidatorToken.d.ts.map +1 -1
- package/dist/tempo/actions/fee/getValidatorToken.js +1 -2
- package/dist/tempo/actions/fee/getValidatorToken.js.map +1 -1
- package/dist/tempo/actions/fee/index.d.ts +1 -0
- package/dist/tempo/actions/fee/index.d.ts.map +1 -1
- package/dist/tempo/actions/fee/index.js +1 -0
- package/dist/tempo/actions/fee/index.js.map +1 -1
- package/dist/tempo/actions/fee/setUserToken.d.ts +2 -1
- package/dist/tempo/actions/fee/setUserToken.d.ts.map +1 -1
- package/dist/tempo/actions/fee/setUserToken.js.map +1 -1
- package/dist/tempo/actions/fee/setUserTokenSync.d.ts +2 -1
- package/dist/tempo/actions/fee/setUserTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/fee/setUserTokenSync.js.map +1 -1
- package/dist/tempo/actions/fee/setValidatorToken.d.ts +2 -1
- package/dist/tempo/actions/fee/setValidatorToken.d.ts.map +1 -1
- package/dist/tempo/actions/fee/setValidatorToken.js.map +1 -1
- package/dist/tempo/actions/fee/setValidatorTokenSync.d.ts +2 -1
- package/dist/tempo/actions/fee/setValidatorTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/fee/setValidatorTokenSync.js.map +1 -1
- package/dist/tempo/actions/fee/validateToken.d.ts.map +1 -1
- package/dist/tempo/actions/fee/validateToken.js +1 -1
- package/dist/tempo/actions/fee/validateToken.js.map +1 -1
- package/dist/tempo/actions/gateway/getCapabilities.d.ts +25 -0
- package/dist/tempo/actions/gateway/getCapabilities.d.ts.map +1 -0
- package/dist/tempo/actions/gateway/getCapabilities.js +22 -0
- package/dist/tempo/actions/gateway/getCapabilities.js.map +1 -0
- package/dist/tempo/actions/gateway/index.d.ts +2 -0
- package/dist/tempo/actions/gateway/index.d.ts.map +1 -0
- package/dist/tempo/actions/gateway/index.js +3 -0
- package/dist/tempo/actions/gateway/index.js.map +1 -0
- package/dist/tempo/actions/index.d.ts +12 -2
- package/dist/tempo/actions/index.d.ts.map +1 -1
- package/dist/tempo/actions/index.js +12 -2
- package/dist/tempo/actions/index.js.map +1 -1
- package/dist/tempo/actions/kv/delete.d.ts +34 -0
- package/dist/tempo/actions/kv/delete.d.ts.map +1 -0
- package/dist/tempo/actions/kv/delete.js +29 -0
- package/dist/tempo/actions/kv/delete.js.map +1 -0
- package/dist/tempo/actions/kv/get.d.ts +33 -0
- package/dist/tempo/actions/kv/get.d.ts.map +1 -0
- package/dist/tempo/actions/kv/get.js +30 -0
- package/dist/tempo/actions/kv/get.js.map +1 -0
- package/dist/tempo/actions/kv/index.d.ts +6 -0
- package/dist/tempo/actions/kv/index.d.ts.map +1 -0
- package/dist/tempo/actions/kv/index.js +6 -0
- package/dist/tempo/actions/kv/index.js.map +1 -0
- package/dist/tempo/actions/kv/list.d.ts +44 -0
- package/dist/tempo/actions/kv/list.d.ts.map +1 -0
- package/dist/tempo/actions/kv/list.js +32 -0
- package/dist/tempo/actions/kv/list.js.map +1 -0
- package/dist/tempo/actions/kv/set.d.ts +52 -0
- package/dist/tempo/actions/kv/set.d.ts.map +1 -0
- package/dist/tempo/actions/kv/set.js +37 -0
- package/dist/tempo/actions/kv/set.js.map +1 -0
- package/dist/tempo/actions/kv/types.d.ts +16 -0
- package/dist/tempo/actions/kv/types.d.ts.map +1 -0
- package/dist/tempo/actions/kv/types.js +2 -0
- package/dist/tempo/actions/kv/types.js.map +1 -0
- package/dist/tempo/actions/nonce/errors.d.ts +33 -0
- package/dist/tempo/actions/nonce/errors.d.ts.map +1 -0
- package/dist/tempo/actions/nonce/errors.js +57 -0
- package/dist/tempo/actions/nonce/errors.js.map +1 -0
- package/dist/tempo/actions/nonce/get.d.ts +2 -1
- package/dist/tempo/actions/nonce/get.d.ts.map +1 -1
- package/dist/tempo/actions/nonce/get.js +1 -2
- package/dist/tempo/actions/nonce/get.js.map +1 -1
- package/dist/tempo/actions/nonce/index.d.ts +1 -0
- package/dist/tempo/actions/nonce/index.d.ts.map +1 -1
- package/dist/tempo/actions/nonce/index.js +1 -0
- package/dist/tempo/actions/nonce/index.js.map +1 -1
- package/dist/tempo/actions/policy/create.d.ts +2 -1
- package/dist/tempo/actions/policy/create.d.ts.map +1 -1
- package/dist/tempo/actions/policy/create.js.map +1 -1
- package/dist/tempo/actions/policy/createSync.d.ts +2 -1
- package/dist/tempo/actions/policy/createSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/createSync.js.map +1 -1
- package/dist/tempo/actions/policy/errors.d.ts +19 -0
- package/dist/tempo/actions/policy/errors.d.ts.map +1 -0
- package/dist/tempo/actions/policy/errors.js +30 -0
- package/dist/tempo/actions/policy/errors.js.map +1 -0
- package/dist/tempo/actions/policy/getData.d.ts +2 -1
- package/dist/tempo/actions/policy/getData.d.ts.map +1 -1
- package/dist/tempo/actions/policy/getData.js +1 -2
- package/dist/tempo/actions/policy/getData.js.map +1 -1
- package/dist/tempo/actions/policy/index.d.ts +1 -0
- package/dist/tempo/actions/policy/index.d.ts.map +1 -1
- package/dist/tempo/actions/policy/index.js +1 -0
- package/dist/tempo/actions/policy/index.js.map +1 -1
- package/dist/tempo/actions/policy/isAuthorized.d.ts +2 -1
- package/dist/tempo/actions/policy/isAuthorized.d.ts.map +1 -1
- package/dist/tempo/actions/policy/isAuthorized.js +1 -2
- package/dist/tempo/actions/policy/isAuthorized.js.map +1 -1
- package/dist/tempo/actions/policy/modifyBlacklist.d.ts +2 -1
- package/dist/tempo/actions/policy/modifyBlacklist.d.ts.map +1 -1
- package/dist/tempo/actions/policy/modifyBlacklist.js.map +1 -1
- package/dist/tempo/actions/policy/modifyBlacklistSync.d.ts +2 -1
- package/dist/tempo/actions/policy/modifyBlacklistSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/modifyBlacklistSync.js.map +1 -1
- package/dist/tempo/actions/policy/modifyWhitelist.d.ts +2 -1
- package/dist/tempo/actions/policy/modifyWhitelist.d.ts.map +1 -1
- package/dist/tempo/actions/policy/modifyWhitelist.js.map +1 -1
- package/dist/tempo/actions/policy/modifyWhitelistSync.d.ts +2 -1
- package/dist/tempo/actions/policy/modifyWhitelistSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/modifyWhitelistSync.js.map +1 -1
- package/dist/tempo/actions/policy/setAdmin.d.ts +2 -1
- package/dist/tempo/actions/policy/setAdmin.d.ts.map +1 -1
- package/dist/tempo/actions/policy/setAdmin.js.map +1 -1
- package/dist/tempo/actions/policy/setAdminSync.d.ts +2 -1
- package/dist/tempo/actions/policy/setAdminSync.d.ts.map +1 -1
- package/dist/tempo/actions/policy/setAdminSync.js.map +1 -1
- package/dist/tempo/actions/propAmm.d.ts +10 -3
- package/dist/tempo/actions/propAmm.d.ts.map +1 -1
- package/dist/tempo/actions/propAmm.js +1 -2
- package/dist/tempo/actions/propAmm.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/burn.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/burn.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/burn.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/burnSync.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/burnSync.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/burnSync.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/claim.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/claim.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/claim.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/claimSync.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/claimSync.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/claimSync.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/get.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/get.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/get.js +1 -2
- package/dist/tempo/actions/receivePolicy/get.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/getBlockedBalance.d.ts +3 -3
- package/dist/tempo/actions/receivePolicy/getBlockedBalance.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/getBlockedBalance.js +1 -2
- package/dist/tempo/actions/receivePolicy/getBlockedBalance.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/set.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/set.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/set.js +2 -3
- package/dist/tempo/actions/receivePolicy/set.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/setSync.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/setSync.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/setSync.js.map +1 -1
- package/dist/tempo/actions/receivePolicy/validate.d.ts +2 -1
- package/dist/tempo/actions/receivePolicy/validate.d.ts.map +1 -1
- package/dist/tempo/actions/receivePolicy/validate.js +1 -2
- package/dist/tempo/actions/receivePolicy/validate.js.map +1 -1
- package/dist/tempo/actions/token/approve.d.ts +2 -1
- package/dist/tempo/actions/token/approve.d.ts.map +1 -1
- package/dist/tempo/actions/token/approve.js.map +1 -1
- package/dist/tempo/actions/token/approveSync.d.ts +2 -1
- package/dist/tempo/actions/token/approveSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/approveSync.js.map +1 -1
- package/dist/tempo/actions/token/burn.d.ts +2 -1
- package/dist/tempo/actions/token/burn.d.ts.map +1 -1
- package/dist/tempo/actions/token/burn.js.map +1 -1
- package/dist/tempo/actions/token/burnBlocked.d.ts +2 -1
- package/dist/tempo/actions/token/burnBlocked.d.ts.map +1 -1
- package/dist/tempo/actions/token/burnBlocked.js.map +1 -1
- package/dist/tempo/actions/token/burnBlockedSync.d.ts +2 -1
- package/dist/tempo/actions/token/burnBlockedSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/burnBlockedSync.js.map +1 -1
- package/dist/tempo/actions/token/burnSync.d.ts +2 -1
- package/dist/tempo/actions/token/burnSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/burnSync.js.map +1 -1
- package/dist/tempo/actions/token/changeTransferPolicy.d.ts +2 -1
- package/dist/tempo/actions/token/changeTransferPolicy.d.ts.map +1 -1
- package/dist/tempo/actions/token/changeTransferPolicy.js.map +1 -1
- package/dist/tempo/actions/token/changeTransferPolicySync.d.ts +2 -1
- package/dist/tempo/actions/token/changeTransferPolicySync.d.ts.map +1 -1
- package/dist/tempo/actions/token/changeTransferPolicySync.js.map +1 -1
- package/dist/tempo/actions/token/create.d.ts +2 -1
- package/dist/tempo/actions/token/create.d.ts.map +1 -1
- package/dist/tempo/actions/token/create.js.map +1 -1
- package/dist/tempo/actions/token/createSync.d.ts +2 -1
- package/dist/tempo/actions/token/createSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/createSync.js.map +1 -1
- package/dist/tempo/actions/token/errors.d.ts +164 -0
- package/dist/tempo/actions/token/errors.d.ts.map +1 -0
- package/dist/tempo/actions/token/errors.js +461 -0
- package/dist/tempo/actions/token/errors.js.map +1 -0
- package/dist/tempo/actions/token/getAllowance.d.ts +2 -1
- package/dist/tempo/actions/token/getAllowance.d.ts.map +1 -1
- package/dist/tempo/actions/token/getAllowance.js +1 -2
- package/dist/tempo/actions/token/getAllowance.js.map +1 -1
- package/dist/tempo/actions/token/getBalance.d.ts +2 -1
- package/dist/tempo/actions/token/getBalance.d.ts.map +1 -1
- package/dist/tempo/actions/token/getBalance.js +1 -2
- package/dist/tempo/actions/token/getBalance.js.map +1 -1
- package/dist/tempo/actions/token/getMetadata.d.ts +2 -1
- package/dist/tempo/actions/token/getMetadata.d.ts.map +1 -1
- package/dist/tempo/actions/token/getMetadata.js +1 -2
- package/dist/tempo/actions/token/getMetadata.js.map +1 -1
- package/dist/tempo/actions/token/getRoleAdmin.d.ts +3 -3
- package/dist/tempo/actions/token/getRoleAdmin.d.ts.map +1 -1
- package/dist/tempo/actions/token/getRoleAdmin.js +1 -2
- package/dist/tempo/actions/token/getRoleAdmin.js.map +1 -1
- package/dist/tempo/actions/token/getTotalSupply.d.ts +2 -1
- package/dist/tempo/actions/token/getTotalSupply.d.ts.map +1 -1
- package/dist/tempo/actions/token/getTotalSupply.js +1 -2
- package/dist/tempo/actions/token/getTotalSupply.js.map +1 -1
- package/dist/tempo/actions/token/grantRoles.d.ts +2 -1
- package/dist/tempo/actions/token/grantRoles.d.ts.map +1 -1
- package/dist/tempo/actions/token/grantRoles.js.map +1 -1
- package/dist/tempo/actions/token/grantRolesSync.d.ts +2 -1
- package/dist/tempo/actions/token/grantRolesSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/grantRolesSync.js.map +1 -1
- package/dist/tempo/actions/token/hasRole.d.ts +3 -3
- package/dist/tempo/actions/token/hasRole.d.ts.map +1 -1
- package/dist/tempo/actions/token/hasRole.js +1 -2
- package/dist/tempo/actions/token/hasRole.js.map +1 -1
- package/dist/tempo/actions/token/index.d.ts +1 -0
- package/dist/tempo/actions/token/index.d.ts.map +1 -1
- package/dist/tempo/actions/token/index.js +1 -0
- package/dist/tempo/actions/token/index.js.map +1 -1
- package/dist/tempo/actions/token/mint.d.ts +2 -1
- package/dist/tempo/actions/token/mint.d.ts.map +1 -1
- package/dist/tempo/actions/token/mint.js +4 -3
- package/dist/tempo/actions/token/mint.js.map +1 -1
- package/dist/tempo/actions/token/mintSync.d.ts +2 -1
- package/dist/tempo/actions/token/mintSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/mintSync.js.map +1 -1
- package/dist/tempo/actions/token/pause.d.ts +2 -1
- package/dist/tempo/actions/token/pause.d.ts.map +1 -1
- package/dist/tempo/actions/token/pause.js.map +1 -1
- package/dist/tempo/actions/token/pauseSync.d.ts +2 -1
- package/dist/tempo/actions/token/pauseSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/pauseSync.js.map +1 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteToken.d.ts +2 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteToken.d.ts.map +1 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteToken.js.map +1 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteTokenSync.d.ts +2 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/prepareUpdateQuoteTokenSync.js.map +1 -1
- package/dist/tempo/actions/token/renounceRoles.d.ts +2 -1
- package/dist/tempo/actions/token/renounceRoles.d.ts.map +1 -1
- package/dist/tempo/actions/token/renounceRoles.js.map +1 -1
- package/dist/tempo/actions/token/renounceRolesSync.d.ts +2 -1
- package/dist/tempo/actions/token/renounceRolesSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/renounceRolesSync.js.map +1 -1
- package/dist/tempo/actions/token/revokeRoles.d.ts +2 -1
- package/dist/tempo/actions/token/revokeRoles.d.ts.map +1 -1
- package/dist/tempo/actions/token/revokeRoles.js.map +1 -1
- package/dist/tempo/actions/token/revokeRolesSync.d.ts +2 -1
- package/dist/tempo/actions/token/revokeRolesSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/revokeRolesSync.js.map +1 -1
- package/dist/tempo/actions/token/setRoleAdmin.d.ts +2 -1
- package/dist/tempo/actions/token/setRoleAdmin.d.ts.map +1 -1
- package/dist/tempo/actions/token/setRoleAdmin.js.map +1 -1
- package/dist/tempo/actions/token/setRoleAdminSync.d.ts +2 -1
- package/dist/tempo/actions/token/setRoleAdminSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/setRoleAdminSync.js.map +1 -1
- package/dist/tempo/actions/token/setSupplyCap.d.ts +2 -1
- package/dist/tempo/actions/token/setSupplyCap.d.ts.map +1 -1
- package/dist/tempo/actions/token/setSupplyCap.js.map +1 -1
- package/dist/tempo/actions/token/setSupplyCapSync.d.ts +2 -1
- package/dist/tempo/actions/token/setSupplyCapSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/setSupplyCapSync.js.map +1 -1
- package/dist/tempo/actions/token/transfer.d.ts +2 -1
- package/dist/tempo/actions/token/transfer.d.ts.map +1 -1
- package/dist/tempo/actions/token/transfer.js.map +1 -1
- package/dist/tempo/actions/token/transferSync.d.ts +2 -1
- package/dist/tempo/actions/token/transferSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/transferSync.js.map +1 -1
- package/dist/tempo/actions/token/unpause.d.ts +2 -1
- package/dist/tempo/actions/token/unpause.d.ts.map +1 -1
- package/dist/tempo/actions/token/unpause.js.map +1 -1
- package/dist/tempo/actions/token/unpauseSync.d.ts +2 -1
- package/dist/tempo/actions/token/unpauseSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/unpauseSync.js.map +1 -1
- package/dist/tempo/actions/token/updateQuoteToken.d.ts +2 -1
- package/dist/tempo/actions/token/updateQuoteToken.d.ts.map +1 -1
- package/dist/tempo/actions/token/updateQuoteToken.js.map +1 -1
- package/dist/tempo/actions/token/updateQuoteTokenSync.d.ts +2 -1
- package/dist/tempo/actions/token/updateQuoteTokenSync.d.ts.map +1 -1
- package/dist/tempo/actions/token/updateQuoteTokenSync.js.map +1 -1
- package/dist/tempo/actions/validator/add.d.ts +2 -1
- package/dist/tempo/actions/validator/add.d.ts.map +1 -1
- package/dist/tempo/actions/validator/add.js.map +1 -1
- package/dist/tempo/actions/validator/addSync.d.ts +2 -1
- package/dist/tempo/actions/validator/addSync.d.ts.map +1 -1
- package/dist/tempo/actions/validator/addSync.js.map +1 -1
- package/dist/tempo/actions/validator/changeOwner.d.ts +2 -1
- package/dist/tempo/actions/validator/changeOwner.d.ts.map +1 -1
- package/dist/tempo/actions/validator/changeOwner.js.map +1 -1
- package/dist/tempo/actions/validator/changeOwnerSync.d.ts +2 -1
- package/dist/tempo/actions/validator/changeOwnerSync.d.ts.map +1 -1
- package/dist/tempo/actions/validator/changeOwnerSync.js.map +1 -1
- package/dist/tempo/actions/validator/changeStatus.d.ts +2 -1
- package/dist/tempo/actions/validator/changeStatus.d.ts.map +1 -1
- package/dist/tempo/actions/validator/changeStatus.js.map +1 -1
- package/dist/tempo/actions/validator/changeStatusSync.d.ts +2 -1
- package/dist/tempo/actions/validator/changeStatusSync.d.ts.map +1 -1
- package/dist/tempo/actions/validator/changeStatusSync.js.map +1 -1
- package/dist/tempo/actions/validator/get.d.ts +3 -3
- package/dist/tempo/actions/validator/get.d.ts.map +1 -1
- package/dist/tempo/actions/validator/get.js +1 -2
- package/dist/tempo/actions/validator/get.js.map +1 -1
- package/dist/tempo/actions/validator/getByIndex.d.ts +3 -3
- package/dist/tempo/actions/validator/getByIndex.d.ts.map +1 -1
- package/dist/tempo/actions/validator/getByIndex.js +1 -2
- package/dist/tempo/actions/validator/getByIndex.js.map +1 -1
- package/dist/tempo/actions/validator/getCount.d.ts +3 -2
- package/dist/tempo/actions/validator/getCount.d.ts.map +1 -1
- package/dist/tempo/actions/validator/getCount.js +1 -2
- package/dist/tempo/actions/validator/getCount.js.map +1 -1
- package/dist/tempo/actions/validator/getNextFullDkgCeremony.d.ts +3 -2
- package/dist/tempo/actions/validator/getNextFullDkgCeremony.d.ts.map +1 -1
- package/dist/tempo/actions/validator/getNextFullDkgCeremony.js +1 -2
- package/dist/tempo/actions/validator/getNextFullDkgCeremony.js.map +1 -1
- package/dist/tempo/actions/validator/getOwner.d.ts +3 -2
- package/dist/tempo/actions/validator/getOwner.d.ts.map +1 -1
- package/dist/tempo/actions/validator/getOwner.js +1 -2
- package/dist/tempo/actions/validator/getOwner.js.map +1 -1
- package/dist/tempo/actions/validator/list.d.ts +3 -2
- package/dist/tempo/actions/validator/list.d.ts.map +1 -1
- package/dist/tempo/actions/validator/list.js +1 -2
- package/dist/tempo/actions/validator/list.js.map +1 -1
- package/dist/tempo/actions/validator/setNextFullDkgCeremony.d.ts +2 -1
- package/dist/tempo/actions/validator/setNextFullDkgCeremony.d.ts.map +1 -1
- package/dist/tempo/actions/validator/setNextFullDkgCeremony.js.map +1 -1
- package/dist/tempo/actions/validator/setNextFullDkgCeremonySync.d.ts +2 -1
- package/dist/tempo/actions/validator/setNextFullDkgCeremonySync.d.ts.map +1 -1
- package/dist/tempo/actions/validator/setNextFullDkgCeremonySync.js.map +1 -1
- package/dist/tempo/actions/validator/update.d.ts +2 -1
- package/dist/tempo/actions/validator/update.d.ts.map +1 -1
- package/dist/tempo/actions/validator/update.js.map +1 -1
- package/dist/tempo/actions/validator/updateSync.d.ts +2 -1
- package/dist/tempo/actions/validator/updateSync.d.ts.map +1 -1
- package/dist/tempo/actions/validator/updateSync.js.map +1 -1
- package/dist/tempo/actions/virtualAddress/getMasterAddress.d.ts +2 -1
- package/dist/tempo/actions/virtualAddress/getMasterAddress.d.ts.map +1 -1
- package/dist/tempo/actions/virtualAddress/getMasterAddress.js +1 -2
- package/dist/tempo/actions/virtualAddress/getMasterAddress.js.map +1 -1
- package/dist/tempo/actions/virtualAddress/registerMaster.d.ts +2 -1
- package/dist/tempo/actions/virtualAddress/registerMaster.d.ts.map +1 -1
- package/dist/tempo/actions/virtualAddress/registerMaster.js.map +1 -1
- package/dist/tempo/actions/virtualAddress/registerMasterSync.d.ts +2 -1
- package/dist/tempo/actions/virtualAddress/registerMasterSync.d.ts.map +1 -1
- package/dist/tempo/actions/virtualAddress/registerMasterSync.js.map +1 -1
- package/dist/tempo/actions/zone/deposit.d.ts +2 -1
- package/dist/tempo/actions/zone/deposit.d.ts.map +1 -1
- package/dist/tempo/actions/zone/deposit.js.map +1 -1
- package/dist/tempo/actions/zone/depositSync.d.ts +2 -1
- package/dist/tempo/actions/zone/depositSync.d.ts.map +1 -1
- package/dist/tempo/actions/zone/depositSync.js.map +1 -1
- package/dist/tempo/actions/zone/encryptedDeposit.d.ts +3 -2
- package/dist/tempo/actions/zone/encryptedDeposit.d.ts.map +1 -1
- package/dist/tempo/actions/zone/encryptedDeposit.js.map +1 -1
- package/dist/tempo/actions/zone/encryptedDepositSync.d.ts +2 -1
- package/dist/tempo/actions/zone/encryptedDepositSync.d.ts.map +1 -1
- package/dist/tempo/actions/zone/encryptedDepositSync.js.map +1 -1
- package/dist/tempo/actions/zone/getWithdrawalFee.d.ts +2 -1
- 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/requestVerifiableWithdrawal.d.ts +2 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawal.d.ts.map +1 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawal.js.map +1 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawalSync.d.ts +2 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawalSync.d.ts.map +1 -1
- package/dist/tempo/actions/zone/requestVerifiableWithdrawalSync.js.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawal.d.ts +2 -1
- package/dist/tempo/actions/zone/requestWithdrawal.d.ts.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawal.js.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawalSync.d.ts +2 -1
- package/dist/tempo/actions/zone/requestWithdrawalSync.d.ts.map +1 -1
- package/dist/tempo/actions/zone/requestWithdrawalSync.js.map +1 -1
- package/dist/tempo/chainConfig.d.ts +24 -17
- package/dist/tempo/chainConfig.d.ts.map +1 -1
- package/dist/tempo/chainConfig.js +366 -122
- package/dist/tempo/chainConfig.js.map +1 -1
- package/dist/tempo/errors.d.ts +65 -1
- package/dist/tempo/errors.d.ts.map +1 -1
- package/dist/tempo/errors.js +76 -0
- package/dist/tempo/errors.js.map +1 -1
- package/dist/tempo/index.d.ts +18 -3
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +16 -3
- package/dist/tempo/index.js.map +1 -1
- package/dist/tempo/internal/errors.d.ts +66 -0
- package/dist/tempo/internal/errors.d.ts.map +1 -0
- package/dist/tempo/internal/errors.js +43 -0
- package/dist/tempo/internal/errors.js.map +1 -0
- package/dist/tempo/internal/ndjson.d.ts +9 -0
- package/dist/tempo/internal/ndjson.d.ts.map +1 -0
- package/dist/tempo/internal/ndjson.js +44 -0
- package/dist/tempo/internal/ndjson.js.map +1 -0
- package/dist/tempo/internal/relay/accounts.d.ts +15 -0
- package/dist/tempo/internal/relay/accounts.d.ts.map +1 -0
- package/dist/tempo/internal/relay/{multisig.js → accounts.js} +184 -110
- package/dist/tempo/internal/relay/accounts.js.map +1 -0
- package/dist/tempo/internal/relay/autoSwap.d.ts +3 -0
- package/dist/tempo/internal/relay/autoSwap.d.ts.map +1 -0
- package/dist/tempo/internal/relay/autoSwap.js +217 -0
- package/dist/tempo/internal/relay/autoSwap.js.map +1 -0
- package/dist/tempo/internal/relay/error.d.ts.map +1 -1
- package/dist/tempo/internal/relay/error.js +6 -2
- package/dist/tempo/internal/relay/error.js.map +1 -1
- package/dist/tempo/internal/relay/feePayer.d.ts +7 -3
- package/dist/tempo/internal/relay/feePayer.d.ts.map +1 -1
- package/dist/tempo/internal/relay/feePayer.js +349 -30
- package/dist/tempo/internal/relay/feePayer.js.map +1 -1
- package/dist/tempo/internal/relay/feeToken.d.ts.map +1 -1
- package/dist/tempo/internal/relay/feeToken.js +21 -6
- package/dist/tempo/internal/relay/feeToken.js.map +1 -1
- package/dist/tempo/internal/relay/keyAuthorization.d.ts +25 -0
- package/dist/tempo/internal/relay/keyAuthorization.d.ts.map +1 -0
- package/dist/tempo/internal/relay/keyAuthorization.js +338 -0
- package/dist/tempo/internal/relay/keyAuthorization.js.map +1 -0
- package/dist/tempo/internal/relay/plugin.d.ts +6 -3
- package/dist/tempo/internal/relay/plugin.d.ts.map +1 -1
- package/dist/tempo/internal/relay/plugin.js +15 -6
- package/dist/tempo/internal/relay/plugin.js.map +1 -1
- package/dist/tempo/internal/relay/request.d.ts.map +1 -1
- package/dist/tempo/internal/relay/request.js +92 -7
- package/dist/tempo/internal/relay/request.js.map +1 -1
- package/dist/tempo/internal/relay/simulate.d.ts +4 -0
- package/dist/tempo/internal/relay/simulate.d.ts.map +1 -1
- package/dist/tempo/internal/relay/simulate.js +92 -41
- package/dist/tempo/internal/relay/simulate.js.map +1 -1
- package/dist/tempo/internal/relay/utils.d.ts +8 -0
- package/dist/tempo/internal/relay/utils.d.ts.map +1 -1
- package/dist/tempo/internal/relay.d.ts.map +1 -1
- package/dist/tempo/internal/relay.js +40 -2
- package/dist/tempo/internal/relay.js.map +1 -1
- package/dist/tempo/internal/replacement.d.ts +26 -0
- package/dist/tempo/internal/replacement.d.ts.map +1 -0
- package/dist/tempo/internal/replacement.js +76 -0
- package/dist/tempo/internal/replacement.js.map +1 -0
- package/dist/tempo/internal/resolveError.d.ts +4 -0
- package/dist/tempo/internal/resolveError.d.ts.map +1 -0
- package/dist/tempo/internal/resolveError.js +129 -0
- package/dist/tempo/internal/resolveError.js.map +1 -0
- package/dist/tempo/internal/utils.d.ts +38 -2
- package/dist/tempo/internal/utils.d.ts.map +1 -1
- package/dist/tempo/internal/utils.js +44 -4
- package/dist/tempo/internal/utils.js.map +1 -1
- package/dist/tempo/zones/zone.d.ts +12 -0
- package/dist/tempo/zones/zone.d.ts.map +1 -1
- package/dist/utils/Authorization.d.ts.map +1 -1
- package/dist/utils/Authorization.js +16 -8
- package/dist/utils/Authorization.js.map +1 -1
- package/dist/utils/RpcClient.d.ts +4 -1
- package/dist/utils/RpcClient.d.ts.map +1 -1
- package/dist/utils/RpcClient.js +112 -49
- package/dist/utils/RpcClient.js.map +1 -1
- package/dist/utils/SignatureErc2098.d.ts +11 -4
- package/dist/utils/SignatureErc2098.d.ts.map +1 -1
- package/dist/utils/SignatureErc2098.js +23 -3
- package/dist/utils/SignatureErc2098.js.map +1 -1
- package/dist/utils/TypedData.d.ts +2 -14
- package/dist/utils/TypedData.d.ts.map +1 -1
- package/dist/utils/TypedData.js +2 -27
- package/dist/utils/TypedData.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/arcTestnet.ts +11 -8
- package/src/chains/definitions/hashKeyChain.ts +4 -4
- package/src/chains/definitions/hashkeyChainTestnet.ts +4 -4
- package/src/chains/definitions/hyperEvm.ts +3 -0
- package/src/chains/definitions/hyperliquidEvmTestnet.ts +3 -0
- package/src/chains/definitions/molibra.ts +14 -0
- package/src/chains/definitions/monad.ts +1 -1
- package/src/chains/definitions/monadTestnet.ts +1 -1
- package/src/chains/definitions/qmsTestnet.ts +23 -0
- package/src/chains/definitions/rwaChain.ts +46 -0
- package/src/chains/definitions/rwaChainSepolia.ts +47 -0
- package/src/chains/definitions/tempo.ts +5 -1
- package/src/chains/definitions/tempoDevnet.ts +7 -0
- package/src/chains/definitions/tempoModerato.ts +6 -2
- package/src/chains/definitions/turkchain.ts +23 -0
- package/src/chains/definitions/valuechain.ts +20 -0
- package/src/chains/definitions/valuechainTestnet.ts +21 -0
- package/src/chains/definitions/zksync.ts +1 -1
- package/src/chains/definitions/zksyncEraTestnet.ts +25 -0
- package/src/chains/index.ts +8 -0
- package/src/core/Chain.ts +67 -2
- package/src/core/Client.ts +110 -10
- package/src/core/NonceManager.ts +17 -1
- package/src/core/RpcError.ts +11 -5
- package/src/core/actions/block/watch.ts +56 -85
- package/src/core/actions/block/watchHeaders.ts +13 -74
- package/src/core/actions/block/watchNumber.ts +26 -84
- package/src/core/actions/call.ts +8 -7
- package/src/core/actions/contract/watchEvent.ts +3 -2
- package/src/core/actions/ens/getAddress.ts +11 -3
- package/src/core/actions/ens/internal/avatar.ts +29 -8
- package/src/core/actions/ens/internal/batchGateway.ts +61 -22
- package/src/core/actions/event/createFilter.ts +4 -11
- package/src/core/actions/event/getLogs.ts +5 -12
- package/src/core/actions/event/internal.ts +60 -0
- package/src/core/actions/event/watch.ts +96 -112
- package/src/core/actions/filter/getChanges.ts +5 -3
- package/src/core/actions/filter/getLogs.ts +5 -4
- package/src/core/actions/internal/ccip.ts +73 -23
- package/src/core/actions/internal/transactionRequest.ts +2 -2
- package/src/core/actions/transaction/fill.ts +4 -0
- package/src/core/actions/transaction/getConfirmations.ts +11 -1
- package/src/core/actions/transaction/prepare.ts +80 -23
- package/src/core/actions/transaction/send.ts +8 -3
- package/src/core/actions/transaction/sendSync.ts +80 -12
- package/src/core/actions/transaction/waitForReceipt.ts +235 -35
- package/src/core/actions/transaction/watchPending.ts +12 -75
- package/src/core/actions/wallet/sendCalls.ts +1 -1
- package/src/core/actions/wallet/waitForCallsStatus.ts +25 -1
- package/src/core/internal/asyncIterator.ts +87 -0
- package/src/core/internal/promise.ts +7 -1
- package/src/core/internal/transport.ts +61 -23
- package/src/core/internal/wait.ts +8 -4
- package/src/core/transports/fallback.ts +28 -0
- package/src/core/transports/http.ts +23 -5
- package/src/erc4337/actions/userOperation/prepare.ts +4 -3
- package/src/internal/inference.ts +7 -3
- package/src/op-stack/Withdrawal.ts +24 -0
- package/src/op-stack/abis.ts +52 -0
- package/src/op-stack/actions/l1/getTimeToFinalize.ts +108 -21
- package/src/op-stack/actions/l1/getTimeToProve.ts +23 -4
- package/src/op-stack/actions/l1/getWithdrawalStatus.ts +19 -5
- package/src/op-stack/actions/l1/internal.ts +36 -1
- package/src/op-stack/actions/l1/waitToProve.ts +20 -4
- package/src/tempo/Abis.ts +662 -49
- package/src/tempo/Account.ts +644 -210
- package/src/tempo/Addresses.ts +6 -4
- package/src/tempo/Capabilities.ts +31 -21
- package/src/tempo/Decorator.ts +161 -82
- package/src/tempo/ExecutionError.ts +130 -5
- package/src/tempo/Expiry.ts +13 -0
- package/src/tempo/Gateway.ts +487 -0
- package/src/tempo/GatewayDecorator.ts +890 -0
- package/src/tempo/Hardfork.ts +16 -2
- package/src/tempo/KeyAuthorizationManager.ts +53 -31
- package/src/tempo/Relay.ts +137 -16
- package/src/tempo/Selectors.ts +22 -2
- package/src/tempo/Transport.ts +52 -22
- package/src/tempo/{multisig → accounts}/Config.ts +55 -37
- package/src/tempo/{multisig → accounts}/Operation.ts +28 -28
- package/src/tempo/{multisig → accounts}/Signature.ts +5 -3
- package/src/tempo/actions/accessKey/authorize.ts +16 -9
- package/src/tempo/actions/accessKey/authorizeSync.ts +4 -1
- package/src/tempo/actions/accessKey/burnWitness.ts +4 -1
- package/src/tempo/actions/accessKey/burnWitnessSync.ts +4 -1
- package/src/tempo/actions/accessKey/errors.ts +461 -0
- package/src/tempo/actions/accessKey/getMetadata.ts +8 -12
- package/src/tempo/actions/accessKey/getRemainingLimit.ts +5 -2
- package/src/tempo/actions/accessKey/index.ts +18 -2
- package/src/tempo/actions/accessKey/internal.ts +8 -0
- package/src/tempo/actions/accessKey/isWitnessBurned.ts +5 -2
- package/src/tempo/actions/accessKey/prepareAuthorization.ts +16 -23
- package/src/tempo/actions/accessKey/revoke.ts +4 -1
- package/src/tempo/actions/accessKey/revokeSync.ts +4 -1
- package/src/tempo/actions/accessKey/saveAuthorization.ts +51 -0
- package/src/tempo/actions/accessKey/signAuthorization.ts +76 -54
- package/src/tempo/actions/accessKey/updateLimit.ts +4 -1
- package/src/tempo/actions/accessKey/updateLimitSync.ts +4 -1
- package/src/tempo/actions/accessKey/verifyHash.ts +16 -7
- package/src/tempo/actions/accounts/deriveAccount.ts +89 -0
- package/src/tempo/actions/{multisig → accounts}/getConfig.ts +7 -7
- package/src/tempo/actions/{multisig → accounts}/getConfigCommitment.ts +7 -8
- package/src/tempo/actions/{multisig → accounts}/getOperation.ts +6 -6
- package/src/tempo/actions/{multisig → accounts}/index.ts +4 -0
- package/src/tempo/actions/{multisig → accounts}/updateConfig.ts +36 -34
- package/src/tempo/actions/{multisig → accounts}/updateConfigSync.ts +7 -7
- package/src/tempo/actions/accounts/upgrade.ts +150 -0
- package/src/tempo/actions/accounts/upgradeSync.ts +91 -0
- package/src/tempo/actions/accounts/verifyHash.ts +89 -0
- package/src/tempo/actions/ai/embed.ts +58 -0
- package/src/tempo/actions/ai/generateText.ts +105 -0
- package/src/tempo/actions/ai/index.ts +4 -0
- package/src/tempo/actions/ai/streamText.ts +90 -0
- package/src/tempo/actions/amm/burn.ts +4 -1
- package/src/tempo/actions/amm/burnSync.ts +4 -1
- package/src/tempo/actions/amm/errors.ts +96 -0
- package/src/tempo/actions/amm/getLiquidityBalance.ts +5 -2
- package/src/tempo/actions/amm/getPool.ts +5 -2
- package/src/tempo/actions/amm/index.ts +5 -0
- package/src/tempo/actions/amm/mint.ts +4 -1
- package/src/tempo/actions/amm/mintSync.ts +4 -1
- package/src/tempo/actions/amm/rebalanceSwap.ts +4 -1
- package/src/tempo/actions/amm/rebalanceSwapSync.ts +4 -1
- package/src/tempo/actions/bucket/delete.ts +48 -0
- package/src/tempo/actions/bucket/get.ts +71 -0
- package/src/tempo/actions/bucket/head.ts +47 -0
- package/src/tempo/actions/bucket/index.ts +7 -0
- package/src/tempo/actions/bucket/list.ts +57 -0
- package/src/tempo/actions/bucket/put.ts +85 -0
- package/src/tempo/actions/bucket/types.ts +19 -0
- package/src/tempo/actions/channel/close.ts +4 -1
- package/src/tempo/actions/channel/closeSync.ts +4 -1
- package/src/tempo/actions/channel/errors.ts +216 -0
- package/src/tempo/actions/channel/getStates.ts +5 -2
- package/src/tempo/actions/channel/index.ts +11 -0
- package/src/tempo/actions/channel/open.ts +4 -1
- package/src/tempo/actions/channel/openSync.ts +4 -1
- package/src/tempo/actions/channel/requestClose.ts +4 -1
- package/src/tempo/actions/channel/requestCloseSync.ts +4 -1
- package/src/tempo/actions/channel/settle.ts +4 -1
- package/src/tempo/actions/channel/settleSync.ts +4 -1
- package/src/tempo/actions/channel/topUp.ts +4 -1
- package/src/tempo/actions/channel/topUpSync.ts +4 -1
- package/src/tempo/actions/channel/withdraw.ts +4 -1
- package/src/tempo/actions/channel/withdrawSync.ts +4 -1
- package/src/tempo/actions/compute/create.ts +165 -0
- package/src/tempo/actions/compute/exec.ts +72 -0
- package/src/tempo/actions/compute/index.ts +14 -0
- package/src/tempo/actions/compute/list.ts +53 -0
- package/src/tempo/actions/compute/logs.ts +80 -0
- package/src/tempo/actions/compute/read.ts +78 -0
- package/src/tempo/actions/compute/renew.ts +53 -0
- package/src/tempo/actions/compute/snapshot.ts +56 -0
- package/src/tempo/actions/compute/spawn.ts +63 -0
- package/src/tempo/actions/compute/status.ts +53 -0
- package/src/tempo/actions/compute/stream.ts +69 -0
- package/src/tempo/actions/compute/terminate.ts +55 -0
- package/src/tempo/actions/compute/types.ts +35 -0
- package/src/tempo/actions/compute/write.ts +78 -0
- package/src/tempo/actions/dex/buy.ts +4 -1
- package/src/tempo/actions/dex/buySync.ts +4 -1
- package/src/tempo/actions/dex/cancel.ts +4 -1
- package/src/tempo/actions/dex/cancelStale.ts +4 -1
- package/src/tempo/actions/dex/cancelStaleSync.ts +4 -1
- package/src/tempo/actions/dex/cancelSync.ts +4 -1
- package/src/tempo/actions/dex/createPair.ts +4 -1
- package/src/tempo/actions/dex/createPairSync.ts +4 -1
- package/src/tempo/actions/dex/errors.ts +538 -0
- package/src/tempo/actions/dex/getBalance.ts +5 -2
- package/src/tempo/actions/dex/getBuyQuote.ts +5 -2
- package/src/tempo/actions/dex/getOrder.ts +5 -2
- package/src/tempo/actions/dex/getOrderbook.ts +5 -2
- package/src/tempo/actions/dex/getSellQuote.ts +5 -2
- package/src/tempo/actions/dex/getTickLevel.ts +5 -2
- package/src/tempo/actions/dex/index.ts +23 -0
- package/src/tempo/actions/dex/place.ts +4 -1
- package/src/tempo/actions/dex/placeFlip.ts +4 -1
- package/src/tempo/actions/dex/placeFlipSync.ts +4 -1
- package/src/tempo/actions/dex/placeSync.ts +4 -1
- package/src/tempo/actions/dex/sell.ts +4 -1
- package/src/tempo/actions/dex/sellSync.ts +4 -1
- package/src/tempo/actions/dex/withdraw.ts +4 -1
- package/src/tempo/actions/dex/withdrawSync.ts +4 -1
- package/src/tempo/actions/earn/deployment.ts +30 -16
- package/src/tempo/actions/earn.ts +45 -15
- package/src/tempo/actions/fee/errors.ts +102 -0
- package/src/tempo/actions/fee/getUserToken.ts +5 -2
- package/src/tempo/actions/fee/getValidatorToken.ts +5 -2
- package/src/tempo/actions/fee/index.ts +5 -0
- package/src/tempo/actions/fee/setUserToken.ts +4 -1
- package/src/tempo/actions/fee/setUserTokenSync.ts +4 -1
- package/src/tempo/actions/fee/setValidatorToken.ts +4 -1
- package/src/tempo/actions/fee/setValidatorTokenSync.ts +4 -1
- package/src/tempo/actions/fee/validateToken.ts +1 -1
- package/src/tempo/actions/gateway/getCapabilities.ts +33 -0
- package/src/tempo/actions/gateway/index.ts +2 -0
- package/src/tempo/actions/index.ts +12 -3
- package/src/tempo/actions/kv/delete.ts +48 -0
- package/src/tempo/actions/kv/get.ts +47 -0
- package/src/tempo/actions/kv/index.ts +6 -0
- package/src/tempo/actions/kv/list.ts +58 -0
- package/src/tempo/actions/kv/set.ts +66 -0
- package/src/tempo/actions/kv/types.ts +15 -0
- package/src/tempo/actions/nonce/errors.ts +75 -0
- package/src/tempo/actions/nonce/get.ts +5 -2
- package/src/tempo/actions/nonce/index.ts +7 -0
- package/src/tempo/actions/policy/create.ts +4 -1
- package/src/tempo/actions/policy/createSync.ts +4 -1
- package/src/tempo/actions/policy/errors.ts +45 -0
- package/src/tempo/actions/policy/getData.ts +5 -2
- package/src/tempo/actions/policy/index.ts +5 -0
- package/src/tempo/actions/policy/isAuthorized.ts +5 -2
- package/src/tempo/actions/policy/modifyBlacklist.ts +4 -1
- package/src/tempo/actions/policy/modifyBlacklistSync.ts +4 -1
- package/src/tempo/actions/policy/modifyWhitelist.ts +4 -1
- package/src/tempo/actions/policy/modifyWhitelistSync.ts +4 -1
- package/src/tempo/actions/policy/setAdmin.ts +4 -1
- package/src/tempo/actions/policy/setAdminSync.ts +4 -1
- package/src/tempo/actions/propAmm.ts +31 -2
- package/src/tempo/actions/receivePolicy/burn.ts +4 -1
- package/src/tempo/actions/receivePolicy/burnSync.ts +4 -1
- package/src/tempo/actions/receivePolicy/claim.ts +4 -1
- package/src/tempo/actions/receivePolicy/claimSync.ts +4 -1
- package/src/tempo/actions/receivePolicy/get.ts +5 -2
- package/src/tempo/actions/receivePolicy/getBlockedBalance.ts +5 -2
- package/src/tempo/actions/receivePolicy/set.ts +6 -3
- package/src/tempo/actions/receivePolicy/setSync.ts +4 -1
- package/src/tempo/actions/receivePolicy/validate.ts +5 -2
- package/src/tempo/actions/token/approve.ts +4 -1
- package/src/tempo/actions/token/approveSync.ts +4 -1
- package/src/tempo/actions/token/burn.ts +4 -1
- package/src/tempo/actions/token/burnBlocked.ts +4 -1
- package/src/tempo/actions/token/burnBlockedSync.ts +4 -1
- package/src/tempo/actions/token/burnSync.ts +4 -1
- package/src/tempo/actions/token/changeTransferPolicy.ts +4 -1
- package/src/tempo/actions/token/changeTransferPolicySync.ts +4 -1
- package/src/tempo/actions/token/create.ts +4 -1
- package/src/tempo/actions/token/createSync.ts +4 -1
- package/src/tempo/actions/token/errors.ts +472 -0
- package/src/tempo/actions/token/getAllowance.ts +5 -2
- package/src/tempo/actions/token/getBalance.ts +5 -2
- package/src/tempo/actions/token/getMetadata.ts +5 -3
- package/src/tempo/actions/token/getRoleAdmin.ts +5 -2
- package/src/tempo/actions/token/getTotalSupply.ts +5 -2
- package/src/tempo/actions/token/grantRoles.ts +4 -1
- package/src/tempo/actions/token/grantRolesSync.ts +4 -1
- package/src/tempo/actions/token/hasRole.ts +5 -2
- package/src/tempo/actions/token/index.ts +15 -0
- package/src/tempo/actions/token/mint.ts +14 -5
- package/src/tempo/actions/token/mintSync.ts +4 -1
- package/src/tempo/actions/token/pause.ts +4 -1
- package/src/tempo/actions/token/pauseSync.ts +4 -1
- package/src/tempo/actions/token/prepareUpdateQuoteToken.ts +4 -1
- package/src/tempo/actions/token/prepareUpdateQuoteTokenSync.ts +4 -1
- package/src/tempo/actions/token/renounceRoles.ts +4 -1
- package/src/tempo/actions/token/renounceRolesSync.ts +4 -1
- package/src/tempo/actions/token/revokeRoles.ts +4 -1
- package/src/tempo/actions/token/revokeRolesSync.ts +4 -1
- package/src/tempo/actions/token/setRoleAdmin.ts +4 -1
- package/src/tempo/actions/token/setRoleAdminSync.ts +4 -1
- package/src/tempo/actions/token/setSupplyCap.ts +4 -1
- package/src/tempo/actions/token/setSupplyCapSync.ts +4 -1
- package/src/tempo/actions/token/transfer.ts +4 -1
- package/src/tempo/actions/token/transferSync.ts +4 -1
- package/src/tempo/actions/token/unpause.ts +4 -1
- package/src/tempo/actions/token/unpauseSync.ts +4 -1
- package/src/tempo/actions/token/updateQuoteToken.ts +4 -1
- package/src/tempo/actions/token/updateQuoteTokenSync.ts +4 -1
- package/src/tempo/actions/validator/add.ts +4 -1
- package/src/tempo/actions/validator/addSync.ts +4 -1
- package/src/tempo/actions/validator/changeOwner.ts +4 -1
- package/src/tempo/actions/validator/changeOwnerSync.ts +4 -1
- package/src/tempo/actions/validator/changeStatus.ts +4 -1
- package/src/tempo/actions/validator/changeStatusSync.ts +4 -1
- package/src/tempo/actions/validator/get.ts +5 -2
- package/src/tempo/actions/validator/getByIndex.ts +5 -2
- package/src/tempo/actions/validator/getCount.ts +5 -3
- package/src/tempo/actions/validator/getNextFullDkgCeremony.ts +5 -3
- package/src/tempo/actions/validator/getOwner.ts +5 -3
- package/src/tempo/actions/validator/list.ts +5 -3
- package/src/tempo/actions/validator/setNextFullDkgCeremony.ts +4 -1
- package/src/tempo/actions/validator/setNextFullDkgCeremonySync.ts +4 -1
- package/src/tempo/actions/validator/update.ts +4 -1
- package/src/tempo/actions/validator/updateSync.ts +4 -1
- package/src/tempo/actions/virtualAddress/getMasterAddress.ts +5 -3
- package/src/tempo/actions/virtualAddress/registerMaster.ts +4 -1
- package/src/tempo/actions/virtualAddress/registerMasterSync.ts +4 -1
- package/src/tempo/actions/zone/deposit.ts +4 -1
- package/src/tempo/actions/zone/depositSync.ts +4 -1
- package/src/tempo/actions/zone/encryptedDeposit.ts +7 -2
- package/src/tempo/actions/zone/encryptedDepositSync.ts +4 -1
- package/src/tempo/actions/zone/getWithdrawalFee.ts +5 -2
- package/src/tempo/actions/zone/requestVerifiableWithdrawal.ts +4 -1
- package/src/tempo/actions/zone/requestVerifiableWithdrawalSync.ts +4 -1
- package/src/tempo/actions/zone/requestWithdrawal.ts +4 -1
- package/src/tempo/actions/zone/requestWithdrawalSync.ts +4 -1
- package/src/tempo/chainConfig.ts +452 -161
- package/src/tempo/errors.ts +127 -1
- package/src/tempo/index.ts +27 -5
- package/src/tempo/internal/errors.ts +117 -0
- package/src/tempo/internal/ndjson.ts +50 -0
- package/src/tempo/internal/relay/{multisig.ts → accounts.ts} +223 -131
- package/src/tempo/internal/relay/autoSwap.ts +262 -0
- package/src/tempo/internal/relay/error.ts +7 -2
- package/src/tempo/internal/relay/feePayer.ts +465 -45
- package/src/tempo/internal/relay/feeToken.ts +24 -5
- package/src/tempo/internal/relay/keyAuthorization.ts +418 -0
- package/src/tempo/internal/relay/plugin.ts +20 -7
- package/src/tempo/internal/relay/request.ts +107 -8
- package/src/tempo/internal/relay/simulate.ts +163 -57
- package/src/tempo/internal/relay.ts +41 -2
- package/src/tempo/internal/replacement.ts +101 -0
- package/src/tempo/internal/resolveError.ts +173 -0
- package/src/tempo/internal/utils.ts +109 -5
- package/src/utils/Authorization.ts +15 -9
- package/src/utils/RpcClient.ts +107 -51
- package/src/utils/SignatureErc2098.ts +25 -7
- package/src/utils/TypedData.ts +4 -40
- package/src/version.ts +1 -1
- package/dist/tempo/actions/accessKey/isAdmin.d.ts +0 -78
- package/dist/tempo/actions/accessKey/isAdmin.d.ts.map +0 -1
- package/dist/tempo/actions/accessKey/isAdmin.js +0 -63
- package/dist/tempo/actions/accessKey/isAdmin.js.map +0 -1
- package/dist/tempo/actions/accessKey/watchAdminAuthorized.d.ts +0 -34
- package/dist/tempo/actions/accessKey/watchAdminAuthorized.d.ts.map +0 -1
- package/dist/tempo/actions/accessKey/watchAdminAuthorized.js +0 -35
- package/dist/tempo/actions/accessKey/watchAdminAuthorized.js.map +0 -1
- package/dist/tempo/actions/multisig/getConfig.d.ts.map +0 -1
- package/dist/tempo/actions/multisig/getConfig.js.map +0 -1
- package/dist/tempo/actions/multisig/getConfigCommitment.d.ts.map +0 -1
- package/dist/tempo/actions/multisig/getConfigCommitment.js.map +0 -1
- package/dist/tempo/actions/multisig/getOperation.js.map +0 -1
- package/dist/tempo/actions/multisig/index.d.ts.map +0 -1
- package/dist/tempo/actions/multisig/index.js.map +0 -1
- package/dist/tempo/actions/multisig/updateConfig.d.ts.map +0 -1
- package/dist/tempo/actions/multisig/updateConfig.js.map +0 -1
- package/dist/tempo/internal/relay/multisig.d.ts +0 -4
- package/dist/tempo/internal/relay/multisig.d.ts.map +0 -1
- package/dist/tempo/internal/relay/multisig.js.map +0 -1
- package/dist/tempo/multisig/Config.d.ts.map +0 -1
- package/dist/tempo/multisig/Config.js.map +0 -1
- package/dist/tempo/multisig/Signature.d.ts.map +0 -1
- package/dist/tempo/multisig/Signature.js +0 -9
- package/dist/tempo/multisig/Signature.js.map +0 -1
- package/src/tempo/actions/accessKey/isAdmin.ts +0 -92
- package/src/tempo/actions/accessKey/watchAdminAuthorized.ts +0 -56
|
@@ -2,8 +2,8 @@ import type { Address } from 'abitype'
|
|
|
2
2
|
import { AbiFunction, Address as Address_, Hash, Hex, RpcResponse } from 'ox'
|
|
3
3
|
import {
|
|
4
4
|
KeyAuthorization,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
AccountConfig,
|
|
6
|
+
AccountOperation,
|
|
7
7
|
Transaction as ox_Transaction,
|
|
8
8
|
SignatureEnvelope,
|
|
9
9
|
TxEnvelopeTempo,
|
|
@@ -12,26 +12,27 @@ import { getNumber as getBlockNumber } from '../../../core/actions/block/getNumb
|
|
|
12
12
|
import { create as createClient } from '../../../core/Client.js'
|
|
13
13
|
import * as Abis from '../../Abis.js'
|
|
14
14
|
import * as Addresses from '../../Addresses.js'
|
|
15
|
-
import { getConfigCommitment } from '../../actions/
|
|
16
|
-
import * as ConfigStore from '../../
|
|
17
|
-
import * as OperationStore from '../../
|
|
15
|
+
import { getConfigCommitment } from '../../actions/accounts/getConfigCommitment.js'
|
|
16
|
+
import * as ConfigStore from '../../accounts/Config.js'
|
|
17
|
+
import * as OperationStore from '../../accounts/Operation.js'
|
|
18
18
|
import type * as Relay from '../../Relay.js'
|
|
19
19
|
import type * as Store from '../../Store.js'
|
|
20
20
|
import * as Plugin from './plugin.js'
|
|
21
|
+
import * as Utils from './utils.js'
|
|
21
22
|
|
|
22
23
|
const submissionTtl = 30_000
|
|
23
24
|
const pollingInterval = 100
|
|
24
25
|
|
|
25
|
-
/** Creates middleware for
|
|
26
|
+
/** Creates middleware for owner approval coordination. @internal */
|
|
26
27
|
export function create(
|
|
27
|
-
options: Relay.
|
|
28
|
-
): Relay.
|
|
28
|
+
options: Relay.accounts.Options,
|
|
29
|
+
): Relay.accounts.ReturnType {
|
|
29
30
|
if (!options.store.compareAndSet)
|
|
30
31
|
throw new RpcResponse.InvalidParamsError({
|
|
31
32
|
message:
|
|
32
|
-
'
|
|
33
|
+
'Account coordination requires a store with atomic `compareAndSet`.',
|
|
33
34
|
})
|
|
34
|
-
return Plugin.
|
|
35
|
+
return Plugin.accounts({
|
|
35
36
|
async handleRequest(context, forward) {
|
|
36
37
|
const { request, options: requestOptions_ } = context
|
|
37
38
|
const requestOptions = await resolveRequestOptions({
|
|
@@ -47,9 +48,9 @@ export function create(
|
|
|
47
48
|
}
|
|
48
49
|
const client = createClient({
|
|
49
50
|
transport: {
|
|
50
|
-
key: '
|
|
51
|
-
name: '
|
|
52
|
-
type: '
|
|
51
|
+
key: 'accounts-forward',
|
|
52
|
+
name: 'Accounts Forwarding',
|
|
53
|
+
type: 'accounts-forward',
|
|
53
54
|
setup: () => ({
|
|
54
55
|
request: ((
|
|
55
56
|
request: Relay.handleRequest.Request,
|
|
@@ -62,7 +63,7 @@ export function create(
|
|
|
62
63
|
},
|
|
63
64
|
})
|
|
64
65
|
|
|
65
|
-
if (request.method === '
|
|
66
|
+
if (request.method === 'account_getConfig') {
|
|
66
67
|
const value = request.params?.[0]
|
|
67
68
|
const address =
|
|
68
69
|
value && typeof value === 'object' && 'address' in value
|
|
@@ -74,33 +75,59 @@ export function create(
|
|
|
74
75
|
Hex.toBigInt(address) === 0n
|
|
75
76
|
)
|
|
76
77
|
throw new RpcResponse.InvalidParamsError({
|
|
77
|
-
message: 'Expected a
|
|
78
|
+
message: 'Expected a configurable account address.',
|
|
78
79
|
})
|
|
79
|
-
const
|
|
80
|
+
const chainId = requestOptions?.chainId
|
|
81
|
+
if (chainId === undefined)
|
|
82
|
+
throw new RpcResponse.InvalidParamsError({
|
|
83
|
+
message: 'A chain ID is required to resolve the downstream client.',
|
|
84
|
+
})
|
|
85
|
+
// Surface a downstream failure as its RPC error, not as a reverted read.
|
|
80
86
|
const commitment = await getConfigCommitment(client, {
|
|
81
87
|
account: address,
|
|
82
|
-
|
|
88
|
+
}).catch((error) => {
|
|
89
|
+
throw Utils.toRpcError(error)
|
|
83
90
|
})
|
|
84
91
|
const config = await ConfigStore.read(options.store, {
|
|
85
92
|
address,
|
|
93
|
+
chainId,
|
|
94
|
+
commitment,
|
|
95
|
+
})
|
|
96
|
+
if (config) return AccountConfig.toRpc(config)
|
|
97
|
+
const resolved = await options.resolveConfig?.({
|
|
98
|
+
address,
|
|
99
|
+
chainId,
|
|
86
100
|
commitment,
|
|
87
101
|
})
|
|
88
|
-
if (!
|
|
89
|
-
|
|
102
|
+
if (!resolved) return null
|
|
103
|
+
try {
|
|
104
|
+
await ConfigStore.write(options.store, {
|
|
105
|
+
address,
|
|
106
|
+
chainId,
|
|
107
|
+
commitment,
|
|
108
|
+
config: resolved,
|
|
109
|
+
})
|
|
110
|
+
} catch (error) {
|
|
111
|
+
// A resolved config that does not match the account and commitment is not served.
|
|
112
|
+
if (error instanceof ConfigStore.InvalidStoreValueError) return null
|
|
113
|
+
throw error
|
|
114
|
+
}
|
|
115
|
+
return AccountConfig.toRpc(AccountConfig.from(resolved))
|
|
90
116
|
}
|
|
91
117
|
|
|
92
|
-
if (request.method === '
|
|
118
|
+
if (request.method === 'account_getOperation') {
|
|
93
119
|
const hash = request.params?.[0]
|
|
94
120
|
if (typeof hash !== 'string' || !Hash.validate(hash))
|
|
95
121
|
throw new RpcResponse.InvalidParamsError({
|
|
96
|
-
message: 'Expected
|
|
122
|
+
message: 'Expected an account operation hash.',
|
|
97
123
|
})
|
|
98
124
|
const operation = await OperationStore.read(options.store, hash)
|
|
99
|
-
return operation ?
|
|
125
|
+
return operation ? AccountOperation.toRpc(operation) : null
|
|
100
126
|
}
|
|
101
127
|
|
|
102
|
-
if (request.method === '
|
|
128
|
+
if (request.method === 'account_approveKeyAuthorization')
|
|
103
129
|
return await approveKeyAuthorization({
|
|
130
|
+
chainId: requestOptions?.chainId,
|
|
104
131
|
client,
|
|
105
132
|
request,
|
|
106
133
|
store: options.store,
|
|
@@ -139,7 +166,7 @@ export function create(
|
|
|
139
166
|
: operation
|
|
140
167
|
return {
|
|
141
168
|
...receipt,
|
|
142
|
-
|
|
169
|
+
operation: AccountOperation.toRpc(success),
|
|
143
170
|
}
|
|
144
171
|
}
|
|
145
172
|
if (operation.status === 'pending')
|
|
@@ -168,15 +195,15 @@ export function create(
|
|
|
168
195
|
: operation
|
|
169
196
|
return {
|
|
170
197
|
...transaction,
|
|
171
|
-
|
|
198
|
+
operation: AccountOperation.toRpc(success),
|
|
172
199
|
}
|
|
173
200
|
}
|
|
174
201
|
|
|
175
202
|
if (
|
|
176
203
|
request.method !== 'eth_sendRawTransaction' &&
|
|
177
204
|
request.method !== 'eth_sendRawTransactionSync' &&
|
|
178
|
-
request.method !== '
|
|
179
|
-
request.method !== '
|
|
205
|
+
request.method !== 'account_approveRawTransaction' &&
|
|
206
|
+
request.method !== 'account_approveRawTransactionSync'
|
|
180
207
|
)
|
|
181
208
|
return forward()
|
|
182
209
|
|
|
@@ -187,7 +214,8 @@ export function create(
|
|
|
187
214
|
if (!isSerializedTempoTransaction(serialized)) {
|
|
188
215
|
if (standard) return forward()
|
|
189
216
|
throw new RpcResponse.InvalidParamsError({
|
|
190
|
-
message:
|
|
217
|
+
message:
|
|
218
|
+
'Expected a serialized Tempo configurable account transaction.',
|
|
191
219
|
})
|
|
192
220
|
}
|
|
193
221
|
|
|
@@ -220,14 +248,22 @@ async function submit(options: submit.Options) {
|
|
|
220
248
|
}
|
|
221
249
|
})()
|
|
222
250
|
const signature = transaction?.signature
|
|
223
|
-
if (!transaction || signature?.type !== '
|
|
251
|
+
if (!transaction || signature?.type !== 'configurable') {
|
|
224
252
|
if (
|
|
225
253
|
options.method === 'eth_sendRawTransaction' ||
|
|
226
254
|
options.method === 'eth_sendRawTransactionSync'
|
|
227
|
-
)
|
|
228
|
-
|
|
255
|
+
) {
|
|
256
|
+
const result = await options.next(options.request, options.requestOptions)
|
|
257
|
+
// Cache after the node accepts the transaction, so only validly signed upgrades are cached.
|
|
258
|
+
// Caching is best-effort: a store failure must not mask an accepted upgrade.
|
|
259
|
+
if (transaction)
|
|
260
|
+
await cacheUpgradeConfig({ store: options.store, transaction }).catch(
|
|
261
|
+
() => {},
|
|
262
|
+
)
|
|
263
|
+
return result
|
|
264
|
+
}
|
|
229
265
|
throw new RpcResponse.InvalidParamsError({
|
|
230
|
-
message: 'Expected a
|
|
266
|
+
message: 'Expected a configurable account transaction signature.',
|
|
231
267
|
})
|
|
232
268
|
}
|
|
233
269
|
|
|
@@ -238,14 +274,14 @@ async function submit(options: submit.Options) {
|
|
|
238
274
|
options.serialized.startsWith(TxEnvelopeTempo.feePayerMagic),
|
|
239
275
|
)
|
|
240
276
|
const blockNumber = await getBlockNumber(options.client, { cacheTime: 0 })
|
|
241
|
-
const config =
|
|
277
|
+
const config = AccountConfig.from(signature.config)
|
|
242
278
|
const configCommitment = await validateConfig({
|
|
243
279
|
account: signature.account,
|
|
244
280
|
blockNumber,
|
|
245
281
|
client: options.client,
|
|
246
282
|
config,
|
|
247
283
|
})
|
|
248
|
-
const operationHash =
|
|
284
|
+
const operationHash = AccountOperation.getHash({
|
|
249
285
|
account: signature.account,
|
|
250
286
|
config,
|
|
251
287
|
transaction: serializedUnsigned,
|
|
@@ -256,7 +292,7 @@ async function submit(options: submit.Options) {
|
|
|
256
292
|
)
|
|
257
293
|
if (incoming.length === 0)
|
|
258
294
|
throw new RpcResponse.InvalidParamsError({
|
|
259
|
-
message: 'A
|
|
295
|
+
message: 'A owner approval envelope must include a signature.',
|
|
260
296
|
})
|
|
261
297
|
const now = Date.now()
|
|
262
298
|
const expiredSubmissionIds = new Set<Hex.Hex>()
|
|
@@ -285,7 +321,7 @@ async function submit(options: submit.Options) {
|
|
|
285
321
|
hash: operationHash,
|
|
286
322
|
approvals: [...(existingApprovals?.approvals ?? []), ...incoming],
|
|
287
323
|
})
|
|
288
|
-
return
|
|
324
|
+
return AccountOperation.from({
|
|
289
325
|
account: signature.account,
|
|
290
326
|
approvals: approvals.approvals,
|
|
291
327
|
config,
|
|
@@ -316,6 +352,7 @@ async function submit(options: submit.Options) {
|
|
|
316
352
|
|
|
317
353
|
await ConfigStore.write(options.store, {
|
|
318
354
|
address: signature.account,
|
|
355
|
+
chainId: transaction.chainId,
|
|
319
356
|
commitment: configCommitment,
|
|
320
357
|
config,
|
|
321
358
|
})
|
|
@@ -339,7 +376,7 @@ async function submit(options: submit.Options) {
|
|
|
339
376
|
const timeout = options.request.params?.[1]
|
|
340
377
|
const synchronous =
|
|
341
378
|
options.method === 'eth_sendRawTransactionSync' ||
|
|
342
|
-
options.method === '
|
|
379
|
+
options.method === 'account_approveRawTransactionSync'
|
|
343
380
|
const leaseTtl =
|
|
344
381
|
synchronous &&
|
|
345
382
|
typeof timeout === 'number' &&
|
|
@@ -358,7 +395,7 @@ async function submit(options: submit.Options) {
|
|
|
358
395
|
return current
|
|
359
396
|
if (current.weight < current.threshold) return current
|
|
360
397
|
const now = Date.now()
|
|
361
|
-
return
|
|
398
|
+
return AccountOperation.from({
|
|
362
399
|
...current,
|
|
363
400
|
expiresAt: Math.min(now + leaseTtl, Number.MAX_SAFE_INTEGER),
|
|
364
401
|
status: 'submitting',
|
|
@@ -392,7 +429,7 @@ async function submit(options: submit.Options) {
|
|
|
392
429
|
hash: claim.hash,
|
|
393
430
|
approvals: claim.approvals,
|
|
394
431
|
})
|
|
395
|
-
const final =
|
|
432
|
+
const final = AccountOperation.serializeTransaction(claim, {
|
|
396
433
|
approvals: finalApprovals.selectedApprovals,
|
|
397
434
|
})
|
|
398
435
|
const transactionHash = TxEnvelopeTempo.hash(
|
|
@@ -431,7 +468,7 @@ async function submit(options: submit.Options) {
|
|
|
431
468
|
{
|
|
432
469
|
method:
|
|
433
470
|
options.method === 'eth_sendRawTransaction' ||
|
|
434
|
-
options.method === '
|
|
471
|
+
options.method === 'account_approveRawTransaction'
|
|
435
472
|
? 'eth_sendRawTransaction'
|
|
436
473
|
: 'eth_sendRawTransactionSync',
|
|
437
474
|
params: [final, ...(options.request.params?.slice(1) ?? [])],
|
|
@@ -488,7 +525,7 @@ async function submit(options: submit.Options) {
|
|
|
488
525
|
)
|
|
489
526
|
throw new OperationStore.InvalidStoreValueError()
|
|
490
527
|
const { expiresAt: _, submissionId: __, ...operation } = current
|
|
491
|
-
return
|
|
528
|
+
return AccountOperation.from({
|
|
492
529
|
...operation,
|
|
493
530
|
status: 'success',
|
|
494
531
|
transactionHash,
|
|
@@ -504,7 +541,7 @@ async function submit(options: submit.Options) {
|
|
|
504
541
|
result &&
|
|
505
542
|
typeof result === 'object'
|
|
506
543
|
)
|
|
507
|
-
return { ...result,
|
|
544
|
+
return { ...result, operation: AccountOperation.toRpc(success) }
|
|
508
545
|
return await submittedResult(options, success)
|
|
509
546
|
}
|
|
510
547
|
|
|
@@ -517,8 +554,8 @@ declare namespace submit {
|
|
|
517
554
|
method:
|
|
518
555
|
| 'eth_sendRawTransaction'
|
|
519
556
|
| 'eth_sendRawTransactionSync'
|
|
520
|
-
| '
|
|
521
|
-
| '
|
|
557
|
+
| 'account_approveRawTransaction'
|
|
558
|
+
| 'account_approveRawTransactionSync'
|
|
522
559
|
/** Downstream RPC request handler. */
|
|
523
560
|
next: Relay.handleRequest.Handler
|
|
524
561
|
/** Original RPC request. */
|
|
@@ -527,12 +564,12 @@ declare namespace submit {
|
|
|
527
564
|
requestOptions?: Relay.handleRequest.RequestOptions | undefined
|
|
528
565
|
/** Serialized Tempo transaction. */
|
|
529
566
|
serialized: Hex.Hex
|
|
530
|
-
/** Shared
|
|
567
|
+
/** Shared account store. */
|
|
531
568
|
store: Store.Atomic
|
|
532
569
|
}
|
|
533
570
|
}
|
|
534
571
|
|
|
535
|
-
/** Collects approvals for a
|
|
572
|
+
/** Collects approvals for a configurable account key authorization. @internal */
|
|
536
573
|
// biome-ignore lint/correctness/noUnusedVariables: declaration merge
|
|
537
574
|
async function approveKeyAuthorization(
|
|
538
575
|
options: approveKeyAuthorization.Options,
|
|
@@ -540,7 +577,7 @@ async function approveKeyAuthorization(
|
|
|
540
577
|
const value = options.request.params?.[0]
|
|
541
578
|
if (!value || typeof value !== 'object')
|
|
542
579
|
throw new RpcResponse.InvalidParamsError({
|
|
543
|
-
message: 'Expected a
|
|
580
|
+
message: 'Expected a configurable account key authorization approval.',
|
|
544
581
|
})
|
|
545
582
|
|
|
546
583
|
const approval = await (async () => {
|
|
@@ -552,14 +589,15 @@ async function approveKeyAuthorization(
|
|
|
552
589
|
)
|
|
553
590
|
} catch {
|
|
554
591
|
throw new RpcResponse.InvalidParamsError({
|
|
555
|
-
message: 'Invalid
|
|
592
|
+
message: 'Invalid configurable account key authorization.',
|
|
556
593
|
})
|
|
557
594
|
}
|
|
558
595
|
})()
|
|
559
596
|
const signature = authorization.signature
|
|
560
|
-
if (signature?.type !== '
|
|
597
|
+
if (signature?.type !== 'configurable')
|
|
561
598
|
throw new RpcResponse.InvalidParamsError({
|
|
562
|
-
message:
|
|
599
|
+
message:
|
|
600
|
+
'Expected a configurable account key authorization signature.',
|
|
563
601
|
})
|
|
564
602
|
if (
|
|
565
603
|
!authorization.account ||
|
|
@@ -567,14 +605,14 @@ async function approveKeyAuthorization(
|
|
|
567
605
|
)
|
|
568
606
|
throw new RpcResponse.InvalidParamsError({
|
|
569
607
|
message:
|
|
570
|
-
'
|
|
608
|
+
'Configurable account key authorization account does not match its signature.',
|
|
571
609
|
})
|
|
572
610
|
const { signature: _, ...unsigned } = authorization
|
|
573
611
|
const keyAuthorization = KeyAuthorization.serialize(
|
|
574
612
|
KeyAuthorization.from(unsigned),
|
|
575
613
|
)
|
|
576
|
-
const config =
|
|
577
|
-
const hash =
|
|
614
|
+
const config = AccountConfig.from(signature.config)
|
|
615
|
+
const hash = AccountOperation.getHash({
|
|
578
616
|
account: signature.account,
|
|
579
617
|
config,
|
|
580
618
|
keyAuthorization,
|
|
@@ -594,12 +632,13 @@ async function approveKeyAuthorization(
|
|
|
594
632
|
if ('hash' in value && 'signature' in value) {
|
|
595
633
|
if (typeof value.hash !== 'string' || !Hash.validate(value.hash))
|
|
596
634
|
throw new RpcResponse.InvalidParamsError({
|
|
597
|
-
message: 'Expected
|
|
635
|
+
message: 'Expected an account operation hash.',
|
|
598
636
|
})
|
|
599
637
|
const operation = await OperationStore.read(options.store, value.hash)
|
|
600
638
|
if (!operation || operation.type !== 'keyAuthorization')
|
|
601
639
|
throw new RpcResponse.InvalidParamsError({
|
|
602
|
-
message:
|
|
640
|
+
message:
|
|
641
|
+
'Configurable account key authorization operation was not found.',
|
|
603
642
|
})
|
|
604
643
|
if (operation.status === 'success') return { operation }
|
|
605
644
|
const signature = (() => {
|
|
@@ -609,7 +648,7 @@ async function approveKeyAuthorization(
|
|
|
609
648
|
)
|
|
610
649
|
} catch {
|
|
611
650
|
throw new RpcResponse.InvalidParamsError({
|
|
612
|
-
message: 'Invalid
|
|
651
|
+
message: 'Invalid owner signature.',
|
|
613
652
|
})
|
|
614
653
|
}
|
|
615
654
|
})()
|
|
@@ -623,16 +662,20 @@ async function approveKeyAuthorization(
|
|
|
623
662
|
}
|
|
624
663
|
|
|
625
664
|
throw new RpcResponse.InvalidParamsError({
|
|
626
|
-
message: 'Expected a
|
|
665
|
+
message: 'Expected a configurable account key authorization approval.',
|
|
627
666
|
})
|
|
628
667
|
})()
|
|
629
|
-
if ('operation' in approval)
|
|
630
|
-
return MultisigOperation.toRpc(approval.operation)
|
|
668
|
+
if ('operation' in approval) return AccountOperation.toRpc(approval.operation)
|
|
631
669
|
if (approval.approvals.length === 0)
|
|
632
670
|
throw new RpcResponse.InvalidParamsError({
|
|
633
|
-
message: 'A
|
|
671
|
+
message: 'A owner approval envelope must include a signature.',
|
|
634
672
|
})
|
|
635
673
|
|
|
674
|
+
const { chainId } = options
|
|
675
|
+
if (chainId === undefined)
|
|
676
|
+
throw new RpcResponse.InvalidParamsError({
|
|
677
|
+
message: 'A chain ID is required to resolve the downstream client.',
|
|
678
|
+
})
|
|
636
679
|
const blockNumber = await getBlockNumber(options.client, { cacheTime: 0 })
|
|
637
680
|
const commitment = await validateConfig({
|
|
638
681
|
account: approval.account,
|
|
@@ -651,8 +694,8 @@ async function approveKeyAuthorization(
|
|
|
651
694
|
if (
|
|
652
695
|
existing &&
|
|
653
696
|
(existing.account.toLowerCase() !== approval.account.toLowerCase() ||
|
|
654
|
-
|
|
655
|
-
|
|
697
|
+
AccountConfig.getCommitment(existing.config).toLowerCase() !==
|
|
698
|
+
AccountConfig.getCommitment(approval.config).toLowerCase() ||
|
|
656
699
|
existing.keyAuthorization.toLowerCase() !==
|
|
657
700
|
approval.keyAuthorization.toLowerCase())
|
|
658
701
|
)
|
|
@@ -696,10 +739,10 @@ async function approveKeyAuthorization(
|
|
|
696
739
|
weight: approvals.weight,
|
|
697
740
|
} as const
|
|
698
741
|
if (approvals.weight < approvals.threshold)
|
|
699
|
-
return
|
|
700
|
-
return
|
|
742
|
+
return AccountOperation.from({ ...pending, status: 'pending' })
|
|
743
|
+
return AccountOperation.from({
|
|
701
744
|
...pending,
|
|
702
|
-
keyAuthorization:
|
|
745
|
+
keyAuthorization: AccountOperation.serializeKeyAuthorization(
|
|
703
746
|
approval.keyAuthorization,
|
|
704
747
|
{
|
|
705
748
|
account: approval.account,
|
|
@@ -713,22 +756,25 @@ async function approveKeyAuthorization(
|
|
|
713
756
|
)
|
|
714
757
|
await ConfigStore.write(options.store, {
|
|
715
758
|
address: approval.account,
|
|
759
|
+
chainId,
|
|
716
760
|
commitment,
|
|
717
761
|
config: approval.config,
|
|
718
762
|
})
|
|
719
763
|
if (operation.type !== 'keyAuthorization')
|
|
720
764
|
throw new OperationStore.InvalidStoreValueError()
|
|
721
|
-
return
|
|
765
|
+
return AccountOperation.toRpc(operation)
|
|
722
766
|
}
|
|
723
767
|
|
|
724
768
|
declare namespace approveKeyAuthorization {
|
|
725
769
|
/** Options for {@link approveKeyAuthorization}. */
|
|
726
770
|
export type Options = {
|
|
771
|
+
/** Chain of `client`, whose commitment validates the config. */
|
|
772
|
+
chainId?: number | undefined
|
|
727
773
|
/** Client used to validate configs. */
|
|
728
774
|
client: ReturnType<typeof createClient>
|
|
729
775
|
/** Original RPC request. */
|
|
730
776
|
request: Relay.handleRequest.Request
|
|
731
|
-
/** Shared
|
|
777
|
+
/** Shared account store. */
|
|
732
778
|
store: Store.Atomic
|
|
733
779
|
}
|
|
734
780
|
}
|
|
@@ -748,34 +794,33 @@ function deserialize(serialized: Hex.Hex) {
|
|
|
748
794
|
function assertConfig(options: {
|
|
749
795
|
account: `0x${string}`
|
|
750
796
|
commitment: Hex.Hex
|
|
751
|
-
config:
|
|
797
|
+
config: AccountConfig.Config
|
|
752
798
|
}) {
|
|
753
799
|
const { account, commitment, config } = options
|
|
754
800
|
if (
|
|
755
801
|
config.version === 0n &&
|
|
756
|
-
|
|
757
|
-
factory: Addresses.nativeMultisigFactory,
|
|
758
|
-
}).toLowerCase() !== account.toLowerCase()
|
|
802
|
+
AccountConfig.getAddress(config).toLowerCase() !== account.toLowerCase()
|
|
759
803
|
)
|
|
760
804
|
throw new RpcResponse.InvalidParamsError({
|
|
761
|
-
message:
|
|
805
|
+
message:
|
|
806
|
+
'Initial account config does not match the configurable account.',
|
|
762
807
|
})
|
|
763
808
|
if (config.version === 0n && Hex.toBigInt(commitment) === 0n) return
|
|
764
809
|
if (
|
|
765
810
|
commitment.toLowerCase() !==
|
|
766
|
-
|
|
811
|
+
AccountConfig.getCommitment(config).toLowerCase()
|
|
767
812
|
)
|
|
768
813
|
throw new RpcResponse.InvalidParamsError({
|
|
769
|
-
message: `
|
|
814
|
+
message: `Account config does not match account ${account}.`,
|
|
770
815
|
})
|
|
771
816
|
}
|
|
772
817
|
|
|
773
|
-
/** Reads and validates a config commitment at one block. */
|
|
774
|
-
async function validateConfig(options: {
|
|
818
|
+
/** Reads and validates a config commitment at one block. @internal */
|
|
819
|
+
export async function validateConfig(options: {
|
|
775
820
|
account: `0x${string}`
|
|
776
821
|
blockNumber: bigint
|
|
777
822
|
client: ReturnType<typeof createClient>
|
|
778
|
-
config:
|
|
823
|
+
config: AccountConfig.Config
|
|
779
824
|
}) {
|
|
780
825
|
const { account, blockNumber, client, config } = options
|
|
781
826
|
const commitment = await getConfigCommitment(client, {
|
|
@@ -793,13 +838,16 @@ async function cacheNextConfigs(options: cacheNextConfigs.Options) {
|
|
|
793
838
|
for (const call of options.transaction.calls) {
|
|
794
839
|
if (
|
|
795
840
|
!call.to ||
|
|
796
|
-
!Address_.isEqual(call.to, Addresses.
|
|
841
|
+
!Address_.isEqual(call.to, Addresses.configurableAccount) ||
|
|
797
842
|
!call.data
|
|
798
843
|
)
|
|
799
844
|
continue
|
|
800
845
|
const decoded = (() => {
|
|
801
846
|
try {
|
|
802
|
-
const item = AbiFunction.fromAbi(
|
|
847
|
+
const item = AbiFunction.fromAbi(
|
|
848
|
+
Abis.configurableAccount,
|
|
849
|
+
'updateConfig',
|
|
850
|
+
)
|
|
803
851
|
if (!call.data.startsWith(AbiFunction.getSelector(item)))
|
|
804
852
|
return undefined
|
|
805
853
|
return {
|
|
@@ -814,25 +862,20 @@ async function cacheNextConfigs(options: cacheNextConfigs.Options) {
|
|
|
814
862
|
const [current, threshold, owners] = decoded.args
|
|
815
863
|
const suppliedConfig = (() => {
|
|
816
864
|
try {
|
|
817
|
-
return
|
|
865
|
+
return AccountConfig.from(current)
|
|
818
866
|
} catch {
|
|
819
867
|
return undefined
|
|
820
868
|
}
|
|
821
869
|
})()
|
|
822
870
|
if (
|
|
823
871
|
!suppliedConfig ||
|
|
824
|
-
|
|
825
|
-
|
|
872
|
+
AccountConfig.getCommitment(suppliedConfig).toLowerCase() !==
|
|
873
|
+
AccountConfig.getCommitment(currentConfig).toLowerCase()
|
|
826
874
|
)
|
|
827
875
|
continue
|
|
828
876
|
const config = (() => {
|
|
829
877
|
try {
|
|
830
|
-
return
|
|
831
|
-
owners,
|
|
832
|
-
salt: suppliedConfig.salt,
|
|
833
|
-
threshold,
|
|
834
|
-
version: suppliedConfig.version + 1n,
|
|
835
|
-
})
|
|
878
|
+
return AccountConfig.update(suppliedConfig, { owners, threshold })
|
|
836
879
|
} catch {
|
|
837
880
|
return undefined
|
|
838
881
|
}
|
|
@@ -840,7 +883,8 @@ async function cacheNextConfigs(options: cacheNextConfigs.Options) {
|
|
|
840
883
|
if (!config) continue
|
|
841
884
|
await ConfigStore.write(options.store, {
|
|
842
885
|
address: options.account,
|
|
843
|
-
|
|
886
|
+
chainId: options.transaction.chainId,
|
|
887
|
+
commitment: AccountConfig.getCommitment(config),
|
|
844
888
|
config,
|
|
845
889
|
})
|
|
846
890
|
currentConfig = config
|
|
@@ -850,25 +894,71 @@ async function cacheNextConfigs(options: cacheNextConfigs.Options) {
|
|
|
850
894
|
declare namespace cacheNextConfigs {
|
|
851
895
|
/** Parameters for {@link cacheNextConfigs}. */
|
|
852
896
|
export type Options = {
|
|
853
|
-
/** Root
|
|
897
|
+
/** Root configurable account. */
|
|
854
898
|
account: Address
|
|
855
899
|
/** Root config used to authorize the transaction. */
|
|
856
|
-
config:
|
|
857
|
-
/** Shared
|
|
858
|
-
store: Store.
|
|
900
|
+
config: AccountConfig.Config
|
|
901
|
+
/** Shared account store. */
|
|
902
|
+
store: Store.Atomic
|
|
859
903
|
/** Submitted transaction containing potential config updates. */
|
|
860
904
|
transaction: TxEnvelopeTempo.TxEnvelopeTempo
|
|
861
905
|
}
|
|
862
906
|
}
|
|
863
907
|
|
|
864
|
-
/**
|
|
865
|
-
|
|
866
|
-
|
|
908
|
+
/** Caches the config installed by a root-signed account upgrade. */
|
|
909
|
+
// biome-ignore lint/correctness/noUnusedVariables: declaration merge
|
|
910
|
+
async function cacheUpgradeConfig(options: cacheUpgradeConfig.Options) {
|
|
911
|
+
const { calls, chainId, from, signature } = options.transaction
|
|
912
|
+
if (
|
|
913
|
+
!from ||
|
|
914
|
+
!signature ||
|
|
915
|
+
signature.type === 'keychain' ||
|
|
916
|
+
signature.type === 'configurable'
|
|
917
|
+
)
|
|
918
|
+
return
|
|
919
|
+
const item = AbiFunction.fromAbi(Abis.configurableAccount, 'upgradeAccount')
|
|
920
|
+
// `upgradeAccount` may sit anywhere in a batch; a second one reverts.
|
|
921
|
+
const config = calls
|
|
922
|
+
.map((call) => {
|
|
923
|
+
if (!call.to || !call.data) return undefined
|
|
924
|
+
if (!Address_.isEqual(call.to, Addresses.configurableAccount))
|
|
925
|
+
return undefined
|
|
926
|
+
if (!call.data.startsWith(AbiFunction.getSelector(item))) return undefined
|
|
927
|
+
try {
|
|
928
|
+
const [threshold, owners] = AbiFunction.decodeData(item, call.data)
|
|
929
|
+
return AccountConfig.fromUpgrade(from, { owners, threshold })
|
|
930
|
+
} catch {
|
|
931
|
+
return undefined
|
|
932
|
+
}
|
|
933
|
+
})
|
|
934
|
+
.find((config) => config !== undefined)
|
|
935
|
+
if (!config) return
|
|
936
|
+
await ConfigStore.write(options.store, {
|
|
937
|
+
address: from,
|
|
938
|
+
chainId,
|
|
939
|
+
commitment: AccountConfig.getCommitment(config),
|
|
940
|
+
config,
|
|
941
|
+
})
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
declare namespace cacheUpgradeConfig {
|
|
945
|
+
/** Parameters for {@link cacheUpgradeConfig}. */
|
|
946
|
+
export type Options = {
|
|
947
|
+
/** Shared account store. */
|
|
948
|
+
store: Store.Atomic
|
|
949
|
+
/** Submitted transaction containing a potential account upgrade. */
|
|
950
|
+
transaction: TxEnvelopeTempo.TxEnvelopeTempo
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/** Validates primitive approvals and translates invalid input into an RPC error. @internal */
|
|
955
|
+
export async function selectApprovals(
|
|
956
|
+
options: AccountOperation.selectApprovals.Options,
|
|
867
957
|
) {
|
|
868
958
|
try {
|
|
869
|
-
return await
|
|
959
|
+
return await AccountOperation.selectApprovals(options)
|
|
870
960
|
} catch (error) {
|
|
871
|
-
if (error instanceof
|
|
961
|
+
if (error instanceof AccountOperation.InvalidApprovalError)
|
|
872
962
|
throw new RpcResponse.InvalidParamsError({ message: error.shortMessage })
|
|
873
963
|
throw error
|
|
874
964
|
}
|
|
@@ -877,15 +967,15 @@ async function selectApprovals(
|
|
|
877
967
|
/** Returns an existing successful operation through the requested send method. */
|
|
878
968
|
async function submittedResult(
|
|
879
969
|
options: submit.Options,
|
|
880
|
-
operation:
|
|
970
|
+
operation: AccountOperation.TransactionOperation,
|
|
881
971
|
) {
|
|
882
972
|
if (
|
|
883
973
|
options.method === 'eth_sendRawTransaction' ||
|
|
884
|
-
options.method === '
|
|
974
|
+
options.method === 'account_approveRawTransaction'
|
|
885
975
|
)
|
|
886
976
|
return operation.hash
|
|
887
|
-
if (options.method === '
|
|
888
|
-
return
|
|
977
|
+
if (options.method === 'account_approveRawTransactionSync')
|
|
978
|
+
return AccountOperation.toRpc(operation)
|
|
889
979
|
const timeout = options.request.params?.[1]
|
|
890
980
|
const deadline =
|
|
891
981
|
Date.now() +
|
|
@@ -899,9 +989,11 @@ async function submittedResult(
|
|
|
899
989
|
options.requestOptions,
|
|
900
990
|
)
|
|
901
991
|
if (receipt && typeof receipt === 'object')
|
|
902
|
-
return { ...receipt,
|
|
992
|
+
return { ...receipt, operation: AccountOperation.toRpc(operation) }
|
|
903
993
|
if (Date.now() >= deadline)
|
|
904
|
-
throw new Error(
|
|
994
|
+
throw new Error(
|
|
995
|
+
'Timed out while waiting for the configurable account transaction.',
|
|
996
|
+
)
|
|
905
997
|
await new Promise((resolve) => setTimeout(resolve, pollingInterval))
|
|
906
998
|
}
|
|
907
999
|
}
|
|
@@ -909,11 +1001,11 @@ async function submittedResult(
|
|
|
909
1001
|
/** Waits for the relay that owns a live submission lease. */
|
|
910
1002
|
async function submittingResult(
|
|
911
1003
|
options: submit.Options,
|
|
912
|
-
operation:
|
|
1004
|
+
operation: AccountOperation.TransactionOperation,
|
|
913
1005
|
): Promise<unknown> {
|
|
914
1006
|
if (
|
|
915
1007
|
options.method === 'eth_sendRawTransaction' ||
|
|
916
|
-
options.method === '
|
|
1008
|
+
options.method === 'account_approveRawTransaction'
|
|
917
1009
|
)
|
|
918
1010
|
return operation.hash
|
|
919
1011
|
const timeout = options.request.params?.[1]
|
|
@@ -936,15 +1028,15 @@ async function submittingResult(
|
|
|
936
1028
|
/** Returns a pending result for an operation that has not reached quorum. */
|
|
937
1029
|
function pendingResult(
|
|
938
1030
|
method: submit.Options['method'],
|
|
939
|
-
operation:
|
|
1031
|
+
operation: AccountOperation.TransactionOperation,
|
|
940
1032
|
) {
|
|
941
1033
|
if (
|
|
942
1034
|
method === 'eth_sendRawTransaction' ||
|
|
943
|
-
method === '
|
|
1035
|
+
method === 'account_approveRawTransaction'
|
|
944
1036
|
)
|
|
945
1037
|
return operation.hash
|
|
946
|
-
if (method === '
|
|
947
|
-
return
|
|
1038
|
+
if (method === 'account_approveRawTransactionSync')
|
|
1039
|
+
return AccountOperation.toRpc(operation)
|
|
948
1040
|
return {
|
|
949
1041
|
blockHash: null,
|
|
950
1042
|
blockNumber: null,
|
|
@@ -955,7 +1047,7 @@ function pendingResult(
|
|
|
955
1047
|
gasUsed: null,
|
|
956
1048
|
logs: [],
|
|
957
1049
|
logsBloom: null,
|
|
958
|
-
|
|
1050
|
+
operation: AccountOperation.toRpc(operation),
|
|
959
1051
|
status: 'pending',
|
|
960
1052
|
to: null,
|
|
961
1053
|
transactionHash: operation.hash,
|
|
@@ -967,7 +1059,7 @@ function pendingResult(
|
|
|
967
1059
|
/** Marks a transaction as successful after a lookup proves that it was submitted. */
|
|
968
1060
|
async function completeSubmission(
|
|
969
1061
|
store: Store.Atomic,
|
|
970
|
-
operation:
|
|
1062
|
+
operation: AccountOperation.TransactionOperation,
|
|
971
1063
|
transactionHash: Hex.Hex,
|
|
972
1064
|
) {
|
|
973
1065
|
if (operation.status !== 'submitting' || !operation.submissionId)
|
|
@@ -997,7 +1089,7 @@ async function completeSubmission(
|
|
|
997
1089
|
transactionHash: ___,
|
|
998
1090
|
...value
|
|
999
1091
|
} = current
|
|
1000
|
-
return
|
|
1092
|
+
return AccountOperation.from({
|
|
1001
1093
|
...value,
|
|
1002
1094
|
status: 'success',
|
|
1003
1095
|
transactionHash,
|
|
@@ -1006,7 +1098,7 @@ async function completeSubmission(
|
|
|
1006
1098
|
},
|
|
1007
1099
|
)
|
|
1008
1100
|
await removeSettledSubmission(store, operation.hash, operation.submissionId)
|
|
1009
|
-
return success as
|
|
1101
|
+
return success as AccountOperation.TransactionOperation
|
|
1010
1102
|
}
|
|
1011
1103
|
|
|
1012
1104
|
/** Releases a failed submission lease without discarding collected approvals. */
|
|
@@ -1024,7 +1116,7 @@ async function releaseSubmission(
|
|
|
1024
1116
|
)
|
|
1025
1117
|
return current
|
|
1026
1118
|
const { expiresAt: _, submissionId: __, ...operation } = current
|
|
1027
|
-
return
|
|
1119
|
+
return AccountOperation.from({
|
|
1028
1120
|
...operation,
|
|
1029
1121
|
status: 'pending',
|
|
1030
1122
|
updatedAt: Date.now(),
|
|
@@ -1062,11 +1154,11 @@ function mergeTransaction(existing: Hex.Hex | undefined, incoming: Hex.Hex) {
|
|
|
1062
1154
|
/** Returns a synthetic transaction while the downstream transaction is unavailable. */
|
|
1063
1155
|
async function toTransaction(
|
|
1064
1156
|
client: ReturnType<typeof createClient>,
|
|
1065
|
-
operation:
|
|
1157
|
+
operation: AccountOperation.TransactionOperation,
|
|
1066
1158
|
) {
|
|
1067
1159
|
const approvals = await (async () => {
|
|
1068
1160
|
if (operation.status !== 'pending')
|
|
1069
|
-
return await
|
|
1161
|
+
return await AccountOperation.selectApprovals({
|
|
1070
1162
|
account: operation.account,
|
|
1071
1163
|
approvals: operation.approvals,
|
|
1072
1164
|
config: operation.config,
|
|
@@ -1088,7 +1180,7 @@ async function toTransaction(
|
|
|
1088
1180
|
})()
|
|
1089
1181
|
const current =
|
|
1090
1182
|
operation.status === 'pending'
|
|
1091
|
-
?
|
|
1183
|
+
? AccountOperation.from({
|
|
1092
1184
|
...operation,
|
|
1093
1185
|
approvals: approvals.approvals,
|
|
1094
1186
|
signatureCount: approvals.signatureCount,
|
|
@@ -1096,7 +1188,7 @@ async function toTransaction(
|
|
|
1096
1188
|
weight: approvals.weight,
|
|
1097
1189
|
})
|
|
1098
1190
|
: operation
|
|
1099
|
-
const serialized =
|
|
1191
|
+
const serialized = AccountOperation.serializeTransaction(current, {
|
|
1100
1192
|
approvals: approvals.selectedApprovals,
|
|
1101
1193
|
})
|
|
1102
1194
|
const transaction = deserialize(serialized)
|
|
@@ -1112,14 +1204,14 @@ async function toTransaction(
|
|
|
1112
1204
|
} as Parameters<typeof ox_Transaction.toRpc>[0],
|
|
1113
1205
|
{ pending: true },
|
|
1114
1206
|
),
|
|
1115
|
-
|
|
1207
|
+
operation: AccountOperation.toRpc(current),
|
|
1116
1208
|
}
|
|
1117
1209
|
}
|
|
1118
1210
|
|
|
1119
1211
|
/** Returns the persisted transaction hash for a submitting or successful operation. */
|
|
1120
1212
|
async function getSubmittedTransactionHash(
|
|
1121
1213
|
store: Store.Store,
|
|
1122
|
-
operation:
|
|
1214
|
+
operation: AccountOperation.TransactionOperation,
|
|
1123
1215
|
) {
|
|
1124
1216
|
if (operation.status === 'success') return operation.transactionHash!
|
|
1125
1217
|
if (operation.status !== 'submitting' || !operation.submissionId)
|
|
@@ -1156,7 +1248,7 @@ function maintainSubmissionLease(
|
|
|
1156
1248
|
current.submissionId !== submissionId
|
|
1157
1249
|
)
|
|
1158
1250
|
return current
|
|
1159
|
-
return
|
|
1251
|
+
return AccountOperation.from({
|
|
1160
1252
|
...current,
|
|
1161
1253
|
expiresAt: Math.min(
|
|
1162
1254
|
Date.now() + leaseTtl,
|
|
@@ -1212,7 +1304,7 @@ function getTransactionHash(result: unknown): Hex.Hex {
|
|
|
1212
1304
|
Hash.validate(result.transactionHash)
|
|
1213
1305
|
)
|
|
1214
1306
|
return result.transactionHash
|
|
1215
|
-
throw new Error('Expected transaction hash in
|
|
1307
|
+
throw new Error('Expected transaction hash in account broadcast result.')
|
|
1216
1308
|
}
|
|
1217
1309
|
|
|
1218
1310
|
/** Resolves and validates the chain used by a handled request. */
|
|
@@ -1254,12 +1346,12 @@ async function resolveRequestChainId(
|
|
|
1254
1346
|
value && typeof value === 'object' && 'chainId' in value
|
|
1255
1347
|
? parseChainId(value.chainId)
|
|
1256
1348
|
: undefined
|
|
1257
|
-
const
|
|
1349
|
+
const chainId_operation = await (async () => {
|
|
1258
1350
|
if (
|
|
1259
1351
|
request.method === 'eth_sendRawTransaction' ||
|
|
1260
1352
|
request.method === 'eth_sendRawTransactionSync' ||
|
|
1261
|
-
request.method === '
|
|
1262
|
-
request.method === '
|
|
1353
|
+
request.method === 'account_approveRawTransaction' ||
|
|
1354
|
+
request.method === 'account_approveRawTransactionSync'
|
|
1263
1355
|
) {
|
|
1264
1356
|
if (!isSerializedTempoTransaction(value)) return undefined
|
|
1265
1357
|
try {
|
|
@@ -1273,7 +1365,7 @@ async function resolveRequestChainId(
|
|
|
1273
1365
|
}
|
|
1274
1366
|
|
|
1275
1367
|
if (
|
|
1276
|
-
request.method === '
|
|
1368
|
+
request.method === 'account_approveKeyAuthorization' &&
|
|
1277
1369
|
value &&
|
|
1278
1370
|
typeof value === 'object' &&
|
|
1279
1371
|
'keyAuthorization' in value
|
|
@@ -1296,7 +1388,7 @@ async function resolveRequestChainId(
|
|
|
1296
1388
|
)
|
|
1297
1389
|
return value
|
|
1298
1390
|
if (
|
|
1299
|
-
request.method === '
|
|
1391
|
+
request.method === 'account_approveKeyAuthorization' &&
|
|
1300
1392
|
value &&
|
|
1301
1393
|
typeof value === 'object' &&
|
|
1302
1394
|
'hash' in value
|
|
@@ -1320,13 +1412,13 @@ async function resolveRequestChainId(
|
|
|
1320
1412
|
|
|
1321
1413
|
if (
|
|
1322
1414
|
chainId_body !== undefined &&
|
|
1323
|
-
|
|
1324
|
-
chainId_body !==
|
|
1415
|
+
chainId_operation !== undefined &&
|
|
1416
|
+
chainId_body !== chainId_operation
|
|
1325
1417
|
)
|
|
1326
1418
|
throw new RpcResponse.InvalidParamsError({
|
|
1327
1419
|
message: 'Conflicting chain ids.',
|
|
1328
1420
|
})
|
|
1329
|
-
return chainId_body ??
|
|
1421
|
+
return chainId_body ?? chainId_operation
|
|
1330
1422
|
}
|
|
1331
1423
|
|
|
1332
1424
|
/** Parses a supported chain ID representation. */
|