viem 2.44.2 → 2.45.0
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 +36 -0
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +4 -2
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/clients/createBundlerClient.js +8 -2
- package/_cjs/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_cjs/actions/public/estimateContractGas.js +3 -1
- package/_cjs/actions/public/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js +3 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/wallet/sendCalls.js +17 -1
- package/_cjs/actions/wallet/sendCalls.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +11 -7
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +11 -7
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js +2 -2
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/chains/definitions/megaeth.js +33 -0
- package/_cjs/chains/definitions/megaeth.js.map +1 -0
- package/_cjs/chains/definitions/megaethTestnet.js +6 -1
- package/_cjs/chains/definitions/megaethTestnet.js.map +1 -1
- package/_cjs/chains/definitions/rise.js +28 -0
- package/_cjs/chains/definitions/rise.js.map +1 -0
- package/_cjs/chains/definitions/stable.js +35 -0
- package/_cjs/chains/definitions/stable.js.map +1 -0
- package/_cjs/chains/definitions/stableTestnet.js +10 -3
- package/_cjs/chains/definitions/stableTestnet.js.map +1 -1
- package/_cjs/chains/index.js +13 -7
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClient.js +2 -1
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/createWalletClient.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/op-stack/index.js +9 -1
- package/_cjs/op-stack/index.js.map +1 -1
- package/_cjs/tempo/Abis.js +2 -2
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Addresses.js +2 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +19 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Transport.js +1 -1
- package/_cjs/tempo/Transport.js.map +1 -1
- package/_cjs/tempo/actions/fee.js +91 -0
- package/_cjs/tempo/actions/fee.js.map +1 -1
- package/_cjs/tempo/actions/index.js +2 -1
- package/_cjs/tempo/actions/index.js.map +1 -1
- package/_cjs/tempo/actions/validator.js +308 -0
- package/_cjs/tempo/actions/validator.js.map +1 -0
- package/_cjs/types/dataSuffix.js +3 -0
- package/_cjs/types/dataSuffix.js.map +1 -0
- package/_cjs/utils/abi/decodeEventLog.js +29 -12
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +4 -2
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
- package/_esm/account-abstraction/clients/createBundlerClient.js +8 -2
- package/_esm/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_esm/actions/public/estimateContractGas.js +3 -1
- package/_esm/actions/public/estimateContractGas.js.map +1 -1
- package/_esm/actions/public/simulateContract.js +3 -1
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/actions/wallet/sendCalls.js +17 -1
- package/_esm/actions/wallet/sendCalls.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +11 -7
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +11 -7
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/actions/wallet/writeContract.js +2 -2
- package/_esm/actions/wallet/writeContract.js.map +1 -1
- package/_esm/chains/definitions/megaeth.js +30 -0
- package/_esm/chains/definitions/megaeth.js.map +1 -0
- package/_esm/chains/definitions/megaethTestnet.js +6 -1
- package/_esm/chains/definitions/megaethTestnet.js.map +1 -1
- package/_esm/chains/definitions/rise.js +25 -0
- package/_esm/chains/definitions/rise.js.map +1 -0
- package/_esm/chains/definitions/stable.js +32 -0
- package/_esm/chains/definitions/stable.js.map +1 -0
- package/_esm/chains/definitions/stableTestnet.js +10 -3
- package/_esm/chains/definitions/stableTestnet.js.map +1 -1
- package/_esm/chains/index.js +3 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/createClient.js +2 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/createWalletClient.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/op-stack/index.js +4 -0
- package/_esm/op-stack/index.js.map +1 -1
- package/_esm/tempo/Abis.js +1 -1
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Account.js +6 -6
- package/_esm/tempo/Addresses.js +1 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +19 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Transport.js +1 -1
- package/_esm/tempo/Transport.js.map +1 -1
- package/_esm/tempo/WebAuthnP256.js +2 -2
- package/_esm/tempo/actions/amm.js +28 -28
- package/_esm/tempo/actions/dex.js +68 -68
- package/_esm/tempo/actions/faucet.js +4 -4
- package/_esm/tempo/actions/fee.js +236 -10
- package/_esm/tempo/actions/fee.js.map +1 -1
- package/_esm/tempo/actions/index.js +1 -0
- package/_esm/tempo/actions/index.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +4 -4
- package/_esm/tempo/actions/policy.js +36 -36
- package/_esm/tempo/actions/reward.js +28 -28
- package/_esm/tempo/actions/token.js +122 -122
- package/_esm/tempo/actions/validator.js +1017 -0
- package/_esm/tempo/actions/validator.js.map +1 -0
- package/_esm/types/dataSuffix.js +2 -0
- package/_esm/types/dataSuffix.js.map +1 -0
- package/_esm/utils/abi/decodeEventLog.js +34 -13
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts +2 -0
- package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts.map +1 -1
- package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts +2 -0
- package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts.map +1 -1
- package/_types/account-abstraction/clients/createBundlerClient.d.ts +4 -0
- package/_types/account-abstraction/clients/createBundlerClient.d.ts.map +1 -1
- package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/actions/wallet/sendCalls.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +7 -2
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts +5 -0
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/chains/definitions/megaeth.d.ts +46 -0
- package/_types/chains/definitions/megaeth.d.ts.map +1 -0
- package/_types/chains/definitions/megaethTestnet.d.ts +6 -1
- package/_types/chains/definitions/megaethTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/rise.d.ts +46 -0
- package/_types/chains/definitions/rise.d.ts.map +1 -0
- package/_types/chains/definitions/stable.d.ts +47 -0
- package/_types/chains/definitions/stable.d.ts.map +1 -0
- package/_types/chains/definitions/stableTestnet.d.ts +10 -13
- package/_types/chains/definitions/stableTestnet.d.ts.map +1 -1
- package/_types/chains/index.d.ts +3 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +5 -0
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/createWalletClient.d.ts +1 -1
- package/_types/clients/createWalletClient.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +2 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/index.d.ts +4 -0
- package/_types/op-stack/index.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +1 -1
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Account.d.ts +6 -6
- package/_types/tempo/Addresses.d.ts +1 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +607 -208
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Transport.d.ts.map +1 -1
- package/_types/tempo/WebAuthnP256.d.ts +2 -2
- package/_types/tempo/actions/amm.d.ts +28 -28
- package/_types/tempo/actions/dex.d.ts +68 -68
- package/_types/tempo/actions/faucet.d.ts +4 -4
- package/_types/tempo/actions/fee.d.ts +380 -10
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/index.d.ts +1 -0
- package/_types/tempo/actions/index.d.ts.map +1 -1
- package/_types/tempo/actions/nonce.d.ts +4 -4
- package/_types/tempo/actions/policy.d.ts +36 -36
- package/_types/tempo/actions/reward.d.ts +28 -28
- package/_types/tempo/actions/token.d.ts +122 -122
- package/_types/tempo/actions/validator.d.ts +1174 -0
- package/_types/tempo/actions/validator.d.ts.map +1 -0
- package/_types/types/dataSuffix.d.ts +16 -0
- package/_types/types/dataSuffix.d.ts.map +1 -0
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/account-abstraction/actions/bundler/prepareUserOperation.ts +7 -1
- package/account-abstraction/actions/bundler/sendUserOperation.ts +2 -0
- package/account-abstraction/clients/createBundlerClient.ts +12 -1
- package/actions/public/estimateContractGas.ts +11 -2
- package/actions/public/simulateContract.ts +11 -2
- package/actions/wallet/sendCalls.ts +18 -1
- package/actions/wallet/sendTransaction.ts +19 -8
- package/actions/wallet/sendTransactionSync.ts +17 -7
- package/actions/wallet/writeContract.ts +1 -2
- package/chains/definitions/megaeth.ts +30 -0
- package/chains/definitions/megaethTestnet.ts +6 -1
- package/chains/definitions/rise.ts +25 -0
- package/chains/definitions/stable.ts +32 -0
- package/chains/definitions/stableTestnet.ts +10 -3
- package/chains/index.ts +3 -0
- package/clients/createClient.ts +7 -0
- package/clients/createWalletClient.ts +1 -0
- package/errors/version.ts +1 -1
- package/index.ts +2 -0
- package/op-stack/index.ts +24 -0
- package/package.json +1 -1
- package/tempo/Abis.ts +1 -1
- package/tempo/Account.ts +6 -6
- package/tempo/Addresses.ts +1 -0
- package/tempo/Decorator.ts +672 -208
- package/tempo/Transport.ts +4 -1
- package/tempo/WebAuthnP256.ts +2 -2
- package/tempo/actions/amm.ts +28 -28
- package/tempo/actions/dex.ts +68 -68
- package/tempo/actions/faucet.ts +4 -4
- package/tempo/actions/fee.ts +346 -10
- package/tempo/actions/index.ts +1 -0
- package/tempo/actions/nonce.ts +4 -4
- package/tempo/actions/policy.ts +36 -36
- package/tempo/actions/reward.ts +28 -28
- package/tempo/actions/token.ts +122 -122
- package/tempo/actions/validator.ts +1417 -0
- package/types/dataSuffix.ts +18 -0
- package/utils/abi/decodeEventLog.ts +38 -14
|
@@ -9,6 +9,7 @@ import * as feeActions from './actions/fee.js';
|
|
|
9
9
|
import * as policyActions from './actions/policy.js';
|
|
10
10
|
import * as rewardActions from './actions/reward.js';
|
|
11
11
|
import * as tokenActions from './actions/token.js';
|
|
12
|
+
import * as validatorActions from './actions/validator.js';
|
|
12
13
|
export type Decorator<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = {
|
|
13
14
|
amm: {
|
|
14
15
|
/**
|
|
@@ -17,8 +18,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
17
18
|
* @example
|
|
18
19
|
* ```ts
|
|
19
20
|
* import { createClient, http } from 'viem'
|
|
20
|
-
* import { tempo } from '
|
|
21
|
-
* import { tempoActions } from 'tempo
|
|
21
|
+
* import { tempo } from 'viem/chains'
|
|
22
|
+
* import { tempoActions } from 'viem/tempo'
|
|
22
23
|
*
|
|
23
24
|
* const client = createClient({
|
|
24
25
|
* chain: tempo({ feeToken: '0x20c...001' }),
|
|
@@ -41,8 +42,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
41
42
|
* @example
|
|
42
43
|
* ```ts
|
|
43
44
|
* import { createClient, http } from 'viem'
|
|
44
|
-
* import { tempo } from '
|
|
45
|
-
* import { tempoActions } from 'tempo
|
|
45
|
+
* import { tempo } from 'viem/chains'
|
|
46
|
+
* import { tempoActions } from 'viem/tempo'
|
|
46
47
|
*
|
|
47
48
|
* const client = createClient({
|
|
48
49
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -71,8 +72,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
71
72
|
* ```ts
|
|
72
73
|
* import { createClient, http } from 'viem'
|
|
73
74
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
74
|
-
* import { tempo } from '
|
|
75
|
-
* import { tempoActions } from 'tempo
|
|
75
|
+
* import { tempo } from 'viem/chains'
|
|
76
|
+
* import { tempoActions } from 'viem/tempo'
|
|
76
77
|
*
|
|
77
78
|
* const client = createClient({
|
|
78
79
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -99,8 +100,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
99
100
|
* ```ts
|
|
100
101
|
* import { createClient, http } from 'viem'
|
|
101
102
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
102
|
-
* import { tempo } from '
|
|
103
|
-
* import { tempoActions } from 'tempo
|
|
103
|
+
* import { tempo } from 'viem/chains'
|
|
104
|
+
* import { tempoActions } from 'viem/tempo'
|
|
104
105
|
*
|
|
105
106
|
* const client = createClient({
|
|
106
107
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -127,8 +128,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
127
128
|
* ```ts
|
|
128
129
|
* import { createClient, http } from 'viem'
|
|
129
130
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
130
|
-
* import { tempo } from '
|
|
131
|
-
* import { tempoActions } from 'tempo
|
|
131
|
+
* import { tempo } from 'viem/chains'
|
|
132
|
+
* import { tempoActions } from 'viem/tempo'
|
|
132
133
|
*
|
|
133
134
|
* const client = createClient({
|
|
134
135
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -155,8 +156,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
155
156
|
* ```ts
|
|
156
157
|
* import { createClient, http } from 'viem'
|
|
157
158
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
158
|
-
* import { tempo } from '
|
|
159
|
-
* import { tempoActions } from 'tempo
|
|
159
|
+
* import { tempo } from 'viem/chains'
|
|
160
|
+
* import { tempoActions } from 'viem/tempo'
|
|
160
161
|
*
|
|
161
162
|
* const client = createClient({
|
|
162
163
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -183,8 +184,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
183
184
|
* ```ts
|
|
184
185
|
* import { createClient, http } from 'viem'
|
|
185
186
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
186
|
-
* import { tempo } from '
|
|
187
|
-
* import { tempoActions } from 'tempo
|
|
187
|
+
* import { tempo } from 'viem/chains'
|
|
188
|
+
* import { tempoActions } from 'viem/tempo'
|
|
188
189
|
*
|
|
189
190
|
* const client = createClient({
|
|
190
191
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -211,8 +212,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
211
212
|
* ```ts
|
|
212
213
|
* import { createClient, http } from 'viem'
|
|
213
214
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
214
|
-
* import { tempo } from '
|
|
215
|
-
* import { tempoActions } from 'tempo
|
|
215
|
+
* import { tempo } from 'viem/chains'
|
|
216
|
+
* import { tempoActions } from 'viem/tempo'
|
|
216
217
|
*
|
|
217
218
|
* const client = createClient({
|
|
218
219
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -238,8 +239,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
238
239
|
* @example
|
|
239
240
|
* ```ts
|
|
240
241
|
* import { createClient, http } from 'viem'
|
|
241
|
-
* import { tempo } from '
|
|
242
|
-
* import { tempoActions } from 'tempo
|
|
242
|
+
* import { tempo } from 'viem/chains'
|
|
243
|
+
* import { tempoActions } from 'viem/tempo'
|
|
243
244
|
*
|
|
244
245
|
* const client = createClient({
|
|
245
246
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -263,8 +264,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
263
264
|
* @example
|
|
264
265
|
* ```ts
|
|
265
266
|
* import { createClient, http } from 'viem'
|
|
266
|
-
* import { tempo } from '
|
|
267
|
-
* import { tempoActions } from 'tempo
|
|
267
|
+
* import { tempo } from 'viem/chains'
|
|
268
|
+
* import { tempoActions } from 'viem/tempo'
|
|
268
269
|
*
|
|
269
270
|
* const client = createClient({
|
|
270
271
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -288,8 +289,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
288
289
|
* @example
|
|
289
290
|
* ```ts
|
|
290
291
|
* import { createClient, http } from 'viem'
|
|
291
|
-
* import { tempo } from '
|
|
292
|
-
* import { tempoActions } from 'tempo
|
|
292
|
+
* import { tempo } from 'viem/chains'
|
|
293
|
+
* import { tempoActions } from 'viem/tempo'
|
|
293
294
|
*
|
|
294
295
|
* const client = createClient({
|
|
295
296
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -316,8 +317,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
316
317
|
* ```ts
|
|
317
318
|
* import { createClient, http } from 'viem'
|
|
318
319
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
319
|
-
* import { tempo } from '
|
|
320
|
-
* import { tempoActions } from 'tempo
|
|
320
|
+
* import { tempo } from 'viem/chains'
|
|
321
|
+
* import { tempoActions } from 'viem/tempo'
|
|
321
322
|
*
|
|
322
323
|
* const client = createClient({
|
|
323
324
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -344,8 +345,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
344
345
|
* ```ts
|
|
345
346
|
* import { createClient, http } from 'viem'
|
|
346
347
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
347
|
-
* import { tempo } from '
|
|
348
|
-
* import { tempoActions } from 'tempo
|
|
348
|
+
* import { tempo } from 'viem/chains'
|
|
349
|
+
* import { tempoActions } from 'viem/tempo'
|
|
349
350
|
*
|
|
350
351
|
* const client = createClient({
|
|
351
352
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -372,8 +373,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
372
373
|
* ```ts
|
|
373
374
|
* import { createClient, http } from 'viem'
|
|
374
375
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
375
|
-
* import { tempo } from '
|
|
376
|
-
* import { tempoActions } from 'tempo
|
|
376
|
+
* import { tempo } from 'viem/chains'
|
|
377
|
+
* import { tempoActions } from 'viem/tempo'
|
|
377
378
|
*
|
|
378
379
|
* const client = createClient({
|
|
379
380
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -397,8 +398,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
397
398
|
* ```ts
|
|
398
399
|
* import { createClient, http } from 'viem'
|
|
399
400
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
400
|
-
* import { tempo } from '
|
|
401
|
-
* import { tempoActions } from 'tempo
|
|
401
|
+
* import { tempo } from 'viem/chains'
|
|
402
|
+
* import { tempoActions } from 'viem/tempo'
|
|
402
403
|
*
|
|
403
404
|
* const client = createClient({
|
|
404
405
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -425,8 +426,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
425
426
|
* ```ts
|
|
426
427
|
* import { createClient, http } from 'viem'
|
|
427
428
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
428
|
-
* import { tempo } from '
|
|
429
|
-
* import { tempoActions } from 'tempo
|
|
429
|
+
* import { tempo } from 'viem/chains'
|
|
430
|
+
* import { tempoActions } from 'viem/tempo'
|
|
430
431
|
*
|
|
431
432
|
* const client = createClient({
|
|
432
433
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -453,8 +454,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
453
454
|
* ```ts
|
|
454
455
|
* import { createClient, http } from 'viem'
|
|
455
456
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
456
|
-
* import { tempo } from '
|
|
457
|
-
* import { tempoActions } from 'tempo
|
|
457
|
+
* import { tempo } from 'viem/chains'
|
|
458
|
+
* import { tempoActions } from 'viem/tempo'
|
|
458
459
|
*
|
|
459
460
|
* const client = createClient({
|
|
460
461
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -478,8 +479,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
478
479
|
* ```ts
|
|
479
480
|
* import { createClient, http } from 'viem'
|
|
480
481
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
481
|
-
* import { tempo } from '
|
|
482
|
-
* import { tempoActions } from 'tempo
|
|
482
|
+
* import { tempo } from 'viem/chains'
|
|
483
|
+
* import { tempoActions } from 'viem/tempo'
|
|
483
484
|
*
|
|
484
485
|
* const client = createClient({
|
|
485
486
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -503,8 +504,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
503
504
|
* ```ts
|
|
504
505
|
* import { createClient, http } from 'viem'
|
|
505
506
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
506
|
-
* import { tempo } from '
|
|
507
|
-
* import { tempoActions } from 'tempo
|
|
507
|
+
* import { tempo } from 'viem/chains'
|
|
508
|
+
* import { tempoActions } from 'viem/tempo'
|
|
508
509
|
*
|
|
509
510
|
* const client = createClient({
|
|
510
511
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -527,8 +528,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
527
528
|
* @example
|
|
528
529
|
* ```ts
|
|
529
530
|
* import { createClient, http } from 'viem'
|
|
530
|
-
* import { tempo } from '
|
|
531
|
-
* import { tempoActions } from 'tempo
|
|
531
|
+
* import { tempo } from 'viem/chains'
|
|
532
|
+
* import { tempoActions } from 'viem/tempo'
|
|
532
533
|
*
|
|
533
534
|
* const client = createClient({
|
|
534
535
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -551,8 +552,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
551
552
|
* @example
|
|
552
553
|
* ```ts
|
|
553
554
|
* import { createClient, http } from 'viem'
|
|
554
|
-
* import { tempo } from '
|
|
555
|
-
* import { tempoActions } from 'tempo
|
|
555
|
+
* import { tempo } from 'viem/chains'
|
|
556
|
+
* import { tempoActions } from 'viem/tempo'
|
|
556
557
|
*
|
|
557
558
|
* const client = createClient({
|
|
558
559
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -576,8 +577,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
576
577
|
* @example
|
|
577
578
|
* ```ts
|
|
578
579
|
* import { createClient, http } from 'viem'
|
|
579
|
-
* import { tempo } from '
|
|
580
|
-
* import { tempoActions } from 'tempo
|
|
580
|
+
* import { tempo } from 'viem/chains'
|
|
581
|
+
* import { tempoActions } from 'viem/tempo'
|
|
581
582
|
*
|
|
582
583
|
* const client = createClient({
|
|
583
584
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -599,8 +600,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
599
600
|
* @example
|
|
600
601
|
* ```ts
|
|
601
602
|
* import { createClient, http } from 'viem'
|
|
602
|
-
* import { tempo } from '
|
|
603
|
-
* import { tempoActions, Tick } from 'tempo
|
|
603
|
+
* import { tempo } from 'viem/chains'
|
|
604
|
+
* import { tempoActions, Tick } from 'viem/tempo'
|
|
604
605
|
*
|
|
605
606
|
* const client = createClient({
|
|
606
607
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -624,8 +625,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
624
625
|
* @example
|
|
625
626
|
* ```ts
|
|
626
627
|
* import { createClient, http } from 'viem'
|
|
627
|
-
* import { tempo } from '
|
|
628
|
-
* import { tempoActions } from 'tempo
|
|
628
|
+
* import { tempo } from 'viem/chains'
|
|
629
|
+
* import { tempoActions } from 'viem/tempo'
|
|
629
630
|
*
|
|
630
631
|
* const client = createClient({
|
|
631
632
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -650,8 +651,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
650
651
|
* ```ts
|
|
651
652
|
* import { createClient, http } from 'viem'
|
|
652
653
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
653
|
-
* import { tempo } from '
|
|
654
|
-
* import { tempoActions, Tick } from 'tempo
|
|
654
|
+
* import { tempo } from 'viem/chains'
|
|
655
|
+
* import { tempoActions, Tick } from 'viem/tempo'
|
|
655
656
|
*
|
|
656
657
|
* const client = createClient({
|
|
657
658
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -678,8 +679,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
678
679
|
* ```ts
|
|
679
680
|
* import { createClient, http } from 'viem'
|
|
680
681
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
681
|
-
* import { tempo } from '
|
|
682
|
-
* import { tempoActions, Tick } from 'tempo
|
|
682
|
+
* import { tempo } from 'viem/chains'
|
|
683
|
+
* import { tempoActions, Tick } from 'viem/tempo'
|
|
683
684
|
*
|
|
684
685
|
* const client = createClient({
|
|
685
686
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -706,8 +707,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
706
707
|
* ```ts
|
|
707
708
|
* import { createClient, http } from 'viem'
|
|
708
709
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
709
|
-
* import { tempo } from '
|
|
710
|
-
* import { tempoActions, Tick } from 'tempo
|
|
710
|
+
* import { tempo } from 'viem/chains'
|
|
711
|
+
* import { tempoActions, Tick } from 'viem/tempo'
|
|
711
712
|
*
|
|
712
713
|
* const client = createClient({
|
|
713
714
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -735,8 +736,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
735
736
|
* ```ts
|
|
736
737
|
* import { createClient, http } from 'viem'
|
|
737
738
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
738
|
-
* import { tempo } from '
|
|
739
|
-
* import { tempoActions, Tick } from 'tempo
|
|
739
|
+
* import { tempo } from 'viem/chains'
|
|
740
|
+
* import { tempoActions, Tick } from 'viem/tempo'
|
|
740
741
|
*
|
|
741
742
|
* const client = createClient({
|
|
742
743
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -764,8 +765,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
764
765
|
* ```ts
|
|
765
766
|
* import { createClient, http } from 'viem'
|
|
766
767
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
767
|
-
* import { tempo } from '
|
|
768
|
-
* import { tempoActions } from 'tempo
|
|
768
|
+
* import { tempo } from 'viem/chains'
|
|
769
|
+
* import { tempoActions } from 'viem/tempo'
|
|
769
770
|
*
|
|
770
771
|
* const client = createClient({
|
|
771
772
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -792,8 +793,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
792
793
|
* ```ts
|
|
793
794
|
* import { createClient, http } from 'viem'
|
|
794
795
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
795
|
-
* import { tempo } from '
|
|
796
|
-
* import { tempoActions } from 'tempo
|
|
796
|
+
* import { tempo } from 'viem/chains'
|
|
797
|
+
* import { tempoActions } from 'viem/tempo'
|
|
797
798
|
*
|
|
798
799
|
* const client = createClient({
|
|
799
800
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -820,8 +821,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
820
821
|
* ```ts
|
|
821
822
|
* import { createClient, http } from 'viem'
|
|
822
823
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
823
|
-
* import { tempo } from '
|
|
824
|
-
* import { tempoActions } from 'tempo
|
|
824
|
+
* import { tempo } from 'viem/chains'
|
|
825
|
+
* import { tempoActions } from 'viem/tempo'
|
|
825
826
|
*
|
|
826
827
|
* const client = createClient({
|
|
827
828
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -846,8 +847,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
846
847
|
* ```ts
|
|
847
848
|
* import { createClient, http } from 'viem'
|
|
848
849
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
849
|
-
* import { tempo } from '
|
|
850
|
-
* import { tempoActions } from 'tempo
|
|
850
|
+
* import { tempo } from 'viem/chains'
|
|
851
|
+
* import { tempoActions } from 'viem/tempo'
|
|
851
852
|
*
|
|
852
853
|
* const client = createClient({
|
|
853
854
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -871,8 +872,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
871
872
|
* @example
|
|
872
873
|
* ```ts
|
|
873
874
|
* import { createClient, http } from 'viem'
|
|
874
|
-
* import { tempo } from '
|
|
875
|
-
* import { tempoActions } from 'tempo
|
|
875
|
+
* import { tempo } from 'viem/chains'
|
|
876
|
+
* import { tempoActions } from 'viem/tempo'
|
|
876
877
|
*
|
|
877
878
|
* const client = createClient({
|
|
878
879
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -896,8 +897,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
896
897
|
* @example
|
|
897
898
|
* ```ts
|
|
898
899
|
* import { createClient, http } from 'viem'
|
|
899
|
-
* import { tempo } from '
|
|
900
|
-
* import { tempoActions } from 'tempo
|
|
900
|
+
* import { tempo } from 'viem/chains'
|
|
901
|
+
* import { tempoActions } from 'viem/tempo'
|
|
901
902
|
*
|
|
902
903
|
* const client = createClient({
|
|
903
904
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -921,8 +922,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
921
922
|
* @example
|
|
922
923
|
* ```ts
|
|
923
924
|
* import { createClient, http } from 'viem'
|
|
924
|
-
* import { tempo } from '
|
|
925
|
-
* import { tempoActions } from 'tempo
|
|
925
|
+
* import { tempo } from 'viem/chains'
|
|
926
|
+
* import { tempoActions } from 'viem/tempo'
|
|
926
927
|
*
|
|
927
928
|
* const client = createClient({
|
|
928
929
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -946,8 +947,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
946
947
|
* @example
|
|
947
948
|
* ```ts
|
|
948
949
|
* import { createClient, http } from 'viem'
|
|
949
|
-
* import { tempo } from '
|
|
950
|
-
* import { tempoActions } from 'tempo
|
|
950
|
+
* import { tempo } from 'viem/chains'
|
|
951
|
+
* import { tempoActions } from 'viem/tempo'
|
|
951
952
|
*
|
|
952
953
|
* const client = createClient({
|
|
953
954
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -974,8 +975,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
974
975
|
* @example
|
|
975
976
|
* ```ts
|
|
976
977
|
* import { createClient, http } from 'viem'
|
|
977
|
-
* import { tempo } from '
|
|
978
|
-
* import { tempoActions } from 'tempo
|
|
978
|
+
* import { tempo } from 'viem/chains'
|
|
979
|
+
* import { tempoActions } from 'viem/tempo'
|
|
979
980
|
*
|
|
980
981
|
* const client = createClient({
|
|
981
982
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1000,8 +1001,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1000
1001
|
* ```ts
|
|
1001
1002
|
* import { createClient, http } from 'viem'
|
|
1002
1003
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1003
|
-
* import { tempo } from '
|
|
1004
|
-
* import { tempoActions } from 'tempo
|
|
1004
|
+
* import { tempo } from 'viem/chains'
|
|
1005
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1005
1006
|
*
|
|
1006
1007
|
* const client = createClient({
|
|
1007
1008
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1024,8 +1025,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1024
1025
|
* ```ts
|
|
1025
1026
|
* import { createClient, http } from 'viem'
|
|
1026
1027
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1027
|
-
* import { tempo } from '
|
|
1028
|
-
* import { tempoActions } from 'tempo
|
|
1028
|
+
* import { tempo } from 'viem/chains'
|
|
1029
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1029
1030
|
*
|
|
1030
1031
|
* const client = createClient({
|
|
1031
1032
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1050,8 +1051,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1050
1051
|
* ```ts
|
|
1051
1052
|
* import { createClient, http } from 'viem'
|
|
1052
1053
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1053
|
-
* import { tempo } from '
|
|
1054
|
-
* import { tempoActions } from 'tempo
|
|
1054
|
+
* import { tempo } from 'viem/chains'
|
|
1055
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1055
1056
|
*
|
|
1056
1057
|
* const client = createClient({
|
|
1057
1058
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1074,8 +1075,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1074
1075
|
* @example
|
|
1075
1076
|
* ```ts
|
|
1076
1077
|
* import { createClient, http } from 'viem'
|
|
1077
|
-
* import { tempo } from '
|
|
1078
|
-
* import { tempoActions } from 'tempo
|
|
1078
|
+
* import { tempo } from 'viem/chains'
|
|
1079
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1079
1080
|
*
|
|
1080
1081
|
* const client = createClient({
|
|
1081
1082
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1103,8 +1104,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1103
1104
|
* ```ts
|
|
1104
1105
|
* import { createClient, http } from 'viem'
|
|
1105
1106
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1106
|
-
* import { tempo } from '
|
|
1107
|
-
* import { tempoActions } from 'tempo
|
|
1107
|
+
* import { tempo } from 'viem/chains'
|
|
1108
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1108
1109
|
*
|
|
1109
1110
|
* const client = createClient({
|
|
1110
1111
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1129,8 +1130,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1129
1130
|
* ```ts
|
|
1130
1131
|
* import { createClient, http } from 'viem'
|
|
1131
1132
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1132
|
-
* import { tempo } from '
|
|
1133
|
-
* import { tempoActions } from 'tempo
|
|
1133
|
+
* import { tempo } from 'viem/chains'
|
|
1134
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1134
1135
|
*
|
|
1135
1136
|
* const client = createClient({
|
|
1136
1137
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1155,8 +1156,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1155
1156
|
* ```ts
|
|
1156
1157
|
* import { createClient, http } from 'viem'
|
|
1157
1158
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1158
|
-
* import { tempo } from '
|
|
1159
|
-
* import { tempoActions } from 'tempo
|
|
1159
|
+
* import { tempo } from 'viem/chains'
|
|
1160
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1160
1161
|
*
|
|
1161
1162
|
* const client = createClient({
|
|
1162
1163
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1181,8 +1182,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1181
1182
|
* ```ts
|
|
1182
1183
|
* import { createClient, http } from 'viem'
|
|
1183
1184
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1184
|
-
* import { tempo } from '
|
|
1185
|
-
* import { tempoActions } from 'tempo
|
|
1185
|
+
* import { tempo } from 'viem/chains'
|
|
1186
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1186
1187
|
*
|
|
1187
1188
|
* const client = createClient({
|
|
1188
1189
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1207,8 +1208,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1207
1208
|
* ```ts
|
|
1208
1209
|
* import { createClient, http } from 'viem'
|
|
1209
1210
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1210
|
-
* import { tempo } from '
|
|
1211
|
-
* import { tempoActions } from 'tempo
|
|
1211
|
+
* import { tempo } from 'viem/chains'
|
|
1212
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1212
1213
|
*
|
|
1213
1214
|
* const client = createClient({
|
|
1214
1215
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1234,8 +1235,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1234
1235
|
* ```ts
|
|
1235
1236
|
* import { createClient, http } from 'viem'
|
|
1236
1237
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1237
|
-
* import { tempo } from '
|
|
1238
|
-
* import { tempoActions } from 'tempo
|
|
1238
|
+
* import { tempo } from 'viem/chains'
|
|
1239
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1239
1240
|
*
|
|
1240
1241
|
* const client = createClient({
|
|
1241
1242
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1261,8 +1262,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1261
1262
|
* ```ts
|
|
1262
1263
|
* import { createClient, http } from 'viem'
|
|
1263
1264
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1264
|
-
* import { tempo } from '
|
|
1265
|
-
* import { tempoActions } from 'tempo
|
|
1265
|
+
* import { tempo } from 'viem/chains'
|
|
1266
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1266
1267
|
*
|
|
1267
1268
|
* const client = createClient({
|
|
1268
1269
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1288,8 +1289,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1288
1289
|
* ```ts
|
|
1289
1290
|
* import { createClient, http } from 'viem'
|
|
1290
1291
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1291
|
-
* import { tempo } from '
|
|
1292
|
-
* import { tempoActions } from 'tempo
|
|
1292
|
+
* import { tempo } from 'viem/chains'
|
|
1293
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1293
1294
|
*
|
|
1294
1295
|
* const client = createClient({
|
|
1295
1296
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1314,8 +1315,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1314
1315
|
* @example
|
|
1315
1316
|
* ```ts
|
|
1316
1317
|
* import { createClient, http } from 'viem'
|
|
1317
|
-
* import { tempo } from '
|
|
1318
|
-
* import { tempoActions } from 'tempo
|
|
1318
|
+
* import { tempo } from 'viem/chains'
|
|
1319
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1319
1320
|
*
|
|
1320
1321
|
* const client = createClient({
|
|
1321
1322
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1337,8 +1338,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1337
1338
|
* @example
|
|
1338
1339
|
* ```ts
|
|
1339
1340
|
* import { createClient, http } from 'viem'
|
|
1340
|
-
* import { tempo } from '
|
|
1341
|
-
* import { tempoActions } from 'tempo
|
|
1341
|
+
* import { tempo } from 'viem/chains'
|
|
1342
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1342
1343
|
*
|
|
1343
1344
|
* const client = createClient({
|
|
1344
1345
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1361,8 +1362,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1361
1362
|
* @example
|
|
1362
1363
|
* ```ts
|
|
1363
1364
|
* import { createClient, http } from 'viem'
|
|
1364
|
-
* import { tempo } from '
|
|
1365
|
-
* import { tempoActions } from 'tempo
|
|
1365
|
+
* import { tempo } from 'viem/chains'
|
|
1366
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1366
1367
|
*
|
|
1367
1368
|
* const client = createClient({
|
|
1368
1369
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1386,8 +1387,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1386
1387
|
* @example
|
|
1387
1388
|
* ```ts
|
|
1388
1389
|
* import { createClient, http } from 'viem'
|
|
1389
|
-
* import { tempo } from '
|
|
1390
|
-
* import { tempoActions } from 'tempo
|
|
1390
|
+
* import { tempo } from 'viem/chains'
|
|
1391
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1391
1392
|
*
|
|
1392
1393
|
* const client = createClient({
|
|
1393
1394
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1411,8 +1412,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1411
1412
|
* @example
|
|
1412
1413
|
* ```ts
|
|
1413
1414
|
* import { createClient, http } from 'viem'
|
|
1414
|
-
* import { tempo } from '
|
|
1415
|
-
* import { tempoActions } from 'tempo
|
|
1415
|
+
* import { tempo } from 'viem/chains'
|
|
1416
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1416
1417
|
*
|
|
1417
1418
|
* const client = createClient({
|
|
1418
1419
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1436,8 +1437,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1436
1437
|
* @example
|
|
1437
1438
|
* ```ts
|
|
1438
1439
|
* import { createClient, http } from 'viem'
|
|
1439
|
-
* import { tempo } from '
|
|
1440
|
-
* import { tempoActions } from 'tempo
|
|
1440
|
+
* import { tempo } from 'viem/chains'
|
|
1441
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1441
1442
|
*
|
|
1442
1443
|
* const client = createClient({
|
|
1443
1444
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1464,8 +1465,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1464
1465
|
* ```ts
|
|
1465
1466
|
* import { createClient, http } from 'viem'
|
|
1466
1467
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1467
|
-
* import { tempo } from '
|
|
1468
|
-
* import { tempoActions } from 'tempo
|
|
1468
|
+
* import { tempo } from 'viem/chains'
|
|
1469
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1469
1470
|
*
|
|
1470
1471
|
* const client = createClient({
|
|
1471
1472
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1489,8 +1490,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1489
1490
|
* ```ts
|
|
1490
1491
|
* import { createClient, http } from 'viem'
|
|
1491
1492
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1492
|
-
* import { tempo } from '
|
|
1493
|
-
* import { tempoActions } from 'tempo
|
|
1493
|
+
* import { tempo } from 'viem/chains'
|
|
1494
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1494
1495
|
*
|
|
1495
1496
|
* const client = createClient({
|
|
1496
1497
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1514,8 +1515,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1514
1515
|
* ```ts
|
|
1515
1516
|
* import { createClient, http } from 'viem'
|
|
1516
1517
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1517
|
-
* import { tempo } from '
|
|
1518
|
-
* import { tempoActions } from 'tempo
|
|
1518
|
+
* import { tempo } from 'viem/chains'
|
|
1519
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1519
1520
|
*
|
|
1520
1521
|
* const client = createClient({
|
|
1521
1522
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1540,8 +1541,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1540
1541
|
* ```ts
|
|
1541
1542
|
* import { createClient, http } from 'viem'
|
|
1542
1543
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1543
|
-
* import { tempo } from '
|
|
1544
|
-
* import { tempoActions } from 'tempo
|
|
1544
|
+
* import { tempo } from 'viem/chains'
|
|
1545
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1545
1546
|
*
|
|
1546
1547
|
* const client = createClient({
|
|
1547
1548
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1565,8 +1566,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1565
1566
|
* @example
|
|
1566
1567
|
* ```ts
|
|
1567
1568
|
* import { createClient, http } from 'viem'
|
|
1568
|
-
* import { tempo } from '
|
|
1569
|
-
* import { tempoActions } from 'tempo
|
|
1569
|
+
* import { tempo } from 'viem/chains'
|
|
1570
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1570
1571
|
*
|
|
1571
1572
|
* const client = createClient({
|
|
1572
1573
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1590,8 +1591,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1590
1591
|
* ```ts
|
|
1591
1592
|
* import { createClient, http } from 'viem'
|
|
1592
1593
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1593
|
-
* import { tempo } from '
|
|
1594
|
-
* import { tempoActions } from 'tempo
|
|
1594
|
+
* import { tempo } from 'viem/chains'
|
|
1595
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1595
1596
|
*
|
|
1596
1597
|
* const client = createClient({
|
|
1597
1598
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1616,8 +1617,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1616
1617
|
* ```ts
|
|
1617
1618
|
* import { createClient, http } from 'viem'
|
|
1618
1619
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1619
|
-
* import { tempo } from '
|
|
1620
|
-
* import { tempoActions } from 'tempo
|
|
1620
|
+
* import { tempo } from 'viem/chains'
|
|
1621
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1621
1622
|
*
|
|
1622
1623
|
* const client = createClient({
|
|
1623
1624
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1641,8 +1642,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1641
1642
|
* @example
|
|
1642
1643
|
* ```ts
|
|
1643
1644
|
* import { createClient, http } from 'viem'
|
|
1644
|
-
* import { tempo } from '
|
|
1645
|
-
* import { tempoActions } from 'tempo
|
|
1645
|
+
* import { tempo } from 'viem/chains'
|
|
1646
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1646
1647
|
*
|
|
1647
1648
|
* const client = createClient({
|
|
1648
1649
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1667,8 +1668,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1667
1668
|
* @example
|
|
1668
1669
|
* ```ts
|
|
1669
1670
|
* import { createClient, http } from 'viem'
|
|
1670
|
-
* import { tempo } from '
|
|
1671
|
-
* import { tempoActions } from 'tempo
|
|
1671
|
+
* import { tempo } from 'viem/chains'
|
|
1672
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1672
1673
|
*
|
|
1673
1674
|
* const client = createClient({
|
|
1674
1675
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -1696,8 +1697,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1696
1697
|
* ```ts
|
|
1697
1698
|
* import { createClient, http } from 'viem'
|
|
1698
1699
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1699
|
-
* import { tempo } from '
|
|
1700
|
-
* import { tempoActions } from 'tempo
|
|
1700
|
+
* import { tempo } from 'viem/chains'
|
|
1701
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1701
1702
|
*
|
|
1702
1703
|
* const client = createClient({
|
|
1703
1704
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1723,8 +1724,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1723
1724
|
* ```ts
|
|
1724
1725
|
* import { createClient, http } from 'viem'
|
|
1725
1726
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1726
|
-
* import { tempo } from '
|
|
1727
|
-
* import { tempoActions } from 'tempo
|
|
1727
|
+
* import { tempo } from 'viem/chains'
|
|
1728
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1728
1729
|
*
|
|
1729
1730
|
* const client = createClient({
|
|
1730
1731
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1750,8 +1751,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1750
1751
|
* ```ts
|
|
1751
1752
|
* import { createClient, http } from 'viem'
|
|
1752
1753
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1753
|
-
* import { tempo } from '
|
|
1754
|
-
* import { tempoActions } from 'tempo
|
|
1754
|
+
* import { tempo } from 'viem/chains'
|
|
1755
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1755
1756
|
*
|
|
1756
1757
|
* const client = createClient({
|
|
1757
1758
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1778,8 +1779,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1778
1779
|
* ```ts
|
|
1779
1780
|
* import { createClient, http } from 'viem'
|
|
1780
1781
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1781
|
-
* import { tempo } from '
|
|
1782
|
-
* import { tempoActions } from 'tempo
|
|
1782
|
+
* import { tempo } from 'viem/chains'
|
|
1783
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1783
1784
|
*
|
|
1784
1785
|
* const client = createClient({
|
|
1785
1786
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1806,8 +1807,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1806
1807
|
* ```ts
|
|
1807
1808
|
* import { createClient, http } from 'viem'
|
|
1808
1809
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1809
|
-
* import { tempo } from '
|
|
1810
|
-
* import { tempoActions } from 'tempo
|
|
1810
|
+
* import { tempo } from 'viem/chains'
|
|
1811
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1811
1812
|
*
|
|
1812
1813
|
* const client = createClient({
|
|
1813
1814
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1833,8 +1834,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1833
1834
|
* ```ts
|
|
1834
1835
|
* import { createClient, http } from 'viem'
|
|
1835
1836
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1836
|
-
* import { tempo } from '
|
|
1837
|
-
* import { tempoActions } from 'tempo
|
|
1837
|
+
* import { tempo } from 'viem/chains'
|
|
1838
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1838
1839
|
*
|
|
1839
1840
|
* const client = createClient({
|
|
1840
1841
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1860,8 +1861,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1860
1861
|
* ```ts
|
|
1861
1862
|
* import { createClient, http } from 'viem'
|
|
1862
1863
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1863
|
-
* import { tempo } from '
|
|
1864
|
-
* import { tempoActions } from 'tempo
|
|
1864
|
+
* import { tempo } from 'viem/chains'
|
|
1865
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1865
1866
|
*
|
|
1866
1867
|
* const client = createClient({
|
|
1867
1868
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1887,8 +1888,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1887
1888
|
* ```ts
|
|
1888
1889
|
* import { createClient, http } from 'viem'
|
|
1889
1890
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1890
|
-
* import { tempo } from '
|
|
1891
|
-
* import { tempoActions } from 'tempo
|
|
1891
|
+
* import { tempo } from 'viem/chains'
|
|
1892
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1892
1893
|
*
|
|
1893
1894
|
* const client = createClient({
|
|
1894
1895
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1914,8 +1915,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1914
1915
|
* ```ts
|
|
1915
1916
|
* import { createClient, http } from 'viem'
|
|
1916
1917
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1917
|
-
* import { tempo } from '
|
|
1918
|
-
* import { tempoActions } from 'tempo
|
|
1918
|
+
* import { tempo } from 'viem/chains'
|
|
1919
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1919
1920
|
*
|
|
1920
1921
|
* const client = createClient({
|
|
1921
1922
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1942,8 +1943,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1942
1943
|
* ```ts
|
|
1943
1944
|
* import { createClient, http } from 'viem'
|
|
1944
1945
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1945
|
-
* import { tempo } from '
|
|
1946
|
-
* import { tempoActions } from 'tempo
|
|
1946
|
+
* import { tempo } from 'viem/chains'
|
|
1947
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1947
1948
|
*
|
|
1948
1949
|
* const client = createClient({
|
|
1949
1950
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1970,8 +1971,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1970
1971
|
* ```ts
|
|
1971
1972
|
* import { createClient, http } from 'viem'
|
|
1972
1973
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1973
|
-
* import { tempo } from '
|
|
1974
|
-
* import { tempoActions } from 'tempo
|
|
1974
|
+
* import { tempo } from 'viem/chains'
|
|
1975
|
+
* import { tempoActions } from 'viem/tempo'
|
|
1975
1976
|
*
|
|
1976
1977
|
* const client = createClient({
|
|
1977
1978
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -1996,8 +1997,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
1996
1997
|
* ```ts
|
|
1997
1998
|
* import { createClient, http } from 'viem'
|
|
1998
1999
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1999
|
-
* import { tempo } from '
|
|
2000
|
-
* import { tempoActions } from 'tempo
|
|
2000
|
+
* import { tempo } from 'viem/chains'
|
|
2001
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2001
2002
|
*
|
|
2002
2003
|
* const client = createClient({
|
|
2003
2004
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2019,8 +2020,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2019
2020
|
* @example
|
|
2020
2021
|
* ```ts
|
|
2021
2022
|
* import { createClient, http } from 'viem'
|
|
2022
|
-
* import { tempo } from '
|
|
2023
|
-
* import { tempoActions } from 'tempo
|
|
2023
|
+
* import { tempo } from 'viem/chains'
|
|
2024
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2024
2025
|
*
|
|
2025
2026
|
* const client = createClient({
|
|
2026
2027
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2043,8 +2044,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2043
2044
|
* @example
|
|
2044
2045
|
* ```ts
|
|
2045
2046
|
* import { createClient, http } from 'viem'
|
|
2046
|
-
* import { tempo } from '
|
|
2047
|
-
* import { tempoActions } from 'tempo
|
|
2047
|
+
* import { tempo } from 'viem/chains'
|
|
2048
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2048
2049
|
*
|
|
2049
2050
|
* const client = createClient({
|
|
2050
2051
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2069,8 +2070,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2069
2070
|
* ```ts
|
|
2070
2071
|
* import { createClient, http } from 'viem'
|
|
2071
2072
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2072
|
-
* import { tempo } from '
|
|
2073
|
-
* import { tempoActions } from 'tempo
|
|
2073
|
+
* import { tempo } from 'viem/chains'
|
|
2074
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2074
2075
|
*
|
|
2075
2076
|
* const client = createClient({
|
|
2076
2077
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2096,8 +2097,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2096
2097
|
* ```ts
|
|
2097
2098
|
* import { createClient, http } from 'viem'
|
|
2098
2099
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2099
|
-
* import { tempo } from '
|
|
2100
|
-
* import { tempoActions } from 'tempo
|
|
2100
|
+
* import { tempo } from 'viem/chains'
|
|
2101
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2101
2102
|
*
|
|
2102
2103
|
* const client = createClient({
|
|
2103
2104
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2124,8 +2125,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2124
2125
|
* ```ts
|
|
2125
2126
|
* import { createClient, http } from 'viem'
|
|
2126
2127
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2127
|
-
* import { tempo } from '
|
|
2128
|
-
* import { tempoActions } from 'tempo
|
|
2128
|
+
* import { tempo } from 'viem/chains'
|
|
2129
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2129
2130
|
*
|
|
2130
2131
|
* const client = createClient({
|
|
2131
2132
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2151,8 +2152,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2151
2152
|
* ```ts
|
|
2152
2153
|
* import { createClient, http } from 'viem'
|
|
2153
2154
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2154
|
-
* import { tempo } from '
|
|
2155
|
-
* import { tempoActions } from 'tempo
|
|
2155
|
+
* import { tempo } from 'viem/chains'
|
|
2156
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2156
2157
|
*
|
|
2157
2158
|
* const client = createClient({
|
|
2158
2159
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2179,8 +2180,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2179
2180
|
* ```ts
|
|
2180
2181
|
* import { createClient, http } from 'viem'
|
|
2181
2182
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2182
|
-
* import { tempo } from '
|
|
2183
|
-
* import { tempoActions } from 'tempo
|
|
2183
|
+
* import { tempo } from 'viem/chains'
|
|
2184
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2184
2185
|
*
|
|
2185
2186
|
* const client = createClient({
|
|
2186
2187
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2207,8 +2208,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2207
2208
|
* ```ts
|
|
2208
2209
|
* import { createClient, http } from 'viem'
|
|
2209
2210
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2210
|
-
* import { tempo } from '
|
|
2211
|
-
* import { tempoActions } from 'tempo
|
|
2211
|
+
* import { tempo } from 'viem/chains'
|
|
2212
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2212
2213
|
*
|
|
2213
2214
|
* const client = createClient({
|
|
2214
2215
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2233,8 +2234,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2233
2234
|
* ```ts
|
|
2234
2235
|
* import { createClient, http } from 'viem'
|
|
2235
2236
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2236
|
-
* import { tempo } from '
|
|
2237
|
-
* import { tempoActions } from 'tempo
|
|
2237
|
+
* import { tempo } from 'viem/chains'
|
|
2238
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2238
2239
|
*
|
|
2239
2240
|
* const client = createClient({
|
|
2240
2241
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2259,8 +2260,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2259
2260
|
* ```ts
|
|
2260
2261
|
* import { createClient, http } from 'viem'
|
|
2261
2262
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2262
|
-
* import { tempo } from '
|
|
2263
|
-
* import { tempoActions } from 'tempo
|
|
2263
|
+
* import { tempo } from 'viem/chains'
|
|
2264
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2264
2265
|
*
|
|
2265
2266
|
* const client = createClient({
|
|
2266
2267
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2286,8 +2287,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2286
2287
|
* ```ts
|
|
2287
2288
|
* import { createClient, http } from 'viem'
|
|
2288
2289
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2289
|
-
* import { tempo } from '
|
|
2290
|
-
* import { tempoActions } from 'tempo
|
|
2290
|
+
* import { tempo } from 'viem/chains'
|
|
2291
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2291
2292
|
*
|
|
2292
2293
|
* const client = createClient({
|
|
2293
2294
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2312,8 +2313,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2312
2313
|
* ```ts
|
|
2313
2314
|
* import { createClient, http } from 'viem'
|
|
2314
2315
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2315
|
-
* import { tempo } from '
|
|
2316
|
-
* import { tempoActions } from 'tempo
|
|
2316
|
+
* import { tempo } from 'viem/chains'
|
|
2317
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2317
2318
|
*
|
|
2318
2319
|
* const client = createClient({
|
|
2319
2320
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2340,8 +2341,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2340
2341
|
* ```ts
|
|
2341
2342
|
* import { createClient, http } from 'viem'
|
|
2342
2343
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2343
|
-
* import { tempo } from '
|
|
2344
|
-
* import { tempoActions } from 'tempo
|
|
2344
|
+
* import { tempo } from 'viem/chains'
|
|
2345
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2345
2346
|
*
|
|
2346
2347
|
* const client = createClient({
|
|
2347
2348
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2367,8 +2368,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2367
2368
|
* ```ts
|
|
2368
2369
|
* import { createClient, http } from 'viem'
|
|
2369
2370
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2370
|
-
* import { tempo } from '
|
|
2371
|
-
* import { tempoActions } from 'tempo
|
|
2371
|
+
* import { tempo } from 'viem/chains'
|
|
2372
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2372
2373
|
*
|
|
2373
2374
|
* const client = createClient({
|
|
2374
2375
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2394,8 +2395,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2394
2395
|
* ```ts
|
|
2395
2396
|
* import { createClient, http } from 'viem'
|
|
2396
2397
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2397
|
-
* import { tempo } from '
|
|
2398
|
-
* import { tempoActions } from 'tempo
|
|
2398
|
+
* import { tempo } from 'viem/chains'
|
|
2399
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2399
2400
|
*
|
|
2400
2401
|
* const client = createClient({
|
|
2401
2402
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2421,8 +2422,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2421
2422
|
* ```ts
|
|
2422
2423
|
* import { createClient, http } from 'viem'
|
|
2423
2424
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2424
|
-
* import { tempo } from '
|
|
2425
|
-
* import { tempoActions } from 'tempo
|
|
2425
|
+
* import { tempo } from 'viem/chains'
|
|
2426
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2426
2427
|
*
|
|
2427
2428
|
* const client = createClient({
|
|
2428
2429
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2449,8 +2450,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2449
2450
|
* ```ts
|
|
2450
2451
|
* import { createClient, http } from 'viem'
|
|
2451
2452
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2452
|
-
* import { tempo } from '
|
|
2453
|
-
* import { tempoActions } from 'tempo
|
|
2453
|
+
* import { tempo } from 'viem/chains'
|
|
2454
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2454
2455
|
*
|
|
2455
2456
|
* const client = createClient({
|
|
2456
2457
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2477,8 +2478,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2477
2478
|
* ```ts
|
|
2478
2479
|
* import { createClient, http } from 'viem'
|
|
2479
2480
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2480
|
-
* import { tempo } from '
|
|
2481
|
-
* import { tempoActions } from 'tempo
|
|
2481
|
+
* import { tempo } from 'viem/chains'
|
|
2482
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2482
2483
|
*
|
|
2483
2484
|
* const client = createClient({
|
|
2484
2485
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2504,8 +2505,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2504
2505
|
* ```ts
|
|
2505
2506
|
* import { createClient, http } from 'viem'
|
|
2506
2507
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2507
|
-
* import { tempo } from '
|
|
2508
|
-
* import { tempoActions } from 'tempo
|
|
2508
|
+
* import { tempo } from 'viem/chains'
|
|
2509
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2509
2510
|
*
|
|
2510
2511
|
* const client = createClient({
|
|
2511
2512
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2531,8 +2532,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2531
2532
|
* ```ts
|
|
2532
2533
|
* import { createClient, http } from 'viem'
|
|
2533
2534
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2534
|
-
* import { tempo } from '
|
|
2535
|
-
* import { tempoActions } from 'tempo
|
|
2535
|
+
* import { tempo } from 'viem/chains'
|
|
2536
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2536
2537
|
*
|
|
2537
2538
|
* const client = createClient({
|
|
2538
2539
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2557,8 +2558,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2557
2558
|
* ```ts
|
|
2558
2559
|
* import { createClient, http } from 'viem'
|
|
2559
2560
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2560
|
-
* import { tempo } from '
|
|
2561
|
-
* import { tempoActions } from 'tempo
|
|
2561
|
+
* import { tempo } from 'viem/chains'
|
|
2562
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2562
2563
|
*
|
|
2563
2564
|
* const client = createClient({
|
|
2564
2565
|
* account: privateKeyToAccount('0x...'),
|
|
@@ -2582,8 +2583,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2582
2583
|
* @example
|
|
2583
2584
|
* ```ts
|
|
2584
2585
|
* import { createClient, http } from 'viem'
|
|
2585
|
-
* import { tempo } from '
|
|
2586
|
-
* import { tempoActions } from 'tempo
|
|
2586
|
+
* import { tempo } from 'viem/chains'
|
|
2587
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2587
2588
|
*
|
|
2588
2589
|
* const client = createClient({
|
|
2589
2590
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2608,8 +2609,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2608
2609
|
* @example
|
|
2609
2610
|
* ```ts
|
|
2610
2611
|
* import { createClient, http } from 'viem'
|
|
2611
|
-
* import { tempo } from '
|
|
2612
|
-
* import { tempoActions } from 'tempo
|
|
2612
|
+
* import { tempo } from 'viem/chains'
|
|
2613
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2613
2614
|
*
|
|
2614
2615
|
* const client = createClient({
|
|
2615
2616
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2634,8 +2635,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2634
2635
|
* @example
|
|
2635
2636
|
* ```ts
|
|
2636
2637
|
* import { createClient, http } from 'viem'
|
|
2637
|
-
* import { tempo } from '
|
|
2638
|
-
* import { tempoActions } from 'tempo
|
|
2638
|
+
* import { tempo } from 'viem/chains'
|
|
2639
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2639
2640
|
*
|
|
2640
2641
|
* const client = createClient({
|
|
2641
2642
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2660,8 +2661,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2660
2661
|
* @example
|
|
2661
2662
|
* ```ts
|
|
2662
2663
|
* import { createClient, http } from 'viem'
|
|
2663
|
-
* import { tempo } from '
|
|
2664
|
-
* import { tempoActions } from 'tempo
|
|
2664
|
+
* import { tempo } from 'viem/chains'
|
|
2665
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2665
2666
|
*
|
|
2666
2667
|
* const client = createClient({
|
|
2667
2668
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2686,8 +2687,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2686
2687
|
* @example
|
|
2687
2688
|
* ```ts
|
|
2688
2689
|
* import { createClient, http } from 'viem'
|
|
2689
|
-
* import { tempo } from '
|
|
2690
|
-
* import { tempoActions } from 'tempo
|
|
2690
|
+
* import { tempo } from 'viem/chains'
|
|
2691
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2691
2692
|
*
|
|
2692
2693
|
* const client = createClient({
|
|
2693
2694
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2712,8 +2713,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2712
2713
|
* @example
|
|
2713
2714
|
* ```ts
|
|
2714
2715
|
* import { createClient, http } from 'viem'
|
|
2715
|
-
* import { tempo } from '
|
|
2716
|
-
* import { tempoActions } from 'tempo
|
|
2716
|
+
* import { tempo } from 'viem/chains'
|
|
2717
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2717
2718
|
*
|
|
2718
2719
|
* const client = createClient({
|
|
2719
2720
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2738,8 +2739,8 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2738
2739
|
* @example
|
|
2739
2740
|
* ```ts
|
|
2740
2741
|
* import { createClient, http } from 'viem'
|
|
2741
|
-
* import { tempo } from '
|
|
2742
|
-
* import { tempoActions } from 'tempo
|
|
2742
|
+
* import { tempo } from 'viem/chains'
|
|
2743
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2743
2744
|
*
|
|
2744
2745
|
* const client = createClient({
|
|
2745
2746
|
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
@@ -2759,6 +2760,404 @@ export type Decorator<chain extends Chain | undefined = Chain | undefined, accou
|
|
|
2759
2760
|
*/
|
|
2760
2761
|
watchTransfer: (parameters: tokenActions.watchTransfer.Parameters) => () => void;
|
|
2761
2762
|
};
|
|
2763
|
+
validator: {
|
|
2764
|
+
/**
|
|
2765
|
+
* Adds a new validator (owner only).
|
|
2766
|
+
*
|
|
2767
|
+
* @example
|
|
2768
|
+
* ```ts
|
|
2769
|
+
* import { createClient, http } from 'viem'
|
|
2770
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2771
|
+
* import { tempo } from 'viem/chains'
|
|
2772
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2773
|
+
*
|
|
2774
|
+
* const client = createClient({
|
|
2775
|
+
* account: privateKeyToAccount('0x...'),
|
|
2776
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2777
|
+
* transport: http(),
|
|
2778
|
+
* }).extend(tempoActions())
|
|
2779
|
+
*
|
|
2780
|
+
* const hash = await client.validator.add({
|
|
2781
|
+
* newValidatorAddress: '0x...',
|
|
2782
|
+
* publicKey: '0x...',
|
|
2783
|
+
* active: true,
|
|
2784
|
+
* inboundAddress: '192.168.1.1:8080',
|
|
2785
|
+
* outboundAddress: '192.168.1.1:8080',
|
|
2786
|
+
* })
|
|
2787
|
+
* ```
|
|
2788
|
+
*
|
|
2789
|
+
* @param parameters - Parameters.
|
|
2790
|
+
* @returns The transaction hash.
|
|
2791
|
+
*/
|
|
2792
|
+
add: (parameters: validatorActions.add.Parameters<chain, account>) => Promise<validatorActions.add.ReturnValue>;
|
|
2793
|
+
/**
|
|
2794
|
+
* Adds a new validator (owner only) and waits for the transaction receipt.
|
|
2795
|
+
*
|
|
2796
|
+
* @example
|
|
2797
|
+
* ```ts
|
|
2798
|
+
* import { createClient, http } from 'viem'
|
|
2799
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2800
|
+
* import { tempo } from 'viem/chains'
|
|
2801
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2802
|
+
*
|
|
2803
|
+
* const client = createClient({
|
|
2804
|
+
* account: privateKeyToAccount('0x...'),
|
|
2805
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2806
|
+
* transport: http(),
|
|
2807
|
+
* }).extend(tempoActions())
|
|
2808
|
+
*
|
|
2809
|
+
* const { receipt } = await client.validator.addSync({
|
|
2810
|
+
* newValidatorAddress: '0x...',
|
|
2811
|
+
* publicKey: '0x...',
|
|
2812
|
+
* active: true,
|
|
2813
|
+
* inboundAddress: '192.168.1.1:8080',
|
|
2814
|
+
* outboundAddress: '192.168.1.1:8080',
|
|
2815
|
+
* })
|
|
2816
|
+
* ```
|
|
2817
|
+
*
|
|
2818
|
+
* @param parameters - Parameters.
|
|
2819
|
+
* @returns The transaction receipt.
|
|
2820
|
+
*/
|
|
2821
|
+
addSync: (parameters: validatorActions.addSync.Parameters<chain, account>) => Promise<validatorActions.addSync.ReturnValue>;
|
|
2822
|
+
/**
|
|
2823
|
+
* Changes the owner of the validator config precompile.
|
|
2824
|
+
*
|
|
2825
|
+
* @example
|
|
2826
|
+
* ```ts
|
|
2827
|
+
* import { createClient, http } from 'viem'
|
|
2828
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2829
|
+
* import { tempo } from 'viem/chains'
|
|
2830
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2831
|
+
*
|
|
2832
|
+
* const client = createClient({
|
|
2833
|
+
* account: privateKeyToAccount('0x...'),
|
|
2834
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2835
|
+
* transport: http(),
|
|
2836
|
+
* }).extend(tempoActions())
|
|
2837
|
+
*
|
|
2838
|
+
* const hash = await client.validator.changeOwner({
|
|
2839
|
+
* newOwner: '0x...',
|
|
2840
|
+
* })
|
|
2841
|
+
* ```
|
|
2842
|
+
*
|
|
2843
|
+
* @param parameters - Parameters.
|
|
2844
|
+
* @returns The transaction hash.
|
|
2845
|
+
*/
|
|
2846
|
+
changeOwner: (parameters: validatorActions.changeOwner.Parameters<chain, account>) => Promise<validatorActions.changeOwner.ReturnValue>;
|
|
2847
|
+
/**
|
|
2848
|
+
* Changes the owner of the validator config precompile and waits for the transaction receipt.
|
|
2849
|
+
*
|
|
2850
|
+
* @example
|
|
2851
|
+
* ```ts
|
|
2852
|
+
* import { createClient, http } from 'viem'
|
|
2853
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2854
|
+
* import { tempo } from 'viem/chains'
|
|
2855
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2856
|
+
*
|
|
2857
|
+
* const client = createClient({
|
|
2858
|
+
* account: privateKeyToAccount('0x...'),
|
|
2859
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2860
|
+
* transport: http(),
|
|
2861
|
+
* }).extend(tempoActions())
|
|
2862
|
+
*
|
|
2863
|
+
* const { receipt } = await client.validator.changeOwnerSync({
|
|
2864
|
+
* newOwner: '0x...',
|
|
2865
|
+
* })
|
|
2866
|
+
* ```
|
|
2867
|
+
*
|
|
2868
|
+
* @param parameters - Parameters.
|
|
2869
|
+
* @returns The transaction receipt.
|
|
2870
|
+
*/
|
|
2871
|
+
changeOwnerSync: (parameters: validatorActions.changeOwnerSync.Parameters<chain, account>) => Promise<validatorActions.changeOwnerSync.ReturnValue>;
|
|
2872
|
+
/**
|
|
2873
|
+
* Changes validator active status (owner only).
|
|
2874
|
+
*
|
|
2875
|
+
* @example
|
|
2876
|
+
* ```ts
|
|
2877
|
+
* import { createClient, http } from 'viem'
|
|
2878
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2879
|
+
* import { tempo } from 'viem/chains'
|
|
2880
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2881
|
+
*
|
|
2882
|
+
* const client = createClient({
|
|
2883
|
+
* account: privateKeyToAccount('0x...'),
|
|
2884
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2885
|
+
* transport: http(),
|
|
2886
|
+
* }).extend(tempoActions())
|
|
2887
|
+
*
|
|
2888
|
+
* const hash = await client.validator.changeStatus({
|
|
2889
|
+
* validator: '0x...',
|
|
2890
|
+
* active: false,
|
|
2891
|
+
* })
|
|
2892
|
+
* ```
|
|
2893
|
+
*
|
|
2894
|
+
* @param parameters - Parameters.
|
|
2895
|
+
* @returns The transaction hash.
|
|
2896
|
+
*/
|
|
2897
|
+
changeStatus: (parameters: validatorActions.changeStatus.Parameters<chain, account>) => Promise<validatorActions.changeStatus.ReturnValue>;
|
|
2898
|
+
/**
|
|
2899
|
+
* Changes validator active status and waits for the transaction receipt.
|
|
2900
|
+
*
|
|
2901
|
+
* @example
|
|
2902
|
+
* ```ts
|
|
2903
|
+
* import { createClient, http } from 'viem'
|
|
2904
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2905
|
+
* import { tempo } from 'viem/chains'
|
|
2906
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2907
|
+
*
|
|
2908
|
+
* const client = createClient({
|
|
2909
|
+
* account: privateKeyToAccount('0x...'),
|
|
2910
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2911
|
+
* transport: http(),
|
|
2912
|
+
* }).extend(tempoActions())
|
|
2913
|
+
*
|
|
2914
|
+
* const { receipt } = await client.validator.changeStatusSync({
|
|
2915
|
+
* validator: '0x...',
|
|
2916
|
+
* active: false,
|
|
2917
|
+
* })
|
|
2918
|
+
* ```
|
|
2919
|
+
*
|
|
2920
|
+
* @param parameters - Parameters.
|
|
2921
|
+
* @returns The transaction receipt.
|
|
2922
|
+
*/
|
|
2923
|
+
changeStatusSync: (parameters: validatorActions.changeStatusSync.Parameters<chain, account>) => Promise<validatorActions.changeStatusSync.ReturnValue>;
|
|
2924
|
+
/**
|
|
2925
|
+
* Gets validator information by address.
|
|
2926
|
+
*
|
|
2927
|
+
* @example
|
|
2928
|
+
* ```ts
|
|
2929
|
+
* import { createClient, http } from 'viem'
|
|
2930
|
+
* import { tempo } from 'viem/chains'
|
|
2931
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2932
|
+
*
|
|
2933
|
+
* const client = createClient({
|
|
2934
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2935
|
+
* transport: http(),
|
|
2936
|
+
* }).extend(tempoActions())
|
|
2937
|
+
*
|
|
2938
|
+
* const validator = await client.validator.get({
|
|
2939
|
+
* validator: '0x...',
|
|
2940
|
+
* })
|
|
2941
|
+
* ```
|
|
2942
|
+
*
|
|
2943
|
+
* @param parameters - Parameters.
|
|
2944
|
+
* @returns The validator information.
|
|
2945
|
+
*/
|
|
2946
|
+
get: (parameters: validatorActions.get.Parameters) => Promise<validatorActions.get.ReturnValue>;
|
|
2947
|
+
/**
|
|
2948
|
+
* Gets validator address by index.
|
|
2949
|
+
*
|
|
2950
|
+
* @example
|
|
2951
|
+
* ```ts
|
|
2952
|
+
* import { createClient, http } from 'viem'
|
|
2953
|
+
* import { tempo } from 'viem/chains'
|
|
2954
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2955
|
+
*
|
|
2956
|
+
* const client = createClient({
|
|
2957
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2958
|
+
* transport: http(),
|
|
2959
|
+
* }).extend(tempoActions())
|
|
2960
|
+
*
|
|
2961
|
+
* const validatorAddress = await client.validator.getByIndex({
|
|
2962
|
+
* index: 0n,
|
|
2963
|
+
* })
|
|
2964
|
+
* ```
|
|
2965
|
+
*
|
|
2966
|
+
* @param parameters - Parameters.
|
|
2967
|
+
* @returns The validator address at the given index.
|
|
2968
|
+
*/
|
|
2969
|
+
getByIndex: (parameters: validatorActions.getByIndex.Parameters) => Promise<validatorActions.getByIndex.ReturnValue>;
|
|
2970
|
+
/**
|
|
2971
|
+
* Gets the total number of validators.
|
|
2972
|
+
*
|
|
2973
|
+
* @example
|
|
2974
|
+
* ```ts
|
|
2975
|
+
* import { createClient, http } from 'viem'
|
|
2976
|
+
* import { tempo } from 'viem/chains'
|
|
2977
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2978
|
+
*
|
|
2979
|
+
* const client = createClient({
|
|
2980
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2981
|
+
* transport: http(),
|
|
2982
|
+
* }).extend(tempoActions())
|
|
2983
|
+
*
|
|
2984
|
+
* const count = await client.validator.getCount()
|
|
2985
|
+
* ```
|
|
2986
|
+
*
|
|
2987
|
+
* @param parameters - Parameters.
|
|
2988
|
+
* @returns The total number of validators.
|
|
2989
|
+
*/
|
|
2990
|
+
getCount: (parameters?: validatorActions.getCount.Parameters) => Promise<validatorActions.getCount.ReturnValue>;
|
|
2991
|
+
/**
|
|
2992
|
+
* Gets the next epoch for a full DKG ceremony.
|
|
2993
|
+
*
|
|
2994
|
+
* @example
|
|
2995
|
+
* ```ts
|
|
2996
|
+
* import { createClient, http } from 'viem'
|
|
2997
|
+
* import { tempo } from 'viem/chains'
|
|
2998
|
+
* import { tempoActions } from 'viem/tempo'
|
|
2999
|
+
*
|
|
3000
|
+
* const client = createClient({
|
|
3001
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3002
|
+
* transport: http(),
|
|
3003
|
+
* }).extend(tempoActions())
|
|
3004
|
+
*
|
|
3005
|
+
* const epoch = await client.validator.getNextFullDkgCeremony()
|
|
3006
|
+
* ```
|
|
3007
|
+
*
|
|
3008
|
+
* @param parameters - Parameters.
|
|
3009
|
+
* @returns The epoch number for the next full DKG ceremony.
|
|
3010
|
+
*/
|
|
3011
|
+
getNextFullDkgCeremony: (parameters?: validatorActions.getNextFullDkgCeremony.Parameters) => Promise<validatorActions.getNextFullDkgCeremony.ReturnValue>;
|
|
3012
|
+
/**
|
|
3013
|
+
* Gets the contract owner.
|
|
3014
|
+
*
|
|
3015
|
+
* @example
|
|
3016
|
+
* ```ts
|
|
3017
|
+
* import { createClient, http } from 'viem'
|
|
3018
|
+
* import { tempo } from 'viem/chains'
|
|
3019
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3020
|
+
*
|
|
3021
|
+
* const client = createClient({
|
|
3022
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3023
|
+
* transport: http(),
|
|
3024
|
+
* }).extend(tempoActions())
|
|
3025
|
+
*
|
|
3026
|
+
* const owner = await client.validator.getOwner()
|
|
3027
|
+
* ```
|
|
3028
|
+
*
|
|
3029
|
+
* @param parameters - Parameters.
|
|
3030
|
+
* @returns The owner address.
|
|
3031
|
+
*/
|
|
3032
|
+
getOwner: (parameters?: validatorActions.getOwner.Parameters) => Promise<validatorActions.getOwner.ReturnValue>;
|
|
3033
|
+
/**
|
|
3034
|
+
* Gets the complete set of validators.
|
|
3035
|
+
*
|
|
3036
|
+
* @example
|
|
3037
|
+
* ```ts
|
|
3038
|
+
* import { createClient, http } from 'viem'
|
|
3039
|
+
* import { tempo } from 'viem/chains'
|
|
3040
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3041
|
+
*
|
|
3042
|
+
* const client = createClient({
|
|
3043
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3044
|
+
* transport: http(),
|
|
3045
|
+
* }).extend(tempoActions())
|
|
3046
|
+
*
|
|
3047
|
+
* const validators = await client.validator.list()
|
|
3048
|
+
* ```
|
|
3049
|
+
*
|
|
3050
|
+
* @param parameters - Parameters.
|
|
3051
|
+
* @returns Array of all validators with their information.
|
|
3052
|
+
*/
|
|
3053
|
+
list: (parameters?: validatorActions.list.Parameters) => Promise<validatorActions.list.ReturnValue>;
|
|
3054
|
+
/**
|
|
3055
|
+
* Sets the next epoch for a full DKG ceremony.
|
|
3056
|
+
*
|
|
3057
|
+
* @example
|
|
3058
|
+
* ```ts
|
|
3059
|
+
* import { createClient, http } from 'viem'
|
|
3060
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3061
|
+
* import { tempo } from 'viem/chains'
|
|
3062
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3063
|
+
*
|
|
3064
|
+
* const client = createClient({
|
|
3065
|
+
* account: privateKeyToAccount('0x...'),
|
|
3066
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3067
|
+
* transport: http(),
|
|
3068
|
+
* }).extend(tempoActions())
|
|
3069
|
+
*
|
|
3070
|
+
* const hash = await client.validator.setNextFullDkgCeremony({
|
|
3071
|
+
* epoch: 100n,
|
|
3072
|
+
* })
|
|
3073
|
+
* ```
|
|
3074
|
+
*
|
|
3075
|
+
* @param parameters - Parameters.
|
|
3076
|
+
* @returns The transaction hash.
|
|
3077
|
+
*/
|
|
3078
|
+
setNextFullDkgCeremony: (parameters: validatorActions.setNextFullDkgCeremony.Parameters<chain, account>) => Promise<validatorActions.setNextFullDkgCeremony.ReturnValue>;
|
|
3079
|
+
/**
|
|
3080
|
+
* Sets the next epoch for a full DKG ceremony and waits for the transaction receipt.
|
|
3081
|
+
*
|
|
3082
|
+
* @example
|
|
3083
|
+
* ```ts
|
|
3084
|
+
* import { createClient, http } from 'viem'
|
|
3085
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3086
|
+
* import { tempo } from 'viem/chains'
|
|
3087
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3088
|
+
*
|
|
3089
|
+
* const client = createClient({
|
|
3090
|
+
* account: privateKeyToAccount('0x...'),
|
|
3091
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3092
|
+
* transport: http(),
|
|
3093
|
+
* }).extend(tempoActions())
|
|
3094
|
+
*
|
|
3095
|
+
* const { receipt } = await client.validator.setNextFullDkgCeremonySync({
|
|
3096
|
+
* epoch: 100n,
|
|
3097
|
+
* })
|
|
3098
|
+
* ```
|
|
3099
|
+
*
|
|
3100
|
+
* @param parameters - Parameters.
|
|
3101
|
+
* @returns The transaction receipt.
|
|
3102
|
+
*/
|
|
3103
|
+
setNextFullDkgCeremonySync: (parameters: validatorActions.setNextFullDkgCeremonySync.Parameters<chain, account>) => Promise<validatorActions.setNextFullDkgCeremonySync.ReturnValue>;
|
|
3104
|
+
/**
|
|
3105
|
+
* Updates validator information (only callable by the validator themselves).
|
|
3106
|
+
*
|
|
3107
|
+
* @example
|
|
3108
|
+
* ```ts
|
|
3109
|
+
* import { createClient, http } from 'viem'
|
|
3110
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3111
|
+
* import { tempo } from 'viem/chains'
|
|
3112
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3113
|
+
*
|
|
3114
|
+
* const client = createClient({
|
|
3115
|
+
* account: privateKeyToAccount('0x...'),
|
|
3116
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3117
|
+
* transport: http(),
|
|
3118
|
+
* }).extend(tempoActions())
|
|
3119
|
+
*
|
|
3120
|
+
* const hash = await client.validator.update({
|
|
3121
|
+
* newValidatorAddress: '0x...',
|
|
3122
|
+
* publicKey: '0x...',
|
|
3123
|
+
* inboundAddress: '192.168.1.1:8080',
|
|
3124
|
+
* outboundAddress: '192.168.1.1:8080',
|
|
3125
|
+
* })
|
|
3126
|
+
* ```
|
|
3127
|
+
*
|
|
3128
|
+
* @param parameters - Parameters.
|
|
3129
|
+
* @returns The transaction hash.
|
|
3130
|
+
*/
|
|
3131
|
+
update: (parameters: validatorActions.update.Parameters<chain, account>) => Promise<validatorActions.update.ReturnValue>;
|
|
3132
|
+
/**
|
|
3133
|
+
* Updates validator information and waits for the transaction receipt.
|
|
3134
|
+
*
|
|
3135
|
+
* @example
|
|
3136
|
+
* ```ts
|
|
3137
|
+
* import { createClient, http } from 'viem'
|
|
3138
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3139
|
+
* import { tempo } from 'viem/chains'
|
|
3140
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3141
|
+
*
|
|
3142
|
+
* const client = createClient({
|
|
3143
|
+
* account: privateKeyToAccount('0x...'),
|
|
3144
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3145
|
+
* transport: http(),
|
|
3146
|
+
* }).extend(tempoActions())
|
|
3147
|
+
*
|
|
3148
|
+
* const { receipt } = await client.validator.updateSync({
|
|
3149
|
+
* newValidatorAddress: '0x...',
|
|
3150
|
+
* publicKey: '0x...',
|
|
3151
|
+
* inboundAddress: '192.168.1.1:8080',
|
|
3152
|
+
* outboundAddress: '192.168.1.1:8080',
|
|
3153
|
+
* })
|
|
3154
|
+
* ```
|
|
3155
|
+
*
|
|
3156
|
+
* @param parameters - Parameters.
|
|
3157
|
+
* @returns The transaction receipt.
|
|
3158
|
+
*/
|
|
3159
|
+
updateSync: (parameters: validatorActions.updateSync.Parameters<chain, account>) => Promise<validatorActions.updateSync.ReturnValue>;
|
|
3160
|
+
};
|
|
2762
3161
|
};
|
|
2763
3162
|
export declare function decorator(): <transport extends Transport, chain extends Chain | undefined, account extends Account | undefined>(client: Client<transport, chain, account>) => Decorator<chain, account>;
|
|
2764
3163
|
//# sourceMappingURL=Decorator.d.ts.map
|