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
package/src/tempo/chainConfig.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { TransactionEnvelope as ox_TxEnvelope } from 'ox'
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
|
+
Block as ox_Block,
|
|
4
5
|
Hash,
|
|
5
6
|
Hex,
|
|
6
7
|
TransactionRequest as ox_TransactionRequest,
|
|
7
8
|
} from 'ox'
|
|
8
9
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type
|
|
10
|
+
AccountConfig,
|
|
11
|
+
AccountOperation,
|
|
12
|
+
type AccountSimulation,
|
|
13
|
+
KeyAuthorization,
|
|
12
14
|
SignatureEnvelope,
|
|
13
15
|
TransactionReceipt as TransactionReceiptTempo,
|
|
14
16
|
TransactionRequest as TransactionRequestTempo,
|
|
@@ -18,31 +20,39 @@ import {
|
|
|
18
20
|
|
|
19
21
|
import type * as viem_Account from '../core/Account.js'
|
|
20
22
|
import * as Chain from '../core/Chain.js'
|
|
23
|
+
import type * as Client from '../core/Client.js'
|
|
21
24
|
import { getCode } from '../core/actions/address/getCode.js'
|
|
22
25
|
import { read } from '../core/actions/contract/read.js'
|
|
23
26
|
import { get as getTransaction } from '../core/actions/transaction/get.js'
|
|
24
27
|
import { verifyDefault, type verifyHash } from '../core/actions/verifyHash.js'
|
|
28
|
+
import * as ContractError from '../core/ContractError.js'
|
|
29
|
+
import { BaseError } from '../core/Errors.js'
|
|
25
30
|
import * as Contracts from '../core/internal/contracts.js'
|
|
26
31
|
import * as Abis from './Abis.js'
|
|
27
|
-
import type {
|
|
32
|
+
import type { ConfigurableAccount, RootAccount } from './Account.js'
|
|
28
33
|
import * as Addresses from './Addresses.js'
|
|
29
34
|
import type * as Capabilities from './Capabilities.js'
|
|
30
35
|
import type { Hardfork } from './Hardfork.js'
|
|
31
36
|
import type * as KeyAuthorizationManager from './KeyAuthorizationManager.js'
|
|
32
|
-
import { getConfig } from './actions/
|
|
33
|
-
import { parseApproval } from './
|
|
37
|
+
import { getConfig } from './actions/accounts/getConfig.js'
|
|
38
|
+
import { parseApproval } from './accounts/Signature.js'
|
|
39
|
+
import * as Expiry from './Expiry.js'
|
|
34
40
|
import * as Concurrent from './internal/concurrent.js'
|
|
41
|
+
import * as Replacement from './internal/replacement.js'
|
|
35
42
|
|
|
36
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Default distance, in seconds, of a generated expiring nonce `validBefore`.
|
|
45
|
+
* Stays under {@link Expiry.expiringNonceMax} to allow for clock skew.
|
|
46
|
+
*/
|
|
47
|
+
const expiringNonceExpiry = Expiry.expiringNonceMax - 30
|
|
37
48
|
const maxUint256 = 2n ** 256n - 1n
|
|
38
49
|
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
50
|
+
/**
|
|
51
|
+
* Intrinsic gas reserved for what `eth_fillTransaction` estimates without: the
|
|
52
|
+
* fee payer's signature and fee token, and, from T14, one cold access (2,600
|
|
53
|
+
* gas) of the fee payer's account. Earlier forks refund the unused gas.
|
|
54
|
+
*/
|
|
55
|
+
const feePayerGas = 5_000n
|
|
46
56
|
|
|
47
57
|
/** Tempo EOA default-delegation designator. */
|
|
48
58
|
const delegationCode = '0xef01007702c00000000000000000000000000000000000'
|
|
@@ -62,19 +72,19 @@ export type TransactionRequest = Omit<
|
|
|
62
72
|
* an Account to co-sign locally, or an external sponsor URL allowed by the relay.
|
|
63
73
|
*/
|
|
64
74
|
feePayer?: viem_Account.Account | boolean | string | undefined
|
|
65
|
-
/** Stored
|
|
75
|
+
/** Stored account operation to approve. */
|
|
66
76
|
hash?: Hex.Hex | undefined
|
|
67
|
-
/** Owner signing a
|
|
77
|
+
/** Owner signing an approval for a configurable account. */
|
|
68
78
|
owner?: RootAccount | undefined
|
|
69
|
-
/**
|
|
70
|
-
|
|
79
|
+
/** Configurable account, config, and modeled approvals for gas estimation. */
|
|
80
|
+
accountSimulation?: AccountSimulation.Spec | undefined
|
|
71
81
|
/**
|
|
72
82
|
* Nonce key for the 2D nonce system (TIP-1009). `'expiring'` selects an
|
|
73
83
|
* expiring nonce (resolved while the request is prepared); `'random'`
|
|
74
84
|
* selects a random key.
|
|
75
85
|
*/
|
|
76
86
|
nonceKey?: 'expiring' | 'random' | bigint | undefined
|
|
77
|
-
/** Owner approvals to combine into a
|
|
87
|
+
/** Owner approvals to combine into a configurable account signature (TIP-1107). */
|
|
78
88
|
signatures?: readonly SignatureEnvelope.Serialized[] | undefined
|
|
79
89
|
}
|
|
80
90
|
|
|
@@ -83,18 +93,18 @@ export type TransactionRequestRpc = TransactionRequestTempo.Rpc
|
|
|
83
93
|
|
|
84
94
|
/**
|
|
85
95
|
* A Tempo transaction envelope. Client-side request metadata (`feePayer`,
|
|
86
|
-
* `
|
|
96
|
+
* `accountSimulation`, `signatures`) rides the envelope structurally: the chain's
|
|
87
97
|
* `toEnvelope` hook threads it from the request, and the `serialize` hook
|
|
88
98
|
* (or the signing account) consumes it.
|
|
89
99
|
*/
|
|
90
100
|
export type Envelope = TxEnvelopeTempo.TxEnvelopeTempo & {
|
|
91
101
|
/** Fee payer of the transaction (TIP-1 gas sponsorship). */
|
|
92
102
|
feePayer?: viem_Account.Account | boolean | string | undefined
|
|
93
|
-
/** Owner signing a
|
|
103
|
+
/** Owner signing an approval for a configurable account. */
|
|
94
104
|
owner?: RootAccount | undefined
|
|
95
|
-
/**
|
|
96
|
-
|
|
97
|
-
/** Owner approvals to combine into a
|
|
105
|
+
/** Configurable account, config, and modeled approvals for gas estimation. */
|
|
106
|
+
accountSimulation?: AccountSimulation.Spec | undefined
|
|
107
|
+
/** Owner approvals to combine into a configurable account signature (TIP-1107). */
|
|
98
108
|
signatures?: readonly SignatureEnvelope.Serialized[] | undefined
|
|
99
109
|
}
|
|
100
110
|
|
|
@@ -110,6 +120,9 @@ export type ChainConfig = {
|
|
|
110
120
|
hardfork?: Hardfork | undefined
|
|
111
121
|
}
|
|
112
122
|
codecs: {
|
|
123
|
+
block: {
|
|
124
|
+
fromRpc: (rpc: BlockRpc) => Block
|
|
125
|
+
}
|
|
113
126
|
transaction: {
|
|
114
127
|
fromRpc: (rpc: TransactionRpc) => Transaction
|
|
115
128
|
}
|
|
@@ -132,6 +145,7 @@ export type ChainConfig = {
|
|
|
132
145
|
fn: Chain.Chain.Transaction.PrepareFn,
|
|
133
146
|
options: { runAt: readonly Chain.Chain.Transaction.PreparePhase[] },
|
|
134
147
|
]
|
|
148
|
+
replacement: typeof Replacement.transactionReplacement
|
|
135
149
|
serialize: (
|
|
136
150
|
envelope: Envelope | TxEnvelope,
|
|
137
151
|
options?: SerializeOptions | undefined,
|
|
@@ -150,12 +164,13 @@ export type ChainConfig = {
|
|
|
150
164
|
type PrepareAccount = {
|
|
151
165
|
address: Address.Address
|
|
152
166
|
accessKeyAddress?: Address.Address | undefined
|
|
153
|
-
config?:
|
|
154
|
-
owners?:
|
|
167
|
+
config?: AccountConfig.Config | undefined
|
|
168
|
+
owners?: ConfigurableAccount['owners'] | undefined
|
|
155
169
|
keyAuthorizationManager?:
|
|
156
170
|
| KeyAuthorizationManager.KeyAuthorizationManager
|
|
157
171
|
| undefined
|
|
158
|
-
keyType?: '
|
|
172
|
+
keyType?: 'configurable' | 'p256' | 'secp256k1' | 'webAuthn' | undefined
|
|
173
|
+
delegate?: ConfigurableAccount | undefined
|
|
159
174
|
source?: string | undefined
|
|
160
175
|
}
|
|
161
176
|
|
|
@@ -163,6 +178,7 @@ type PrepareAccount = {
|
|
|
163
178
|
type PrepareRequest = TransactionRequest & {
|
|
164
179
|
account?: Address.Address | PrepareAccount | undefined
|
|
165
180
|
chain?: (Chain.Chain & { feeToken?: Address.Address | undefined }) | undefined
|
|
181
|
+
parameters?: readonly string[] | undefined
|
|
166
182
|
}
|
|
167
183
|
|
|
168
184
|
/**
|
|
@@ -172,12 +188,12 @@ type PrepareRequest = TransactionRequest & {
|
|
|
172
188
|
type ToEnvelopeRequest = TransactionRequestTempo.TransactionRequest &
|
|
173
189
|
Pick<
|
|
174
190
|
TransactionRequest,
|
|
175
|
-
'feePayer' | '
|
|
191
|
+
'feePayer' | 'accountSimulation' | 'owner' | 'signatures'
|
|
176
192
|
>
|
|
177
193
|
|
|
178
194
|
/**
|
|
179
195
|
* Shared Tempo chain configuration: RPC converters, transaction hooks
|
|
180
|
-
* (expiring nonces,
|
|
196
|
+
* (expiring nonces, configurable account senders, fee tokens), and signature-envelope
|
|
181
197
|
* verification.
|
|
182
198
|
*/
|
|
183
199
|
export const chainConfig = {
|
|
@@ -187,21 +203,25 @@ export const chainConfig = {
|
|
|
187
203
|
hardfork?: Hardfork | undefined
|
|
188
204
|
}>(),
|
|
189
205
|
codecs: {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
206
|
+
// The core block codec decodes transactions as Ethereum transactions, so
|
|
207
|
+
// Tempo decodes the transactions inside blocks itself.
|
|
208
|
+
block: {
|
|
209
|
+
fromRpc(rpc: BlockRpc): Block {
|
|
210
|
+
const { transactions, ...rest } = rpc
|
|
193
211
|
return {
|
|
194
|
-
|
|
195
|
-
...(
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
212
|
+
// Pending blocks carry `null` hashes, which `fromRpc` passes through.
|
|
213
|
+
...ox_Block.fromRpc({ ...rest, transactions: [] } as ox_Block.Rpc),
|
|
214
|
+
transactions: transactions.map((transaction) =>
|
|
215
|
+
typeof transaction === 'string'
|
|
216
|
+
? transaction
|
|
217
|
+
: decodeTransaction(transaction),
|
|
218
|
+
),
|
|
219
|
+
} as Block
|
|
203
220
|
},
|
|
204
221
|
},
|
|
222
|
+
transaction: {
|
|
223
|
+
fromRpc: decodeTransaction,
|
|
224
|
+
},
|
|
205
225
|
transactionReceipt: {
|
|
206
226
|
fromRpc(rpc: TransactionReceiptRpc): TransactionReceipt {
|
|
207
227
|
const receipt = TransactionReceiptTempo.fromRpc(
|
|
@@ -212,11 +232,11 @@ export const chainConfig = {
|
|
|
212
232
|
...(rpc.status === 'pending'
|
|
213
233
|
? { status: 'pending' as const, type: 'tempo' as const }
|
|
214
234
|
: {}),
|
|
215
|
-
...(rpc.
|
|
235
|
+
...(rpc.operation
|
|
216
236
|
? {
|
|
217
|
-
|
|
218
|
-
rpc.
|
|
219
|
-
) as
|
|
237
|
+
operation: AccountOperation.fromRpc(
|
|
238
|
+
rpc.operation,
|
|
239
|
+
) as AccountOperation.TransactionOperation,
|
|
220
240
|
}
|
|
221
241
|
: {}),
|
|
222
242
|
}
|
|
@@ -240,47 +260,78 @@ export const chainConfig = {
|
|
|
240
260
|
return TxEnvelopeTempo.getSignPayload(envelope)
|
|
241
261
|
},
|
|
242
262
|
prepare: [
|
|
243
|
-
async (r, { client, phase }) => {
|
|
263
|
+
async (r, { client, error, phase }) => {
|
|
244
264
|
const request = r as PrepareRequest
|
|
245
265
|
const account_ = request.account
|
|
246
266
|
const account = typeof account_ === 'string' ? undefined : account_
|
|
247
267
|
|
|
268
|
+
// The node refuses an authorization of a registered key, so the fill
|
|
269
|
+
// retries without it.
|
|
270
|
+
if (phase === 'afterFillTransactionError') {
|
|
271
|
+
const refused =
|
|
272
|
+
error instanceof BaseError &&
|
|
273
|
+
!!error.walk((cause) =>
|
|
274
|
+
(cause as BaseError).details?.includes('KeyAlreadyExists'),
|
|
275
|
+
)
|
|
276
|
+
const pending = refused ? await getPending(request) : undefined
|
|
277
|
+
if (!pending) return undefined
|
|
278
|
+
await pending.manager.remove(pending.key)
|
|
279
|
+
const { keyAuthorization: _, ...retry } = request
|
|
280
|
+
return retry as Record<string, unknown>
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Without a successful fill, the node has not checked the attached
|
|
284
|
+
// authorization.
|
|
285
|
+
if (phase === 'beforeFillParameters') {
|
|
286
|
+
if (
|
|
287
|
+
typeof request.gas !== 'undefined' ||
|
|
288
|
+
!request.parameters?.includes('gas')
|
|
289
|
+
)
|
|
290
|
+
return request as Record<string, unknown>
|
|
291
|
+
const pending = await getPending(request)
|
|
292
|
+
if (pending && (await isRegistered(client, pending.key))) {
|
|
293
|
+
await pending.manager.remove(pending.key)
|
|
294
|
+
delete request.keyAuthorization
|
|
295
|
+
}
|
|
296
|
+
return request as Record<string, unknown>
|
|
297
|
+
}
|
|
298
|
+
|
|
248
299
|
if (request.hash) {
|
|
249
300
|
if (
|
|
250
301
|
!request.account ||
|
|
251
302
|
typeof request.account === 'string' ||
|
|
252
|
-
request.account.source !== '
|
|
303
|
+
request.account.source !== 'configurable'
|
|
253
304
|
)
|
|
254
305
|
throw new Error(
|
|
255
|
-
'A local
|
|
306
|
+
'A local configurable account is required to approve a stored configurable account transaction.',
|
|
256
307
|
)
|
|
257
308
|
if (!request.owner || typeof request.owner === 'string')
|
|
258
309
|
throw new Error(
|
|
259
|
-
'A local owner account is required to approve a stored
|
|
310
|
+
'A local owner account is required to approve a stored configurable account transaction.',
|
|
260
311
|
)
|
|
261
312
|
if (request.owner.source !== 'root')
|
|
262
313
|
throw new Error(
|
|
263
|
-
'A Tempo owner account is required to approve a stored
|
|
314
|
+
'A Tempo owner account is required to approve a stored configurable account transaction.',
|
|
264
315
|
)
|
|
265
316
|
const transaction = await getTransaction(client, {
|
|
266
317
|
hash: request.hash,
|
|
267
318
|
})
|
|
268
319
|
const operation =
|
|
269
|
-
'
|
|
270
|
-
? (transaction.
|
|
271
|
-
|
|
|
320
|
+
'operation' in transaction
|
|
321
|
+
? (transaction.operation as
|
|
322
|
+
| AccountOperation.TransactionOperation
|
|
272
323
|
| undefined)
|
|
273
324
|
: undefined
|
|
274
325
|
if (!operation)
|
|
275
|
-
throw new Error('Expected
|
|
326
|
+
throw new Error('Expected an account operation transaction.')
|
|
276
327
|
if (!Address.isEqual(operation.account, request.account.address))
|
|
277
328
|
throw new Error(
|
|
278
|
-
'
|
|
329
|
+
'Account operation account does not match the requested account.',
|
|
279
330
|
)
|
|
280
331
|
const storedTransaction = TxEnvelopeTempo.deserialize(
|
|
281
332
|
operation.transaction as TxEnvelopeTempo.Serialized,
|
|
282
333
|
)
|
|
283
|
-
const hash =
|
|
334
|
+
const hash = AccountOperation.getHash({
|
|
284
335
|
account: operation.account,
|
|
285
336
|
config: operation.config,
|
|
286
337
|
transaction: operation.transaction as TxEnvelopeTempo.Serialized,
|
|
@@ -288,7 +339,7 @@ export const chainConfig = {
|
|
|
288
339
|
})
|
|
289
340
|
if (hash.toLowerCase() !== request.hash.toLowerCase())
|
|
290
341
|
throw new Error(
|
|
291
|
-
'
|
|
342
|
+
'Account operation hash does not match transaction.',
|
|
292
343
|
)
|
|
293
344
|
Object.assign(request, {
|
|
294
345
|
...storedTransaction,
|
|
@@ -298,9 +349,9 @@ export const chainConfig = {
|
|
|
298
349
|
nonce: Number(storedTransaction.nonce ?? 0n),
|
|
299
350
|
account: request.account,
|
|
300
351
|
from: operation.account,
|
|
301
|
-
|
|
352
|
+
accountSimulation: getAccountSimulation({
|
|
302
353
|
config: operation.config,
|
|
303
|
-
local: request.account as
|
|
354
|
+
local: request.account as ConfigurableAccount,
|
|
304
355
|
}),
|
|
305
356
|
owner: request.owner,
|
|
306
357
|
})
|
|
@@ -308,22 +359,27 @@ export const chainConfig = {
|
|
|
308
359
|
}
|
|
309
360
|
|
|
310
361
|
if (phase === 'afterFillParameters') {
|
|
362
|
+
// The fee payer signature covers the gas limit, so the relay sets it
|
|
363
|
+
// before signing and it must not change afterward. Owner approvals
|
|
364
|
+
// also cover it, so a request carrying them keeps its gas.
|
|
311
365
|
if (
|
|
312
366
|
typeof request.gas !== 'undefined' &&
|
|
313
367
|
request.feePayer &&
|
|
314
|
-
!request.feePayerSignature
|
|
368
|
+
!request.feePayerSignature &&
|
|
369
|
+
!request.signatures?.length
|
|
315
370
|
) {
|
|
316
371
|
// Fee-paid transactions are gas-estimated with a dummy secp256k1
|
|
317
|
-
// signature and
|
|
318
|
-
// signatures cost more intrinsic gas.
|
|
372
|
+
// signature and without the fee payer's signature and fee token;
|
|
373
|
+
// larger envelope signatures cost more intrinsic gas.
|
|
319
374
|
const gas =
|
|
320
|
-
typeof request.gas === 'bigint'
|
|
375
|
+
(typeof request.gas === 'bigint'
|
|
321
376
|
? request.gas
|
|
322
|
-
: BigInt(request.gas)
|
|
377
|
+
: BigInt(request.gas)) + feePayerGas
|
|
323
378
|
if (request.keyAuthorization?.signature.type === 'webAuthn')
|
|
324
379
|
request.gas = gas + 20_000n
|
|
325
380
|
else if (account?.source === 'accessKey')
|
|
326
381
|
request.gas = gas + 10_000n
|
|
382
|
+
else request.gas = gas
|
|
327
383
|
}
|
|
328
384
|
return request as Record<string, unknown>
|
|
329
385
|
}
|
|
@@ -336,7 +392,7 @@ export const chainConfig = {
|
|
|
336
392
|
typeof request.type === 'undefined' &&
|
|
337
393
|
(isTempoRequest(request) ||
|
|
338
394
|
account?.source === 'accessKey' ||
|
|
339
|
-
account?.source === '
|
|
395
|
+
account?.source === 'configurable' ||
|
|
340
396
|
(account?.keyType && account.keyType !== 'secp256k1'))
|
|
341
397
|
)
|
|
342
398
|
request.type = 'tempo'
|
|
@@ -355,63 +411,92 @@ export const chainConfig = {
|
|
|
355
411
|
} else if (type === 'p256' || type === 'secp256k1') {
|
|
356
412
|
request.keyType = type
|
|
357
413
|
request.keyData = undefined
|
|
414
|
+
} else if (
|
|
415
|
+
type === 'configurable' &&
|
|
416
|
+
'delegate' in signer &&
|
|
417
|
+
signer.delegate
|
|
418
|
+
) {
|
|
419
|
+
// A configurable access key (TIP-1111) signs as its `keyId`
|
|
420
|
+
// delegate.
|
|
421
|
+
request.keyType = 'configurable'
|
|
422
|
+
request.keyData = undefined
|
|
358
423
|
}
|
|
359
424
|
if ('accessKeyAddress' in signer && signer.accessKeyAddress)
|
|
360
425
|
request.keyId = signer.accessKeyAddress
|
|
361
426
|
}
|
|
362
427
|
|
|
363
|
-
const
|
|
364
|
-
if (account?.source === '
|
|
428
|
+
const configurableIdentity = (() => {
|
|
429
|
+
if (account?.source === 'configurable')
|
|
365
430
|
return {
|
|
366
431
|
account: account.address,
|
|
367
|
-
config: (account as
|
|
368
|
-
local: account as
|
|
432
|
+
config: (account as ConfigurableAccount).config,
|
|
433
|
+
local: account as ConfigurableAccount,
|
|
369
434
|
}
|
|
370
435
|
return undefined
|
|
371
436
|
})()
|
|
372
|
-
if (request.owner && !
|
|
437
|
+
if (request.owner && !configurableIdentity)
|
|
373
438
|
throw new Error(
|
|
374
|
-
'A
|
|
439
|
+
'A configurable account is required when an owner is provided.',
|
|
375
440
|
)
|
|
376
441
|
if (request.owner && typeof request.owner === 'string')
|
|
377
442
|
throw new Error(
|
|
378
|
-
'A local owner account is required to approve a
|
|
443
|
+
'A local owner account is required to approve a configurable account transaction.',
|
|
379
444
|
)
|
|
380
445
|
if (request.owner && request.owner.source !== 'root')
|
|
381
446
|
throw new Error(
|
|
382
|
-
'A Tempo owner account is required to approve a
|
|
447
|
+
'A Tempo owner account is required to approve a configurable account transaction.',
|
|
383
448
|
)
|
|
384
|
-
const
|
|
385
|
-
!!
|
|
449
|
+
const coordinated =
|
|
450
|
+
!!configurableIdentity &&
|
|
386
451
|
!!request.owner &&
|
|
387
|
-
(client.transport as {
|
|
388
|
-
if (
|
|
389
|
-
const { account, local } =
|
|
452
|
+
(client.transport as { accounts?: boolean }).accounts === true
|
|
453
|
+
if (configurableIdentity) {
|
|
454
|
+
const { account, local } = configurableIdentity
|
|
390
455
|
if (!account)
|
|
391
456
|
throw new Error(
|
|
392
|
-
'A
|
|
457
|
+
'A configurable account address is required with a current config.',
|
|
393
458
|
)
|
|
394
459
|
const config = await (async () => {
|
|
395
|
-
if (
|
|
396
|
-
if (!
|
|
460
|
+
if (configurableIdentity.config) return configurableIdentity.config
|
|
461
|
+
if (!coordinated) return undefined
|
|
397
462
|
const cachedConfig = await getConfig(client, { address: account })
|
|
398
463
|
if (!cachedConfig)
|
|
399
464
|
throw new Error(
|
|
400
|
-
`No current
|
|
465
|
+
`No current account config is cached for account ${account}. Provide the current config.`,
|
|
401
466
|
)
|
|
402
467
|
return cachedConfig
|
|
403
468
|
})()
|
|
404
469
|
if (!config)
|
|
405
470
|
throw new Error(
|
|
406
|
-
'
|
|
471
|
+
'An account config is required to prepare a transaction.',
|
|
407
472
|
)
|
|
408
473
|
request.from = account
|
|
409
|
-
request.
|
|
474
|
+
request.accountSimulation = getAccountSimulation({
|
|
410
475
|
config,
|
|
411
476
|
local,
|
|
412
477
|
})
|
|
413
478
|
}
|
|
414
479
|
|
|
480
|
+
// A configurable account acting as an access key (TIP-1111). The node
|
|
481
|
+
// models the delegate's owner quorum inside a keychain signature.
|
|
482
|
+
const delegate =
|
|
483
|
+
account?.source === 'accessKey' ? account.delegate : undefined
|
|
484
|
+
if (delegate) {
|
|
485
|
+
const config =
|
|
486
|
+
delegate.config ??
|
|
487
|
+
((client.transport as { accounts?: boolean }).accounts === true
|
|
488
|
+
? await getConfig(client, { address: delegate.address })
|
|
489
|
+
: undefined)
|
|
490
|
+
if (!config)
|
|
491
|
+
throw new Error(
|
|
492
|
+
'An account config is required to prepare a transaction.',
|
|
493
|
+
)
|
|
494
|
+
request.accountSimulation = {
|
|
495
|
+
...getAccountSimulation({ config, local: delegate }),
|
|
496
|
+
signer: delegate.address,
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
415
500
|
// Use expiring nonces for concurrent transactions (TIP-1009).
|
|
416
501
|
// Detect concurrency before preparing an access-key authorization so
|
|
417
502
|
// asynchronous account work cannot serialize otherwise parallel sends.
|
|
@@ -421,7 +506,7 @@ export const chainConfig = {
|
|
|
421
506
|
request.nonceKey === maxUint256
|
|
422
507
|
)
|
|
423
508
|
return true
|
|
424
|
-
if (
|
|
509
|
+
if (configurableIdentity) return false
|
|
425
510
|
if (request.feePayer && typeof request.nonceKey === 'undefined')
|
|
426
511
|
return true
|
|
427
512
|
const address =
|
|
@@ -433,17 +518,23 @@ export const chainConfig = {
|
|
|
433
518
|
return false
|
|
434
519
|
})()
|
|
435
520
|
|
|
436
|
-
if (
|
|
521
|
+
if (coordinated && typeof request.nonceKey === 'undefined') {
|
|
437
522
|
request.nonceKey = Hex.toBigInt(Hex.random(31)) + 1n
|
|
438
523
|
request.nonce = 0
|
|
439
524
|
} else if (useExpiringNonce) {
|
|
440
525
|
request.nonceKey = maxUint256
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
526
|
+
// A random discriminator keeps otherwise identical expiring
|
|
527
|
+
// transactions distinct. 48 bits stay within
|
|
528
|
+
// `Number.MAX_SAFE_INTEGER`.
|
|
529
|
+
request.nonce ??= Hex.toNumber(Hex.random(6))
|
|
444
530
|
if (typeof request.validBefore === 'undefined')
|
|
445
|
-
request.validBefore =
|
|
446
|
-
} else if (
|
|
531
|
+
request.validBefore = Expiry.seconds(expiringNonceExpiry)
|
|
532
|
+
} else if (
|
|
533
|
+
typeof request.nonceKey !== 'undefined' &&
|
|
534
|
+
// Nonce key 0 is the protocol nonce, which core fills like an
|
|
535
|
+
// Ethereum nonce.
|
|
536
|
+
request.nonceKey !== 0n
|
|
537
|
+
) {
|
|
447
538
|
// Explicit nonceKey provided (2D nonce mode).
|
|
448
539
|
request.nonce = typeof request.nonce === 'number' ? request.nonce : 0
|
|
449
540
|
}
|
|
@@ -470,40 +561,43 @@ export const chainConfig = {
|
|
|
470
561
|
if (
|
|
471
562
|
keyAuthorization.expiry != null &&
|
|
472
563
|
BigInt(keyAuthorization.expiry) <= now
|
|
473
|
-
)
|
|
564
|
+
)
|
|
474
565
|
await keyAuthorizationManager.remove(key)
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
isRevoked: boolean
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
if (
|
|
488
|
-
metadata.keyId.toLowerCase() === accessKey.toLowerCase() &&
|
|
489
|
-
!metadata.isRevoked &&
|
|
490
|
-
metadata.expiry > now
|
|
491
|
-
)
|
|
492
|
-
await keyAuthorizationManager.remove(key)
|
|
493
|
-
else request.keyAuthorization = keyAuthorization
|
|
494
|
-
}
|
|
566
|
+
else if (
|
|
567
|
+
// The fill checks the authorization, so it needs no
|
|
568
|
+
// separate read.
|
|
569
|
+
(request.parameters?.includes('gas') &&
|
|
570
|
+
typeof request.gas === 'undefined') ||
|
|
571
|
+
!(await isRegistered(client, key))
|
|
572
|
+
)
|
|
573
|
+
request.keyAuthorization = keyAuthorization
|
|
574
|
+
else await keyAuthorizationManager.remove(key)
|
|
495
575
|
}
|
|
496
576
|
}
|
|
497
577
|
}
|
|
498
578
|
}
|
|
499
579
|
|
|
580
|
+
const keyAuthorizationSimulation = getKeyAuthorizationSimulation(
|
|
581
|
+
request.keyAuthorization,
|
|
582
|
+
)
|
|
583
|
+
if (keyAuthorizationSimulation)
|
|
584
|
+
request.keyAuthorizationSimulation = keyAuthorizationSimulation
|
|
585
|
+
|
|
500
586
|
if (!request.feeToken && request.chain?.feeToken)
|
|
501
587
|
request.feeToken = request.chain.feeToken
|
|
502
588
|
|
|
503
589
|
return request as Record<string, unknown>
|
|
504
590
|
},
|
|
505
|
-
{
|
|
591
|
+
{
|
|
592
|
+
runAt: [
|
|
593
|
+
'beforeFillTransaction',
|
|
594
|
+
'afterFillTransactionError',
|
|
595
|
+
'beforeFillParameters',
|
|
596
|
+
'afterFillParameters',
|
|
597
|
+
],
|
|
598
|
+
},
|
|
506
599
|
],
|
|
600
|
+
replacement: Replacement.transactionReplacement,
|
|
507
601
|
serialize(
|
|
508
602
|
envelope: Envelope | TxEnvelope,
|
|
509
603
|
options: SerializeOptions = {},
|
|
@@ -511,7 +605,7 @@ export const chainConfig = {
|
|
|
511
605
|
// Non-tempo envelopes delegate to the generic default.
|
|
512
606
|
if (!isTempoEnvelope(envelope)) return undefined
|
|
513
607
|
|
|
514
|
-
// Track caller signatures separately from synthesized
|
|
608
|
+
// Track caller signatures separately from synthesized configurable account
|
|
515
609
|
// approvals.
|
|
516
610
|
const signature_provided = (() => {
|
|
517
611
|
if (envelope.signature) return envelope.signature
|
|
@@ -523,28 +617,44 @@ export const chainConfig = {
|
|
|
523
617
|
// Combine owner approvals before fee-payer handling.
|
|
524
618
|
const signature = (() => {
|
|
525
619
|
if (signature_provided) return signature_provided
|
|
526
|
-
if (!envelope.
|
|
620
|
+
if (!envelope.accountSimulation || !envelope.signatures)
|
|
527
621
|
return undefined
|
|
528
622
|
|
|
529
|
-
|
|
530
|
-
|
|
623
|
+
const { from } = envelope
|
|
624
|
+
if (!from)
|
|
625
|
+
throw new Error(
|
|
626
|
+
'A configurable account sender is required for signing.',
|
|
627
|
+
)
|
|
628
|
+
const { signer = from } = envelope.accountSimulation
|
|
629
|
+
// A configurable access key (TIP-1111) approves the keychain digest
|
|
630
|
+
// bound to the sender.
|
|
631
|
+
const delegated = !Address.isEqual(signer, from)
|
|
632
|
+
const config = AccountConfig.from(envelope.accountSimulation.config)
|
|
531
633
|
const payload = TxEnvelopeTempo.getSignPayload(
|
|
532
634
|
TxEnvelopeTempo.from(envelope),
|
|
635
|
+
delegated ? { from } : {},
|
|
533
636
|
)
|
|
534
637
|
const signatures = envelope.signatures.map((approval) =>
|
|
535
638
|
parseApproval(approval),
|
|
536
639
|
)
|
|
537
|
-
const sorted = SignatureEnvelope.
|
|
640
|
+
const sorted = SignatureEnvelope.sortApprovals({
|
|
538
641
|
payload,
|
|
539
642
|
signatures,
|
|
540
|
-
account:
|
|
541
|
-
config
|
|
643
|
+
account: signer,
|
|
644
|
+
config,
|
|
542
645
|
})
|
|
543
|
-
|
|
544
|
-
account:
|
|
545
|
-
config
|
|
646
|
+
const inner = SignatureEnvelope.from({
|
|
647
|
+
account: signer,
|
|
648
|
+
config,
|
|
546
649
|
signatures: sorted,
|
|
547
650
|
})
|
|
651
|
+
if (!delegated) return inner
|
|
652
|
+
return SignatureEnvelope.from({
|
|
653
|
+
inner,
|
|
654
|
+
type: 'keychain',
|
|
655
|
+
userAddress: from,
|
|
656
|
+
version: 'v2',
|
|
657
|
+
})
|
|
548
658
|
})()
|
|
549
659
|
|
|
550
660
|
const hasPrefilledFeePayerSignature =
|
|
@@ -581,7 +691,7 @@ export const chainConfig = {
|
|
|
581
691
|
// Non-tempo requests delegate to the generic default.
|
|
582
692
|
if (!isTempoRequest(request)) return undefined
|
|
583
693
|
|
|
584
|
-
const { feePayer,
|
|
694
|
+
const { feePayer, accountSimulation, owner, signatures, ...rest } =
|
|
585
695
|
request as ToEnvelopeRequest
|
|
586
696
|
|
|
587
697
|
const envelope = TransactionRequestTempo.toEnvelope({
|
|
@@ -594,7 +704,7 @@ export const chainConfig = {
|
|
|
594
704
|
return {
|
|
595
705
|
...envelope,
|
|
596
706
|
...(typeof feePayer !== 'undefined' ? { feePayer } : {}),
|
|
597
|
-
...(
|
|
707
|
+
...(accountSimulation ? { accountSimulation } : {}),
|
|
598
708
|
...(owner ? { owner } : {}),
|
|
599
709
|
...(signatures ? { signatures } : {}),
|
|
600
710
|
} as Envelope
|
|
@@ -626,43 +736,110 @@ export const chainConfig = {
|
|
|
626
736
|
// Access-key (keychain) verification: the key must be authorized,
|
|
627
737
|
// unexpired, and not revoked on the AccountKeychain.
|
|
628
738
|
if (envelope.type === 'keychain' && mode === 'allowAccessKey') {
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
739
|
+
const { inner, userAddress, version } = envelope
|
|
740
|
+
if (!Address.isEqual(userAddress, address)) return false
|
|
741
|
+
const block = blockHash
|
|
742
|
+
? { blockHash, requireCanonical }
|
|
743
|
+
: typeof blockNumber === 'bigint'
|
|
744
|
+
? { blockNumber }
|
|
745
|
+
: { blockTag }
|
|
746
|
+
const getKey = (accessKey: Address.Address) =>
|
|
747
|
+
read(client, {
|
|
748
|
+
...block,
|
|
749
|
+
abi: Abis.accountKeychain,
|
|
750
|
+
address: Addresses.accountKeychain,
|
|
751
|
+
args: [address, accessKey],
|
|
752
|
+
functionName: 'getKey',
|
|
753
|
+
}) as Promise<{
|
|
754
|
+
expiry: bigint
|
|
755
|
+
isRevoked: boolean
|
|
756
|
+
signatureType: number
|
|
757
|
+
}>
|
|
758
|
+
const isActive = (key: { expiry: bigint; isRevoked: boolean }) =>
|
|
759
|
+
!key.isRevoked && key.expiry > BigInt(Math.floor(Date.now() / 1000))
|
|
634
760
|
|
|
761
|
+
// The signature verifier rejects configurable access key signatures
|
|
762
|
+
// (TIP-1111), so the grant and the delegate's current quorum are
|
|
763
|
+
// checked separately.
|
|
764
|
+
if (inner.type === 'configurable') {
|
|
765
|
+
if (version !== 'v2') return false
|
|
766
|
+
const [key, valid] = await Promise.all([
|
|
767
|
+
getKey(inner.account),
|
|
768
|
+
read(client, {
|
|
769
|
+
...block,
|
|
770
|
+
abi: Abis.signatureVerifier,
|
|
771
|
+
address: Addresses.signatureVerifier,
|
|
772
|
+
args: [
|
|
773
|
+
inner.account,
|
|
774
|
+
Hash.keccak256(Hex.concat('0x04', hash, address)),
|
|
775
|
+
SignatureEnvelope.serialize(inner),
|
|
776
|
+
],
|
|
777
|
+
functionName: 'verifyConfigurableAccount',
|
|
778
|
+
}).catch(catchRevert),
|
|
779
|
+
])
|
|
780
|
+
if (!isActive(key)) return false
|
|
781
|
+
// Key type 3 is a configurable account.
|
|
782
|
+
if (!valid || key.signatureType === 3) return valid
|
|
783
|
+
// A delegate with a config commitment uses its grant whatever key
|
|
784
|
+
// type the grant stores.
|
|
785
|
+
const commitment = await read(client, {
|
|
786
|
+
...block,
|
|
787
|
+
abi: Abis.configurableAccount,
|
|
788
|
+
address: Addresses.configurableAccount,
|
|
789
|
+
args: [inner.account],
|
|
790
|
+
functionName: 'getConfigCommitment',
|
|
791
|
+
})
|
|
792
|
+
return BigInt(commitment) !== 0n
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
// From T14 the precompile also rejects a key ID with a config
|
|
796
|
+
// commitment (a retired root key) and an inner signature type other
|
|
797
|
+
// than the stored key type.
|
|
798
|
+
if (version === 'v2')
|
|
799
|
+
return await read(client, {
|
|
800
|
+
...block,
|
|
801
|
+
abi: Abis.signatureVerifier,
|
|
802
|
+
address: Addresses.signatureVerifier,
|
|
803
|
+
args: [address, hash, signature],
|
|
804
|
+
functionName: 'verifyKeychain',
|
|
805
|
+
}).catch(catchRevert)
|
|
806
|
+
|
|
807
|
+
// The precompile rejects legacy (V1) envelopes, whose inner signature
|
|
808
|
+
// signs `hash` directly.
|
|
635
809
|
const accessKeyAddress = (() => {
|
|
636
810
|
try {
|
|
637
811
|
return SignatureEnvelope.extractAddress({
|
|
638
|
-
payload:
|
|
639
|
-
signature:
|
|
812
|
+
payload: hash,
|
|
813
|
+
signature: inner,
|
|
640
814
|
})
|
|
641
815
|
} catch {
|
|
642
816
|
return undefined
|
|
643
817
|
}
|
|
644
818
|
})()
|
|
645
819
|
if (!accessKeyAddress) return false
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
abi: Abis.accountKeychain,
|
|
649
|
-
address: Addresses.accountKeychain,
|
|
650
|
-
args: [address, accessKeyAddress],
|
|
651
|
-
blockHash,
|
|
652
|
-
blockNumber,
|
|
653
|
-
blockTag,
|
|
654
|
-
functionName: 'getKey',
|
|
655
|
-
requireCanonical,
|
|
656
|
-
})) as { expiry: bigint; isRevoked: boolean }
|
|
657
|
-
|
|
658
|
-
if (key.isRevoked) return false
|
|
659
|
-
if (key.expiry <= BigInt(Math.floor(Date.now() / 1000))) return false
|
|
660
|
-
return SignatureEnvelope.verify(envelope.inner, {
|
|
820
|
+
if (!isActive(await getKey(accessKeyAddress))) return false
|
|
821
|
+
return SignatureEnvelope.verify(inner, {
|
|
661
822
|
address: accessKeyAddress,
|
|
662
|
-
payload:
|
|
823
|
+
payload: hash,
|
|
663
824
|
})
|
|
664
825
|
}
|
|
665
826
|
|
|
827
|
+
// Configurable account signatures verify against the account's current
|
|
828
|
+
// config commitment, which only the chain knows. Reverts (malformed
|
|
829
|
+
// signatures or approvals below quorum) are invalid signatures.
|
|
830
|
+
if (envelope.type === 'configurable')
|
|
831
|
+
return await read(client, {
|
|
832
|
+
abi: Abis.signatureVerifier,
|
|
833
|
+
address: Addresses.signatureVerifier,
|
|
834
|
+
args: [address, hash, signature],
|
|
835
|
+
functionName: 'verifyConfigurableAccount',
|
|
836
|
+
...(blockHash
|
|
837
|
+
? { blockHash, requireCanonical }
|
|
838
|
+
: typeof blockNumber === 'bigint'
|
|
839
|
+
? { blockNumber }
|
|
840
|
+
: { blockTag }),
|
|
841
|
+
}).catch(catchRevert)
|
|
842
|
+
|
|
666
843
|
// Stateless envelopes (P256, WebAuthn) verify without a network request
|
|
667
844
|
// for EOAs (including the Tempo default delegation); contracts fall
|
|
668
845
|
// through to the ERC-1271 flow.
|
|
@@ -695,6 +872,18 @@ export const chainConfig = {
|
|
|
695
872
|
| 'verifyHash'
|
|
696
873
|
> as ChainConfig
|
|
697
874
|
|
|
875
|
+
/** Returns `false` for a reverted verification call, and rethrows other errors. */
|
|
876
|
+
function catchRevert(error: unknown): false {
|
|
877
|
+
if (
|
|
878
|
+
error instanceof BaseError &&
|
|
879
|
+
error.walk(
|
|
880
|
+
(cause) => cause instanceof ContractError.ContractFunctionRevertedError,
|
|
881
|
+
)
|
|
882
|
+
)
|
|
883
|
+
return false
|
|
884
|
+
throw error
|
|
885
|
+
}
|
|
886
|
+
|
|
698
887
|
/** Untyped envelopes are assumed tempo (they flow from `toEnvelope`). @internal */
|
|
699
888
|
function isTempoEnvelope(
|
|
700
889
|
envelope: Envelope | TxEnvelope,
|
|
@@ -718,7 +907,8 @@ function isTempoRequest(request: Record<string, unknown>): boolean {
|
|
|
718
907
|
typeof request.keyData !== 'undefined' ||
|
|
719
908
|
typeof request.keyId !== 'undefined' ||
|
|
720
909
|
typeof request.keyType !== 'undefined' ||
|
|
721
|
-
typeof request.
|
|
910
|
+
typeof request.accountSimulation !== 'undefined' ||
|
|
911
|
+
typeof request.keyAuthorizationSimulation !== 'undefined' ||
|
|
722
912
|
typeof request.owner !== 'undefined' ||
|
|
723
913
|
typeof request.nonceKey !== 'undefined' ||
|
|
724
914
|
typeof request.signature !== 'undefined' ||
|
|
@@ -728,6 +918,21 @@ function isTempoRequest(request: Record<string, unknown>): boolean {
|
|
|
728
918
|
)
|
|
729
919
|
}
|
|
730
920
|
|
|
921
|
+
/** Decodes (wire → native) a Tempo RPC transaction. @internal */
|
|
922
|
+
function decodeTransaction(rpc: TransactionRpc): Transaction {
|
|
923
|
+
const transaction = TransactionTempo.fromRpc(rpc)
|
|
924
|
+
return {
|
|
925
|
+
...transaction,
|
|
926
|
+
...(rpc.operation
|
|
927
|
+
? {
|
|
928
|
+
operation: AccountOperation.fromRpc(
|
|
929
|
+
rpc.operation,
|
|
930
|
+
) as AccountOperation.TransactionOperation,
|
|
931
|
+
}
|
|
932
|
+
: {}),
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
731
936
|
/** Decodes (wire → native) a Tempo RPC transaction request. @internal */
|
|
732
937
|
function decodeRequest(rpc: Record<string, unknown>): TransactionRequest {
|
|
733
938
|
return TransactionRequestTempo.fromRpc(rpc) as TransactionRequest
|
|
@@ -740,7 +945,7 @@ function encodeRequest(
|
|
|
740
945
|
// Non-tempo requests take the generic encoding.
|
|
741
946
|
if (!isTempoRequest(r)) return ox_TransactionRequest.toRpc(r)
|
|
742
947
|
|
|
743
|
-
// `
|
|
948
|
+
// `accountSimulation`/`signatures` are client-side only. They drive
|
|
744
949
|
// sender derivation, owner signing, and final envelope assembly, but are
|
|
745
950
|
// never sent as raw RPC fields — the wire payload is the serialized tx.
|
|
746
951
|
// An `'expiring'` nonce key is resolved by the prepare hook and never
|
|
@@ -772,11 +977,53 @@ function encodeRequest(
|
|
|
772
977
|
return rpc
|
|
773
978
|
}
|
|
774
979
|
|
|
775
|
-
/**
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
980
|
+
/**
|
|
981
|
+
* Returns the access key's pending authorization manager entry when the
|
|
982
|
+
* request carries its authorization.
|
|
983
|
+
*/
|
|
984
|
+
async function getPending(request: PrepareRequest) {
|
|
985
|
+
const { account, keyAuthorization } = request
|
|
986
|
+
if (!keyAuthorization || typeof account !== 'object') return undefined
|
|
987
|
+
if (account.source !== 'accessKey') return undefined
|
|
988
|
+
const manager = account.keyAuthorizationManager
|
|
989
|
+
const accessKey = account.accessKeyAddress
|
|
990
|
+
const chainId = request.chainId ?? request.chain?.id
|
|
991
|
+
if (!manager || !accessKey || typeof chainId !== 'number') return undefined
|
|
992
|
+
const key = { address: account.address, accessKey, chainId }
|
|
993
|
+
const pending = await manager.get(key)
|
|
994
|
+
// Stores may normalize the casing of the serialized authorization.
|
|
995
|
+
if (
|
|
996
|
+
!pending ||
|
|
997
|
+
KeyAuthorization.serialize(pending).toLowerCase() !==
|
|
998
|
+
KeyAuthorization.serialize(keyAuthorization).toLowerCase()
|
|
999
|
+
)
|
|
1000
|
+
return undefined
|
|
1001
|
+
return { key, manager }
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/** Whether the chain has registered an access key that is not revoked or expired. */
|
|
1005
|
+
async function isRegistered(
|
|
1006
|
+
client: Client.Client,
|
|
1007
|
+
key: KeyAuthorizationManager.Key,
|
|
1008
|
+
) {
|
|
1009
|
+
const metadata = (await read(client, {
|
|
1010
|
+
abi: Abis.accountKeychain,
|
|
1011
|
+
address: Addresses.accountKeychain,
|
|
1012
|
+
args: [key.address, key.accessKey],
|
|
1013
|
+
functionName: 'getKey',
|
|
1014
|
+
})) as { keyId: Address.Address; expiry: bigint; isRevoked: boolean }
|
|
1015
|
+
return (
|
|
1016
|
+
Address.isEqual(metadata.keyId, key.accessKey) &&
|
|
1017
|
+
!metadata.isRevoked &&
|
|
1018
|
+
metadata.expiry > BigInt(Math.floor(Date.now() / 1000))
|
|
1019
|
+
)
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/** Builds a bounded account spec for gas simulation. */
|
|
1023
|
+
function getAccountSimulation(options: {
|
|
1024
|
+
config: AccountConfig.Config
|
|
1025
|
+
local?: ConfigurableAccount | undefined
|
|
1026
|
+
}): AccountSimulation.Spec {
|
|
780
1027
|
const { config, local } = options
|
|
781
1028
|
return {
|
|
782
1029
|
approvals: selectOwners(config).map((owner) => {
|
|
@@ -792,6 +1039,42 @@ function getMultisigSimulation(options: {
|
|
|
792
1039
|
}
|
|
793
1040
|
}
|
|
794
1041
|
|
|
1042
|
+
/**
|
|
1043
|
+
* Builds a simulation of the owner quorum signing a key authorization whose
|
|
1044
|
+
* configurable account approvals do not reach its threshold yet.
|
|
1045
|
+
*/
|
|
1046
|
+
function getKeyAuthorizationSimulation(
|
|
1047
|
+
keyAuthorization: KeyAuthorization.Signed | undefined,
|
|
1048
|
+
): AccountSimulation.Spec | undefined {
|
|
1049
|
+
if (keyAuthorization?.signature.type !== 'configurable') return undefined
|
|
1050
|
+
const { account, signatures } = keyAuthorization.signature
|
|
1051
|
+
const config = AccountConfig.from(keyAuthorization.signature.config)
|
|
1052
|
+
const payload = AccountConfig.getSignPayload({
|
|
1053
|
+
account,
|
|
1054
|
+
config,
|
|
1055
|
+
payload: KeyAuthorization.getSignPayload(keyAuthorization),
|
|
1056
|
+
})
|
|
1057
|
+
const signed = new Set<string>()
|
|
1058
|
+
let weight = 0
|
|
1059
|
+
for (const signature of signatures) {
|
|
1060
|
+
const owner = (() => {
|
|
1061
|
+
try {
|
|
1062
|
+
return SignatureEnvelope.extractAddress({ payload, signature })
|
|
1063
|
+
} catch {
|
|
1064
|
+
return undefined
|
|
1065
|
+
}
|
|
1066
|
+
})()
|
|
1067
|
+
const entry = owner
|
|
1068
|
+
? config.owners.find((entry) => Address.isEqual(entry.owner, owner))
|
|
1069
|
+
: undefined
|
|
1070
|
+
if (!entry || signed.has(entry.owner.toLowerCase())) continue
|
|
1071
|
+
signed.add(entry.owner.toLowerCase())
|
|
1072
|
+
weight += Number(entry.weight)
|
|
1073
|
+
}
|
|
1074
|
+
if (weight >= Number(config.threshold)) return undefined
|
|
1075
|
+
return { ...getAccountSimulation({ config }), signer: account }
|
|
1076
|
+
}
|
|
1077
|
+
|
|
795
1078
|
/** Returns signature metadata for conservative gas estimation. */
|
|
796
1079
|
function getSimulationKey(
|
|
797
1080
|
account: unknown,
|
|
@@ -815,7 +1098,7 @@ function getSimulationKey(
|
|
|
815
1098
|
}
|
|
816
1099
|
|
|
817
1100
|
/** Selects a deterministic minimum-cardinality owner quorum. */
|
|
818
|
-
function selectOwners(config:
|
|
1101
|
+
function selectOwners(config: AccountConfig.Config) {
|
|
819
1102
|
const owners = [...config.owners].sort(
|
|
820
1103
|
(a, b) =>
|
|
821
1104
|
Number(b.weight) - Number(a.weight) ||
|
|
@@ -823,7 +1106,7 @@ function selectOwners(config: MultisigConfig.Config) {
|
|
|
823
1106
|
)
|
|
824
1107
|
const selected: typeof owners = []
|
|
825
1108
|
let weight = 0
|
|
826
|
-
for (const owner of owners.slice(0,
|
|
1109
|
+
for (const owner of owners.slice(0, AccountConfig.maxSignatures)) {
|
|
827
1110
|
if (weight >= Number(config.threshold)) break
|
|
828
1111
|
selected.push(owner)
|
|
829
1112
|
weight += Number(owner.weight)
|
|
@@ -834,25 +1117,33 @@ function selectOwners(config: MultisigConfig.Config) {
|
|
|
834
1117
|
}
|
|
835
1118
|
|
|
836
1119
|
// Exported so consumer declaration emit can name them. See `internal/inference.ts`.
|
|
1120
|
+
export type Block = ox_Block.Block<
|
|
1121
|
+
boolean,
|
|
1122
|
+
ox_Block.Tag,
|
|
1123
|
+
bigint,
|
|
1124
|
+
number,
|
|
1125
|
+
Transaction
|
|
1126
|
+
>
|
|
1127
|
+
export type BlockRpc = ox_Block.Rpc<boolean, ox_Block.Tag, TransactionRpc>
|
|
837
1128
|
export type Transaction = TransactionTempo.Transaction & {
|
|
838
|
-
|
|
1129
|
+
operation?: AccountOperation.TransactionOperation | undefined
|
|
839
1130
|
}
|
|
840
1131
|
export type TransactionRpc = TransactionTempo.Rpc & {
|
|
841
|
-
|
|
1132
|
+
operation?: AccountOperation.TransactionRpc | undefined
|
|
842
1133
|
}
|
|
843
1134
|
export type TransactionReceipt = Omit<
|
|
844
1135
|
TransactionReceiptTempo.TransactionReceipt,
|
|
845
1136
|
'status'
|
|
846
1137
|
> & {
|
|
847
1138
|
status: 'success' | 'reverted' | 'pending'
|
|
848
|
-
|
|
1139
|
+
operation?: AccountOperation.TransactionOperation | undefined
|
|
849
1140
|
}
|
|
850
1141
|
export type TransactionReceiptRpc = Omit<
|
|
851
1142
|
TransactionReceiptTempo.Rpc,
|
|
852
1143
|
'status'
|
|
853
1144
|
> & {
|
|
854
1145
|
status: '0x0' | '0x1' | 'pending'
|
|
855
|
-
|
|
1146
|
+
operation?: AccountOperation.TransactionRpc | undefined
|
|
856
1147
|
}
|
|
857
1148
|
export type TxEnvelope = ox_TxEnvelope.TxEnvelope
|
|
858
1149
|
export type SerializeOptions = TxEnvelopeTempo.serialize.Options
|