tempo.ts 0.12.0 → 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 +26 -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,530 +0,0 @@
1
- import { getConnectorClient } from '@wagmi/core';
2
- import { Actions } from 'viem/tempo';
3
- /**
4
- * Creates a new policy.
5
- *
6
- * @example
7
- * ```ts
8
- * import { createConfig, http } from '@wagmi/core'
9
- * import { tempo } from 'viem/chains'
10
- * import { Actions } from 'tempo.ts/wagmi'
11
- *
12
- * const config = createConfig({
13
- * chains: [tempoTestnet],
14
- * transports: {
15
- * [tempo.id]: http(),
16
- * },
17
- * })
18
- *
19
- * const hash = await Actions.policy.create(config, {
20
- * type: 'whitelist',
21
- * })
22
- * ```
23
- *
24
- * @param config - Config.
25
- * @param parameters - Parameters.
26
- * @returns Transaction hash.
27
- */
28
- export async function create(config, parameters) {
29
- const { account, chainId, connector } = parameters;
30
- const client = await getConnectorClient(config, {
31
- account,
32
- assertChainId: false,
33
- chainId,
34
- connector,
35
- });
36
- return Actions.policy.create(client, parameters);
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 'viem/chains'
48
- * import { Actions } from 'tempo.ts/wagmi'
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 async function createSync(config, parameters) {
67
- const { account, chainId, connector } = parameters;
68
- const client = await getConnectorClient(config, {
69
- account,
70
- assertChainId: false,
71
- chainId,
72
- connector,
73
- });
74
- return Actions.policy.createSync(client, parameters);
75
- }
76
- /**
77
- * Sets the admin for a policy.
78
- *
79
- * @example
80
- * ```ts
81
- * import { createConfig, http } from '@wagmi/core'
82
- * import { tempo } from 'viem/chains'
83
- * import { Actions } from 'tempo.ts/wagmi'
84
- *
85
- * const config = createConfig({
86
- * chains: [tempoTestnet],
87
- * transports: {
88
- * [tempo.id]: http(),
89
- * },
90
- * })
91
- *
92
- * const hash = await Actions.policy.setAdmin(config, {
93
- * policyId: 2n,
94
- * admin: '0x...',
95
- * })
96
- * ```
97
- *
98
- * @param config - Config.
99
- * @param parameters - Parameters.
100
- * @returns Transaction hash.
101
- */
102
- export async function setAdmin(config, parameters) {
103
- const { account, chainId, connector } = parameters;
104
- const client = await getConnectorClient(config, {
105
- account,
106
- assertChainId: false,
107
- chainId,
108
- connector,
109
- });
110
- return Actions.policy.setAdmin(client, parameters);
111
- }
112
- /**
113
- * Sets the admin for a policy.
114
- *
115
- * Note: This is a synchronous action that waits for the transaction to
116
- * be included on a block before returning a response.
117
- *
118
- * @example
119
- * ```ts
120
- * import { createConfig, http } from '@wagmi/core'
121
- * import { tempo } from 'viem/chains'
122
- * import { Actions } from 'tempo.ts/wagmi'
123
- *
124
- * const config = createConfig({
125
- * chains: [tempoTestnet],
126
- * transports: {
127
- * [tempo.id]: http(),
128
- * },
129
- * })
130
- *
131
- * const result = await Actions.policy.setAdminSync(config, {
132
- * policyId: 2n,
133
- * admin: '0x...',
134
- * })
135
- * ```
136
- *
137
- * @param config - Config.
138
- * @param parameters - Parameters.
139
- * @returns The transaction receipt and event data.
140
- */
141
- export async function setAdminSync(config, parameters) {
142
- const { account, chainId, connector } = parameters;
143
- const client = await getConnectorClient(config, {
144
- account,
145
- assertChainId: false,
146
- chainId,
147
- connector,
148
- });
149
- return Actions.policy.setAdminSync(client, parameters);
150
- }
151
- /**
152
- * Modifies a policy whitelist.
153
- *
154
- * @example
155
- * ```ts
156
- * import { createConfig, http } from '@wagmi/core'
157
- * import { tempo } from 'viem/chains'
158
- * import { Actions } from 'tempo.ts/wagmi'
159
- *
160
- * const config = createConfig({
161
- * chains: [tempoTestnet],
162
- * transports: {
163
- * [tempo.id]: http(),
164
- * },
165
- * })
166
- *
167
- * const hash = await Actions.policy.modifyWhitelist(config, {
168
- * policyId: 2n,
169
- * address: '0x...',
170
- * allowed: true,
171
- * })
172
- * ```
173
- *
174
- * @param config - Config.
175
- * @param parameters - Parameters.
176
- * @returns Transaction hash.
177
- */
178
- export async function modifyWhitelist(config, parameters) {
179
- const { account, chainId, connector } = parameters;
180
- const client = await getConnectorClient(config, {
181
- account,
182
- assertChainId: false,
183
- chainId,
184
- connector,
185
- });
186
- return Actions.policy.modifyWhitelist(client, parameters);
187
- }
188
- /**
189
- * Modifies a policy whitelist.
190
- *
191
- * Note: This is a synchronous action that waits for the transaction to
192
- * be included on a block before returning a response.
193
- *
194
- * @example
195
- * ```ts
196
- * import { createConfig, http } from '@wagmi/core'
197
- * import { tempo } from 'viem/chains'
198
- * import { Actions } from 'tempo.ts/wagmi'
199
- *
200
- * const config = createConfig({
201
- * chains: [tempoTestnet],
202
- * transports: {
203
- * [tempo.id]: http(),
204
- * },
205
- * })
206
- *
207
- * const result = await Actions.policy.modifyWhitelistSync(config, {
208
- * policyId: 2n,
209
- * address: '0x...',
210
- * allowed: true,
211
- * })
212
- * ```
213
- *
214
- * @param config - Config.
215
- * @param parameters - Parameters.
216
- * @returns The transaction receipt and event data.
217
- */
218
- export async function modifyWhitelistSync(config, parameters) {
219
- const { account, chainId, connector } = parameters;
220
- const client = await getConnectorClient(config, {
221
- account,
222
- assertChainId: false,
223
- chainId,
224
- connector,
225
- });
226
- return Actions.policy.modifyWhitelistSync(client, parameters);
227
- }
228
- /**
229
- * Modifies a policy blacklist.
230
- *
231
- * @example
232
- * ```ts
233
- * import { createConfig, http } from '@wagmi/core'
234
- * import { tempo } from 'viem/chains'
235
- * import { Actions } from 'tempo.ts/wagmi'
236
- *
237
- * const config = createConfig({
238
- * chains: [tempoTestnet],
239
- * transports: {
240
- * [tempo.id]: http(),
241
- * },
242
- * })
243
- *
244
- * const hash = await Actions.policy.modifyBlacklist(config, {
245
- * policyId: 2n,
246
- * address: '0x...',
247
- * restricted: true,
248
- * })
249
- * ```
250
- *
251
- * @param config - Config.
252
- * @param parameters - Parameters.
253
- * @returns Transaction hash.
254
- */
255
- export async function modifyBlacklist(config, parameters) {
256
- const { account, chainId, connector } = parameters;
257
- const client = await getConnectorClient(config, {
258
- account,
259
- assertChainId: false,
260
- chainId,
261
- connector,
262
- });
263
- return Actions.policy.modifyBlacklist(client, parameters);
264
- }
265
- /**
266
- * Modifies a policy blacklist.
267
- *
268
- * Note: This is a synchronous action that waits for the transaction to
269
- * be included on a block before returning a response.
270
- *
271
- * @example
272
- * ```ts
273
- * import { createConfig, http } from '@wagmi/core'
274
- * import { tempo } from 'viem/chains'
275
- * import { Actions } from 'tempo.ts/wagmi'
276
- *
277
- * const config = createConfig({
278
- * chains: [tempoTestnet],
279
- * transports: {
280
- * [tempo.id]: http(),
281
- * },
282
- * })
283
- *
284
- * const result = await Actions.policy.modifyBlacklistSync(config, {
285
- * policyId: 2n,
286
- * address: '0x...',
287
- * restricted: true,
288
- * })
289
- * ```
290
- *
291
- * @param config - Config.
292
- * @param parameters - Parameters.
293
- * @returns The transaction receipt and event data.
294
- */
295
- export async function modifyBlacklistSync(config, parameters) {
296
- const { account, chainId, connector } = parameters;
297
- const client = await getConnectorClient(config, {
298
- account,
299
- assertChainId: false,
300
- chainId,
301
- connector,
302
- });
303
- return Actions.policy.modifyBlacklistSync(client, parameters);
304
- }
305
- /**
306
- * Gets policy data.
307
- *
308
- * @example
309
- * ```ts
310
- * import { createConfig, http } from '@wagmi/core'
311
- * import { tempo } from 'viem/chains'
312
- * import { Actions } from 'tempo.ts/wagmi'
313
- *
314
- * const config = createConfig({
315
- * chains: [tempoTestnet],
316
- * transports: {
317
- * [tempo.id]: http(),
318
- * },
319
- * })
320
- *
321
- * const data = await Actions.policy.getData(config, {
322
- * policyId: 2n,
323
- * })
324
- * ```
325
- *
326
- * @param config - Config.
327
- * @param parameters - Parameters.
328
- * @returns The policy data.
329
- */
330
- export function getData(config, parameters) {
331
- const { chainId, ...rest } = parameters;
332
- const client = config.getClient({ chainId });
333
- return Actions.policy.getData(client, rest);
334
- }
335
- (function (getData) {
336
- function queryKey(parameters) {
337
- return ['getData', parameters];
338
- }
339
- getData.queryKey = queryKey;
340
- function queryOptions(config, parameters) {
341
- const { query, ...rest } = parameters;
342
- return {
343
- ...query,
344
- queryKey: queryKey(rest),
345
- async queryFn({ queryKey }) {
346
- const [, parameters] = queryKey;
347
- return await getData(config, parameters);
348
- },
349
- };
350
- }
351
- getData.queryOptions = queryOptions;
352
- })(getData || (getData = {}));
353
- /**
354
- * Checks if a user is authorized by a policy.
355
- *
356
- * @example
357
- * ```ts
358
- * import { createConfig, http } from '@wagmi/core'
359
- * import { tempo } from 'viem/chains'
360
- * import { Actions } from 'tempo.ts/wagmi'
361
- *
362
- * const config = createConfig({
363
- * chains: [tempoTestnet],
364
- * transports: {
365
- * [tempo.id]: http(),
366
- * },
367
- * })
368
- *
369
- * const authorized = await Actions.policy.isAuthorized(config, {
370
- * policyId: 2n,
371
- * user: '0x...',
372
- * })
373
- * ```
374
- *
375
- * @param config - Config.
376
- * @param parameters - Parameters.
377
- * @returns Whether the user is authorized.
378
- */
379
- export function isAuthorized(config, parameters) {
380
- const { chainId, ...rest } = parameters;
381
- const client = config.getClient({ chainId });
382
- return Actions.policy.isAuthorized(client, rest);
383
- }
384
- (function (isAuthorized) {
385
- function queryKey(parameters) {
386
- return ['isAuthorized', parameters];
387
- }
388
- isAuthorized.queryKey = queryKey;
389
- function queryOptions(config, parameters) {
390
- const { query, ...rest } = parameters;
391
- return {
392
- ...query,
393
- queryKey: queryKey(rest),
394
- async queryFn({ queryKey }) {
395
- const [, parameters] = queryKey;
396
- return await isAuthorized(config, parameters);
397
- },
398
- };
399
- }
400
- isAuthorized.queryOptions = queryOptions;
401
- })(isAuthorized || (isAuthorized = {}));
402
- /**
403
- * Watches for policy creation events.
404
- *
405
- * @example
406
- * ```ts
407
- * import { createConfig, http } from '@wagmi/core'
408
- * import { tempo } from 'viem/chains'
409
- * import { Actions } from 'tempo.ts/wagmi'
410
- *
411
- * const config = createConfig({
412
- * chains: [tempoTestnet],
413
- * transports: {
414
- * [tempo.id]: http(),
415
- * },
416
- * })
417
- *
418
- * const unwatch = Actions.policy.watchCreate(config, {
419
- * onPolicyCreated: (args, log) => {
420
- * console.log('Policy created:', args)
421
- * },
422
- * })
423
- * ```
424
- *
425
- * @param config - Config.
426
- * @param parameters - Parameters.
427
- * @returns A function to unsubscribe from the event.
428
- */
429
- export function watchCreate(config, parameters) {
430
- const { chainId, ...rest } = parameters;
431
- const client = config.getClient({ chainId });
432
- return Actions.policy.watchCreate(client, rest);
433
- }
434
- /**
435
- * Watches for policy admin update events.
436
- *
437
- * @example
438
- * ```ts
439
- * import { createConfig, http } from '@wagmi/core'
440
- * import { tempo } from 'viem/chains'
441
- * import { Actions } from 'tempo.ts/wagmi'
442
- *
443
- * const config = createConfig({
444
- * chains: [tempoTestnet],
445
- * transports: {
446
- * [tempo.id]: http(),
447
- * },
448
- * })
449
- *
450
- * const unwatch = Actions.policy.watchAdminUpdated(config, {
451
- * onAdminUpdated: (args, log) => {
452
- * console.log('Policy admin updated:', args)
453
- * },
454
- * })
455
- * ```
456
- *
457
- * @param config - Config.
458
- * @param parameters - Parameters.
459
- * @returns A function to unsubscribe from the event.
460
- */
461
- export function watchAdminUpdated(config, parameters) {
462
- const { chainId, ...rest } = parameters;
463
- const client = config.getClient({ chainId });
464
- return Actions.policy.watchAdminUpdated(client, rest);
465
- }
466
- /**
467
- * Watches for whitelist update events.
468
- *
469
- * @example
470
- * ```ts
471
- * import { createConfig, http } from '@wagmi/core'
472
- * import { tempo } from 'viem/chains'
473
- * import { Actions } from 'tempo.ts/wagmi'
474
- *
475
- * const config = createConfig({
476
- * chains: [tempoTestnet],
477
- * transports: {
478
- * [tempo.id]: http(),
479
- * },
480
- * })
481
- *
482
- * const unwatch = Actions.policy.watchWhitelistUpdated(config, {
483
- * onWhitelistUpdated: (args, log) => {
484
- * console.log('Whitelist updated:', args)
485
- * },
486
- * })
487
- * ```
488
- *
489
- * @param config - Config.
490
- * @param parameters - Parameters.
491
- * @returns A function to unsubscribe from the event.
492
- */
493
- export function watchWhitelistUpdated(config, parameters) {
494
- const { chainId, ...rest } = parameters;
495
- const client = config.getClient({ chainId });
496
- return Actions.policy.watchWhitelistUpdated(client, rest);
497
- }
498
- /**
499
- * Watches for blacklist update events.
500
- *
501
- * @example
502
- * ```ts
503
- * import { createConfig, http } from '@wagmi/core'
504
- * import { tempo } from 'viem/chains'
505
- * import { Actions } from 'tempo.ts/wagmi'
506
- *
507
- * const config = createConfig({
508
- * chains: [tempoTestnet],
509
- * transports: {
510
- * [tempo.id]: http(),
511
- * },
512
- * })
513
- *
514
- * const unwatch = Actions.policy.watchBlacklistUpdated(config, {
515
- * onBlacklistUpdated: (args, log) => {
516
- * console.log('Blacklist updated:', args)
517
- * },
518
- * })
519
- * ```
520
- *
521
- * @param config - Config.
522
- * @param parameters - Parameters.
523
- * @returns A function to unsubscribe from the event.
524
- */
525
- export function watchBlacklistUpdated(config, parameters) {
526
- const { chainId, ...rest } = parameters;
527
- const client = config.getClient({ chainId });
528
- return Actions.policy.watchBlacklistUpdated(client, rest);
529
- }
530
- //# sourceMappingURL=policy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"policy.js","sourceRoot":"","sources":["../../../src/wagmi/Actions/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAG7D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,MAAc,EACd,UAAqC;IAErC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,UAAU,CAAA;IAElD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE;QAC9C,OAAO;QACP,aAAa,EAAE,KAAK;QACpB,OAAO;QACP,SAAS;KACV,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAmB,CAAC,CAAA;AAC3D,CAAC;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,MAAc,EACd,UAAyC;IAEzC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,UAAU,CAAA;IAElD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE;QAC9C,OAAO;QACP,aAAa,EAAE,KAAK;QACpB,OAAO;QACP,SAAS;KACV,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,UAAmB,CAAC,CAAA;AAC/D,CAAC;AAeD;;;;;;;;;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