viem 3.0.0-next.12 → 3.0.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chains/definitions/creditCoin3Devnet.d.ts +6 -0
- package/dist/chains/definitions/creditCoin3Devnet.d.ts.map +1 -1
- package/dist/chains/definitions/creditCoin3Devnet.js +6 -0
- package/dist/chains/definitions/creditCoin3Devnet.js.map +1 -1
- package/dist/chains/definitions/creditCoin3Mainnet.d.ts +5 -1
- package/dist/chains/definitions/creditCoin3Mainnet.d.ts.map +1 -1
- package/dist/chains/definitions/creditCoin3Mainnet.js +4 -0
- package/dist/chains/definitions/creditCoin3Mainnet.js.map +1 -1
- package/dist/chains/definitions/creditCoin3Testnet.d.ts +5 -1
- package/dist/chains/definitions/creditCoin3Testnet.d.ts.map +1 -1
- package/dist/chains/definitions/creditCoin3Testnet.js +4 -0
- package/dist/chains/definitions/creditCoin3Testnet.js.map +1 -1
- package/dist/chains/definitions/crymad.d.ts +25 -0
- package/dist/chains/definitions/crymad.d.ts.map +1 -0
- package/dist/chains/definitions/crymad.js +23 -0
- package/dist/chains/definitions/crymad.js.map +1 -0
- package/dist/chains/definitions/crymadL2.d.ts +26 -0
- package/dist/chains/definitions/crymadL2.d.ts.map +1 -0
- package/dist/chains/definitions/crymadL2.js +24 -0
- package/dist/chains/definitions/crymadL2.js.map +1 -0
- package/dist/chains/definitions/kortana.d.ts +18 -0
- package/dist/chains/definitions/kortana.d.ts.map +1 -0
- package/dist/chains/definitions/kortana.js +16 -0
- package/dist/chains/definitions/kortana.js.map +1 -0
- package/dist/chains/index.d.ts +3 -0
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +3 -0
- package/dist/chains/index.js.map +1 -1
- package/dist/core/actions/wallet/sendCalls.d.ts.map +1 -1
- package/dist/core/actions/wallet/sendCalls.js +1 -0
- package/dist/core/actions/wallet/sendCalls.js.map +1 -1
- package/dist/erc4337/actions/userOperation/waitForReceipt.js +1 -1
- package/dist/erc4337/actions/userOperation/waitForReceipt.js.map +1 -1
- package/dist/node/transports/ipc.d.ts.map +1 -1
- package/dist/node/transports/ipc.js +20 -2
- package/dist/node/transports/ipc.js.map +1 -1
- package/dist/tempo/Abis.d.ts +778 -174
- package/dist/tempo/Abis.d.ts.map +1 -1
- package/dist/tempo/Abis.js +178 -37
- package/dist/tempo/Abis.js.map +1 -1
- package/dist/tempo/Capabilities.d.ts +7 -13
- package/dist/tempo/Capabilities.d.ts.map +1 -1
- package/dist/tempo/Client.d.ts +0 -5
- package/dist/tempo/Client.d.ts.map +1 -1
- package/dist/tempo/Client.js +3 -10
- package/dist/tempo/Client.js.map +1 -1
- package/dist/tempo/ExecutionError.d.ts +81 -0
- package/dist/tempo/ExecutionError.d.ts.map +1 -0
- package/dist/tempo/ExecutionError.js +309 -0
- package/dist/tempo/ExecutionError.js.map +1 -0
- package/dist/tempo/Relay.d.ts +303 -0
- package/dist/tempo/Relay.d.ts.map +1 -0
- package/dist/tempo/Relay.js +170 -0
- package/dist/tempo/Relay.js.map +1 -0
- package/dist/tempo/Selectors.d.ts +16 -5
- package/dist/tempo/Selectors.d.ts.map +1 -1
- package/dist/tempo/Selectors.js +16 -5
- package/dist/tempo/Selectors.js.map +1 -1
- package/dist/tempo/Transport.d.ts +11 -11
- package/dist/tempo/Transport.d.ts.map +1 -1
- package/dist/tempo/Transport.js +22 -51
- package/dist/tempo/Transport.js.map +1 -1
- package/dist/tempo/actions/token/burn.d.ts +38 -9
- package/dist/tempo/actions/token/burn.d.ts.map +1 -1
- package/dist/tempo/actions/token/burn.js +12 -5
- package/dist/tempo/actions/token/burn.js.map +1 -1
- package/dist/tempo/actions/token/burnSync.d.ts +2 -0
- package/dist/tempo/actions/token/burnSync.d.ts.map +1 -1
- package/dist/tempo/chainConfig.d.ts +4 -5
- package/dist/tempo/chainConfig.d.ts.map +1 -1
- package/dist/tempo/chainConfig.js +6 -1
- package/dist/tempo/chainConfig.js.map +1 -1
- package/dist/tempo/index.d.ts +5 -3
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +5 -3
- package/dist/tempo/index.js.map +1 -1
- package/dist/tempo/internal/relay/cache.d.ts +9 -0
- package/dist/tempo/internal/relay/cache.d.ts.map +1 -0
- package/dist/tempo/internal/relay/cache.js +72 -0
- package/dist/tempo/internal/relay/cache.js.map +1 -0
- package/dist/tempo/internal/relay/deadline.d.ts +4 -0
- package/dist/tempo/internal/relay/deadline.d.ts.map +1 -0
- package/dist/tempo/internal/relay/deadline.js +34 -0
- package/dist/tempo/internal/relay/deadline.js.map +1 -0
- package/dist/tempo/internal/relay/error.d.ts +47 -0
- package/dist/tempo/internal/relay/error.d.ts.map +1 -0
- package/dist/tempo/internal/relay/error.js +101 -0
- package/dist/tempo/internal/relay/error.js.map +1 -0
- package/dist/tempo/internal/relay/feePayer.d.ts +70 -0
- package/dist/tempo/internal/relay/feePayer.d.ts.map +1 -0
- package/dist/tempo/internal/relay/feePayer.js +442 -0
- package/dist/tempo/internal/relay/feePayer.js.map +1 -0
- package/dist/tempo/internal/relay/feeToken.d.ts +38 -0
- package/dist/tempo/internal/relay/feeToken.d.ts.map +1 -0
- package/dist/tempo/internal/relay/feeToken.js +143 -0
- package/dist/tempo/internal/relay/feeToken.js.map +1 -0
- package/dist/tempo/internal/relay/multisig.d.ts +4 -0
- package/dist/tempo/internal/relay/multisig.d.ts.map +1 -0
- package/dist/tempo/{Multisig.js → internal/relay/multisig.js} +134 -126
- package/dist/tempo/internal/relay/multisig.js.map +1 -0
- package/dist/tempo/internal/relay/plugin.d.ts +5 -0
- package/dist/tempo/internal/relay/plugin.d.ts.map +1 -0
- package/dist/tempo/internal/relay/plugin.js +10 -0
- package/dist/tempo/internal/relay/plugin.js.map +1 -0
- package/dist/tempo/internal/relay/preflight.d.ts +17 -0
- package/dist/tempo/internal/relay/preflight.d.ts.map +1 -0
- package/dist/tempo/internal/relay/preflight.js +53 -0
- package/dist/tempo/internal/relay/preflight.js.map +1 -0
- package/dist/tempo/internal/relay/request.d.ts +16 -0
- package/dist/tempo/internal/relay/request.d.ts.map +1 -0
- package/dist/tempo/internal/relay/request.js +327 -0
- package/dist/tempo/internal/relay/request.js.map +1 -0
- package/dist/tempo/internal/relay/simulate.d.ts +62 -0
- package/dist/tempo/internal/relay/simulate.d.ts.map +1 -0
- package/dist/tempo/internal/relay/simulate.js +284 -0
- package/dist/tempo/internal/relay/simulate.js.map +1 -0
- package/dist/tempo/internal/relay/utils.d.ts +346 -0
- package/dist/tempo/internal/relay/utils.d.ts.map +1 -0
- package/dist/tempo/internal/relay/utils.js +185 -0
- package/dist/tempo/internal/relay/utils.js.map +1 -0
- package/dist/tempo/internal/relay/virtualAddress.d.ts +9 -0
- package/dist/tempo/internal/relay/virtualAddress.d.ts.map +1 -0
- package/dist/tempo/internal/relay/virtualAddress.js +73 -0
- package/dist/tempo/internal/relay/virtualAddress.js.map +1 -0
- package/dist/tempo/internal/relay.d.ts +4 -0
- package/dist/tempo/internal/relay.d.ts.map +1 -0
- package/dist/tempo/internal/relay.js +132 -0
- package/dist/tempo/internal/relay.js.map +1 -0
- package/dist/tokens/definitions/ousd.d.ts +26 -0
- package/dist/tokens/definitions/ousd.d.ts.map +1 -0
- package/dist/tokens/definitions/ousd.js +26 -0
- package/dist/tokens/definitions/ousd.js.map +1 -0
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +2 -0
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/sets.d.ts +33 -0
- package/dist/tokens/sets.d.ts.map +1 -1
- package/dist/tokens/sets.js +4 -1
- package/dist/tokens/sets.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/chains/definitions/creditCoin3Devnet.ts +6 -0
- package/src/chains/definitions/creditCoin3Mainnet.ts +4 -0
- package/src/chains/definitions/creditCoin3Testnet.ts +4 -0
- package/src/chains/definitions/crymad.ts +23 -0
- package/src/chains/definitions/crymadL2.ts +24 -0
- package/src/chains/definitions/kortana.ts +16 -0
- package/src/chains/index.ts +3 -0
- package/src/core/actions/wallet/sendCalls.ts +1 -0
- package/src/erc4337/actions/userOperation/waitForReceipt.ts +1 -1
- package/src/node/transports/ipc.ts +17 -2
- package/src/tempo/Abis.ts +179 -37
- package/src/tempo/Account.ts +1 -1
- package/src/tempo/Capabilities.ts +7 -15
- package/src/tempo/Client.ts +3 -23
- package/src/tempo/ExecutionError.ts +428 -0
- package/src/tempo/Relay.ts +430 -0
- package/src/tempo/Selectors.ts +25 -11
- package/src/tempo/Transport.ts +71 -41
- package/src/tempo/actions/token/burn.ts +21 -9
- package/src/tempo/actions/token/burnSync.ts +2 -0
- package/src/tempo/chainConfig.ts +9 -6
- package/src/tempo/index.ts +7 -4
- package/src/tempo/internal/relay/cache.ts +82 -0
- package/src/tempo/internal/relay/deadline.ts +45 -0
- package/src/tempo/internal/relay/error.ts +129 -0
- package/src/tempo/internal/relay/feePayer.ts +693 -0
- package/src/tempo/internal/relay/feeToken.ts +190 -0
- package/src/tempo/{Multisig.ts → internal/relay/multisig.ts} +165 -193
- package/src/tempo/internal/relay/plugin.ts +13 -0
- package/src/tempo/internal/relay/preflight.ts +83 -0
- package/src/tempo/internal/relay/request.ts +401 -0
- package/src/tempo/internal/relay/simulate.ts +394 -0
- package/src/tempo/internal/relay/utils.ts +213 -0
- package/src/tempo/internal/relay/virtualAddress.ts +95 -0
- package/src/tempo/internal/relay.ts +149 -0
- package/src/tokens/definitions/ousd.ts +26 -0
- package/src/tokens/index.ts +2 -0
- package/src/tokens/sets.ts +4 -1
- package/src/version.ts +1 -1
- package/dist/tempo/Multisig.d.ts +0 -39
- package/dist/tempo/Multisig.d.ts.map +0 -1
- package/dist/tempo/Multisig.js.map +0 -1
package/dist/tokens/sets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sets.js","sourceRoot":"","sources":["../../src/tokens/sets.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AK,EAAE,CAAA"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -13,5 +13,11 @@ export const creditCoin3Devnet = /*#__PURE__*/ Chain.from({
|
|
|
13
13
|
url: 'https://creditcoin-devnet.blockscout.com',
|
|
14
14
|
apiUrl: 'https://creditcoin3-dev.subscan.io',
|
|
15
15
|
},
|
|
16
|
+
contracts: {
|
|
17
|
+
multicall3: {
|
|
18
|
+
address: '0x47b51dC7b7Bbb3d9eB12080e3DA6E26125e8D75e',
|
|
19
|
+
blockCreated: 16_352_786,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
16
22
|
testnet: true,
|
|
17
23
|
})
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Chain from '../../core/Chain.js'
|
|
2
|
+
|
|
3
|
+
export const crymad = /*#__PURE__*/ Chain.from({
|
|
4
|
+
id: 1475,
|
|
5
|
+
name: 'CRYMAD Chain',
|
|
6
|
+
nativeCurrency: {
|
|
7
|
+
name: 'CryMadX',
|
|
8
|
+
symbol: 'CMX-R',
|
|
9
|
+
decimals: 18,
|
|
10
|
+
},
|
|
11
|
+
rpcUrls: { http: 'https://rpc.cmxofficial.com' },
|
|
12
|
+
blockExplorers: {
|
|
13
|
+
name: 'CRYMAD Chain Explorer',
|
|
14
|
+
url: 'https://explorer.cmxofficial.com',
|
|
15
|
+
apiUrl: 'https://explorer.cmxofficial.com/api/v2',
|
|
16
|
+
},
|
|
17
|
+
contracts: {
|
|
18
|
+
multicall3: {
|
|
19
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
20
|
+
blockCreated: 834292,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Chain from '../../core/Chain.js'
|
|
2
|
+
|
|
3
|
+
export const crymadL2 = /*#__PURE__*/ Chain.from({
|
|
4
|
+
id: 7373,
|
|
5
|
+
name: 'CRYMAD Chain L2',
|
|
6
|
+
nativeCurrency: {
|
|
7
|
+
name: 'CryMadX',
|
|
8
|
+
symbol: 'CMX-R',
|
|
9
|
+
decimals: 18,
|
|
10
|
+
},
|
|
11
|
+
rpcUrls: { http: 'https://rpcl2.cmxofficial.com' },
|
|
12
|
+
blockExplorers: {
|
|
13
|
+
name: 'CRYMAD Chain L2 Explorer',
|
|
14
|
+
url: 'https://explorer-l2.cmxofficial.com',
|
|
15
|
+
apiUrl: 'https://explorer-l2.cmxofficial.com/api/v2',
|
|
16
|
+
},
|
|
17
|
+
contracts: {
|
|
18
|
+
multicall3: {
|
|
19
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
20
|
+
blockCreated: 0,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
sourceId: 1475,
|
|
24
|
+
})
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Chain from '../../core/Chain.js'
|
|
2
|
+
|
|
3
|
+
export const kortana = /*#__PURE__*/ Chain.from({
|
|
4
|
+
id: 9002,
|
|
5
|
+
name: 'Kortana',
|
|
6
|
+
nativeCurrency: {
|
|
7
|
+
decimals: 18,
|
|
8
|
+
name: 'Dinar',
|
|
9
|
+
symbol: 'DNR',
|
|
10
|
+
},
|
|
11
|
+
rpcUrls: { http: 'https://zeus-rpc.mainnet.kortana.xyz' },
|
|
12
|
+
blockExplorers: {
|
|
13
|
+
name: 'Kortana Explorer',
|
|
14
|
+
url: 'https://explorer.mainnet.kortana.xyz',
|
|
15
|
+
},
|
|
16
|
+
})
|
package/src/chains/index.ts
CHANGED
|
@@ -116,6 +116,8 @@ export { cronoszkEVM } from './definitions/cronoszkEVM.js'
|
|
|
116
116
|
export { cronoszkEVMTestnet } from './definitions/cronoszkEVMTestnet.js'
|
|
117
117
|
export { crossbell } from './definitions/crossbell.js'
|
|
118
118
|
export { crossfi } from './definitions/crossfi.js'
|
|
119
|
+
export { crymad } from './definitions/crymad.js'
|
|
120
|
+
export { crymadL2 } from './definitions/crymadL2.js'
|
|
119
121
|
export { curtis } from './definitions/curtis.js'
|
|
120
122
|
export { cyber } from './definitions/cyber.js'
|
|
121
123
|
export { dailyNetwork } from './definitions/dailyNetwork.js'
|
|
@@ -273,6 +275,7 @@ export { kcc } from './definitions/kcc.js'
|
|
|
273
275
|
export { kii } from './definitions/kii.js'
|
|
274
276
|
export { kiiTestnetOro } from './definitions/kiiTestnet.js'
|
|
275
277
|
export { kinto } from './definitions/kinto.js'
|
|
278
|
+
export { kortana } from './definitions/kortana.js'
|
|
276
279
|
export { krown } from './definitions/krown.js'
|
|
277
280
|
export { l3x } from './definitions/l3x.js'
|
|
278
281
|
export { l3xTestnet } from './definitions/l3xTestnet.js'
|
|
@@ -133,6 +133,7 @@ export async function sendCalls<
|
|
|
133
133
|
(error.name === 'RpcResponse.MethodNotFoundError' ||
|
|
134
134
|
error.name === 'RpcResponse.MethodNotSupportedError' ||
|
|
135
135
|
error.name === 'RpcError.UnknownRpcError' ||
|
|
136
|
+
details === 'this request method is not supported' ||
|
|
136
137
|
details.includes('does not exist / is not available') ||
|
|
137
138
|
details.includes('missing or invalid. request()') ||
|
|
138
139
|
details.includes('did not match any variant of untagged enum') ||
|
|
@@ -107,6 +107,8 @@ export declare namespace ipc {
|
|
|
107
107
|
|
|
108
108
|
const openingBrace = '{'.charCodeAt(0)
|
|
109
109
|
const closingBrace = '}'.charCodeAt(0)
|
|
110
|
+
const quote = '"'.charCodeAt(0)
|
|
111
|
+
const backslash = '\\'.charCodeAt(0)
|
|
110
112
|
|
|
111
113
|
/**
|
|
112
114
|
* Extracts complete JSON messages from a (possibly partial) IPC buffer.
|
|
@@ -120,9 +122,22 @@ export function extractMessages(
|
|
|
120
122
|
|
|
121
123
|
let cursor = 0
|
|
122
124
|
let level = 0
|
|
125
|
+
let inString = false
|
|
126
|
+
let escaped = false
|
|
123
127
|
for (let i = 0; i < buffer.length; i++) {
|
|
124
|
-
|
|
125
|
-
if (
|
|
128
|
+
const byte = buffer[i]
|
|
129
|
+
if (inString) {
|
|
130
|
+
if (escaped) escaped = false
|
|
131
|
+
else if (byte === backslash) escaped = true
|
|
132
|
+
else if (byte === quote) inString = false
|
|
133
|
+
continue
|
|
134
|
+
}
|
|
135
|
+
if (byte === quote) {
|
|
136
|
+
inString = true
|
|
137
|
+
continue
|
|
138
|
+
}
|
|
139
|
+
if (byte === openingBrace) level++
|
|
140
|
+
if (byte === closingBrace) level--
|
|
126
141
|
if (level === 0) {
|
|
127
142
|
const message = buffer.subarray(cursor, i + 1)
|
|
128
143
|
if (
|
package/src/tempo/Abis.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated with `pnpm gen:tempo-abis`. Do not modify manually.
|
|
2
|
-
// Source: tempoxyz/tempo@
|
|
2
|
+
// Source: tempoxyz/tempo@6ef1f812c9ddcbe90a88ada73944012520942d26
|
|
3
3
|
|
|
4
4
|
/** ABI of the account keychain precompile. */
|
|
5
5
|
export const accountKeychain = [
|
|
@@ -1954,6 +1954,16 @@ export const tip20 = [
|
|
|
1954
1954
|
],
|
|
1955
1955
|
outputs: [],
|
|
1956
1956
|
},
|
|
1957
|
+
{
|
|
1958
|
+
name: 'burnAt',
|
|
1959
|
+
type: 'function',
|
|
1960
|
+
stateMutability: 'nonpayable',
|
|
1961
|
+
inputs: [
|
|
1962
|
+
{ type: 'address', name: 'from' },
|
|
1963
|
+
{ type: 'uint256', name: 'amount' },
|
|
1964
|
+
],
|
|
1965
|
+
outputs: [],
|
|
1966
|
+
},
|
|
1957
1967
|
{
|
|
1958
1968
|
name: 'mintWithMemo',
|
|
1959
1969
|
type: 'function',
|
|
@@ -2068,6 +2078,13 @@ export const tip20 = [
|
|
|
2068
2078
|
inputs: [],
|
|
2069
2079
|
outputs: [{ type: 'bytes32' }],
|
|
2070
2080
|
},
|
|
2081
|
+
{
|
|
2082
|
+
name: 'BURN_AT_ROLE',
|
|
2083
|
+
type: 'function',
|
|
2084
|
+
stateMutability: 'view',
|
|
2085
|
+
inputs: [],
|
|
2086
|
+
outputs: [{ type: 'bytes32' }],
|
|
2087
|
+
},
|
|
2071
2088
|
{
|
|
2072
2089
|
name: 'permit',
|
|
2073
2090
|
type: 'function',
|
|
@@ -2197,6 +2214,15 @@ export const tip20 = [
|
|
|
2197
2214
|
{ type: 'uint256', name: 'amount' },
|
|
2198
2215
|
],
|
|
2199
2216
|
},
|
|
2217
|
+
{
|
|
2218
|
+
name: 'BurnAt',
|
|
2219
|
+
type: 'event',
|
|
2220
|
+
inputs: [
|
|
2221
|
+
{ type: 'address', name: 'burner', indexed: true },
|
|
2222
|
+
{ type: 'address', name: 'from', indexed: true },
|
|
2223
|
+
{ type: 'uint256', name: 'amount', indexed: true },
|
|
2224
|
+
],
|
|
2225
|
+
},
|
|
2200
2226
|
{
|
|
2201
2227
|
name: 'TransferWithMemo',
|
|
2202
2228
|
type: 'event',
|
|
@@ -3710,6 +3736,20 @@ export const zonePortal = [
|
|
|
3710
3736
|
inputs: [],
|
|
3711
3737
|
outputs: [{ type: 'uint64' }],
|
|
3712
3738
|
},
|
|
3739
|
+
{
|
|
3740
|
+
name: 'MAX_UNPROCESSED_DEPOSITS',
|
|
3741
|
+
type: 'function',
|
|
3742
|
+
stateMutability: 'view',
|
|
3743
|
+
inputs: [],
|
|
3744
|
+
outputs: [{ type: 'uint64' }],
|
|
3745
|
+
},
|
|
3746
|
+
{
|
|
3747
|
+
name: 'MAX_UNPROCESSED_TOKEN_ENABLEMENTS',
|
|
3748
|
+
type: 'function',
|
|
3749
|
+
stateMutability: 'view',
|
|
3750
|
+
inputs: [],
|
|
3751
|
+
outputs: [{ type: 'uint64' }],
|
|
3752
|
+
},
|
|
3713
3753
|
{
|
|
3714
3754
|
name: 'MAX_WITHDRAWAL_GAS_LIMIT',
|
|
3715
3755
|
type: 'function',
|
|
@@ -3816,6 +3856,47 @@ export const zonePortal = [
|
|
|
3816
3856
|
],
|
|
3817
3857
|
outputs: [],
|
|
3818
3858
|
},
|
|
3859
|
+
{
|
|
3860
|
+
name: 'submitBatch',
|
|
3861
|
+
type: 'function',
|
|
3862
|
+
stateMutability: 'nonpayable',
|
|
3863
|
+
inputs: [
|
|
3864
|
+
{ type: 'uint64', name: 'tempoBlockNumber' },
|
|
3865
|
+
{ type: 'uint64', name: 'recentTempoBlockNumber' },
|
|
3866
|
+
{
|
|
3867
|
+
type: 'tuple',
|
|
3868
|
+
name: 'blockTransition',
|
|
3869
|
+
components: [
|
|
3870
|
+
{ type: 'bytes32', name: 'prevBlockHash' },
|
|
3871
|
+
{ type: 'bytes32', name: 'nextBlockHash' },
|
|
3872
|
+
],
|
|
3873
|
+
},
|
|
3874
|
+
{
|
|
3875
|
+
type: 'tuple',
|
|
3876
|
+
name: 'depositQueueTransition',
|
|
3877
|
+
components: [
|
|
3878
|
+
{ type: 'bytes32', name: 'prevProcessedHash' },
|
|
3879
|
+
{ type: 'bytes32', name: 'nextProcessedHash' },
|
|
3880
|
+
{ type: 'uint64', name: 'prevDepositNumber' },
|
|
3881
|
+
{ type: 'uint64', name: 'nextDepositNumber' },
|
|
3882
|
+
],
|
|
3883
|
+
},
|
|
3884
|
+
{
|
|
3885
|
+
type: 'tuple',
|
|
3886
|
+
name: 'tokenEnablementTransition',
|
|
3887
|
+
components: [
|
|
3888
|
+
{ type: 'uint64', name: 'prevProcessedTokenCount' },
|
|
3889
|
+
{ type: 'uint64', name: 'nextProcessedTokenCount' },
|
|
3890
|
+
],
|
|
3891
|
+
},
|
|
3892
|
+
{ type: 'bytes32', name: 'withdrawalQueueHash' },
|
|
3893
|
+
{ type: 'bytes', name: 'verifierConfig' },
|
|
3894
|
+
{ type: 'bytes', name: 'proof' },
|
|
3895
|
+
{ type: 'uint256', name: 'nextZoneHeight' },
|
|
3896
|
+
{ type: 'bytes[]', name: 'signatures' },
|
|
3897
|
+
],
|
|
3898
|
+
outputs: [],
|
|
3899
|
+
},
|
|
3819
3900
|
{
|
|
3820
3901
|
name: 'enableToken',
|
|
3821
3902
|
type: 'function',
|
|
@@ -3959,6 +4040,20 @@ export const zonePortal = [
|
|
|
3959
4040
|
inputs: [],
|
|
3960
4041
|
outputs: [{ type: 'uint256' }],
|
|
3961
4042
|
},
|
|
4043
|
+
{
|
|
4044
|
+
name: 'lastProcessedEnabledTokenCount',
|
|
4045
|
+
type: 'function',
|
|
4046
|
+
stateMutability: 'view',
|
|
4047
|
+
inputs: [],
|
|
4048
|
+
outputs: [{ type: 'uint64' }],
|
|
4049
|
+
},
|
|
4050
|
+
{
|
|
4051
|
+
name: 'tokenEnablementCursorInitialized',
|
|
4052
|
+
type: 'function',
|
|
4053
|
+
stateMutability: 'view',
|
|
4054
|
+
inputs: [],
|
|
4055
|
+
outputs: [{ type: 'bool' }],
|
|
4056
|
+
},
|
|
3962
4057
|
{
|
|
3963
4058
|
name: 'enabledTokenAt',
|
|
3964
4059
|
type: 'function',
|
|
@@ -4149,6 +4244,19 @@ export const zonePortal = [
|
|
|
4149
4244
|
{ type: 'uint64', name: 'lastProcessedDepositNumber' },
|
|
4150
4245
|
],
|
|
4151
4246
|
},
|
|
4247
|
+
{
|
|
4248
|
+
name: 'BatchSubmitted',
|
|
4249
|
+
type: 'event',
|
|
4250
|
+
inputs: [
|
|
4251
|
+
{ type: 'uint64', name: 'withdrawalBatchIndex', indexed: true },
|
|
4252
|
+
{ type: 'uint256', name: 'withdrawalQueueIndex', indexed: true },
|
|
4253
|
+
{ type: 'bytes32', name: 'nextProcessedDepositQueueHash' },
|
|
4254
|
+
{ type: 'bytes32', name: 'nextBlockHash' },
|
|
4255
|
+
{ type: 'bytes32', name: 'withdrawalQueueHash' },
|
|
4256
|
+
{ type: 'uint64', name: 'lastProcessedDepositNumber' },
|
|
4257
|
+
{ type: 'uint64', name: 'lastProcessedEnabledTokenCount' },
|
|
4258
|
+
],
|
|
4259
|
+
},
|
|
4152
4260
|
{
|
|
4153
4261
|
name: 'WithdrawalProcessed',
|
|
4154
4262
|
type: 'event',
|
|
@@ -4296,7 +4404,9 @@ export const zonePortal = [
|
|
|
4296
4404
|
{ name: 'DepositsNotActive', type: 'error', inputs: [] },
|
|
4297
4405
|
{ name: 'TokenAlreadyEnabled', type: 'error', inputs: [] },
|
|
4298
4406
|
{ name: 'TokenTransferPolicyNotSet', type: 'error', inputs: [] },
|
|
4407
|
+
{ name: 'TokenEnablementCursorNotInitialized', type: 'error', inputs: [] },
|
|
4299
4408
|
{ name: 'InvalidDepositTransition', type: 'error', inputs: [] },
|
|
4409
|
+
{ name: 'InvalidTokenEnablementTransition', type: 'error', inputs: [] },
|
|
4300
4410
|
{ name: 'InvalidSequencerSet', type: 'error', inputs: [] },
|
|
4301
4411
|
{ name: 'SequencerConfigurationUnchanged', type: 'error', inputs: [] },
|
|
4302
4412
|
{ name: 'InvalidQuorumCertificate', type: 'error', inputs: [] },
|
|
@@ -4384,40 +4494,6 @@ export const zoneVerifier = [
|
|
|
4384
4494
|
],
|
|
4385
4495
|
outputs: [{ type: 'bool' }],
|
|
4386
4496
|
},
|
|
4387
|
-
{
|
|
4388
|
-
name: 'verify',
|
|
4389
|
-
type: 'function',
|
|
4390
|
-
stateMutability: 'view',
|
|
4391
|
-
inputs: [
|
|
4392
|
-
{ type: 'uint32', name: 'zoneId' },
|
|
4393
|
-
{ type: 'uint64', name: 'tempoBlockNumber' },
|
|
4394
|
-
{ type: 'uint64', name: 'anchorBlockNumber' },
|
|
4395
|
-
{ type: 'bytes32', name: 'anchorBlockHash' },
|
|
4396
|
-
{ type: 'uint64', name: 'expectedWithdrawalBatchIndex' },
|
|
4397
|
-
{
|
|
4398
|
-
type: 'tuple',
|
|
4399
|
-
name: 'blockTransition',
|
|
4400
|
-
components: [
|
|
4401
|
-
{ type: 'bytes32', name: 'prevBlockHash' },
|
|
4402
|
-
{ type: 'bytes32', name: 'nextBlockHash' },
|
|
4403
|
-
],
|
|
4404
|
-
},
|
|
4405
|
-
{
|
|
4406
|
-
type: 'tuple',
|
|
4407
|
-
name: 'depositQueueTransition',
|
|
4408
|
-
components: [
|
|
4409
|
-
{ type: 'bytes32', name: 'prevProcessedHash' },
|
|
4410
|
-
{ type: 'bytes32', name: 'nextProcessedHash' },
|
|
4411
|
-
{ type: 'uint64', name: 'prevDepositNumber' },
|
|
4412
|
-
{ type: 'uint64', name: 'nextDepositNumber' },
|
|
4413
|
-
],
|
|
4414
|
-
},
|
|
4415
|
-
{ type: 'bytes32', name: 'withdrawalQueueHash' },
|
|
4416
|
-
{ type: 'bytes', name: 'verifierConfig' },
|
|
4417
|
-
{ type: 'bytes', name: 'proof' },
|
|
4418
|
-
],
|
|
4419
|
-
outputs: [{ type: 'bool' }],
|
|
4420
|
-
},
|
|
4421
4497
|
] as const
|
|
4422
4498
|
|
|
4423
4499
|
// Source: tempoxyz/earn@d6373e4939ec2bbf5dcccffd5f2519ff4a62d6b1
|
|
@@ -8348,7 +8424,69 @@ export const earnRouterCallbackData = [
|
|
|
8348
8424
|
},
|
|
8349
8425
|
] as const
|
|
8350
8426
|
|
|
8351
|
-
// Source: tempoxyz/zones@
|
|
8427
|
+
// Source: tempoxyz/zones@22318d90a098149fecd0c56ae4e20e55fea24bdd
|
|
8428
|
+
|
|
8429
|
+
export const zonePortalPreT13Retired = [
|
|
8430
|
+
{
|
|
8431
|
+
name: 'MAX_DEPOSITS_PER_TEMPO_BLOCK',
|
|
8432
|
+
type: 'function',
|
|
8433
|
+
stateMutability: 'view',
|
|
8434
|
+
inputs: [],
|
|
8435
|
+
outputs: [{ type: 'uint64' }],
|
|
8436
|
+
},
|
|
8437
|
+
{
|
|
8438
|
+
name: 'MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK',
|
|
8439
|
+
type: 'function',
|
|
8440
|
+
stateMutability: 'view',
|
|
8441
|
+
inputs: [],
|
|
8442
|
+
outputs: [{ type: 'uint64' }],
|
|
8443
|
+
},
|
|
8444
|
+
{
|
|
8445
|
+
name: 'submitBatch',
|
|
8446
|
+
type: 'function',
|
|
8447
|
+
stateMutability: 'nonpayable',
|
|
8448
|
+
inputs: [
|
|
8449
|
+
{ type: 'uint64', name: 'tempoBlockNumber' },
|
|
8450
|
+
{ type: 'uint64', name: 'recentTempoBlockNumber' },
|
|
8451
|
+
{
|
|
8452
|
+
type: 'tuple',
|
|
8453
|
+
name: 'blockTransition',
|
|
8454
|
+
components: [
|
|
8455
|
+
{ type: 'bytes32', name: 'prevBlockHash' },
|
|
8456
|
+
{ type: 'bytes32', name: 'nextBlockHash' },
|
|
8457
|
+
],
|
|
8458
|
+
},
|
|
8459
|
+
{
|
|
8460
|
+
type: 'tuple',
|
|
8461
|
+
name: 'depositQueueTransition',
|
|
8462
|
+
components: [
|
|
8463
|
+
{ type: 'bytes32', name: 'prevProcessedHash' },
|
|
8464
|
+
{ type: 'bytes32', name: 'nextProcessedHash' },
|
|
8465
|
+
{ type: 'uint64', name: 'prevDepositNumber' },
|
|
8466
|
+
{ type: 'uint64', name: 'nextDepositNumber' },
|
|
8467
|
+
],
|
|
8468
|
+
},
|
|
8469
|
+
{ type: 'bytes32', name: 'withdrawalQueueHash' },
|
|
8470
|
+
{ type: 'bytes', name: 'verifierConfig' },
|
|
8471
|
+
{ type: 'bytes', name: 'proof' },
|
|
8472
|
+
{ type: 'uint256', name: 'nextZoneHeight' },
|
|
8473
|
+
{ type: 'bytes[]', name: 'signatures' },
|
|
8474
|
+
],
|
|
8475
|
+
outputs: [],
|
|
8476
|
+
},
|
|
8477
|
+
{
|
|
8478
|
+
name: 'BatchSubmitted',
|
|
8479
|
+
type: 'event',
|
|
8480
|
+
inputs: [
|
|
8481
|
+
{ type: 'uint64', name: 'withdrawalBatchIndex', indexed: true },
|
|
8482
|
+
{ type: 'uint256', name: 'withdrawalQueueIndex', indexed: true },
|
|
8483
|
+
{ type: 'bytes32', name: 'nextProcessedDepositQueueHash' },
|
|
8484
|
+
{ type: 'bytes32', name: 'nextBlockHash' },
|
|
8485
|
+
{ type: 'bytes32', name: 'withdrawalQueueHash' },
|
|
8486
|
+
{ type: 'uint64', name: 'lastProcessedDepositNumber' },
|
|
8487
|
+
],
|
|
8488
|
+
},
|
|
8489
|
+
] as const
|
|
8352
8490
|
|
|
8353
8491
|
export const zoneOutbox = [
|
|
8354
8492
|
{
|
|
@@ -9570,7 +9708,11 @@ export const earn = [
|
|
|
9570
9708
|
...vedaEngine,
|
|
9571
9709
|
] as const
|
|
9572
9710
|
|
|
9573
|
-
export const zone = [
|
|
9711
|
+
export const zone = [
|
|
9712
|
+
...zoneMessenger,
|
|
9713
|
+
...zoneOutbox,
|
|
9714
|
+
...zonePortalPreT13Retired,
|
|
9715
|
+
] as const
|
|
9574
9716
|
|
|
9575
9717
|
export const propAmm = [...directPropAmm] as const
|
|
9576
9718
|
|
package/src/tempo/Account.ts
CHANGED
|
@@ -1029,7 +1029,7 @@ function fromBase(parameters: fromBase.Parameters): Base {
|
|
|
1029
1029
|
// request metadata.
|
|
1030
1030
|
const envelope =
|
|
1031
1031
|
envelope_ as unknown as TxEnvelopeTempo.TxEnvelopeTempo & {
|
|
1032
|
-
feePayer?:
|
|
1032
|
+
feePayer?: Envelope['feePayer'] | undefined
|
|
1033
1033
|
multisigSimulation?: Envelope['multisigSimulation'] | undefined
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as ExecutionError from './ExecutionError.js'
|
|
2
|
+
import type { Address, Hex } from 'ox'
|
|
2
3
|
import type { TransactionRequest } from 'ox/tempo'
|
|
3
4
|
|
|
4
|
-
import type { ExactPartial
|
|
5
|
+
import type { ExactPartial } from '../core/internal/types.js'
|
|
5
6
|
|
|
6
7
|
/** Tempo capability schema, keyed by RPC method. */
|
|
7
8
|
export type Schema = {
|
|
@@ -18,6 +19,8 @@ export type Schema = {
|
|
|
18
19
|
export type FillTransactionRequestCapabilities = {
|
|
19
20
|
/** Whether to include `balanceDiffs` in the response. */
|
|
20
21
|
balanceDiffs?: boolean | undefined
|
|
22
|
+
/** Whether execution reverts return error capabilities instead of throwing. */
|
|
23
|
+
errors?: boolean | undefined
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
/** Capabilities returned by `eth_fillTransaction`. */
|
|
@@ -37,18 +40,7 @@ export type FillTransactionCapabilities = {
|
|
|
37
40
|
balanceDiffs?:
|
|
38
41
|
| Readonly<Record<Address.Address, readonly BalanceDiff[]>>
|
|
39
42
|
| undefined
|
|
40
|
-
error?:
|
|
41
|
-
| OneOf<
|
|
42
|
-
| {
|
|
43
|
-
abiItem: AbiItem.AbiItem
|
|
44
|
-
args: readonly unknown[] | undefined
|
|
45
|
-
data: Hex.Hex
|
|
46
|
-
errorName: string
|
|
47
|
-
message: string
|
|
48
|
-
}
|
|
49
|
-
| { errorName: 'unknown'; message: string }
|
|
50
|
-
>
|
|
51
|
-
| undefined
|
|
43
|
+
error?: ExecutionError.Rpc | undefined
|
|
52
44
|
fee?:
|
|
53
45
|
| {
|
|
54
46
|
amount: Hex.Hex
|
|
@@ -57,7 +49,7 @@ export type FillTransactionCapabilities = {
|
|
|
57
49
|
symbol: string
|
|
58
50
|
}
|
|
59
51
|
| undefined
|
|
60
|
-
|
|
52
|
+
insufficientFunds?:
|
|
61
53
|
| {
|
|
62
54
|
amount: Hex.Hex
|
|
63
55
|
decimals: number
|
package/src/tempo/Client.ts
CHANGED
|
@@ -10,8 +10,7 @@ import { walletActions } from '../core/actions/decorators/wallet.js'
|
|
|
10
10
|
import { tokens as tokenSets } from '../tokens/sets.js'
|
|
11
11
|
import { tempo, tempoModerato } from './Chain.js'
|
|
12
12
|
import { type Decorator, tempoActions } from './Decorator.js'
|
|
13
|
-
import
|
|
14
|
-
import { http, withMultisig } from './Transport.js'
|
|
13
|
+
import { http } from './Transport.js'
|
|
15
14
|
|
|
16
15
|
/** A Tempo {@link viem_Client.Client}: the base Client decorated with public, wallet, and Tempo actions. */
|
|
17
16
|
export type Client<
|
|
@@ -96,15 +95,7 @@ export function create<
|
|
|
96
95
|
>
|
|
97
96
|
|
|
98
97
|
export function create(options: create.Options = {}): viem_Client.Client {
|
|
99
|
-
const {
|
|
100
|
-
chain,
|
|
101
|
-
experimental_multisig,
|
|
102
|
-
feeToken,
|
|
103
|
-
testnet,
|
|
104
|
-
tokens,
|
|
105
|
-
transport,
|
|
106
|
-
...rest
|
|
107
|
-
} = options
|
|
98
|
+
const { chain, feeToken, testnet, tokens, transport, ...rest } = options
|
|
108
99
|
const baseChain = (chain ?? (testnet ? tempoModerato : tempo)) as
|
|
109
100
|
| (Chain.Chain & {
|
|
110
101
|
extend?: (extended: { feeToken: unknown }) => Chain.Chain
|
|
@@ -114,21 +105,12 @@ export function create(options: create.Options = {}): viem_Client.Client {
|
|
|
114
105
|
feeToken && typeof baseChain?.extend === 'function'
|
|
115
106
|
? baseChain.extend({ feeToken })
|
|
116
107
|
: baseChain
|
|
117
|
-
const transport_ = transport ?? http()
|
|
118
|
-
const resolvedTransport = experimental_multisig
|
|
119
|
-
? withMultisig(
|
|
120
|
-
transport_,
|
|
121
|
-
experimental_multisig === true
|
|
122
|
-
? { store: Store.memory() }
|
|
123
|
-
: experimental_multisig,
|
|
124
|
-
)
|
|
125
|
-
: transport_
|
|
126
108
|
return viem_Client
|
|
127
109
|
.create({
|
|
128
110
|
...rest,
|
|
129
111
|
chain: resolvedChain,
|
|
130
112
|
tokens: tokens ?? tokenSets.tempo,
|
|
131
|
-
transport:
|
|
113
|
+
transport: transport ?? http(),
|
|
132
114
|
} as viem_Client.create.Options)
|
|
133
115
|
.extend(publicActions())
|
|
134
116
|
.extend(walletActions())
|
|
@@ -163,8 +145,6 @@ export declare namespace create {
|
|
|
163
145
|
* @default tempo (or `tempoModerato` when `testnet` is truthy)
|
|
164
146
|
*/
|
|
165
147
|
chain?: chain | Chain.Chain | undefined
|
|
166
|
-
/** Enables native multisig approval coordination with a local or shared store. */
|
|
167
|
-
experimental_multisig?: true | { store: Store.Atomic } | undefined
|
|
168
148
|
/**
|
|
169
149
|
* Default fee token for the Client. Extended onto the chain so it applies
|
|
170
150
|
* to every transaction sent with the Client.
|