tempo.ts 0.5.1 → 0.5.2

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