@wagmi/core 3.0.2 → 3.1.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 (83) hide show
  1. package/dist/esm/exports/internal.js.map +1 -1
  2. package/dist/esm/exports/query.js +1 -1
  3. package/dist/esm/exports/query.js.map +1 -1
  4. package/dist/esm/exports/tempo.js +9 -0
  5. package/dist/esm/exports/tempo.js.map +1 -0
  6. package/dist/esm/tempo/Actions/amm.js +469 -0
  7. package/dist/esm/tempo/Actions/amm.js.map +1 -0
  8. package/dist/esm/tempo/Actions/dex.js +983 -0
  9. package/dist/esm/tempo/Actions/dex.js.map +1 -0
  10. package/dist/esm/tempo/Actions/faucet.js +64 -0
  11. package/dist/esm/tempo/Actions/faucet.js.map +1 -0
  12. package/dist/esm/tempo/Actions/fee.js +160 -0
  13. package/dist/esm/tempo/Actions/fee.js.map +1 -0
  14. package/dist/esm/tempo/Actions/index.js +11 -0
  15. package/dist/esm/tempo/Actions/index.js.map +1 -0
  16. package/dist/esm/tempo/Actions/nonce.js +176 -0
  17. package/dist/esm/tempo/Actions/nonce.js.map +1 -0
  18. package/dist/esm/tempo/Actions/policy.js +532 -0
  19. package/dist/esm/tempo/Actions/policy.js.map +1 -0
  20. package/dist/esm/tempo/Actions/reward.js +384 -0
  21. package/dist/esm/tempo/Actions/reward.js.map +1 -0
  22. package/dist/esm/tempo/Actions/token.js +1717 -0
  23. package/dist/esm/tempo/Actions/token.js.map +1 -0
  24. package/dist/esm/tempo/Actions/utils.js +2 -0
  25. package/dist/esm/tempo/Actions/utils.js.map +1 -0
  26. package/dist/esm/tempo/Connectors.js +534 -0
  27. package/dist/esm/tempo/Connectors.js.map +1 -0
  28. package/dist/esm/tempo/KeyManager.js +106 -0
  29. package/dist/esm/tempo/KeyManager.js.map +1 -0
  30. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  31. package/dist/esm/version.js +1 -1
  32. package/dist/types/exports/internal.d.ts +1 -1
  33. package/dist/types/exports/internal.d.ts.map +1 -1
  34. package/dist/types/exports/query.d.ts +1 -1
  35. package/dist/types/exports/query.d.ts.map +1 -1
  36. package/dist/types/exports/tempo.d.ts +5 -0
  37. package/dist/types/exports/tempo.d.ts.map +1 -0
  38. package/dist/types/tempo/Actions/amm.d.ts +418 -0
  39. package/dist/types/tempo/Actions/amm.d.ts.map +1 -0
  40. package/dist/types/tempo/Actions/dex.d.ts +858 -0
  41. package/dist/types/tempo/Actions/dex.d.ts.map +1 -0
  42. package/dist/types/tempo/Actions/faucet.d.ts +70 -0
  43. package/dist/types/tempo/Actions/faucet.d.ts.map +1 -0
  44. package/dist/types/tempo/Actions/fee.d.ts +141 -0
  45. package/dist/types/tempo/Actions/fee.d.ts.map +1 -0
  46. package/dist/types/tempo/Actions/index.d.ts +10 -0
  47. package/dist/types/tempo/Actions/index.d.ts.map +1 -0
  48. package/dist/types/tempo/Actions/nonce.d.ts +150 -0
  49. package/dist/types/tempo/Actions/nonce.d.ts.map +1 -0
  50. package/dist/types/tempo/Actions/policy.d.ts +478 -0
  51. package/dist/types/tempo/Actions/policy.d.ts.map +1 -0
  52. package/dist/types/tempo/Actions/reward.d.ts +340 -0
  53. package/dist/types/tempo/Actions/reward.d.ts.map +1 -0
  54. package/dist/types/tempo/Actions/token.d.ts +1531 -0
  55. package/dist/types/tempo/Actions/token.d.ts.map +1 -0
  56. package/dist/types/tempo/Actions/utils.d.ts +9 -0
  57. package/dist/types/tempo/Actions/utils.d.ts.map +1 -0
  58. package/dist/types/tempo/Connectors.d.ts +99 -0
  59. package/dist/types/tempo/Connectors.d.ts.map +1 -0
  60. package/dist/types/tempo/KeyManager.d.ts +71 -0
  61. package/dist/types/tempo/KeyManager.d.ts.map +1 -0
  62. package/dist/types/types/utils.d.ts +16 -0
  63. package/dist/types/types/utils.d.ts.map +1 -1
  64. package/dist/types/version.d.ts +1 -1
  65. package/package.json +14 -2
  66. package/src/exports/internal.ts +3 -0
  67. package/src/exports/query.ts +4 -1
  68. package/src/exports/tempo.ts +14 -0
  69. package/src/tempo/Actions/amm.ts +719 -0
  70. package/src/tempo/Actions/dex.ts +1571 -0
  71. package/src/tempo/Actions/faucet.ts +95 -0
  72. package/src/tempo/Actions/fee.ts +259 -0
  73. package/src/tempo/Actions/index.ts +10 -0
  74. package/src/tempo/Actions/nonce.ts +283 -0
  75. package/src/tempo/Actions/policy.ts +827 -0
  76. package/src/tempo/Actions/reward.ts +621 -0
  77. package/src/tempo/Actions/token.ts +2598 -0
  78. package/src/tempo/Actions/utils.ts +26 -0
  79. package/src/tempo/Connectors.ts +762 -0
  80. package/src/tempo/KeyManager.ts +176 -0
  81. package/src/types/utils.ts +19 -0
  82. package/src/version.ts +1 -1
  83. package/tempo/package.json +5 -0
@@ -0,0 +1,478 @@
1
+ import type { Account, BaseErrorType } from 'viem';
2
+ import { Actions } from 'viem/tempo';
3
+ import type { Config } from '../../createConfig.js';
4
+ import type { ChainIdParameter, ConnectorParameter } from '../../types/properties.js';
5
+ import type { UnionLooseOmit } from '../../types/utils.js';
6
+ import type { QueryOptions, QueryParameter } from './utils.js';
7
+ /**
8
+ * Creates a new policy.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { createConfig, http } from '@wagmi/core'
13
+ * import { tempo } from '@wagmi/core/chains'
14
+ * import { Actions } from '@wagmi/core/tempo'
15
+ *
16
+ * const config = createConfig({
17
+ * chains: [tempoTestnet],
18
+ * transports: {
19
+ * [tempo.id]: http(),
20
+ * },
21
+ * })
22
+ *
23
+ * const hash = await Actions.policy.create(config, {
24
+ * type: 'whitelist',
25
+ * })
26
+ * ```
27
+ *
28
+ * @param config - Config.
29
+ * @param parameters - Parameters.
30
+ * @returns Transaction hash.
31
+ */
32
+ export declare function create<config extends Config>(config: config, parameters: create.Parameters<config>): Promise<Actions.policy.create.ReturnValue>;
33
+ export declare namespace create {
34
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.create.Parameters<config['chains'][number], Account>, 'chain' | 'admin'>;
35
+ type ReturnValue = Actions.policy.create.ReturnValue;
36
+ type ErrorType = BaseErrorType;
37
+ }
38
+ /**
39
+ * Creates a new policy.
40
+ *
41
+ * Note: This is a synchronous action that waits for the transaction to
42
+ * be included on a block before returning a response.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * import { createConfig, http } from '@wagmi/core'
47
+ * import { tempo } from '@wagmi/core/chains'
48
+ * import { Actions } from '@wagmi/core/tempo'
49
+ *
50
+ * const config = createConfig({
51
+ * chains: [tempoTestnet],
52
+ * transports: {
53
+ * [tempo.id]: http(),
54
+ * },
55
+ * })
56
+ *
57
+ * const result = await Actions.policy.createSync(config, {
58
+ * type: 'whitelist',
59
+ * })
60
+ * ```
61
+ *
62
+ * @param config - Config.
63
+ * @param parameters - Parameters.
64
+ * @returns The transaction receipt and event data.
65
+ */
66
+ export declare function createSync<config extends Config>(config: config, parameters: createSync.Parameters<config>): Promise<Actions.policy.createSync.ReturnValue>;
67
+ export declare namespace createSync {
68
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.createSync.Parameters<config['chains'][number], Account>, 'chain' | 'admin'>;
69
+ type ReturnValue = Actions.policy.createSync.ReturnValue;
70
+ type ErrorType = BaseErrorType;
71
+ }
72
+ /**
73
+ * Sets the admin for a policy.
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * import { createConfig, http } from '@wagmi/core'
78
+ * import { tempo } from '@wagmi/core/chains'
79
+ * import { Actions } from '@wagmi/core/tempo'
80
+ *
81
+ * const config = createConfig({
82
+ * chains: [tempoTestnet],
83
+ * transports: {
84
+ * [tempo.id]: http(),
85
+ * },
86
+ * })
87
+ *
88
+ * const hash = await Actions.policy.setAdmin(config, {
89
+ * policyId: 2n,
90
+ * admin: '0x...',
91
+ * })
92
+ * ```
93
+ *
94
+ * @param config - Config.
95
+ * @param parameters - Parameters.
96
+ * @returns Transaction hash.
97
+ */
98
+ export declare function setAdmin<config extends Config>(config: config, parameters: setAdmin.Parameters<config>): Promise<Actions.policy.setAdmin.ReturnValue>;
99
+ export declare namespace setAdmin {
100
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.setAdmin.Parameters<config['chains'][number], Account>, 'chain'>;
101
+ type ReturnValue = Actions.policy.setAdmin.ReturnValue;
102
+ type ErrorType = BaseErrorType;
103
+ }
104
+ /**
105
+ * Sets the admin for a policy.
106
+ *
107
+ * Note: This is a synchronous action that waits for the transaction to
108
+ * be included on a block before returning a response.
109
+ *
110
+ * @example
111
+ * ```ts
112
+ * import { createConfig, http } from '@wagmi/core'
113
+ * import { tempo } from '@wagmi/core/chains'
114
+ * import { Actions } from '@wagmi/core/tempo'
115
+ *
116
+ * const config = createConfig({
117
+ * chains: [tempoTestnet],
118
+ * transports: {
119
+ * [tempo.id]: http(),
120
+ * },
121
+ * })
122
+ *
123
+ * const result = await Actions.policy.setAdminSync(config, {
124
+ * policyId: 2n,
125
+ * admin: '0x...',
126
+ * })
127
+ * ```
128
+ *
129
+ * @param config - Config.
130
+ * @param parameters - Parameters.
131
+ * @returns The transaction receipt and event data.
132
+ */
133
+ export declare function setAdminSync<config extends Config>(config: config, parameters: setAdminSync.Parameters<config>): Promise<Actions.policy.setAdminSync.ReturnValue>;
134
+ export declare namespace setAdminSync {
135
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.setAdminSync.Parameters<config['chains'][number], Account>, 'chain'>;
136
+ type ReturnValue = Actions.policy.setAdminSync.ReturnValue;
137
+ type ErrorType = BaseErrorType;
138
+ }
139
+ /**
140
+ * Modifies a policy whitelist.
141
+ *
142
+ * @example
143
+ * ```ts
144
+ * import { createConfig, http } from '@wagmi/core'
145
+ * import { tempo } from '@wagmi/core/chains'
146
+ * import { Actions } from '@wagmi/core/tempo'
147
+ *
148
+ * const config = createConfig({
149
+ * chains: [tempoTestnet],
150
+ * transports: {
151
+ * [tempo.id]: http(),
152
+ * },
153
+ * })
154
+ *
155
+ * const hash = await Actions.policy.modifyWhitelist(config, {
156
+ * policyId: 2n,
157
+ * address: '0x...',
158
+ * allowed: true,
159
+ * })
160
+ * ```
161
+ *
162
+ * @param config - Config.
163
+ * @param parameters - Parameters.
164
+ * @returns Transaction hash.
165
+ */
166
+ export declare function modifyWhitelist<config extends Config>(config: config, parameters: modifyWhitelist.Parameters<config>): Promise<Actions.policy.modifyWhitelist.ReturnValue>;
167
+ export declare namespace modifyWhitelist {
168
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.modifyWhitelist.Parameters<config['chains'][number], Account>, 'chain'>;
169
+ type ReturnValue = Actions.policy.modifyWhitelist.ReturnValue;
170
+ type ErrorType = BaseErrorType;
171
+ }
172
+ /**
173
+ * Modifies a policy whitelist.
174
+ *
175
+ * Note: This is a synchronous action that waits for the transaction to
176
+ * be included on a block before returning a response.
177
+ *
178
+ * @example
179
+ * ```ts
180
+ * import { createConfig, http } from '@wagmi/core'
181
+ * import { tempo } from '@wagmi/core/chains'
182
+ * import { Actions } from '@wagmi/core/tempo'
183
+ *
184
+ * const config = createConfig({
185
+ * chains: [tempoTestnet],
186
+ * transports: {
187
+ * [tempo.id]: http(),
188
+ * },
189
+ * })
190
+ *
191
+ * const result = await Actions.policy.modifyWhitelistSync(config, {
192
+ * policyId: 2n,
193
+ * address: '0x...',
194
+ * allowed: true,
195
+ * })
196
+ * ```
197
+ *
198
+ * @param config - Config.
199
+ * @param parameters - Parameters.
200
+ * @returns The transaction receipt and event data.
201
+ */
202
+ export declare function modifyWhitelistSync<config extends Config>(config: config, parameters: modifyWhitelistSync.Parameters<config>): Promise<Actions.policy.modifyWhitelistSync.ReturnValue>;
203
+ export declare namespace modifyWhitelistSync {
204
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.modifyWhitelistSync.Parameters<config['chains'][number], Account>, 'chain'>;
205
+ type ReturnValue = Actions.policy.modifyWhitelistSync.ReturnValue;
206
+ type ErrorType = BaseErrorType;
207
+ }
208
+ /**
209
+ * Modifies a policy blacklist.
210
+ *
211
+ * @example
212
+ * ```ts
213
+ * import { createConfig, http } from '@wagmi/core'
214
+ * import { tempo } from '@wagmi/core/chains'
215
+ * import { Actions } from '@wagmi/core/tempo'
216
+ *
217
+ * const config = createConfig({
218
+ * chains: [tempoTestnet],
219
+ * transports: {
220
+ * [tempo.id]: http(),
221
+ * },
222
+ * })
223
+ *
224
+ * const hash = await Actions.policy.modifyBlacklist(config, {
225
+ * policyId: 2n,
226
+ * address: '0x...',
227
+ * restricted: true,
228
+ * })
229
+ * ```
230
+ *
231
+ * @param config - Config.
232
+ * @param parameters - Parameters.
233
+ * @returns Transaction hash.
234
+ */
235
+ export declare function modifyBlacklist<config extends Config>(config: config, parameters: modifyBlacklist.Parameters<config>): Promise<Actions.policy.modifyBlacklist.ReturnValue>;
236
+ export declare namespace modifyBlacklist {
237
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.modifyBlacklist.Parameters<config['chains'][number], Account>, 'chain'>;
238
+ type ReturnValue = Actions.policy.modifyBlacklist.ReturnValue;
239
+ type ErrorType = BaseErrorType;
240
+ }
241
+ /**
242
+ * Modifies a policy blacklist.
243
+ *
244
+ * Note: This is a synchronous action that waits for the transaction to
245
+ * be included on a block before returning a response.
246
+ *
247
+ * @example
248
+ * ```ts
249
+ * import { createConfig, http } from '@wagmi/core'
250
+ * import { tempo } from '@wagmi/core/chains'
251
+ * import { Actions } from '@wagmi/core/tempo'
252
+ *
253
+ * const config = createConfig({
254
+ * chains: [tempoTestnet],
255
+ * transports: {
256
+ * [tempo.id]: http(),
257
+ * },
258
+ * })
259
+ *
260
+ * const result = await Actions.policy.modifyBlacklistSync(config, {
261
+ * policyId: 2n,
262
+ * address: '0x...',
263
+ * restricted: true,
264
+ * })
265
+ * ```
266
+ *
267
+ * @param config - Config.
268
+ * @param parameters - Parameters.
269
+ * @returns The transaction receipt and event data.
270
+ */
271
+ export declare function modifyBlacklistSync<config extends Config>(config: config, parameters: modifyBlacklistSync.Parameters<config>): Promise<Actions.policy.modifyBlacklistSync.ReturnValue>;
272
+ export declare namespace modifyBlacklistSync {
273
+ type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.policy.modifyBlacklistSync.Parameters<config['chains'][number], Account>, 'chain'>;
274
+ type ReturnValue = Actions.policy.modifyBlacklistSync.ReturnValue;
275
+ type ErrorType = BaseErrorType;
276
+ }
277
+ /**
278
+ * Gets policy data.
279
+ *
280
+ * @example
281
+ * ```ts
282
+ * import { createConfig, http } from '@wagmi/core'
283
+ * import { tempo } from '@wagmi/core/chains'
284
+ * import { Actions } from '@wagmi/core/tempo'
285
+ *
286
+ * const config = createConfig({
287
+ * chains: [tempoTestnet],
288
+ * transports: {
289
+ * [tempo.id]: http(),
290
+ * },
291
+ * })
292
+ *
293
+ * const data = await Actions.policy.getData(config, {
294
+ * policyId: 2n,
295
+ * })
296
+ * ```
297
+ *
298
+ * @param config - Config.
299
+ * @param parameters - Parameters.
300
+ * @returns The policy data.
301
+ */
302
+ export declare function getData<config extends Config>(config: config, parameters: getData.Parameters<config>): Promise<getData.ReturnValue>;
303
+ export declare namespace getData {
304
+ type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.getData.Parameters;
305
+ type ReturnValue = Actions.policy.getData.ReturnValue;
306
+ type ErrorType = BaseErrorType;
307
+ function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getData", Parameters<config>];
308
+ type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
309
+ function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
310
+ namespace queryOptions {
311
+ type Parameters<config extends Config, selectData = getData.ReturnValue> = getData.Parameters<config> & QueryParameter<getData.ReturnValue, getData.ErrorType, selectData, getData.QueryKey<config>>;
312
+ type ReturnValue<config extends Config, selectData = getData.ReturnValue> = QueryOptions<getData.ReturnValue, getData.ErrorType, selectData, getData.QueryKey<config>>;
313
+ }
314
+ }
315
+ /**
316
+ * Checks if a user is authorized by a policy.
317
+ *
318
+ * @example
319
+ * ```ts
320
+ * import { createConfig, http } from '@wagmi/core'
321
+ * import { tempo } from '@wagmi/core/chains'
322
+ * import { Actions } from '@wagmi/core/tempo'
323
+ *
324
+ * const config = createConfig({
325
+ * chains: [tempoTestnet],
326
+ * transports: {
327
+ * [tempo.id]: http(),
328
+ * },
329
+ * })
330
+ *
331
+ * const authorized = await Actions.policy.isAuthorized(config, {
332
+ * policyId: 2n,
333
+ * user: '0x...',
334
+ * })
335
+ * ```
336
+ *
337
+ * @param config - Config.
338
+ * @param parameters - Parameters.
339
+ * @returns Whether the user is authorized.
340
+ */
341
+ export declare function isAuthorized<config extends Config>(config: config, parameters: isAuthorized.Parameters<config>): Promise<isAuthorized.ReturnValue>;
342
+ export declare namespace isAuthorized {
343
+ type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.isAuthorized.Parameters;
344
+ type ReturnValue = Actions.policy.isAuthorized.ReturnValue;
345
+ type ErrorType = BaseErrorType;
346
+ function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["isAuthorized", Parameters<config>];
347
+ type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
348
+ function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
349
+ namespace queryOptions {
350
+ type Parameters<config extends Config, selectData = isAuthorized.ReturnValue> = isAuthorized.Parameters<config> & QueryParameter<isAuthorized.ReturnValue, isAuthorized.ErrorType, selectData, isAuthorized.QueryKey<config>>;
351
+ type ReturnValue<config extends Config, selectData = isAuthorized.ReturnValue> = QueryOptions<isAuthorized.ReturnValue, isAuthorized.ErrorType, selectData, isAuthorized.QueryKey<config>>;
352
+ }
353
+ }
354
+ /**
355
+ * Watches for policy creation events.
356
+ *
357
+ * @example
358
+ * ```ts
359
+ * import { createConfig, http } from '@wagmi/core'
360
+ * import { tempo } from '@wagmi/core/chains'
361
+ * import { Actions } from '@wagmi/core/tempo'
362
+ *
363
+ * const config = createConfig({
364
+ * chains: [tempoTestnet],
365
+ * transports: {
366
+ * [tempo.id]: http(),
367
+ * },
368
+ * })
369
+ *
370
+ * const unwatch = Actions.policy.watchCreate(config, {
371
+ * onPolicyCreated: (args, log) => {
372
+ * console.log('Policy created:', args)
373
+ * },
374
+ * })
375
+ * ```
376
+ *
377
+ * @param config - Config.
378
+ * @param parameters - Parameters.
379
+ * @returns A function to unsubscribe from the event.
380
+ */
381
+ export declare function watchCreate<config extends Config>(config: config, parameters: watchCreate.Parameters<config>): import("viem").WatchContractEventReturnType;
382
+ export declare namespace watchCreate {
383
+ type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchCreate.Parameters;
384
+ }
385
+ /**
386
+ * Watches for policy admin update events.
387
+ *
388
+ * @example
389
+ * ```ts
390
+ * import { createConfig, http } from '@wagmi/core'
391
+ * import { tempo } from '@wagmi/core/chains'
392
+ * import { Actions } from '@wagmi/core/tempo'
393
+ *
394
+ * const config = createConfig({
395
+ * chains: [tempoTestnet],
396
+ * transports: {
397
+ * [tempo.id]: http(),
398
+ * },
399
+ * })
400
+ *
401
+ * const unwatch = Actions.policy.watchAdminUpdated(config, {
402
+ * onAdminUpdated: (args, log) => {
403
+ * console.log('Policy admin updated:', args)
404
+ * },
405
+ * })
406
+ * ```
407
+ *
408
+ * @param config - Config.
409
+ * @param parameters - Parameters.
410
+ * @returns A function to unsubscribe from the event.
411
+ */
412
+ export declare function watchAdminUpdated<config extends Config>(config: config, parameters: watchAdminUpdated.Parameters<config>): import("viem").WatchContractEventReturnType;
413
+ export declare namespace watchAdminUpdated {
414
+ type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchAdminUpdated.Parameters;
415
+ }
416
+ /**
417
+ * Watches for whitelist update events.
418
+ *
419
+ * @example
420
+ * ```ts
421
+ * import { createConfig, http } from '@wagmi/core'
422
+ * import { tempo } from '@wagmi/core/chains'
423
+ * import { Actions } from '@wagmi/core/tempo'
424
+ *
425
+ * const config = createConfig({
426
+ * chains: [tempoTestnet],
427
+ * transports: {
428
+ * [tempo.id]: http(),
429
+ * },
430
+ * })
431
+ *
432
+ * const unwatch = Actions.policy.watchWhitelistUpdated(config, {
433
+ * onWhitelistUpdated: (args, log) => {
434
+ * console.log('Whitelist updated:', args)
435
+ * },
436
+ * })
437
+ * ```
438
+ *
439
+ * @param config - Config.
440
+ * @param parameters - Parameters.
441
+ * @returns A function to unsubscribe from the event.
442
+ */
443
+ export declare function watchWhitelistUpdated<config extends Config>(config: config, parameters: watchWhitelistUpdated.Parameters<config>): import("viem").WatchContractEventReturnType;
444
+ export declare namespace watchWhitelistUpdated {
445
+ type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchWhitelistUpdated.Parameters;
446
+ }
447
+ /**
448
+ * Watches for blacklist update events.
449
+ *
450
+ * @example
451
+ * ```ts
452
+ * import { createConfig, http } from '@wagmi/core'
453
+ * import { tempo } from '@wagmi/core/chains'
454
+ * import { Actions } from '@wagmi/core/tempo'
455
+ *
456
+ * const config = createConfig({
457
+ * chains: [tempoTestnet],
458
+ * transports: {
459
+ * [tempo.id]: http(),
460
+ * },
461
+ * })
462
+ *
463
+ * const unwatch = Actions.policy.watchBlacklistUpdated(config, {
464
+ * onBlacklistUpdated: (args, log) => {
465
+ * console.log('Blacklist updated:', args)
466
+ * },
467
+ * })
468
+ * ```
469
+ *
470
+ * @param config - Config.
471
+ * @param parameters - Parameters.
472
+ * @returns A function to unsubscribe from the event.
473
+ */
474
+ export declare function watchBlacklistUpdated<config extends Config>(config: config, parameters: watchBlacklistUpdated.Parameters<config>): import("viem").WatchContractEventReturnType;
475
+ export declare namespace watchBlacklistUpdated {
476
+ type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchBlacklistUpdated.Parameters;
477
+ }
478
+ //# sourceMappingURL=policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../../src/tempo/Actions/policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,MAAM,CAAC,MAAM,SAAS,MAAM,EAChD,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,GACpC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAW5C;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,KAAY,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI,gBAAgB,CAAC,MAAM,CAAC,GACtE,kBAAkB,GAClB,cAAc,CACZ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EACnE,OAAO,GAAG,OAAO,CAClB,CAAA;IAEH,KAAY,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAA;IAE3D,KAAY,SAAS,GAAG,aAAa,CAAA;CACtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,UA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