viem 2.48.2 → 2.48.4
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 +12 -0
- package/_cjs/errors/version.js +1 -1
- package/_cjs/tempo/Addresses.js +2 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +7 -0
- package/_cjs/tempo/Decorator.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/virtualAddress.js +95 -0
- package/_cjs/tempo/actions/virtualAddress.js.map +1 -0
- package/_cjs/tempo/index.js +7 -2
- package/_cjs/tempo/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/tempo/Addresses.js +1 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +7 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/actions/accessKey.js +10 -10
- package/_esm/tempo/actions/amm.js +14 -14
- package/_esm/tempo/actions/dex.js +34 -34
- package/_esm/tempo/actions/faucet.js +2 -2
- package/_esm/tempo/actions/fee.js +10 -10
- package/_esm/tempo/actions/index.js +1 -0
- package/_esm/tempo/actions/index.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +2 -2
- package/_esm/tempo/actions/policy.js +18 -18
- package/_esm/tempo/actions/reward.js +14 -14
- package/_esm/tempo/actions/token.js +61 -61
- package/_esm/tempo/actions/validator.js +27 -27
- package/_esm/tempo/actions/virtualAddress.js +228 -0
- package/_esm/tempo/actions/virtualAddress.js.map +1 -0
- package/_esm/tempo/index.js +3 -3
- package/_esm/tempo/index.js.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/Addresses.d.ts +1 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +101 -1
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/actions/accessKey.d.ts +10 -10
- package/_types/tempo/actions/amm.d.ts +14 -14
- package/_types/tempo/actions/dex.d.ts +34 -34
- package/_types/tempo/actions/faucet.d.ts +2 -2
- package/_types/tempo/actions/fee.d.ts +10 -10
- 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 +2 -2
- package/_types/tempo/actions/policy.d.ts +18 -18
- package/_types/tempo/actions/reward.d.ts +14 -14
- package/_types/tempo/actions/token.d.ts +61 -61
- package/_types/tempo/actions/validator.d.ts +27 -27
- package/_types/tempo/actions/virtualAddress.d.ts +350 -0
- package/_types/tempo/actions/virtualAddress.d.ts.map +1 -0
- package/_types/tempo/index.d.ts +2 -2
- package/_types/tempo/index.d.ts.map +1 -1
- package/errors/version.ts +1 -1
- package/package.json +2 -2
- package/tempo/Addresses.ts +1 -0
- package/tempo/Decorator.ts +125 -1
- package/tempo/actions/accessKey.ts +10 -10
- package/tempo/actions/amm.ts +14 -14
- package/tempo/actions/dex.ts +34 -34
- package/tempo/actions/faucet.ts +2 -2
- package/tempo/actions/fee.ts +10 -10
- package/tempo/actions/index.ts +1 -0
- package/tempo/actions/nonce.ts +2 -2
- package/tempo/actions/policy.ts +18 -18
- package/tempo/actions/reward.ts +14 -14
- package/tempo/actions/token.ts +61 -61
- package/tempo/actions/validator.ts +27 -27
- package/tempo/actions/virtualAddress.ts +337 -0
- package/tempo/index.ts +10 -3
- package/_cjs/tempo/Secp256k1.js +0 -6
- package/_cjs/tempo/Secp256k1.js.map +0 -1
- package/_esm/tempo/Secp256k1.js +0 -3
- package/_esm/tempo/Secp256k1.js.map +0 -1
- package/_types/tempo/Secp256k1.d.ts +0 -2
- package/_types/tempo/Secp256k1.d.ts.map +0 -1
- package/tempo/Secp256k1.ts +0 -2
package/tempo/Decorator.ts
CHANGED
|
@@ -14,6 +14,7 @@ import * as rewardActions from './actions/reward.js'
|
|
|
14
14
|
import * as simulateActions from './actions/simulate.js'
|
|
15
15
|
import * as tokenActions from './actions/token.js'
|
|
16
16
|
import * as validatorActions from './actions/validator.js'
|
|
17
|
+
import * as virtualAddressActions from './actions/virtualAddress.js'
|
|
17
18
|
import * as zoneActions from './actions/zone.js'
|
|
18
19
|
|
|
19
20
|
export type Decorator<
|
|
@@ -264,7 +265,7 @@ export type Decorator<
|
|
|
264
265
|
* import { tempoActions } from 'viem/tempo'
|
|
265
266
|
*
|
|
266
267
|
* const client = createClient({
|
|
267
|
-
* chain: tempo({ feeToken: '0x20c...001' }),
|
|
268
|
+
* chain: tempo.extend({ feeToken: '0x20c...001' }),
|
|
268
269
|
* transport: http(),
|
|
269
270
|
* }).extend(tempoActions())
|
|
270
271
|
*
|
|
@@ -3805,6 +3806,119 @@ export type Decorator<
|
|
|
3805
3806
|
parameters: validatorActions.updateSync.Parameters<chain, account>,
|
|
3806
3807
|
) => Promise<validatorActions.updateSync.ReturnValue>
|
|
3807
3808
|
}
|
|
3809
|
+
virtualAddress: {
|
|
3810
|
+
/**
|
|
3811
|
+
* Gets the registered master address for a given master ID.
|
|
3812
|
+
*
|
|
3813
|
+
* @example
|
|
3814
|
+
* ```ts
|
|
3815
|
+
* import { createClient, http } from 'viem'
|
|
3816
|
+
* import { tempo } from 'viem/chains'
|
|
3817
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3818
|
+
*
|
|
3819
|
+
* const client = createClient({
|
|
3820
|
+
* chain: tempo,
|
|
3821
|
+
* transport: http(),
|
|
3822
|
+
* }).extend(tempoActions())
|
|
3823
|
+
*
|
|
3824
|
+
* const master = await client.virtualAddress.getMasterAddress({
|
|
3825
|
+
* masterId: '0x58e21090',
|
|
3826
|
+
* })
|
|
3827
|
+
* ```
|
|
3828
|
+
*
|
|
3829
|
+
* @param parameters - Parameters.
|
|
3830
|
+
* @returns The master address, or null if unregistered.
|
|
3831
|
+
*/
|
|
3832
|
+
getMasterAddress: (
|
|
3833
|
+
parameters: virtualAddressActions.getMasterAddress.Parameters,
|
|
3834
|
+
) => Promise<virtualAddressActions.getMasterAddress.ReturnValue>
|
|
3835
|
+
/**
|
|
3836
|
+
* Registers the caller as a virtual address master.
|
|
3837
|
+
*
|
|
3838
|
+
* @example
|
|
3839
|
+
* ```ts
|
|
3840
|
+
* import { createClient, http } from 'viem'
|
|
3841
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3842
|
+
* import { tempo } from 'viem/chains'
|
|
3843
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3844
|
+
*
|
|
3845
|
+
* const client = createClient({
|
|
3846
|
+
* account: privateKeyToAccount('0x...'),
|
|
3847
|
+
* chain: tempo,
|
|
3848
|
+
* transport: http(),
|
|
3849
|
+
* }).extend(tempoActions())
|
|
3850
|
+
*
|
|
3851
|
+
* const hash = await client.virtualAddress.registerMaster({
|
|
3852
|
+
* salt: '0x...',
|
|
3853
|
+
* })
|
|
3854
|
+
* ```
|
|
3855
|
+
*
|
|
3856
|
+
* @param parameters - Parameters.
|
|
3857
|
+
* @returns The transaction hash.
|
|
3858
|
+
*/
|
|
3859
|
+
registerMaster: (
|
|
3860
|
+
parameters: virtualAddressActions.registerMaster.Parameters<
|
|
3861
|
+
chain,
|
|
3862
|
+
account
|
|
3863
|
+
>,
|
|
3864
|
+
) => Promise<virtualAddressActions.registerMaster.ReturnValue>
|
|
3865
|
+
/**
|
|
3866
|
+
* Registers the caller as a virtual address master and waits for confirmation.
|
|
3867
|
+
*
|
|
3868
|
+
* @example
|
|
3869
|
+
* ```ts
|
|
3870
|
+
* import { createClient, http } from 'viem'
|
|
3871
|
+
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3872
|
+
* import { tempo } from 'viem/chains'
|
|
3873
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3874
|
+
*
|
|
3875
|
+
* const client = createClient({
|
|
3876
|
+
* account: privateKeyToAccount('0x...'),
|
|
3877
|
+
* chain: tempo,
|
|
3878
|
+
* transport: http(),
|
|
3879
|
+
* }).extend(tempoActions())
|
|
3880
|
+
*
|
|
3881
|
+
* const { receipt, masterId, masterAddress } =
|
|
3882
|
+
* await client.virtualAddress.registerMasterSync({
|
|
3883
|
+
* salt: '0x...',
|
|
3884
|
+
* })
|
|
3885
|
+
* ```
|
|
3886
|
+
*
|
|
3887
|
+
* @param parameters - Parameters.
|
|
3888
|
+
* @returns The transaction receipt and event data.
|
|
3889
|
+
*/
|
|
3890
|
+
registerMasterSync: (
|
|
3891
|
+
parameters: virtualAddressActions.registerMasterSync.Parameters<
|
|
3892
|
+
chain,
|
|
3893
|
+
account
|
|
3894
|
+
>,
|
|
3895
|
+
) => Promise<virtualAddressActions.registerMasterSync.ReturnValue>
|
|
3896
|
+
/**
|
|
3897
|
+
* Resolves an address to its effective recipient.
|
|
3898
|
+
*
|
|
3899
|
+
* @example
|
|
3900
|
+
* ```ts
|
|
3901
|
+
* import { createClient, http } from 'viem'
|
|
3902
|
+
* import { tempo } from 'viem/chains'
|
|
3903
|
+
* import { tempoActions } from 'viem/tempo'
|
|
3904
|
+
*
|
|
3905
|
+
* const client = createClient({
|
|
3906
|
+
* chain: tempo,
|
|
3907
|
+
* transport: http(),
|
|
3908
|
+
* }).extend(tempoActions())
|
|
3909
|
+
*
|
|
3910
|
+
* const recipient = await client.virtualAddress.resolve({
|
|
3911
|
+
* address: '0x58e21090fdfdfdfdfdfdfdfdfdfd010203040506',
|
|
3912
|
+
* })
|
|
3913
|
+
* ```
|
|
3914
|
+
*
|
|
3915
|
+
* @param parameters - Parameters.
|
|
3916
|
+
* @returns The resolved address, or null if virtual and unregistered.
|
|
3917
|
+
*/
|
|
3918
|
+
resolve: (
|
|
3919
|
+
parameters: virtualAddressActions.resolve.Parameters,
|
|
3920
|
+
) => Promise<virtualAddressActions.resolve.ReturnValue>
|
|
3921
|
+
}
|
|
3808
3922
|
zone: {
|
|
3809
3923
|
/**
|
|
3810
3924
|
* Deposits tokens into a zone.
|
|
@@ -4361,6 +4475,16 @@ export function decorator() {
|
|
|
4361
4475
|
updateSync: (parameters) =>
|
|
4362
4476
|
validatorActions.updateSync(client, parameters),
|
|
4363
4477
|
},
|
|
4478
|
+
virtualAddress: {
|
|
4479
|
+
getMasterAddress: (parameters) =>
|
|
4480
|
+
virtualAddressActions.getMasterAddress(client, parameters),
|
|
4481
|
+
registerMaster: (parameters) =>
|
|
4482
|
+
virtualAddressActions.registerMaster(client, parameters),
|
|
4483
|
+
registerMasterSync: (parameters) =>
|
|
4484
|
+
virtualAddressActions.registerMasterSync(client, parameters),
|
|
4485
|
+
resolve: (parameters) =>
|
|
4486
|
+
virtualAddressActions.resolve(client, parameters),
|
|
4487
|
+
},
|
|
4364
4488
|
zone: {
|
|
4365
4489
|
deposit: (parameters) => zoneActions.deposit(client, parameters),
|
|
4366
4490
|
depositSync: (parameters) =>
|
|
@@ -55,7 +55,7 @@ const spendPolicies = {
|
|
|
55
55
|
* const account = Account.from({ privateKey: '0x...' })
|
|
56
56
|
* const client = createClient({
|
|
57
57
|
* account,
|
|
58
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
58
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
59
59
|
* transport: http(),
|
|
60
60
|
* })
|
|
61
61
|
*
|
|
@@ -169,7 +169,7 @@ export namespace authorize {
|
|
|
169
169
|
* const account = Account.from({ privateKey: '0x...' })
|
|
170
170
|
* const client = createClient({
|
|
171
171
|
* account,
|
|
172
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
172
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
173
173
|
* transport: http(),
|
|
174
174
|
* })
|
|
175
175
|
*
|
|
@@ -240,7 +240,7 @@ export namespace authorizeSync {
|
|
|
240
240
|
*
|
|
241
241
|
* const client = createClient({
|
|
242
242
|
* account: privateKeyToAccount('0x...'),
|
|
243
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
243
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
244
244
|
* transport: http(),
|
|
245
245
|
* })
|
|
246
246
|
*
|
|
@@ -312,7 +312,7 @@ export namespace revoke {
|
|
|
312
312
|
* import { Actions } from 'viem/tempo'
|
|
313
313
|
*
|
|
314
314
|
* const client = createClient({
|
|
315
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
315
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
316
316
|
* transport: http(),
|
|
317
317
|
* }).extend(walletActions)
|
|
318
318
|
*
|
|
@@ -360,7 +360,7 @@ export namespace revoke {
|
|
|
360
360
|
*
|
|
361
361
|
* const client = createClient({
|
|
362
362
|
* account: privateKeyToAccount('0x...'),
|
|
363
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
363
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
364
364
|
* transport: http(),
|
|
365
365
|
* })
|
|
366
366
|
*
|
|
@@ -426,7 +426,7 @@ export namespace revokeSync {
|
|
|
426
426
|
*
|
|
427
427
|
* const client = createClient({
|
|
428
428
|
* account: privateKeyToAccount('0x...'),
|
|
429
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
429
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
430
430
|
* transport: http(),
|
|
431
431
|
* })
|
|
432
432
|
*
|
|
@@ -504,7 +504,7 @@ export namespace updateLimit {
|
|
|
504
504
|
* import { Actions } from 'viem/tempo'
|
|
505
505
|
*
|
|
506
506
|
* const client = createClient({
|
|
507
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
507
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
508
508
|
* transport: http(),
|
|
509
509
|
* }).extend(walletActions)
|
|
510
510
|
*
|
|
@@ -556,7 +556,7 @@ export namespace updateLimit {
|
|
|
556
556
|
*
|
|
557
557
|
* const client = createClient({
|
|
558
558
|
* account: privateKeyToAccount('0x...'),
|
|
559
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
559
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
560
560
|
* transport: http(),
|
|
561
561
|
* })
|
|
562
562
|
*
|
|
@@ -628,7 +628,7 @@ export namespace updateLimitSync {
|
|
|
628
628
|
* import { Actions } from 'viem/tempo'
|
|
629
629
|
*
|
|
630
630
|
* const client = createClient({
|
|
631
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
631
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
632
632
|
* transport: http(),
|
|
633
633
|
* })
|
|
634
634
|
*
|
|
@@ -719,7 +719,7 @@ export namespace getMetadata {
|
|
|
719
719
|
* import { Actions } from 'viem/tempo'
|
|
720
720
|
*
|
|
721
721
|
* const client = createClient({
|
|
722
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
722
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
723
723
|
* transport: http(),
|
|
724
724
|
* })
|
|
725
725
|
*
|
package/tempo/actions/amm.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { defineCall } from '../internal/utils.js'
|
|
|
34
34
|
* import { Actions } from 'viem/tempo'
|
|
35
35
|
*
|
|
36
36
|
* const client = createClient({
|
|
37
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
37
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
38
38
|
* transport: http(),
|
|
39
39
|
* })
|
|
40
40
|
*
|
|
@@ -124,7 +124,7 @@ export namespace getPool {
|
|
|
124
124
|
* import { Actions } from 'viem/tempo'
|
|
125
125
|
*
|
|
126
126
|
* const client = createClient({
|
|
127
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
127
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
128
128
|
* transport: http(),
|
|
129
129
|
* })
|
|
130
130
|
*
|
|
@@ -224,7 +224,7 @@ export namespace getLiquidityBalance {
|
|
|
224
224
|
*
|
|
225
225
|
* const client = createClient({
|
|
226
226
|
* account: privateKeyToAccount('0x...'),
|
|
227
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
227
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
228
228
|
* transport: http(),
|
|
229
229
|
* })
|
|
230
230
|
*
|
|
@@ -307,7 +307,7 @@ export namespace rebalanceSwap {
|
|
|
307
307
|
* import { Actions } from 'viem/tempo'
|
|
308
308
|
*
|
|
309
309
|
* const client = createClient({
|
|
310
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
310
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
311
311
|
* transport: http(),
|
|
312
312
|
* }).extend(walletActions)
|
|
313
313
|
*
|
|
@@ -377,7 +377,7 @@ export namespace rebalanceSwap {
|
|
|
377
377
|
*
|
|
378
378
|
* const client = createClient({
|
|
379
379
|
* account: privateKeyToAccount('0x...'),
|
|
380
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
380
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
381
381
|
* transport: http(),
|
|
382
382
|
* })
|
|
383
383
|
*
|
|
@@ -444,7 +444,7 @@ export namespace rebalanceSwapSync {
|
|
|
444
444
|
*
|
|
445
445
|
* const client = createClient({
|
|
446
446
|
* account: privateKeyToAccount('0x...'),
|
|
447
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
447
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
448
448
|
* transport: http(),
|
|
449
449
|
* })
|
|
450
450
|
*
|
|
@@ -533,7 +533,7 @@ export namespace mint {
|
|
|
533
533
|
* import { Actions } from 'viem/tempo'
|
|
534
534
|
*
|
|
535
535
|
* const client = createClient({
|
|
536
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
536
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
537
537
|
* transport: http(),
|
|
538
538
|
* }).extend(walletActions)
|
|
539
539
|
*
|
|
@@ -608,7 +608,7 @@ export namespace mint {
|
|
|
608
608
|
*
|
|
609
609
|
* const client = createClient({
|
|
610
610
|
* account: privateKeyToAccount('0x...'),
|
|
611
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
611
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
612
612
|
* transport: http(),
|
|
613
613
|
* })
|
|
614
614
|
*
|
|
@@ -675,7 +675,7 @@ export namespace mintSync {
|
|
|
675
675
|
*
|
|
676
676
|
* const client = createClient({
|
|
677
677
|
* account: privateKeyToAccount('0x...'),
|
|
678
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
678
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
679
679
|
* transport: http(),
|
|
680
680
|
* })
|
|
681
681
|
*
|
|
@@ -753,7 +753,7 @@ export namespace burn {
|
|
|
753
753
|
* import { Actions } from 'viem/tempo'
|
|
754
754
|
*
|
|
755
755
|
* const client = createClient({
|
|
756
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
756
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
757
757
|
* transport: http(),
|
|
758
758
|
* }).extend(walletActions)
|
|
759
759
|
*
|
|
@@ -823,7 +823,7 @@ export namespace burn {
|
|
|
823
823
|
*
|
|
824
824
|
* const client = createClient({
|
|
825
825
|
* account: privateKeyToAccount('0x...'),
|
|
826
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
826
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
827
827
|
* transport: http(),
|
|
828
828
|
* })
|
|
829
829
|
*
|
|
@@ -888,7 +888,7 @@ export namespace burnSync {
|
|
|
888
888
|
* import { Actions } from 'viem/tempo'
|
|
889
889
|
*
|
|
890
890
|
* const client = createClient({
|
|
891
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
891
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
892
892
|
* transport: http(),
|
|
893
893
|
* })
|
|
894
894
|
*
|
|
@@ -968,7 +968,7 @@ export declare namespace watchRebalanceSwap {
|
|
|
968
968
|
* import { Actions } from 'viem/tempo'
|
|
969
969
|
*
|
|
970
970
|
* const client = createClient({
|
|
971
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
971
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
972
972
|
* transport: http(),
|
|
973
973
|
* })
|
|
974
974
|
*
|
|
@@ -1051,7 +1051,7 @@ export declare namespace watchMint {
|
|
|
1051
1051
|
* import { Actions } from 'viem/tempo'
|
|
1052
1052
|
*
|
|
1053
1053
|
* const client = createClient({
|
|
1054
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1054
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1055
1055
|
* transport: http(),
|
|
1056
1056
|
* })
|
|
1057
1057
|
*
|
package/tempo/actions/dex.ts
CHANGED
|
@@ -51,7 +51,7 @@ type OrderType = 'buy' | 'sell'
|
|
|
51
51
|
*
|
|
52
52
|
* const client = createClient({
|
|
53
53
|
* account: privateKeyToAccount('0x...'),
|
|
54
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
54
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
55
55
|
* transport: http(),
|
|
56
56
|
* })
|
|
57
57
|
*
|
|
@@ -132,7 +132,7 @@ export namespace buy {
|
|
|
132
132
|
* import { Actions } from 'viem/tempo'
|
|
133
133
|
*
|
|
134
134
|
* const client = createClient({
|
|
135
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
135
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
136
136
|
* transport: http(),
|
|
137
137
|
* }).extend(walletActions)
|
|
138
138
|
*
|
|
@@ -174,7 +174,7 @@ export namespace buy {
|
|
|
174
174
|
*
|
|
175
175
|
* const client = createClient({
|
|
176
176
|
* account: privateKeyToAccount('0x...'),
|
|
177
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
177
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
178
178
|
* transport: http(),
|
|
179
179
|
* })
|
|
180
180
|
*
|
|
@@ -234,7 +234,7 @@ export namespace buySync {
|
|
|
234
234
|
*
|
|
235
235
|
* const client = createClient({
|
|
236
236
|
* account: privateKeyToAccount('0x...'),
|
|
237
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
237
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
238
238
|
* transport: http(),
|
|
239
239
|
* })
|
|
240
240
|
*
|
|
@@ -306,7 +306,7 @@ export namespace cancel {
|
|
|
306
306
|
* import { Actions } from 'viem/tempo'
|
|
307
307
|
*
|
|
308
308
|
* const client = createClient({
|
|
309
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
309
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
310
310
|
* transport: http(),
|
|
311
311
|
* }).extend(walletActions)
|
|
312
312
|
*
|
|
@@ -362,7 +362,7 @@ export namespace cancel {
|
|
|
362
362
|
*
|
|
363
363
|
* const client = createClient({
|
|
364
364
|
* account: privateKeyToAccount('0x...'),
|
|
365
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
365
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
366
366
|
* transport: http(),
|
|
367
367
|
* })
|
|
368
368
|
*
|
|
@@ -432,7 +432,7 @@ export namespace cancelSync {
|
|
|
432
432
|
*
|
|
433
433
|
* const client = createClient({
|
|
434
434
|
* account: privateKeyToAccount('0x...'),
|
|
435
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
435
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
436
436
|
* transport: http(),
|
|
437
437
|
* })
|
|
438
438
|
*
|
|
@@ -504,7 +504,7 @@ export namespace cancelStale {
|
|
|
504
504
|
* import { Actions } from 'viem/tempo'
|
|
505
505
|
*
|
|
506
506
|
* const client = createClient({
|
|
507
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
507
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
508
508
|
* transport: http(),
|
|
509
509
|
* }).extend(walletActions)
|
|
510
510
|
*
|
|
@@ -563,7 +563,7 @@ export namespace cancelStale {
|
|
|
563
563
|
*
|
|
564
564
|
* const client = createClient({
|
|
565
565
|
* account: privateKeyToAccount('0x...'),
|
|
566
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
566
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
567
567
|
* transport: http(),
|
|
568
568
|
* })
|
|
569
569
|
*
|
|
@@ -630,7 +630,7 @@ export namespace cancelStaleSync {
|
|
|
630
630
|
*
|
|
631
631
|
* const client = createClient({
|
|
632
632
|
* account: privateKeyToAccount('0x...'),
|
|
633
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
633
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
634
634
|
* transport: http(),
|
|
635
635
|
* })
|
|
636
636
|
*
|
|
@@ -702,7 +702,7 @@ export namespace createPair {
|
|
|
702
702
|
* import { Actions } from 'viem/tempo'
|
|
703
703
|
*
|
|
704
704
|
* const client = createClient({
|
|
705
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
705
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
706
706
|
* transport: http(),
|
|
707
707
|
* }).extend(walletActions)
|
|
708
708
|
*
|
|
@@ -758,7 +758,7 @@ export namespace createPair {
|
|
|
758
758
|
*
|
|
759
759
|
* const client = createClient({
|
|
760
760
|
* account: privateKeyToAccount('0x...'),
|
|
761
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
761
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
762
762
|
* transport: http(),
|
|
763
763
|
* })
|
|
764
764
|
*
|
|
@@ -823,7 +823,7 @@ export namespace createPairSync {
|
|
|
823
823
|
* import { Actions } from 'viem/tempo'
|
|
824
824
|
*
|
|
825
825
|
* const client = createClient({
|
|
826
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
826
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
827
827
|
* transport: http(),
|
|
828
828
|
* })
|
|
829
829
|
*
|
|
@@ -898,7 +898,7 @@ export namespace getBalance {
|
|
|
898
898
|
* import { Actions } from 'viem/tempo'
|
|
899
899
|
*
|
|
900
900
|
* const client = createClient({
|
|
901
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
901
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
902
902
|
* transport: http(),
|
|
903
903
|
* })
|
|
904
904
|
*
|
|
@@ -969,7 +969,7 @@ export namespace getBuyQuote {
|
|
|
969
969
|
* import { Actions } from 'viem/tempo'
|
|
970
970
|
*
|
|
971
971
|
* const client = createClient({
|
|
972
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
972
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
973
973
|
* transport: http(),
|
|
974
974
|
* })
|
|
975
975
|
*
|
|
@@ -1034,7 +1034,7 @@ export namespace getOrder {
|
|
|
1034
1034
|
* import { Actions } from 'viem/tempo'
|
|
1035
1035
|
*
|
|
1036
1036
|
* const client = createClient({
|
|
1037
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1037
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1038
1038
|
* transport: http(),
|
|
1039
1039
|
* })
|
|
1040
1040
|
*
|
|
@@ -1103,7 +1103,7 @@ export namespace getOrderbook {
|
|
|
1103
1103
|
* import { Actions, Tick } from 'viem/tempo'
|
|
1104
1104
|
*
|
|
1105
1105
|
* const client = createClient({
|
|
1106
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1106
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1107
1107
|
* transport: http(),
|
|
1108
1108
|
* })
|
|
1109
1109
|
*
|
|
@@ -1178,7 +1178,7 @@ export namespace getTickLevel {
|
|
|
1178
1178
|
* import { Actions } from 'viem/tempo'
|
|
1179
1179
|
*
|
|
1180
1180
|
* const client = createClient({
|
|
1181
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1181
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1182
1182
|
* transport: http(),
|
|
1183
1183
|
* })
|
|
1184
1184
|
*
|
|
@@ -1251,7 +1251,7 @@ export namespace getSellQuote {
|
|
|
1251
1251
|
*
|
|
1252
1252
|
* const client = createClient({
|
|
1253
1253
|
* account: privateKeyToAccount('0x...'),
|
|
1254
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1254
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1255
1255
|
* transport: http(),
|
|
1256
1256
|
* })
|
|
1257
1257
|
*
|
|
@@ -1332,7 +1332,7 @@ export namespace place {
|
|
|
1332
1332
|
* import { Actions, Tick } from 'viem/tempo'
|
|
1333
1333
|
*
|
|
1334
1334
|
* const client = createClient({
|
|
1335
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1335
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1336
1336
|
* transport: http(),
|
|
1337
1337
|
* }).extend(walletActions)
|
|
1338
1338
|
*
|
|
@@ -1392,7 +1392,7 @@ export namespace place {
|
|
|
1392
1392
|
*
|
|
1393
1393
|
* const client = createClient({
|
|
1394
1394
|
* account: privateKeyToAccount('0x...'),
|
|
1395
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1395
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1396
1396
|
* transport: http(),
|
|
1397
1397
|
* })
|
|
1398
1398
|
*
|
|
@@ -1476,7 +1476,7 @@ export namespace placeFlip {
|
|
|
1476
1476
|
* import { Actions, Tick } from 'viem/tempo'
|
|
1477
1477
|
*
|
|
1478
1478
|
* const client = createClient({
|
|
1479
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1479
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1480
1480
|
* transport: http(),
|
|
1481
1481
|
* }).extend(walletActions)
|
|
1482
1482
|
*
|
|
@@ -1538,7 +1538,7 @@ export namespace placeFlip {
|
|
|
1538
1538
|
*
|
|
1539
1539
|
* const client = createClient({
|
|
1540
1540
|
* account: privateKeyToAccount('0x...'),
|
|
1541
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1541
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1542
1542
|
* transport: http(),
|
|
1543
1543
|
* })
|
|
1544
1544
|
*
|
|
@@ -1609,7 +1609,7 @@ export namespace placeFlipSync {
|
|
|
1609
1609
|
*
|
|
1610
1610
|
* const client = createClient({
|
|
1611
1611
|
* account: privateKeyToAccount('0x...'),
|
|
1612
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1612
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1613
1613
|
* transport: http(),
|
|
1614
1614
|
* })
|
|
1615
1615
|
*
|
|
@@ -1679,7 +1679,7 @@ export namespace placeSync {
|
|
|
1679
1679
|
*
|
|
1680
1680
|
* const client = createClient({
|
|
1681
1681
|
* account: privateKeyToAccount('0x...'),
|
|
1682
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1682
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1683
1683
|
* transport: http(),
|
|
1684
1684
|
* })
|
|
1685
1685
|
*
|
|
@@ -1760,7 +1760,7 @@ export namespace sell {
|
|
|
1760
1760
|
* import { Actions } from 'viem/tempo'
|
|
1761
1761
|
*
|
|
1762
1762
|
* const client = createClient({
|
|
1763
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1763
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1764
1764
|
* transport: http(),
|
|
1765
1765
|
* }).extend(walletActions)
|
|
1766
1766
|
*
|
|
@@ -1802,7 +1802,7 @@ export namespace sell {
|
|
|
1802
1802
|
*
|
|
1803
1803
|
* const client = createClient({
|
|
1804
1804
|
* account: privateKeyToAccount('0x...'),
|
|
1805
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1805
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1806
1806
|
* transport: http(),
|
|
1807
1807
|
* })
|
|
1808
1808
|
*
|
|
@@ -1860,7 +1860,7 @@ export namespace sellSync {
|
|
|
1860
1860
|
* import { Actions } from 'viem/tempo'
|
|
1861
1861
|
*
|
|
1862
1862
|
* const client = createClient({
|
|
1863
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1863
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1864
1864
|
* transport: http(),
|
|
1865
1865
|
* })
|
|
1866
1866
|
*
|
|
@@ -1943,7 +1943,7 @@ export declare namespace watchFlipOrderPlaced {
|
|
|
1943
1943
|
* import { Actions } from 'viem/tempo'
|
|
1944
1944
|
*
|
|
1945
1945
|
* const client = createClient({
|
|
1946
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1946
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1947
1947
|
* transport: http(),
|
|
1948
1948
|
* })
|
|
1949
1949
|
*
|
|
@@ -2019,7 +2019,7 @@ export declare namespace watchOrderCancelled {
|
|
|
2019
2019
|
* import { Actions } from 'viem/tempo'
|
|
2020
2020
|
*
|
|
2021
2021
|
* const client = createClient({
|
|
2022
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2022
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2023
2023
|
* transport: http(),
|
|
2024
2024
|
* })
|
|
2025
2025
|
*
|
|
@@ -2103,7 +2103,7 @@ export declare namespace watchOrderFilled {
|
|
|
2103
2103
|
* import { Actions } from 'viem/tempo'
|
|
2104
2104
|
*
|
|
2105
2105
|
* const client = createClient({
|
|
2106
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2106
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2107
2107
|
* transport: http(),
|
|
2108
2108
|
* })
|
|
2109
2109
|
*
|
|
@@ -2186,7 +2186,7 @@ export declare namespace watchOrderPlaced {
|
|
|
2186
2186
|
*
|
|
2187
2187
|
* const client = createClient({
|
|
2188
2188
|
* account: privateKeyToAccount('0x...'),
|
|
2189
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2189
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2190
2190
|
* transport: http(),
|
|
2191
2191
|
* })
|
|
2192
2192
|
*
|
|
@@ -2261,7 +2261,7 @@ export namespace withdraw {
|
|
|
2261
2261
|
* import { Actions } from 'viem/tempo'
|
|
2262
2262
|
*
|
|
2263
2263
|
* const client = createClient({
|
|
2264
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2264
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2265
2265
|
* transport: http(),
|
|
2266
2266
|
* }).extend(walletActions)
|
|
2267
2267
|
*
|
|
@@ -2301,7 +2301,7 @@ export namespace withdraw {
|
|
|
2301
2301
|
*
|
|
2302
2302
|
* const client = createClient({
|
|
2303
2303
|
* account: privateKeyToAccount('0x...'),
|
|
2304
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2304
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2305
2305
|
* transport: http(),
|
|
2306
2306
|
* })
|
|
2307
2307
|
*
|
package/tempo/actions/faucet.ts
CHANGED
|
@@ -19,7 +19,7 @@ import type { TransactionReceipt } from '../Transaction.js'
|
|
|
19
19
|
* import { Actions } from 'viem/tempo'
|
|
20
20
|
*
|
|
21
21
|
* const client = createClient({
|
|
22
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
22
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
23
23
|
* transport: http(),
|
|
24
24
|
* })
|
|
25
25
|
*
|
|
@@ -68,7 +68,7 @@ export declare namespace fund {
|
|
|
68
68
|
* import { Actions } from 'viem/tempo'
|
|
69
69
|
*
|
|
70
70
|
* const client = createClient({
|
|
71
|
-
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
71
|
+
* chain: tempo.extend({ feeToken: '0x20c0000000000000000000000000000000000001' }),
|
|
72
72
|
* transport: http(),
|
|
73
73
|
* })
|
|
74
74
|
*
|