viem 2.47.6 → 2.47.11

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 (210) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/_cjs/actions/wallet/prepareTransactionRequest.js +12 -0
  3. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  4. package/_cjs/actions/wallet/waitForCallsStatus.js.map +1 -1
  5. package/_cjs/chains/definitions/battlechainTestnet.js +26 -0
  6. package/_cjs/chains/definitions/battlechainTestnet.js.map +1 -0
  7. package/_cjs/chains/definitions/eden.js +32 -0
  8. package/_cjs/chains/definitions/eden.js.map +1 -0
  9. package/_cjs/chains/definitions/fluent.js +26 -0
  10. package/_cjs/chains/definitions/fluent.js.map +1 -0
  11. package/_cjs/chains/definitions/gensyn.js +29 -0
  12. package/_cjs/chains/definitions/gensyn.js.map +1 -0
  13. package/_cjs/chains/definitions/igra.js +26 -0
  14. package/_cjs/chains/definitions/igra.js.map +1 -0
  15. package/_cjs/chains/definitions/katana.js +6 -0
  16. package/_cjs/chains/definitions/katana.js.map +1 -1
  17. package/_cjs/chains/definitions/megaeth.js +25 -3
  18. package/_cjs/chains/definitions/megaeth.js.map +1 -1
  19. package/_cjs/chains/definitions/mezo.js +23 -0
  20. package/_cjs/chains/definitions/mezo.js.map +1 -0
  21. package/_cjs/chains/definitions/mezoTestnet.js +30 -0
  22. package/_cjs/chains/definitions/mezoTestnet.js.map +1 -0
  23. package/_cjs/chains/definitions/radius.js +22 -0
  24. package/_cjs/chains/definitions/radius.js.map +1 -0
  25. package/_cjs/chains/definitions/radiusTestnet.js +22 -0
  26. package/_cjs/chains/definitions/radiusTestnet.js.map +1 -0
  27. package/_cjs/chains/definitions/tempoDevnet.js +1 -0
  28. package/_cjs/chains/definitions/tempoDevnet.js.map +1 -1
  29. package/_cjs/chains/definitions/tempoLocalnet.js +1 -0
  30. package/_cjs/chains/definitions/tempoLocalnet.js.map +1 -1
  31. package/_cjs/chains/definitions/tempoModerato.js +1 -1
  32. package/_cjs/chains/definitions/tempoModerato.js.map +1 -1
  33. package/_cjs/chains/index.js +34 -17
  34. package/_cjs/chains/index.js.map +1 -1
  35. package/_cjs/errors/version.js +1 -1
  36. package/_cjs/errors/version.js.map +1 -1
  37. package/_cjs/tempo/Abis.js +701 -4
  38. package/_cjs/tempo/Abis.js.map +1 -1
  39. package/_cjs/tempo/Account.js +7 -5
  40. package/_cjs/tempo/Account.js.map +1 -1
  41. package/_cjs/tempo/Hardfork.js +18 -0
  42. package/_cjs/tempo/Hardfork.js.map +1 -0
  43. package/_cjs/tempo/Transaction.js +1 -0
  44. package/_cjs/tempo/Transaction.js.map +1 -1
  45. package/_cjs/tempo/actions/accessKey.js +28 -3
  46. package/_cjs/tempo/actions/accessKey.js.map +1 -1
  47. package/_cjs/tempo/actions/token.js +2 -1
  48. package/_cjs/tempo/actions/token.js.map +1 -1
  49. package/_cjs/tempo/actions/validator.js +11 -11
  50. package/_cjs/tempo/actions/validator.js.map +1 -1
  51. package/_cjs/tempo/chainConfig.js +44 -8
  52. package/_cjs/tempo/chainConfig.js.map +1 -1
  53. package/_cjs/tempo/index.js +3 -1
  54. package/_cjs/tempo/index.js.map +1 -1
  55. package/_cjs/utils/buildRequest.js +2 -0
  56. package/_cjs/utils/buildRequest.js.map +1 -1
  57. package/_esm/actions/wallet/prepareTransactionRequest.js +12 -0
  58. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  59. package/_esm/actions/wallet/waitForCallsStatus.js.map +1 -1
  60. package/_esm/chains/definitions/battlechainTestnet.js +23 -0
  61. package/_esm/chains/definitions/battlechainTestnet.js.map +1 -0
  62. package/_esm/chains/definitions/eden.js +29 -0
  63. package/_esm/chains/definitions/eden.js.map +1 -0
  64. package/_esm/chains/definitions/fluent.js +23 -0
  65. package/_esm/chains/definitions/fluent.js.map +1 -0
  66. package/_esm/chains/definitions/gensyn.js +26 -0
  67. package/_esm/chains/definitions/gensyn.js.map +1 -0
  68. package/_esm/chains/definitions/igra.js +23 -0
  69. package/_esm/chains/definitions/igra.js.map +1 -0
  70. package/_esm/chains/definitions/katana.js +6 -0
  71. package/_esm/chains/definitions/katana.js.map +1 -1
  72. package/_esm/chains/definitions/megaeth.js +25 -3
  73. package/_esm/chains/definitions/megaeth.js.map +1 -1
  74. package/_esm/chains/definitions/mezo.js +20 -0
  75. package/_esm/chains/definitions/mezo.js.map +1 -0
  76. package/_esm/chains/definitions/mezoTestnet.js +27 -0
  77. package/_esm/chains/definitions/mezoTestnet.js.map +1 -0
  78. package/_esm/chains/definitions/radius.js +19 -0
  79. package/_esm/chains/definitions/radius.js.map +1 -0
  80. package/_esm/chains/definitions/radiusTestnet.js +19 -0
  81. package/_esm/chains/definitions/radiusTestnet.js.map +1 -0
  82. package/_esm/chains/definitions/tempoDevnet.js +1 -0
  83. package/_esm/chains/definitions/tempoDevnet.js.map +1 -1
  84. package/_esm/chains/definitions/tempoLocalnet.js +1 -0
  85. package/_esm/chains/definitions/tempoLocalnet.js.map +1 -1
  86. package/_esm/chains/definitions/tempoModerato.js +1 -1
  87. package/_esm/chains/definitions/tempoModerato.js.map +1 -1
  88. package/_esm/chains/index.js +11 -7
  89. package/_esm/chains/index.js.map +1 -1
  90. package/_esm/errors/version.js +1 -1
  91. package/_esm/errors/version.js.map +1 -1
  92. package/_esm/tempo/Abis.js +700 -3
  93. package/_esm/tempo/Abis.js.map +1 -1
  94. package/_esm/tempo/Account.js +7 -7
  95. package/_esm/tempo/Account.js.map +1 -1
  96. package/_esm/tempo/Hardfork.js +15 -0
  97. package/_esm/tempo/Hardfork.js.map +1 -0
  98. package/_esm/tempo/Transaction.js +1 -0
  99. package/_esm/tempo/Transaction.js.map +1 -1
  100. package/_esm/tempo/actions/accessKey.js +36 -4
  101. package/_esm/tempo/actions/accessKey.js.map +1 -1
  102. package/_esm/tempo/actions/token.js +2 -1
  103. package/_esm/tempo/actions/token.js.map +1 -1
  104. package/_esm/tempo/actions/validator.js +11 -11
  105. package/_esm/tempo/actions/validator.js.map +1 -1
  106. package/_esm/tempo/chainConfig.js +52 -11
  107. package/_esm/tempo/chainConfig.js.map +1 -1
  108. package/_esm/tempo/index.js +2 -1
  109. package/_esm/tempo/index.js.map +1 -1
  110. package/_esm/utils/buildRequest.js +5 -0
  111. package/_esm/utils/buildRequest.js.map +1 -1
  112. package/_types/actions/public/verifyHash.d.ts +1 -1
  113. package/_types/actions/public/verifyHash.d.ts.map +1 -1
  114. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  115. package/_types/chains/definitions/battlechainTestnet.d.ts +441 -0
  116. package/_types/chains/definitions/battlechainTestnet.d.ts.map +1 -0
  117. package/_types/chains/definitions/eden.d.ts +46 -0
  118. package/_types/chains/definitions/eden.d.ts.map +1 -0
  119. package/_types/chains/definitions/fluent.d.ts +48 -0
  120. package/_types/chains/definitions/fluent.d.ts.map +1 -0
  121. package/_types/chains/definitions/gensyn.d.ts +45 -0
  122. package/_types/chains/definitions/gensyn.d.ts.map +1 -0
  123. package/_types/chains/definitions/igra.d.ts +48 -0
  124. package/_types/chains/definitions/igra.d.ts.map +1 -0
  125. package/_types/chains/definitions/katana.d.ts +6 -9
  126. package/_types/chains/definitions/katana.d.ts.map +1 -1
  127. package/_types/chains/definitions/megaeth.d.ts +274 -6
  128. package/_types/chains/definitions/megaeth.d.ts.map +1 -1
  129. package/_types/chains/definitions/mezo.d.ts +48 -0
  130. package/_types/chains/definitions/mezo.d.ts.map +1 -0
  131. package/_types/chains/definitions/mezoTestnet.d.ts +45 -0
  132. package/_types/chains/definitions/mezoTestnet.d.ts.map +1 -0
  133. package/_types/chains/definitions/radius.d.ts +48 -0
  134. package/_types/chains/definitions/radius.d.ts.map +1 -0
  135. package/_types/chains/definitions/radiusTestnet.d.ts +48 -0
  136. package/_types/chains/definitions/radiusTestnet.d.ts.map +1 -0
  137. package/_types/chains/definitions/tempo.d.ts +25 -22
  138. package/_types/chains/definitions/tempo.d.ts.map +1 -1
  139. package/_types/chains/definitions/tempoDevnet.d.ts +27 -22
  140. package/_types/chains/definitions/tempoDevnet.d.ts.map +1 -1
  141. package/_types/chains/definitions/tempoLocalnet.d.ts +27 -22
  142. package/_types/chains/definitions/tempoLocalnet.d.ts.map +1 -1
  143. package/_types/chains/definitions/tempoModerato.d.ts +27 -24
  144. package/_types/chains/definitions/tempoModerato.d.ts.map +1 -1
  145. package/_types/chains/index.d.ts +11 -7
  146. package/_types/chains/index.d.ts.map +1 -1
  147. package/_types/errors/version.d.ts +1 -1
  148. package/_types/errors/version.d.ts.map +1 -1
  149. package/_types/tempo/Abis.d.ts +1262 -150
  150. package/_types/tempo/Abis.d.ts.map +1 -1
  151. package/_types/tempo/Account.d.ts +2 -2
  152. package/_types/tempo/Account.d.ts.map +1 -1
  153. package/_types/tempo/Decorator.d.ts +2 -2
  154. package/_types/tempo/Hardfork.d.ts +5 -0
  155. package/_types/tempo/Hardfork.d.ts.map +1 -0
  156. package/_types/tempo/Transaction.d.ts.map +1 -1
  157. package/_types/tempo/actions/accessKey.d.ts +645 -3
  158. package/_types/tempo/actions/accessKey.d.ts.map +1 -1
  159. package/_types/tempo/actions/policy.d.ts +444 -4
  160. package/_types/tempo/actions/policy.d.ts.map +1 -1
  161. package/_types/tempo/actions/reward.d.ts +108 -0
  162. package/_types/tempo/actions/reward.d.ts.map +1 -1
  163. package/_types/tempo/actions/token.d.ts +828 -18
  164. package/_types/tempo/actions/token.d.ts.map +1 -1
  165. package/_types/tempo/actions/validator.d.ts +6 -6
  166. package/_types/tempo/actions/validator.d.ts.map +1 -1
  167. package/_types/tempo/chainConfig.d.ts +13 -11
  168. package/_types/tempo/chainConfig.d.ts.map +1 -1
  169. package/_types/tempo/index.d.ts +2 -1
  170. package/_types/tempo/index.d.ts.map +1 -1
  171. package/_types/utils/buildRequest.d.ts.map +1 -1
  172. package/actions/public/verifyHash.ts +1 -1
  173. package/actions/wallet/prepareTransactionRequest.ts +12 -0
  174. package/actions/wallet/waitForCallsStatus.ts +1 -1
  175. package/chains/definitions/battlechainTestnet.ts +24 -0
  176. package/chains/definitions/eden.ts +29 -0
  177. package/chains/definitions/fluent.ts +23 -0
  178. package/chains/definitions/gensyn.ts +26 -0
  179. package/chains/definitions/igra.ts +23 -0
  180. package/chains/definitions/katana.ts +6 -0
  181. package/chains/definitions/megaeth.ts +26 -3
  182. package/chains/definitions/mezo.ts +20 -0
  183. package/chains/definitions/mezoTestnet.ts +27 -0
  184. package/chains/definitions/radius.ts +19 -0
  185. package/chains/definitions/radiusTestnet.ts +19 -0
  186. package/chains/definitions/tempoDevnet.ts +1 -0
  187. package/chains/definitions/tempoLocalnet.ts +1 -0
  188. package/chains/definitions/tempoModerato.ts +1 -1
  189. package/chains/index.ts +14 -8
  190. package/errors/version.ts +1 -1
  191. package/package.json +2 -2
  192. package/tempo/Abis.ts +703 -3
  193. package/tempo/Account.ts +9 -8
  194. package/tempo/Decorator.ts +2 -2
  195. package/tempo/Hardfork.ts +17 -0
  196. package/tempo/Transaction.ts +2 -1
  197. package/tempo/actions/accessKey.ts +53 -11
  198. package/tempo/actions/token.ts +2 -1
  199. package/tempo/actions/validator.ts +17 -17
  200. package/tempo/chainConfig.ts +59 -15
  201. package/tempo/index.ts +2 -1
  202. package/tsconfig.json +1 -1
  203. package/utils/buildRequest.ts +4 -0
  204. package/_cjs/chains/definitions/tempoAndantino.js +0 -28
  205. package/_cjs/chains/definitions/tempoAndantino.js.map +0 -1
  206. package/_esm/chains/definitions/tempoAndantino.js +0 -25
  207. package/_esm/chains/definitions/tempoAndantino.js.map +0 -1
  208. package/_types/chains/definitions/tempoAndantino.d.ts +0 -918
  209. package/_types/chains/definitions/tempoAndantino.d.ts.map +0 -1
  210. package/chains/definitions/tempoAndantino.ts +0 -25
package/tempo/Abis.ts CHANGED
@@ -260,6 +260,35 @@ export const tip20 = [
260
260
  inputs: [],
261
261
  outputs: [{ type: 'bytes32' }],
262
262
  },
263
+ {
264
+ name: 'permit',
265
+ type: 'function',
266
+ stateMutability: 'nonpayable',
267
+ inputs: [
268
+ { type: 'address', name: 'owner' },
269
+ { type: 'address', name: 'spender' },
270
+ { type: 'uint256', name: 'value' },
271
+ { type: 'uint256', name: 'deadline' },
272
+ { type: 'uint8', name: 'v' },
273
+ { type: 'bytes32', name: 'r' },
274
+ { type: 'bytes32', name: 's' },
275
+ ],
276
+ outputs: [],
277
+ },
278
+ {
279
+ name: 'nonces',
280
+ type: 'function',
281
+ stateMutability: 'view',
282
+ inputs: [{ type: 'address', name: 'owner' }],
283
+ outputs: [{ type: 'uint256' }],
284
+ },
285
+ {
286
+ name: 'DOMAIN_SEPARATOR',
287
+ type: 'function',
288
+ stateMutability: 'view',
289
+ inputs: [],
290
+ outputs: [{ type: 'bytes32' }],
291
+ },
263
292
  {
264
293
  name: 'distributeReward',
265
294
  type: 'function',
@@ -453,6 +482,8 @@ export const tip20 = [
453
482
  { name: 'InvalidToken', type: 'error', inputs: [] },
454
483
  { name: 'Uninitialized', type: 'error', inputs: [] },
455
484
  { name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
485
+ { name: 'PermitExpired', type: 'error', inputs: [] },
486
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
456
487
  {
457
488
  name: 'hasRole',
458
489
  type: 'function',
@@ -529,6 +560,386 @@ export const tip20 = [
529
560
  { name: 'Unauthorized', type: 'error', inputs: [] },
530
561
  ] as const
531
562
 
563
+ export const validatorConfigV2 = [
564
+ {
565
+ name: 'getActiveValidators',
566
+ type: 'function',
567
+ stateMutability: 'view',
568
+ inputs: [],
569
+ outputs: [
570
+ {
571
+ type: 'tuple[]',
572
+ name: 'validators',
573
+ components: [
574
+ { type: 'bytes32', name: 'publicKey' },
575
+ { type: 'address', name: 'validatorAddress' },
576
+ { type: 'string', name: 'ingress' },
577
+ { type: 'string', name: 'egress' },
578
+ { type: 'address', name: 'feeRecipient' },
579
+ { type: 'uint64', name: 'index' },
580
+ { type: 'uint64', name: 'addedAtHeight' },
581
+ { type: 'uint64', name: 'deactivatedAtHeight' },
582
+ ],
583
+ },
584
+ ],
585
+ },
586
+ {
587
+ name: 'getInitializedAtHeight',
588
+ type: 'function',
589
+ stateMutability: 'view',
590
+ inputs: [],
591
+ outputs: [{ type: 'uint64' }],
592
+ },
593
+ {
594
+ name: 'owner',
595
+ type: 'function',
596
+ stateMutability: 'view',
597
+ inputs: [],
598
+ outputs: [{ type: 'address' }],
599
+ },
600
+ {
601
+ name: 'validatorCount',
602
+ type: 'function',
603
+ stateMutability: 'view',
604
+ inputs: [],
605
+ outputs: [{ type: 'uint64' }],
606
+ },
607
+ {
608
+ name: 'validatorByIndex',
609
+ type: 'function',
610
+ stateMutability: 'view',
611
+ inputs: [{ type: 'uint64', name: 'index' }],
612
+ outputs: [
613
+ {
614
+ type: 'tuple',
615
+ components: [
616
+ { type: 'bytes32', name: 'publicKey' },
617
+ { type: 'address', name: 'validatorAddress' },
618
+ { type: 'string', name: 'ingress' },
619
+ { type: 'string', name: 'egress' },
620
+ { type: 'address', name: 'feeRecipient' },
621
+ { type: 'uint64', name: 'index' },
622
+ { type: 'uint64', name: 'addedAtHeight' },
623
+ { type: 'uint64', name: 'deactivatedAtHeight' },
624
+ ],
625
+ },
626
+ ],
627
+ },
628
+ {
629
+ name: 'validatorByAddress',
630
+ type: 'function',
631
+ stateMutability: 'view',
632
+ inputs: [{ type: 'address', name: 'validatorAddress' }],
633
+ outputs: [
634
+ {
635
+ type: 'tuple',
636
+ components: [
637
+ { type: 'bytes32', name: 'publicKey' },
638
+ { type: 'address', name: 'validatorAddress' },
639
+ { type: 'string', name: 'ingress' },
640
+ { type: 'string', name: 'egress' },
641
+ { type: 'address', name: 'feeRecipient' },
642
+ { type: 'uint64', name: 'index' },
643
+ { type: 'uint64', name: 'addedAtHeight' },
644
+ { type: 'uint64', name: 'deactivatedAtHeight' },
645
+ ],
646
+ },
647
+ ],
648
+ },
649
+ {
650
+ name: 'validatorByPublicKey',
651
+ type: 'function',
652
+ stateMutability: 'view',
653
+ inputs: [{ type: 'bytes32', name: 'publicKey' }],
654
+ outputs: [
655
+ {
656
+ type: 'tuple',
657
+ components: [
658
+ { type: 'bytes32', name: 'publicKey' },
659
+ { type: 'address', name: 'validatorAddress' },
660
+ { type: 'string', name: 'ingress' },
661
+ { type: 'string', name: 'egress' },
662
+ { type: 'address', name: 'feeRecipient' },
663
+ { type: 'uint64', name: 'index' },
664
+ { type: 'uint64', name: 'addedAtHeight' },
665
+ { type: 'uint64', name: 'deactivatedAtHeight' },
666
+ ],
667
+ },
668
+ ],
669
+ },
670
+ {
671
+ name: 'getNextNetworkIdentityRotationEpoch',
672
+ type: 'function',
673
+ stateMutability: 'view',
674
+ inputs: [],
675
+ outputs: [{ type: 'uint64' }],
676
+ },
677
+ {
678
+ name: 'isInitialized',
679
+ type: 'function',
680
+ stateMutability: 'view',
681
+ inputs: [],
682
+ outputs: [{ type: 'bool' }],
683
+ },
684
+ {
685
+ name: 'addValidator',
686
+ type: 'function',
687
+ stateMutability: 'nonpayable',
688
+ inputs: [
689
+ { type: 'address', name: 'validatorAddress' },
690
+ { type: 'bytes32', name: 'publicKey' },
691
+ { type: 'string', name: 'ingress' },
692
+ { type: 'string', name: 'egress' },
693
+ { type: 'address', name: 'feeRecipient' },
694
+ { type: 'bytes', name: 'signature' },
695
+ ],
696
+ outputs: [{ type: 'uint64', name: 'index' }],
697
+ },
698
+ {
699
+ name: 'deactivateValidator',
700
+ type: 'function',
701
+ stateMutability: 'nonpayable',
702
+ inputs: [{ type: 'uint64', name: 'idx' }],
703
+ outputs: [],
704
+ },
705
+ {
706
+ name: 'rotateValidator',
707
+ type: 'function',
708
+ stateMutability: 'nonpayable',
709
+ inputs: [
710
+ { type: 'uint64', name: 'idx' },
711
+ { type: 'bytes32', name: 'publicKey' },
712
+ { type: 'string', name: 'ingress' },
713
+ { type: 'string', name: 'egress' },
714
+ { type: 'bytes', name: 'signature' },
715
+ ],
716
+ outputs: [],
717
+ },
718
+ {
719
+ name: 'setFeeRecipient',
720
+ type: 'function',
721
+ stateMutability: 'nonpayable',
722
+ inputs: [
723
+ { type: 'uint64', name: 'idx' },
724
+ { type: 'address', name: 'feeRecipient' },
725
+ ],
726
+ outputs: [],
727
+ },
728
+ {
729
+ name: 'setIpAddresses',
730
+ type: 'function',
731
+ stateMutability: 'nonpayable',
732
+ inputs: [
733
+ { type: 'uint64', name: 'idx' },
734
+ { type: 'string', name: 'ingress' },
735
+ { type: 'string', name: 'egress' },
736
+ ],
737
+ outputs: [],
738
+ },
739
+ {
740
+ name: 'transferValidatorOwnership',
741
+ type: 'function',
742
+ stateMutability: 'nonpayable',
743
+ inputs: [
744
+ { type: 'uint64', name: 'idx' },
745
+ { type: 'address', name: 'newAddress' },
746
+ ],
747
+ outputs: [],
748
+ },
749
+ {
750
+ name: 'transferOwnership',
751
+ type: 'function',
752
+ stateMutability: 'nonpayable',
753
+ inputs: [{ type: 'address', name: 'newOwner' }],
754
+ outputs: [],
755
+ },
756
+ {
757
+ name: 'setNetworkIdentityRotationEpoch',
758
+ type: 'function',
759
+ stateMutability: 'nonpayable',
760
+ inputs: [{ type: 'uint64', name: 'epoch' }],
761
+ outputs: [],
762
+ },
763
+ {
764
+ name: 'migrateValidator',
765
+ type: 'function',
766
+ stateMutability: 'nonpayable',
767
+ inputs: [{ type: 'uint64', name: 'idx' }],
768
+ outputs: [],
769
+ },
770
+ {
771
+ name: 'initializeIfMigrated',
772
+ type: 'function',
773
+ stateMutability: 'nonpayable',
774
+ inputs: [],
775
+ outputs: [],
776
+ },
777
+ {
778
+ name: 'ValidatorAdded',
779
+ type: 'event',
780
+ inputs: [
781
+ { type: 'uint64', name: 'index', indexed: true },
782
+ { type: 'address', name: 'validatorAddress', indexed: true },
783
+ { type: 'bytes32', name: 'publicKey' },
784
+ { type: 'string', name: 'ingress' },
785
+ { type: 'string', name: 'egress' },
786
+ { type: 'address', name: 'feeRecipient' },
787
+ ],
788
+ },
789
+ {
790
+ name: 'ValidatorDeactivated',
791
+ type: 'event',
792
+ inputs: [
793
+ { type: 'uint64', name: 'index', indexed: true },
794
+ { type: 'address', name: 'validatorAddress', indexed: true },
795
+ ],
796
+ },
797
+ {
798
+ name: 'ValidatorRotated',
799
+ type: 'event',
800
+ inputs: [
801
+ { type: 'uint64', name: 'index', indexed: true },
802
+ { type: 'uint64', name: 'deactivatedIndex', indexed: true },
803
+ { type: 'address', name: 'validatorAddress', indexed: true },
804
+ { type: 'bytes32', name: 'oldPublicKey' },
805
+ { type: 'bytes32', name: 'newPublicKey' },
806
+ { type: 'string', name: 'ingress' },
807
+ { type: 'string', name: 'egress' },
808
+ { type: 'address', name: 'caller' },
809
+ ],
810
+ },
811
+ {
812
+ name: 'FeeRecipientUpdated',
813
+ type: 'event',
814
+ inputs: [
815
+ { type: 'uint64', name: 'index', indexed: true },
816
+ { type: 'address', name: 'feeRecipient' },
817
+ { type: 'address', name: 'caller' },
818
+ ],
819
+ },
820
+ {
821
+ name: 'IpAddressesUpdated',
822
+ type: 'event',
823
+ inputs: [
824
+ { type: 'uint64', name: 'index', indexed: true },
825
+ { type: 'string', name: 'ingress' },
826
+ { type: 'string', name: 'egress' },
827
+ { type: 'address', name: 'caller' },
828
+ ],
829
+ },
830
+ {
831
+ name: 'ValidatorOwnershipTransferred',
832
+ type: 'event',
833
+ inputs: [
834
+ { type: 'uint64', name: 'index', indexed: true },
835
+ { type: 'address', name: 'oldAddress', indexed: true },
836
+ { type: 'address', name: 'newAddress', indexed: true },
837
+ { type: 'address', name: 'caller' },
838
+ ],
839
+ },
840
+ {
841
+ name: 'OwnershipTransferred',
842
+ type: 'event',
843
+ inputs: [
844
+ { type: 'address', name: 'oldOwner', indexed: true },
845
+ { type: 'address', name: 'newOwner', indexed: true },
846
+ ],
847
+ },
848
+ {
849
+ name: 'ValidatorMigrated',
850
+ type: 'event',
851
+ inputs: [
852
+ { type: 'uint64', name: 'index', indexed: true },
853
+ { type: 'address', name: 'validatorAddress', indexed: true },
854
+ { type: 'bytes32', name: 'publicKey' },
855
+ ],
856
+ },
857
+ {
858
+ name: 'NetworkIdentityRotationEpochSet',
859
+ type: 'event',
860
+ inputs: [
861
+ { type: 'uint64', name: 'previousEpoch', indexed: true },
862
+ { type: 'uint64', name: 'nextEpoch', indexed: true },
863
+ ],
864
+ },
865
+ {
866
+ name: 'Initialized',
867
+ type: 'event',
868
+ inputs: [{ type: 'uint64', name: 'height' }],
869
+ },
870
+ {
871
+ name: 'SkippedValidatorMigration',
872
+ type: 'event',
873
+ inputs: [
874
+ { type: 'uint64', name: 'index', indexed: true },
875
+ { type: 'address', name: 'validatorAddress', indexed: true },
876
+ { type: 'bytes32', name: 'publicKey' },
877
+ ],
878
+ },
879
+ { name: 'AlreadyInitialized', type: 'error', inputs: [] },
880
+ {
881
+ name: 'IngressAlreadyExists',
882
+ type: 'error',
883
+ inputs: [{ type: 'string', name: 'ingress' }],
884
+ },
885
+ { name: 'EmptyV1ValidatorSet', type: 'error', inputs: [] },
886
+ { name: 'InvalidMigrationIndex', type: 'error', inputs: [] },
887
+ { name: 'InvalidOwner', type: 'error', inputs: [] },
888
+ { name: 'InvalidPublicKey', type: 'error', inputs: [] },
889
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
890
+ { name: 'InvalidSignatureFormat', type: 'error', inputs: [] },
891
+ { name: 'InvalidValidatorAddress', type: 'error', inputs: [] },
892
+ { name: 'MigrationNotComplete', type: 'error', inputs: [] },
893
+ { name: 'NotInitialized', type: 'error', inputs: [] },
894
+ {
895
+ name: 'NotIp',
896
+ type: 'error',
897
+ inputs: [
898
+ { type: 'string', name: 'input' },
899
+ { type: 'string', name: 'backtrace' },
900
+ ],
901
+ },
902
+ {
903
+ name: 'NotIpPort',
904
+ type: 'error',
905
+ inputs: [
906
+ { type: 'string', name: 'input' },
907
+ { type: 'string', name: 'backtrace' },
908
+ ],
909
+ },
910
+ { name: 'PublicKeyAlreadyExists', type: 'error', inputs: [] },
911
+ { name: 'Unauthorized', type: 'error', inputs: [] },
912
+ { name: 'AddressAlreadyHasValidator', type: 'error', inputs: [] },
913
+ { name: 'ValidatorAlreadyDeactivated', type: 'error', inputs: [] },
914
+ { name: 'ValidatorNotFound', type: 'error', inputs: [] },
915
+ ] as const
916
+
917
+ export const signatureVerifier = [
918
+ {
919
+ name: 'recover',
920
+ type: 'function',
921
+ stateMutability: 'view',
922
+ inputs: [
923
+ { type: 'bytes32', name: 'hash' },
924
+ { type: 'bytes', name: 'signature' },
925
+ ],
926
+ outputs: [{ type: 'address', name: 'signer' }],
927
+ },
928
+ {
929
+ name: 'verify',
930
+ type: 'function',
931
+ stateMutability: 'view',
932
+ inputs: [
933
+ { type: 'address', name: 'signer' },
934
+ { type: 'bytes32', name: 'hash' },
935
+ { type: 'bytes', name: 'signature' },
936
+ ],
937
+ outputs: [{ type: 'bool' }],
938
+ },
939
+ { name: 'InvalidFormat', type: 'error', inputs: [] },
940
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
941
+ ] as const
942
+
532
943
  export const stablecoinDex = [
533
944
  {
534
945
  name: 'createPair',
@@ -843,6 +1254,71 @@ export const stablecoinDex = [
843
1254
  { name: 'OrderNotStale', type: 'error', inputs: [] },
844
1255
  ] as const
845
1256
 
1257
+ export const addressRegistry = [
1258
+ {
1259
+ name: 'registerVirtualMaster',
1260
+ type: 'function',
1261
+ stateMutability: 'nonpayable',
1262
+ inputs: [{ type: 'bytes32', name: 'salt' }],
1263
+ outputs: [{ type: 'bytes4', name: 'masterId' }],
1264
+ },
1265
+ {
1266
+ name: 'getMaster',
1267
+ type: 'function',
1268
+ stateMutability: 'view',
1269
+ inputs: [{ type: 'bytes4', name: 'masterId' }],
1270
+ outputs: [{ type: 'address' }],
1271
+ },
1272
+ {
1273
+ name: 'resolveRecipient',
1274
+ type: 'function',
1275
+ stateMutability: 'view',
1276
+ inputs: [{ type: 'address', name: 'to' }],
1277
+ outputs: [{ type: 'address', name: 'effectiveRecipient' }],
1278
+ },
1279
+ {
1280
+ name: 'resolveVirtualAddress',
1281
+ type: 'function',
1282
+ stateMutability: 'view',
1283
+ inputs: [{ type: 'address', name: 'virtualAddr' }],
1284
+ outputs: [{ type: 'address', name: 'master' }],
1285
+ },
1286
+ {
1287
+ name: 'isVirtualAddress',
1288
+ type: 'function',
1289
+ stateMutability: 'pure',
1290
+ inputs: [{ type: 'address', name: 'addr' }],
1291
+ outputs: [{ type: 'bool' }],
1292
+ },
1293
+ {
1294
+ name: 'decodeVirtualAddress',
1295
+ type: 'function',
1296
+ stateMutability: 'pure',
1297
+ inputs: [{ type: 'address', name: 'addr' }],
1298
+ outputs: [
1299
+ { type: 'bool', name: 'isVirtual' },
1300
+ { type: 'bytes4', name: 'masterId' },
1301
+ { type: 'bytes6', name: 'userTag' },
1302
+ ],
1303
+ },
1304
+ {
1305
+ name: 'MasterRegistered',
1306
+ type: 'event',
1307
+ inputs: [
1308
+ { type: 'bytes4', name: 'masterId', indexed: true },
1309
+ { type: 'address', name: 'masterAddress', indexed: true },
1310
+ ],
1311
+ },
1312
+ {
1313
+ name: 'MasterIdCollision',
1314
+ type: 'error',
1315
+ inputs: [{ type: 'address', name: 'master' }],
1316
+ },
1317
+ { name: 'InvalidMasterAddress', type: 'error', inputs: [] },
1318
+ { name: 'ProofOfWorkFailed', type: 'error', inputs: [] },
1319
+ { name: 'VirtualAddressUnregistered', type: 'error', inputs: [] },
1320
+ ] as const
1321
+
846
1322
  export const feeManager = [
847
1323
  {
848
1324
  name: 'userTokens',
@@ -1122,6 +1598,49 @@ export const accountKeychain = [
1122
1598
  ],
1123
1599
  outputs: [],
1124
1600
  },
1601
+ {
1602
+ name: 'authorizeKey',
1603
+ type: 'function',
1604
+ stateMutability: 'nonpayable',
1605
+ inputs: [
1606
+ { type: 'address', name: 'keyId' },
1607
+ { type: 'uint8', name: 'signatureType' },
1608
+ {
1609
+ type: 'tuple',
1610
+ name: 'config',
1611
+ components: [
1612
+ { type: 'uint64', name: 'expiry' },
1613
+ { type: 'bool', name: 'enforceLimits' },
1614
+ {
1615
+ type: 'tuple[]',
1616
+ name: 'limits',
1617
+ components: [
1618
+ { type: 'address', name: 'token' },
1619
+ { type: 'uint256', name: 'amount' },
1620
+ { type: 'uint64', name: 'period' },
1621
+ ],
1622
+ },
1623
+ { type: 'bool', name: 'allowAnyCalls' },
1624
+ {
1625
+ type: 'tuple[]',
1626
+ name: 'allowedCalls',
1627
+ components: [
1628
+ { type: 'address', name: 'target' },
1629
+ {
1630
+ type: 'tuple[]',
1631
+ name: 'selectorRules',
1632
+ components: [
1633
+ { type: 'bytes4', name: 'selector' },
1634
+ { type: 'address[]', name: 'recipients' },
1635
+ ],
1636
+ },
1637
+ ],
1638
+ },
1639
+ ],
1640
+ },
1641
+ ],
1642
+ outputs: [],
1643
+ },
1125
1644
  {
1126
1645
  name: 'revokeKey',
1127
1646
  type: 'function',
@@ -1140,6 +1659,40 @@ export const accountKeychain = [
1140
1659
  ],
1141
1660
  outputs: [],
1142
1661
  },
1662
+ {
1663
+ name: 'setAllowedCalls',
1664
+ type: 'function',
1665
+ stateMutability: 'nonpayable',
1666
+ inputs: [
1667
+ { type: 'address', name: 'keyId' },
1668
+ {
1669
+ type: 'tuple[]',
1670
+ name: 'scopes',
1671
+ components: [
1672
+ { type: 'address', name: 'target' },
1673
+ {
1674
+ type: 'tuple[]',
1675
+ name: 'selectorRules',
1676
+ components: [
1677
+ { type: 'bytes4', name: 'selector' },
1678
+ { type: 'address[]', name: 'recipients' },
1679
+ ],
1680
+ },
1681
+ ],
1682
+ },
1683
+ ],
1684
+ outputs: [],
1685
+ },
1686
+ {
1687
+ name: 'removeAllowedCalls',
1688
+ type: 'function',
1689
+ stateMutability: 'nonpayable',
1690
+ inputs: [
1691
+ { type: 'address', name: 'keyId' },
1692
+ { type: 'address', name: 'target' },
1693
+ ],
1694
+ outputs: [],
1695
+ },
1143
1696
  {
1144
1697
  name: 'getKey',
1145
1698
  type: 'function',
@@ -1170,7 +1723,48 @@ export const accountKeychain = [
1170
1723
  { type: 'address', name: 'keyId' },
1171
1724
  { type: 'address', name: 'token' },
1172
1725
  ],
1173
- outputs: [{ type: 'uint256' }],
1726
+ outputs: [{ type: 'uint256', name: 'remaining' }],
1727
+ },
1728
+ {
1729
+ name: 'getRemainingLimitWithPeriod',
1730
+ type: 'function',
1731
+ stateMutability: 'view',
1732
+ inputs: [
1733
+ { type: 'address', name: 'account' },
1734
+ { type: 'address', name: 'keyId' },
1735
+ { type: 'address', name: 'token' },
1736
+ ],
1737
+ outputs: [
1738
+ { type: 'uint256', name: 'remaining' },
1739
+ { type: 'uint64', name: 'periodEnd' },
1740
+ ],
1741
+ },
1742
+ {
1743
+ name: 'getAllowedCalls',
1744
+ type: 'function',
1745
+ stateMutability: 'view',
1746
+ inputs: [
1747
+ { type: 'address', name: 'account' },
1748
+ { type: 'address', name: 'keyId' },
1749
+ ],
1750
+ outputs: [
1751
+ { type: 'bool', name: 'isScoped' },
1752
+ {
1753
+ type: 'tuple[]',
1754
+ name: 'scopes',
1755
+ components: [
1756
+ { type: 'address', name: 'target' },
1757
+ {
1758
+ type: 'tuple[]',
1759
+ name: 'selectorRules',
1760
+ components: [
1761
+ { type: 'bytes4', name: 'selector' },
1762
+ { type: 'address[]', name: 'recipients' },
1763
+ ],
1764
+ },
1765
+ ],
1766
+ },
1767
+ ],
1174
1768
  },
1175
1769
  {
1176
1770
  name: 'getTransactionKey',
@@ -1207,15 +1801,42 @@ export const accountKeychain = [
1207
1801
  { type: 'uint256', name: 'newLimit' },
1208
1802
  ],
1209
1803
  },
1804
+ {
1805
+ name: 'AccessKeySpend',
1806
+ type: 'event',
1807
+ inputs: [
1808
+ { type: 'address', name: 'account', indexed: true },
1809
+ { type: 'address', name: 'publicKey', indexed: true },
1810
+ { type: 'address', name: 'token', indexed: true },
1811
+ { type: 'uint256', name: 'amount' },
1812
+ { type: 'uint256', name: 'remainingLimit' },
1813
+ ],
1814
+ },
1210
1815
  { name: 'UnauthorizedCaller', type: 'error', inputs: [] },
1211
1816
  { name: 'KeyAlreadyExists', type: 'error', inputs: [] },
1212
1817
  { name: 'KeyNotFound', type: 'error', inputs: [] },
1213
1818
  { name: 'KeyExpired', type: 'error', inputs: [] },
1214
1819
  { name: 'SpendingLimitExceeded', type: 'error', inputs: [] },
1820
+ { name: 'InvalidSpendingLimit', type: 'error', inputs: [] },
1215
1821
  { name: 'InvalidSignatureType', type: 'error', inputs: [] },
1216
1822
  { name: 'ZeroPublicKey', type: 'error', inputs: [] },
1217
1823
  { name: 'ExpiryInPast', type: 'error', inputs: [] },
1218
1824
  { name: 'KeyAlreadyRevoked', type: 'error', inputs: [] },
1825
+ {
1826
+ name: 'SignatureTypeMismatch',
1827
+ type: 'error',
1828
+ inputs: [
1829
+ { type: 'uint8', name: 'expected' },
1830
+ { type: 'uint8', name: 'actual' },
1831
+ ],
1832
+ },
1833
+ { name: 'CallNotAllowed', type: 'error', inputs: [] },
1834
+ { name: 'InvalidCallScope', type: 'error', inputs: [] },
1835
+ {
1836
+ name: 'LegacyAuthorizeKeySelectorChanged',
1837
+ type: 'error',
1838
+ inputs: [{ type: 'bytes4', name: 'newSelector' }],
1839
+ },
1219
1840
  ] as const
1220
1841
 
1221
1842
  export const nonce = [
@@ -1241,6 +1862,9 @@ export const nonce = [
1241
1862
  { name: 'ProtocolNonceNotSupported', type: 'error', inputs: [] },
1242
1863
  { name: 'InvalidNonceKey', type: 'error', inputs: [] },
1243
1864
  { name: 'NonceOverflow', type: 'error', inputs: [] },
1865
+ { name: 'ExpiringNonceReplay', type: 'error', inputs: [] },
1866
+ { name: 'ExpiringNonceSetFull', type: 'error', inputs: [] },
1867
+ { name: 'InvalidExpiringNonceExpiry', type: 'error', inputs: [] },
1244
1868
  ] as const
1245
1869
 
1246
1870
  export const tip20Factory = [
@@ -1333,6 +1957,47 @@ export const tip403Registry = [
1333
1957
  ],
1334
1958
  outputs: [{ type: 'bool' }],
1335
1959
  },
1960
+ {
1961
+ name: 'isAuthorizedSender',
1962
+ type: 'function',
1963
+ stateMutability: 'view',
1964
+ inputs: [
1965
+ { type: 'uint64', name: 'policyId' },
1966
+ { type: 'address', name: 'user' },
1967
+ ],
1968
+ outputs: [{ type: 'bool' }],
1969
+ },
1970
+ {
1971
+ name: 'isAuthorizedRecipient',
1972
+ type: 'function',
1973
+ stateMutability: 'view',
1974
+ inputs: [
1975
+ { type: 'uint64', name: 'policyId' },
1976
+ { type: 'address', name: 'user' },
1977
+ ],
1978
+ outputs: [{ type: 'bool' }],
1979
+ },
1980
+ {
1981
+ name: 'isAuthorizedMintRecipient',
1982
+ type: 'function',
1983
+ stateMutability: 'view',
1984
+ inputs: [
1985
+ { type: 'uint64', name: 'policyId' },
1986
+ { type: 'address', name: 'user' },
1987
+ ],
1988
+ outputs: [{ type: 'bool' }],
1989
+ },
1990
+ {
1991
+ name: 'compoundPolicyData',
1992
+ type: 'function',
1993
+ stateMutability: 'view',
1994
+ inputs: [{ type: 'uint64', name: 'policyId' }],
1995
+ outputs: [
1996
+ { type: 'uint64', name: 'senderPolicyId' },
1997
+ { type: 'uint64', name: 'recipientPolicyId' },
1998
+ { type: 'uint64', name: 'mintRecipientPolicyId' },
1999
+ ],
2000
+ },
1336
2001
  {
1337
2002
  name: 'createPolicy',
1338
2003
  type: 'function',
@@ -1386,6 +2051,17 @@ export const tip403Registry = [
1386
2051
  ],
1387
2052
  outputs: [],
1388
2053
  },
2054
+ {
2055
+ name: 'createCompoundPolicy',
2056
+ type: 'function',
2057
+ stateMutability: 'nonpayable',
2058
+ inputs: [
2059
+ { type: 'uint64', name: 'senderPolicyId' },
2060
+ { type: 'uint64', name: 'recipientPolicyId' },
2061
+ { type: 'uint64', name: 'mintRecipientPolicyId' },
2062
+ ],
2063
+ outputs: [{ type: 'uint64' }],
2064
+ },
1389
2065
  {
1390
2066
  name: 'PolicyAdminUpdated',
1391
2067
  type: 'event',
@@ -1424,12 +2100,26 @@ export const tip403Registry = [
1424
2100
  { type: 'bool', name: 'restricted' },
1425
2101
  ],
1426
2102
  },
2103
+ {
2104
+ name: 'CompoundPolicyCreated',
2105
+ type: 'event',
2106
+ inputs: [
2107
+ { type: 'uint64', name: 'policyId', indexed: true },
2108
+ { type: 'address', name: 'creator', indexed: true },
2109
+ { type: 'uint64', name: 'senderPolicyId' },
2110
+ { type: 'uint64', name: 'recipientPolicyId' },
2111
+ { type: 'uint64', name: 'mintRecipientPolicyId' },
2112
+ ],
2113
+ },
1427
2114
  { name: 'Unauthorized', type: 'error', inputs: [] },
1428
- { name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
1429
2115
  { name: 'PolicyNotFound', type: 'error', inputs: [] },
2116
+ { name: 'PolicyNotSimple', type: 'error', inputs: [] },
2117
+ { name: 'InvalidPolicyType', type: 'error', inputs: [] },
2118
+ { name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
2119
+ { name: 'VirtualAddressNotAllowed', type: 'error', inputs: [] },
1430
2120
  ] as const
1431
2121
 
1432
- export const validator = [
2122
+ export const validatorConfig = [
1433
2123
  {
1434
2124
  name: 'getValidators',
1435
2125
  type: 'function',
@@ -1485,6 +2175,16 @@ export const validator = [
1485
2175
  ],
1486
2176
  outputs: [],
1487
2177
  },
2178
+ {
2179
+ name: 'changeValidatorStatusByIndex',
2180
+ type: 'function',
2181
+ stateMutability: 'nonpayable',
2182
+ inputs: [
2183
+ { type: 'uint64', name: 'index' },
2184
+ { type: 'bool', name: 'active' },
2185
+ ],
2186
+ outputs: [],
2187
+ },
1488
2188
  {
1489
2189
  name: 'owner',
1490
2190
  type: 'function',