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
|
@@ -133,42 +133,51 @@ export function ipc(
|
|
|
133
133
|
},
|
|
134
134
|
async subscribe({ params, onData, onError }: any) {
|
|
135
135
|
const rpcClient = await getIpcRpcClient(path)
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
// Updated when the subscription is re-established after a reconnect.
|
|
137
|
+
let subscriptionId: Hash
|
|
138
|
+
let unsubscribed = false
|
|
139
|
+
function unsubscribe() {
|
|
140
|
+
unsubscribed = true
|
|
141
|
+
return new Promise<any>((resolve) =>
|
|
138
142
|
rpcClient.request({
|
|
139
143
|
body: {
|
|
140
|
-
method: '
|
|
141
|
-
params,
|
|
142
|
-
},
|
|
143
|
-
onResponse(response) {
|
|
144
|
-
if (response.error) {
|
|
145
|
-
reject(response.error)
|
|
146
|
-
onError?.(response.error)
|
|
147
|
-
return
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (typeof response.id === 'number') {
|
|
151
|
-
resolve(response)
|
|
152
|
-
return
|
|
153
|
-
}
|
|
154
|
-
if (response.method !== 'eth_subscription') return
|
|
155
|
-
onData(response.params)
|
|
144
|
+
method: 'eth_unsubscribe',
|
|
145
|
+
params: [subscriptionId],
|
|
156
146
|
},
|
|
147
|
+
onResponse: resolve,
|
|
157
148
|
}),
|
|
149
|
+
)
|
|
150
|
+
}
|
|
151
|
+
await new Promise<any>((resolve, reject) =>
|
|
152
|
+
rpcClient.request({
|
|
153
|
+
body: {
|
|
154
|
+
method: 'eth_subscribe',
|
|
155
|
+
params,
|
|
156
|
+
},
|
|
157
|
+
onResponse(response) {
|
|
158
|
+
if (response.error) {
|
|
159
|
+
reject(response.error)
|
|
160
|
+
onError?.(response.error)
|
|
161
|
+
return
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (typeof response.id === 'number') {
|
|
165
|
+
subscriptionId = response.result
|
|
166
|
+
// Re-subscribed while an unsubscribe was in flight.
|
|
167
|
+
if (unsubscribed) unsubscribe()
|
|
168
|
+
resolve(response)
|
|
169
|
+
return
|
|
170
|
+
}
|
|
171
|
+
if (response.method !== 'eth_subscription') return
|
|
172
|
+
onData(response.params)
|
|
173
|
+
},
|
|
174
|
+
}),
|
|
158
175
|
)
|
|
159
176
|
return {
|
|
160
|
-
subscriptionId
|
|
161
|
-
|
|
162
|
-
return new Promise<any>((resolve) =>
|
|
163
|
-
rpcClient.request({
|
|
164
|
-
body: {
|
|
165
|
-
method: 'eth_unsubscribe',
|
|
166
|
-
params: [subscriptionId],
|
|
167
|
-
},
|
|
168
|
-
onResponse: resolve,
|
|
169
|
-
}),
|
|
170
|
-
)
|
|
177
|
+
get subscriptionId() {
|
|
178
|
+
return subscriptionId
|
|
171
179
|
},
|
|
180
|
+
unsubscribe,
|
|
172
181
|
}
|
|
173
182
|
},
|
|
174
183
|
},
|
|
@@ -154,47 +154,56 @@ export function webSocket(
|
|
|
154
154
|
},
|
|
155
155
|
async subscribe({ params, onData, onError }: any) {
|
|
156
156
|
const rpcClient = await getWebSocketRpcClient(url_, wsRpcClientOpts)
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
// Updated when the subscription is re-established after a reconnect.
|
|
158
|
+
let subscriptionId: Hash
|
|
159
|
+
let unsubscribed = false
|
|
160
|
+
function unsubscribe() {
|
|
161
|
+
unsubscribed = true
|
|
162
|
+
return new Promise<any>((resolve) =>
|
|
159
163
|
rpcClient.request({
|
|
160
164
|
body: {
|
|
161
|
-
method: '
|
|
162
|
-
params,
|
|
165
|
+
method: 'eth_unsubscribe',
|
|
166
|
+
params: [subscriptionId],
|
|
163
167
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
168
|
+
onResponse: resolve,
|
|
169
|
+
}),
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
await new Promise<any>((resolve, reject) =>
|
|
173
|
+
rpcClient.request({
|
|
174
|
+
body: {
|
|
175
|
+
method: 'eth_subscribe',
|
|
176
|
+
params,
|
|
177
|
+
},
|
|
178
|
+
onError(error) {
|
|
179
|
+
reject(error)
|
|
180
|
+
onError?.(error)
|
|
181
|
+
return
|
|
182
|
+
},
|
|
183
|
+
onResponse(response) {
|
|
184
|
+
if (response.error) {
|
|
185
|
+
reject(response.error)
|
|
186
|
+
onError?.(response.error)
|
|
167
187
|
return
|
|
168
|
-
}
|
|
169
|
-
onResponse(response) {
|
|
170
|
-
if (response.error) {
|
|
171
|
-
reject(response.error)
|
|
172
|
-
onError?.(response.error)
|
|
173
|
-
return
|
|
174
|
-
}
|
|
188
|
+
}
|
|
175
189
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
190
|
+
if (typeof response.id === 'number') {
|
|
191
|
+
subscriptionId = response.result
|
|
192
|
+
// Re-subscribed while an unsubscribe was in flight.
|
|
193
|
+
if (unsubscribed) unsubscribe()
|
|
194
|
+
resolve(response)
|
|
195
|
+
return
|
|
196
|
+
}
|
|
197
|
+
if (response.method !== 'eth_subscription') return
|
|
198
|
+
onData(response.params)
|
|
199
|
+
},
|
|
200
|
+
}),
|
|
184
201
|
)
|
|
185
202
|
return {
|
|
186
|
-
subscriptionId
|
|
187
|
-
|
|
188
|
-
return new Promise<any>((resolve) =>
|
|
189
|
-
rpcClient.request({
|
|
190
|
-
body: {
|
|
191
|
-
method: 'eth_unsubscribe',
|
|
192
|
-
params: [subscriptionId],
|
|
193
|
-
},
|
|
194
|
-
onResponse: resolve,
|
|
195
|
-
}),
|
|
196
|
-
)
|
|
203
|
+
get subscriptionId() {
|
|
204
|
+
return subscriptionId
|
|
197
205
|
},
|
|
206
|
+
unsubscribe,
|
|
198
207
|
}
|
|
199
208
|
},
|
|
200
209
|
},
|
package/errors/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.57.
|
|
1
|
+
export const version = '2.57.6'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viem",
|
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
|
4
|
-
"version": "2.57.
|
|
4
|
+
"version": "2.57.6",
|
|
5
5
|
"main": "./_cjs/index.js",
|
|
6
6
|
"module": "./_esm/index.js",
|
|
7
7
|
"types": "./_types/index.d.ts",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"@scure/bip39": "1.6.0",
|
|
230
230
|
"abitype": "1.2.3",
|
|
231
231
|
"isows": "1.0.7",
|
|
232
|
-
"ox": "0.14.
|
|
232
|
+
"ox": "0.14.56",
|
|
233
233
|
"ws": "8.21.0"
|
|
234
234
|
},
|
|
235
235
|
"license": "MIT",
|
package/tempo/Abis.ts
CHANGED
|
@@ -9907,3 +9907,301 @@ export const zone = [
|
|
|
9907
9907
|
export const propAmm = [...directPropAmm] as const
|
|
9908
9908
|
|
|
9909
9909
|
export const all = [...core, ...earn, ...zone, ...propAmm] as const
|
|
9910
|
+
|
|
9911
|
+
/** Deduplicated errors of `core`, for decoding reverts that bubble up across precompiles. */
|
|
9912
|
+
export const coreErrors = [
|
|
9913
|
+
{ name: 'UnauthorizedCaller', type: 'error', inputs: [] },
|
|
9914
|
+
{ name: 'KeyAlreadyExists', type: 'error', inputs: [] },
|
|
9915
|
+
{ name: 'KeyNotFound', type: 'error', inputs: [] },
|
|
9916
|
+
{ name: 'KeyExpired', type: 'error', inputs: [] },
|
|
9917
|
+
{ name: 'SpendingLimitExceeded', type: 'error', inputs: [] },
|
|
9918
|
+
{ name: 'InvalidSpendingLimit', type: 'error', inputs: [] },
|
|
9919
|
+
{ name: 'InvalidSignatureType', type: 'error', inputs: [] },
|
|
9920
|
+
{ name: 'ZeroPublicKey', type: 'error', inputs: [] },
|
|
9921
|
+
{ name: 'ExpiryInPast', type: 'error', inputs: [] },
|
|
9922
|
+
{ name: 'KeyAlreadyRevoked', type: 'error', inputs: [] },
|
|
9923
|
+
{
|
|
9924
|
+
name: 'SignatureTypeMismatch',
|
|
9925
|
+
type: 'error',
|
|
9926
|
+
inputs: [
|
|
9927
|
+
{ type: 'uint8', name: 'expected' },
|
|
9928
|
+
{ type: 'uint8', name: 'actual' },
|
|
9929
|
+
],
|
|
9930
|
+
},
|
|
9931
|
+
{ name: 'CallNotAllowed', type: 'error', inputs: [] },
|
|
9932
|
+
{ name: 'InvalidCallScope', type: 'error', inputs: [] },
|
|
9933
|
+
{ name: 'InvalidKeyId', type: 'error', inputs: [] },
|
|
9934
|
+
{ name: 'InvalidKeyAuthorizationWitness', type: 'error', inputs: [] },
|
|
9935
|
+
{ name: 'KeyAuthorizationWitnessAlreadyBurned', type: 'error', inputs: [] },
|
|
9936
|
+
{
|
|
9937
|
+
name: 'LegacyAuthorizeKeySelectorChanged',
|
|
9938
|
+
type: 'error',
|
|
9939
|
+
inputs: [{ type: 'bytes4', name: 'newSelector' }],
|
|
9940
|
+
},
|
|
9941
|
+
{
|
|
9942
|
+
name: 'MasterIdCollision',
|
|
9943
|
+
type: 'error',
|
|
9944
|
+
inputs: [{ type: 'address', name: 'master' }],
|
|
9945
|
+
},
|
|
9946
|
+
{ name: 'InvalidMasterAddress', type: 'error', inputs: [] },
|
|
9947
|
+
{ name: 'ProofOfWorkFailed', type: 'error', inputs: [] },
|
|
9948
|
+
{ name: 'VirtualAddressUnregistered', type: 'error', inputs: [] },
|
|
9949
|
+
{ name: 'Unauthorized', type: 'error', inputs: [] },
|
|
9950
|
+
{ name: 'IdenticalAddresses', type: 'error', inputs: [] },
|
|
9951
|
+
{ name: 'InvalidToken', type: 'error', inputs: [] },
|
|
9952
|
+
{ name: 'InsufficientLiquidity', type: 'error', inputs: [] },
|
|
9953
|
+
{ name: 'InsufficientReserves', type: 'error', inputs: [] },
|
|
9954
|
+
{ name: 'InvalidAmount', type: 'error', inputs: [] },
|
|
9955
|
+
{ name: 'DivisionByZero', type: 'error', inputs: [] },
|
|
9956
|
+
{ name: 'InvalidSwapCalculation', type: 'error', inputs: [] },
|
|
9957
|
+
{ name: 'InsufficientFeeTokenBalance', type: 'error', inputs: [] },
|
|
9958
|
+
{ name: 'CannotChangeWithinBlock', type: 'error', inputs: [] },
|
|
9959
|
+
{ name: 'InvalidAccount', type: 'error', inputs: [] },
|
|
9960
|
+
{ name: 'InvalidConfig', type: 'error', inputs: [] },
|
|
9961
|
+
{ name: 'InvalidThreshold', type: 'error', inputs: [] },
|
|
9962
|
+
{ name: 'InvalidMultisigOwner', type: 'error', inputs: [] },
|
|
9963
|
+
{ name: 'InvalidWeight', type: 'error', inputs: [] },
|
|
9964
|
+
{ name: 'TooManyOwners', type: 'error', inputs: [] },
|
|
9965
|
+
{ name: 'DuplicateOwner', type: 'error', inputs: [] },
|
|
9966
|
+
{ name: 'InvalidOwnerOrder', type: 'error', inputs: [] },
|
|
9967
|
+
{ name: 'UnauthorizedMultisigCaller', type: 'error', inputs: [] },
|
|
9968
|
+
{ name: 'ProtocolNonceNotSupported', type: 'error', inputs: [] },
|
|
9969
|
+
{ name: 'InvalidNonceKey', type: 'error', inputs: [] },
|
|
9970
|
+
{ name: 'NonceOverflow', type: 'error', inputs: [] },
|
|
9971
|
+
{ name: 'ExpiringNonceReplay', type: 'error', inputs: [] },
|
|
9972
|
+
{ name: 'ExpiringNonceSetFull', type: 'error', inputs: [] },
|
|
9973
|
+
{ name: 'InvalidExpiringNonceExpiry', type: 'error', inputs: [] },
|
|
9974
|
+
{ name: 'InvalidReceipt', type: 'error', inputs: [] },
|
|
9975
|
+
{ name: 'InvalidClaimAddress', type: 'error', inputs: [] },
|
|
9976
|
+
{ name: 'UnauthorizedClaimer', type: 'error', inputs: [] },
|
|
9977
|
+
{ name: 'AddressReserved', type: 'error', inputs: [] },
|
|
9978
|
+
{ name: 'InvalidFormat', type: 'error', inputs: [] },
|
|
9979
|
+
{ name: 'InvalidSignature', type: 'error', inputs: [] },
|
|
9980
|
+
{ name: 'PairDoesNotExist', type: 'error', inputs: [] },
|
|
9981
|
+
{ name: 'PairAlreadyExists', type: 'error', inputs: [] },
|
|
9982
|
+
{ name: 'OrderDoesNotExist', type: 'error', inputs: [] },
|
|
9983
|
+
{ name: 'IdenticalTokens', type: 'error', inputs: [] },
|
|
9984
|
+
{
|
|
9985
|
+
name: 'TickOutOfBounds',
|
|
9986
|
+
type: 'error',
|
|
9987
|
+
inputs: [{ type: 'int16', name: 'tick' }],
|
|
9988
|
+
},
|
|
9989
|
+
{ name: 'InvalidTick', type: 'error', inputs: [] },
|
|
9990
|
+
{ name: 'InvalidFlipTick', type: 'error', inputs: [] },
|
|
9991
|
+
{ name: 'InsufficientBalance', type: 'error', inputs: [] },
|
|
9992
|
+
{ name: 'InsufficientOutput', type: 'error', inputs: [] },
|
|
9993
|
+
{ name: 'MaxInputExceeded', type: 'error', inputs: [] },
|
|
9994
|
+
{
|
|
9995
|
+
name: 'BelowMinimumOrderSize',
|
|
9996
|
+
type: 'error',
|
|
9997
|
+
inputs: [{ type: 'uint128', name: 'amount' }],
|
|
9998
|
+
},
|
|
9999
|
+
{ name: 'InvalidBaseToken', type: 'error', inputs: [] },
|
|
10000
|
+
{ name: 'OrderNotStale', type: 'error', inputs: [] },
|
|
10001
|
+
{ name: 'IndexAlreadySet', type: 'error', inputs: [] },
|
|
10002
|
+
{ name: 'InvalidMode', type: 'error', inputs: [] },
|
|
10003
|
+
{ name: 'OnlyDirectCall', type: 'error', inputs: [] },
|
|
10004
|
+
{
|
|
10005
|
+
name: 'InsufficientBalance',
|
|
10006
|
+
type: 'error',
|
|
10007
|
+
inputs: [
|
|
10008
|
+
{ type: 'uint256', name: 'available' },
|
|
10009
|
+
{ type: 'uint256', name: 'required' },
|
|
10010
|
+
{ type: 'address', name: 'token' },
|
|
10011
|
+
],
|
|
10012
|
+
},
|
|
10013
|
+
{ name: 'InsufficientAllowance', type: 'error', inputs: [] },
|
|
10014
|
+
{ name: 'SupplyCapExceeded', type: 'error', inputs: [] },
|
|
10015
|
+
{ name: 'InvalidSupplyCap', type: 'error', inputs: [] },
|
|
10016
|
+
{ name: 'InvalidPayload', type: 'error', inputs: [] },
|
|
10017
|
+
{ name: 'PolicyForbids', type: 'error', inputs: [] },
|
|
10018
|
+
{ name: 'InvalidRecipient', type: 'error', inputs: [] },
|
|
10019
|
+
{ name: 'ContractPaused', type: 'error', inputs: [] },
|
|
10020
|
+
{ name: 'InvalidCurrency', type: 'error', inputs: [] },
|
|
10021
|
+
{ name: 'InvalidQuoteToken', type: 'error', inputs: [] },
|
|
10022
|
+
{ name: 'NoOptedInSupply', type: 'error', inputs: [] },
|
|
10023
|
+
{ name: 'ProtectedAddress', type: 'error', inputs: [] },
|
|
10024
|
+
{ name: 'Uninitialized', type: 'error', inputs: [] },
|
|
10025
|
+
{ name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
|
|
10026
|
+
{ name: 'PermitExpired', type: 'error', inputs: [] },
|
|
10027
|
+
{ name: 'LogoURITooLong', type: 'error', inputs: [] },
|
|
10028
|
+
{ name: 'InvalidLogoURI', type: 'error', inputs: [] },
|
|
10029
|
+
{ name: 'ChannelAlreadyExists', type: 'error', inputs: [] },
|
|
10030
|
+
{ name: 'ChannelNotFound', type: 'error', inputs: [] },
|
|
10031
|
+
{ name: 'NotPayer', type: 'error', inputs: [] },
|
|
10032
|
+
{ name: 'NotPayeeOrOperator', type: 'error', inputs: [] },
|
|
10033
|
+
{ name: 'InvalidPayee', type: 'error', inputs: [] },
|
|
10034
|
+
{ name: 'ZeroDeposit', type: 'error', inputs: [] },
|
|
10035
|
+
{ name: 'ExpiringNonceHashNotSet', type: 'error', inputs: [] },
|
|
10036
|
+
{ name: 'AmountExceedsDeposit', type: 'error', inputs: [] },
|
|
10037
|
+
{ name: 'AmountNotIncreasing', type: 'error', inputs: [] },
|
|
10038
|
+
{ name: 'CaptureAmountInvalid', type: 'error', inputs: [] },
|
|
10039
|
+
{ name: 'CloseNotReady', type: 'error', inputs: [] },
|
|
10040
|
+
{ name: 'DepositOverflow', type: 'error', inputs: [] },
|
|
10041
|
+
{ name: 'AddressNotReserved', type: 'error', inputs: [] },
|
|
10042
|
+
{
|
|
10043
|
+
name: 'TokenAlreadyExists',
|
|
10044
|
+
type: 'error',
|
|
10045
|
+
inputs: [{ type: 'address', name: 'token' }],
|
|
10046
|
+
},
|
|
10047
|
+
{ name: 'PolicyNotFound', type: 'error', inputs: [] },
|
|
10048
|
+
{ name: 'PolicyNotSimple', type: 'error', inputs: [] },
|
|
10049
|
+
{ name: 'InvalidPolicyType', type: 'error', inputs: [] },
|
|
10050
|
+
{ name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
|
|
10051
|
+
{ name: 'VirtualAddressNotAllowed', type: 'error', inputs: [] },
|
|
10052
|
+
{ name: 'InvalidReceivePolicyType', type: 'error', inputs: [] },
|
|
10053
|
+
{ name: 'InvalidRecoveryAuthority', type: 'error', inputs: [] },
|
|
10054
|
+
{ name: 'ValidatorAlreadyExists', type: 'error', inputs: [] },
|
|
10055
|
+
{ name: 'ValidatorNotFound', type: 'error', inputs: [] },
|
|
10056
|
+
{ name: 'InvalidPublicKey', type: 'error', inputs: [] },
|
|
10057
|
+
{
|
|
10058
|
+
name: 'NotHostPort',
|
|
10059
|
+
type: 'error',
|
|
10060
|
+
inputs: [
|
|
10061
|
+
{ type: 'string', name: 'field' },
|
|
10062
|
+
{ type: 'string', name: 'input' },
|
|
10063
|
+
{ type: 'string', name: 'backtrace' },
|
|
10064
|
+
],
|
|
10065
|
+
},
|
|
10066
|
+
{
|
|
10067
|
+
name: 'NotIpPort',
|
|
10068
|
+
type: 'error',
|
|
10069
|
+
inputs: [
|
|
10070
|
+
{ type: 'string', name: 'field' },
|
|
10071
|
+
{ type: 'string', name: 'input' },
|
|
10072
|
+
{ type: 'string', name: 'backtrace' },
|
|
10073
|
+
],
|
|
10074
|
+
},
|
|
10075
|
+
{ name: 'AlreadyInitialized', type: 'error', inputs: [] },
|
|
10076
|
+
{
|
|
10077
|
+
name: 'IngressAlreadyExists',
|
|
10078
|
+
type: 'error',
|
|
10079
|
+
inputs: [{ type: 'string', name: 'ingress' }],
|
|
10080
|
+
},
|
|
10081
|
+
{ name: 'EmptyV1ValidatorSet', type: 'error', inputs: [] },
|
|
10082
|
+
{ name: 'InvalidMigrationIndex', type: 'error', inputs: [] },
|
|
10083
|
+
{ name: 'InvalidOwner', type: 'error', inputs: [] },
|
|
10084
|
+
{ name: 'InvalidSignatureFormat', type: 'error', inputs: [] },
|
|
10085
|
+
{ name: 'InvalidValidatorAddress', type: 'error', inputs: [] },
|
|
10086
|
+
{ name: 'MigrationNotComplete', type: 'error', inputs: [] },
|
|
10087
|
+
{ name: 'NotInitialized', type: 'error', inputs: [] },
|
|
10088
|
+
{
|
|
10089
|
+
name: 'NotIp',
|
|
10090
|
+
type: 'error',
|
|
10091
|
+
inputs: [
|
|
10092
|
+
{ type: 'string', name: 'input' },
|
|
10093
|
+
{ type: 'string', name: 'backtrace' },
|
|
10094
|
+
],
|
|
10095
|
+
},
|
|
10096
|
+
{
|
|
10097
|
+
name: 'NotIpPort',
|
|
10098
|
+
type: 'error',
|
|
10099
|
+
inputs: [
|
|
10100
|
+
{ type: 'string', name: 'input' },
|
|
10101
|
+
{ type: 'string', name: 'backtrace' },
|
|
10102
|
+
],
|
|
10103
|
+
},
|
|
10104
|
+
{ name: 'PublicKeyAlreadyExists', type: 'error', inputs: [] },
|
|
10105
|
+
{ name: 'AddressAlreadyHasValidator', type: 'error', inputs: [] },
|
|
10106
|
+
{ name: 'ValidatorAlreadyDeactivated', type: 'error', inputs: [] },
|
|
10107
|
+
{ name: 'TokenTransferPolicyNotSet', type: 'error', inputs: [] },
|
|
10108
|
+
{ name: 'InvalidClosedLoopConfig', type: 'error', inputs: [] },
|
|
10109
|
+
{ name: 'NotOwner', type: 'error', inputs: [] },
|
|
10110
|
+
{ name: 'InvalidAdmin', type: 'error', inputs: [] },
|
|
10111
|
+
{ name: 'InvalidSequencerSet', type: 'error', inputs: [] },
|
|
10112
|
+
{ name: 'TokenMetadataTooLong', type: 'error', inputs: [] },
|
|
10113
|
+
{ name: 'DuplicateAllowedAccount', type: 'error', inputs: [] },
|
|
10114
|
+
{ name: 'DuplicateZoneGateway', type: 'error', inputs: [] },
|
|
10115
|
+
{ name: 'NotSequencer', type: 'error', inputs: [] },
|
|
10116
|
+
{ name: 'NotAdmin', type: 'error', inputs: [] },
|
|
10117
|
+
{ name: 'NotPauseAuthority', type: 'error', inputs: [] },
|
|
10118
|
+
{
|
|
10119
|
+
name: 'CapabilityAbdicated',
|
|
10120
|
+
type: 'error',
|
|
10121
|
+
inputs: [{ type: 'uint8', name: 'capability' }],
|
|
10122
|
+
},
|
|
10123
|
+
{
|
|
10124
|
+
name: 'AbdicationAlreadyScheduled',
|
|
10125
|
+
type: 'error',
|
|
10126
|
+
inputs: [{ type: 'uint8', name: 'capability' }],
|
|
10127
|
+
},
|
|
10128
|
+
{ name: 'PortalIsPaused', type: 'error', inputs: [] },
|
|
10129
|
+
{ name: 'NotPendingAdmin', type: 'error', inputs: [] },
|
|
10130
|
+
{ name: 'InvalidProof', type: 'error', inputs: [] },
|
|
10131
|
+
{ name: 'InvalidTempoBlockNumber', type: 'error', inputs: [] },
|
|
10132
|
+
{ name: 'NotFactory', type: 'error', inputs: [] },
|
|
10133
|
+
{ name: 'NotSelf', type: 'error', inputs: [] },
|
|
10134
|
+
{ name: 'MustDelegateCall', type: 'error', inputs: [] },
|
|
10135
|
+
{ name: 'CallbackRejected', type: 'error', inputs: [] },
|
|
10136
|
+
{ name: 'TransferFailed', type: 'error', inputs: [] },
|
|
10137
|
+
{ name: 'ReentrantWithdrawal', type: 'error', inputs: [] },
|
|
10138
|
+
{
|
|
10139
|
+
name: 'EncryptionKeyExpired',
|
|
10140
|
+
type: 'error',
|
|
10141
|
+
inputs: [
|
|
10142
|
+
{ type: 'uint256', name: 'keyIndex' },
|
|
10143
|
+
{ type: 'uint64', name: 'activationBlock' },
|
|
10144
|
+
{ type: 'uint64', name: 'supersededAtBlock' },
|
|
10145
|
+
],
|
|
10146
|
+
},
|
|
10147
|
+
{
|
|
10148
|
+
name: 'InvalidEncryptionKeyIndex',
|
|
10149
|
+
type: 'error',
|
|
10150
|
+
inputs: [{ type: 'uint256', name: 'keyIndex' }],
|
|
10151
|
+
},
|
|
10152
|
+
{ name: 'NoEncryptionKeySet', type: 'error', inputs: [] },
|
|
10153
|
+
{
|
|
10154
|
+
name: 'NoEncryptionKeyAtBlock',
|
|
10155
|
+
type: 'error',
|
|
10156
|
+
inputs: [{ type: 'uint64', name: 'blockNumber' }],
|
|
10157
|
+
},
|
|
10158
|
+
{ name: 'InvalidEphemeralPubkey', type: 'error', inputs: [] },
|
|
10159
|
+
{
|
|
10160
|
+
name: 'InvalidCiphertextLength',
|
|
10161
|
+
type: 'error',
|
|
10162
|
+
inputs: [
|
|
10163
|
+
{ type: 'uint256', name: 'actual' },
|
|
10164
|
+
{ type: 'uint256', name: 'expected' },
|
|
10165
|
+
],
|
|
10166
|
+
},
|
|
10167
|
+
{ name: 'InvalidProofOfPossession', type: 'error', inputs: [] },
|
|
10168
|
+
{ name: 'DepositTooSmall', type: 'error', inputs: [] },
|
|
10169
|
+
{
|
|
10170
|
+
name: 'TokenEnablementBlockCapacityExceeded',
|
|
10171
|
+
type: 'error',
|
|
10172
|
+
inputs: [{ type: 'uint64', name: 'maximum' }],
|
|
10173
|
+
},
|
|
10174
|
+
{ name: 'GasFeeRateTooHigh', type: 'error', inputs: [] },
|
|
10175
|
+
{ name: 'DepositsNotActive', type: 'error', inputs: [] },
|
|
10176
|
+
{ name: 'TokenAlreadyEnabled', type: 'error', inputs: [] },
|
|
10177
|
+
{ name: 'TokenEnablementCursorNotInitialized', type: 'error', inputs: [] },
|
|
10178
|
+
{ name: 'InvalidDepositTransition', type: 'error', inputs: [] },
|
|
10179
|
+
{ name: 'InvalidTokenEnablementTransition', type: 'error', inputs: [] },
|
|
10180
|
+
{ name: 'SequencerConfigurationUnchanged', type: 'error', inputs: [] },
|
|
10181
|
+
{ name: 'InvalidQuorumCertificate', type: 'error', inputs: [] },
|
|
10182
|
+
{ name: 'CallbackDidNotReturnToZone', type: 'error', inputs: [] },
|
|
10183
|
+
{ name: 'InvalidBouncebackRecipient', type: 'error', inputs: [] },
|
|
10184
|
+
{ name: 'TokenNotEnabled', type: 'error', inputs: [] },
|
|
10185
|
+
{
|
|
10186
|
+
name: 'DepositBlockCapacityExceeded',
|
|
10187
|
+
type: 'error',
|
|
10188
|
+
inputs: [{ type: 'uint64', name: 'maximum' }],
|
|
10189
|
+
},
|
|
10190
|
+
{ name: 'InvalidCallbackTarget', type: 'error', inputs: [] },
|
|
10191
|
+
{
|
|
10192
|
+
name: 'AccountNotAllowed',
|
|
10193
|
+
type: 'error',
|
|
10194
|
+
inputs: [{ type: 'address', name: 'account' }],
|
|
10195
|
+
},
|
|
10196
|
+
{ name: 'InvalidLeader', type: 'error', inputs: [] },
|
|
10197
|
+
{ name: 'ActiveLeaderRemoved', type: 'error', inputs: [] },
|
|
10198
|
+
{ name: 'LeaderAlreadyUpdatedThisBlock', type: 'error', inputs: [] },
|
|
10199
|
+
{
|
|
10200
|
+
name: 'StaleLeadershipEpoch',
|
|
10201
|
+
type: 'error',
|
|
10202
|
+
inputs: [
|
|
10203
|
+
{ type: 'uint64', name: 'expected' },
|
|
10204
|
+
{ type: 'uint64', name: 'actual' },
|
|
10205
|
+
],
|
|
10206
|
+
},
|
|
10207
|
+
] as const
|