tempo.ts 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -4
- package/README.md +3 -34
- package/dist/server/Handler.d.ts +14 -14
- package/dist/server/Handler.d.ts.map +1 -1
- package/dist/server/Handler.js +16 -17
- package/dist/server/Handler.js.map +1 -1
- package/dist/wagmi/Actions/amm.d.ts +51 -51
- package/dist/wagmi/Actions/amm.d.ts.map +1 -1
- package/dist/wagmi/Actions/amm.js +37 -37
- package/dist/wagmi/Actions/amm.js.map +1 -1
- package/dist/wagmi/Actions/dex.d.ts +129 -129
- package/dist/wagmi/Actions/dex.d.ts.map +1 -1
- package/dist/wagmi/Actions/dex.js +73 -73
- package/dist/wagmi/Actions/dex.js.map +1 -1
- package/dist/wagmi/Actions/faucet.d.ts +9 -9
- package/dist/wagmi/Actions/faucet.d.ts.map +1 -1
- package/dist/wagmi/Actions/faucet.js +7 -7
- package/dist/wagmi/Actions/faucet.js.map +1 -1
- package/dist/wagmi/Actions/fee.d.ts +17 -17
- package/dist/wagmi/Actions/fee.d.ts.map +1 -1
- package/dist/wagmi/Actions/fee.js +10 -10
- package/dist/wagmi/Actions/fee.js.map +1 -1
- package/dist/wagmi/Actions/nonce.d.ts +9 -79
- package/dist/wagmi/Actions/nonce.d.ts.map +1 -1
- package/dist/wagmi/Actions/nonce.js +7 -89
- package/dist/wagmi/Actions/nonce.js.map +1 -1
- package/dist/wagmi/Actions/policy.d.ts +69 -70
- package/dist/wagmi/Actions/policy.d.ts.map +1 -1
- package/dist/wagmi/Actions/policy.js +43 -43
- package/dist/wagmi/Actions/policy.js.map +1 -1
- package/dist/wagmi/Actions/reward.d.ts +51 -51
- package/dist/wagmi/Actions/reward.d.ts.map +1 -1
- package/dist/wagmi/Actions/reward.js +31 -31
- package/dist/wagmi/Actions/reward.js.map +1 -1
- package/dist/wagmi/Actions/token.d.ts +238 -238
- package/dist/wagmi/Actions/token.d.ts.map +1 -1
- package/dist/wagmi/Actions/token.js +136 -136
- package/dist/wagmi/Actions/token.js.map +1 -1
- package/dist/wagmi/Connector.d.ts +2 -1
- package/dist/wagmi/Connector.d.ts.map +1 -1
- package/dist/wagmi/Connector.js +83 -22
- package/dist/wagmi/Connector.js.map +1 -1
- package/dist/wagmi/Hooks/nonce.d.ts +1 -52
- package/dist/wagmi/Hooks/nonce.d.ts.map +1 -1
- package/dist/wagmi/Hooks/nonce.js +1 -70
- package/dist/wagmi/Hooks/nonce.js.map +1 -1
- package/dist/wagmi/Hooks/policy.d.ts +0 -1
- package/dist/wagmi/Hooks/policy.d.ts.map +1 -1
- package/dist/wagmi/Hooks/policy.js.map +1 -1
- package/dist/wagmi/KeyManager.d.ts +6 -3
- package/dist/wagmi/KeyManager.d.ts.map +1 -1
- package/dist/wagmi/KeyManager.js +9 -4
- package/dist/wagmi/KeyManager.js.map +1 -1
- package/package.json +2 -12
- package/src/server/Handler.test.ts +2 -2
- package/src/server/Handler.ts +16 -17
- package/src/wagmi/Actions/amm.ts +63 -63
- package/src/wagmi/Actions/dex.test.ts +1 -1
- package/src/wagmi/Actions/dex.ts +153 -153
- package/src/wagmi/Actions/faucet.ts +11 -11
- package/src/wagmi/Actions/fee.ts +20 -20
- package/src/wagmi/Actions/nonce.test.ts +1 -64
- package/src/wagmi/Actions/nonce.ts +10 -142
- package/src/wagmi/Actions/policy.ts +83 -85
- package/src/wagmi/Actions/reward.ts +64 -61
- package/src/wagmi/Actions/token.ts +287 -283
- package/src/wagmi/Connector.ts +105 -31
- package/src/wagmi/Hooks/dex.test.ts +1 -1
- package/src/wagmi/Hooks/fee.test.ts +0 -6
- package/src/wagmi/Hooks/nonce.test.ts +1 -66
- package/src/wagmi/Hooks/nonce.ts +1 -114
- package/src/wagmi/Hooks/policy.ts +0 -2
- package/src/wagmi/KeyManager.ts +18 -5
- package/dist/chains.d.ts +0 -73
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -51
- package/dist/chains.js.map +0 -1
- package/dist/viem/Abis.d.ts +0 -2649
- package/dist/viem/Abis.d.ts.map +0 -1
- package/dist/viem/Abis.js +0 -1677
- package/dist/viem/Abis.js.map +0 -1
- package/dist/viem/Account.d.ts +0 -244
- package/dist/viem/Account.d.ts.map +0 -1
- package/dist/viem/Account.js +0 -382
- package/dist/viem/Account.js.map +0 -1
- package/dist/viem/Actions/account.d.ts +0 -40
- package/dist/viem/Actions/account.d.ts.map +0 -1
- package/dist/viem/Actions/account.js +0 -86
- package/dist/viem/Actions/account.js.map +0 -1
- package/dist/viem/Actions/amm.d.ts +0 -1991
- package/dist/viem/Actions/amm.d.ts.map +0 -1
- package/dist/viem/Actions/amm.js +0 -814
- package/dist/viem/Actions/amm.js.map +0 -1
- package/dist/viem/Actions/dex.d.ts +0 -3900
- package/dist/viem/Actions/dex.d.ts.map +0 -1
- package/dist/viem/Actions/dex.js +0 -1414
- package/dist/viem/Actions/dex.js.map +0 -1
- package/dist/viem/Actions/faucet.d.ts +0 -69
- package/dist/viem/Actions/faucet.d.ts.map +0 -1
- package/dist/viem/Actions/faucet.js +0 -73
- package/dist/viem/Actions/faucet.js.map +0 -1
- package/dist/viem/Actions/fee.d.ts +0 -360
- package/dist/viem/Actions/fee.d.ts.map +0 -1
- package/dist/viem/Actions/fee.js +0 -237
- package/dist/viem/Actions/fee.js.map +0 -1
- package/dist/viem/Actions/index.d.ts +0 -10
- package/dist/viem/Actions/index.d.ts.map +0 -1
- package/dist/viem/Actions/index.js +0 -10
- package/dist/viem/Actions/index.js.map +0 -1
- package/dist/viem/Actions/nonce.d.ts +0 -257
- package/dist/viem/Actions/nonce.d.ts.map +0 -1
- package/dist/viem/Actions/nonce.js +0 -228
- package/dist/viem/Actions/nonce.js.map +0 -1
- package/dist/viem/Actions/policy.d.ts +0 -1680
- package/dist/viem/Actions/policy.d.ts.map +0 -1
- package/dist/viem/Actions/policy.js +0 -875
- package/dist/viem/Actions/policy.js.map +0 -1
- package/dist/viem/Actions/reward.d.ts +0 -2422
- package/dist/viem/Actions/reward.d.ts.map +0 -1
- package/dist/viem/Actions/reward.js +0 -651
- package/dist/viem/Actions/reward.js.map +0 -1
- package/dist/viem/Actions/token.d.ts +0 -16007
- package/dist/viem/Actions/token.d.ts.map +0 -1
- package/dist/viem/Actions/token.js +0 -2936
- package/dist/viem/Actions/token.js.map +0 -1
- package/dist/viem/Addresses.d.ts +0 -9
- package/dist/viem/Addresses.d.ts.map +0 -1
- package/dist/viem/Addresses.js +0 -9
- package/dist/viem/Addresses.js.map +0 -1
- package/dist/viem/Chain.d.ts +0 -451
- package/dist/viem/Chain.d.ts.map +0 -1
- package/dist/viem/Chain.js +0 -96
- package/dist/viem/Chain.js.map +0 -1
- package/dist/viem/Decorator.d.ts +0 -2783
- package/dist/viem/Decorator.d.ts.map +0 -1
- package/dist/viem/Decorator.js +0 -137
- package/dist/viem/Decorator.js.map +0 -1
- package/dist/viem/Formatters.d.ts +0 -10
- package/dist/viem/Formatters.d.ts.map +0 -1
- package/dist/viem/Formatters.js +0 -104
- package/dist/viem/Formatters.js.map +0 -1
- package/dist/viem/P256.d.ts +0 -2
- package/dist/viem/P256.d.ts.map +0 -1
- package/dist/viem/P256.js +0 -2
- package/dist/viem/P256.js.map +0 -1
- package/dist/viem/Secp256k1.d.ts +0 -2
- package/dist/viem/Secp256k1.d.ts.map +0 -1
- package/dist/viem/Secp256k1.js +0 -2
- package/dist/viem/Secp256k1.js.map +0 -1
- package/dist/viem/Storage.d.ts +0 -24
- package/dist/viem/Storage.d.ts.map +0 -1
- package/dist/viem/Storage.js +0 -68
- package/dist/viem/Storage.js.map +0 -1
- package/dist/viem/TokenIds.d.ts +0 -2
- package/dist/viem/TokenIds.d.ts.map +0 -1
- package/dist/viem/TokenIds.js +0 -2
- package/dist/viem/TokenIds.js.map +0 -1
- package/dist/viem/Transaction.d.ts +0 -76
- package/dist/viem/Transaction.d.ts.map +0 -1
- package/dist/viem/Transaction.js +0 -176
- package/dist/viem/Transaction.js.map +0 -1
- package/dist/viem/Transport.d.ts +0 -33
- package/dist/viem/Transport.d.ts.map +0 -1
- package/dist/viem/Transport.js +0 -138
- package/dist/viem/Transport.js.map +0 -1
- package/dist/viem/WebAuthnP256.d.ts +0 -82
- package/dist/viem/WebAuthnP256.d.ts.map +0 -1
- package/dist/viem/WebAuthnP256.js +0 -97
- package/dist/viem/WebAuthnP256.js.map +0 -1
- package/dist/viem/WebCryptoP256.d.ts +0 -2
- package/dist/viem/WebCryptoP256.d.ts.map +0 -1
- package/dist/viem/WebCryptoP256.js +0 -2
- package/dist/viem/WebCryptoP256.js.map +0 -1
- package/dist/viem/index.d.ts +0 -26
- package/dist/viem/index.d.ts.map +0 -1
- package/dist/viem/index.js +0 -17
- package/dist/viem/index.js.map +0 -1
- package/dist/viem/internal/types.d.ts +0 -20
- package/dist/viem/internal/types.d.ts.map +0 -1
- package/dist/viem/internal/types.js +0 -2
- package/dist/viem/internal/types.js.map +0 -1
- package/dist/viem/internal/utils.d.ts +0 -14
- package/dist/viem/internal/utils.d.ts.map +0 -1
- package/dist/viem/internal/utils.js +0 -33
- package/dist/viem/internal/utils.js.map +0 -1
- package/src/chains.ts +0 -54
- package/src/viem/Abis.ts +0 -1688
- package/src/viem/Account.test.ts +0 -444
- package/src/viem/Account.ts +0 -601
- package/src/viem/Actions/account.test.ts +0 -414
- package/src/viem/Actions/account.ts +0 -106
- package/src/viem/Actions/amm.test.ts +0 -381
- package/src/viem/Actions/amm.ts +0 -1227
- package/src/viem/Actions/dex.test.ts +0 -1549
- package/src/viem/Actions/dex.ts +0 -2150
- package/src/viem/Actions/faucet.ts +0 -121
- package/src/viem/Actions/fee.test.ts +0 -259
- package/src/viem/Actions/fee.ts +0 -372
- package/src/viem/Actions/index.ts +0 -9
- package/src/viem/Actions/nonce.test.ts +0 -206
- package/src/viem/Actions/nonce.ts +0 -347
- package/src/viem/Actions/policy.test.ts +0 -534
- package/src/viem/Actions/policy.ts +0 -1335
- package/src/viem/Actions/reward.test.ts +0 -434
- package/src/viem/Actions/reward.ts +0 -944
- package/src/viem/Actions/token.test.ts +0 -3029
- package/src/viem/Actions/token.ts +0 -4458
- package/src/viem/Addresses.ts +0 -9
- package/src/viem/Chain.bench-d.ts +0 -12
- package/src/viem/Chain.test.ts +0 -168
- package/src/viem/Chain.ts +0 -157
- package/src/viem/Decorator.bench-d.ts +0 -11
- package/src/viem/Decorator.test.ts +0 -39
- package/src/viem/Decorator.ts +0 -3179
- package/src/viem/Formatters.ts +0 -164
- package/src/viem/P256.ts +0 -1
- package/src/viem/Secp256k1.ts +0 -1
- package/src/viem/Storage.ts +0 -110
- package/src/viem/TokenIds.ts +0 -1
- package/src/viem/Transaction.ts +0 -382
- package/src/viem/Transport.ts +0 -191
- package/src/viem/WebAuthnP256.ts +0 -146
- package/src/viem/WebCryptoP256.ts +0 -1
- package/src/viem/e2e.test.ts +0 -1602
- package/src/viem/index.ts +0 -30
- package/src/viem/internal/types.ts +0 -69
- package/src/viem/internal/utils.ts +0 -58
- package/src/wagmi/internal/types.ts +0 -16
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { getConnectorClient } from '@wagmi/core';
|
|
2
|
-
import
|
|
2
|
+
import { Actions } from 'viem/tempo';
|
|
3
3
|
/**
|
|
4
4
|
* Approves a spender to transfer TIP20 tokens on behalf of the caller.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```ts
|
|
8
8
|
* import { createConfig, http } from '@wagmi/core'
|
|
9
|
-
* import { tempo } from '
|
|
9
|
+
* import { tempo } from 'viem/chains'
|
|
10
10
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
11
11
|
*
|
|
12
12
|
* const config = createConfig({
|
|
13
|
-
* chains: [
|
|
13
|
+
* chains: [tempoTestnet],
|
|
14
14
|
* transports: {
|
|
15
15
|
* [tempo.id]: http(),
|
|
16
16
|
* },
|
|
@@ -34,7 +34,7 @@ export async function approve(config, parameters) {
|
|
|
34
34
|
chainId,
|
|
35
35
|
connector,
|
|
36
36
|
});
|
|
37
|
-
return
|
|
37
|
+
return Actions.token.approve(client, parameters);
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Approves a spender to transfer TIP20 tokens on behalf of the caller.
|
|
@@ -45,11 +45,11 @@ export async function approve(config, parameters) {
|
|
|
45
45
|
* @example
|
|
46
46
|
* ```ts
|
|
47
47
|
* import { createConfig, http } from '@wagmi/core'
|
|
48
|
-
* import { tempo } from '
|
|
48
|
+
* import { tempo } from 'viem/chains'
|
|
49
49
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
50
50
|
*
|
|
51
51
|
* const config = createConfig({
|
|
52
|
-
* chains: [
|
|
52
|
+
* chains: [tempoTestnet],
|
|
53
53
|
* transports: {
|
|
54
54
|
* [tempo.id]: http(),
|
|
55
55
|
* },
|
|
@@ -73,7 +73,7 @@ export async function approveSync(config, parameters) {
|
|
|
73
73
|
chainId,
|
|
74
74
|
connector,
|
|
75
75
|
});
|
|
76
|
-
return
|
|
76
|
+
return Actions.token.approveSync(client, parameters);
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Burns TIP20 tokens from the caller's balance.
|
|
@@ -81,11 +81,11 @@ export async function approveSync(config, parameters) {
|
|
|
81
81
|
* @example
|
|
82
82
|
* ```ts
|
|
83
83
|
* import { createConfig, http } from '@wagmi/core'
|
|
84
|
-
* import { tempo } from '
|
|
84
|
+
* import { tempo } from 'viem/chains'
|
|
85
85
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
86
86
|
*
|
|
87
87
|
* const config = createConfig({
|
|
88
|
-
* chains: [
|
|
88
|
+
* chains: [tempoTestnet],
|
|
89
89
|
* transports: {
|
|
90
90
|
* [tempo.id]: http(),
|
|
91
91
|
* },
|
|
@@ -109,7 +109,7 @@ export async function burn(config, parameters) {
|
|
|
109
109
|
chainId,
|
|
110
110
|
connector,
|
|
111
111
|
});
|
|
112
|
-
return
|
|
112
|
+
return Actions.token.burn(client, parameters);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Burns TIP20 tokens from a blocked address.
|
|
@@ -117,11 +117,11 @@ export async function burn(config, parameters) {
|
|
|
117
117
|
* @example
|
|
118
118
|
* ```ts
|
|
119
119
|
* import { createConfig, http } from '@wagmi/core'
|
|
120
|
-
* import { tempo } from '
|
|
120
|
+
* import { tempo } from 'viem/chains'
|
|
121
121
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
122
122
|
*
|
|
123
123
|
* const config = createConfig({
|
|
124
|
-
* chains: [
|
|
124
|
+
* chains: [tempoTestnet],
|
|
125
125
|
* transports: {
|
|
126
126
|
* [tempo.id]: http(),
|
|
127
127
|
* },
|
|
@@ -146,7 +146,7 @@ export async function burnBlocked(config, parameters) {
|
|
|
146
146
|
chainId,
|
|
147
147
|
connector,
|
|
148
148
|
});
|
|
149
|
-
return await
|
|
149
|
+
return await Actions.token.burnBlocked(client, parameters);
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* Burns TIP20 tokens from a blocked address.
|
|
@@ -157,11 +157,11 @@ export async function burnBlocked(config, parameters) {
|
|
|
157
157
|
* @example
|
|
158
158
|
* ```ts
|
|
159
159
|
* import { createConfig, http } from '@wagmi/core'
|
|
160
|
-
* import { tempo } from '
|
|
160
|
+
* import { tempo } from 'viem/chains'
|
|
161
161
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
162
162
|
*
|
|
163
163
|
* const config = createConfig({
|
|
164
|
-
* chains: [
|
|
164
|
+
* chains: [tempoTestnet],
|
|
165
165
|
* transports: {
|
|
166
166
|
* [tempo.id]: http(),
|
|
167
167
|
* },
|
|
@@ -186,7 +186,7 @@ export async function burnBlockedSync(config, parameters) {
|
|
|
186
186
|
chainId,
|
|
187
187
|
connector,
|
|
188
188
|
});
|
|
189
|
-
return
|
|
189
|
+
return Actions.token.burnBlockedSync(client, parameters);
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
192
|
* Burns TIP20 tokens from the caller's balance.
|
|
@@ -197,11 +197,11 @@ export async function burnBlockedSync(config, parameters) {
|
|
|
197
197
|
* @example
|
|
198
198
|
* ```ts
|
|
199
199
|
* import { createConfig, http } from '@wagmi/core'
|
|
200
|
-
* import { tempo } from '
|
|
200
|
+
* import { tempo } from 'viem/chains'
|
|
201
201
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
202
202
|
*
|
|
203
203
|
* const config = createConfig({
|
|
204
|
-
* chains: [
|
|
204
|
+
* chains: [tempoTestnet],
|
|
205
205
|
* transports: {
|
|
206
206
|
* [tempo.id]: http(),
|
|
207
207
|
* },
|
|
@@ -225,7 +225,7 @@ export async function burnSync(config, parameters) {
|
|
|
225
225
|
chainId,
|
|
226
226
|
connector,
|
|
227
227
|
});
|
|
228
|
-
return
|
|
228
|
+
return Actions.token.burnSync(client, parameters);
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
231
|
* Changes the transfer policy ID for a TIP20 token.
|
|
@@ -233,11 +233,11 @@ export async function burnSync(config, parameters) {
|
|
|
233
233
|
* @example
|
|
234
234
|
* ```ts
|
|
235
235
|
* import { createConfig, http } from '@wagmi/core'
|
|
236
|
-
* import { tempo } from '
|
|
236
|
+
* import { tempo } from 'viem/chains'
|
|
237
237
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
238
238
|
*
|
|
239
239
|
* const config = createConfig({
|
|
240
|
-
* chains: [
|
|
240
|
+
* chains: [tempoTestnet],
|
|
241
241
|
* transports: {
|
|
242
242
|
* [tempo.id]: http(),
|
|
243
243
|
* },
|
|
@@ -261,7 +261,7 @@ export async function changeTransferPolicy(config, parameters) {
|
|
|
261
261
|
chainId,
|
|
262
262
|
connector,
|
|
263
263
|
});
|
|
264
|
-
return
|
|
264
|
+
return Actions.token.changeTransferPolicy(client, parameters);
|
|
265
265
|
}
|
|
266
266
|
/**
|
|
267
267
|
* Changes the transfer policy ID for a TIP20 token.
|
|
@@ -272,11 +272,11 @@ export async function changeTransferPolicy(config, parameters) {
|
|
|
272
272
|
* @example
|
|
273
273
|
* ```ts
|
|
274
274
|
* import { createConfig, http } from '@wagmi/core'
|
|
275
|
-
* import { tempo } from '
|
|
275
|
+
* import { tempo } from 'viem/chains'
|
|
276
276
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
277
277
|
*
|
|
278
278
|
* const config = createConfig({
|
|
279
|
-
* chains: [
|
|
279
|
+
* chains: [tempoTestnet],
|
|
280
280
|
* transports: {
|
|
281
281
|
* [tempo.id]: http(),
|
|
282
282
|
* },
|
|
@@ -300,7 +300,7 @@ export async function changeTransferPolicySync(config, parameters) {
|
|
|
300
300
|
chainId,
|
|
301
301
|
connector,
|
|
302
302
|
});
|
|
303
|
-
return
|
|
303
|
+
return Actions.token.changeTransferPolicySync(client, parameters);
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
306
|
* Creates a new TIP20 token.
|
|
@@ -308,11 +308,11 @@ export async function changeTransferPolicySync(config, parameters) {
|
|
|
308
308
|
* @example
|
|
309
309
|
* ```ts
|
|
310
310
|
* import { createConfig, http } from '@wagmi/core'
|
|
311
|
-
* import { tempo } from '
|
|
311
|
+
* import { tempo } from 'viem/chains'
|
|
312
312
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
313
313
|
*
|
|
314
314
|
* const config = createConfig({
|
|
315
|
-
* chains: [
|
|
315
|
+
* chains: [tempoTestnet],
|
|
316
316
|
* transports: {
|
|
317
317
|
* [tempo.id]: http(),
|
|
318
318
|
* },
|
|
@@ -337,7 +337,7 @@ export async function create(config, parameters) {
|
|
|
337
337
|
chainId,
|
|
338
338
|
connector,
|
|
339
339
|
});
|
|
340
|
-
return
|
|
340
|
+
return Actions.token.create(client, parameters);
|
|
341
341
|
}
|
|
342
342
|
/**
|
|
343
343
|
* Creates a new TIP20 token.
|
|
@@ -348,11 +348,11 @@ export async function create(config, parameters) {
|
|
|
348
348
|
* @example
|
|
349
349
|
* ```ts
|
|
350
350
|
* import { createConfig, http } from '@wagmi/core'
|
|
351
|
-
* import { tempo } from '
|
|
351
|
+
* import { tempo } from 'viem/chains'
|
|
352
352
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
353
353
|
*
|
|
354
354
|
* const config = createConfig({
|
|
355
|
-
* chains: [
|
|
355
|
+
* chains: [tempoTestnet],
|
|
356
356
|
* transports: {
|
|
357
357
|
* [tempo.id]: http(),
|
|
358
358
|
* },
|
|
@@ -377,7 +377,7 @@ export async function createSync(config, parameters) {
|
|
|
377
377
|
chainId,
|
|
378
378
|
connector,
|
|
379
379
|
});
|
|
380
|
-
return
|
|
380
|
+
return Actions.token.createSync(client, parameters);
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
383
|
* Updates the quote token for a TIP20 token.
|
|
@@ -385,11 +385,11 @@ export async function createSync(config, parameters) {
|
|
|
385
385
|
* @example
|
|
386
386
|
* ```ts
|
|
387
387
|
* import { createConfig, http } from '@wagmi/core'
|
|
388
|
-
* import { tempo } from '
|
|
388
|
+
* import { tempo } from 'viem/chains'
|
|
389
389
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
390
390
|
*
|
|
391
391
|
* const config = createConfig({
|
|
392
|
-
* chains: [
|
|
392
|
+
* chains: [tempoTestnet],
|
|
393
393
|
* transports: {
|
|
394
394
|
* [tempo.id]: http(),
|
|
395
395
|
* },
|
|
@@ -412,7 +412,7 @@ export async function updateQuoteToken(config, parameters) {
|
|
|
412
412
|
chainId,
|
|
413
413
|
connector,
|
|
414
414
|
});
|
|
415
|
-
return
|
|
415
|
+
return Actions.token.updateQuoteToken(client, parameters);
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* Updates the quote token for a TIP20 token.
|
|
@@ -423,11 +423,11 @@ export async function updateQuoteToken(config, parameters) {
|
|
|
423
423
|
* @example
|
|
424
424
|
* ```ts
|
|
425
425
|
* import { createConfig, http } from '@wagmi/core'
|
|
426
|
-
* import { tempo } from '
|
|
426
|
+
* import { tempo } from 'viem/chains'
|
|
427
427
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
428
428
|
*
|
|
429
429
|
* const config = createConfig({
|
|
430
|
-
* chains: [
|
|
430
|
+
* chains: [tempoTestnet],
|
|
431
431
|
* transports: {
|
|
432
432
|
* [tempo.id]: http(),
|
|
433
433
|
* },
|
|
@@ -450,7 +450,7 @@ export async function updateQuoteTokenSync(config, parameters) {
|
|
|
450
450
|
chainId,
|
|
451
451
|
connector,
|
|
452
452
|
});
|
|
453
|
-
return
|
|
453
|
+
return Actions.token.updateQuoteTokenSync(client, parameters);
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
456
|
* Gets TIP20 token allowance.
|
|
@@ -458,11 +458,11 @@ export async function updateQuoteTokenSync(config, parameters) {
|
|
|
458
458
|
* @example
|
|
459
459
|
* ```ts
|
|
460
460
|
* import { createConfig, http } from '@wagmi/core'
|
|
461
|
-
* import { tempo } from '
|
|
461
|
+
* import { tempo } from 'viem/chains'
|
|
462
462
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
463
463
|
*
|
|
464
464
|
* const config = createConfig({
|
|
465
|
-
* chains: [
|
|
465
|
+
* chains: [tempoTestnet],
|
|
466
466
|
* transports: {
|
|
467
467
|
* [tempo.id]: http(),
|
|
468
468
|
* },
|
|
@@ -481,7 +481,7 @@ export async function updateQuoteTokenSync(config, parameters) {
|
|
|
481
481
|
export function getAllowance(config, parameters) {
|
|
482
482
|
const { chainId, ...rest } = parameters;
|
|
483
483
|
const client = config.getClient({ chainId });
|
|
484
|
-
return
|
|
484
|
+
return Actions.token.getAllowance(client, rest);
|
|
485
485
|
}
|
|
486
486
|
(function (getAllowance) {
|
|
487
487
|
function queryKey(parameters) {
|
|
@@ -507,11 +507,11 @@ export function getAllowance(config, parameters) {
|
|
|
507
507
|
* @example
|
|
508
508
|
* ```ts
|
|
509
509
|
* import { createConfig, http } from '@wagmi/core'
|
|
510
|
-
* import { tempo } from '
|
|
510
|
+
* import { tempo } from 'viem/chains'
|
|
511
511
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
512
512
|
*
|
|
513
513
|
* const config = createConfig({
|
|
514
|
-
* chains: [
|
|
514
|
+
* chains: [tempoTestnet],
|
|
515
515
|
* transports: {
|
|
516
516
|
* [tempo.id]: http(),
|
|
517
517
|
* },
|
|
@@ -529,7 +529,7 @@ export function getAllowance(config, parameters) {
|
|
|
529
529
|
export function getBalance(config, parameters) {
|
|
530
530
|
const { chainId, ...rest } = parameters;
|
|
531
531
|
const client = config.getClient({ chainId });
|
|
532
|
-
return
|
|
532
|
+
return Actions.token.getBalance(client, rest);
|
|
533
533
|
}
|
|
534
534
|
(function (getBalance) {
|
|
535
535
|
function queryKey(parameters) {
|
|
@@ -555,11 +555,11 @@ export function getBalance(config, parameters) {
|
|
|
555
555
|
* @example
|
|
556
556
|
* ```ts
|
|
557
557
|
* import { createConfig, http } from '@wagmi/core'
|
|
558
|
-
* import { tempo } from '
|
|
558
|
+
* import { tempo } from 'viem/chains'
|
|
559
559
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
560
560
|
*
|
|
561
561
|
* const config = createConfig({
|
|
562
|
-
* chains: [
|
|
562
|
+
* chains: [tempoTestnet],
|
|
563
563
|
* transports: {
|
|
564
564
|
* [tempo.id]: http(),
|
|
565
565
|
* },
|
|
@@ -577,7 +577,7 @@ export function getBalance(config, parameters) {
|
|
|
577
577
|
export function getMetadata(config, parameters) {
|
|
578
578
|
const { chainId, ...rest } = parameters;
|
|
579
579
|
const client = config.getClient({ chainId });
|
|
580
|
-
return
|
|
580
|
+
return Actions.token.getMetadata(client, rest);
|
|
581
581
|
}
|
|
582
582
|
(function (getMetadata) {
|
|
583
583
|
function queryKey(parameters) {
|
|
@@ -603,11 +603,11 @@ export function getMetadata(config, parameters) {
|
|
|
603
603
|
* @example
|
|
604
604
|
* ```ts
|
|
605
605
|
* import { createConfig, http } from '@wagmi/core'
|
|
606
|
-
* import { tempo } from '
|
|
606
|
+
* import { tempo } from 'viem/chains'
|
|
607
607
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
608
608
|
*
|
|
609
609
|
* const config = createConfig({
|
|
610
|
-
* chains: [
|
|
610
|
+
* chains: [tempoTestnet],
|
|
611
611
|
* transports: {
|
|
612
612
|
* [tempo.id]: http(),
|
|
613
613
|
* },
|
|
@@ -626,7 +626,7 @@ export function getMetadata(config, parameters) {
|
|
|
626
626
|
export function getRoleAdmin(config, parameters) {
|
|
627
627
|
const { chainId, ...rest } = parameters;
|
|
628
628
|
const client = config.getClient({ chainId });
|
|
629
|
-
return
|
|
629
|
+
return Actions.token.getRoleAdmin(client, rest);
|
|
630
630
|
}
|
|
631
631
|
(function (getRoleAdmin) {
|
|
632
632
|
function queryKey(parameters) {
|
|
@@ -652,11 +652,11 @@ export function getRoleAdmin(config, parameters) {
|
|
|
652
652
|
* @example
|
|
653
653
|
* ```ts
|
|
654
654
|
* import { createConfig, http } from '@wagmi/core'
|
|
655
|
-
* import { tempo } from '
|
|
655
|
+
* import { tempo } from 'viem/chains'
|
|
656
656
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
657
657
|
*
|
|
658
658
|
* const config = createConfig({
|
|
659
|
-
* chains: [
|
|
659
|
+
* chains: [tempoTestnet],
|
|
660
660
|
* transports: {
|
|
661
661
|
* [tempo.id]: http(),
|
|
662
662
|
* },
|
|
@@ -681,7 +681,7 @@ export async function grantRoles(config, parameters) {
|
|
|
681
681
|
chainId,
|
|
682
682
|
connector,
|
|
683
683
|
});
|
|
684
|
-
return
|
|
684
|
+
return Actions.token.grantRoles(client, parameters);
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
687
|
* Grants a role for a TIP20 token.
|
|
@@ -692,11 +692,11 @@ export async function grantRoles(config, parameters) {
|
|
|
692
692
|
* @example
|
|
693
693
|
* ```ts
|
|
694
694
|
* import { createConfig, http } from '@wagmi/core'
|
|
695
|
-
* import { tempo } from '
|
|
695
|
+
* import { tempo } from 'viem/chains'
|
|
696
696
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
697
697
|
*
|
|
698
698
|
* const config = createConfig({
|
|
699
|
-
* chains: [
|
|
699
|
+
* chains: [tempoTestnet],
|
|
700
700
|
* transports: {
|
|
701
701
|
* [tempo.id]: http(),
|
|
702
702
|
* },
|
|
@@ -721,7 +721,7 @@ export async function grantRolesSync(config, parameters) {
|
|
|
721
721
|
chainId,
|
|
722
722
|
connector,
|
|
723
723
|
});
|
|
724
|
-
return
|
|
724
|
+
return Actions.token.grantRolesSync(client, parameters);
|
|
725
725
|
}
|
|
726
726
|
/**
|
|
727
727
|
* Checks if an account has a specific role for a TIP20 token.
|
|
@@ -729,11 +729,11 @@ export async function grantRolesSync(config, parameters) {
|
|
|
729
729
|
* @example
|
|
730
730
|
* ```ts
|
|
731
731
|
* import { createConfig, http } from '@wagmi/core'
|
|
732
|
-
* import { tempo } from '
|
|
732
|
+
* import { tempo } from 'viem/chains'
|
|
733
733
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
734
734
|
*
|
|
735
735
|
* const config = createConfig({
|
|
736
|
-
* chains: [
|
|
736
|
+
* chains: [tempoTestnet],
|
|
737
737
|
* transports: {
|
|
738
738
|
* [tempo.id]: http(),
|
|
739
739
|
* },
|
|
@@ -753,7 +753,7 @@ export async function grantRolesSync(config, parameters) {
|
|
|
753
753
|
export function hasRole(config, parameters) {
|
|
754
754
|
const { chainId, ...rest } = parameters;
|
|
755
755
|
const client = config.getClient({ chainId });
|
|
756
|
-
return
|
|
756
|
+
return Actions.token.hasRole(client, rest);
|
|
757
757
|
}
|
|
758
758
|
(function (hasRole) {
|
|
759
759
|
function queryKey(parameters) {
|
|
@@ -779,11 +779,11 @@ export function hasRole(config, parameters) {
|
|
|
779
779
|
* @example
|
|
780
780
|
* ```ts
|
|
781
781
|
* import { createConfig, http } from '@wagmi/core'
|
|
782
|
-
* import { tempo } from '
|
|
782
|
+
* import { tempo } from 'viem/chains'
|
|
783
783
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
784
784
|
*
|
|
785
785
|
* const config = createConfig({
|
|
786
|
-
* chains: [
|
|
786
|
+
* chains: [tempoTestnet],
|
|
787
787
|
* transports: {
|
|
788
788
|
* [tempo.id]: http(),
|
|
789
789
|
* },
|
|
@@ -808,7 +808,7 @@ export async function mint(config, parameters) {
|
|
|
808
808
|
chainId,
|
|
809
809
|
connector,
|
|
810
810
|
});
|
|
811
|
-
return
|
|
811
|
+
return Actions.token.mint(client, parameters);
|
|
812
812
|
}
|
|
813
813
|
/**
|
|
814
814
|
* Mints TIP20 tokens to an address.
|
|
@@ -819,11 +819,11 @@ export async function mint(config, parameters) {
|
|
|
819
819
|
* @example
|
|
820
820
|
* ```ts
|
|
821
821
|
* import { createConfig, http } from '@wagmi/core'
|
|
822
|
-
* import { tempo } from '
|
|
822
|
+
* import { tempo } from 'viem/chains'
|
|
823
823
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
824
824
|
*
|
|
825
825
|
* const config = createConfig({
|
|
826
|
-
* chains: [
|
|
826
|
+
* chains: [tempoTestnet],
|
|
827
827
|
* transports: {
|
|
828
828
|
* [tempo.id]: http(),
|
|
829
829
|
* },
|
|
@@ -848,7 +848,7 @@ export async function mintSync(config, parameters) {
|
|
|
848
848
|
chainId,
|
|
849
849
|
connector,
|
|
850
850
|
});
|
|
851
|
-
return
|
|
851
|
+
return Actions.token.mintSync(client, parameters);
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
854
|
* Pauses a TIP20 token.
|
|
@@ -856,11 +856,11 @@ export async function mintSync(config, parameters) {
|
|
|
856
856
|
* @example
|
|
857
857
|
* ```ts
|
|
858
858
|
* import { createConfig, http } from '@wagmi/core'
|
|
859
|
-
* import { tempo } from '
|
|
859
|
+
* import { tempo } from 'viem/chains'
|
|
860
860
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
861
861
|
*
|
|
862
862
|
* const config = createConfig({
|
|
863
|
-
* chains: [
|
|
863
|
+
* chains: [tempoTestnet],
|
|
864
864
|
* transports: {
|
|
865
865
|
* [tempo.id]: http(),
|
|
866
866
|
* },
|
|
@@ -883,7 +883,7 @@ export async function pause(config, parameters) {
|
|
|
883
883
|
chainId,
|
|
884
884
|
connector,
|
|
885
885
|
});
|
|
886
|
-
return
|
|
886
|
+
return Actions.token.pause(client, parameters);
|
|
887
887
|
}
|
|
888
888
|
/**
|
|
889
889
|
* Pauses a TIP20 token.
|
|
@@ -894,11 +894,11 @@ export async function pause(config, parameters) {
|
|
|
894
894
|
* @example
|
|
895
895
|
* ```ts
|
|
896
896
|
* import { createConfig, http } from '@wagmi/core'
|
|
897
|
-
* import { tempo } from '
|
|
897
|
+
* import { tempo } from 'viem/chains'
|
|
898
898
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
899
899
|
*
|
|
900
900
|
* const config = createConfig({
|
|
901
|
-
* chains: [
|
|
901
|
+
* chains: [tempoTestnet],
|
|
902
902
|
* transports: {
|
|
903
903
|
* [tempo.id]: http(),
|
|
904
904
|
* },
|
|
@@ -921,7 +921,7 @@ export async function pauseSync(config, parameters) {
|
|
|
921
921
|
chainId,
|
|
922
922
|
connector,
|
|
923
923
|
});
|
|
924
|
-
return
|
|
924
|
+
return Actions.token.pauseSync(client, parameters);
|
|
925
925
|
}
|
|
926
926
|
/**
|
|
927
927
|
* Renounces a role for a TIP20 token.
|
|
@@ -929,11 +929,11 @@ export async function pauseSync(config, parameters) {
|
|
|
929
929
|
* @example
|
|
930
930
|
* ```ts
|
|
931
931
|
* import { createConfig, http } from '@wagmi/core'
|
|
932
|
-
* import { tempo } from '
|
|
932
|
+
* import { tempo } from 'viem/chains'
|
|
933
933
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
934
934
|
*
|
|
935
935
|
* const config = createConfig({
|
|
936
|
-
* chains: [
|
|
936
|
+
* chains: [tempoTestnet],
|
|
937
937
|
* transports: {
|
|
938
938
|
* [tempo.id]: http(),
|
|
939
939
|
* },
|
|
@@ -957,7 +957,7 @@ export async function renounceRoles(config, parameters) {
|
|
|
957
957
|
chainId,
|
|
958
958
|
connector,
|
|
959
959
|
});
|
|
960
|
-
return
|
|
960
|
+
return Actions.token.renounceRoles(client, parameters);
|
|
961
961
|
}
|
|
962
962
|
/**
|
|
963
963
|
* Renounces a role for a TIP20 token.
|
|
@@ -968,11 +968,11 @@ export async function renounceRoles(config, parameters) {
|
|
|
968
968
|
* @example
|
|
969
969
|
* ```ts
|
|
970
970
|
* import { createConfig, http } from '@wagmi/core'
|
|
971
|
-
* import { tempo } from '
|
|
971
|
+
* import { tempo } from 'viem/chains'
|
|
972
972
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
973
973
|
*
|
|
974
974
|
* const config = createConfig({
|
|
975
|
-
* chains: [
|
|
975
|
+
* chains: [tempoTestnet],
|
|
976
976
|
* transports: {
|
|
977
977
|
* [tempo.id]: http(),
|
|
978
978
|
* },
|
|
@@ -996,7 +996,7 @@ export async function renounceRolesSync(config, parameters) {
|
|
|
996
996
|
chainId,
|
|
997
997
|
connector,
|
|
998
998
|
});
|
|
999
|
-
return
|
|
999
|
+
return Actions.token.renounceRolesSync(client, parameters);
|
|
1000
1000
|
}
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Revokes a role for a TIP20 token.
|
|
@@ -1004,11 +1004,11 @@ export async function renounceRolesSync(config, parameters) {
|
|
|
1004
1004
|
* @example
|
|
1005
1005
|
* ```ts
|
|
1006
1006
|
* import { createConfig, http } from '@wagmi/core'
|
|
1007
|
-
* import { tempo } from '
|
|
1007
|
+
* import { tempo } from 'viem/chains'
|
|
1008
1008
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1009
1009
|
*
|
|
1010
1010
|
* const config = createConfig({
|
|
1011
|
-
* chains: [
|
|
1011
|
+
* chains: [tempoTestnet],
|
|
1012
1012
|
* transports: {
|
|
1013
1013
|
* [tempo.id]: http(),
|
|
1014
1014
|
* },
|
|
@@ -1033,7 +1033,7 @@ export async function revokeRoles(config, parameters) {
|
|
|
1033
1033
|
chainId,
|
|
1034
1034
|
connector,
|
|
1035
1035
|
});
|
|
1036
|
-
return
|
|
1036
|
+
return Actions.token.revokeRoles(client, parameters);
|
|
1037
1037
|
}
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Revokes a role for a TIP20 token.
|
|
@@ -1044,11 +1044,11 @@ export async function revokeRoles(config, parameters) {
|
|
|
1044
1044
|
* @example
|
|
1045
1045
|
* ```ts
|
|
1046
1046
|
* import { createConfig, http } from '@wagmi/core'
|
|
1047
|
-
* import { tempo } from '
|
|
1047
|
+
* import { tempo } from 'viem/chains'
|
|
1048
1048
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1049
1049
|
*
|
|
1050
1050
|
* const config = createConfig({
|
|
1051
|
-
* chains: [
|
|
1051
|
+
* chains: [tempoTestnet],
|
|
1052
1052
|
* transports: {
|
|
1053
1053
|
* [tempo.id]: http(),
|
|
1054
1054
|
* },
|
|
@@ -1073,7 +1073,7 @@ export async function revokeRolesSync(config, parameters) {
|
|
|
1073
1073
|
chainId,
|
|
1074
1074
|
connector,
|
|
1075
1075
|
});
|
|
1076
|
-
return
|
|
1076
|
+
return Actions.token.revokeRolesSync(client, parameters);
|
|
1077
1077
|
}
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Sets the admin role for a specific role in a TIP20 token.
|
|
@@ -1081,11 +1081,11 @@ export async function revokeRolesSync(config, parameters) {
|
|
|
1081
1081
|
* @example
|
|
1082
1082
|
* ```ts
|
|
1083
1083
|
* import { createConfig, http } from '@wagmi/core'
|
|
1084
|
-
* import { tempo } from '
|
|
1084
|
+
* import { tempo } from 'viem/chains'
|
|
1085
1085
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1086
1086
|
*
|
|
1087
1087
|
* const config = createConfig({
|
|
1088
|
-
* chains: [
|
|
1088
|
+
* chains: [tempoTestnet],
|
|
1089
1089
|
* transports: {
|
|
1090
1090
|
* [tempo.id]: http(),
|
|
1091
1091
|
* },
|
|
@@ -1110,7 +1110,7 @@ export async function setRoleAdmin(config, parameters) {
|
|
|
1110
1110
|
chainId,
|
|
1111
1111
|
connector,
|
|
1112
1112
|
});
|
|
1113
|
-
return
|
|
1113
|
+
return Actions.token.setRoleAdmin(client, parameters);
|
|
1114
1114
|
}
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Sets the admin role for a specific role in a TIP20 token.
|
|
@@ -1121,11 +1121,11 @@ export async function setRoleAdmin(config, parameters) {
|
|
|
1121
1121
|
* @example
|
|
1122
1122
|
* ```ts
|
|
1123
1123
|
* import { createConfig, http } from '@wagmi/core'
|
|
1124
|
-
* import { tempo } from '
|
|
1124
|
+
* import { tempo } from 'viem/chains'
|
|
1125
1125
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1126
1126
|
*
|
|
1127
1127
|
* const config = createConfig({
|
|
1128
|
-
* chains: [
|
|
1128
|
+
* chains: [tempoTestnet],
|
|
1129
1129
|
* transports: {
|
|
1130
1130
|
* [tempo.id]: http(),
|
|
1131
1131
|
* },
|
|
@@ -1150,7 +1150,7 @@ export async function setRoleAdminSync(config, parameters) {
|
|
|
1150
1150
|
chainId,
|
|
1151
1151
|
connector,
|
|
1152
1152
|
});
|
|
1153
|
-
return
|
|
1153
|
+
return Actions.token.setRoleAdminSync(client, parameters);
|
|
1154
1154
|
}
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Sets the supply cap for a TIP20 token.
|
|
@@ -1158,11 +1158,11 @@ export async function setRoleAdminSync(config, parameters) {
|
|
|
1158
1158
|
* @example
|
|
1159
1159
|
* ```ts
|
|
1160
1160
|
* import { createConfig, http } from '@wagmi/core'
|
|
1161
|
-
* import { tempo } from '
|
|
1161
|
+
* import { tempo } from 'viem/chains'
|
|
1162
1162
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1163
1163
|
*
|
|
1164
1164
|
* const config = createConfig({
|
|
1165
|
-
* chains: [
|
|
1165
|
+
* chains: [tempoTestnet],
|
|
1166
1166
|
* transports: {
|
|
1167
1167
|
* [tempo.id]: http(),
|
|
1168
1168
|
* },
|
|
@@ -1186,7 +1186,7 @@ export async function setSupplyCap(config, parameters) {
|
|
|
1186
1186
|
chainId,
|
|
1187
1187
|
connector,
|
|
1188
1188
|
});
|
|
1189
|
-
return
|
|
1189
|
+
return Actions.token.setSupplyCap(client, parameters);
|
|
1190
1190
|
}
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Sets the supply cap for a TIP20 token.
|
|
@@ -1197,11 +1197,11 @@ export async function setSupplyCap(config, parameters) {
|
|
|
1197
1197
|
* @example
|
|
1198
1198
|
* ```ts
|
|
1199
1199
|
* import { createConfig, http } from '@wagmi/core'
|
|
1200
|
-
* import { tempo } from '
|
|
1200
|
+
* import { tempo } from 'viem/chains'
|
|
1201
1201
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1202
1202
|
*
|
|
1203
1203
|
* const config = createConfig({
|
|
1204
|
-
* chains: [
|
|
1204
|
+
* chains: [tempoTestnet],
|
|
1205
1205
|
* transports: {
|
|
1206
1206
|
* [tempo.id]: http(),
|
|
1207
1207
|
* },
|
|
@@ -1225,7 +1225,7 @@ export async function setSupplyCapSync(config, parameters) {
|
|
|
1225
1225
|
chainId,
|
|
1226
1226
|
connector,
|
|
1227
1227
|
});
|
|
1228
|
-
return
|
|
1228
|
+
return Actions.token.setSupplyCapSync(client, parameters);
|
|
1229
1229
|
}
|
|
1230
1230
|
/**
|
|
1231
1231
|
* Transfers TIP20 tokens to another address.
|
|
@@ -1233,11 +1233,11 @@ export async function setSupplyCapSync(config, parameters) {
|
|
|
1233
1233
|
* @example
|
|
1234
1234
|
* ```ts
|
|
1235
1235
|
* import { createConfig, http } from '@wagmi/core'
|
|
1236
|
-
* import { tempo } from '
|
|
1236
|
+
* import { tempo } from 'viem/chains'
|
|
1237
1237
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1238
1238
|
*
|
|
1239
1239
|
* const config = createConfig({
|
|
1240
|
-
* chains: [
|
|
1240
|
+
* chains: [tempoTestnet],
|
|
1241
1241
|
* transports: {
|
|
1242
1242
|
* [tempo.id]: http(),
|
|
1243
1243
|
* },
|
|
@@ -1261,7 +1261,7 @@ export async function transfer(config, parameters) {
|
|
|
1261
1261
|
chainId,
|
|
1262
1262
|
connector,
|
|
1263
1263
|
});
|
|
1264
|
-
return
|
|
1264
|
+
return Actions.token.transfer(client, parameters);
|
|
1265
1265
|
}
|
|
1266
1266
|
/**
|
|
1267
1267
|
* Transfers TIP20 tokens to another address.
|
|
@@ -1272,11 +1272,11 @@ export async function transfer(config, parameters) {
|
|
|
1272
1272
|
* @example
|
|
1273
1273
|
* ```ts
|
|
1274
1274
|
* import { createConfig, http } from '@wagmi/core'
|
|
1275
|
-
* import { tempo } from '
|
|
1275
|
+
* import { tempo } from 'viem/chains'
|
|
1276
1276
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1277
1277
|
*
|
|
1278
1278
|
* const config = createConfig({
|
|
1279
|
-
* chains: [
|
|
1279
|
+
* chains: [tempoTestnet],
|
|
1280
1280
|
* transports: {
|
|
1281
1281
|
* [tempo.id]: http(),
|
|
1282
1282
|
* },
|
|
@@ -1300,7 +1300,7 @@ export async function transferSync(config, parameters) {
|
|
|
1300
1300
|
chainId,
|
|
1301
1301
|
connector,
|
|
1302
1302
|
});
|
|
1303
|
-
return
|
|
1303
|
+
return Actions.token.transferSync(client, parameters);
|
|
1304
1304
|
}
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Unpauses a TIP20 token.
|
|
@@ -1308,11 +1308,11 @@ export async function transferSync(config, parameters) {
|
|
|
1308
1308
|
* @example
|
|
1309
1309
|
* ```ts
|
|
1310
1310
|
* import { createConfig, http } from '@wagmi/core'
|
|
1311
|
-
* import { tempo } from '
|
|
1311
|
+
* import { tempo } from 'viem/chains'
|
|
1312
1312
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1313
1313
|
*
|
|
1314
1314
|
* const config = createConfig({
|
|
1315
|
-
* chains: [
|
|
1315
|
+
* chains: [tempoTestnet],
|
|
1316
1316
|
* transports: {
|
|
1317
1317
|
* [tempo.id]: http(),
|
|
1318
1318
|
* },
|
|
@@ -1335,7 +1335,7 @@ export async function unpause(config, parameters) {
|
|
|
1335
1335
|
chainId,
|
|
1336
1336
|
connector,
|
|
1337
1337
|
});
|
|
1338
|
-
return
|
|
1338
|
+
return Actions.token.unpause(client, parameters);
|
|
1339
1339
|
}
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Unpauses a TIP20 token.
|
|
@@ -1346,11 +1346,11 @@ export async function unpause(config, parameters) {
|
|
|
1346
1346
|
* @example
|
|
1347
1347
|
* ```ts
|
|
1348
1348
|
* import { createConfig, http } from '@wagmi/core'
|
|
1349
|
-
* import { tempo } from '
|
|
1349
|
+
* import { tempo } from 'viem/chains'
|
|
1350
1350
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1351
1351
|
*
|
|
1352
1352
|
* const config = createConfig({
|
|
1353
|
-
* chains: [
|
|
1353
|
+
* chains: [tempoTestnet],
|
|
1354
1354
|
* transports: {
|
|
1355
1355
|
* [tempo.id]: http(),
|
|
1356
1356
|
* },
|
|
@@ -1373,7 +1373,7 @@ export async function unpauseSync(config, parameters) {
|
|
|
1373
1373
|
chainId,
|
|
1374
1374
|
connector,
|
|
1375
1375
|
});
|
|
1376
|
-
return
|
|
1376
|
+
return Actions.token.unpauseSync(client, parameters);
|
|
1377
1377
|
}
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Prepares the quote token update for a TIP20 token.
|
|
@@ -1381,11 +1381,11 @@ export async function unpauseSync(config, parameters) {
|
|
|
1381
1381
|
* @example
|
|
1382
1382
|
* ```ts
|
|
1383
1383
|
* import { createConfig, http } from '@wagmi/core'
|
|
1384
|
-
* import { tempo } from '
|
|
1384
|
+
* import { tempo } from 'viem/chains'
|
|
1385
1385
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1386
1386
|
*
|
|
1387
1387
|
* const config = createConfig({
|
|
1388
|
-
* chains: [
|
|
1388
|
+
* chains: [tempoTestnet],
|
|
1389
1389
|
* transports: {
|
|
1390
1390
|
* [tempo.id]: http(),
|
|
1391
1391
|
* },
|
|
@@ -1409,7 +1409,7 @@ export async function prepareUpdateQuoteToken(config, parameters) {
|
|
|
1409
1409
|
chainId,
|
|
1410
1410
|
connector,
|
|
1411
1411
|
});
|
|
1412
|
-
return
|
|
1412
|
+
return Actions.token.prepareUpdateQuoteToken(client, parameters);
|
|
1413
1413
|
}
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Prepares the quote token update for a TIP20 token.
|
|
@@ -1420,11 +1420,11 @@ export async function prepareUpdateQuoteToken(config, parameters) {
|
|
|
1420
1420
|
* @example
|
|
1421
1421
|
* ```ts
|
|
1422
1422
|
* import { createConfig, http } from '@wagmi/core'
|
|
1423
|
-
* import { tempo } from '
|
|
1423
|
+
* import { tempo } from 'viem/chains'
|
|
1424
1424
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1425
1425
|
*
|
|
1426
1426
|
* const config = createConfig({
|
|
1427
|
-
* chains: [
|
|
1427
|
+
* chains: [tempoTestnet],
|
|
1428
1428
|
* transports: {
|
|
1429
1429
|
* [tempo.id]: http(),
|
|
1430
1430
|
* },
|
|
@@ -1448,7 +1448,7 @@ export async function prepareUpdateQuoteTokenSync(config, parameters) {
|
|
|
1448
1448
|
chainId,
|
|
1449
1449
|
connector,
|
|
1450
1450
|
});
|
|
1451
|
-
return
|
|
1451
|
+
return Actions.token.prepareUpdateQuoteTokenSync(client, parameters);
|
|
1452
1452
|
}
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Watches for TIP20 token role admin updates.
|
|
@@ -1456,11 +1456,11 @@ export async function prepareUpdateQuoteTokenSync(config, parameters) {
|
|
|
1456
1456
|
* @example
|
|
1457
1457
|
* ```ts
|
|
1458
1458
|
* import { createConfig, http } from '@wagmi/core'
|
|
1459
|
-
* import { tempo } from '
|
|
1459
|
+
* import { tempo } from 'viem/chains'
|
|
1460
1460
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1461
1461
|
*
|
|
1462
1462
|
* const config = createConfig({
|
|
1463
|
-
* chains: [
|
|
1463
|
+
* chains: [tempoTestnet],
|
|
1464
1464
|
* transports: {
|
|
1465
1465
|
* [tempo.id]: http(),
|
|
1466
1466
|
* },
|
|
@@ -1480,7 +1480,7 @@ export async function prepareUpdateQuoteTokenSync(config, parameters) {
|
|
|
1480
1480
|
export function watchAdminRole(config, parameters) {
|
|
1481
1481
|
const { chainId, ...rest } = parameters;
|
|
1482
1482
|
const client = config.getClient({ chainId });
|
|
1483
|
-
return
|
|
1483
|
+
return Actions.token.watchAdminRole(client, rest);
|
|
1484
1484
|
}
|
|
1485
1485
|
/**
|
|
1486
1486
|
* Watches for TIP20 token approval events.
|
|
@@ -1488,11 +1488,11 @@ export function watchAdminRole(config, parameters) {
|
|
|
1488
1488
|
* @example
|
|
1489
1489
|
* ```ts
|
|
1490
1490
|
* import { createConfig, http } from '@wagmi/core'
|
|
1491
|
-
* import { tempo } from '
|
|
1491
|
+
* import { tempo } from 'viem/chains'
|
|
1492
1492
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1493
1493
|
*
|
|
1494
1494
|
* const config = createConfig({
|
|
1495
|
-
* chains: [
|
|
1495
|
+
* chains: [tempoTestnet],
|
|
1496
1496
|
* transports: {
|
|
1497
1497
|
* [tempo.id]: http(),
|
|
1498
1498
|
* },
|
|
@@ -1512,7 +1512,7 @@ export function watchAdminRole(config, parameters) {
|
|
|
1512
1512
|
export function watchApprove(config, parameters) {
|
|
1513
1513
|
const { chainId, ...rest } = parameters;
|
|
1514
1514
|
const client = config.getClient({ chainId });
|
|
1515
|
-
return
|
|
1515
|
+
return Actions.token.watchApprove(client, rest);
|
|
1516
1516
|
}
|
|
1517
1517
|
/**
|
|
1518
1518
|
* Watches for TIP20 token burn events.
|
|
@@ -1520,11 +1520,11 @@ export function watchApprove(config, parameters) {
|
|
|
1520
1520
|
* @example
|
|
1521
1521
|
* ```ts
|
|
1522
1522
|
* import { createConfig, http } from '@wagmi/core'
|
|
1523
|
-
* import { tempo } from '
|
|
1523
|
+
* import { tempo } from 'viem/chains'
|
|
1524
1524
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1525
1525
|
*
|
|
1526
1526
|
* const config = createConfig({
|
|
1527
|
-
* chains: [
|
|
1527
|
+
* chains: [tempoTestnet],
|
|
1528
1528
|
* transports: {
|
|
1529
1529
|
* [tempo.id]: http(),
|
|
1530
1530
|
* },
|
|
@@ -1544,7 +1544,7 @@ export function watchApprove(config, parameters) {
|
|
|
1544
1544
|
export function watchBurn(config, parameters) {
|
|
1545
1545
|
const { chainId, ...rest } = parameters;
|
|
1546
1546
|
const client = config.getClient({ chainId });
|
|
1547
|
-
return
|
|
1547
|
+
return Actions.token.watchBurn(client, rest);
|
|
1548
1548
|
}
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Watches for new TIP20 tokens created.
|
|
@@ -1552,11 +1552,11 @@ export function watchBurn(config, parameters) {
|
|
|
1552
1552
|
* @example
|
|
1553
1553
|
* ```ts
|
|
1554
1554
|
* import { createConfig, http } from '@wagmi/core'
|
|
1555
|
-
* import { tempo } from '
|
|
1555
|
+
* import { tempo } from 'viem/chains'
|
|
1556
1556
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1557
1557
|
*
|
|
1558
1558
|
* const config = createConfig({
|
|
1559
|
-
* chains: [
|
|
1559
|
+
* chains: [tempoTestnet],
|
|
1560
1560
|
* transports: {
|
|
1561
1561
|
* [tempo.id]: http(),
|
|
1562
1562
|
* },
|
|
@@ -1576,7 +1576,7 @@ export function watchBurn(config, parameters) {
|
|
|
1576
1576
|
export function watchCreate(config, parameters) {
|
|
1577
1577
|
const { chainId, ...rest } = parameters;
|
|
1578
1578
|
const client = config.getClient({ chainId });
|
|
1579
|
-
return
|
|
1579
|
+
return Actions.token.watchCreate(client, rest);
|
|
1580
1580
|
}
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Watches for TIP20 token mint events.
|
|
@@ -1584,11 +1584,11 @@ export function watchCreate(config, parameters) {
|
|
|
1584
1584
|
* @example
|
|
1585
1585
|
* ```ts
|
|
1586
1586
|
* import { createConfig, http } from '@wagmi/core'
|
|
1587
|
-
* import { tempo } from '
|
|
1587
|
+
* import { tempo } from 'viem/chains'
|
|
1588
1588
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1589
1589
|
*
|
|
1590
1590
|
* const config = createConfig({
|
|
1591
|
-
* chains: [
|
|
1591
|
+
* chains: [tempoTestnet],
|
|
1592
1592
|
* transports: {
|
|
1593
1593
|
* [tempo.id]: http(),
|
|
1594
1594
|
* },
|
|
@@ -1608,7 +1608,7 @@ export function watchCreate(config, parameters) {
|
|
|
1608
1608
|
export function watchMint(config, parameters) {
|
|
1609
1609
|
const { chainId, ...rest } = parameters;
|
|
1610
1610
|
const client = config.getClient({ chainId });
|
|
1611
|
-
return
|
|
1611
|
+
return Actions.token.watchMint(client, rest);
|
|
1612
1612
|
}
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Watches for TIP20 token role membership updates.
|
|
@@ -1616,11 +1616,11 @@ export function watchMint(config, parameters) {
|
|
|
1616
1616
|
* @example
|
|
1617
1617
|
* ```ts
|
|
1618
1618
|
* import { createConfig, http } from '@wagmi/core'
|
|
1619
|
-
* import { tempo } from '
|
|
1619
|
+
* import { tempo } from 'viem/chains'
|
|
1620
1620
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1621
1621
|
*
|
|
1622
1622
|
* const config = createConfig({
|
|
1623
|
-
* chains: [
|
|
1623
|
+
* chains: [tempoTestnet],
|
|
1624
1624
|
* transports: {
|
|
1625
1625
|
* [tempo.id]: http(),
|
|
1626
1626
|
* },
|
|
@@ -1640,7 +1640,7 @@ export function watchMint(config, parameters) {
|
|
|
1640
1640
|
export function watchRole(config, parameters) {
|
|
1641
1641
|
const { chainId, ...rest } = parameters;
|
|
1642
1642
|
const client = config.getClient({ chainId });
|
|
1643
|
-
return
|
|
1643
|
+
return Actions.token.watchRole(client, rest);
|
|
1644
1644
|
}
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Watches for TIP20 token transfer events.
|
|
@@ -1648,11 +1648,11 @@ export function watchRole(config, parameters) {
|
|
|
1648
1648
|
* @example
|
|
1649
1649
|
* ```ts
|
|
1650
1650
|
* import { createConfig, http } from '@wagmi/core'
|
|
1651
|
-
* import { tempo } from '
|
|
1651
|
+
* import { tempo } from 'viem/chains'
|
|
1652
1652
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1653
1653
|
*
|
|
1654
1654
|
* const config = createConfig({
|
|
1655
|
-
* chains: [
|
|
1655
|
+
* chains: [tempoTestnet],
|
|
1656
1656
|
* transports: {
|
|
1657
1657
|
* [tempo.id]: http(),
|
|
1658
1658
|
* },
|
|
@@ -1672,7 +1672,7 @@ export function watchRole(config, parameters) {
|
|
|
1672
1672
|
export function watchTransfer(config, parameters) {
|
|
1673
1673
|
const { chainId, ...rest } = parameters;
|
|
1674
1674
|
const client = config.getClient({ chainId });
|
|
1675
|
-
return
|
|
1675
|
+
return Actions.token.watchTransfer(client, rest);
|
|
1676
1676
|
}
|
|
1677
1677
|
/**
|
|
1678
1678
|
* Watches for TIP20 token quote token update events.
|
|
@@ -1680,11 +1680,11 @@ export function watchTransfer(config, parameters) {
|
|
|
1680
1680
|
* @example
|
|
1681
1681
|
* ```ts
|
|
1682
1682
|
* import { createConfig, http } from '@wagmi/core'
|
|
1683
|
-
* import { tempo } from '
|
|
1683
|
+
* import { tempo } from 'viem/chains'
|
|
1684
1684
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1685
1685
|
*
|
|
1686
1686
|
* const config = createConfig({
|
|
1687
|
-
* chains: [
|
|
1687
|
+
* chains: [tempoTestnet],
|
|
1688
1688
|
* transports: {
|
|
1689
1689
|
* [tempo.id]: http(),
|
|
1690
1690
|
* },
|
|
@@ -1707,6 +1707,6 @@ export function watchTransfer(config, parameters) {
|
|
|
1707
1707
|
export function watchUpdateQuoteToken(config, parameters) {
|
|
1708
1708
|
const { chainId, ...rest } = parameters;
|
|
1709
1709
|
const client = config.getClient({ chainId });
|
|
1710
|
-
return
|
|
1710
|
+
return Actions.token.watchUpdateQuoteToken(client, rest);
|
|
1711
1711
|
}
|
|
1712
1712
|
//# sourceMappingURL=token.js.map
|