tempo.ts 0.12.1 → 0.13.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +28 -34
  3. package/package.json +2 -28
  4. package/dist/wagmi/Actions/amm.d.ts +0 -418
  5. package/dist/wagmi/Actions/amm.d.ts.map +0 -1
  6. package/dist/wagmi/Actions/amm.js +0 -462
  7. package/dist/wagmi/Actions/amm.js.map +0 -1
  8. package/dist/wagmi/Actions/dex.d.ts +0 -864
  9. package/dist/wagmi/Actions/dex.d.ts.map +0 -1
  10. package/dist/wagmi/Actions/dex.js +0 -968
  11. package/dist/wagmi/Actions/dex.js.map +0 -1
  12. package/dist/wagmi/Actions/faucet.d.ts +0 -66
  13. package/dist/wagmi/Actions/faucet.d.ts.map +0 -1
  14. package/dist/wagmi/Actions/faucet.js +0 -64
  15. package/dist/wagmi/Actions/faucet.js.map +0 -1
  16. package/dist/wagmi/Actions/fee.d.ts +0 -111
  17. package/dist/wagmi/Actions/fee.d.ts.map +0 -1
  18. package/dist/wagmi/Actions/fee.js +0 -126
  19. package/dist/wagmi/Actions/fee.js.map +0 -1
  20. package/dist/wagmi/Actions/index.d.ts +0 -9
  21. package/dist/wagmi/Actions/index.d.ts.map +0 -1
  22. package/dist/wagmi/Actions/index.js +0 -9
  23. package/dist/wagmi/Actions/index.js.map +0 -1
  24. package/dist/wagmi/Actions/nonce.d.ts +0 -77
  25. package/dist/wagmi/Actions/nonce.d.ts.map +0 -1
  26. package/dist/wagmi/Actions/nonce.js +0 -87
  27. package/dist/wagmi/Actions/nonce.js.map +0 -1
  28. package/dist/wagmi/Actions/policy.d.ts +0 -480
  29. package/dist/wagmi/Actions/policy.d.ts.map +0 -1
  30. package/dist/wagmi/Actions/policy.js +0 -530
  31. package/dist/wagmi/Actions/policy.js.map +0 -1
  32. package/dist/wagmi/Actions/reward.d.ts +0 -346
  33. package/dist/wagmi/Actions/reward.d.ts.map +0 -1
  34. package/dist/wagmi/Actions/reward.js +0 -382
  35. package/dist/wagmi/Actions/reward.js.map +0 -1
  36. package/dist/wagmi/Actions/token.d.ts +0 -1546
  37. package/dist/wagmi/Actions/token.d.ts.map +0 -1
  38. package/dist/wagmi/Actions/token.js +0 -1712
  39. package/dist/wagmi/Actions/token.js.map +0 -1
  40. package/dist/wagmi/Connector.d.ts +0 -91
  41. package/dist/wagmi/Connector.d.ts.map +0 -1
  42. package/dist/wagmi/Connector.js +0 -473
  43. package/dist/wagmi/Connector.js.map +0 -1
  44. package/dist/wagmi/Hooks/amm.d.ts +0 -411
  45. package/dist/wagmi/Hooks/amm.d.ts.map +0 -1
  46. package/dist/wagmi/Hooks/amm.js +0 -494
  47. package/dist/wagmi/Hooks/amm.js.map +0 -1
  48. package/dist/wagmi/Hooks/dex.d.ts +0 -773
  49. package/dist/wagmi/Hooks/dex.d.ts.map +0 -1
  50. package/dist/wagmi/Hooks/dex.js +0 -921
  51. package/dist/wagmi/Hooks/dex.js.map +0 -1
  52. package/dist/wagmi/Hooks/faucet.d.ts +0 -71
  53. package/dist/wagmi/Hooks/faucet.d.ts.map +0 -1
  54. package/dist/wagmi/Hooks/faucet.js +0 -76
  55. package/dist/wagmi/Hooks/faucet.js.map +0 -1
  56. package/dist/wagmi/Hooks/fee.d.ts +0 -97
  57. package/dist/wagmi/Hooks/fee.d.ts.map +0 -1
  58. package/dist/wagmi/Hooks/fee.js +0 -109
  59. package/dist/wagmi/Hooks/fee.js.map +0 -1
  60. package/dist/wagmi/Hooks/index.d.ts +0 -9
  61. package/dist/wagmi/Hooks/index.d.ts.map +0 -1
  62. package/dist/wagmi/Hooks/index.js +0 -9
  63. package/dist/wagmi/Hooks/index.js.map +0 -1
  64. package/dist/wagmi/Hooks/nonce.d.ts +0 -59
  65. package/dist/wagmi/Hooks/nonce.d.ts.map +0 -1
  66. package/dist/wagmi/Hooks/nonce.js +0 -75
  67. package/dist/wagmi/Hooks/nonce.js.map +0 -1
  68. package/dist/wagmi/Hooks/policy.d.ts +0 -423
  69. package/dist/wagmi/Hooks/policy.d.ts.map +0 -1
  70. package/dist/wagmi/Hooks/policy.js +0 -510
  71. package/dist/wagmi/Hooks/policy.js.map +0 -1
  72. package/dist/wagmi/Hooks/reward.d.ts +0 -305
  73. package/dist/wagmi/Hooks/reward.d.ts.map +0 -1
  74. package/dist/wagmi/Hooks/reward.js +0 -368
  75. package/dist/wagmi/Hooks/reward.js.map +0 -1
  76. package/dist/wagmi/Hooks/token.d.ts +0 -1388
  77. package/dist/wagmi/Hooks/token.d.ts.map +0 -1
  78. package/dist/wagmi/Hooks/token.js +0 -1657
  79. package/dist/wagmi/Hooks/token.js.map +0 -1
  80. package/dist/wagmi/KeyManager.d.ts +0 -60
  81. package/dist/wagmi/KeyManager.d.ts.map +0 -1
  82. package/dist/wagmi/KeyManager.js +0 -106
  83. package/dist/wagmi/KeyManager.js.map +0 -1
  84. package/dist/wagmi/index.d.ts +0 -5
  85. package/dist/wagmi/index.d.ts.map +0 -1
  86. package/dist/wagmi/index.js +0 -5
  87. package/dist/wagmi/index.js.map +0 -1
  88. package/src/wagmi/Actions/amm.test.ts +0 -208
  89. package/src/wagmi/Actions/amm.ts +0 -690
  90. package/src/wagmi/Actions/dex.test.ts +0 -1482
  91. package/src/wagmi/Actions/dex.ts +0 -1540
  92. package/src/wagmi/Actions/faucet.ts +0 -89
  93. package/src/wagmi/Actions/fee.test.ts +0 -63
  94. package/src/wagmi/Actions/fee.ts +0 -211
  95. package/src/wagmi/Actions/index.ts +0 -8
  96. package/src/wagmi/Actions/nonce.test.ts +0 -82
  97. package/src/wagmi/Actions/nonce.ts +0 -139
  98. package/src/wagmi/Actions/policy.test.ts +0 -461
  99. package/src/wagmi/Actions/policy.ts +0 -817
  100. package/src/wagmi/Actions/reward.test.ts +0 -216
  101. package/src/wagmi/Actions/reward.ts +0 -613
  102. package/src/wagmi/Actions/token.test.ts +0 -1309
  103. package/src/wagmi/Actions/token.ts +0 -2644
  104. package/src/wagmi/Connector.test.ts +0 -56
  105. package/src/wagmi/Connector.ts +0 -670
  106. package/src/wagmi/Hooks/amm.test.ts +0 -564
  107. package/src/wagmi/Hooks/amm.ts +0 -796
  108. package/src/wagmi/Hooks/dex.test.ts +0 -992
  109. package/src/wagmi/Hooks/dex.ts +0 -1598
  110. package/src/wagmi/Hooks/faucet.ts +0 -144
  111. package/src/wagmi/Hooks/fee.test.ts +0 -166
  112. package/src/wagmi/Hooks/fee.ts +0 -206
  113. package/src/wagmi/Hooks/index.ts +0 -8
  114. package/src/wagmi/Hooks/nonce.test.ts +0 -142
  115. package/src/wagmi/Hooks/nonce.ts +0 -117
  116. package/src/wagmi/Hooks/policy.test.ts +0 -665
  117. package/src/wagmi/Hooks/policy.ts +0 -873
  118. package/src/wagmi/Hooks/reward.test.ts +0 -249
  119. package/src/wagmi/Hooks/reward.ts +0 -645
  120. package/src/wagmi/Hooks/token.test.ts +0 -1183
  121. package/src/wagmi/Hooks/token.ts +0 -2906
  122. package/src/wagmi/KeyManager.ts +0 -172
  123. package/src/wagmi/index.ts +0 -7
@@ -1,1546 +0,0 @@
1
- import type * as Query from '@tanstack/query-core';
2
- import { type Config } from '@wagmi/core';
3
- import type { ChainIdParameter, ConnectorParameter } from '@wagmi/core/internal';
4
- import type { Account } from 'viem';
5
- import { Actions } from 'viem/tempo';
6
- import type { RequiredBy, UnionOmit } from '../../internal/types.js';
7
- /**
8
- * Approves a spender to transfer TIP20 tokens on behalf of the caller.
9
- *
10
- * @example
11
- * ```ts
12
- * import { createConfig, http } from '@wagmi/core'
13
- * import { tempo } from 'viem/chains'
14
- * import { Actions } from 'tempo.ts/wagmi'
15
- *
16
- * const config = createConfig({
17
- * chains: [tempoTestnet],
18
- * transports: {
19
- * [tempo.id]: http(),
20
- * },
21
- * })
22
- *
23
- * const hash = await Actions.token.approve(config, {
24
- * spender: '0x...',
25
- * amount: 100n,
26
- * })
27
- * ```
28
- *
29
- * @param config - Config.
30
- * @param parameters - Parameters.
31
- * @returns Transaction hash.
32
- */
33
- export declare function approve<config extends Config>(config: config, parameters: approve.Parameters<config>): Promise<Actions.token.approve.ReturnValue>;
34
- export declare namespace approve {
35
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.approve.Parameters<config['chains'][number], Account>, 'chain'>;
36
- type ReturnValue = Actions.token.approve.ReturnValue;
37
- type ErrorType = Actions.token.approve.ErrorType;
38
- }
39
- /**
40
- * Approves a spender to transfer TIP20 tokens on behalf of the caller.
41
- *
42
- * Note: This is a synchronous action that waits for the transaction to
43
- * be included on a block before returning a response.
44
- *
45
- * @example
46
- * ```ts
47
- * import { createConfig, http } from '@wagmi/core'
48
- * import { tempo } from 'viem/chains'
49
- * import { Actions } from 'tempo.ts/wagmi'
50
- *
51
- * const config = createConfig({
52
- * chains: [tempoTestnet],
53
- * transports: {
54
- * [tempo.id]: http(),
55
- * },
56
- * })
57
- *
58
- * const result = await Actions.token.approveSync(config, {
59
- * spender: '0x...',
60
- * amount: 100n,
61
- * })
62
- * ```
63
- *
64
- * @param config - Config.
65
- * @param parameters - Parameters.
66
- * @returns The transaction receipt and event data.
67
- */
68
- export declare function approveSync<config extends Config>(config: config, parameters: approveSync.Parameters<config>): Promise<Actions.token.approveSync.ReturnValue>;
69
- export declare namespace approveSync {
70
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.approveSync.Parameters<config['chains'][number], Account>, 'chain'>;
71
- type ReturnValue = Actions.token.approveSync.ReturnValue;
72
- type ErrorType = Actions.token.approveSync.ErrorType;
73
- }
74
- /**
75
- * Burns TIP20 tokens from the caller's balance.
76
- *
77
- * @example
78
- * ```ts
79
- * import { createConfig, http } from '@wagmi/core'
80
- * import { tempo } from 'viem/chains'
81
- * import { Actions } from 'tempo.ts/wagmi'
82
- *
83
- * const config = createConfig({
84
- * chains: [tempoTestnet],
85
- * transports: {
86
- * [tempo.id]: http(),
87
- * },
88
- * })
89
- *
90
- * const hash = await Actions.token.burn(config, {
91
- * amount: 100n,
92
- * token: '0x...',
93
- * })
94
- * ```
95
- *
96
- * @param config - Config.
97
- * @param parameters - Parameters.
98
- * @returns Transaction hash.
99
- */
100
- export declare function burn<config extends Config>(config: config, parameters: burn.Parameters<config>): Promise<Actions.token.burn.ReturnValue>;
101
- export declare namespace burn {
102
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.burn.Parameters<config['chains'][number], Account>, 'chain'>;
103
- type ReturnValue = Actions.token.burn.ReturnValue;
104
- type ErrorType = Actions.token.burn.ErrorType;
105
- }
106
- /**
107
- * Burns TIP20 tokens from a blocked address.
108
- *
109
- * @example
110
- * ```ts
111
- * import { createConfig, http } from '@wagmi/core'
112
- * import { tempo } from 'viem/chains'
113
- * import { Actions } from 'tempo.ts/wagmi'
114
- *
115
- * const config = createConfig({
116
- * chains: [tempoTestnet],
117
- * transports: {
118
- * [tempo.id]: http(),
119
- * },
120
- * })
121
- *
122
- * const hash = await Actions.token.burnBlocked(config, {
123
- * from: '0x...',
124
- * amount: 100n,
125
- * token: '0x...',
126
- * })
127
- * ```
128
- *
129
- * @param config - Config.
130
- * @param parameters - Parameters.
131
- * @returns Transaction hash.
132
- */
133
- export declare function burnBlocked<config extends Config>(config: config, parameters: burnBlocked.Parameters<config>): Promise<Actions.token.burnBlocked.ReturnValue>;
134
- export declare namespace burnBlocked {
135
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.burnBlocked.Parameters<config['chains'][number], Account>, 'chain'>;
136
- type ReturnValue = Actions.token.burnBlocked.ReturnValue;
137
- type ErrorType = Actions.token.burnBlocked.ErrorType;
138
- }
139
- /**
140
- * Burns TIP20 tokens from a blocked address.
141
- *
142
- * Note: This is a synchronous action that waits for the transaction to
143
- * be included on a block before returning a response.
144
- *
145
- * @example
146
- * ```ts
147
- * import { createConfig, http } from '@wagmi/core'
148
- * import { tempo } from 'viem/chains'
149
- * import { Actions } from 'tempo.ts/wagmi'
150
- *
151
- * const config = createConfig({
152
- * chains: [tempoTestnet],
153
- * transports: {
154
- * [tempo.id]: http(),
155
- * },
156
- * })
157
- *
158
- * const result = await Actions.token.burnBlockedSync(config, {
159
- * from: '0x...',
160
- * amount: 100n,
161
- * token: '0x...',
162
- * })
163
- * ```
164
- *
165
- * @param config - Config.
166
- * @param parameters - Parameters.
167
- * @returns The transaction receipt and event data.
168
- */
169
- export declare function burnBlockedSync<config extends Config>(config: config, parameters: burnBlockedSync.Parameters<config>): Promise<Actions.token.burnBlockedSync.ReturnValue>;
170
- export declare namespace burnBlockedSync {
171
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.burnBlockedSync.Parameters<config['chains'][number], Account>, 'chain'>;
172
- type ReturnValue = Actions.token.burnBlockedSync.ReturnValue;
173
- type ErrorType = Actions.token.burnBlockedSync.ErrorType;
174
- }
175
- /**
176
- * Burns TIP20 tokens from the caller's balance.
177
- *
178
- * Note: This is a synchronous action that waits for the transaction to
179
- * be included on a block before returning a response.
180
- *
181
- * @example
182
- * ```ts
183
- * import { createConfig, http } from '@wagmi/core'
184
- * import { tempo } from 'viem/chains'
185
- * import { Actions } from 'tempo.ts/wagmi'
186
- *
187
- * const config = createConfig({
188
- * chains: [tempoTestnet],
189
- * transports: {
190
- * [tempo.id]: http(),
191
- * },
192
- * })
193
- *
194
- * const result = await Actions.token.burnSync(config, {
195
- * amount: 100n,
196
- * token: '0x...',
197
- * })
198
- * ```
199
- *
200
- * @param config - Config.
201
- * @param parameters - Parameters.
202
- * @returns The transaction receipt and event data.
203
- */
204
- export declare function burnSync<config extends Config>(config: config, parameters: burnSync.Parameters<config>): Promise<Actions.token.burnSync.ReturnValue>;
205
- export declare namespace burnSync {
206
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.burnSync.Parameters<config['chains'][number], Account>, 'chain'>;
207
- type ReturnValue = Actions.token.burnSync.ReturnValue;
208
- type ErrorType = Actions.token.burnSync.ErrorType;
209
- }
210
- /**
211
- * Changes the transfer policy ID for a TIP20 token.
212
- *
213
- * @example
214
- * ```ts
215
- * import { createConfig, http } from '@wagmi/core'
216
- * import { tempo } from 'viem/chains'
217
- * import { Actions } from 'tempo.ts/wagmi'
218
- *
219
- * const config = createConfig({
220
- * chains: [tempoTestnet],
221
- * transports: {
222
- * [tempo.id]: http(),
223
- * },
224
- * })
225
- *
226
- * const hash = await Actions.token.changeTransferPolicy(config, {
227
- * token: '0x...',
228
- * policyId: 1n,
229
- * })
230
- * ```
231
- *
232
- * @param config - Config.
233
- * @param parameters - Parameters.
234
- * @returns Transaction hash.
235
- */
236
- export declare function changeTransferPolicy<config extends Config>(config: config, parameters: changeTransferPolicy.Parameters<config>): Promise<Actions.token.changeTransferPolicy.ReturnValue>;
237
- export declare namespace changeTransferPolicy {
238
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.changeTransferPolicy.Parameters<config['chains'][number], Account>, 'chain'>;
239
- type ReturnValue = Actions.token.changeTransferPolicy.ReturnValue;
240
- type ErrorType = Actions.token.changeTransferPolicy.ErrorType;
241
- }
242
- /**
243
- * Changes the transfer policy ID for a TIP20 token.
244
- *
245
- * Note: This is a synchronous action that waits for the transaction to
246
- * be included on a block before returning a response.
247
- *
248
- * @example
249
- * ```ts
250
- * import { createConfig, http } from '@wagmi/core'
251
- * import { tempo } from 'viem/chains'
252
- * import { Actions } from 'tempo.ts/wagmi'
253
- *
254
- * const config = createConfig({
255
- * chains: [tempoTestnet],
256
- * transports: {
257
- * [tempo.id]: http(),
258
- * },
259
- * })
260
- *
261
- * const result = await Actions.token.changeTransferPolicySync(config, {
262
- * token: '0x...',
263
- * policyId: 1n,
264
- * })
265
- * ```
266
- *
267
- * @param config - Config.
268
- * @param parameters - Parameters.
269
- * @returns The transaction receipt and event data.
270
- */
271
- export declare function changeTransferPolicySync<config extends Config>(config: config, parameters: changeTransferPolicySync.Parameters<config>): Promise<Actions.token.changeTransferPolicySync.ReturnValue>;
272
- export declare namespace changeTransferPolicySync {
273
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.changeTransferPolicySync.Parameters<config['chains'][number], Account>, 'chain'>;
274
- type ReturnValue = Actions.token.changeTransferPolicySync.ReturnValue;
275
- type ErrorType = Actions.token.changeTransferPolicySync.ErrorType;
276
- }
277
- /**
278
- * Creates a new TIP20 token.
279
- *
280
- * @example
281
- * ```ts
282
- * import { createConfig, http } from '@wagmi/core'
283
- * import { tempo } from 'viem/chains'
284
- * import { Actions } from 'tempo.ts/wagmi'
285
- *
286
- * const config = createConfig({
287
- * chains: [tempoTestnet],
288
- * transports: {
289
- * [tempo.id]: http(),
290
- * },
291
- * })
292
- *
293
- * const hash = await Actions.token.create(config, {
294
- * name: 'My Token',
295
- * symbol: 'MTK',
296
- * currency: 'USD',
297
- * })
298
- * ```
299
- *
300
- * @param config - Config.
301
- * @param parameters - Parameters.
302
- * @returns Transaction hash.
303
- */
304
- export declare function create<config extends Config>(config: config, parameters: create.Parameters<config>): Promise<Actions.token.create.ReturnValue>;
305
- export declare namespace create {
306
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.create.Parameters<config['chains'][number], Account>, 'chain'>;
307
- type ReturnValue = Actions.token.create.ReturnValue;
308
- type ErrorType = Actions.token.create.ErrorType;
309
- }
310
- /**
311
- * Creates a new TIP20 token.
312
- *
313
- * Note: This is a synchronous action that waits for the transaction to
314
- * be included on a block before returning a response.
315
- *
316
- * @example
317
- * ```ts
318
- * import { createConfig, http } from '@wagmi/core'
319
- * import { tempo } from 'viem/chains'
320
- * import { Actions } from 'tempo.ts/wagmi'
321
- *
322
- * const config = createConfig({
323
- * chains: [tempoTestnet],
324
- * transports: {
325
- * [tempo.id]: http(),
326
- * },
327
- * })
328
- *
329
- * const result = await Actions.token.createSync(config, {
330
- * name: 'My Token',
331
- * symbol: 'MTK',
332
- * currency: 'USD',
333
- * })
334
- * ```
335
- *
336
- * @param config - Config.
337
- * @param parameters - Parameters.
338
- * @returns The transaction receipt and event data.
339
- */
340
- export declare function createSync<config extends Config>(config: config, parameters: createSync.Parameters<config>): Promise<Actions.token.createSync.ReturnValue>;
341
- export declare namespace createSync {
342
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.createSync.Parameters<config['chains'][number], Account>, 'chain'>;
343
- type ReturnValue = Actions.token.createSync.ReturnValue;
344
- type ErrorType = Actions.token.createSync.ErrorType;
345
- }
346
- /**
347
- * Updates the quote token for a TIP20 token.
348
- *
349
- * @example
350
- * ```ts
351
- * import { createConfig, http } from '@wagmi/core'
352
- * import { tempo } from 'viem/chains'
353
- * import { Actions } from 'tempo.ts/wagmi'
354
- *
355
- * const config = createConfig({
356
- * chains: [tempoTestnet],
357
- * transports: {
358
- * [tempo.id]: http(),
359
- * },
360
- * })
361
- *
362
- * const hash = await Actions.token.updateQuoteToken(config, {
363
- * token: '0x...',
364
- * })
365
- * ```
366
- *
367
- * @param config - Config.
368
- * @param parameters - Parameters.
369
- * @returns Transaction hash.
370
- */
371
- export declare function updateQuoteToken<config extends Config>(config: config, parameters: updateQuoteToken.Parameters<config>): Promise<Actions.token.updateQuoteToken.ReturnValue>;
372
- export declare namespace updateQuoteToken {
373
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.updateQuoteToken.Parameters<config['chains'][number], Account>, 'chain'>;
374
- type ReturnValue = Actions.token.updateQuoteToken.ReturnValue;
375
- type ErrorType = Actions.token.updateQuoteToken.ErrorType;
376
- }
377
- /**
378
- * Updates the quote token for a TIP20 token.
379
- *
380
- * Note: This is a synchronous action that waits for the transaction to
381
- * be included on a block before returning a response.
382
- *
383
- * @example
384
- * ```ts
385
- * import { createConfig, http } from '@wagmi/core'
386
- * import { tempo } from 'viem/chains'
387
- * import { Actions } from 'tempo.ts/wagmi'
388
- *
389
- * const config = createConfig({
390
- * chains: [tempoTestnet],
391
- * transports: {
392
- * [tempo.id]: http(),
393
- * },
394
- * })
395
- *
396
- * const result = await Actions.token.updateQuoteTokenSync(config, {
397
- * token: '0x...',
398
- * })
399
- * ```
400
- *
401
- * @param config - Config.
402
- * @param parameters - Parameters.
403
- * @returns The transaction receipt and event data.
404
- */
405
- export declare function updateQuoteTokenSync<config extends Config>(config: config, parameters: updateQuoteTokenSync.Parameters<config>): Promise<Actions.token.updateQuoteTokenSync.ReturnValue>;
406
- export declare namespace updateQuoteTokenSync {
407
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.updateQuoteTokenSync.Parameters<config['chains'][number], Account>, 'chain'>;
408
- type ReturnValue = Actions.token.updateQuoteTokenSync.ReturnValue;
409
- type ErrorType = Actions.token.updateQuoteTokenSync.ErrorType;
410
- }
411
- /**
412
- * Gets TIP20 token allowance.
413
- *
414
- * @example
415
- * ```ts
416
- * import { createConfig, http } from '@wagmi/core'
417
- * import { tempo } from 'viem/chains'
418
- * import { Actions } from 'tempo.ts/wagmi'
419
- *
420
- * const config = createConfig({
421
- * chains: [tempoTestnet],
422
- * transports: {
423
- * [tempo.id]: http(),
424
- * },
425
- * })
426
- *
427
- * const allowance = await Actions.token.getAllowance(config, {
428
- * account: '0x...',
429
- * spender: '0x...',
430
- * })
431
- * ```
432
- *
433
- * @param config - Config.
434
- * @param parameters - Parameters.
435
- * @returns The token allowance.
436
- */
437
- export declare function getAllowance<config extends Config>(config: config, parameters: getAllowance.Parameters<config>): Promise<bigint>;
438
- export declare namespace getAllowance {
439
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.getAllowance.Parameters;
440
- type ReturnValue = Actions.token.getAllowance.ReturnValue;
441
- function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getAllowance", Parameters<config>];
442
- type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
443
- function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
444
- namespace queryOptions {
445
- type Parameters<config extends Config, selectData = getAllowance.ReturnValue> = getAllowance.Parameters<config> & {
446
- query?: UnionOmit<ReturnValue<config, selectData>, 'queryKey' | 'queryFn'> | undefined;
447
- };
448
- type ReturnValue<config extends Config, selectData = getAllowance.ReturnValue> = RequiredBy<Query.QueryOptions<getAllowance.ReturnValue, Query.DefaultError, selectData, getAllowance.QueryKey<config>>, 'queryKey' | 'queryFn'>;
449
- }
450
- }
451
- /**
452
- * Gets TIP20 token balance for an address.
453
- *
454
- * @example
455
- * ```ts
456
- * import { createConfig, http } from '@wagmi/core'
457
- * import { tempo } from 'viem/chains'
458
- * import { Actions } from 'tempo.ts/wagmi'
459
- *
460
- * const config = createConfig({
461
- * chains: [tempoTestnet],
462
- * transports: {
463
- * [tempo.id]: http(),
464
- * },
465
- * })
466
- *
467
- * const balance = await Actions.token.getBalance(config, {
468
- * account: '0x...',
469
- * })
470
- * ```
471
- *
472
- * @param config - Config.
473
- * @param parameters - Parameters.
474
- * @returns The token balance.
475
- */
476
- export declare function getBalance<config extends Config>(config: config, parameters: getBalance.Parameters<config>): Promise<bigint>;
477
- export declare namespace getBalance {
478
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.getBalance.Parameters;
479
- type ReturnValue = Actions.token.getBalance.ReturnValue;
480
- function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getBalance", Parameters<config>];
481
- type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
482
- function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
483
- namespace queryOptions {
484
- type Parameters<config extends Config, selectData = getBalance.ReturnValue> = getBalance.Parameters<config> & {
485
- query?: UnionOmit<ReturnValue<config, selectData>, 'queryKey' | 'queryFn'> | undefined;
486
- };
487
- type ReturnValue<config extends Config, selectData = getBalance.ReturnValue> = RequiredBy<Query.QueryOptions<getBalance.ReturnValue, Query.DefaultError, selectData, getBalance.QueryKey<config>>, 'queryKey' | 'queryFn'>;
488
- }
489
- }
490
- /**
491
- * Gets TIP20 token metadata.
492
- *
493
- * @example
494
- * ```ts
495
- * import { createConfig, http } from '@wagmi/core'
496
- * import { tempo } from 'viem/chains'
497
- * import { Actions } from 'tempo.ts/wagmi'
498
- *
499
- * const config = createConfig({
500
- * chains: [tempoTestnet],
501
- * transports: {
502
- * [tempo.id]: http(),
503
- * },
504
- * })
505
- *
506
- * const metadata = await Actions.token.getMetadata(config, {
507
- * token: '0x...',
508
- * })
509
- * ```
510
- *
511
- * @param config - Config.
512
- * @param parameters - Parameters.
513
- * @returns The token metadata.
514
- */
515
- export declare function getMetadata<config extends Config>(config: config, parameters: getMetadata.Parameters<config>): Promise<{
516
- currency: string;
517
- decimals: number;
518
- quoteToken?: `0x${string}` | undefined;
519
- name: string;
520
- paused?: boolean | undefined | undefined;
521
- supplyCap?: bigint | undefined | undefined;
522
- symbol: string;
523
- totalSupply: bigint;
524
- transferPolicyId?: bigint | undefined | undefined;
525
- }>;
526
- export declare namespace getMetadata {
527
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.getMetadata.Parameters;
528
- type ReturnValue = Actions.token.getMetadata.ReturnValue;
529
- function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getMetadata", Parameters<config>];
530
- type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
531
- function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
532
- namespace queryOptions {
533
- type Parameters<config extends Config, selectData = getMetadata.ReturnValue> = getMetadata.Parameters<config> & {
534
- query?: UnionOmit<ReturnValue<config, selectData>, 'queryKey' | 'queryFn'> | undefined;
535
- };
536
- type ReturnValue<config extends Config, selectData = getMetadata.ReturnValue> = RequiredBy<Query.QueryOptions<getMetadata.ReturnValue, Query.DefaultError, selectData, getMetadata.QueryKey<config>>, 'queryKey' | 'queryFn'>;
537
- }
538
- }
539
- /**
540
- * Gets the admin role for a specific role in a TIP20 token.
541
- *
542
- * @example
543
- * ```ts
544
- * import { createConfig, http } from '@wagmi/core'
545
- * import { tempo } from 'viem/chains'
546
- * import { Actions } from 'tempo.ts/wagmi'
547
- *
548
- * const config = createConfig({
549
- * chains: [tempoTestnet],
550
- * transports: {
551
- * [tempo.id]: http(),
552
- * },
553
- * })
554
- *
555
- * const adminRole = await Actions.token.getRoleAdmin(config, {
556
- * role: 'issuer',
557
- * token: '0x...',
558
- * })
559
- * ```
560
- *
561
- * @param config - Config.
562
- * @param parameters - Parameters.
563
- * @returns The admin role hash.
564
- */
565
- export declare function getRoleAdmin<config extends Config>(config: config, parameters: getRoleAdmin.Parameters<config>): Promise<`0x${string}`>;
566
- export declare namespace getRoleAdmin {
567
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.getRoleAdmin.Parameters;
568
- type ReturnValue = Actions.token.getRoleAdmin.ReturnValue;
569
- function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getRoleAdmin", Parameters<config>];
570
- type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
571
- function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
572
- namespace queryOptions {
573
- type Parameters<config extends Config, selectData = getRoleAdmin.ReturnValue> = getRoleAdmin.Parameters<config> & {
574
- query?: UnionOmit<ReturnValue<config, selectData>, 'queryKey' | 'queryFn'> | undefined;
575
- };
576
- type ReturnValue<config extends Config, selectData = getRoleAdmin.ReturnValue> = RequiredBy<Query.QueryOptions<getRoleAdmin.ReturnValue, Query.DefaultError, selectData, getRoleAdmin.QueryKey<config>>, 'queryKey' | 'queryFn'>;
577
- }
578
- }
579
- /**
580
- * Grants a role for a TIP20 token.
581
- *
582
- * @example
583
- * ```ts
584
- * import { createConfig, http } from '@wagmi/core'
585
- * import { tempo } from 'viem/chains'
586
- * import { Actions } from 'tempo.ts/wagmi'
587
- *
588
- * const config = createConfig({
589
- * chains: [tempoTestnet],
590
- * transports: {
591
- * [tempo.id]: http(),
592
- * },
593
- * })
594
- *
595
- * const hash = await Actions.token.grantRoles(config, {
596
- * token: '0x...',
597
- * to: '0x...',
598
- * roles: ['issuer'],
599
- * })
600
- * ```
601
- *
602
- * @param config - Config.
603
- * @param parameters - Parameters.
604
- * @returns Transaction hash.
605
- */
606
- export declare function grantRoles<config extends Config>(config: config, parameters: grantRoles.Parameters<config>): Promise<Actions.token.grantRoles.ReturnValue>;
607
- export declare namespace grantRoles {
608
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.grantRoles.Parameters<config['chains'][number], Account>, 'chain'>;
609
- type ReturnValue = Actions.token.grantRoles.ReturnValue;
610
- type ErrorType = Actions.token.grantRoles.ErrorType;
611
- }
612
- /**
613
- * Grants a role for a TIP20 token.
614
- *
615
- * Note: This is a synchronous action that waits for the transaction to
616
- * be included on a block before returning a response.
617
- *
618
- * @example
619
- * ```ts
620
- * import { createConfig, http } from '@wagmi/core'
621
- * import { tempo } from 'viem/chains'
622
- * import { Actions } from 'tempo.ts/wagmi'
623
- *
624
- * const config = createConfig({
625
- * chains: [tempoTestnet],
626
- * transports: {
627
- * [tempo.id]: http(),
628
- * },
629
- * })
630
- *
631
- * const result = await Actions.token.grantRolesSync(config, {
632
- * token: '0x...',
633
- * to: '0x...',
634
- * roles: ['issuer'],
635
- * })
636
- * ```
637
- *
638
- * @param config - Config.
639
- * @param parameters - Parameters.
640
- * @returns The transaction receipt and event data.
641
- */
642
- export declare function grantRolesSync<config extends Config>(config: config, parameters: grantRolesSync.Parameters<config>): Promise<Actions.token.grantRolesSync.ReturnValue>;
643
- export declare namespace grantRolesSync {
644
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.grantRolesSync.Parameters<config['chains'][number], Account>, 'chain'>;
645
- type ReturnValue = Actions.token.grantRolesSync.ReturnValue;
646
- type ErrorType = Actions.token.grantRolesSync.ErrorType;
647
- }
648
- /**
649
- * Checks if an account has a specific role for a TIP20 token.
650
- *
651
- * @example
652
- * ```ts
653
- * import { createConfig, http } from '@wagmi/core'
654
- * import { tempo } from 'viem/chains'
655
- * import { Actions } from 'tempo.ts/wagmi'
656
- *
657
- * const config = createConfig({
658
- * chains: [tempoTestnet],
659
- * transports: {
660
- * [tempo.id]: http(),
661
- * },
662
- * })
663
- *
664
- * const hasRole = await Actions.token.hasRole(config, {
665
- * account: '0x...',
666
- * role: 'issuer',
667
- * token: '0x...',
668
- * })
669
- * ```
670
- *
671
- * @param config - Config.
672
- * @param parameters - Parameters.
673
- * @returns Whether the account has the role.
674
- */
675
- export declare function hasRole<config extends Config>(config: config, parameters: hasRole.Parameters<config>): Promise<boolean>;
676
- export declare namespace hasRole {
677
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.hasRole.Parameters;
678
- type ReturnValue = Actions.token.hasRole.ReturnValue;
679
- function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["hasRole", Parameters<config>];
680
- type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
681
- function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
682
- namespace queryOptions {
683
- type Parameters<config extends Config, selectData = hasRole.ReturnValue> = hasRole.Parameters<config> & {
684
- query?: UnionOmit<ReturnValue<config, selectData>, 'queryKey' | 'queryFn'> | undefined;
685
- };
686
- type ReturnValue<config extends Config, selectData = hasRole.ReturnValue> = RequiredBy<Query.QueryOptions<hasRole.ReturnValue, Query.DefaultError, selectData, hasRole.QueryKey<config>>, 'queryKey' | 'queryFn'>;
687
- }
688
- }
689
- /**
690
- * Mints TIP20 tokens to an address.
691
- *
692
- * @example
693
- * ```ts
694
- * import { createConfig, http } from '@wagmi/core'
695
- * import { tempo } from 'viem/chains'
696
- * import { Actions } from 'tempo.ts/wagmi'
697
- *
698
- * const config = createConfig({
699
- * chains: [tempoTestnet],
700
- * transports: {
701
- * [tempo.id]: http(),
702
- * },
703
- * })
704
- *
705
- * const hash = await Actions.token.mint(config, {
706
- * to: '0x...',
707
- * amount: 100n,
708
- * token: '0x...',
709
- * })
710
- * ```
711
- *
712
- * @param config - Config.
713
- * @param parameters - Parameters.
714
- * @returns Transaction hash.
715
- */
716
- export declare function mint<config extends Config>(config: config, parameters: mint.Parameters<config>): Promise<Actions.token.mint.ReturnValue>;
717
- export declare namespace mint {
718
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.mint.Parameters<config['chains'][number], Account>, 'chain'>;
719
- type ReturnValue = Actions.token.mint.ReturnValue;
720
- type ErrorType = Actions.token.mint.ErrorType;
721
- }
722
- /**
723
- * Mints TIP20 tokens to an address.
724
- *
725
- * Note: This is a synchronous action that waits for the transaction to
726
- * be included on a block before returning a response.
727
- *
728
- * @example
729
- * ```ts
730
- * import { createConfig, http } from '@wagmi/core'
731
- * import { tempo } from 'viem/chains'
732
- * import { Actions } from 'tempo.ts/wagmi'
733
- *
734
- * const config = createConfig({
735
- * chains: [tempoTestnet],
736
- * transports: {
737
- * [tempo.id]: http(),
738
- * },
739
- * })
740
- *
741
- * const result = await Actions.token.mintSync(config, {
742
- * to: '0x...',
743
- * amount: 100n,
744
- * token: '0x...',
745
- * })
746
- * ```
747
- *
748
- * @param config - Config.
749
- * @param parameters - Parameters.
750
- * @returns The transaction receipt and event data.
751
- */
752
- export declare function mintSync<config extends Config>(config: config, parameters: mintSync.Parameters<config>): Promise<Actions.token.mintSync.ReturnValue>;
753
- export declare namespace mintSync {
754
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.mintSync.Parameters<config['chains'][number], Account>, 'chain'>;
755
- type ReturnValue = Actions.token.mintSync.ReturnValue;
756
- type ErrorType = Actions.token.mintSync.ErrorType;
757
- }
758
- /**
759
- * Pauses a TIP20 token.
760
- *
761
- * @example
762
- * ```ts
763
- * import { createConfig, http } from '@wagmi/core'
764
- * import { tempo } from 'viem/chains'
765
- * import { Actions } from 'tempo.ts/wagmi'
766
- *
767
- * const config = createConfig({
768
- * chains: [tempoTestnet],
769
- * transports: {
770
- * [tempo.id]: http(),
771
- * },
772
- * })
773
- *
774
- * const hash = await Actions.token.pause(config, {
775
- * token: '0x...',
776
- * })
777
- * ```
778
- *
779
- * @param config - Config.
780
- * @param parameters - Parameters.
781
- * @returns Transaction hash.
782
- */
783
- export declare function pause<config extends Config>(config: config, parameters: pause.Parameters<config>): Promise<Actions.token.pause.ReturnValue>;
784
- export declare namespace pause {
785
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.pause.Parameters<config['chains'][number], Account>, 'chain'>;
786
- type ReturnValue = Actions.token.pause.ReturnValue;
787
- type ErrorType = Actions.token.pause.ErrorType;
788
- }
789
- /**
790
- * Pauses a TIP20 token.
791
- *
792
- * Note: This is a synchronous action that waits for the transaction to
793
- * be included on a block before returning a response.
794
- *
795
- * @example
796
- * ```ts
797
- * import { createConfig, http } from '@wagmi/core'
798
- * import { tempo } from 'viem/chains'
799
- * import { Actions } from 'tempo.ts/wagmi'
800
- *
801
- * const config = createConfig({
802
- * chains: [tempoTestnet],
803
- * transports: {
804
- * [tempo.id]: http(),
805
- * },
806
- * })
807
- *
808
- * const result = await Actions.token.pauseSync(config, {
809
- * token: '0x...',
810
- * })
811
- * ```
812
- *
813
- * @param config - Config.
814
- * @param parameters - Parameters.
815
- * @returns The transaction receipt and event data.
816
- */
817
- export declare function pauseSync<config extends Config>(config: config, parameters: pauseSync.Parameters<config>): Promise<Actions.token.pauseSync.ReturnValue>;
818
- export declare namespace pauseSync {
819
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.pauseSync.Parameters<config['chains'][number], Account>, 'chain'>;
820
- type ReturnValue = Actions.token.pauseSync.ReturnValue;
821
- type ErrorType = Actions.token.pauseSync.ErrorType;
822
- }
823
- /**
824
- * Renounces a role for a TIP20 token.
825
- *
826
- * @example
827
- * ```ts
828
- * import { createConfig, http } from '@wagmi/core'
829
- * import { tempo } from 'viem/chains'
830
- * import { Actions } from 'tempo.ts/wagmi'
831
- *
832
- * const config = createConfig({
833
- * chains: [tempoTestnet],
834
- * transports: {
835
- * [tempo.id]: http(),
836
- * },
837
- * })
838
- *
839
- * const hash = await Actions.token.renounceRoles(config, {
840
- * token: '0x...',
841
- * roles: ['issuer'],
842
- * })
843
- * ```
844
- *
845
- * @param config - Config.
846
- * @param parameters - Parameters.
847
- * @returns Transaction hash.
848
- */
849
- export declare function renounceRoles<config extends Config>(config: config, parameters: renounceRoles.Parameters<config>): Promise<Actions.token.renounceRoles.ReturnValue>;
850
- export declare namespace renounceRoles {
851
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.renounceRoles.Parameters<config['chains'][number], Account>, 'chain'>;
852
- type ReturnValue = Actions.token.renounceRoles.ReturnValue;
853
- type ErrorType = Actions.token.renounceRoles.ErrorType;
854
- }
855
- /**
856
- * Renounces a role for a TIP20 token.
857
- *
858
- * Note: This is a synchronous action that waits for the transaction to
859
- * be included on a block before returning a response.
860
- *
861
- * @example
862
- * ```ts
863
- * import { createConfig, http } from '@wagmi/core'
864
- * import { tempo } from 'viem/chains'
865
- * import { Actions } from 'tempo.ts/wagmi'
866
- *
867
- * const config = createConfig({
868
- * chains: [tempoTestnet],
869
- * transports: {
870
- * [tempo.id]: http(),
871
- * },
872
- * })
873
- *
874
- * const result = await Actions.token.renounceRolesSync(config, {
875
- * token: '0x...',
876
- * roles: ['issuer'],
877
- * })
878
- * ```
879
- *
880
- * @param config - Config.
881
- * @param parameters - Parameters.
882
- * @returns The transaction receipt and event data.
883
- */
884
- export declare function renounceRolesSync<config extends Config>(config: config, parameters: renounceRolesSync.Parameters<config>): Promise<Actions.token.renounceRolesSync.ReturnValue>;
885
- export declare namespace renounceRolesSync {
886
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.renounceRolesSync.Parameters<config['chains'][number], Account>, 'chain'>;
887
- type ReturnValue = Actions.token.renounceRolesSync.ReturnValue;
888
- type ErrorType = Actions.token.renounceRolesSync.ErrorType;
889
- }
890
- /**
891
- * Revokes a role for a TIP20 token.
892
- *
893
- * @example
894
- * ```ts
895
- * import { createConfig, http } from '@wagmi/core'
896
- * import { tempo } from 'viem/chains'
897
- * import { Actions } from 'tempo.ts/wagmi'
898
- *
899
- * const config = createConfig({
900
- * chains: [tempoTestnet],
901
- * transports: {
902
- * [tempo.id]: http(),
903
- * },
904
- * })
905
- *
906
- * const hash = await Actions.token.revokeRoles(config, {
907
- * token: '0x...',
908
- * from: '0x...',
909
- * roles: ['issuer'],
910
- * })
911
- * ```
912
- *
913
- * @param config - Config.
914
- * @param parameters - Parameters.
915
- * @returns Transaction hash.
916
- */
917
- export declare function revokeRoles<config extends Config>(config: config, parameters: revokeRoles.Parameters<config>): Promise<Actions.token.revokeRoles.ReturnValue>;
918
- export declare namespace revokeRoles {
919
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.revokeRoles.Parameters<config['chains'][number], Account>, 'chain'>;
920
- type ReturnValue = Actions.token.revokeRoles.ReturnValue;
921
- type ErrorType = Actions.token.revokeRoles.ErrorType;
922
- }
923
- /**
924
- * Revokes a role for a TIP20 token.
925
- *
926
- * Note: This is a synchronous action that waits for the transaction to
927
- * be included on a block before returning a response.
928
- *
929
- * @example
930
- * ```ts
931
- * import { createConfig, http } from '@wagmi/core'
932
- * import { tempo } from 'viem/chains'
933
- * import { Actions } from 'tempo.ts/wagmi'
934
- *
935
- * const config = createConfig({
936
- * chains: [tempoTestnet],
937
- * transports: {
938
- * [tempo.id]: http(),
939
- * },
940
- * })
941
- *
942
- * const result = await Actions.token.revokeRolesSync(config, {
943
- * token: '0x...',
944
- * from: '0x...',
945
- * roles: ['issuer'],
946
- * })
947
- * ```
948
- *
949
- * @param config - Config.
950
- * @param parameters - Parameters.
951
- * @returns The transaction receipt and event data.
952
- */
953
- export declare function revokeRolesSync<config extends Config>(config: config, parameters: revokeRolesSync.Parameters<config>): Promise<Actions.token.revokeRolesSync.ReturnValue>;
954
- export declare namespace revokeRolesSync {
955
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.revokeRolesSync.Parameters<config['chains'][number], Account>, 'chain'>;
956
- type ReturnValue = Actions.token.revokeRolesSync.ReturnValue;
957
- type ErrorType = Actions.token.revokeRolesSync.ErrorType;
958
- }
959
- /**
960
- * Sets the admin role for a specific role in a TIP20 token.
961
- *
962
- * @example
963
- * ```ts
964
- * import { createConfig, http } from '@wagmi/core'
965
- * import { tempo } from 'viem/chains'
966
- * import { Actions } from 'tempo.ts/wagmi'
967
- *
968
- * const config = createConfig({
969
- * chains: [tempoTestnet],
970
- * transports: {
971
- * [tempo.id]: http(),
972
- * },
973
- * })
974
- *
975
- * const hash = await Actions.token.setRoleAdmin(config, {
976
- * token: '0x...',
977
- * role: 'issuer',
978
- * adminRole: 'pause',
979
- * })
980
- * ```
981
- *
982
- * @param config - Config.
983
- * @param parameters - Parameters.
984
- * @returns Transaction hash.
985
- */
986
- export declare function setRoleAdmin<config extends Config>(config: config, parameters: setRoleAdmin.Parameters<config>): Promise<Actions.token.setRoleAdmin.ReturnValue>;
987
- export declare namespace setRoleAdmin {
988
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.setRoleAdmin.Parameters<config['chains'][number], Account>, 'chain'>;
989
- type ReturnValue = Actions.token.setRoleAdmin.ReturnValue;
990
- type ErrorType = Actions.token.setRoleAdmin.ErrorType;
991
- }
992
- /**
993
- * Sets the admin role for a specific role in a TIP20 token.
994
- *
995
- * Note: This is a synchronous action that waits for the transaction to
996
- * be included on a block before returning a response.
997
- *
998
- * @example
999
- * ```ts
1000
- * import { createConfig, http } from '@wagmi/core'
1001
- * import { tempo } from 'viem/chains'
1002
- * import { Actions } from 'tempo.ts/wagmi'
1003
- *
1004
- * const config = createConfig({
1005
- * chains: [tempoTestnet],
1006
- * transports: {
1007
- * [tempo.id]: http(),
1008
- * },
1009
- * })
1010
- *
1011
- * const result = await Actions.token.setRoleAdminSync(config, {
1012
- * token: '0x...',
1013
- * role: 'issuer',
1014
- * adminRole: 'pause',
1015
- * })
1016
- * ```
1017
- *
1018
- * @param config - Config.
1019
- * @param parameters - Parameters.
1020
- * @returns The transaction receipt and event data.
1021
- */
1022
- export declare function setRoleAdminSync<config extends Config>(config: config, parameters: setRoleAdminSync.Parameters<config>): Promise<Actions.token.setRoleAdminSync.ReturnValue>;
1023
- export declare namespace setRoleAdminSync {
1024
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.setRoleAdminSync.Parameters<config['chains'][number], Account>, 'chain'>;
1025
- type ReturnValue = Actions.token.setRoleAdminSync.ReturnValue;
1026
- type ErrorType = Actions.token.setRoleAdminSync.ErrorType;
1027
- }
1028
- /**
1029
- * Sets the supply cap for a TIP20 token.
1030
- *
1031
- * @example
1032
- * ```ts
1033
- * import { createConfig, http } from '@wagmi/core'
1034
- * import { tempo } from 'viem/chains'
1035
- * import { Actions } from 'tempo.ts/wagmi'
1036
- *
1037
- * const config = createConfig({
1038
- * chains: [tempoTestnet],
1039
- * transports: {
1040
- * [tempo.id]: http(),
1041
- * },
1042
- * })
1043
- *
1044
- * const hash = await Actions.token.setSupplyCap(config, {
1045
- * token: '0x...',
1046
- * supplyCap: 1000000n,
1047
- * })
1048
- * ```
1049
- *
1050
- * @param config - Config.
1051
- * @param parameters - Parameters.
1052
- * @returns Transaction hash.
1053
- */
1054
- export declare function setSupplyCap<config extends Config>(config: config, parameters: setSupplyCap.Parameters<config>): Promise<Actions.token.setSupplyCap.ReturnValue>;
1055
- export declare namespace setSupplyCap {
1056
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.setSupplyCap.Parameters<config['chains'][number], Account>, 'chain'>;
1057
- type ReturnValue = Actions.token.setSupplyCap.ReturnValue;
1058
- type ErrorType = Actions.token.setSupplyCap.ErrorType;
1059
- }
1060
- /**
1061
- * Sets the supply cap for a TIP20 token.
1062
- *
1063
- * Note: This is a synchronous action that waits for the transaction to
1064
- * be included on a block before returning a response.
1065
- *
1066
- * @example
1067
- * ```ts
1068
- * import { createConfig, http } from '@wagmi/core'
1069
- * import { tempo } from 'viem/chains'
1070
- * import { Actions } from 'tempo.ts/wagmi'
1071
- *
1072
- * const config = createConfig({
1073
- * chains: [tempoTestnet],
1074
- * transports: {
1075
- * [tempo.id]: http(),
1076
- * },
1077
- * })
1078
- *
1079
- * const result = await Actions.token.setSupplyCapSync(config, {
1080
- * token: '0x...',
1081
- * supplyCap: 1000000n,
1082
- * })
1083
- * ```
1084
- *
1085
- * @param config - Config.
1086
- * @param parameters - Parameters.
1087
- * @returns The transaction receipt and event data.
1088
- */
1089
- export declare function setSupplyCapSync<config extends Config>(config: config, parameters: setSupplyCapSync.Parameters<config>): Promise<Actions.token.setSupplyCapSync.ReturnValue>;
1090
- export declare namespace setSupplyCapSync {
1091
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.setSupplyCapSync.Parameters<config['chains'][number], Account>, 'chain'>;
1092
- type ReturnValue = Actions.token.setSupplyCapSync.ReturnValue;
1093
- type ErrorType = Actions.token.setSupplyCapSync.ErrorType;
1094
- }
1095
- /**
1096
- * Transfers TIP20 tokens to another address.
1097
- *
1098
- * @example
1099
- * ```ts
1100
- * import { createConfig, http } from '@wagmi/core'
1101
- * import { tempo } from 'viem/chains'
1102
- * import { Actions } from 'tempo.ts/wagmi'
1103
- *
1104
- * const config = createConfig({
1105
- * chains: [tempoTestnet],
1106
- * transports: {
1107
- * [tempo.id]: http(),
1108
- * },
1109
- * })
1110
- *
1111
- * const hash = await Actions.token.transfer(config, {
1112
- * to: '0x...',
1113
- * amount: 100n,
1114
- * })
1115
- * ```
1116
- *
1117
- * @param config - Config.
1118
- * @param parameters - Parameters.
1119
- * @returns Transaction hash.
1120
- */
1121
- export declare function transfer<config extends Config>(config: config, parameters: transfer.Parameters<config>): Promise<Actions.token.transfer.ReturnValue>;
1122
- export declare namespace transfer {
1123
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.transfer.Parameters<config['chains'][number], Account>, 'chain'>;
1124
- type ReturnValue = Actions.token.transfer.ReturnValue;
1125
- type ErrorType = Actions.token.transfer.ErrorType;
1126
- }
1127
- /**
1128
- * Transfers TIP20 tokens to another address.
1129
- *
1130
- * Note: This is a synchronous action that waits for the transaction to
1131
- * be included on a block before returning a response.
1132
- *
1133
- * @example
1134
- * ```ts
1135
- * import { createConfig, http } from '@wagmi/core'
1136
- * import { tempo } from 'viem/chains'
1137
- * import { Actions } from 'tempo.ts/wagmi'
1138
- *
1139
- * const config = createConfig({
1140
- * chains: [tempoTestnet],
1141
- * transports: {
1142
- * [tempo.id]: http(),
1143
- * },
1144
- * })
1145
- *
1146
- * const result = await Actions.token.transferSync(config, {
1147
- * to: '0x...',
1148
- * amount: 100n,
1149
- * })
1150
- * ```
1151
- *
1152
- * @param config - Config.
1153
- * @param parameters - Parameters.
1154
- * @returns The transaction receipt and event data.
1155
- */
1156
- export declare function transferSync<config extends Config>(config: config, parameters: transferSync.Parameters<config>): Promise<Actions.token.transferSync.ReturnValue>;
1157
- export declare namespace transferSync {
1158
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.transferSync.Parameters<config['chains'][number], Account>, 'chain'>;
1159
- type ReturnValue = Actions.token.transferSync.ReturnValue;
1160
- type ErrorType = Actions.token.transferSync.ErrorType;
1161
- }
1162
- /**
1163
- * Unpauses a TIP20 token.
1164
- *
1165
- * @example
1166
- * ```ts
1167
- * import { createConfig, http } from '@wagmi/core'
1168
- * import { tempo } from 'viem/chains'
1169
- * import { Actions } from 'tempo.ts/wagmi'
1170
- *
1171
- * const config = createConfig({
1172
- * chains: [tempoTestnet],
1173
- * transports: {
1174
- * [tempo.id]: http(),
1175
- * },
1176
- * })
1177
- *
1178
- * const hash = await Actions.token.unpause(config, {
1179
- * token: '0x...',
1180
- * })
1181
- * ```
1182
- *
1183
- * @param config - Config.
1184
- * @param parameters - Parameters.
1185
- * @returns Transaction hash.
1186
- */
1187
- export declare function unpause<config extends Config>(config: config, parameters: unpause.Parameters<config>): Promise<Actions.token.unpause.ReturnValue>;
1188
- export declare namespace unpause {
1189
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.unpause.Parameters<config['chains'][number], Account>, 'chain'>;
1190
- type ReturnValue = Actions.token.unpause.ReturnValue;
1191
- type ErrorType = Actions.token.unpause.ErrorType;
1192
- }
1193
- /**
1194
- * Unpauses a TIP20 token.
1195
- *
1196
- * Note: This is a synchronous action that waits for the transaction to
1197
- * be included on a block before returning a response.
1198
- *
1199
- * @example
1200
- * ```ts
1201
- * import { createConfig, http } from '@wagmi/core'
1202
- * import { tempo } from 'viem/chains'
1203
- * import { Actions } from 'tempo.ts/wagmi'
1204
- *
1205
- * const config = createConfig({
1206
- * chains: [tempoTestnet],
1207
- * transports: {
1208
- * [tempo.id]: http(),
1209
- * },
1210
- * })
1211
- *
1212
- * const result = await Actions.token.unpauseSync(config, {
1213
- * token: '0x...',
1214
- * })
1215
- * ```
1216
- *
1217
- * @param config - Config.
1218
- * @param parameters - Parameters.
1219
- * @returns The transaction receipt and event data.
1220
- */
1221
- export declare function unpauseSync<config extends Config>(config: config, parameters: unpauseSync.Parameters<config>): Promise<Actions.token.unpauseSync.ReturnValue>;
1222
- export declare namespace unpauseSync {
1223
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.unpauseSync.Parameters<config['chains'][number], Account>, 'chain'>;
1224
- type ReturnValue = Actions.token.unpauseSync.ReturnValue;
1225
- type ErrorType = Actions.token.unpauseSync.ErrorType;
1226
- }
1227
- /**
1228
- * Prepares the quote token update for a TIP20 token.
1229
- *
1230
- * @example
1231
- * ```ts
1232
- * import { createConfig, http } from '@wagmi/core'
1233
- * import { tempo } from 'viem/chains'
1234
- * import { Actions } from 'tempo.ts/wagmi'
1235
- *
1236
- * const config = createConfig({
1237
- * chains: [tempoTestnet],
1238
- * transports: {
1239
- * [tempo.id]: http(),
1240
- * },
1241
- * })
1242
- *
1243
- * const hash = await Actions.token.prepareUpdateQuoteToken(config, {
1244
- * token: '0x...',
1245
- * quoteToken: '0x...',
1246
- * })
1247
- * ```
1248
- *
1249
- * @param config - Config.
1250
- * @param parameters - Parameters.
1251
- * @returns Transaction hash.
1252
- */
1253
- export declare function prepareUpdateQuoteToken<config extends Config>(config: config, parameters: prepareUpdateQuoteToken.Parameters<config>): Promise<Actions.token.prepareUpdateQuoteToken.ReturnValue>;
1254
- export declare namespace prepareUpdateQuoteToken {
1255
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.prepareUpdateQuoteToken.Parameters<config['chains'][number], Account>, 'chain'>;
1256
- type ReturnValue = Actions.token.prepareUpdateQuoteToken.ReturnValue;
1257
- type ErrorType = Actions.token.prepareUpdateQuoteToken.ErrorType;
1258
- }
1259
- /**
1260
- * Prepares the quote token update for a TIP20 token.
1261
- *
1262
- * Note: This is a synchronous action that waits for the transaction to
1263
- * be included on a block before returning a response.
1264
- *
1265
- * @example
1266
- * ```ts
1267
- * import { createConfig, http } from '@wagmi/core'
1268
- * import { tempo } from 'viem/chains'
1269
- * import { Actions } from 'tempo.ts/wagmi'
1270
- *
1271
- * const config = createConfig({
1272
- * chains: [tempoTestnet],
1273
- * transports: {
1274
- * [tempo.id]: http(),
1275
- * },
1276
- * })
1277
- *
1278
- * const result = await Actions.token.prepareUpdateQuoteTokenSync(config, {
1279
- * token: '0x...',
1280
- * quoteToken: '0x...',
1281
- * })
1282
- * ```
1283
- *
1284
- * @param config - Config.
1285
- * @param parameters - Parameters.
1286
- * @returns The transaction receipt and event data.
1287
- */
1288
- export declare function prepareUpdateQuoteTokenSync<config extends Config>(config: config, parameters: prepareUpdateQuoteTokenSync.Parameters<config>): Promise<Actions.token.prepareUpdateQuoteTokenSync.ReturnValue>;
1289
- export declare namespace prepareUpdateQuoteTokenSync {
1290
- type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.token.prepareUpdateQuoteTokenSync.Parameters<config['chains'][number], Account>, 'chain'>;
1291
- type ReturnValue = Actions.token.prepareUpdateQuoteTokenSync.ReturnValue;
1292
- type ErrorType = Actions.token.prepareUpdateQuoteTokenSync.ErrorType;
1293
- }
1294
- /**
1295
- * Watches for TIP20 token role admin updates.
1296
- *
1297
- * @example
1298
- * ```ts
1299
- * import { createConfig, http } from '@wagmi/core'
1300
- * import { tempo } from 'viem/chains'
1301
- * import { Actions } from 'tempo.ts/wagmi'
1302
- *
1303
- * const config = createConfig({
1304
- * chains: [tempoTestnet],
1305
- * transports: {
1306
- * [tempo.id]: http(),
1307
- * },
1308
- * })
1309
- *
1310
- * const unwatch = Actions.token.watchAdminRole(config, {
1311
- * onRoleAdminUpdated: (args, log) => {
1312
- * console.log('Role admin updated:', args)
1313
- * },
1314
- * })
1315
- * ```
1316
- *
1317
- * @param config - Config.
1318
- * @param parameters - Parameters.
1319
- * @returns A function to unsubscribe from the event.
1320
- */
1321
- export declare function watchAdminRole<config extends Config>(config: config, parameters: watchAdminRole.Parameters<config>): import("viem").WatchContractEventReturnType;
1322
- export declare namespace watchAdminRole {
1323
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchAdminRole.Parameters;
1324
- }
1325
- /**
1326
- * Watches for TIP20 token approval events.
1327
- *
1328
- * @example
1329
- * ```ts
1330
- * import { createConfig, http } from '@wagmi/core'
1331
- * import { tempo } from 'viem/chains'
1332
- * import { Actions } from 'tempo.ts/wagmi'
1333
- *
1334
- * const config = createConfig({
1335
- * chains: [tempoTestnet],
1336
- * transports: {
1337
- * [tempo.id]: http(),
1338
- * },
1339
- * })
1340
- *
1341
- * const unwatch = Actions.token.watchApprove(config, {
1342
- * onApproval: (args, log) => {
1343
- * console.log('Approval:', args)
1344
- * },
1345
- * })
1346
- * ```
1347
- *
1348
- * @param config - Config.
1349
- * @param parameters - Parameters.
1350
- * @returns A function to unsubscribe from the event.
1351
- */
1352
- export declare function watchApprove<config extends Config>(config: config, parameters: watchApprove.Parameters<config>): import("viem").WatchContractEventReturnType;
1353
- export declare namespace watchApprove {
1354
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchApprove.Parameters;
1355
- }
1356
- /**
1357
- * Watches for TIP20 token burn events.
1358
- *
1359
- * @example
1360
- * ```ts
1361
- * import { createConfig, http } from '@wagmi/core'
1362
- * import { tempo } from 'viem/chains'
1363
- * import { Actions } from 'tempo.ts/wagmi'
1364
- *
1365
- * const config = createConfig({
1366
- * chains: [tempoTestnet],
1367
- * transports: {
1368
- * [tempo.id]: http(),
1369
- * },
1370
- * })
1371
- *
1372
- * const unwatch = Actions.token.watchBurn(config, {
1373
- * onBurn: (args, log) => {
1374
- * console.log('Burn:', args)
1375
- * },
1376
- * })
1377
- * ```
1378
- *
1379
- * @param config - Config.
1380
- * @param parameters - Parameters.
1381
- * @returns A function to unsubscribe from the event.
1382
- */
1383
- export declare function watchBurn<config extends Config>(config: config, parameters: watchBurn.Parameters<config>): import("viem").WatchContractEventReturnType;
1384
- export declare namespace watchBurn {
1385
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchBurn.Parameters;
1386
- }
1387
- /**
1388
- * Watches for new TIP20 tokens created.
1389
- *
1390
- * @example
1391
- * ```ts
1392
- * import { createConfig, http } from '@wagmi/core'
1393
- * import { tempo } from 'viem/chains'
1394
- * import { Actions } from 'tempo.ts/wagmi'
1395
- *
1396
- * const config = createConfig({
1397
- * chains: [tempoTestnet],
1398
- * transports: {
1399
- * [tempo.id]: http(),
1400
- * },
1401
- * })
1402
- *
1403
- * const unwatch = Actions.token.watchCreate(config, {
1404
- * onTokenCreated: (args, log) => {
1405
- * console.log('Token created:', args)
1406
- * },
1407
- * })
1408
- * ```
1409
- *
1410
- * @param config - Config.
1411
- * @param parameters - Parameters.
1412
- * @returns A function to unsubscribe from the event.
1413
- */
1414
- export declare function watchCreate<config extends Config>(config: config, parameters: watchCreate.Parameters<config>): import("viem").WatchContractEventReturnType;
1415
- export declare namespace watchCreate {
1416
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchCreate.Parameters;
1417
- }
1418
- /**
1419
- * Watches for TIP20 token mint events.
1420
- *
1421
- * @example
1422
- * ```ts
1423
- * import { createConfig, http } from '@wagmi/core'
1424
- * import { tempo } from 'viem/chains'
1425
- * import { Actions } from 'tempo.ts/wagmi'
1426
- *
1427
- * const config = createConfig({
1428
- * chains: [tempoTestnet],
1429
- * transports: {
1430
- * [tempo.id]: http(),
1431
- * },
1432
- * })
1433
- *
1434
- * const unwatch = Actions.token.watchMint(config, {
1435
- * onMint: (args, log) => {
1436
- * console.log('Mint:', args)
1437
- * },
1438
- * })
1439
- * ```
1440
- *
1441
- * @param config - Config.
1442
- * @param parameters - Parameters.
1443
- * @returns A function to unsubscribe from the event.
1444
- */
1445
- export declare function watchMint<config extends Config>(config: config, parameters: watchMint.Parameters<config>): import("viem").WatchContractEventReturnType;
1446
- export declare namespace watchMint {
1447
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchMint.Parameters;
1448
- type ReturnValue = Actions.token.watchMint.ReturnValue;
1449
- }
1450
- /**
1451
- * Watches for TIP20 token role membership updates.
1452
- *
1453
- * @example
1454
- * ```ts
1455
- * import { createConfig, http } from '@wagmi/core'
1456
- * import { tempo } from 'viem/chains'
1457
- * import { Actions } from 'tempo.ts/wagmi'
1458
- *
1459
- * const config = createConfig({
1460
- * chains: [tempoTestnet],
1461
- * transports: {
1462
- * [tempo.id]: http(),
1463
- * },
1464
- * })
1465
- *
1466
- * const unwatch = Actions.token.watchRole(config, {
1467
- * onRoleUpdated: (args, log) => {
1468
- * console.log('Role updated:', args)
1469
- * },
1470
- * })
1471
- * ```
1472
- *
1473
- * @param config - Config.
1474
- * @param parameters - Parameters.
1475
- * @returns A function to unsubscribe from the event.
1476
- */
1477
- export declare function watchRole<config extends Config>(config: config, parameters: watchRole.Parameters<config>): import("viem").WatchContractEventReturnType;
1478
- export declare namespace watchRole {
1479
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchRole.Parameters;
1480
- }
1481
- /**
1482
- * Watches for TIP20 token transfer events.
1483
- *
1484
- * @example
1485
- * ```ts
1486
- * import { createConfig, http } from '@wagmi/core'
1487
- * import { tempo } from 'viem/chains'
1488
- * import { Actions } from 'tempo.ts/wagmi'
1489
- *
1490
- * const config = createConfig({
1491
- * chains: [tempoTestnet],
1492
- * transports: {
1493
- * [tempo.id]: http(),
1494
- * },
1495
- * })
1496
- *
1497
- * const unwatch = Actions.token.watchTransfer(config, {
1498
- * onTransfer: (args, log) => {
1499
- * console.log('Transfer:', args)
1500
- * },
1501
- * })
1502
- * ```
1503
- *
1504
- * @param config - Config.
1505
- * @param parameters - Parameters.
1506
- * @returns A function to unsubscribe from the event.
1507
- */
1508
- export declare function watchTransfer<config extends Config>(config: config, parameters: watchTransfer.Parameters<config>): import("viem").WatchContractEventReturnType;
1509
- export declare namespace watchTransfer {
1510
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchTransfer.Parameters;
1511
- }
1512
- /**
1513
- * Watches for TIP20 token quote token update events.
1514
- *
1515
- * @example
1516
- * ```ts
1517
- * import { createConfig, http } from '@wagmi/core'
1518
- * import { tempo } from 'viem/chains'
1519
- * import { Actions } from 'tempo.ts/wagmi'
1520
- *
1521
- * const config = createConfig({
1522
- * chains: [tempoTestnet],
1523
- * transports: {
1524
- * [tempo.id]: http(),
1525
- * },
1526
- * })
1527
- *
1528
- * const unwatch = Actions.token.watchUpdateQuoteToken(config, {
1529
- * onUpdateQuoteToken: (args, log) => {
1530
- * if (args.completed)
1531
- * console.log('quote token update completed:', args.newQuoteToken)
1532
- * else
1533
- * console.log('quote token update proposed:', args.newQuoteToken)
1534
- * },
1535
- * })
1536
- * ```
1537
- *
1538
- * @param config - Config.
1539
- * @param parameters - Parameters.
1540
- * @returns A function to unsubscribe from the event.
1541
- */
1542
- export declare function watchUpdateQuoteToken<config extends Config>(config: config, parameters: watchUpdateQuoteToken.Parameters<config>): import("viem").WatchContractEventReturnType;
1543
- export declare namespace watchUpdateQuoteToken {
1544
- type Parameters<config extends Config> = ChainIdParameter<config> & Actions.token.watchUpdateQuoteToken.Parameters;
1545
- }
1546
- //# sourceMappingURL=token.d.ts.map