viem 2.57.4 → 2.57.6
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/CHANGELOG.md +34 -0
- package/_cjs/actions/public/waitForTransactionReceipt.js +5 -2
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/wallet/waitForCallsStatus.js +25 -2
- package/_cjs/actions/wallet/waitForCallsStatus.js.map +1 -1
- package/_cjs/chains/definitions/arcTestnet.js +11 -8
- package/_cjs/chains/definitions/arcTestnet.js.map +1 -1
- package/_cjs/chains/definitions/qmsTestnet.js +30 -0
- package/_cjs/chains/definitions/qmsTestnet.js.map +1 -0
- package/_cjs/chains/definitions/tempo.js +1 -1
- package/_cjs/chains/definitions/tempoModerato.js +2 -2
- package/_cjs/chains/index.js +7 -5
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/transports/ipc.js +19 -10
- package/_cjs/clients/transports/ipc.js.map +1 -1
- package/_cjs/clients/transports/webSocket.js +19 -10
- package/_cjs/clients/transports/webSocket.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/tempo/Abis.js +297 -1
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Account.js +40 -40
- package/_cjs/tempo/Account.js.map +1 -1
- package/_cjs/tempo/Addresses.js +2 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +9 -8
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/ExecutionError.js +95 -4
- package/_cjs/tempo/ExecutionError.js.map +1 -1
- package/_cjs/tempo/Formatters.js +8 -7
- package/_cjs/tempo/Formatters.js.map +1 -1
- package/_cjs/tempo/KeyAuthorizationManager.js +25 -16
- package/_cjs/tempo/KeyAuthorizationManager.js.map +1 -1
- package/_cjs/tempo/Relay.js +9 -4
- package/_cjs/tempo/Relay.js.map +1 -1
- package/_cjs/tempo/Transaction.js +9 -9
- package/_cjs/tempo/Transaction.js.map +1 -1
- package/_cjs/tempo/Transport.js +21 -11
- package/_cjs/tempo/Transport.js.map +1 -1
- package/_cjs/tempo/{multisig → accounts}/Config.js +8 -8
- package/_cjs/tempo/{multisig → accounts}/Config.js.map +1 -1
- package/_cjs/tempo/{multisig → accounts}/Operation.js +10 -10
- package/_cjs/tempo/{multisig → accounts}/Operation.js.map +1 -1
- package/_cjs/tempo/{multisig → accounts}/Signature.js +2 -2
- package/_cjs/tempo/accounts/Signature.js.map +1 -0
- package/_cjs/tempo/actions/accessKey.js +442 -47
- package/_cjs/tempo/actions/accessKey.js.map +1 -1
- package/_cjs/tempo/actions/{multisig.js → accounts.js} +16 -20
- package/_cjs/tempo/actions/accounts.js.map +1 -0
- package/_cjs/tempo/actions/amm.js +90 -4
- package/_cjs/tempo/actions/amm.js.map +1 -1
- package/_cjs/tempo/actions/channel.js +183 -7
- package/_cjs/tempo/actions/channel.js.map +1 -1
- package/_cjs/tempo/actions/dex.js +507 -14
- package/_cjs/tempo/actions/dex.js.map +1 -1
- package/_cjs/tempo/actions/earn/deployment.js +4 -3
- package/_cjs/tempo/actions/earn/deployment.js.map +1 -1
- package/_cjs/tempo/actions/earn.js +22 -21
- package/_cjs/tempo/actions/earn.js.map +1 -1
- package/_cjs/tempo/actions/fee.js +85 -5
- package/_cjs/tempo/actions/fee.js.map +1 -1
- package/_cjs/tempo/actions/index.js +2 -2
- package/_cjs/tempo/actions/index.js.map +1 -1
- package/_cjs/tempo/actions/nonce.js +54 -1
- package/_cjs/tempo/actions/nonce.js.map +1 -1
- package/_cjs/tempo/actions/policy.js +35 -6
- package/_cjs/tempo/actions/policy.js.map +1 -1
- package/_cjs/tempo/actions/propAmm.js +18 -8
- package/_cjs/tempo/actions/propAmm.js.map +1 -1
- package/_cjs/tempo/actions/receivePolicy.js +7 -6
- package/_cjs/tempo/actions/receivePolicy.js.map +1 -1
- package/_cjs/tempo/actions/reward.js +7 -6
- package/_cjs/tempo/actions/reward.js.map +1 -1
- package/_cjs/tempo/actions/token.js +433 -22
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tempo/actions/validator.js +12 -11
- package/_cjs/tempo/actions/validator.js.map +1 -1
- package/_cjs/tempo/actions/virtualAddress.js +3 -2
- package/_cjs/tempo/actions/virtualAddress.js.map +1 -1
- package/_cjs/tempo/actions/zone.js +12 -11
- package/_cjs/tempo/actions/zone.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +37 -37
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/errors.js +57 -1
- package/_cjs/tempo/errors.js.map +1 -1
- package/_cjs/tempo/index.js +3 -3
- package/_cjs/tempo/index.js.map +1 -1
- package/_cjs/tempo/internal/errors.js +46 -0
- package/_cjs/tempo/internal/errors.js.map +1 -0
- package/_cjs/tempo/internal/relay/{multisig.js → accounts.js} +90 -93
- package/_cjs/tempo/internal/relay/accounts.js.map +1 -0
- package/_cjs/tempo/internal/relay/keyAuthorization.js +296 -0
- package/_cjs/tempo/internal/relay/keyAuthorization.js.map +1 -0
- package/_cjs/tempo/internal/relay/plugin.js +17 -7
- package/_cjs/tempo/internal/relay/plugin.js.map +1 -1
- package/_cjs/tempo/internal/resolveError.js +128 -0
- package/_cjs/tempo/internal/resolveError.js.map +1 -0
- package/_cjs/tempo/internal/utils.js +1 -0
- package/_cjs/tempo/internal/utils.js.map +1 -1
- package/_cjs/utils/hash/normalizeSignature.js +1 -1
- package/_cjs/utils/hash/normalizeSignature.js.map +1 -1
- package/_cjs/utils/rpc/http.js +66 -31
- package/_cjs/utils/rpc/http.js.map +1 -1
- package/_cjs/utils/rpc/socket.js +1 -1
- package/_cjs/utils/rpc/socket.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +5 -2
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_esm/actions/wallet/waitForCallsStatus.js +39 -2
- package/_esm/actions/wallet/waitForCallsStatus.js.map +1 -1
- package/_esm/chains/definitions/arcTestnet.js +11 -8
- package/_esm/chains/definitions/arcTestnet.js.map +1 -1
- package/_esm/chains/definitions/qmsTestnet.js +27 -0
- package/_esm/chains/definitions/qmsTestnet.js.map +1 -0
- package/_esm/chains/definitions/tempo.js +1 -1
- package/_esm/chains/definitions/tempoModerato.js +2 -2
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/transports/ipc.js +21 -10
- package/_esm/clients/transports/ipc.js.map +1 -1
- package/_esm/clients/transports/webSocket.js +21 -10
- package/_esm/clients/transports/webSocket.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/tempo/Abis.js +297 -0
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +42 -42
- package/_esm/tempo/Account.js.map +1 -1
- package/_esm/tempo/Addresses.js +1 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Client.js +3 -3
- package/_esm/tempo/Decorator.js +9 -8
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/ExecutionError.js +96 -3
- package/_esm/tempo/ExecutionError.js.map +1 -1
- package/_esm/tempo/Formatters.js +11 -10
- package/_esm/tempo/Formatters.js.map +1 -1
- package/_esm/tempo/KeyAuthorizationManager.js +58 -16
- package/_esm/tempo/KeyAuthorizationManager.js.map +1 -1
- package/_esm/tempo/Relay.js +49 -8
- package/_esm/tempo/Relay.js.map +1 -1
- package/_esm/tempo/Transaction.js +11 -11
- package/_esm/tempo/Transaction.js.map +1 -1
- package/_esm/tempo/Transport.js +22 -12
- package/_esm/tempo/Transport.js.map +1 -1
- package/_esm/tempo/{multisig → accounts}/Config.js +14 -14
- package/_esm/tempo/{multisig → accounts}/Config.js.map +1 -1
- package/_esm/tempo/{multisig → accounts}/Operation.js +17 -17
- package/_esm/tempo/{multisig → accounts}/Operation.js.map +1 -1
- package/_esm/tempo/accounts/Signature.js +9 -0
- package/_esm/tempo/accounts/Signature.js.map +1 -0
- package/_esm/tempo/actions/accessKey.js +499 -48
- package/_esm/tempo/actions/accessKey.js.map +1 -1
- package/_esm/tempo/actions/{multisig.js → accounts.js} +34 -38
- package/_esm/tempo/actions/accounts.js.map +1 -0
- package/_esm/tempo/actions/amm.js +95 -4
- package/_esm/tempo/actions/amm.js.map +1 -1
- package/_esm/tempo/actions/channel.js +191 -7
- package/_esm/tempo/actions/channel.js.map +1 -1
- package/_esm/tempo/actions/dex.js +537 -14
- package/_esm/tempo/actions/dex.js.map +1 -1
- package/_esm/tempo/actions/earn/deployment.js +4 -3
- package/_esm/tempo/actions/earn/deployment.js.map +1 -1
- package/_esm/tempo/actions/earn.js +22 -21
- package/_esm/tempo/actions/earn.js.map +1 -1
- package/_esm/tempo/actions/fee.js +90 -6
- package/_esm/tempo/actions/fee.js.map +1 -1
- package/_esm/tempo/actions/index.js +1 -1
- package/_esm/tempo/actions/index.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +57 -1
- package/_esm/tempo/actions/nonce.js.map +1 -1
- package/_esm/tempo/actions/policy.js +36 -6
- package/_esm/tempo/actions/policy.js.map +1 -1
- package/_esm/tempo/actions/propAmm.js +18 -8
- package/_esm/tempo/actions/propAmm.js.map +1 -1
- package/_esm/tempo/actions/receivePolicy.js +7 -6
- package/_esm/tempo/actions/receivePolicy.js.map +1 -1
- package/_esm/tempo/actions/reward.js +7 -6
- package/_esm/tempo/actions/reward.js.map +1 -1
- package/_esm/tempo/actions/token.js +461 -22
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tempo/actions/validator.js +12 -11
- package/_esm/tempo/actions/validator.js.map +1 -1
- package/_esm/tempo/actions/virtualAddress.js +3 -2
- package/_esm/tempo/actions/virtualAddress.js.map +1 -1
- package/_esm/tempo/actions/zone.js +12 -11
- package/_esm/tempo/actions/zone.js.map +1 -1
- package/_esm/tempo/chainConfig.js +38 -38
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/errors.js +63 -0
- package/_esm/tempo/errors.js.map +1 -1
- package/_esm/tempo/index.js +2 -1
- package/_esm/tempo/index.js.map +1 -1
- package/_esm/tempo/internal/errors.js +51 -0
- package/_esm/tempo/internal/errors.js.map +1 -0
- package/_esm/tempo/internal/relay/{multisig.js → accounts.js} +93 -98
- package/_esm/tempo/internal/relay/accounts.js.map +1 -0
- package/_esm/tempo/internal/relay/feePayer.js +1 -1
- package/_esm/tempo/internal/relay/feePayer.js.map +1 -1
- package/_esm/tempo/internal/relay/keyAuthorization.js +334 -0
- package/_esm/tempo/internal/relay/keyAuthorization.js.map +1 -0
- package/_esm/tempo/internal/relay/plugin.js +15 -6
- package/_esm/tempo/internal/relay/plugin.js.map +1 -1
- package/_esm/tempo/internal/resolveError.js +130 -0
- package/_esm/tempo/internal/resolveError.js.map +1 -0
- package/_esm/tempo/internal/utils.js +2 -0
- package/_esm/tempo/internal/utils.js.map +1 -1
- package/_esm/utils/hash/normalizeSignature.js +3 -2
- package/_esm/utils/hash/normalizeSignature.js.map +1 -1
- package/_esm/utils/rpc/http.js +74 -31
- package/_esm/utils/rpc/http.js.map +1 -1
- package/_esm/utils/rpc/socket.js +3 -1
- package/_esm/utils/rpc/socket.js.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/wallet/waitForCallsStatus.d.ts.map +1 -1
- package/_types/chains/definitions/arcTestnet.d.ts +5 -5
- package/_types/chains/definitions/arcTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/qmsTestnet.d.ts +50 -0
- package/_types/chains/definitions/qmsTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/tempo.d.ts +2 -2
- package/_types/chains/definitions/tempoModerato.d.ts +4 -4
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/transports/ipc.d.ts.map +1 -1
- package/_types/clients/transports/webSocket.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/Abis.d.ts +807 -0
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +28 -28
- package/_types/tempo/Account.d.ts.map +1 -1
- package/_types/tempo/Addresses.d.ts +1 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Client.d.ts +3 -3
- package/_types/tempo/Decorator.d.ts +64 -38
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/ExecutionError.d.ts +3 -1
- package/_types/tempo/ExecutionError.d.ts.map +1 -1
- package/_types/tempo/Formatters.d.ts.map +1 -1
- package/_types/tempo/KeyAuthorizationManager.d.ts +45 -2
- package/_types/tempo/KeyAuthorizationManager.d.ts.map +1 -1
- package/_types/tempo/Relay.d.ts +62 -12
- package/_types/tempo/Relay.d.ts.map +1 -1
- package/_types/tempo/Transaction.d.ts +14 -11
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/Transport.d.ts +20 -7
- package/_types/tempo/Transport.d.ts.map +1 -1
- package/_types/tempo/{multisig → accounts}/Config.d.ts +7 -7
- package/_types/tempo/accounts/Config.d.ts.map +1 -0
- package/_types/tempo/{multisig → accounts}/Operation.d.ts +7 -7
- package/_types/tempo/accounts/Operation.d.ts.map +1 -0
- package/_types/tempo/{multisig → accounts}/Signature.d.ts +1 -1
- package/_types/tempo/accounts/Signature.d.ts.map +1 -0
- package/_types/tempo/actions/accessKey.d.ts +214 -25
- package/_types/tempo/actions/accessKey.d.ts.map +1 -1
- package/_types/tempo/actions/{multisig.d.ts → accounts.d.ts} +31 -29
- package/_types/tempo/actions/accounts.d.ts.map +1 -0
- package/_types/tempo/actions/amm.d.ts +39 -0
- package/_types/tempo/actions/amm.d.ts.map +1 -1
- package/_types/tempo/actions/channel.d.ts +77 -7
- package/_types/tempo/actions/channel.d.ts.map +1 -1
- package/_types/tempo/actions/dex.d.ts +222 -16
- package/_types/tempo/actions/dex.d.ts.map +1 -1
- package/_types/tempo/actions/earn/deployment.d.ts +7 -6
- package/_types/tempo/actions/earn/deployment.d.ts.map +1 -1
- package/_types/tempo/actions/earn.d.ts +15 -14
- package/_types/tempo/actions/earn.d.ts.map +1 -1
- package/_types/tempo/actions/fee.d.ts +32 -6
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/index.d.ts +1 -1
- package/_types/tempo/actions/index.d.ts.map +1 -1
- package/_types/tempo/actions/nonce.d.ts +35 -0
- package/_types/tempo/actions/nonce.d.ts.map +1 -1
- package/_types/tempo/actions/policy.d.ts +29 -8
- package/_types/tempo/actions/policy.d.ts.map +1 -1
- package/_types/tempo/actions/propAmm.d.ts +9 -1
- package/_types/tempo/actions/propAmm.d.ts.map +1 -1
- package/_types/tempo/actions/receivePolicy.d.ts +10 -6
- package/_types/tempo/actions/receivePolicy.d.ts.map +1 -1
- package/_types/tempo/actions/reward.d.ts +7 -3
- package/_types/tempo/actions/reward.d.ts.map +1 -1
- package/_types/tempo/actions/token.d.ts +200 -32
- package/_types/tempo/actions/token.d.ts.map +1 -1
- package/_types/tempo/actions/validator.d.ts +17 -5
- package/_types/tempo/actions/validator.d.ts.map +1 -1
- package/_types/tempo/actions/virtualAddress.d.ts +4 -3
- package/_types/tempo/actions/virtualAddress.d.ts.map +1 -1
- package/_types/tempo/actions/zone.d.ts +10 -9
- package/_types/tempo/actions/zone.d.ts.map +1 -1
- package/_types/tempo/errors.d.ts +63 -1
- package/_types/tempo/errors.d.ts.map +1 -1
- package/_types/tempo/index.d.ts +3 -2
- package/_types/tempo/index.d.ts.map +1 -1
- package/_types/tempo/internal/errors.d.ts +59 -0
- package/_types/tempo/internal/errors.d.ts.map +1 -0
- package/_types/tempo/internal/relay/accounts.d.ts +15 -0
- package/_types/tempo/internal/relay/accounts.d.ts.map +1 -0
- package/_types/tempo/internal/relay/keyAuthorization.d.ts +25 -0
- package/_types/tempo/internal/relay/keyAuthorization.d.ts.map +1 -0
- package/_types/tempo/internal/relay/plugin.d.ts +6 -3
- package/_types/tempo/internal/relay/plugin.d.ts.map +1 -1
- package/_types/tempo/internal/resolveError.d.ts +8 -0
- package/_types/tempo/internal/resolveError.d.ts.map +1 -0
- package/_types/tempo/internal/utils.d.ts.map +1 -1
- package/_types/utils/hash/normalizeSignature.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/_types/utils/rpc/socket.d.ts.map +1 -1
- package/actions/public/waitForTransactionReceipt.ts +8 -2
- package/actions/wallet/waitForCallsStatus.ts +41 -2
- package/chains/definitions/arcTestnet.ts +11 -8
- package/chains/definitions/qmsTestnet.ts +27 -0
- package/chains/definitions/tempo.ts +1 -1
- package/chains/definitions/tempoModerato.ts +2 -2
- package/chains/index.ts +1 -0
- package/clients/transports/ipc.ts +38 -29
- package/clients/transports/webSocket.ts +42 -33
- package/errors/version.ts +1 -1
- package/package.json +2 -2
- package/tempo/Abis.ts +298 -0
- package/tempo/Account.ts +95 -84
- package/tempo/Addresses.ts +1 -0
- package/tempo/Client.ts +3 -3
- package/tempo/Decorator.ts +91 -60
- package/tempo/ExecutionError.ts +102 -4
- package/tempo/Formatters.ts +14 -13
- package/tempo/KeyAuthorizationManager.ts +71 -19
- package/tempo/Relay.ts +70 -14
- package/tempo/Transaction.ts +31 -23
- package/tempo/Transport.ts +49 -21
- package/tempo/{multisig → accounts}/Config.ts +21 -21
- package/tempo/{multisig → accounts}/Operation.ts +26 -26
- package/tempo/{multisig → accounts}/Signature.ts +5 -3
- package/tempo/actions/accessKey.ts +675 -104
- package/tempo/actions/{multisig.ts → accounts.ts} +54 -59
- package/tempo/actions/amm.ts +126 -4
- package/tempo/actions/channel.ts +248 -14
- package/tempo/actions/dex.ts +599 -33
- package/tempo/actions/earn/deployment.ts +11 -9
- package/tempo/actions/earn.ts +40 -35
- package/tempo/actions/fee.ts +111 -9
- package/tempo/actions/index.ts +1 -1
- package/tempo/actions/nonce.ts +86 -1
- package/tempo/actions/policy.ts +66 -14
- package/tempo/actions/propAmm.ts +36 -9
- package/tempo/actions/receivePolicy.ts +26 -15
- package/tempo/actions/reward.ts +17 -9
- package/tempo/actions/token.ts +519 -54
- package/tempo/actions/validator.ts +40 -16
- package/tempo/actions/virtualAddress.ts +7 -5
- package/tempo/actions/zone.ts +25 -20
- package/tempo/chainConfig.ts +52 -52
- package/tempo/errors.ts +114 -1
- package/tempo/index.ts +5 -4
- package/tempo/internal/errors.ts +110 -0
- package/tempo/internal/relay/{multisig.ts → accounts.ts} +118 -118
- package/tempo/internal/relay/feePayer.ts +1 -1
- package/tempo/internal/relay/keyAuthorization.ts +415 -0
- package/tempo/internal/relay/plugin.ts +20 -7
- package/tempo/internal/resolveError.ts +169 -0
- package/tempo/internal/utils.ts +2 -0
- package/utils/hash/normalizeSignature.ts +3 -2
- package/utils/rpc/http.ts +76 -30
- package/utils/rpc/socket.ts +3 -1
- package/_cjs/tempo/actions/multisig.js.map +0 -1
- package/_cjs/tempo/internal/relay/multisig.js.map +0 -1
- package/_cjs/tempo/multisig/Signature.js.map +0 -1
- package/_esm/tempo/actions/multisig.js.map +0 -1
- package/_esm/tempo/internal/relay/multisig.js.map +0 -1
- package/_esm/tempo/multisig/Signature.js +0 -9
- package/_esm/tempo/multisig/Signature.js.map +0 -1
- package/_types/tempo/actions/multisig.d.ts.map +0 -1
- package/_types/tempo/internal/relay/multisig.d.ts +0 -4
- package/_types/tempo/internal/relay/multisig.d.ts.map +0 -1
- package/_types/tempo/multisig/Config.d.ts.map +0 -1
- package/_types/tempo/multisig/Operation.d.ts.map +0 -1
- package/_types/tempo/multisig/Signature.d.ts.map +0 -1
|
@@ -31,7 +31,7 @@ type RelayProxyParameters = {
|
|
|
31
31
|
};
|
|
32
32
|
export type FeePayer = Transport<typeof withFeePayer.type>;
|
|
33
33
|
export type Relay = Transport<typeof withRelay.type, {
|
|
34
|
-
|
|
34
|
+
accounts: true;
|
|
35
35
|
}>;
|
|
36
36
|
/**
|
|
37
37
|
* Creates a relay transport that routes requests between
|
|
@@ -39,8 +39,10 @@ export type Relay = Transport<typeof withRelay.type, {
|
|
|
39
39
|
*
|
|
40
40
|
* All `eth_fillTransaction` requests are sent to the relay with the request's
|
|
41
41
|
* `feePayer` value preserved so the relay can decide whether to sponsor the transaction.
|
|
42
|
-
*
|
|
42
|
+
* Owner approvals, configs, operations, and operation-aware transaction
|
|
43
43
|
* lookups are also sent to the relay so it can coordinate approvals in its store.
|
|
44
|
+
* Signed key authorizations are saved to relays with key authorization storage
|
|
45
|
+
* so they can attach them to the access key's next transaction.
|
|
44
46
|
*
|
|
45
47
|
* The policy parameter controls how the relay handles sponsored transactions:
|
|
46
48
|
* - `'sign-only'`: Relay co-signs the transaction and returns it to the client transport, which then broadcasts it via the default transport
|
|
@@ -55,20 +57,31 @@ export type Relay = Transport<typeof withRelay.type, {
|
|
|
55
57
|
* @returns A relay transport.
|
|
56
58
|
*/
|
|
57
59
|
export declare function withRelay<transport extends Transport, const plugins extends readonly Relay_.Plugin[] = readonly []>(defaultTransport: transport, options: withRelay.LocalOptions<plugins>): withRelay.LocalReturnValue<transport, plugins>;
|
|
58
|
-
export declare function withRelay(defaultTransport: Transport, relayTransport: Transport, parameters?: withRelay.Parameters): withRelay.ReturnValue
|
|
60
|
+
export declare function withRelay<const parameters extends withRelay.Parameters = {}>(defaultTransport: Transport, relayTransport: Transport, parameters?: parameters | withRelay.Parameters): withRelay.ReturnValue<parameters>;
|
|
59
61
|
export declare namespace withRelay {
|
|
60
62
|
const type = "relay";
|
|
61
|
-
type Parameters = RelayProxyParameters
|
|
63
|
+
type Parameters = RelayProxyParameters & {
|
|
64
|
+
/** Whether the relay stores key authorizations with `Relay.keyAuthorization`. Defaults to `false`. */
|
|
65
|
+
keyAuthorization?: boolean | undefined;
|
|
66
|
+
};
|
|
62
67
|
/** Plugins applied directly to the default transport. */
|
|
63
68
|
type LocalOptions<plugins extends readonly Relay_.Plugin[] = readonly Relay_.Plugin[]> = Pick<Relay_.handleRequest.Options, 'resolveTokens'> & {
|
|
64
69
|
/** Ordered relay plugins. Defaults to an empty list. */
|
|
65
70
|
plugins?: plugins | undefined;
|
|
66
71
|
};
|
|
67
72
|
/** Wrapped transport preserving its attributes and RPC request schema. */
|
|
68
|
-
type LocalReturnValue<transport extends Transport, plugins extends readonly Relay_.Plugin[] = readonly []> = transport extends Transport<infer type, infer attributes, infer request> ? Transport<type, attributes & (Extract<plugins[number], Relay_.
|
|
69
|
-
|
|
73
|
+
type LocalReturnValue<transport extends Transport, plugins extends readonly Relay_.Plugin[] = readonly []> = transport extends Transport<infer type, infer attributes, infer request> ? Transport<type, attributes & (Extract<plugins[number], Relay_.accounts.ReturnType> extends never ? {} : {
|
|
74
|
+
accounts: true;
|
|
75
|
+
}) & (Extract<plugins[number], Relay_.keyAuthorization.ReturnType> extends never ? {} : {
|
|
76
|
+
keyAuthorization: true;
|
|
70
77
|
}), request> : never;
|
|
71
|
-
|
|
78
|
+
/** Remote relay transport, advertising key authorization storage when enabled. */
|
|
79
|
+
type ReturnValue<parameters extends Parameters = {}> = parameters extends {
|
|
80
|
+
keyAuthorization: true;
|
|
81
|
+
} ? Transport<typeof withRelay.type, {
|
|
82
|
+
accounts: true;
|
|
83
|
+
keyAuthorization: true;
|
|
84
|
+
}> : Relay;
|
|
72
85
|
}
|
|
73
86
|
/** @deprecated Use `withRelay` instead. */
|
|
74
87
|
export declare function withFeePayer(defaultTransport: Transport, relayTransport: Transport, parameters?: withFeePayer.Parameters): withFeePayer.ReturnValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transport.d.ts","sourceRoot":"","sources":["../../tempo/Transport.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAEzB,MAAM,+BAA+B,CAAA;AAStC,OAAO,KAAK,KAAK,MAAM,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAIvC,MAAM,MAAM,U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IAC7B,MAAM,IAAI,aAAa,CAAA;IAE9B,KAAY,UAAU,GAAG;QACvB,0FAA0F;QAC1F,MAAM,CAAC,EAAE,WAAW,GAAG,oBAAoB,GAAG,SAAS,CAAA;KACxD,CAAA;IAED,KAAY,WAAW,GAAG,QAAQ,CAAA;CACnC;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,qBAAqB,CAAC,UAAU,GACxC,SAAS,CAsFX;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,KAAY,UAAU,GAAG;QACvB,OAAO,EAAE,YAAY,CAAA;KACtB,CAAA;CACF"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import * as Address from 'ox/Address';
|
|
2
2
|
import type * as Hex from 'ox/Hex';
|
|
3
|
-
import {
|
|
3
|
+
import { AccountConfig } from 'ox/tempo';
|
|
4
4
|
import type * as Store from '../Store.js';
|
|
5
|
-
/** Reads a cached
|
|
6
|
-
export declare function read(store: Store.Store, options: read.Options): Promise<
|
|
5
|
+
/** Reads a cached account config. */
|
|
6
|
+
export declare function read(store: Store.Store, options: read.Options): Promise<AccountConfig.Config | null>;
|
|
7
7
|
export declare namespace read {
|
|
8
8
|
/** Parameters for {@link read}. */
|
|
9
9
|
type Options = {
|
|
10
|
-
/**
|
|
10
|
+
/** Configurable account address. */
|
|
11
11
|
address: Address.Address;
|
|
12
12
|
/** Config commitment observed onchain. */
|
|
13
13
|
commitment: Hex.Hex;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
/** Writes a validated
|
|
16
|
+
/** Writes a validated account config. */
|
|
17
17
|
export declare function write(store: Store.Store, options: write.Options): Promise<void>;
|
|
18
18
|
export declare namespace write {
|
|
19
19
|
/** Parameters for {@link write}. */
|
|
20
20
|
type Options = {
|
|
21
|
-
/**
|
|
21
|
+
/** Configurable account address. */
|
|
22
22
|
address: Address.Address;
|
|
23
23
|
/** Config commitment used for lookup. */
|
|
24
24
|
commitment: Hex.Hex;
|
|
25
25
|
/** Complete config. */
|
|
26
|
-
config:
|
|
26
|
+
config: AccountConfig.Config;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../tempo/accounts/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AAErC,OAAO,KAAK,KAAK,GAAG,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGxC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAA;AAQzC,qCAAqC;AACrC,wBAAsB,IAAI,CACxB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,IAAI,CAAC,OAAO,GACpB,OAAO,CAAC,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,CAOtC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,mCAAmC;IACnC,KAAY,OAAO,GAAG;QACpB,oCAAoC;QACpC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAA;QACxB,0CAA0C;QAC1C,UAAU,EAAE,GAAG,CAAC,GAAG,CAAA;KACpB,CAAA;CACF;AAED,yCAAyC;AACzC,wBAAsB,KAAK,CACzB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,GACrB,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,oCAAoC;IACpC,KAAY,OAAO,GAAG;QACpB,oCAAoC;QACpC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAA;QACxB,yCAAyC;QACzC,UAAU,EAAE,GAAG,CAAC,GAAG,CAAA;QACnB,uBAAuB;QACvB,MAAM,EAAE,aAAa,CAAC,MAAM,CAAA;KAC7B,CAAA;CACF"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type * as Hex from 'ox/Hex';
|
|
2
|
-
import {
|
|
2
|
+
import { AccountOperation, TxEnvelopeTempo } from 'ox/tempo';
|
|
3
3
|
import { BaseError } from '../../errors/base.js';
|
|
4
4
|
import type * as Store from '../Store.js';
|
|
5
|
-
/** Reads a persisted
|
|
6
|
-
export declare function read(store: Store.Store, hash: Hex.Hex): Promise<
|
|
7
|
-
/** Atomically updates
|
|
8
|
-
export declare function update(store: Store.Atomic, hash: Hex.Hex, update: (operation:
|
|
5
|
+
/** Reads a persisted account operation. */
|
|
6
|
+
export declare function read(store: Store.Store, hash: Hex.Hex): Promise<AccountOperation.Operation | null>;
|
|
7
|
+
/** Atomically updates an account operation. */
|
|
8
|
+
export declare function update(store: Store.Atomic, hash: Hex.Hex, update: (operation: AccountOperation.Operation | null) => AccountOperation.Operation | Promise<AccountOperation.Operation>): Promise<AccountOperation.Operation>;
|
|
9
9
|
/** Reads a submission hash without rebuilding its envelope from mutable configurations. */
|
|
10
|
-
export declare function readSubmission(store: Store.Store, operation:
|
|
10
|
+
export declare function readSubmission(store: Store.Store, operation: AccountOperation.TransactionOperation, submissionId: Hex.Hex): Promise<Hex.Hex | null>;
|
|
11
11
|
/** Removes a persisted final envelope after its submission is settled. */
|
|
12
12
|
export declare function removeSubmission(store: Store.Store, hash: Hex.Hex, submissionId: Hex.Hex): Promise<void>;
|
|
13
13
|
/** Persists the final envelope before broadcast so recovery uses the exact transaction. */
|
|
14
14
|
export declare function writeSubmission(store: Store.Atomic, hash: Hex.Hex, submissionId: Hex.Hex, transaction: TxEnvelopeTempo.Serialized): Promise<void>;
|
|
15
|
-
/** Thrown when a stored
|
|
15
|
+
/** Thrown when a stored account operation is malformed or unsupported. */
|
|
16
16
|
export declare class InvalidStoreValueError extends BaseError {
|
|
17
17
|
/** Creates an invalid store value error. */
|
|
18
18
|
constructor(options?: InvalidStoreValueError.Options);
|
|
@@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KAAK,CAAC,MAAM,EACnB,IAAI,EAAE,GAAG,CAAC,GAAG,EACb,YAAY,EAAE,GAAG,CAAC,GAAG,EACrB,WAAW,EAAE,eAAe,CAAC,UAAU,GACtC,OAAO,CAAC,IAAI,CAAC,CAkBf;AA4DD,0EAA0E;AAC1E,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,4CAA4C;gBAChC,OAAO,GAAE,sBAAsB,CAAC,OAAY;CAMzD;AAED,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,kCAAkC;IAClC,KAAY,OAAO,GAAG;QACpB,wBAAwB;QACxB,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAC5B,CAAA;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SignatureEnvelope } from 'ox/tempo';
|
|
2
|
-
/** Parses a primitive
|
|
2
|
+
/** Parses a primitive owner approval. */
|
|
3
3
|
export declare function parseApproval(signature: SignatureEnvelope.Serialized): SignatureEnvelope.Primitive;
|
|
4
4
|
//# sourceMappingURL=Signature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Signature.d.ts","sourceRoot":"","sources":["../../../tempo/accounts/Signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,yCAAyC;AACzC,wBAAgB,aAAa,CAC3B,SAAS,EAAE,iBAAiB,CAAC,UAAU,GACtC,iBAAiB,CAAC,SAAS,CAO7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'abitype';
|
|
2
|
-
import {
|
|
2
|
+
import { AccountOperation, KeyAuthorization, SignatureEnvelope } from 'ox/tempo';
|
|
3
3
|
import type { Account } from '../../accounts/types.js';
|
|
4
4
|
import type { ReadContractReturnType } from '../../actions/public/readContract.js';
|
|
5
5
|
import type { WatchContractEventParameters } from '../../actions/public/watchContractEvent.js';
|
|
@@ -17,10 +17,19 @@ import type { Log, Log as viem_Log } from '../../types/log.js';
|
|
|
17
17
|
import type { Hex } from '../../types/misc.js';
|
|
18
18
|
import type { Compute, OneOf, UnionOmit } from '../../types/utils.js';
|
|
19
19
|
import * as Abis from '../Abis.js';
|
|
20
|
-
import type { AccessKeyAccount,
|
|
20
|
+
import type { AccessKeyAccount, ConfigurableAccount, RootAccount } from '../Account.js';
|
|
21
21
|
import { resolveAccessKey, signKeyAuthorization } from '../Account.js';
|
|
22
|
+
import type * as Errors from '../errors.js';
|
|
23
|
+
import { TempoExecutionError } from '../errors.js';
|
|
24
|
+
import { type Resolvers } from '../internal/errors.js';
|
|
22
25
|
import type { GetAccountParameter, ReadParameters, WriteParameters } from '../internal/types.js';
|
|
23
26
|
import type { TransactionReceipt } from '../Transaction.js';
|
|
27
|
+
/** @internal */
|
|
28
|
+
declare const signatureTypes: {
|
|
29
|
+
readonly 0: "secp256k1";
|
|
30
|
+
readonly 1: "p256";
|
|
31
|
+
readonly 2: "webAuthn";
|
|
32
|
+
};
|
|
24
33
|
/**
|
|
25
34
|
* Authorizes an access key by signing a key authorization and sending a transaction.
|
|
26
35
|
*
|
|
@@ -91,7 +100,7 @@ export declare namespace authorize {
|
|
|
91
100
|
witness?: Hex | undefined;
|
|
92
101
|
};
|
|
93
102
|
type ReturnValue = WriteContractReturnType;
|
|
94
|
-
type ErrorType = BaseErrorType;
|
|
103
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
95
104
|
/** @internal */
|
|
96
105
|
function inner<action extends typeof sendTransaction | typeof sendTransactionSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: authorize.Parameters<chain, account>): Promise<ReturnType<action>>;
|
|
97
106
|
function extractEvent(logs: Log[]): Log<bigint, number, false, undefined, true, readonly [{
|
|
@@ -685,7 +694,7 @@ export declare namespace authorizeSync {
|
|
|
685
694
|
}> & {
|
|
686
695
|
receipt: TransactionReceipt;
|
|
687
696
|
}>;
|
|
688
|
-
type ErrorType = BaseErrorType;
|
|
697
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
689
698
|
}
|
|
690
699
|
/**
|
|
691
700
|
* Burns a key-authorization witness, invalidating any authorization bound to
|
|
@@ -727,7 +736,7 @@ export declare namespace burnWitness {
|
|
|
727
736
|
witness: Hex;
|
|
728
737
|
};
|
|
729
738
|
type ReturnValue = WriteContractReturnType;
|
|
730
|
-
type ErrorType = BaseErrorType;
|
|
739
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
731
740
|
/** @internal */
|
|
732
741
|
function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: burnWitness.Parameters<chain, account>): Promise<ReturnType<action>>;
|
|
733
742
|
/**
|
|
@@ -1364,7 +1373,7 @@ export declare namespace burnWitnessSync {
|
|
|
1364
1373
|
}> & {
|
|
1365
1374
|
receipt: TransactionReceipt;
|
|
1366
1375
|
}>;
|
|
1367
|
-
type ErrorType = BaseErrorType;
|
|
1376
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
1368
1377
|
}
|
|
1369
1378
|
/**
|
|
1370
1379
|
* Gets access key information.
|
|
@@ -1458,6 +1467,7 @@ export declare namespace getMetadata {
|
|
|
1458
1467
|
data: Hex;
|
|
1459
1468
|
to: Address;
|
|
1460
1469
|
};
|
|
1470
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
1461
1471
|
}
|
|
1462
1472
|
/**
|
|
1463
1473
|
* Gets the remaining spending limit for a key-token pair.
|
|
@@ -1574,6 +1584,7 @@ export declare namespace getRemainingLimit {
|
|
|
1574
1584
|
data: Hex;
|
|
1575
1585
|
to: Address;
|
|
1576
1586
|
};
|
|
1587
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
1577
1588
|
}
|
|
1578
1589
|
/**
|
|
1579
1590
|
* Checks whether an access key is an admin key for an account.
|
|
@@ -1645,6 +1656,7 @@ export declare namespace isAdmin {
|
|
|
1645
1656
|
data: Hex;
|
|
1646
1657
|
to: Address;
|
|
1647
1658
|
};
|
|
1659
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
1648
1660
|
}
|
|
1649
1661
|
/**
|
|
1650
1662
|
* Checks whether a key-authorization witness has been burned for an account.
|
|
@@ -1711,6 +1723,7 @@ export declare namespace isWitnessBurned {
|
|
|
1711
1723
|
data: Hex;
|
|
1712
1724
|
to: Address;
|
|
1713
1725
|
};
|
|
1726
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
1714
1727
|
}
|
|
1715
1728
|
/**
|
|
1716
1729
|
* Revokes an authorized access key.
|
|
@@ -1745,7 +1758,7 @@ export declare namespace revoke {
|
|
|
1745
1758
|
accessKey: Address | AccessKeyAccount;
|
|
1746
1759
|
};
|
|
1747
1760
|
type ReturnValue = WriteContractReturnType;
|
|
1748
|
-
type ErrorType = BaseErrorType;
|
|
1761
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
1749
1762
|
/** @internal */
|
|
1750
1763
|
function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: revoke.Parameters<chain, account>): Promise<ReturnType<action>>;
|
|
1751
1764
|
/**
|
|
@@ -2382,7 +2395,7 @@ export declare namespace revokeSync {
|
|
|
2382
2395
|
}> & {
|
|
2383
2396
|
receipt: TransactionReceipt;
|
|
2384
2397
|
}>;
|
|
2385
|
-
type ErrorType = BaseErrorType;
|
|
2398
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
2386
2399
|
}
|
|
2387
2400
|
/**
|
|
2388
2401
|
* Prepares a key authorization for signing.
|
|
@@ -2426,8 +2439,8 @@ export declare namespace prepareAuthorization {
|
|
|
2426
2439
|
limit: bigint;
|
|
2427
2440
|
period?: number | undefined;
|
|
2428
2441
|
}[] | undefined;
|
|
2429
|
-
/** @internal Prepared
|
|
2430
|
-
|
|
2442
|
+
/** @internal Prepared configurable account state. */
|
|
2443
|
+
configurable?: signKeyAuthorization.Parameters['configurable'];
|
|
2431
2444
|
/** Call scopes restricting which contracts/selectors this key can call. */
|
|
2432
2445
|
scopes?: KeyAuthorization.Scope[] | undefined;
|
|
2433
2446
|
/**
|
|
@@ -2445,41 +2458,83 @@ export declare namespace prepareAuthorization {
|
|
|
2445
2458
|
type ReturnValue = Compute<Omit<Parameters<Account | undefined>, 'account' | 'chainId'> & {
|
|
2446
2459
|
account: Account;
|
|
2447
2460
|
chainId: number;
|
|
2448
|
-
|
|
2449
|
-
/** Payload that the authorizing account or
|
|
2461
|
+
configurable: signKeyAuthorization.Parameters['configurable'];
|
|
2462
|
+
/** Payload that the authorizing account or owners sign. */
|
|
2450
2463
|
signPayload: Hex;
|
|
2451
2464
|
}>;
|
|
2452
2465
|
}
|
|
2466
|
+
/**
|
|
2467
|
+
* Saves a signed key authorization to a relay with key authorization storage.
|
|
2468
|
+
*
|
|
2469
|
+
* The relay attaches the authorization to the access key's next transaction until
|
|
2470
|
+
* the key is active onchain. Use this for authorizations signed outside
|
|
2471
|
+
* {@link signAuthorization}, such as on another device. Requires a relay running the
|
|
2472
|
+
* `Relay.keyAuthorization` plugin.
|
|
2473
|
+
*
|
|
2474
|
+
* @example
|
|
2475
|
+
* ```ts
|
|
2476
|
+
* import { createClient, http } from 'viem'
|
|
2477
|
+
* import { tempo } from 'viem/chains'
|
|
2478
|
+
* import { Actions, withRelay } from 'viem/tempo'
|
|
2479
|
+
*
|
|
2480
|
+
* const client = createClient({
|
|
2481
|
+
* chain: tempo,
|
|
2482
|
+
* transport: withRelay(http(), http('https://relay.example.com'), {
|
|
2483
|
+
* keyAuthorization: true,
|
|
2484
|
+
* }),
|
|
2485
|
+
* })
|
|
2486
|
+
*
|
|
2487
|
+
* await Actions.accessKey.saveAuthorization(client, {
|
|
2488
|
+
* keyAuthorization,
|
|
2489
|
+
* })
|
|
2490
|
+
* ```
|
|
2491
|
+
*
|
|
2492
|
+
* @param client - Client.
|
|
2493
|
+
* @param parameters - Parameters.
|
|
2494
|
+
*/
|
|
2495
|
+
export declare function saveAuthorization<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: saveAuthorization.Parameters): Promise<saveAuthorization.ReturnValue>;
|
|
2496
|
+
export declare namespace saveAuthorization {
|
|
2497
|
+
type Parameters = {
|
|
2498
|
+
/** Signed key authorization to save. */
|
|
2499
|
+
keyAuthorization: KeyAuthorization.Signed;
|
|
2500
|
+
};
|
|
2501
|
+
type ReturnValue = void;
|
|
2502
|
+
type ErrorType = BaseErrorType;
|
|
2503
|
+
}
|
|
2453
2504
|
/**
|
|
2454
2505
|
* Signs a key authorization for an access key.
|
|
2455
2506
|
*
|
|
2456
2507
|
* Use {@link prepareAuthorization} before this action when signing requires
|
|
2457
2508
|
* transient user activation.
|
|
2458
2509
|
*
|
|
2510
|
+
* When the client transport is a relay with the `Relay.keyAuthorization` plugin,
|
|
2511
|
+
* an authorization signed by the account is saved to the relay, which attaches it
|
|
2512
|
+
* to the access key's next transaction.
|
|
2513
|
+
*
|
|
2459
2514
|
* @param client - Client.
|
|
2460
2515
|
* @param parameters - Authorization fields, or a stored operation hash.
|
|
2461
|
-
* @returns A signed key authorization with
|
|
2516
|
+
* @returns A signed key authorization with account operation metadata when coordinated.
|
|
2462
2517
|
*/
|
|
2463
2518
|
export declare function signAuthorization<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: signAuthorization.CoordinatedParameters): Promise<signAuthorization.CoordinatedReturnValue>;
|
|
2464
2519
|
export declare function signAuthorization<chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, parameters: signAuthorization.LocalParameters<account>): Promise<signAuthorization.ReturnValue>;
|
|
2465
2520
|
export declare namespace signAuthorization {
|
|
2466
2521
|
/** Initial coordinated key authorization parameters. */
|
|
2467
|
-
type CoordinatedInitialParameters = Omit<prepareAuthorization.Parameters<Account>, 'account' | '
|
|
2468
|
-
/**
|
|
2469
|
-
account: Address |
|
|
2522
|
+
type CoordinatedInitialParameters = Omit<prepareAuthorization.Parameters<Account>, 'account' | 'configurable'> & {
|
|
2523
|
+
/** Configurable account being authorized. */
|
|
2524
|
+
account: Address | ConfigurableAccount;
|
|
2470
2525
|
/** Local owner that approves the authorization. */
|
|
2471
2526
|
owner: RootAccount;
|
|
2472
2527
|
};
|
|
2473
2528
|
/** Coordinated key authorization parameters. */
|
|
2474
2529
|
type CoordinatedParameters = OneOf<CoordinatedInitialParameters | {
|
|
2475
|
-
/** Stored
|
|
2530
|
+
/** Stored account operation hash. */
|
|
2476
2531
|
hash: Hex;
|
|
2477
2532
|
/** Local owner that approves the authorization. */
|
|
2478
2533
|
owner: RootAccount;
|
|
2479
2534
|
}>;
|
|
2480
2535
|
/** Locally signed key authorization parameters. */
|
|
2481
2536
|
type LocalParameters<account extends Account | undefined = Account | undefined> = prepareAuthorization.Parameters<account> & {
|
|
2482
|
-
/** Serialized approvals from external
|
|
2537
|
+
/** Serialized approvals from external owners. */
|
|
2483
2538
|
signatures?: readonly SignatureEnvelope.Serialized[] | undefined;
|
|
2484
2539
|
};
|
|
2485
2540
|
/** Parameters for {@link signAuthorization}. */
|
|
@@ -2488,12 +2543,12 @@ export declare namespace signAuthorization {
|
|
|
2488
2543
|
type ReturnValue = Awaited<ReturnType<typeof signKeyAuthorization>>;
|
|
2489
2544
|
/** Coordinated return value for {@link signAuthorization}. */
|
|
2490
2545
|
type CoordinatedReturnValue = Compute<ReturnValue & {
|
|
2491
|
-
/** Deterministic
|
|
2546
|
+
/** Deterministic account operation hash. */
|
|
2492
2547
|
hash: Hex;
|
|
2493
|
-
/** Current
|
|
2494
|
-
|
|
2495
|
-
/** Current
|
|
2496
|
-
status:
|
|
2548
|
+
/** Current account operation. */
|
|
2549
|
+
operation: AccountOperation.KeyAuthorizationOperation;
|
|
2550
|
+
/** Current account operation status. */
|
|
2551
|
+
status: AccountOperation.KeyAuthorizationOperation['status'];
|
|
2497
2552
|
}>;
|
|
2498
2553
|
/** Error type for {@link signAuthorization}. */
|
|
2499
2554
|
type ErrorType = BaseErrorType;
|
|
@@ -2537,7 +2592,7 @@ export declare namespace updateLimit {
|
|
|
2537
2592
|
limit: bigint;
|
|
2538
2593
|
};
|
|
2539
2594
|
type ReturnValue = WriteContractReturnType;
|
|
2540
|
-
type ErrorType = BaseErrorType;
|
|
2595
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
2541
2596
|
/** @internal */
|
|
2542
2597
|
function inner<action extends typeof writeContract | typeof writeContractSync, chain extends Chain | undefined, account extends Account | undefined>(action: action, client: Client<Transport, chain, account>, parameters: updateLimit.Parameters<chain, account>): Promise<ReturnType<action>>;
|
|
2543
2598
|
/**
|
|
@@ -3192,7 +3247,7 @@ export declare namespace updateLimitSync {
|
|
|
3192
3247
|
/** The transaction receipt. */
|
|
3193
3248
|
receipt: TransactionReceipt;
|
|
3194
3249
|
};
|
|
3195
|
-
type ErrorType = BaseErrorType;
|
|
3250
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
3196
3251
|
}
|
|
3197
3252
|
/**
|
|
3198
3253
|
* Watches for admin key authorization events.
|
|
@@ -3417,5 +3472,139 @@ export declare namespace verifyHash {
|
|
|
3417
3472
|
data: Hex;
|
|
3418
3473
|
to: Address;
|
|
3419
3474
|
};
|
|
3475
|
+
type ErrorType = Errors.ExecutionErrorType | BaseErrorType;
|
|
3476
|
+
}
|
|
3477
|
+
/** Errors this module throws for decoded Tempo errors. Narrow with `error.name`. */
|
|
3478
|
+
export type ExecutionErrorType = AccessKeyAlreadyExistsErrorType | AccessKeyCallNotAllowedErrorType | AccessKeyErrorType | AccessKeyExpiredErrorType | AccessKeyExpiryInPastErrorType | AccessKeySignatureTypeMismatchErrorType | AccessKeySpendingLimitExceededErrorType;
|
|
3479
|
+
/** `AccessKeyError` with a literal `name`, for narrowing. */
|
|
3480
|
+
export type AccessKeyErrorType = AccessKeyError & {
|
|
3481
|
+
name: 'AccessKeyError';
|
|
3482
|
+
};
|
|
3483
|
+
/** Thrown when an access key fails an `AccountKeychain` check. */
|
|
3484
|
+
export declare class AccessKeyError<decoded extends Errors.TempoExecutionError.Decoded = Errors.TempoExecutionError.Decoded> extends TempoExecutionError<decoded> {
|
|
3485
|
+
/** Root account that owns the access key. */
|
|
3486
|
+
account: Address;
|
|
3487
|
+
/** Access key address. */
|
|
3488
|
+
accessKey: Address;
|
|
3489
|
+
constructor(parameters: AccessKeyError.Parameters, options?: Errors.TempoExecutionError.Options);
|
|
3490
|
+
}
|
|
3491
|
+
export declare namespace AccessKeyError {
|
|
3492
|
+
/** Constructor parameters. */
|
|
3493
|
+
type Parameters = Errors.TempoExecutionError.Parameters & {
|
|
3494
|
+
/** Root account that owns the access key. */
|
|
3495
|
+
account: Address;
|
|
3496
|
+
/** Access key address. */
|
|
3497
|
+
accessKey: Address;
|
|
3498
|
+
};
|
|
3499
|
+
}
|
|
3500
|
+
/** `AccessKeySpendingLimitExceededError` with a literal `name`, for narrowing. */
|
|
3501
|
+
export type AccessKeySpendingLimitExceededErrorType = AccessKeySpendingLimitExceededError & {
|
|
3502
|
+
name: 'AccessKeySpendingLimitExceededError';
|
|
3503
|
+
};
|
|
3504
|
+
/** Thrown when a transfer, approval, or fee payment exceeds an access key's spending limit. */
|
|
3505
|
+
export declare class AccessKeySpendingLimitExceededError extends AccessKeyError<Errors.TempoExecutionError.Decoded<'SpendingLimitExceeded'>> {
|
|
3506
|
+
/** Amount the call tried to spend, when known. */
|
|
3507
|
+
amount: bigint | undefined;
|
|
3508
|
+
/** Token decimals, when known. */
|
|
3509
|
+
decimals: number | undefined;
|
|
3510
|
+
/** Whether the fee payment, rather than the call, exceeded the limit. */
|
|
3511
|
+
fee: boolean;
|
|
3512
|
+
/** End of the current period (Unix seconds) for periodic limits, when known. */
|
|
3513
|
+
periodEnd: bigint | undefined;
|
|
3514
|
+
/** Remaining limit for `token`, when known. */
|
|
3515
|
+
remaining: bigint | undefined;
|
|
3516
|
+
/** Token the limit applies to, when known. */
|
|
3517
|
+
token: Address | undefined;
|
|
3518
|
+
constructor(parameters: AccessKeySpendingLimitExceededError.Parameters);
|
|
3519
|
+
}
|
|
3520
|
+
export declare namespace AccessKeySpendingLimitExceededError {
|
|
3521
|
+
/** Constructor parameters. */
|
|
3522
|
+
type Parameters = AccessKeyError.Parameters & {
|
|
3523
|
+
/** Amount the call tried to spend, when known. */
|
|
3524
|
+
amount?: bigint | undefined;
|
|
3525
|
+
/** Token decimals, when known. */
|
|
3526
|
+
decimals?: number | undefined;
|
|
3527
|
+
/** Whether the fee payment, rather than the call, exceeded the limit. */
|
|
3528
|
+
fee: boolean;
|
|
3529
|
+
/** End of the current period (Unix seconds) for periodic limits, when known. */
|
|
3530
|
+
periodEnd?: bigint | undefined;
|
|
3531
|
+
/** Remaining limit for `token`, when known. */
|
|
3532
|
+
remaining?: bigint | undefined;
|
|
3533
|
+
/** Token the limit applies to, when known. */
|
|
3534
|
+
token?: Address | undefined;
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
/** `AccessKeyExpiredError` with a literal `name`, for narrowing. */
|
|
3538
|
+
export type AccessKeyExpiredErrorType = AccessKeyExpiredError & {
|
|
3539
|
+
name: 'AccessKeyExpiredError';
|
|
3540
|
+
};
|
|
3541
|
+
/** Thrown when a transaction is signed with an expired access key. */
|
|
3542
|
+
export declare class AccessKeyExpiredError extends AccessKeyError<Errors.TempoExecutionError.Decoded<'KeyExpired'>> {
|
|
3543
|
+
/** Expiry (Unix seconds), when known. */
|
|
3544
|
+
expiry: bigint | undefined;
|
|
3545
|
+
constructor(parameters: AccessKeyError.Parameters & {
|
|
3546
|
+
expiry?: bigint | undefined;
|
|
3547
|
+
});
|
|
3548
|
+
}
|
|
3549
|
+
/** `AccessKeyCallNotAllowedError` with a literal `name`, for narrowing. */
|
|
3550
|
+
export type AccessKeyCallNotAllowedErrorType = AccessKeyCallNotAllowedError & {
|
|
3551
|
+
name: 'AccessKeyCallNotAllowedError';
|
|
3552
|
+
};
|
|
3553
|
+
/** Thrown when an access key's scopes do not allow a call. */
|
|
3554
|
+
export declare class AccessKeyCallNotAllowedError extends AccessKeyError<Errors.TempoExecutionError.Decoded<'CallNotAllowed'>> {
|
|
3555
|
+
/** Function selector of the rejected call, when known. */
|
|
3556
|
+
selector: Hex | undefined;
|
|
3557
|
+
/** Target of the rejected call, when known. */
|
|
3558
|
+
target: Address | undefined;
|
|
3559
|
+
constructor(parameters: AccessKeyError.Parameters & {
|
|
3560
|
+
selector?: Hex | undefined;
|
|
3561
|
+
target?: Address | undefined;
|
|
3562
|
+
});
|
|
3563
|
+
}
|
|
3564
|
+
/** `AccessKeyAlreadyExistsError` with a literal `name`, for narrowing. */
|
|
3565
|
+
export type AccessKeyAlreadyExistsErrorType = AccessKeyAlreadyExistsError & {
|
|
3566
|
+
name: 'AccessKeyAlreadyExistsError';
|
|
3567
|
+
};
|
|
3568
|
+
/** Thrown when authorizing an access key that is already authorized. */
|
|
3569
|
+
export declare class AccessKeyAlreadyExistsError extends AccessKeyError<Errors.TempoExecutionError.Decoded<'KeyAlreadyExists'>> {
|
|
3570
|
+
/** Expiry (Unix seconds) of the existing key, when known. */
|
|
3571
|
+
expiry: bigint | undefined;
|
|
3572
|
+
/** Whether the existing key enforces spending limits, when known. */
|
|
3573
|
+
limited: boolean | undefined;
|
|
3574
|
+
constructor(parameters: AccessKeyError.Parameters & {
|
|
3575
|
+
expiry?: bigint | undefined;
|
|
3576
|
+
limited?: boolean | undefined;
|
|
3577
|
+
});
|
|
3578
|
+
}
|
|
3579
|
+
/** `AccessKeySignatureTypeMismatchError` with a literal `name`, for narrowing. */
|
|
3580
|
+
export type AccessKeySignatureTypeMismatchErrorType = AccessKeySignatureTypeMismatchError & {
|
|
3581
|
+
name: 'AccessKeySignatureTypeMismatchError';
|
|
3582
|
+
};
|
|
3583
|
+
/** Thrown when an access key signs with a different key type than it was authorized with. */
|
|
3584
|
+
export declare class AccessKeySignatureTypeMismatchError extends AccessKeyError<Errors.TempoExecutionError.Decoded<'SignatureTypeMismatch'>> {
|
|
3585
|
+
/** Key type the access key was authorized with. */
|
|
3586
|
+
expected: KeyType | undefined;
|
|
3587
|
+
/** Key type of the signature. */
|
|
3588
|
+
actual: KeyType | undefined;
|
|
3589
|
+
constructor(parameters: AccessKeyError.Parameters);
|
|
3590
|
+
}
|
|
3591
|
+
/** `AccessKeyExpiryInPastError` with a literal `name`, for narrowing. */
|
|
3592
|
+
export type AccessKeyExpiryInPastErrorType = AccessKeyExpiryInPastError & {
|
|
3593
|
+
name: 'AccessKeyExpiryInPastError';
|
|
3594
|
+
};
|
|
3595
|
+
/** Thrown when authorizing an access key with an expiry that has passed or is too soon. */
|
|
3596
|
+
export declare class AccessKeyExpiryInPastError extends AccessKeyError<Errors.TempoExecutionError.Decoded<'ExpiryInPast'>> {
|
|
3597
|
+
/** Requested expiry (Unix seconds), when known. */
|
|
3598
|
+
expiry: bigint | undefined;
|
|
3599
|
+
/** Earliest allowed expiry (Unix seconds), when known. */
|
|
3600
|
+
minimum: bigint | undefined;
|
|
3601
|
+
constructor(parameters: AccessKeyError.Parameters & {
|
|
3602
|
+
expiry?: bigint | undefined;
|
|
3603
|
+
minimum?: bigint | undefined;
|
|
3604
|
+
});
|
|
3420
3605
|
}
|
|
3606
|
+
type KeyType = (typeof signatureTypes)[keyof typeof signatureTypes];
|
|
3607
|
+
/** @internal */
|
|
3608
|
+
export declare const errorResolvers: Resolvers;
|
|
3609
|
+
export {};
|
|
3421
3610
|
//# sourceMappingURL=accessKey.d.ts.map
|