tempo.ts 0.2.0 → 0.3.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/README.md +24 -0
- package/dist/chains.d.ts +56 -1572
- package/dist/chains.d.ts.map +1 -1
- package/dist/chains.js +3 -1
- package/dist/chains.js.map +1 -1
- package/dist/viem/Actions/amm.d.ts +64 -43
- package/dist/viem/Actions/amm.d.ts.map +1 -1
- package/dist/viem/Actions/amm.js +62 -47
- package/dist/viem/Actions/amm.js.map +1 -1
- package/dist/viem/Actions/dex.d.ts +32 -32
- package/dist/viem/Actions/dex.js +32 -32
- package/dist/viem/Actions/faucet.d.ts +34 -0
- package/dist/viem/Actions/faucet.d.ts.map +1 -0
- package/dist/viem/Actions/faucet.js +33 -0
- package/dist/viem/Actions/faucet.js.map +1 -0
- package/dist/viem/Actions/fee.d.ts +14 -14
- package/dist/viem/Actions/fee.d.ts.map +1 -1
- package/dist/viem/Actions/fee.js +16 -14
- package/dist/viem/Actions/fee.js.map +1 -1
- package/dist/viem/Actions/index.d.ts +1 -0
- package/dist/viem/Actions/index.d.ts.map +1 -1
- package/dist/viem/Actions/index.js +1 -0
- package/dist/viem/Actions/index.js.map +1 -1
- package/dist/viem/Actions/policy.d.ts +46 -46
- package/dist/viem/Actions/policy.js +46 -46
- package/dist/viem/Actions/reward.d.ts +38 -38
- package/dist/viem/Actions/reward.js +38 -38
- package/dist/viem/Actions/token.d.ts +159 -159
- package/dist/viem/Actions/token.js +159 -159
- package/dist/viem/Chain.d.ts +8 -5
- package/dist/viem/Chain.d.ts.map +1 -1
- package/dist/viem/Chain.js +25 -25
- package/dist/viem/Chain.js.map +1 -1
- package/dist/viem/Decorator.d.ts +128 -101
- package/dist/viem/Decorator.d.ts.map +1 -1
- package/dist/viem/Decorator.js +4 -0
- package/dist/viem/Decorator.js.map +1 -1
- package/dist/wagmi/Actions/amm.d.ts +12 -12
- package/dist/wagmi/Actions/amm.js +12 -12
- package/dist/wagmi/Actions/dex.d.ts +25 -25
- package/dist/wagmi/Actions/dex.js +25 -25
- package/dist/wagmi/Actions/faucet.d.ts +35 -0
- package/dist/wagmi/Actions/faucet.d.ts.map +1 -0
- package/dist/wagmi/Actions/faucet.js +33 -0
- package/dist/wagmi/Actions/faucet.js.map +1 -0
- package/dist/wagmi/Actions/fee.d.ts +3 -3
- package/dist/wagmi/Actions/fee.js +3 -3
- package/dist/wagmi/Actions/index.d.ts +1 -0
- package/dist/wagmi/Actions/index.d.ts.map +1 -1
- package/dist/wagmi/Actions/index.js +1 -0
- package/dist/wagmi/Actions/index.js.map +1 -1
- package/dist/wagmi/Actions/reward.d.ts +10 -10
- package/dist/wagmi/Actions/reward.js +10 -10
- package/dist/wagmi/Actions/token.d.ts +45 -45
- package/dist/wagmi/Actions/token.js +46 -46
- package/dist/wagmi/Actions/token.js.map +1 -1
- package/dist/wagmi/Connector.d.ts +11 -3
- package/dist/wagmi/Connector.d.ts.map +1 -1
- package/dist/wagmi/Connector.js +16 -4
- package/dist/wagmi/Connector.js.map +1 -1
- package/dist/wagmi/Hooks/faucet.d.ts +39 -0
- package/dist/wagmi/Hooks/faucet.d.ts.map +1 -0
- package/dist/wagmi/Hooks/faucet.js +40 -0
- package/dist/wagmi/Hooks/faucet.js.map +1 -0
- package/dist/wagmi/Hooks/index.d.ts +1 -0
- package/dist/wagmi/Hooks/index.d.ts.map +1 -1
- package/dist/wagmi/Hooks/index.js +1 -0
- package/dist/wagmi/Hooks/index.js.map +1 -1
- package/package.json +1 -54
- package/src/chains.ts +3 -1
- package/src/viem/Actions/amm.test.ts +75 -0
- package/src/viem/Actions/amm.ts +63 -48
- package/src/viem/Actions/dex.ts +32 -32
- package/src/viem/Actions/faucet.ts +50 -0
- package/src/viem/Actions/fee.ts +16 -14
- package/src/viem/Actions/index.ts +1 -0
- package/src/viem/Actions/policy.ts +46 -46
- package/src/viem/Actions/reward.ts +38 -38
- package/src/viem/Actions/token.ts +159 -159
- package/src/viem/Chain.bench-d.ts +12 -0
- package/src/viem/Chain.ts +36 -32
- package/src/viem/Decorator.bench-d.ts +1 -1
- package/src/viem/Decorator.test.ts +1 -0
- package/src/viem/Decorator.ts +133 -101
- package/src/wagmi/Actions/amm.ts +12 -12
- package/src/wagmi/Actions/dex.ts +25 -25
- package/src/wagmi/Actions/faucet.ts +46 -0
- package/src/wagmi/Actions/fee.ts +3 -3
- package/src/wagmi/Actions/index.ts +1 -0
- package/src/wagmi/Actions/reward.ts +10 -10
- package/src/wagmi/Actions/token.ts +46 -46
- package/src/wagmi/Connector.ts +31 -8
- package/src/wagmi/Hooks/faucet.ts +76 -0
- package/src/wagmi/Hooks/index.ts +1 -0
|
@@ -48,16 +48,16 @@ import { defineCall } from '../internal/utils.js'
|
|
|
48
48
|
* ```ts
|
|
49
49
|
* import { createClient, http } from 'viem'
|
|
50
50
|
* import { tempo } from 'tempo.ts/chains'
|
|
51
|
-
* import
|
|
51
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
52
52
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
53
53
|
*
|
|
54
54
|
* const client = createClient({
|
|
55
55
|
* account: privateKeyToAccount('0x...'),
|
|
56
|
-
* chain: tempo
|
|
56
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
57
57
|
* transport: http(),
|
|
58
58
|
* })
|
|
59
59
|
*
|
|
60
|
-
* const result = await
|
|
60
|
+
* const result = await Actions.token.approve(client, {
|
|
61
61
|
* spender: '0x...',
|
|
62
62
|
* amount: 100n,
|
|
63
63
|
* })
|
|
@@ -128,10 +128,10 @@ export namespace approve {
|
|
|
128
128
|
* ```ts
|
|
129
129
|
* import { createClient, http, walletActions } from 'viem'
|
|
130
130
|
* import { tempo } from 'tempo.ts/chains'
|
|
131
|
-
* import
|
|
131
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
132
132
|
*
|
|
133
133
|
* const client = createClient({
|
|
134
|
-
* chain: tempo
|
|
134
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
135
135
|
* transport: http(),
|
|
136
136
|
* }).extend(walletActions)
|
|
137
137
|
*
|
|
@@ -177,16 +177,16 @@ export namespace approve {
|
|
|
177
177
|
* ```ts
|
|
178
178
|
* import { createClient, http } from 'viem'
|
|
179
179
|
* import { tempo } from 'tempo.ts/chains'
|
|
180
|
-
* import
|
|
180
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
181
181
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
182
182
|
*
|
|
183
183
|
* const client = createClient({
|
|
184
184
|
* account: privateKeyToAccount('0x...'),
|
|
185
|
-
* chain: tempo
|
|
185
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
186
186
|
* transport: http(),
|
|
187
187
|
* })
|
|
188
188
|
*
|
|
189
|
-
* const result = await
|
|
189
|
+
* const result = await Actions.token.approveSync(client, {
|
|
190
190
|
* spender: '0x...',
|
|
191
191
|
* amount: 100n,
|
|
192
192
|
* })
|
|
@@ -250,16 +250,16 @@ export namespace approveSync {
|
|
|
250
250
|
* ```ts
|
|
251
251
|
* import { createClient, http } from 'viem'
|
|
252
252
|
* import { tempo } from 'tempo.ts/chains'
|
|
253
|
-
* import
|
|
253
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
254
254
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
255
255
|
*
|
|
256
256
|
* const client = createClient({
|
|
257
257
|
* account: privateKeyToAccount('0x...'),
|
|
258
|
-
* chain: tempo
|
|
258
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
259
259
|
* transport: http(),
|
|
260
260
|
* })
|
|
261
261
|
*
|
|
262
|
-
* const result = await
|
|
262
|
+
* const result = await Actions.token.burnBlocked(client, {
|
|
263
263
|
* from: '0x...',
|
|
264
264
|
* amount: 100n,
|
|
265
265
|
* token: '0x...',
|
|
@@ -330,10 +330,10 @@ export namespace burnBlocked {
|
|
|
330
330
|
* ```ts
|
|
331
331
|
* import { createClient, http, walletActions } from 'viem'
|
|
332
332
|
* import { tempo } from 'tempo.ts/chains'
|
|
333
|
-
* import
|
|
333
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
334
334
|
*
|
|
335
335
|
* const client = createClient({
|
|
336
|
-
* chain: tempo
|
|
336
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
337
337
|
* transport: http(),
|
|
338
338
|
* }).extend(walletActions)
|
|
339
339
|
*
|
|
@@ -385,16 +385,16 @@ export namespace burnBlocked {
|
|
|
385
385
|
* ```ts
|
|
386
386
|
* import { createClient, http } from 'viem'
|
|
387
387
|
* import { tempo } from 'tempo.ts/chains'
|
|
388
|
-
* import
|
|
388
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
389
389
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
390
390
|
*
|
|
391
391
|
* const client = createClient({
|
|
392
392
|
* account: privateKeyToAccount('0x...'),
|
|
393
|
-
* chain: tempo
|
|
393
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
394
394
|
* transport: http(),
|
|
395
395
|
* })
|
|
396
396
|
*
|
|
397
|
-
* const result = await
|
|
397
|
+
* const result = await Actions.token.burnBlockedSync(client, {
|
|
398
398
|
* from: '0x...',
|
|
399
399
|
* amount: 100n,
|
|
400
400
|
* token: '0x...',
|
|
@@ -457,16 +457,16 @@ export namespace burnBlockedSync {
|
|
|
457
457
|
* ```ts
|
|
458
458
|
* import { createClient, http } from 'viem'
|
|
459
459
|
* import { tempo } from 'tempo.ts/chains'
|
|
460
|
-
* import
|
|
460
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
461
461
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
462
462
|
*
|
|
463
463
|
* const client = createClient({
|
|
464
464
|
* account: privateKeyToAccount('0x...'),
|
|
465
|
-
* chain: tempo
|
|
465
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
466
466
|
* transport: http(),
|
|
467
467
|
* })
|
|
468
468
|
*
|
|
469
|
-
* const result = await
|
|
469
|
+
* const result = await Actions.token.burn(client, {
|
|
470
470
|
* amount: 100n,
|
|
471
471
|
* token: '0x...',
|
|
472
472
|
* })
|
|
@@ -536,10 +536,10 @@ export namespace burn {
|
|
|
536
536
|
* ```ts
|
|
537
537
|
* import { createClient, http, walletActions } from 'viem'
|
|
538
538
|
* import { tempo } from 'tempo.ts/chains'
|
|
539
|
-
* import
|
|
539
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
540
540
|
*
|
|
541
541
|
* const client = createClient({
|
|
542
|
-
* chain: tempo
|
|
542
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
543
543
|
* transport: http(),
|
|
544
544
|
* }).extend(walletActions)
|
|
545
545
|
*
|
|
@@ -598,16 +598,16 @@ export namespace burn {
|
|
|
598
598
|
* ```ts
|
|
599
599
|
* import { createClient, http } from 'viem'
|
|
600
600
|
* import { tempo } from 'tempo.ts/chains'
|
|
601
|
-
* import
|
|
601
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
602
602
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
603
603
|
*
|
|
604
604
|
* const client = createClient({
|
|
605
605
|
* account: privateKeyToAccount('0x...'),
|
|
606
|
-
* chain: tempo
|
|
606
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
607
607
|
* transport: http(),
|
|
608
608
|
* })
|
|
609
609
|
*
|
|
610
|
-
* const result = await
|
|
610
|
+
* const result = await Actions.token.burnSync(client, {
|
|
611
611
|
* amount: 100n,
|
|
612
612
|
* token: '0x...',
|
|
613
613
|
* })
|
|
@@ -668,16 +668,16 @@ export namespace burnSync {
|
|
|
668
668
|
* ```ts
|
|
669
669
|
* import { createClient, http } from 'viem'
|
|
670
670
|
* import { tempo } from 'tempo.ts/chains'
|
|
671
|
-
* import
|
|
671
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
672
672
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
673
673
|
*
|
|
674
674
|
* const client = createClient({
|
|
675
675
|
* account: privateKeyToAccount('0x...'),
|
|
676
|
-
* chain: tempo
|
|
676
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
677
677
|
* transport: http(),
|
|
678
678
|
* })
|
|
679
679
|
*
|
|
680
|
-
* const result = await
|
|
680
|
+
* const result = await Actions.token.changeTransferPolicy(client, {
|
|
681
681
|
* token: '0x...',
|
|
682
682
|
* policyId: 1n,
|
|
683
683
|
* })
|
|
@@ -745,10 +745,10 @@ export namespace changeTransferPolicy {
|
|
|
745
745
|
* ```ts
|
|
746
746
|
* import { createClient, http, walletActions } from 'viem'
|
|
747
747
|
* import { tempo } from 'tempo.ts/chains'
|
|
748
|
-
* import
|
|
748
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
749
749
|
*
|
|
750
750
|
* const client = createClient({
|
|
751
|
-
* chain: tempo
|
|
751
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
752
752
|
* transport: http(),
|
|
753
753
|
* }).extend(walletActions)
|
|
754
754
|
*
|
|
@@ -799,16 +799,16 @@ export namespace changeTransferPolicy {
|
|
|
799
799
|
* ```ts
|
|
800
800
|
* import { createClient, http } from 'viem'
|
|
801
801
|
* import { tempo } from 'tempo.ts/chains'
|
|
802
|
-
* import
|
|
802
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
803
803
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
804
804
|
*
|
|
805
805
|
* const client = createClient({
|
|
806
806
|
* account: privateKeyToAccount('0x...'),
|
|
807
|
-
* chain: tempo
|
|
807
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
808
808
|
* transport: http(),
|
|
809
809
|
* })
|
|
810
810
|
*
|
|
811
|
-
* const result = await
|
|
811
|
+
* const result = await Actions.token.changeTransferPolicySync(client, {
|
|
812
812
|
* token: '0x...',
|
|
813
813
|
* policyId: 1n,
|
|
814
814
|
* })
|
|
@@ -869,16 +869,16 @@ export namespace changeTransferPolicySync {
|
|
|
869
869
|
* ```ts
|
|
870
870
|
* import { createClient, http } from 'viem'
|
|
871
871
|
* import { tempo } from 'tempo.ts/chains'
|
|
872
|
-
* import
|
|
872
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
873
873
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
874
874
|
*
|
|
875
875
|
* const client = createClient({
|
|
876
876
|
* account: privateKeyToAccount('0x...'),
|
|
877
|
-
* chain: tempo
|
|
877
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
878
878
|
* transport: http(),
|
|
879
879
|
* })
|
|
880
880
|
*
|
|
881
|
-
* const result = await
|
|
881
|
+
* const result = await Actions.token.create(client, {
|
|
882
882
|
* name: 'My Token',
|
|
883
883
|
* symbol: 'MTK',
|
|
884
884
|
* currency: 'USD',
|
|
@@ -971,10 +971,10 @@ export namespace create {
|
|
|
971
971
|
* ```ts
|
|
972
972
|
* import { createClient, http, walletActions } from 'viem'
|
|
973
973
|
* import { tempo } from 'tempo.ts/chains'
|
|
974
|
-
* import
|
|
974
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
975
975
|
*
|
|
976
976
|
* const client = createClient({
|
|
977
|
-
* chain: tempo
|
|
977
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
978
978
|
* transport: http(),
|
|
979
979
|
* }).extend(walletActions)
|
|
980
980
|
*
|
|
@@ -1034,16 +1034,16 @@ export namespace create {
|
|
|
1034
1034
|
* ```ts
|
|
1035
1035
|
* import { createClient, http } from 'viem'
|
|
1036
1036
|
* import { tempo } from 'tempo.ts/chains'
|
|
1037
|
-
* import
|
|
1037
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1038
1038
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1039
1039
|
*
|
|
1040
1040
|
* const client = createClient({
|
|
1041
1041
|
* account: privateKeyToAccount('0x...'),
|
|
1042
|
-
* chain: tempo
|
|
1042
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1043
1043
|
* transport: http(),
|
|
1044
1044
|
* })
|
|
1045
1045
|
*
|
|
1046
|
-
* const result = await
|
|
1046
|
+
* const result = await Actions.token.createSync(client, {
|
|
1047
1047
|
* name: 'My Token',
|
|
1048
1048
|
* symbol: 'MTK',
|
|
1049
1049
|
* currency: 'USD',
|
|
@@ -1105,16 +1105,16 @@ export namespace createSync {
|
|
|
1105
1105
|
* ```ts
|
|
1106
1106
|
* import { createClient, http } from 'viem'
|
|
1107
1107
|
* import { tempo } from 'tempo.ts/chains'
|
|
1108
|
-
* import
|
|
1108
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1109
1109
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1110
1110
|
*
|
|
1111
1111
|
* const client = createClient({
|
|
1112
1112
|
* account: privateKeyToAccount('0x...'),
|
|
1113
|
-
* chain: tempo
|
|
1113
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1114
1114
|
* transport: http(),
|
|
1115
1115
|
* })
|
|
1116
1116
|
*
|
|
1117
|
-
* const allowance = await
|
|
1117
|
+
* const allowance = await Actions.token.getAllowance(client, {
|
|
1118
1118
|
* spender: '0x...',
|
|
1119
1119
|
* })
|
|
1120
1120
|
* ```
|
|
@@ -1183,16 +1183,16 @@ export namespace getAllowance {
|
|
|
1183
1183
|
* ```ts
|
|
1184
1184
|
* import { createClient, http } from 'viem'
|
|
1185
1185
|
* import { tempo } from 'tempo.ts/chains'
|
|
1186
|
-
* import
|
|
1186
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1187
1187
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1188
1188
|
*
|
|
1189
1189
|
* const client = createClient({
|
|
1190
1190
|
* account: privateKeyToAccount('0x...'),
|
|
1191
|
-
* chain: tempo
|
|
1191
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1192
1192
|
* transport: http(),
|
|
1193
1193
|
* })
|
|
1194
1194
|
*
|
|
1195
|
-
* const balance = await
|
|
1195
|
+
* const balance = await Actions.token.getBalance(client, {
|
|
1196
1196
|
* token: '0x...',
|
|
1197
1197
|
* })
|
|
1198
1198
|
* ```
|
|
@@ -1259,16 +1259,16 @@ export namespace getBalance {
|
|
|
1259
1259
|
* ```ts
|
|
1260
1260
|
* import { createClient, http } from 'viem'
|
|
1261
1261
|
* import { tempo } from 'tempo.ts/chains'
|
|
1262
|
-
* import
|
|
1262
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1263
1263
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1264
1264
|
*
|
|
1265
1265
|
* const client = createClient({
|
|
1266
1266
|
* account: privateKeyToAccount('0x...'),
|
|
1267
|
-
* chain: tempo
|
|
1267
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1268
1268
|
* transport: http(),
|
|
1269
1269
|
* })
|
|
1270
1270
|
*
|
|
1271
|
-
* const metadata = await
|
|
1271
|
+
* const metadata = await Actions.token.getMetadata(client, {
|
|
1272
1272
|
* token: '0x...',
|
|
1273
1273
|
* })
|
|
1274
1274
|
* ```
|
|
@@ -1463,14 +1463,14 @@ export declare namespace getMetadata {
|
|
|
1463
1463
|
* ```ts
|
|
1464
1464
|
* import { createClient, http } from 'viem'
|
|
1465
1465
|
* import { tempo } from 'tempo.ts/chains'
|
|
1466
|
-
* import
|
|
1466
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1467
1467
|
*
|
|
1468
1468
|
* const client = createClient({
|
|
1469
|
-
* chain: tempo
|
|
1469
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1470
1470
|
* transport: http(),
|
|
1471
1471
|
* })
|
|
1472
1472
|
*
|
|
1473
|
-
* const adminRole = await
|
|
1473
|
+
* const adminRole = await Actions.token.getRoleAdmin(client, {
|
|
1474
1474
|
* role: 'minter',
|
|
1475
1475
|
* token: '0x...',
|
|
1476
1476
|
* })
|
|
@@ -1530,14 +1530,14 @@ export namespace getRoleAdmin {
|
|
|
1530
1530
|
* ```ts
|
|
1531
1531
|
* import { createClient, http } from 'viem'
|
|
1532
1532
|
* import { tempo } from 'tempo.ts/chains'
|
|
1533
|
-
* import
|
|
1533
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1534
1534
|
*
|
|
1535
1535
|
* const client = createClient({
|
|
1536
|
-
* chain: tempo
|
|
1536
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1537
1537
|
* transport: http(),
|
|
1538
1538
|
* })
|
|
1539
1539
|
*
|
|
1540
|
-
* const hasRole = await
|
|
1540
|
+
* const hasRole = await Actions.token.hasRole(client, {
|
|
1541
1541
|
* account: '0x...',
|
|
1542
1542
|
* role: 'issuer',
|
|
1543
1543
|
* token: '0x...',
|
|
@@ -1608,16 +1608,16 @@ export namespace hasRole {
|
|
|
1608
1608
|
* ```ts
|
|
1609
1609
|
* import { createClient, http } from 'viem'
|
|
1610
1610
|
* import { tempo } from 'tempo.ts/chains'
|
|
1611
|
-
* import
|
|
1611
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1612
1612
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1613
1613
|
*
|
|
1614
1614
|
* const client = createClient({
|
|
1615
1615
|
* account: privateKeyToAccount('0x...'),
|
|
1616
|
-
* chain: tempo
|
|
1616
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1617
1617
|
* transport: http(),
|
|
1618
1618
|
* })
|
|
1619
1619
|
*
|
|
1620
|
-
* const result = await
|
|
1620
|
+
* const result = await Actions.token.grantRoles(client, {
|
|
1621
1621
|
* token: '0x...',
|
|
1622
1622
|
* to: '0x...',
|
|
1623
1623
|
* roles: ['issuer'],
|
|
@@ -1696,10 +1696,10 @@ export namespace grantRoles {
|
|
|
1696
1696
|
* ```ts
|
|
1697
1697
|
* import { createClient, http, walletActions } from 'viem'
|
|
1698
1698
|
* import { tempo } from 'tempo.ts/chains'
|
|
1699
|
-
* import
|
|
1699
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1700
1700
|
*
|
|
1701
1701
|
* const client = createClient({
|
|
1702
|
-
* chain: tempo
|
|
1702
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1703
1703
|
* transport: http(),
|
|
1704
1704
|
* }).extend(walletActions)
|
|
1705
1705
|
*
|
|
@@ -1753,16 +1753,16 @@ export namespace grantRoles {
|
|
|
1753
1753
|
* ```ts
|
|
1754
1754
|
* import { createClient, http } from 'viem'
|
|
1755
1755
|
* import { tempo } from 'tempo.ts/chains'
|
|
1756
|
-
* import
|
|
1756
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1757
1757
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1758
1758
|
*
|
|
1759
1759
|
* const client = createClient({
|
|
1760
1760
|
* account: privateKeyToAccount('0x...'),
|
|
1761
|
-
* chain: tempo
|
|
1761
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1762
1762
|
* transport: http(),
|
|
1763
1763
|
* })
|
|
1764
1764
|
*
|
|
1765
|
-
* const result = await
|
|
1765
|
+
* const result = await Actions.token.grantRolesSync(client, {
|
|
1766
1766
|
* token: '0x...',
|
|
1767
1767
|
* to: '0x...',
|
|
1768
1768
|
* roles: ['minter'],
|
|
@@ -1821,16 +1821,16 @@ export namespace grantRolesSync {
|
|
|
1821
1821
|
* ```ts
|
|
1822
1822
|
* import { createClient, http } from 'viem'
|
|
1823
1823
|
* import { tempo } from 'tempo.ts/chains'
|
|
1824
|
-
* import
|
|
1824
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1825
1825
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1826
1826
|
*
|
|
1827
1827
|
* const client = createClient({
|
|
1828
1828
|
* account: privateKeyToAccount('0x...'),
|
|
1829
|
-
* chain: tempo
|
|
1829
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1830
1830
|
* transport: http(),
|
|
1831
1831
|
* })
|
|
1832
1832
|
*
|
|
1833
|
-
* const result = await
|
|
1833
|
+
* const result = await Actions.token.mint(client, {
|
|
1834
1834
|
* to: '0x...',
|
|
1835
1835
|
* amount: 100n,
|
|
1836
1836
|
* token: '0x...',
|
|
@@ -1902,10 +1902,10 @@ export namespace mint {
|
|
|
1902
1902
|
* ```ts
|
|
1903
1903
|
* import { createClient, http, walletActions } from 'viem'
|
|
1904
1904
|
* import { tempo } from 'tempo.ts/chains'
|
|
1905
|
-
* import
|
|
1905
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1906
1906
|
*
|
|
1907
1907
|
* const client = createClient({
|
|
1908
|
-
* chain: tempo
|
|
1908
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1909
1909
|
* transport: http(),
|
|
1910
1910
|
* }).extend(walletActions)
|
|
1911
1911
|
*
|
|
@@ -1965,16 +1965,16 @@ export namespace mint {
|
|
|
1965
1965
|
* ```ts
|
|
1966
1966
|
* import { createClient, http } from 'viem'
|
|
1967
1967
|
* import { tempo } from 'tempo.ts/chains'
|
|
1968
|
-
* import
|
|
1968
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1969
1969
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1970
1970
|
*
|
|
1971
1971
|
* const client = createClient({
|
|
1972
1972
|
* account: privateKeyToAccount('0x...'),
|
|
1973
|
-
* chain: tempo
|
|
1973
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1974
1974
|
* transport: http(),
|
|
1975
1975
|
* })
|
|
1976
1976
|
*
|
|
1977
|
-
* const result = await
|
|
1977
|
+
* const result = await Actions.token.mintSync(client, {
|
|
1978
1978
|
* to: '0x...',
|
|
1979
1979
|
* amount: 100n,
|
|
1980
1980
|
* token: '0x...',
|
|
@@ -2036,16 +2036,16 @@ export namespace mintSync {
|
|
|
2036
2036
|
* ```ts
|
|
2037
2037
|
* import { createClient, http } from 'viem'
|
|
2038
2038
|
* import { tempo } from 'tempo.ts/chains'
|
|
2039
|
-
* import
|
|
2039
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2040
2040
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2041
2041
|
*
|
|
2042
2042
|
* const client = createClient({
|
|
2043
2043
|
* account: privateKeyToAccount('0x...'),
|
|
2044
|
-
* chain: tempo
|
|
2044
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2045
2045
|
* transport: http(),
|
|
2046
2046
|
* })
|
|
2047
2047
|
*
|
|
2048
|
-
* const result = await
|
|
2048
|
+
* const result = await Actions.token.pause(client, {
|
|
2049
2049
|
* token: '0x...',
|
|
2050
2050
|
* })
|
|
2051
2051
|
* ```
|
|
@@ -2110,10 +2110,10 @@ export namespace pause {
|
|
|
2110
2110
|
* ```ts
|
|
2111
2111
|
* import { createClient, http, walletActions } from 'viem'
|
|
2112
2112
|
* import { tempo } from 'tempo.ts/chains'
|
|
2113
|
-
* import
|
|
2113
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2114
2114
|
*
|
|
2115
2115
|
* const client = createClient({
|
|
2116
|
-
* chain: tempo
|
|
2116
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2117
2117
|
* transport: http(),
|
|
2118
2118
|
* }).extend(walletActions)
|
|
2119
2119
|
*
|
|
@@ -2163,16 +2163,16 @@ export namespace pause {
|
|
|
2163
2163
|
* ```ts
|
|
2164
2164
|
* import { createClient, http } from 'viem'
|
|
2165
2165
|
* import { tempo } from 'tempo.ts/chains'
|
|
2166
|
-
* import
|
|
2166
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2167
2167
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2168
2168
|
*
|
|
2169
2169
|
* const client = createClient({
|
|
2170
2170
|
* account: privateKeyToAccount('0x...'),
|
|
2171
|
-
* chain: tempo
|
|
2171
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2172
2172
|
* transport: http(),
|
|
2173
2173
|
* })
|
|
2174
2174
|
*
|
|
2175
|
-
* const result = await
|
|
2175
|
+
* const result = await Actions.token.pauseSync(client, {
|
|
2176
2176
|
* token: '0x...',
|
|
2177
2177
|
* })
|
|
2178
2178
|
* ```
|
|
@@ -2227,16 +2227,16 @@ export namespace pauseSync {
|
|
|
2227
2227
|
* ```ts
|
|
2228
2228
|
* import { createClient, http } from 'viem'
|
|
2229
2229
|
* import { tempo } from 'tempo.ts/chains'
|
|
2230
|
-
* import
|
|
2230
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2231
2231
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2232
2232
|
*
|
|
2233
2233
|
* const client = createClient({
|
|
2234
2234
|
* account: privateKeyToAccount('0x...'),
|
|
2235
|
-
* chain: tempo
|
|
2235
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2236
2236
|
* transport: http(),
|
|
2237
2237
|
* })
|
|
2238
2238
|
*
|
|
2239
|
-
* const result = await
|
|
2239
|
+
* const result = await Actions.token.renounceRoles(client, {
|
|
2240
2240
|
* token: '0x...',
|
|
2241
2241
|
* roles: ['minter'],
|
|
2242
2242
|
* })
|
|
@@ -2312,10 +2312,10 @@ export namespace renounceRoles {
|
|
|
2312
2312
|
* ```ts
|
|
2313
2313
|
* import { createClient, http, walletActions } from 'viem'
|
|
2314
2314
|
* import { tempo } from 'tempo.ts/chains'
|
|
2315
|
-
* import
|
|
2315
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2316
2316
|
*
|
|
2317
2317
|
* const client = createClient({
|
|
2318
|
-
* chain: tempo
|
|
2318
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2319
2319
|
* transport: http(),
|
|
2320
2320
|
* }).extend(walletActions)
|
|
2321
2321
|
*
|
|
@@ -2368,16 +2368,16 @@ export namespace renounceRoles {
|
|
|
2368
2368
|
* ```ts
|
|
2369
2369
|
* import { createClient, http } from 'viem'
|
|
2370
2370
|
* import { tempo } from 'tempo.ts/chains'
|
|
2371
|
-
* import
|
|
2371
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2372
2372
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2373
2373
|
*
|
|
2374
2374
|
* const client = createClient({
|
|
2375
2375
|
* account: privateKeyToAccount('0x...'),
|
|
2376
|
-
* chain: tempo
|
|
2376
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2377
2377
|
* transport: http(),
|
|
2378
2378
|
* })
|
|
2379
2379
|
*
|
|
2380
|
-
* const result = await
|
|
2380
|
+
* const result = await Actions.token.renounceRolesSync(client, {
|
|
2381
2381
|
* token: '0x...',
|
|
2382
2382
|
* roles: ['minter'],
|
|
2383
2383
|
* })
|
|
@@ -2435,16 +2435,16 @@ export namespace renounceRolesSync {
|
|
|
2435
2435
|
* ```ts
|
|
2436
2436
|
* import { createClient, http } from 'viem'
|
|
2437
2437
|
* import { tempo } from 'tempo.ts/chains'
|
|
2438
|
-
* import
|
|
2438
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2439
2439
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2440
2440
|
*
|
|
2441
2441
|
* const client = createClient({
|
|
2442
2442
|
* account: privateKeyToAccount('0x...'),
|
|
2443
|
-
* chain: tempo
|
|
2443
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2444
2444
|
* transport: http(),
|
|
2445
2445
|
* })
|
|
2446
2446
|
*
|
|
2447
|
-
* const result = await
|
|
2447
|
+
* const result = await Actions.token.revokeRoles(client, {
|
|
2448
2448
|
* token: '0x...',
|
|
2449
2449
|
* from: '0x...',
|
|
2450
2450
|
* roles: ['minter'],
|
|
@@ -2523,10 +2523,10 @@ export namespace revokeRoles {
|
|
|
2523
2523
|
* ```ts
|
|
2524
2524
|
* import { createClient, http, walletActions } from 'viem'
|
|
2525
2525
|
* import { tempo } from 'tempo.ts/chains'
|
|
2526
|
-
* import
|
|
2526
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2527
2527
|
*
|
|
2528
2528
|
* const client = createClient({
|
|
2529
|
-
* chain: tempo
|
|
2529
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2530
2530
|
* transport: http(),
|
|
2531
2531
|
* }).extend(walletActions)
|
|
2532
2532
|
*
|
|
@@ -2580,16 +2580,16 @@ export namespace revokeRoles {
|
|
|
2580
2580
|
* ```ts
|
|
2581
2581
|
* import { createClient, http } from 'viem'
|
|
2582
2582
|
* import { tempo } from 'tempo.ts/chains'
|
|
2583
|
-
* import
|
|
2583
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2584
2584
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2585
2585
|
*
|
|
2586
2586
|
* const client = createClient({
|
|
2587
2587
|
* account: privateKeyToAccount('0x...'),
|
|
2588
|
-
* chain: tempo
|
|
2588
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2589
2589
|
* transport: http(),
|
|
2590
2590
|
* })
|
|
2591
2591
|
*
|
|
2592
|
-
* const result = await
|
|
2592
|
+
* const result = await Actions.token.revokeRolesSync(client, {
|
|
2593
2593
|
* token: '0x...',
|
|
2594
2594
|
* from: '0x...',
|
|
2595
2595
|
* roles: ['minter'],
|
|
@@ -2648,16 +2648,16 @@ export namespace revokeRolesSync {
|
|
|
2648
2648
|
* ```ts
|
|
2649
2649
|
* import { createClient, http } from 'viem'
|
|
2650
2650
|
* import { tempo } from 'tempo.ts/chains'
|
|
2651
|
-
* import
|
|
2651
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2652
2652
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2653
2653
|
*
|
|
2654
2654
|
* const client = createClient({
|
|
2655
2655
|
* account: privateKeyToAccount('0x...'),
|
|
2656
|
-
* chain: tempo
|
|
2656
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2657
2657
|
* transport: http(),
|
|
2658
2658
|
* })
|
|
2659
2659
|
*
|
|
2660
|
-
* const result = await
|
|
2660
|
+
* const result = await Actions.token.setSupplyCap(client, {
|
|
2661
2661
|
* token: '0x...',
|
|
2662
2662
|
* supplyCap: 1000000n,
|
|
2663
2663
|
* })
|
|
@@ -2725,10 +2725,10 @@ export namespace setSupplyCap {
|
|
|
2725
2725
|
* ```ts
|
|
2726
2726
|
* import { createClient, http, walletActions } from 'viem'
|
|
2727
2727
|
* import { tempo } from 'tempo.ts/chains'
|
|
2728
|
-
* import
|
|
2728
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2729
2729
|
*
|
|
2730
2730
|
* const client = createClient({
|
|
2731
|
-
* chain: tempo
|
|
2731
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2732
2732
|
* transport: http(),
|
|
2733
2733
|
* }).extend(walletActions)
|
|
2734
2734
|
*
|
|
@@ -2779,16 +2779,16 @@ export namespace setSupplyCap {
|
|
|
2779
2779
|
* ```ts
|
|
2780
2780
|
* import { createClient, http } from 'viem'
|
|
2781
2781
|
* import { tempo } from 'tempo.ts/chains'
|
|
2782
|
-
* import
|
|
2782
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2783
2783
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2784
2784
|
*
|
|
2785
2785
|
* const client = createClient({
|
|
2786
2786
|
* account: privateKeyToAccount('0x...'),
|
|
2787
|
-
* chain: tempo
|
|
2787
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2788
2788
|
* transport: http(),
|
|
2789
2789
|
* })
|
|
2790
2790
|
*
|
|
2791
|
-
* const result = await
|
|
2791
|
+
* const result = await Actions.token.setSupplyCapSync(client, {
|
|
2792
2792
|
* token: '0x...',
|
|
2793
2793
|
* supplyCap: 1000000n,
|
|
2794
2794
|
* })
|
|
@@ -2844,16 +2844,16 @@ export namespace setSupplyCapSync {
|
|
|
2844
2844
|
* ```ts
|
|
2845
2845
|
* import { createClient, http } from 'viem'
|
|
2846
2846
|
* import { tempo } from 'tempo.ts/chains'
|
|
2847
|
-
* import
|
|
2847
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2848
2848
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2849
2849
|
*
|
|
2850
2850
|
* const client = createClient({
|
|
2851
2851
|
* account: privateKeyToAccount('0x...'),
|
|
2852
|
-
* chain: tempo
|
|
2852
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2853
2853
|
* transport: http(),
|
|
2854
2854
|
* })
|
|
2855
2855
|
*
|
|
2856
|
-
* const result = await
|
|
2856
|
+
* const result = await Actions.token.setRoleAdmin(client, {
|
|
2857
2857
|
* token: '0x...',
|
|
2858
2858
|
* role: 'minter',
|
|
2859
2859
|
* adminRole: 'admin',
|
|
@@ -2924,10 +2924,10 @@ export namespace setRoleAdmin {
|
|
|
2924
2924
|
* ```ts
|
|
2925
2925
|
* import { createClient, http, walletActions } from 'viem'
|
|
2926
2926
|
* import { tempo } from 'tempo.ts/chains'
|
|
2927
|
-
* import
|
|
2927
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2928
2928
|
*
|
|
2929
2929
|
* const client = createClient({
|
|
2930
|
-
* chain: tempo
|
|
2930
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2931
2931
|
* transport: http(),
|
|
2932
2932
|
* }).extend(walletActions)
|
|
2933
2933
|
*
|
|
@@ -2981,16 +2981,16 @@ export namespace setRoleAdmin {
|
|
|
2981
2981
|
* ```ts
|
|
2982
2982
|
* import { createClient, http } from 'viem'
|
|
2983
2983
|
* import { tempo } from 'tempo.ts/chains'
|
|
2984
|
-
* import
|
|
2984
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2985
2985
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2986
2986
|
*
|
|
2987
2987
|
* const client = createClient({
|
|
2988
2988
|
* account: privateKeyToAccount('0x...'),
|
|
2989
|
-
* chain: tempo
|
|
2989
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2990
2990
|
* transport: http(),
|
|
2991
2991
|
* })
|
|
2992
2992
|
*
|
|
2993
|
-
* const result = await
|
|
2993
|
+
* const result = await Actions.token.setRoleAdminSync(client, {
|
|
2994
2994
|
* token: '0x...',
|
|
2995
2995
|
* role: 'minter',
|
|
2996
2996
|
* adminRole: 'admin',
|
|
@@ -3047,16 +3047,16 @@ export namespace setRoleAdminSync {
|
|
|
3047
3047
|
* ```ts
|
|
3048
3048
|
* import { createClient, http } from 'viem'
|
|
3049
3049
|
* import { tempo } from 'tempo.ts/chains'
|
|
3050
|
-
* import
|
|
3050
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3051
3051
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3052
3052
|
*
|
|
3053
3053
|
* const client = createClient({
|
|
3054
3054
|
* account: privateKeyToAccount('0x...'),
|
|
3055
|
-
* chain: tempo
|
|
3055
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3056
3056
|
* transport: http(),
|
|
3057
3057
|
* })
|
|
3058
3058
|
*
|
|
3059
|
-
* const result = await
|
|
3059
|
+
* const result = await Actions.token.transfer(client, {
|
|
3060
3060
|
* to: '0x...',
|
|
3061
3061
|
* amount: 100n,
|
|
3062
3062
|
* })
|
|
@@ -3130,10 +3130,10 @@ export namespace transfer {
|
|
|
3130
3130
|
* ```ts
|
|
3131
3131
|
* import { createClient, http, walletActions } from 'viem'
|
|
3132
3132
|
* import { tempo } from 'tempo.ts/chains'
|
|
3133
|
-
* import
|
|
3133
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3134
3134
|
*
|
|
3135
3135
|
* const client = createClient({
|
|
3136
|
-
* chain: tempo
|
|
3136
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3137
3137
|
* transport: http(),
|
|
3138
3138
|
* }).extend(walletActions)
|
|
3139
3139
|
*
|
|
@@ -3205,16 +3205,16 @@ export namespace transfer {
|
|
|
3205
3205
|
* ```ts
|
|
3206
3206
|
* import { createClient, http } from 'viem'
|
|
3207
3207
|
* import { tempo } from 'tempo.ts/chains'
|
|
3208
|
-
* import
|
|
3208
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3209
3209
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3210
3210
|
*
|
|
3211
3211
|
* const client = createClient({
|
|
3212
3212
|
* account: privateKeyToAccount('0x...'),
|
|
3213
|
-
* chain: tempo
|
|
3213
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3214
3214
|
* transport: http(),
|
|
3215
3215
|
* })
|
|
3216
3216
|
*
|
|
3217
|
-
* const result = await
|
|
3217
|
+
* const result = await Actions.token.transferSync(client, {
|
|
3218
3218
|
* to: '0x...',
|
|
3219
3219
|
* amount: 100n,
|
|
3220
3220
|
* })
|
|
@@ -3270,16 +3270,16 @@ export namespace transferSync {
|
|
|
3270
3270
|
* ```ts
|
|
3271
3271
|
* import { createClient, http } from 'viem'
|
|
3272
3272
|
* import { tempo } from 'tempo.ts/chains'
|
|
3273
|
-
* import
|
|
3273
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3274
3274
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3275
3275
|
*
|
|
3276
3276
|
* const client = createClient({
|
|
3277
3277
|
* account: privateKeyToAccount('0x...'),
|
|
3278
|
-
* chain: tempo
|
|
3278
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3279
3279
|
* transport: http(),
|
|
3280
3280
|
* })
|
|
3281
3281
|
*
|
|
3282
|
-
* const result = await
|
|
3282
|
+
* const result = await Actions.token.unpause(client, {
|
|
3283
3283
|
* token: '0x...',
|
|
3284
3284
|
* })
|
|
3285
3285
|
* ```
|
|
@@ -3344,10 +3344,10 @@ export namespace unpause {
|
|
|
3344
3344
|
* ```ts
|
|
3345
3345
|
* import { createClient, http, walletActions } from 'viem'
|
|
3346
3346
|
* import { tempo } from 'tempo.ts/chains'
|
|
3347
|
-
* import
|
|
3347
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3348
3348
|
*
|
|
3349
3349
|
* const client = createClient({
|
|
3350
|
-
* chain: tempo
|
|
3350
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3351
3351
|
* transport: http(),
|
|
3352
3352
|
* }).extend(walletActions)
|
|
3353
3353
|
*
|
|
@@ -3397,16 +3397,16 @@ export namespace unpause {
|
|
|
3397
3397
|
* ```ts
|
|
3398
3398
|
* import { createClient, http } from 'viem'
|
|
3399
3399
|
* import { tempo } from 'tempo.ts/chains'
|
|
3400
|
-
* import
|
|
3400
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3401
3401
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3402
3402
|
*
|
|
3403
3403
|
* const client = createClient({
|
|
3404
3404
|
* account: privateKeyToAccount('0x...'),
|
|
3405
|
-
* chain: tempo
|
|
3405
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3406
3406
|
* transport: http(),
|
|
3407
3407
|
* })
|
|
3408
3408
|
*
|
|
3409
|
-
* const result = await
|
|
3409
|
+
* const result = await Actions.token.unpauseSync(client, {
|
|
3410
3410
|
* token: '0x...',
|
|
3411
3411
|
* })
|
|
3412
3412
|
* ```
|
|
@@ -3461,16 +3461,16 @@ export namespace unpauseSync {
|
|
|
3461
3461
|
* ```ts
|
|
3462
3462
|
* import { createClient, http } from 'viem'
|
|
3463
3463
|
* import { tempo } from 'tempo.ts/chains'
|
|
3464
|
-
* import
|
|
3464
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3465
3465
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3466
3466
|
*
|
|
3467
3467
|
* const client = createClient({
|
|
3468
3468
|
* account: privateKeyToAccount('0x...'),
|
|
3469
|
-
* chain: tempo
|
|
3469
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3470
3470
|
* transport: http(),
|
|
3471
3471
|
* })
|
|
3472
3472
|
*
|
|
3473
|
-
* const result = await
|
|
3473
|
+
* const result = await Actions.token.prepareUpdateQuoteToken(client, {
|
|
3474
3474
|
* token: '0x...',
|
|
3475
3475
|
* quoteToken: '0x...',
|
|
3476
3476
|
* })
|
|
@@ -3538,10 +3538,10 @@ export namespace prepareUpdateQuoteToken {
|
|
|
3538
3538
|
* ```ts
|
|
3539
3539
|
* import { createClient, http, walletActions } from 'viem'
|
|
3540
3540
|
* import { tempo } from 'tempo.ts/chains'
|
|
3541
|
-
* import
|
|
3541
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3542
3542
|
*
|
|
3543
3543
|
* const client = createClient({
|
|
3544
|
-
* chain: tempo
|
|
3544
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3545
3545
|
* transport: http(),
|
|
3546
3546
|
* }).extend(walletActions)
|
|
3547
3547
|
*
|
|
@@ -3592,16 +3592,16 @@ export namespace prepareUpdateQuoteToken {
|
|
|
3592
3592
|
* ```ts
|
|
3593
3593
|
* import { createClient, http } from 'viem'
|
|
3594
3594
|
* import { tempo } from 'tempo.ts/chains'
|
|
3595
|
-
* import
|
|
3595
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3596
3596
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3597
3597
|
*
|
|
3598
3598
|
* const client = createClient({
|
|
3599
3599
|
* account: privateKeyToAccount('0x...'),
|
|
3600
|
-
* chain: tempo
|
|
3600
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3601
3601
|
* transport: http(),
|
|
3602
3602
|
* })
|
|
3603
3603
|
*
|
|
3604
|
-
* const result = await
|
|
3604
|
+
* const result = await Actions.token.prepareUpdateQuoteTokenSync(client, {
|
|
3605
3605
|
* token: '0x...',
|
|
3606
3606
|
* quoteToken: '0x...',
|
|
3607
3607
|
* })
|
|
@@ -3662,16 +3662,16 @@ export namespace prepareUpdateQuoteTokenSync {
|
|
|
3662
3662
|
* ```ts
|
|
3663
3663
|
* import { createClient, http } from 'viem'
|
|
3664
3664
|
* import { tempo } from 'tempo.ts/chains'
|
|
3665
|
-
* import
|
|
3665
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3666
3666
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3667
3667
|
*
|
|
3668
3668
|
* const client = createClient({
|
|
3669
3669
|
* account: privateKeyToAccount('0x...'),
|
|
3670
|
-
* chain: tempo
|
|
3670
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3671
3671
|
* transport: http(),
|
|
3672
3672
|
* })
|
|
3673
3673
|
*
|
|
3674
|
-
* const result = await
|
|
3674
|
+
* const result = await Actions.token.updateQuoteToken(client, {
|
|
3675
3675
|
* token: '0x...',
|
|
3676
3676
|
* })
|
|
3677
3677
|
* ```
|
|
@@ -3736,10 +3736,10 @@ export namespace updateQuoteToken {
|
|
|
3736
3736
|
* ```ts
|
|
3737
3737
|
* import { createClient, http, walletActions } from 'viem'
|
|
3738
3738
|
* import { tempo } from 'tempo.ts/chains'
|
|
3739
|
-
* import
|
|
3739
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3740
3740
|
*
|
|
3741
3741
|
* const client = createClient({
|
|
3742
|
-
* chain: tempo
|
|
3742
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3743
3743
|
* transport: http(),
|
|
3744
3744
|
* }).extend(walletActions)
|
|
3745
3745
|
*
|
|
@@ -3789,16 +3789,16 @@ export namespace updateQuoteToken {
|
|
|
3789
3789
|
* ```ts
|
|
3790
3790
|
* import { createClient, http } from 'viem'
|
|
3791
3791
|
* import { tempo } from 'tempo.ts/chains'
|
|
3792
|
-
* import
|
|
3792
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3793
3793
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3794
3794
|
*
|
|
3795
3795
|
* const client = createClient({
|
|
3796
3796
|
* account: privateKeyToAccount('0x...'),
|
|
3797
|
-
* chain: tempo
|
|
3797
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3798
3798
|
* transport: http(),
|
|
3799
3799
|
* })
|
|
3800
3800
|
*
|
|
3801
|
-
* const result = await
|
|
3801
|
+
* const result = await Actions.token.updateQuoteTokenSync(client, {
|
|
3802
3802
|
* token: '0x...',
|
|
3803
3803
|
* })
|
|
3804
3804
|
* ```
|
|
@@ -3858,10 +3858,10 @@ export namespace updateQuoteTokenSync {
|
|
|
3858
3858
|
* ```ts
|
|
3859
3859
|
* import { createClient, http } from 'viem'
|
|
3860
3860
|
* import { tempo } from 'tempo.ts/chains'
|
|
3861
|
-
* import
|
|
3861
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3862
3862
|
*
|
|
3863
3863
|
* const client = createClient({
|
|
3864
|
-
* chain: tempo
|
|
3864
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3865
3865
|
* transport: http(),
|
|
3866
3866
|
* })
|
|
3867
3867
|
*
|
|
@@ -3929,10 +3929,10 @@ export declare namespace watchApprove {
|
|
|
3929
3929
|
* ```ts
|
|
3930
3930
|
* import { createClient, http } from 'viem'
|
|
3931
3931
|
* import { tempo } from 'tempo.ts/chains'
|
|
3932
|
-
* import
|
|
3932
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3933
3933
|
*
|
|
3934
3934
|
* const client = createClient({
|
|
3935
|
-
* chain: tempo
|
|
3935
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3936
3936
|
* transport: http(),
|
|
3937
3937
|
* })
|
|
3938
3938
|
*
|
|
@@ -3997,10 +3997,10 @@ export declare namespace watchBurn {
|
|
|
3997
3997
|
* ```ts
|
|
3998
3998
|
* import { createClient, http } from 'viem'
|
|
3999
3999
|
* import { tempo } from 'tempo.ts/chains'
|
|
4000
|
-
* import
|
|
4000
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4001
4001
|
*
|
|
4002
4002
|
* const client = createClient({
|
|
4003
|
-
* chain: tempo
|
|
4003
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4004
4004
|
* transport: http(),
|
|
4005
4005
|
* })
|
|
4006
4006
|
*
|
|
@@ -4070,10 +4070,10 @@ export declare namespace watchCreate {
|
|
|
4070
4070
|
* ```ts
|
|
4071
4071
|
* import { createClient, http } from 'viem'
|
|
4072
4072
|
* import { tempo } from 'tempo.ts/chains'
|
|
4073
|
-
* import
|
|
4073
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4074
4074
|
*
|
|
4075
4075
|
* const client = createClient({
|
|
4076
|
-
* chain: tempo
|
|
4076
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4077
4077
|
* transport: http(),
|
|
4078
4078
|
* })
|
|
4079
4079
|
*
|
|
@@ -4140,10 +4140,10 @@ export declare namespace watchMint {
|
|
|
4140
4140
|
* ```ts
|
|
4141
4141
|
* import { createClient, http } from 'viem'
|
|
4142
4142
|
* import { tempo } from 'tempo.ts/chains'
|
|
4143
|
-
* import
|
|
4143
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4144
4144
|
*
|
|
4145
4145
|
* const client = createClient({
|
|
4146
|
-
* chain: tempo
|
|
4146
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4147
4147
|
* transport: http(),
|
|
4148
4148
|
* })
|
|
4149
4149
|
*
|
|
@@ -4211,10 +4211,10 @@ export declare namespace watchAdminRole {
|
|
|
4211
4211
|
* ```ts
|
|
4212
4212
|
* import { createClient, http } from 'viem'
|
|
4213
4213
|
* import { tempo } from 'tempo.ts/chains'
|
|
4214
|
-
* import
|
|
4214
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4215
4215
|
*
|
|
4216
4216
|
* const client = createClient({
|
|
4217
|
-
* chain: tempo
|
|
4217
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4218
4218
|
* transport: http(),
|
|
4219
4219
|
* })
|
|
4220
4220
|
*
|
|
@@ -4289,11 +4289,11 @@ export declare namespace watchRole {
|
|
|
4289
4289
|
* ```ts
|
|
4290
4290
|
* import { createClient, http } from 'viem'
|
|
4291
4291
|
* import { tempo } from 'tempo.ts/chains'
|
|
4292
|
-
* import
|
|
4292
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4293
4293
|
*
|
|
4294
4294
|
* const client = createClient({
|
|
4295
4295
|
* account: privateKeyToAccount('0x...'),
|
|
4296
|
-
* chain: tempo
|
|
4296
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4297
4297
|
* transport: http(),
|
|
4298
4298
|
* })
|
|
4299
4299
|
*
|
|
@@ -4361,10 +4361,10 @@ export declare namespace watchTransfer {
|
|
|
4361
4361
|
* ```ts
|
|
4362
4362
|
* import { createClient, http } from 'viem'
|
|
4363
4363
|
* import { tempo } from 'tempo.ts/chains'
|
|
4364
|
-
* import
|
|
4364
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4365
4365
|
*
|
|
4366
4366
|
* const client = createClient({
|
|
4367
|
-
* chain: tempo
|
|
4367
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4368
4368
|
* transport: http(),
|
|
4369
4369
|
* })
|
|
4370
4370
|
*
|