viem 2.51.3 → 2.52.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 (73) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/errors/version.js +1 -1
  3. package/_cjs/tempo/Abis.js +189 -1
  4. package/_cjs/tempo/Abis.js.map +1 -1
  5. package/_cjs/tempo/Account.js +27 -20
  6. package/_cjs/tempo/Account.js.map +1 -1
  7. package/_cjs/tempo/Addresses.js +3 -1
  8. package/_cjs/tempo/Addresses.js.map +1 -1
  9. package/_cjs/tempo/Decorator.js +23 -0
  10. package/_cjs/tempo/Decorator.js.map +1 -1
  11. package/_cjs/tempo/Hardfork.js +3 -0
  12. package/_cjs/tempo/Hardfork.js.map +1 -1
  13. package/_cjs/tempo/actions/accessKey.js +238 -72
  14. package/_cjs/tempo/actions/accessKey.js.map +1 -1
  15. package/_cjs/tempo/actions/index.js +2 -1
  16. package/_cjs/tempo/actions/index.js.map +1 -1
  17. package/_cjs/tempo/actions/receivePolicy.js +363 -0
  18. package/_cjs/tempo/actions/receivePolicy.js.map +1 -0
  19. package/_cjs/tempo/index.js +2 -1
  20. package/_cjs/tempo/index.js.map +1 -1
  21. package/_esm/errors/version.js +1 -1
  22. package/_esm/tempo/Abis.js +188 -0
  23. package/_esm/tempo/Abis.js.map +1 -1
  24. package/_esm/tempo/Account.js +35 -20
  25. package/_esm/tempo/Account.js.map +1 -1
  26. package/_esm/tempo/Addresses.js +2 -0
  27. package/_esm/tempo/Addresses.js.map +1 -1
  28. package/_esm/tempo/Decorator.js +23 -0
  29. package/_esm/tempo/Decorator.js.map +1 -1
  30. package/_esm/tempo/Hardfork.js +3 -0
  31. package/_esm/tempo/Hardfork.js.map +1 -1
  32. package/_esm/tempo/actions/accessKey.js +562 -128
  33. package/_esm/tempo/actions/accessKey.js.map +1 -1
  34. package/_esm/tempo/actions/index.js +1 -0
  35. package/_esm/tempo/actions/index.js.map +1 -1
  36. package/_esm/tempo/actions/receivePolicy.js +753 -0
  37. package/_esm/tempo/actions/receivePolicy.js.map +1 -0
  38. package/_esm/tempo/index.js +1 -1
  39. package/_esm/tempo/index.js.map +1 -1
  40. package/_types/errors/version.d.ts +1 -1
  41. package/_types/tempo/Abis.d.ts +671 -4
  42. package/_types/tempo/Abis.d.ts.map +1 -1
  43. package/_types/tempo/Account.d.ts +13 -2
  44. package/_types/tempo/Account.d.ts.map +1 -1
  45. package/_types/tempo/Addresses.d.ts +2 -0
  46. package/_types/tempo/Addresses.d.ts.map +1 -1
  47. package/_types/tempo/Decorator.d.ts +501 -0
  48. package/_types/tempo/Decorator.d.ts.map +1 -1
  49. package/_types/tempo/Hardfork.d.ts +1 -1
  50. package/_types/tempo/Hardfork.d.ts.map +1 -1
  51. package/_types/tempo/actions/accessKey.d.ts +1520 -304
  52. package/_types/tempo/actions/accessKey.d.ts.map +1 -1
  53. package/_types/tempo/actions/dex.d.ts +75 -0
  54. package/_types/tempo/actions/dex.d.ts.map +1 -1
  55. package/_types/tempo/actions/index.d.ts +1 -0
  56. package/_types/tempo/actions/index.d.ts.map +1 -1
  57. package/_types/tempo/actions/policy.d.ts +352 -0
  58. package/_types/tempo/actions/policy.d.ts.map +1 -1
  59. package/_types/tempo/actions/receivePolicy.d.ts +1511 -0
  60. package/_types/tempo/actions/receivePolicy.d.ts.map +1 -0
  61. package/_types/tempo/index.d.ts +1 -1
  62. package/_types/tempo/index.d.ts.map +1 -1
  63. package/errors/version.ts +1 -1
  64. package/package.json +2 -2
  65. package/tempo/Abis.ts +189 -0
  66. package/tempo/Account.ts +56 -27
  67. package/tempo/Addresses.ts +2 -0
  68. package/tempo/Decorator.ts +578 -0
  69. package/tempo/Hardfork.ts +3 -0
  70. package/tempo/actions/accessKey.ts +1002 -279
  71. package/tempo/actions/index.ts +1 -0
  72. package/tempo/actions/receivePolicy.ts +1266 -0
  73. package/tempo/index.ts +1 -0
@@ -11,6 +11,7 @@ import * as faucetActions from './actions/faucet.js'
11
11
  import * as feeActions from './actions/fee.js'
12
12
  import * as nonceActions from './actions/nonce.js'
13
13
  import * as policyActions from './actions/policy.js'
14
+ import * as receivePolicyActions from './actions/receivePolicy.js'
14
15
  import * as rewardActions from './actions/reward.js'
15
16
  import * as simulateActions from './actions/simulate.js'
16
17
  import * as tokenActions from './actions/token.js'
@@ -89,6 +90,61 @@ export type Decorator<
89
90
  authorizeSync: (
90
91
  parameters: accessKeyActions.authorizeSync.Parameters<chain, account>,
91
92
  ) => Promise<accessKeyActions.authorizeSync.ReturnValue>
93
+ /**
94
+ * Burns a key-authorization witness, invalidating any authorization bound
95
+ * to it before it is submitted onchain.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * import { createClient, http } from 'viem'
100
+ * import { tempo } from 'viem/chains'
101
+ * import { tempoActions } from 'viem/tempo'
102
+ * import { privateKeyToAccount } from 'viem/accounts'
103
+ *
104
+ * const client = createClient({
105
+ * account: privateKeyToAccount('0x...'),
106
+ * chain: tempo,
107
+ * transport: http(),
108
+ * }).extend(tempoActions())
109
+ *
110
+ * const hash = await client.accessKey.burnWitness({
111
+ * witness: '0x...',
112
+ * })
113
+ * ```
114
+ *
115
+ * @param parameters - Parameters.
116
+ * @returns The transaction hash.
117
+ */
118
+ burnWitness: (
119
+ parameters: accessKeyActions.burnWitness.Parameters<chain, account>,
120
+ ) => Promise<accessKeyActions.burnWitness.ReturnValue>
121
+ /**
122
+ * Burns a key-authorization witness and waits for the transaction receipt.
123
+ *
124
+ * @example
125
+ * ```ts
126
+ * import { createClient, http } from 'viem'
127
+ * import { tempo } from 'viem/chains'
128
+ * import { tempoActions } from 'viem/tempo'
129
+ * import { privateKeyToAccount } from 'viem/accounts'
130
+ *
131
+ * const client = createClient({
132
+ * account: privateKeyToAccount('0x...'),
133
+ * chain: tempo,
134
+ * transport: http(),
135
+ * }).extend(tempoActions())
136
+ *
137
+ * const { receipt, ...result } = await client.accessKey.burnWitnessSync({
138
+ * witness: '0x...',
139
+ * })
140
+ * ```
141
+ *
142
+ * @param parameters - Parameters.
143
+ * @returns The transaction receipt and event data.
144
+ */
145
+ burnWitnessSync: (
146
+ parameters: accessKeyActions.burnWitnessSync.Parameters<chain, account>,
147
+ ) => Promise<accessKeyActions.burnWitnessSync.ReturnValue>
92
148
  /**
93
149
  * Gets access key information.
94
150
  *
@@ -142,6 +198,58 @@ export type Decorator<
142
198
  getRemainingLimit: (
143
199
  parameters: accessKeyActions.getRemainingLimit.Parameters<account>,
144
200
  ) => Promise<accessKeyActions.getRemainingLimit.ReturnValue>
201
+ /**
202
+ * Checks whether an access key is an admin key for an account.
203
+ *
204
+ * @example
205
+ * ```ts
206
+ * import { createClient, http } from 'viem'
207
+ * import { tempo } from 'viem/chains'
208
+ * import { tempoActions } from 'viem/tempo'
209
+ *
210
+ * const client = createClient({
211
+ * chain: tempo,
212
+ * transport: http(),
213
+ * }).extend(tempoActions())
214
+ *
215
+ * const isAdmin = await client.accessKey.isAdmin({
216
+ * account: '0x...',
217
+ * accessKey: '0x...',
218
+ * })
219
+ * ```
220
+ *
221
+ * @param parameters - Parameters.
222
+ * @returns Whether the access key is an admin key.
223
+ */
224
+ isAdmin: (
225
+ parameters: accessKeyActions.isAdmin.Parameters<account>,
226
+ ) => Promise<accessKeyActions.isAdmin.ReturnValue>
227
+ /**
228
+ * Checks whether a key-authorization witness has been burned for an account.
229
+ *
230
+ * @example
231
+ * ```ts
232
+ * import { createClient, http } from 'viem'
233
+ * import { tempo } from 'viem/chains'
234
+ * import { tempoActions } from 'viem/tempo'
235
+ *
236
+ * const client = createClient({
237
+ * chain: tempo,
238
+ * transport: http(),
239
+ * }).extend(tempoActions())
240
+ *
241
+ * const isBurned = await client.accessKey.isWitnessBurned({
242
+ * account: '0x...',
243
+ * witness: '0x...',
244
+ * })
245
+ * ```
246
+ *
247
+ * @param parameters - Parameters.
248
+ * @returns Whether the witness has been burned.
249
+ */
250
+ isWitnessBurned: (
251
+ parameters: accessKeyActions.isWitnessBurned.Parameters<account>,
252
+ ) => Promise<accessKeyActions.isWitnessBurned.ReturnValue>
145
253
  /**
146
254
  * Revokes an authorized access key.
147
255
  *
@@ -254,6 +362,87 @@ export type Decorator<
254
362
  updateLimitSync: (
255
363
  parameters: accessKeyActions.updateLimitSync.Parameters<chain, account>,
256
364
  ) => Promise<accessKeyActions.updateLimitSync.ReturnValue>
365
+ /**
366
+ * Watches for admin key authorization events.
367
+ *
368
+ * @example
369
+ * ```ts
370
+ * import { createClient, http } from 'viem'
371
+ * import { tempo } from 'viem/chains'
372
+ * import { tempoActions } from 'viem/tempo'
373
+ *
374
+ * const client = createClient({
375
+ * chain: tempo,
376
+ * transport: http(),
377
+ * }).extend(tempoActions())
378
+ *
379
+ * const unwatch = client.accessKey.watchAdminAuthorized({
380
+ * onAuthorized: (args, log) => {
381
+ * console.log('Admin key authorized:', args)
382
+ * },
383
+ * })
384
+ * ```
385
+ *
386
+ * @param parameters - Parameters.
387
+ * @returns A function to unsubscribe from the event.
388
+ */
389
+ watchAdminAuthorized: (
390
+ parameters: accessKeyActions.watchAdminAuthorized.Parameters,
391
+ ) => ReturnType<typeof accessKeyActions.watchAdminAuthorized>
392
+ /**
393
+ * Watches for key-authorization witness events.
394
+ *
395
+ * @example
396
+ * ```ts
397
+ * import { createClient, http } from 'viem'
398
+ * import { tempo } from 'viem/chains'
399
+ * import { tempoActions } from 'viem/tempo'
400
+ *
401
+ * const client = createClient({
402
+ * chain: tempo,
403
+ * transport: http(),
404
+ * }).extend(tempoActions())
405
+ *
406
+ * const unwatch = client.accessKey.watchWitness({
407
+ * onWitness: (args, log) => {
408
+ * console.log('Witness used:', args)
409
+ * },
410
+ * })
411
+ * ```
412
+ *
413
+ * @param parameters - Parameters.
414
+ * @returns A function to unsubscribe from the event.
415
+ */
416
+ watchWitness: (
417
+ parameters: accessKeyActions.watchWitness.Parameters,
418
+ ) => ReturnType<typeof accessKeyActions.watchWitness>
419
+ /**
420
+ * Watches for key-authorization witness burned events.
421
+ *
422
+ * @example
423
+ * ```ts
424
+ * import { createClient, http } from 'viem'
425
+ * import { tempo } from 'viem/chains'
426
+ * import { tempoActions } from 'viem/tempo'
427
+ *
428
+ * const client = createClient({
429
+ * chain: tempo,
430
+ * transport: http(),
431
+ * }).extend(tempoActions())
432
+ *
433
+ * const unwatch = client.accessKey.watchWitnessBurned({
434
+ * onBurned: (args, log) => {
435
+ * console.log('Witness burned:', args)
436
+ * },
437
+ * })
438
+ * ```
439
+ *
440
+ * @param parameters - Parameters.
441
+ * @returns A function to unsubscribe from the event.
442
+ */
443
+ watchWitnessBurned: (
444
+ parameters: accessKeyActions.watchWitnessBurned.Parameters,
445
+ ) => ReturnType<typeof accessKeyActions.watchWitnessBurned>
257
446
  }
258
447
  amm: {
259
448
  /**
@@ -2190,6 +2379,358 @@ export type Decorator<
2190
2379
  parameters: policyActions.watchBlacklistUpdated.Parameters,
2191
2380
  ) => () => void
2192
2381
  }
2382
+ receivePolicy: {
2383
+ /**
2384
+ * Burns the funds backing a blocked receipt.
2385
+ *
2386
+ * @example
2387
+ * ```ts
2388
+ * import { createClient, http } from 'viem'
2389
+ * import { privateKeyToAccount } from 'viem/accounts'
2390
+ * import { tempo } from 'viem/chains'
2391
+ * import { tempoActions } from 'viem/tempo'
2392
+ *
2393
+ * const client = createClient({
2394
+ * account: privateKeyToAccount('0x...'),
2395
+ * chain: tempo
2396
+ * transport: http(),
2397
+ * }).extend(tempoActions())
2398
+ *
2399
+ * const hash = await client.receivePolicy.burn({ receipt: '0x...' })
2400
+ * ```
2401
+ *
2402
+ * @param parameters - Parameters.
2403
+ * @returns The transaction hash.
2404
+ */
2405
+ burn: (
2406
+ parameters: receivePolicyActions.burn.Parameters<chain, account>,
2407
+ ) => Promise<receivePolicyActions.burn.ReturnValue>
2408
+ /**
2409
+ * Burns the funds backing a blocked receipt and waits for the receipt.
2410
+ *
2411
+ * @example
2412
+ * ```ts
2413
+ * import { createClient, http } from 'viem'
2414
+ * import { privateKeyToAccount } from 'viem/accounts'
2415
+ * import { tempo } from 'viem/chains'
2416
+ * import { tempoActions } from 'viem/tempo'
2417
+ *
2418
+ * const client = createClient({
2419
+ * account: privateKeyToAccount('0x...'),
2420
+ * chain: tempo
2421
+ * transport: http(),
2422
+ * }).extend(tempoActions())
2423
+ *
2424
+ * const { receipt, ...result } = await client.receivePolicy.burnSync({
2425
+ * receipt: '0x...',
2426
+ * })
2427
+ * ```
2428
+ *
2429
+ * @param parameters - Parameters.
2430
+ * @returns The transaction receipt and event data.
2431
+ */
2432
+ burnSync: (
2433
+ parameters: receivePolicyActions.burnSync.Parameters<chain, account>,
2434
+ ) => Promise<receivePolicyActions.burnSync.ReturnValue>
2435
+ /**
2436
+ * Claims blocked funds for a receipt, releasing them to a destination.
2437
+ *
2438
+ * @example
2439
+ * ```ts
2440
+ * import { createClient, http } from 'viem'
2441
+ * import { privateKeyToAccount } from 'viem/accounts'
2442
+ * import { tempo } from 'viem/chains'
2443
+ * import { tempoActions } from 'viem/tempo'
2444
+ *
2445
+ * const client = createClient({
2446
+ * account: privateKeyToAccount('0x...'),
2447
+ * chain: tempo
2448
+ * transport: http(),
2449
+ * }).extend(tempoActions())
2450
+ *
2451
+ * const hash = await client.receivePolicy.claim({
2452
+ * to: '0x...',
2453
+ * receipt: '0x...',
2454
+ * })
2455
+ * ```
2456
+ *
2457
+ * @param parameters - Parameters.
2458
+ * @returns The transaction hash.
2459
+ */
2460
+ claim: (
2461
+ parameters: receivePolicyActions.claim.Parameters<chain, account>,
2462
+ ) => Promise<receivePolicyActions.claim.ReturnValue>
2463
+ /**
2464
+ * Claims blocked funds for a receipt and waits for the receipt.
2465
+ *
2466
+ * @example
2467
+ * ```ts
2468
+ * import { createClient, http } from 'viem'
2469
+ * import { privateKeyToAccount } from 'viem/accounts'
2470
+ * import { tempo } from 'viem/chains'
2471
+ * import { tempoActions } from 'viem/tempo'
2472
+ *
2473
+ * const client = createClient({
2474
+ * account: privateKeyToAccount('0x...'),
2475
+ * chain: tempo
2476
+ * transport: http(),
2477
+ * }).extend(tempoActions())
2478
+ *
2479
+ * const { receipt, ...result } = await client.receivePolicy.claimSync({
2480
+ * to: '0x...',
2481
+ * receipt: '0x...',
2482
+ * })
2483
+ * ```
2484
+ *
2485
+ * @param parameters - Parameters.
2486
+ * @returns The transaction receipt and event data.
2487
+ */
2488
+ claimSync: (
2489
+ parameters: receivePolicyActions.claimSync.Parameters<chain, account>,
2490
+ ) => Promise<receivePolicyActions.claimSync.ReturnValue>
2491
+ /**
2492
+ * Gets the receive policy configured for an account.
2493
+ *
2494
+ * @example
2495
+ * ```ts
2496
+ * import { createClient, http } from 'viem'
2497
+ * import { tempo } from 'viem/chains'
2498
+ * import { tempoActions } from 'viem/tempo'
2499
+ *
2500
+ * const client = createClient({
2501
+ * chain: tempo
2502
+ * transport: http(),
2503
+ * }).extend(tempoActions())
2504
+ *
2505
+ * const policy = await client.receivePolicy.get({ account: '0x...' })
2506
+ * ```
2507
+ *
2508
+ * @param parameters - Parameters.
2509
+ * @returns The receive policy.
2510
+ */
2511
+ get: (
2512
+ parameters: receivePolicyActions.get.Parameters<account>,
2513
+ ) => Promise<receivePolicyActions.get.ReturnValue>
2514
+ /**
2515
+ * Gets the blocked balance for an encoded receipt.
2516
+ *
2517
+ * @example
2518
+ * ```ts
2519
+ * import { createClient, http } from 'viem'
2520
+ * import { tempo } from 'viem/chains'
2521
+ * import { tempoActions } from 'viem/tempo'
2522
+ *
2523
+ * const client = createClient({
2524
+ * chain: tempo
2525
+ * transport: http(),
2526
+ * }).extend(tempoActions())
2527
+ *
2528
+ * const amount = await client.receivePolicy.getBlockedBalance({
2529
+ * receipt: '0x...',
2530
+ * })
2531
+ * ```
2532
+ *
2533
+ * @param parameters - Parameters.
2534
+ * @returns The blocked amount for the receipt.
2535
+ */
2536
+ getBlockedBalance: (
2537
+ parameters: receivePolicyActions.getBlockedBalance.Parameters,
2538
+ ) => Promise<receivePolicyActions.getBlockedBalance.ReturnValue>
2539
+ /**
2540
+ * Sets the receive policy for the calling account.
2541
+ *
2542
+ * @example
2543
+ * ```ts
2544
+ * import { createClient, http } from 'viem'
2545
+ * import { privateKeyToAccount } from 'viem/accounts'
2546
+ * import { tempo } from 'viem/chains'
2547
+ * import { tempoActions } from 'viem/tempo'
2548
+ *
2549
+ * const client = createClient({
2550
+ * account: privateKeyToAccount('0x...'),
2551
+ * chain: tempo
2552
+ * transport: http(),
2553
+ * }).extend(tempoActions())
2554
+ *
2555
+ * const hash = await client.receivePolicy.set({
2556
+ * senderPolicyId: 'allow-all',
2557
+ * tokenPolicyId: 'allow-all',
2558
+ * claimer: 'self',
2559
+ * })
2560
+ * ```
2561
+ *
2562
+ * @param parameters - Parameters.
2563
+ * @returns The transaction hash.
2564
+ */
2565
+ set: (
2566
+ parameters: receivePolicyActions.set.Parameters<chain, account>,
2567
+ ) => Promise<receivePolicyActions.set.ReturnValue>
2568
+ /**
2569
+ * Sets the receive policy for the calling account and waits for the receipt.
2570
+ *
2571
+ * @example
2572
+ * ```ts
2573
+ * import { createClient, http } from 'viem'
2574
+ * import { privateKeyToAccount } from 'viem/accounts'
2575
+ * import { tempo } from 'viem/chains'
2576
+ * import { tempoActions } from 'viem/tempo'
2577
+ *
2578
+ * const client = createClient({
2579
+ * account: privateKeyToAccount('0x...'),
2580
+ * chain: tempo
2581
+ * transport: http(),
2582
+ * }).extend(tempoActions())
2583
+ *
2584
+ * const { receipt, ...result } = await client.receivePolicy.setSync({
2585
+ * senderPolicyId: 'allow-all',
2586
+ * tokenPolicyId: 'allow-all',
2587
+ * claimer: 'self',
2588
+ * })
2589
+ * ```
2590
+ *
2591
+ * @param parameters - Parameters.
2592
+ * @returns The transaction receipt and event data.
2593
+ */
2594
+ setSync: (
2595
+ parameters: receivePolicyActions.setSync.Parameters<chain, account>,
2596
+ ) => Promise<receivePolicyActions.setSync.ReturnValue>
2597
+ /**
2598
+ * Checks whether a transfer or mint to a receiver is allowed by the
2599
+ * receiver's receive policy.
2600
+ *
2601
+ * @example
2602
+ * ```ts
2603
+ * import { createClient, http } from 'viem'
2604
+ * import { tempo } from 'viem/chains'
2605
+ * import { tempoActions } from 'viem/tempo'
2606
+ *
2607
+ * const client = createClient({
2608
+ * chain: tempo
2609
+ * transport: http(),
2610
+ * }).extend(tempoActions())
2611
+ *
2612
+ * const { authorized, blockedReason } = await client.receivePolicy.validate({
2613
+ * token: '0x...',
2614
+ * sender: '0x...',
2615
+ * receiver: '0x...',
2616
+ * })
2617
+ * ```
2618
+ *
2619
+ * @param parameters - Parameters.
2620
+ * @returns Whether the transfer is authorized and, if not, why.
2621
+ */
2622
+ validate: (
2623
+ parameters: receivePolicyActions.validate.Parameters,
2624
+ ) => Promise<receivePolicyActions.validate.ReturnValue>
2625
+ /**
2626
+ * Watches for blocked transfer events.
2627
+ *
2628
+ * @example
2629
+ * ```ts
2630
+ * import { createClient, http } from 'viem'
2631
+ * import { tempo } from 'viem/chains'
2632
+ * import { tempoActions } from 'viem/tempo'
2633
+ *
2634
+ * const client = createClient({
2635
+ * chain: tempo
2636
+ * transport: http(),
2637
+ * }).extend(tempoActions())
2638
+ *
2639
+ * const unwatch = client.receivePolicy.watchBlocked({
2640
+ * onBlocked: (args, log) => {
2641
+ * console.log('Transfer blocked:', args)
2642
+ * },
2643
+ * })
2644
+ * ```
2645
+ *
2646
+ * @param parameters - Parameters.
2647
+ * @returns A function to unsubscribe from the event.
2648
+ */
2649
+ watchBlocked: (
2650
+ parameters: receivePolicyActions.watchBlocked.Parameters,
2651
+ ) => () => void
2652
+ /**
2653
+ * Watches for receipt burned events.
2654
+ *
2655
+ * @example
2656
+ * ```ts
2657
+ * import { createClient, http } from 'viem'
2658
+ * import { tempo } from 'viem/chains'
2659
+ * import { tempoActions } from 'viem/tempo'
2660
+ *
2661
+ * const client = createClient({
2662
+ * chain: tempo
2663
+ * transport: http(),
2664
+ * }).extend(tempoActions())
2665
+ *
2666
+ * const unwatch = client.receivePolicy.watchBurned({
2667
+ * onBurned: (args, log) => {
2668
+ * console.log('Receipt burned:', args)
2669
+ * },
2670
+ * })
2671
+ * ```
2672
+ *
2673
+ * @param parameters - Parameters.
2674
+ * @returns A function to unsubscribe from the event.
2675
+ */
2676
+ watchBurned: (
2677
+ parameters: receivePolicyActions.watchBurned.Parameters,
2678
+ ) => () => void
2679
+ /**
2680
+ * Watches for receipt claimed events.
2681
+ *
2682
+ * @example
2683
+ * ```ts
2684
+ * import { createClient, http } from 'viem'
2685
+ * import { tempo } from 'viem/chains'
2686
+ * import { tempoActions } from 'viem/tempo'
2687
+ *
2688
+ * const client = createClient({
2689
+ * chain: tempo
2690
+ * transport: http(),
2691
+ * }).extend(tempoActions())
2692
+ *
2693
+ * const unwatch = client.receivePolicy.watchClaimed({
2694
+ * onClaimed: (args, log) => {
2695
+ * console.log('Receipt claimed:', args)
2696
+ * },
2697
+ * })
2698
+ * ```
2699
+ *
2700
+ * @param parameters - Parameters.
2701
+ * @returns A function to unsubscribe from the event.
2702
+ */
2703
+ watchClaimed: (
2704
+ parameters: receivePolicyActions.watchClaimed.Parameters,
2705
+ ) => () => void
2706
+ /**
2707
+ * Watches for receive policy update events.
2708
+ *
2709
+ * @example
2710
+ * ```ts
2711
+ * import { createClient, http } from 'viem'
2712
+ * import { tempo } from 'viem/chains'
2713
+ * import { tempoActions } from 'viem/tempo'
2714
+ *
2715
+ * const client = createClient({
2716
+ * chain: tempo
2717
+ * transport: http(),
2718
+ * }).extend(tempoActions())
2719
+ *
2720
+ * const unwatch = client.receivePolicy.watchUpdated({
2721
+ * onUpdated: (args, log) => {
2722
+ * console.log('Receive policy updated:', args)
2723
+ * },
2724
+ * })
2725
+ * ```
2726
+ *
2727
+ * @param parameters - Parameters.
2728
+ * @returns A function to unsubscribe from the event.
2729
+ */
2730
+ watchUpdated: (
2731
+ parameters: receivePolicyActions.watchUpdated.Parameters,
2732
+ ) => () => void
2733
+ }
2193
2734
  reward: {
2194
2735
  /**
2195
2736
  * Claims accumulated rewards for a recipient.
@@ -4547,10 +5088,17 @@ export function decorator() {
4547
5088
  accessKeyActions.authorize(client, parameters),
4548
5089
  authorizeSync: (parameters) =>
4549
5090
  accessKeyActions.authorizeSync(client, parameters),
5091
+ burnWitness: (parameters) =>
5092
+ accessKeyActions.burnWitness(client, parameters),
5093
+ burnWitnessSync: (parameters) =>
5094
+ accessKeyActions.burnWitnessSync(client, parameters),
4550
5095
  getMetadata: (parameters) =>
4551
5096
  accessKeyActions.getMetadata(client, parameters),
4552
5097
  getRemainingLimit: (parameters) =>
4553
5098
  accessKeyActions.getRemainingLimit(client, parameters),
5099
+ isAdmin: (parameters) => accessKeyActions.isAdmin(client, parameters),
5100
+ isWitnessBurned: (parameters) =>
5101
+ accessKeyActions.isWitnessBurned(client, parameters),
4554
5102
  revoke: (parameters) => accessKeyActions.revoke(client, parameters),
4555
5103
  revokeSync: (parameters) =>
4556
5104
  accessKeyActions.revokeSync(client, parameters),
@@ -4558,6 +5106,12 @@ export function decorator() {
4558
5106
  accessKeyActions.updateLimit(client, parameters),
4559
5107
  updateLimitSync: (parameters) =>
4560
5108
  accessKeyActions.updateLimitSync(client, parameters),
5109
+ watchAdminAuthorized: (parameters) =>
5110
+ accessKeyActions.watchAdminAuthorized(client, parameters),
5111
+ watchWitness: (parameters) =>
5112
+ accessKeyActions.watchWitness(client, parameters),
5113
+ watchWitnessBurned: (parameters) =>
5114
+ accessKeyActions.watchWitnessBurned(client, parameters),
4561
5115
  },
4562
5116
  amm: {
4563
5117
  getPool: (parameters) => ammActions.getPool(client, parameters),
@@ -4684,6 +5238,30 @@ export function decorator() {
4684
5238
  watchBlacklistUpdated: (parameters) =>
4685
5239
  policyActions.watchBlacklistUpdated(client, parameters),
4686
5240
  },
5241
+ receivePolicy: {
5242
+ burn: (parameters) => receivePolicyActions.burn(client, parameters),
5243
+ burnSync: (parameters) =>
5244
+ receivePolicyActions.burnSync(client, parameters),
5245
+ claim: (parameters) => receivePolicyActions.claim(client, parameters),
5246
+ claimSync: (parameters) =>
5247
+ receivePolicyActions.claimSync(client, parameters),
5248
+ get: (parameters) => receivePolicyActions.get(client, parameters),
5249
+ getBlockedBalance: (parameters) =>
5250
+ receivePolicyActions.getBlockedBalance(client, parameters),
5251
+ set: (parameters) => receivePolicyActions.set(client, parameters),
5252
+ setSync: (parameters) =>
5253
+ receivePolicyActions.setSync(client, parameters),
5254
+ validate: (parameters) =>
5255
+ receivePolicyActions.validate(client, parameters),
5256
+ watchBlocked: (parameters) =>
5257
+ receivePolicyActions.watchBlocked(client, parameters),
5258
+ watchBurned: (parameters) =>
5259
+ receivePolicyActions.watchBurned(client, parameters),
5260
+ watchClaimed: (parameters) =>
5261
+ receivePolicyActions.watchClaimed(client, parameters),
5262
+ watchUpdated: (parameters) =>
5263
+ receivePolicyActions.watchUpdated(client, parameters),
5264
+ },
4687
5265
  reward: {
4688
5266
  claim: (parameters) => rewardActions.claim(client, parameters),
4689
5267
  claimSync: (parameters) => rewardActions.claimSync(client, parameters),
package/tempo/Hardfork.ts CHANGED
@@ -7,6 +7,9 @@ export const hardforks = [
7
7
  't1c',
8
8
  't2',
9
9
  't3',
10
+ 't4',
11
+ 't5',
12
+ 't6',
10
13
  ] as const
11
14
 
12
15
  export type Hardfork = (typeof hardforks)[number]