tempo.ts 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chains.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 +13 -13
- package/dist/viem/Actions/fee.js +13 -13
- 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/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 -1
- 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 +13 -13
- 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/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
|
@@ -13,16 +13,16 @@ import type { GetAccountParameter, ReadParameters, WriteParameters } from '../in
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* import { createClient, http } from 'viem'
|
|
15
15
|
* import { tempo } from 'tempo.ts/chains'
|
|
16
|
-
* import
|
|
16
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
17
17
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
18
18
|
*
|
|
19
19
|
* const client = createClient({
|
|
20
20
|
* account: privateKeyToAccount('0x...'),
|
|
21
|
-
* chain: tempo
|
|
21
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
22
22
|
* transport: http(),
|
|
23
23
|
* })
|
|
24
24
|
*
|
|
25
|
-
* const result = await
|
|
25
|
+
* const result = await Actions.token.approve(client, {
|
|
26
26
|
* spender: '0x...',
|
|
27
27
|
* amount: 100n,
|
|
28
28
|
* })
|
|
@@ -59,10 +59,10 @@ export declare namespace approve {
|
|
|
59
59
|
* ```ts
|
|
60
60
|
* import { createClient, http, walletActions } from 'viem'
|
|
61
61
|
* import { tempo } from 'tempo.ts/chains'
|
|
62
|
-
* import
|
|
62
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
63
63
|
*
|
|
64
64
|
* const client = createClient({
|
|
65
|
-
* chain: tempo
|
|
65
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
66
66
|
* transport: http(),
|
|
67
67
|
* }).extend(walletActions)
|
|
68
68
|
*
|
|
@@ -932,16 +932,16 @@ export declare namespace approve {
|
|
|
932
932
|
* ```ts
|
|
933
933
|
* import { createClient, http } from 'viem'
|
|
934
934
|
* import { tempo } from 'tempo.ts/chains'
|
|
935
|
-
* import
|
|
935
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
936
936
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
937
937
|
*
|
|
938
938
|
* const client = createClient({
|
|
939
939
|
* account: privateKeyToAccount('0x...'),
|
|
940
|
-
* chain: tempo
|
|
940
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
941
941
|
* transport: http(),
|
|
942
942
|
* })
|
|
943
943
|
*
|
|
944
|
-
* const result = await
|
|
944
|
+
* const result = await Actions.token.approveSync(client, {
|
|
945
945
|
* spender: '0x...',
|
|
946
946
|
* amount: 100n,
|
|
947
947
|
* })
|
|
@@ -971,16 +971,16 @@ export declare namespace approveSync {
|
|
|
971
971
|
* ```ts
|
|
972
972
|
* import { createClient, http } from 'viem'
|
|
973
973
|
* import { tempo } from 'tempo.ts/chains'
|
|
974
|
-
* import
|
|
974
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
975
975
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
976
976
|
*
|
|
977
977
|
* const client = createClient({
|
|
978
978
|
* account: privateKeyToAccount('0x...'),
|
|
979
|
-
* chain: tempo
|
|
979
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
980
980
|
* transport: http(),
|
|
981
981
|
* })
|
|
982
982
|
*
|
|
983
|
-
* const result = await
|
|
983
|
+
* const result = await Actions.token.burnBlocked(client, {
|
|
984
984
|
* from: '0x...',
|
|
985
985
|
* amount: 100n,
|
|
986
986
|
* token: '0x...',
|
|
@@ -1018,10 +1018,10 @@ export declare namespace burnBlocked {
|
|
|
1018
1018
|
* ```ts
|
|
1019
1019
|
* import { createClient, http, walletActions } from 'viem'
|
|
1020
1020
|
* import { tempo } from 'tempo.ts/chains'
|
|
1021
|
-
* import
|
|
1021
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1022
1022
|
*
|
|
1023
1023
|
* const client = createClient({
|
|
1024
|
-
* chain: tempo
|
|
1024
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1025
1025
|
* transport: http(),
|
|
1026
1026
|
* }).extend(walletActions)
|
|
1027
1027
|
*
|
|
@@ -1895,16 +1895,16 @@ export declare namespace burnBlocked {
|
|
|
1895
1895
|
* ```ts
|
|
1896
1896
|
* import { createClient, http } from 'viem'
|
|
1897
1897
|
* import { tempo } from 'tempo.ts/chains'
|
|
1898
|
-
* import
|
|
1898
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1899
1899
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1900
1900
|
*
|
|
1901
1901
|
* const client = createClient({
|
|
1902
1902
|
* account: privateKeyToAccount('0x...'),
|
|
1903
|
-
* chain: tempo
|
|
1903
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1904
1904
|
* transport: http(),
|
|
1905
1905
|
* })
|
|
1906
1906
|
*
|
|
1907
|
-
* const result = await
|
|
1907
|
+
* const result = await Actions.token.burnBlockedSync(client, {
|
|
1908
1908
|
* from: '0x...',
|
|
1909
1909
|
* amount: 100n,
|
|
1910
1910
|
* token: '0x...',
|
|
@@ -1935,16 +1935,16 @@ export declare namespace burnBlockedSync {
|
|
|
1935
1935
|
* ```ts
|
|
1936
1936
|
* import { createClient, http } from 'viem'
|
|
1937
1937
|
* import { tempo } from 'tempo.ts/chains'
|
|
1938
|
-
* import
|
|
1938
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1939
1939
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
1940
1940
|
*
|
|
1941
1941
|
* const client = createClient({
|
|
1942
1942
|
* account: privateKeyToAccount('0x...'),
|
|
1943
|
-
* chain: tempo
|
|
1943
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1944
1944
|
* transport: http(),
|
|
1945
1945
|
* })
|
|
1946
1946
|
*
|
|
1947
|
-
* const result = await
|
|
1947
|
+
* const result = await Actions.token.burn(client, {
|
|
1948
1948
|
* amount: 100n,
|
|
1949
1949
|
* token: '0x...',
|
|
1950
1950
|
* })
|
|
@@ -1981,10 +1981,10 @@ export declare namespace burn {
|
|
|
1981
1981
|
* ```ts
|
|
1982
1982
|
* import { createClient, http, walletActions } from 'viem'
|
|
1983
1983
|
* import { tempo } from 'tempo.ts/chains'
|
|
1984
|
-
* import
|
|
1984
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
1985
1985
|
*
|
|
1986
1986
|
* const client = createClient({
|
|
1987
|
-
* chain: tempo
|
|
1987
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
1988
1988
|
* transport: http(),
|
|
1989
1989
|
* }).extend(walletActions)
|
|
1990
1990
|
*
|
|
@@ -2866,16 +2866,16 @@ export declare namespace burn {
|
|
|
2866
2866
|
* ```ts
|
|
2867
2867
|
* import { createClient, http } from 'viem'
|
|
2868
2868
|
* import { tempo } from 'tempo.ts/chains'
|
|
2869
|
-
* import
|
|
2869
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2870
2870
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2871
2871
|
*
|
|
2872
2872
|
* const client = createClient({
|
|
2873
2873
|
* account: privateKeyToAccount('0x...'),
|
|
2874
|
-
* chain: tempo
|
|
2874
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2875
2875
|
* transport: http(),
|
|
2876
2876
|
* })
|
|
2877
2877
|
*
|
|
2878
|
-
* const result = await
|
|
2878
|
+
* const result = await Actions.token.burnSync(client, {
|
|
2879
2879
|
* amount: 100n,
|
|
2880
2880
|
* token: '0x...',
|
|
2881
2881
|
* })
|
|
@@ -2904,16 +2904,16 @@ export declare namespace burnSync {
|
|
|
2904
2904
|
* ```ts
|
|
2905
2905
|
* import { createClient, http } from 'viem'
|
|
2906
2906
|
* import { tempo } from 'tempo.ts/chains'
|
|
2907
|
-
* import
|
|
2907
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2908
2908
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
2909
2909
|
*
|
|
2910
2910
|
* const client = createClient({
|
|
2911
2911
|
* account: privateKeyToAccount('0x...'),
|
|
2912
|
-
* chain: tempo
|
|
2912
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2913
2913
|
* transport: http(),
|
|
2914
2914
|
* })
|
|
2915
2915
|
*
|
|
2916
|
-
* const result = await
|
|
2916
|
+
* const result = await Actions.token.changeTransferPolicy(client, {
|
|
2917
2917
|
* token: '0x...',
|
|
2918
2918
|
* policyId: 1n,
|
|
2919
2919
|
* })
|
|
@@ -2948,10 +2948,10 @@ export declare namespace changeTransferPolicy {
|
|
|
2948
2948
|
* ```ts
|
|
2949
2949
|
* import { createClient, http, walletActions } from 'viem'
|
|
2950
2950
|
* import { tempo } from 'tempo.ts/chains'
|
|
2951
|
-
* import
|
|
2951
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
2952
2952
|
*
|
|
2953
2953
|
* const client = createClient({
|
|
2954
|
-
* chain: tempo
|
|
2954
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
2955
2955
|
* transport: http(),
|
|
2956
2956
|
* }).extend(walletActions)
|
|
2957
2957
|
*
|
|
@@ -3821,16 +3821,16 @@ export declare namespace changeTransferPolicy {
|
|
|
3821
3821
|
* ```ts
|
|
3822
3822
|
* import { createClient, http } from 'viem'
|
|
3823
3823
|
* import { tempo } from 'tempo.ts/chains'
|
|
3824
|
-
* import
|
|
3824
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3825
3825
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3826
3826
|
*
|
|
3827
3827
|
* const client = createClient({
|
|
3828
3828
|
* account: privateKeyToAccount('0x...'),
|
|
3829
|
-
* chain: tempo
|
|
3829
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3830
3830
|
* transport: http(),
|
|
3831
3831
|
* })
|
|
3832
3832
|
*
|
|
3833
|
-
* const result = await
|
|
3833
|
+
* const result = await Actions.token.changeTransferPolicySync(client, {
|
|
3834
3834
|
* token: '0x...',
|
|
3835
3835
|
* policyId: 1n,
|
|
3836
3836
|
* })
|
|
@@ -3859,16 +3859,16 @@ export declare namespace changeTransferPolicySync {
|
|
|
3859
3859
|
* ```ts
|
|
3860
3860
|
* import { createClient, http } from 'viem'
|
|
3861
3861
|
* import { tempo } from 'tempo.ts/chains'
|
|
3862
|
-
* import
|
|
3862
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3863
3863
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
3864
3864
|
*
|
|
3865
3865
|
* const client = createClient({
|
|
3866
3866
|
* account: privateKeyToAccount('0x...'),
|
|
3867
|
-
* chain: tempo
|
|
3867
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3868
3868
|
* transport: http(),
|
|
3869
3869
|
* })
|
|
3870
3870
|
*
|
|
3871
|
-
* const result = await
|
|
3871
|
+
* const result = await Actions.token.create(client, {
|
|
3872
3872
|
* name: 'My Token',
|
|
3873
3873
|
* symbol: 'MTK',
|
|
3874
3874
|
* currency: 'USD',
|
|
@@ -3914,10 +3914,10 @@ export declare namespace create {
|
|
|
3914
3914
|
* ```ts
|
|
3915
3915
|
* import { createClient, http, walletActions } from 'viem'
|
|
3916
3916
|
* import { tempo } from 'tempo.ts/chains'
|
|
3917
|
-
* import
|
|
3917
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
3918
3918
|
*
|
|
3919
3919
|
* const client = createClient({
|
|
3920
|
-
* chain: tempo
|
|
3920
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
3921
3921
|
* transport: http(),
|
|
3922
3922
|
* }).extend(walletActions)
|
|
3923
3923
|
*
|
|
@@ -4055,16 +4055,16 @@ export declare namespace create {
|
|
|
4055
4055
|
* ```ts
|
|
4056
4056
|
* import { createClient, http } from 'viem'
|
|
4057
4057
|
* import { tempo } from 'tempo.ts/chains'
|
|
4058
|
-
* import
|
|
4058
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4059
4059
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
4060
4060
|
*
|
|
4061
4061
|
* const client = createClient({
|
|
4062
4062
|
* account: privateKeyToAccount('0x...'),
|
|
4063
|
-
* chain: tempo
|
|
4063
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4064
4064
|
* transport: http(),
|
|
4065
4065
|
* })
|
|
4066
4066
|
*
|
|
4067
|
-
* const result = await
|
|
4067
|
+
* const result = await Actions.token.createSync(client, {
|
|
4068
4068
|
* name: 'My Token',
|
|
4069
4069
|
* symbol: 'MTK',
|
|
4070
4070
|
* currency: 'USD',
|
|
@@ -4095,16 +4095,16 @@ export declare namespace createSync {
|
|
|
4095
4095
|
* ```ts
|
|
4096
4096
|
* import { createClient, http } from 'viem'
|
|
4097
4097
|
* import { tempo } from 'tempo.ts/chains'
|
|
4098
|
-
* import
|
|
4098
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4099
4099
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
4100
4100
|
*
|
|
4101
4101
|
* const client = createClient({
|
|
4102
4102
|
* account: privateKeyToAccount('0x...'),
|
|
4103
|
-
* chain: tempo
|
|
4103
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4104
4104
|
* transport: http(),
|
|
4105
4105
|
* })
|
|
4106
4106
|
*
|
|
4107
|
-
* const allowance = await
|
|
4107
|
+
* const allowance = await Actions.token.getAllowance(client, {
|
|
4108
4108
|
* spender: '0x...',
|
|
4109
4109
|
* })
|
|
4110
4110
|
* ```
|
|
@@ -4165,16 +4165,16 @@ export declare namespace getAllowance {
|
|
|
4165
4165
|
* ```ts
|
|
4166
4166
|
* import { createClient, http } from 'viem'
|
|
4167
4167
|
* import { tempo } from 'tempo.ts/chains'
|
|
4168
|
-
* import
|
|
4168
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4169
4169
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
4170
4170
|
*
|
|
4171
4171
|
* const client = createClient({
|
|
4172
4172
|
* account: privateKeyToAccount('0x...'),
|
|
4173
|
-
* chain: tempo
|
|
4173
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4174
4174
|
* transport: http(),
|
|
4175
4175
|
* })
|
|
4176
4176
|
*
|
|
4177
|
-
* const balance = await
|
|
4177
|
+
* const balance = await Actions.token.getBalance(client, {
|
|
4178
4178
|
* token: '0x...',
|
|
4179
4179
|
* })
|
|
4180
4180
|
* ```
|
|
@@ -4230,16 +4230,16 @@ export declare namespace getBalance {
|
|
|
4230
4230
|
* ```ts
|
|
4231
4231
|
* import { createClient, http } from 'viem'
|
|
4232
4232
|
* import { tempo } from 'tempo.ts/chains'
|
|
4233
|
-
* import
|
|
4233
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4234
4234
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
4235
4235
|
*
|
|
4236
4236
|
* const client = createClient({
|
|
4237
4237
|
* account: privateKeyToAccount('0x...'),
|
|
4238
|
-
* chain: tempo
|
|
4238
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4239
4239
|
* transport: http(),
|
|
4240
4240
|
* })
|
|
4241
4241
|
*
|
|
4242
|
-
* const metadata = await
|
|
4242
|
+
* const metadata = await Actions.token.getMetadata(client, {
|
|
4243
4243
|
* token: '0x...',
|
|
4244
4244
|
* })
|
|
4245
4245
|
* ```
|
|
@@ -4309,14 +4309,14 @@ export declare namespace getMetadata {
|
|
|
4309
4309
|
* ```ts
|
|
4310
4310
|
* import { createClient, http } from 'viem'
|
|
4311
4311
|
* import { tempo } from 'tempo.ts/chains'
|
|
4312
|
-
* import
|
|
4312
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4313
4313
|
*
|
|
4314
4314
|
* const client = createClient({
|
|
4315
|
-
* chain: tempo
|
|
4315
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4316
4316
|
* transport: http(),
|
|
4317
4317
|
* })
|
|
4318
4318
|
*
|
|
4319
|
-
* const adminRole = await
|
|
4319
|
+
* const adminRole = await Actions.token.getRoleAdmin(client, {
|
|
4320
4320
|
* role: 'minter',
|
|
4321
4321
|
* token: '0x...',
|
|
4322
4322
|
* })
|
|
@@ -4373,14 +4373,14 @@ export declare namespace getRoleAdmin {
|
|
|
4373
4373
|
* ```ts
|
|
4374
4374
|
* import { createClient, http } from 'viem'
|
|
4375
4375
|
* import { tempo } from 'tempo.ts/chains'
|
|
4376
|
-
* import
|
|
4376
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4377
4377
|
*
|
|
4378
4378
|
* const client = createClient({
|
|
4379
|
-
* chain: tempo
|
|
4379
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4380
4380
|
* transport: http(),
|
|
4381
4381
|
* })
|
|
4382
4382
|
*
|
|
4383
|
-
* const hasRole = await
|
|
4383
|
+
* const hasRole = await Actions.token.hasRole(client, {
|
|
4384
4384
|
* account: '0x...',
|
|
4385
4385
|
* role: 'issuer',
|
|
4386
4386
|
* token: '0x...',
|
|
@@ -4443,16 +4443,16 @@ export declare namespace hasRole {
|
|
|
4443
4443
|
* ```ts
|
|
4444
4444
|
* import { createClient, http } from 'viem'
|
|
4445
4445
|
* import { tempo } from 'tempo.ts/chains'
|
|
4446
|
-
* import
|
|
4446
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4447
4447
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
4448
4448
|
*
|
|
4449
4449
|
* const client = createClient({
|
|
4450
4450
|
* account: privateKeyToAccount('0x...'),
|
|
4451
|
-
* chain: tempo
|
|
4451
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4452
4452
|
* transport: http(),
|
|
4453
4453
|
* })
|
|
4454
4454
|
*
|
|
4455
|
-
* const result = await
|
|
4455
|
+
* const result = await Actions.token.grantRoles(client, {
|
|
4456
4456
|
* token: '0x...',
|
|
4457
4457
|
* to: '0x...',
|
|
4458
4458
|
* roles: ['issuer'],
|
|
@@ -4493,10 +4493,10 @@ export declare namespace grantRoles {
|
|
|
4493
4493
|
* ```ts
|
|
4494
4494
|
* import { createClient, http, walletActions } from 'viem'
|
|
4495
4495
|
* import { tempo } from 'tempo.ts/chains'
|
|
4496
|
-
* import
|
|
4496
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
4497
4497
|
*
|
|
4498
4498
|
* const client = createClient({
|
|
4499
|
-
* chain: tempo
|
|
4499
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
4500
4500
|
* transport: http(),
|
|
4501
4501
|
* }).extend(walletActions)
|
|
4502
4502
|
*
|
|
@@ -5370,16 +5370,16 @@ export declare namespace grantRoles {
|
|
|
5370
5370
|
* ```ts
|
|
5371
5371
|
* import { createClient, http } from 'viem'
|
|
5372
5372
|
* import { tempo } from 'tempo.ts/chains'
|
|
5373
|
-
* import
|
|
5373
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
5374
5374
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
5375
5375
|
*
|
|
5376
5376
|
* const client = createClient({
|
|
5377
5377
|
* account: privateKeyToAccount('0x...'),
|
|
5378
|
-
* chain: tempo
|
|
5378
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
5379
5379
|
* transport: http(),
|
|
5380
5380
|
* })
|
|
5381
5381
|
*
|
|
5382
|
-
* const result = await
|
|
5382
|
+
* const result = await Actions.token.grantRolesSync(client, {
|
|
5383
5383
|
* token: '0x...',
|
|
5384
5384
|
* to: '0x...',
|
|
5385
5385
|
* roles: ['minter'],
|
|
@@ -5410,16 +5410,16 @@ export declare namespace grantRolesSync {
|
|
|
5410
5410
|
* ```ts
|
|
5411
5411
|
* import { createClient, http } from 'viem'
|
|
5412
5412
|
* import { tempo } from 'tempo.ts/chains'
|
|
5413
|
-
* import
|
|
5413
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
5414
5414
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
5415
5415
|
*
|
|
5416
5416
|
* const client = createClient({
|
|
5417
5417
|
* account: privateKeyToAccount('0x...'),
|
|
5418
|
-
* chain: tempo
|
|
5418
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
5419
5419
|
* transport: http(),
|
|
5420
5420
|
* })
|
|
5421
5421
|
*
|
|
5422
|
-
* const result = await
|
|
5422
|
+
* const result = await Actions.token.mint(client, {
|
|
5423
5423
|
* to: '0x...',
|
|
5424
5424
|
* amount: 100n,
|
|
5425
5425
|
* token: '0x...',
|
|
@@ -5459,10 +5459,10 @@ export declare namespace mint {
|
|
|
5459
5459
|
* ```ts
|
|
5460
5460
|
* import { createClient, http, walletActions } from 'viem'
|
|
5461
5461
|
* import { tempo } from 'tempo.ts/chains'
|
|
5462
|
-
* import
|
|
5462
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
5463
5463
|
*
|
|
5464
5464
|
* const client = createClient({
|
|
5465
|
-
* chain: tempo
|
|
5465
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
5466
5466
|
* transport: http(),
|
|
5467
5467
|
* }).extend(walletActions)
|
|
5468
5468
|
*
|
|
@@ -6351,16 +6351,16 @@ export declare namespace mint {
|
|
|
6351
6351
|
* ```ts
|
|
6352
6352
|
* import { createClient, http } from 'viem'
|
|
6353
6353
|
* import { tempo } from 'tempo.ts/chains'
|
|
6354
|
-
* import
|
|
6354
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
6355
6355
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
6356
6356
|
*
|
|
6357
6357
|
* const client = createClient({
|
|
6358
6358
|
* account: privateKeyToAccount('0x...'),
|
|
6359
|
-
* chain: tempo
|
|
6359
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
6360
6360
|
* transport: http(),
|
|
6361
6361
|
* })
|
|
6362
6362
|
*
|
|
6363
|
-
* const result = await
|
|
6363
|
+
* const result = await Actions.token.mintSync(client, {
|
|
6364
6364
|
* to: '0x...',
|
|
6365
6365
|
* amount: 100n,
|
|
6366
6366
|
* token: '0x...',
|
|
@@ -6390,16 +6390,16 @@ export declare namespace mintSync {
|
|
|
6390
6390
|
* ```ts
|
|
6391
6391
|
* import { createClient, http } from 'viem'
|
|
6392
6392
|
* import { tempo } from 'tempo.ts/chains'
|
|
6393
|
-
* import
|
|
6393
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
6394
6394
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
6395
6395
|
*
|
|
6396
6396
|
* const client = createClient({
|
|
6397
6397
|
* account: privateKeyToAccount('0x...'),
|
|
6398
|
-
* chain: tempo
|
|
6398
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
6399
6399
|
* transport: http(),
|
|
6400
6400
|
* })
|
|
6401
6401
|
*
|
|
6402
|
-
* const result = await
|
|
6402
|
+
* const result = await Actions.token.pause(client, {
|
|
6403
6403
|
* token: '0x...',
|
|
6404
6404
|
* })
|
|
6405
6405
|
* ```
|
|
@@ -6431,10 +6431,10 @@ export declare namespace pause {
|
|
|
6431
6431
|
* ```ts
|
|
6432
6432
|
* import { createClient, http, walletActions } from 'viem'
|
|
6433
6433
|
* import { tempo } from 'tempo.ts/chains'
|
|
6434
|
-
* import
|
|
6434
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
6435
6435
|
*
|
|
6436
6436
|
* const client = createClient({
|
|
6437
|
-
* chain: tempo
|
|
6437
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
6438
6438
|
* transport: http(),
|
|
6439
6439
|
* }).extend(walletActions)
|
|
6440
6440
|
*
|
|
@@ -7298,16 +7298,16 @@ export declare namespace pause {
|
|
|
7298
7298
|
* ```ts
|
|
7299
7299
|
* import { createClient, http } from 'viem'
|
|
7300
7300
|
* import { tempo } from 'tempo.ts/chains'
|
|
7301
|
-
* import
|
|
7301
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
7302
7302
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
7303
7303
|
*
|
|
7304
7304
|
* const client = createClient({
|
|
7305
7305
|
* account: privateKeyToAccount('0x...'),
|
|
7306
|
-
* chain: tempo
|
|
7306
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
7307
7307
|
* transport: http(),
|
|
7308
7308
|
* })
|
|
7309
7309
|
*
|
|
7310
|
-
* const result = await
|
|
7310
|
+
* const result = await Actions.token.pauseSync(client, {
|
|
7311
7311
|
* token: '0x...',
|
|
7312
7312
|
* })
|
|
7313
7313
|
* ```
|
|
@@ -7335,16 +7335,16 @@ export declare namespace pauseSync {
|
|
|
7335
7335
|
* ```ts
|
|
7336
7336
|
* import { createClient, http } from 'viem'
|
|
7337
7337
|
* import { tempo } from 'tempo.ts/chains'
|
|
7338
|
-
* import
|
|
7338
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
7339
7339
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
7340
7340
|
*
|
|
7341
7341
|
* const client = createClient({
|
|
7342
7342
|
* account: privateKeyToAccount('0x...'),
|
|
7343
|
-
* chain: tempo
|
|
7343
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
7344
7344
|
* transport: http(),
|
|
7345
7345
|
* })
|
|
7346
7346
|
*
|
|
7347
|
-
* const result = await
|
|
7347
|
+
* const result = await Actions.token.renounceRoles(client, {
|
|
7348
7348
|
* token: '0x...',
|
|
7349
7349
|
* roles: ['minter'],
|
|
7350
7350
|
* })
|
|
@@ -7382,10 +7382,10 @@ export declare namespace renounceRoles {
|
|
|
7382
7382
|
* ```ts
|
|
7383
7383
|
* import { createClient, http, walletActions } from 'viem'
|
|
7384
7384
|
* import { tempo } from 'tempo.ts/chains'
|
|
7385
|
-
* import
|
|
7385
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
7386
7386
|
*
|
|
7387
7387
|
* const client = createClient({
|
|
7388
|
-
* chain: tempo
|
|
7388
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
7389
7389
|
* transport: http(),
|
|
7390
7390
|
* }).extend(walletActions)
|
|
7391
7391
|
*
|
|
@@ -8255,16 +8255,16 @@ export declare namespace renounceRoles {
|
|
|
8255
8255
|
* ```ts
|
|
8256
8256
|
* import { createClient, http } from 'viem'
|
|
8257
8257
|
* import { tempo } from 'tempo.ts/chains'
|
|
8258
|
-
* import
|
|
8258
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
8259
8259
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
8260
8260
|
*
|
|
8261
8261
|
* const client = createClient({
|
|
8262
8262
|
* account: privateKeyToAccount('0x...'),
|
|
8263
|
-
* chain: tempo
|
|
8263
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
8264
8264
|
* transport: http(),
|
|
8265
8265
|
* })
|
|
8266
8266
|
*
|
|
8267
|
-
* const result = await
|
|
8267
|
+
* const result = await Actions.token.renounceRolesSync(client, {
|
|
8268
8268
|
* token: '0x...',
|
|
8269
8269
|
* roles: ['minter'],
|
|
8270
8270
|
* })
|
|
@@ -8294,16 +8294,16 @@ export declare namespace renounceRolesSync {
|
|
|
8294
8294
|
* ```ts
|
|
8295
8295
|
* import { createClient, http } from 'viem'
|
|
8296
8296
|
* import { tempo } from 'tempo.ts/chains'
|
|
8297
|
-
* import
|
|
8297
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
8298
8298
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
8299
8299
|
*
|
|
8300
8300
|
* const client = createClient({
|
|
8301
8301
|
* account: privateKeyToAccount('0x...'),
|
|
8302
|
-
* chain: tempo
|
|
8302
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
8303
8303
|
* transport: http(),
|
|
8304
8304
|
* })
|
|
8305
8305
|
*
|
|
8306
|
-
* const result = await
|
|
8306
|
+
* const result = await Actions.token.revokeRoles(client, {
|
|
8307
8307
|
* token: '0x...',
|
|
8308
8308
|
* from: '0x...',
|
|
8309
8309
|
* roles: ['minter'],
|
|
@@ -8344,10 +8344,10 @@ export declare namespace revokeRoles {
|
|
|
8344
8344
|
* ```ts
|
|
8345
8345
|
* import { createClient, http, walletActions } from 'viem'
|
|
8346
8346
|
* import { tempo } from 'tempo.ts/chains'
|
|
8347
|
-
* import
|
|
8347
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
8348
8348
|
*
|
|
8349
8349
|
* const client = createClient({
|
|
8350
|
-
* chain: tempo
|
|
8350
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
8351
8351
|
* transport: http(),
|
|
8352
8352
|
* }).extend(walletActions)
|
|
8353
8353
|
*
|
|
@@ -9221,16 +9221,16 @@ export declare namespace revokeRoles {
|
|
|
9221
9221
|
* ```ts
|
|
9222
9222
|
* import { createClient, http } from 'viem'
|
|
9223
9223
|
* import { tempo } from 'tempo.ts/chains'
|
|
9224
|
-
* import
|
|
9224
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
9225
9225
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
9226
9226
|
*
|
|
9227
9227
|
* const client = createClient({
|
|
9228
9228
|
* account: privateKeyToAccount('0x...'),
|
|
9229
|
-
* chain: tempo
|
|
9229
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
9230
9230
|
* transport: http(),
|
|
9231
9231
|
* })
|
|
9232
9232
|
*
|
|
9233
|
-
* const result = await
|
|
9233
|
+
* const result = await Actions.token.revokeRolesSync(client, {
|
|
9234
9234
|
* token: '0x...',
|
|
9235
9235
|
* from: '0x...',
|
|
9236
9236
|
* roles: ['minter'],
|
|
@@ -9261,16 +9261,16 @@ export declare namespace revokeRolesSync {
|
|
|
9261
9261
|
* ```ts
|
|
9262
9262
|
* import { createClient, http } from 'viem'
|
|
9263
9263
|
* import { tempo } from 'tempo.ts/chains'
|
|
9264
|
-
* import
|
|
9264
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
9265
9265
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
9266
9266
|
*
|
|
9267
9267
|
* const client = createClient({
|
|
9268
9268
|
* account: privateKeyToAccount('0x...'),
|
|
9269
|
-
* chain: tempo
|
|
9269
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
9270
9270
|
* transport: http(),
|
|
9271
9271
|
* })
|
|
9272
9272
|
*
|
|
9273
|
-
* const result = await
|
|
9273
|
+
* const result = await Actions.token.setSupplyCap(client, {
|
|
9274
9274
|
* token: '0x...',
|
|
9275
9275
|
* supplyCap: 1000000n,
|
|
9276
9276
|
* })
|
|
@@ -9305,10 +9305,10 @@ export declare namespace setSupplyCap {
|
|
|
9305
9305
|
* ```ts
|
|
9306
9306
|
* import { createClient, http, walletActions } from 'viem'
|
|
9307
9307
|
* import { tempo } from 'tempo.ts/chains'
|
|
9308
|
-
* import
|
|
9308
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
9309
9309
|
*
|
|
9310
9310
|
* const client = createClient({
|
|
9311
|
-
* chain: tempo
|
|
9311
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
9312
9312
|
* transport: http(),
|
|
9313
9313
|
* }).extend(walletActions)
|
|
9314
9314
|
*
|
|
@@ -10178,16 +10178,16 @@ export declare namespace setSupplyCap {
|
|
|
10178
10178
|
* ```ts
|
|
10179
10179
|
* import { createClient, http } from 'viem'
|
|
10180
10180
|
* import { tempo } from 'tempo.ts/chains'
|
|
10181
|
-
* import
|
|
10181
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
10182
10182
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
10183
10183
|
*
|
|
10184
10184
|
* const client = createClient({
|
|
10185
10185
|
* account: privateKeyToAccount('0x...'),
|
|
10186
|
-
* chain: tempo
|
|
10186
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
10187
10187
|
* transport: http(),
|
|
10188
10188
|
* })
|
|
10189
10189
|
*
|
|
10190
|
-
* const result = await
|
|
10190
|
+
* const result = await Actions.token.setSupplyCapSync(client, {
|
|
10191
10191
|
* token: '0x...',
|
|
10192
10192
|
* supplyCap: 1000000n,
|
|
10193
10193
|
* })
|
|
@@ -10216,16 +10216,16 @@ export declare namespace setSupplyCapSync {
|
|
|
10216
10216
|
* ```ts
|
|
10217
10217
|
* import { createClient, http } from 'viem'
|
|
10218
10218
|
* import { tempo } from 'tempo.ts/chains'
|
|
10219
|
-
* import
|
|
10219
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
10220
10220
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
10221
10221
|
*
|
|
10222
10222
|
* const client = createClient({
|
|
10223
10223
|
* account: privateKeyToAccount('0x...'),
|
|
10224
|
-
* chain: tempo
|
|
10224
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
10225
10225
|
* transport: http(),
|
|
10226
10226
|
* })
|
|
10227
10227
|
*
|
|
10228
|
-
* const result = await
|
|
10228
|
+
* const result = await Actions.token.setRoleAdmin(client, {
|
|
10229
10229
|
* token: '0x...',
|
|
10230
10230
|
* role: 'minter',
|
|
10231
10231
|
* adminRole: 'admin',
|
|
@@ -10263,10 +10263,10 @@ export declare namespace setRoleAdmin {
|
|
|
10263
10263
|
* ```ts
|
|
10264
10264
|
* import { createClient, http, walletActions } from 'viem'
|
|
10265
10265
|
* import { tempo } from 'tempo.ts/chains'
|
|
10266
|
-
* import
|
|
10266
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
10267
10267
|
*
|
|
10268
10268
|
* const client = createClient({
|
|
10269
|
-
* chain: tempo
|
|
10269
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
10270
10270
|
* transport: http(),
|
|
10271
10271
|
* }).extend(walletActions)
|
|
10272
10272
|
*
|
|
@@ -11140,16 +11140,16 @@ export declare namespace setRoleAdmin {
|
|
|
11140
11140
|
* ```ts
|
|
11141
11141
|
* import { createClient, http } from 'viem'
|
|
11142
11142
|
* import { tempo } from 'tempo.ts/chains'
|
|
11143
|
-
* import
|
|
11143
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
11144
11144
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
11145
11145
|
*
|
|
11146
11146
|
* const client = createClient({
|
|
11147
11147
|
* account: privateKeyToAccount('0x...'),
|
|
11148
|
-
* chain: tempo
|
|
11148
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
11149
11149
|
* transport: http(),
|
|
11150
11150
|
* })
|
|
11151
11151
|
*
|
|
11152
|
-
* const result = await
|
|
11152
|
+
* const result = await Actions.token.setRoleAdminSync(client, {
|
|
11153
11153
|
* token: '0x...',
|
|
11154
11154
|
* role: 'minter',
|
|
11155
11155
|
* adminRole: 'admin',
|
|
@@ -11179,16 +11179,16 @@ export declare namespace setRoleAdminSync {
|
|
|
11179
11179
|
* ```ts
|
|
11180
11180
|
* import { createClient, http } from 'viem'
|
|
11181
11181
|
* import { tempo } from 'tempo.ts/chains'
|
|
11182
|
-
* import
|
|
11182
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
11183
11183
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
11184
11184
|
*
|
|
11185
11185
|
* const client = createClient({
|
|
11186
11186
|
* account: privateKeyToAccount('0x...'),
|
|
11187
|
-
* chain: tempo
|
|
11187
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
11188
11188
|
* transport: http(),
|
|
11189
11189
|
* })
|
|
11190
11190
|
*
|
|
11191
|
-
* const result = await
|
|
11191
|
+
* const result = await Actions.token.transfer(client, {
|
|
11192
11192
|
* to: '0x...',
|
|
11193
11193
|
* amount: 100n,
|
|
11194
11194
|
* })
|
|
@@ -11229,10 +11229,10 @@ export declare namespace transfer {
|
|
|
11229
11229
|
* ```ts
|
|
11230
11230
|
* import { createClient, http, walletActions } from 'viem'
|
|
11231
11231
|
* import { tempo } from 'tempo.ts/chains'
|
|
11232
|
-
* import
|
|
11232
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
11233
11233
|
*
|
|
11234
11234
|
* const client = createClient({
|
|
11235
|
-
* chain: tempo
|
|
11235
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
11236
11236
|
* transport: http(),
|
|
11237
11237
|
* }).extend(walletActions)
|
|
11238
11238
|
*
|
|
@@ -12160,16 +12160,16 @@ export declare namespace transfer {
|
|
|
12160
12160
|
* ```ts
|
|
12161
12161
|
* import { createClient, http } from 'viem'
|
|
12162
12162
|
* import { tempo } from 'tempo.ts/chains'
|
|
12163
|
-
* import
|
|
12163
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
12164
12164
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
12165
12165
|
*
|
|
12166
12166
|
* const client = createClient({
|
|
12167
12167
|
* account: privateKeyToAccount('0x...'),
|
|
12168
|
-
* chain: tempo
|
|
12168
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
12169
12169
|
* transport: http(),
|
|
12170
12170
|
* })
|
|
12171
12171
|
*
|
|
12172
|
-
* const result = await
|
|
12172
|
+
* const result = await Actions.token.transferSync(client, {
|
|
12173
12173
|
* to: '0x...',
|
|
12174
12174
|
* amount: 100n,
|
|
12175
12175
|
* })
|
|
@@ -12198,16 +12198,16 @@ export declare namespace transferSync {
|
|
|
12198
12198
|
* ```ts
|
|
12199
12199
|
* import { createClient, http } from 'viem'
|
|
12200
12200
|
* import { tempo } from 'tempo.ts/chains'
|
|
12201
|
-
* import
|
|
12201
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
12202
12202
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
12203
12203
|
*
|
|
12204
12204
|
* const client = createClient({
|
|
12205
12205
|
* account: privateKeyToAccount('0x...'),
|
|
12206
|
-
* chain: tempo
|
|
12206
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
12207
12207
|
* transport: http(),
|
|
12208
12208
|
* })
|
|
12209
12209
|
*
|
|
12210
|
-
* const result = await
|
|
12210
|
+
* const result = await Actions.token.unpause(client, {
|
|
12211
12211
|
* token: '0x...',
|
|
12212
12212
|
* })
|
|
12213
12213
|
* ```
|
|
@@ -12239,10 +12239,10 @@ export declare namespace unpause {
|
|
|
12239
12239
|
* ```ts
|
|
12240
12240
|
* import { createClient, http, walletActions } from 'viem'
|
|
12241
12241
|
* import { tempo } from 'tempo.ts/chains'
|
|
12242
|
-
* import
|
|
12242
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
12243
12243
|
*
|
|
12244
12244
|
* const client = createClient({
|
|
12245
|
-
* chain: tempo
|
|
12245
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
12246
12246
|
* transport: http(),
|
|
12247
12247
|
* }).extend(walletActions)
|
|
12248
12248
|
*
|
|
@@ -13106,16 +13106,16 @@ export declare namespace unpause {
|
|
|
13106
13106
|
* ```ts
|
|
13107
13107
|
* import { createClient, http } from 'viem'
|
|
13108
13108
|
* import { tempo } from 'tempo.ts/chains'
|
|
13109
|
-
* import
|
|
13109
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
13110
13110
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
13111
13111
|
*
|
|
13112
13112
|
* const client = createClient({
|
|
13113
13113
|
* account: privateKeyToAccount('0x...'),
|
|
13114
|
-
* chain: tempo
|
|
13114
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
13115
13115
|
* transport: http(),
|
|
13116
13116
|
* })
|
|
13117
13117
|
*
|
|
13118
|
-
* const result = await
|
|
13118
|
+
* const result = await Actions.token.unpauseSync(client, {
|
|
13119
13119
|
* token: '0x...',
|
|
13120
13120
|
* })
|
|
13121
13121
|
* ```
|
|
@@ -13143,16 +13143,16 @@ export declare namespace unpauseSync {
|
|
|
13143
13143
|
* ```ts
|
|
13144
13144
|
* import { createClient, http } from 'viem'
|
|
13145
13145
|
* import { tempo } from 'tempo.ts/chains'
|
|
13146
|
-
* import
|
|
13146
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
13147
13147
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
13148
13148
|
*
|
|
13149
13149
|
* const client = createClient({
|
|
13150
13150
|
* account: privateKeyToAccount('0x...'),
|
|
13151
|
-
* chain: tempo
|
|
13151
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
13152
13152
|
* transport: http(),
|
|
13153
13153
|
* })
|
|
13154
13154
|
*
|
|
13155
|
-
* const result = await
|
|
13155
|
+
* const result = await Actions.token.prepareUpdateQuoteToken(client, {
|
|
13156
13156
|
* token: '0x...',
|
|
13157
13157
|
* quoteToken: '0x...',
|
|
13158
13158
|
* })
|
|
@@ -13187,10 +13187,10 @@ export declare namespace prepareUpdateQuoteToken {
|
|
|
13187
13187
|
* ```ts
|
|
13188
13188
|
* import { createClient, http, walletActions } from 'viem'
|
|
13189
13189
|
* import { tempo } from 'tempo.ts/chains'
|
|
13190
|
-
* import
|
|
13190
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
13191
13191
|
*
|
|
13192
13192
|
* const client = createClient({
|
|
13193
|
-
* chain: tempo
|
|
13193
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
13194
13194
|
* transport: http(),
|
|
13195
13195
|
* }).extend(walletActions)
|
|
13196
13196
|
*
|
|
@@ -14060,16 +14060,16 @@ export declare namespace prepareUpdateQuoteToken {
|
|
|
14060
14060
|
* ```ts
|
|
14061
14061
|
* import { createClient, http } from 'viem'
|
|
14062
14062
|
* import { tempo } from 'tempo.ts/chains'
|
|
14063
|
-
* import
|
|
14063
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
14064
14064
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
14065
14065
|
*
|
|
14066
14066
|
* const client = createClient({
|
|
14067
14067
|
* account: privateKeyToAccount('0x...'),
|
|
14068
|
-
* chain: tempo
|
|
14068
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
14069
14069
|
* transport: http(),
|
|
14070
14070
|
* })
|
|
14071
14071
|
*
|
|
14072
|
-
* const result = await
|
|
14072
|
+
* const result = await Actions.token.prepareUpdateQuoteTokenSync(client, {
|
|
14073
14073
|
* token: '0x...',
|
|
14074
14074
|
* quoteToken: '0x...',
|
|
14075
14075
|
* })
|
|
@@ -14098,16 +14098,16 @@ export declare namespace prepareUpdateQuoteTokenSync {
|
|
|
14098
14098
|
* ```ts
|
|
14099
14099
|
* import { createClient, http } from 'viem'
|
|
14100
14100
|
* import { tempo } from 'tempo.ts/chains'
|
|
14101
|
-
* import
|
|
14101
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
14102
14102
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
14103
14103
|
*
|
|
14104
14104
|
* const client = createClient({
|
|
14105
14105
|
* account: privateKeyToAccount('0x...'),
|
|
14106
|
-
* chain: tempo
|
|
14106
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
14107
14107
|
* transport: http(),
|
|
14108
14108
|
* })
|
|
14109
14109
|
*
|
|
14110
|
-
* const result = await
|
|
14110
|
+
* const result = await Actions.token.updateQuoteToken(client, {
|
|
14111
14111
|
* token: '0x...',
|
|
14112
14112
|
* })
|
|
14113
14113
|
* ```
|
|
@@ -14139,10 +14139,10 @@ export declare namespace updateQuoteToken {
|
|
|
14139
14139
|
* ```ts
|
|
14140
14140
|
* import { createClient, http, walletActions } from 'viem'
|
|
14141
14141
|
* import { tempo } from 'tempo.ts/chains'
|
|
14142
|
-
* import
|
|
14142
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
14143
14143
|
*
|
|
14144
14144
|
* const client = createClient({
|
|
14145
|
-
* chain: tempo
|
|
14145
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
14146
14146
|
* transport: http(),
|
|
14147
14147
|
* }).extend(walletActions)
|
|
14148
14148
|
*
|
|
@@ -15006,16 +15006,16 @@ export declare namespace updateQuoteToken {
|
|
|
15006
15006
|
* ```ts
|
|
15007
15007
|
* import { createClient, http } from 'viem'
|
|
15008
15008
|
* import { tempo } from 'tempo.ts/chains'
|
|
15009
|
-
* import
|
|
15009
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15010
15010
|
* import { privateKeyToAccount } from 'viem/accounts'
|
|
15011
15011
|
*
|
|
15012
15012
|
* const client = createClient({
|
|
15013
15013
|
* account: privateKeyToAccount('0x...'),
|
|
15014
|
-
* chain: tempo
|
|
15014
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15015
15015
|
* transport: http(),
|
|
15016
15016
|
* })
|
|
15017
15017
|
*
|
|
15018
|
-
* const result = await
|
|
15018
|
+
* const result = await Actions.token.updateQuoteTokenSync(client, {
|
|
15019
15019
|
* token: '0x...',
|
|
15020
15020
|
* })
|
|
15021
15021
|
* ```
|
|
@@ -15043,10 +15043,10 @@ export declare namespace updateQuoteTokenSync {
|
|
|
15043
15043
|
* ```ts
|
|
15044
15044
|
* import { createClient, http } from 'viem'
|
|
15045
15045
|
* import { tempo } from 'tempo.ts/chains'
|
|
15046
|
-
* import
|
|
15046
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15047
15047
|
*
|
|
15048
15048
|
* const client = createClient({
|
|
15049
|
-
* chain: tempo
|
|
15049
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15050
15050
|
* transport: http(),
|
|
15051
15051
|
* })
|
|
15052
15052
|
*
|
|
@@ -15082,10 +15082,10 @@ export declare namespace watchApprove {
|
|
|
15082
15082
|
* ```ts
|
|
15083
15083
|
* import { createClient, http } from 'viem'
|
|
15084
15084
|
* import { tempo } from 'tempo.ts/chains'
|
|
15085
|
-
* import
|
|
15085
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15086
15086
|
*
|
|
15087
15087
|
* const client = createClient({
|
|
15088
|
-
* chain: tempo
|
|
15088
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15089
15089
|
* transport: http(),
|
|
15090
15090
|
* })
|
|
15091
15091
|
*
|
|
@@ -15121,10 +15121,10 @@ export declare namespace watchBurn {
|
|
|
15121
15121
|
* ```ts
|
|
15122
15122
|
* import { createClient, http } from 'viem'
|
|
15123
15123
|
* import { tempo } from 'tempo.ts/chains'
|
|
15124
|
-
* import
|
|
15124
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15125
15125
|
*
|
|
15126
15126
|
* const client = createClient({
|
|
15127
|
-
* chain: tempo
|
|
15127
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15128
15128
|
* transport: http(),
|
|
15129
15129
|
* })
|
|
15130
15130
|
*
|
|
@@ -15158,10 +15158,10 @@ export declare namespace watchCreate {
|
|
|
15158
15158
|
* ```ts
|
|
15159
15159
|
* import { createClient, http } from 'viem'
|
|
15160
15160
|
* import { tempo } from 'tempo.ts/chains'
|
|
15161
|
-
* import
|
|
15161
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15162
15162
|
*
|
|
15163
15163
|
* const client = createClient({
|
|
15164
|
-
* chain: tempo
|
|
15164
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15165
15165
|
* transport: http(),
|
|
15166
15166
|
* })
|
|
15167
15167
|
*
|
|
@@ -15198,10 +15198,10 @@ export declare namespace watchMint {
|
|
|
15198
15198
|
* ```ts
|
|
15199
15199
|
* import { createClient, http } from 'viem'
|
|
15200
15200
|
* import { tempo } from 'tempo.ts/chains'
|
|
15201
|
-
* import
|
|
15201
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15202
15202
|
*
|
|
15203
15203
|
* const client = createClient({
|
|
15204
|
-
* chain: tempo
|
|
15204
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15205
15205
|
* transport: http(),
|
|
15206
15206
|
* })
|
|
15207
15207
|
*
|
|
@@ -15237,10 +15237,10 @@ export declare namespace watchAdminRole {
|
|
|
15237
15237
|
* ```ts
|
|
15238
15238
|
* import { createClient, http } from 'viem'
|
|
15239
15239
|
* import { tempo } from 'tempo.ts/chains'
|
|
15240
|
-
* import
|
|
15240
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15241
15241
|
*
|
|
15242
15242
|
* const client = createClient({
|
|
15243
|
-
* chain: tempo
|
|
15243
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15244
15244
|
* transport: http(),
|
|
15245
15245
|
* })
|
|
15246
15246
|
*
|
|
@@ -15279,11 +15279,11 @@ export declare namespace watchRole {
|
|
|
15279
15279
|
* ```ts
|
|
15280
15280
|
* import { createClient, http } from 'viem'
|
|
15281
15281
|
* import { tempo } from 'tempo.ts/chains'
|
|
15282
|
-
* import
|
|
15282
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15283
15283
|
*
|
|
15284
15284
|
* const client = createClient({
|
|
15285
15285
|
* account: privateKeyToAccount('0x...'),
|
|
15286
|
-
* chain: tempo
|
|
15286
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15287
15287
|
* transport: http(),
|
|
15288
15288
|
* })
|
|
15289
15289
|
*
|
|
@@ -15319,10 +15319,10 @@ export declare namespace watchTransfer {
|
|
|
15319
15319
|
* ```ts
|
|
15320
15320
|
* import { createClient, http } from 'viem'
|
|
15321
15321
|
* import { tempo } from 'tempo.ts/chains'
|
|
15322
|
-
* import
|
|
15322
|
+
* import { Actions } from 'tempo.ts/viem'
|
|
15323
15323
|
*
|
|
15324
15324
|
* const client = createClient({
|
|
15325
|
-
* chain: tempo
|
|
15325
|
+
* chain: tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })
|
|
15326
15326
|
* transport: http(),
|
|
15327
15327
|
* })
|
|
15328
15328
|
*
|