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
@@ -259,6 +259,35 @@ export const tip20 = [
259
259
  inputs: [],
260
260
  outputs: [{ type: 'bytes32' }],
261
261
  },
262
+ {
263
+ name: 'permit',
264
+ type: 'function',
265
+ stateMutability: 'nonpayable',
266
+ inputs: [
267
+ { type: 'address', name: 'owner' },
268
+ { type: 'address', name: 'spender' },
269
+ { type: 'uint256', name: 'value' },
270
+ { type: 'uint256', name: 'deadline' },
271
+ { type: 'uint8', name: 'v' },
272
+ { type: 'bytes32', name: 'r' },
273
+ { type: 'bytes32', name: 's' },
274
+ ],
275
+ outputs: [],
276
+ },
277
+ {
278
+ name: 'nonces',
279
+ type: 'function',
280
+ stateMutability: 'view',
281
+ inputs: [{ type: 'address', name: 'owner' }],
282
+ outputs: [{ type: 'uint256' }],
283
+ },
284
+ {
285
+ name: 'DOMAIN_SEPARATOR',
286
+ type: 'function',
287
+ stateMutability: 'view',
288
+ inputs: [],
289
+ outputs: [{ type: 'bytes32' }],
290
+ },
262
291
  {
263
292
  name: 'distributeReward',
264
293
  type: 'function',
@@ -452,6 +481,8 @@ export const tip20 = [
452
481
  { name: 'InvalidToken', type: 'error', inputs: [] },
453
482
  { name: 'Uninitialized', type: 'error', inputs: [] },
454
483
  { name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
484
+ { name: 'PermitExpired', type: 'error', inputs: [] },
485
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
455
486
  {
456
487
  name: 'hasRole',
457
488
  type: 'function',
@@ -527,6 +558,384 @@ export const tip20 = [
527
558
  },
528
559
  { name: 'Unauthorized', type: 'error', inputs: [] },
529
560
  ];
561
+ export const validatorConfigV2 = [
562
+ {
563
+ name: 'getActiveValidators',
564
+ type: 'function',
565
+ stateMutability: 'view',
566
+ inputs: [],
567
+ outputs: [
568
+ {
569
+ type: 'tuple[]',
570
+ name: 'validators',
571
+ components: [
572
+ { type: 'bytes32', name: 'publicKey' },
573
+ { type: 'address', name: 'validatorAddress' },
574
+ { type: 'string', name: 'ingress' },
575
+ { type: 'string', name: 'egress' },
576
+ { type: 'address', name: 'feeRecipient' },
577
+ { type: 'uint64', name: 'index' },
578
+ { type: 'uint64', name: 'addedAtHeight' },
579
+ { type: 'uint64', name: 'deactivatedAtHeight' },
580
+ ],
581
+ },
582
+ ],
583
+ },
584
+ {
585
+ name: 'getInitializedAtHeight',
586
+ type: 'function',
587
+ stateMutability: 'view',
588
+ inputs: [],
589
+ outputs: [{ type: 'uint64' }],
590
+ },
591
+ {
592
+ name: 'owner',
593
+ type: 'function',
594
+ stateMutability: 'view',
595
+ inputs: [],
596
+ outputs: [{ type: 'address' }],
597
+ },
598
+ {
599
+ name: 'validatorCount',
600
+ type: 'function',
601
+ stateMutability: 'view',
602
+ inputs: [],
603
+ outputs: [{ type: 'uint64' }],
604
+ },
605
+ {
606
+ name: 'validatorByIndex',
607
+ type: 'function',
608
+ stateMutability: 'view',
609
+ inputs: [{ type: 'uint64', name: 'index' }],
610
+ outputs: [
611
+ {
612
+ type: 'tuple',
613
+ components: [
614
+ { type: 'bytes32', name: 'publicKey' },
615
+ { type: 'address', name: 'validatorAddress' },
616
+ { type: 'string', name: 'ingress' },
617
+ { type: 'string', name: 'egress' },
618
+ { type: 'address', name: 'feeRecipient' },
619
+ { type: 'uint64', name: 'index' },
620
+ { type: 'uint64', name: 'addedAtHeight' },
621
+ { type: 'uint64', name: 'deactivatedAtHeight' },
622
+ ],
623
+ },
624
+ ],
625
+ },
626
+ {
627
+ name: 'validatorByAddress',
628
+ type: 'function',
629
+ stateMutability: 'view',
630
+ inputs: [{ type: 'address', name: 'validatorAddress' }],
631
+ outputs: [
632
+ {
633
+ type: 'tuple',
634
+ components: [
635
+ { type: 'bytes32', name: 'publicKey' },
636
+ { type: 'address', name: 'validatorAddress' },
637
+ { type: 'string', name: 'ingress' },
638
+ { type: 'string', name: 'egress' },
639
+ { type: 'address', name: 'feeRecipient' },
640
+ { type: 'uint64', name: 'index' },
641
+ { type: 'uint64', name: 'addedAtHeight' },
642
+ { type: 'uint64', name: 'deactivatedAtHeight' },
643
+ ],
644
+ },
645
+ ],
646
+ },
647
+ {
648
+ name: 'validatorByPublicKey',
649
+ type: 'function',
650
+ stateMutability: 'view',
651
+ inputs: [{ type: 'bytes32', name: 'publicKey' }],
652
+ outputs: [
653
+ {
654
+ type: 'tuple',
655
+ components: [
656
+ { type: 'bytes32', name: 'publicKey' },
657
+ { type: 'address', name: 'validatorAddress' },
658
+ { type: 'string', name: 'ingress' },
659
+ { type: 'string', name: 'egress' },
660
+ { type: 'address', name: 'feeRecipient' },
661
+ { type: 'uint64', name: 'index' },
662
+ { type: 'uint64', name: 'addedAtHeight' },
663
+ { type: 'uint64', name: 'deactivatedAtHeight' },
664
+ ],
665
+ },
666
+ ],
667
+ },
668
+ {
669
+ name: 'getNextNetworkIdentityRotationEpoch',
670
+ type: 'function',
671
+ stateMutability: 'view',
672
+ inputs: [],
673
+ outputs: [{ type: 'uint64' }],
674
+ },
675
+ {
676
+ name: 'isInitialized',
677
+ type: 'function',
678
+ stateMutability: 'view',
679
+ inputs: [],
680
+ outputs: [{ type: 'bool' }],
681
+ },
682
+ {
683
+ name: 'addValidator',
684
+ type: 'function',
685
+ stateMutability: 'nonpayable',
686
+ inputs: [
687
+ { type: 'address', name: 'validatorAddress' },
688
+ { type: 'bytes32', name: 'publicKey' },
689
+ { type: 'string', name: 'ingress' },
690
+ { type: 'string', name: 'egress' },
691
+ { type: 'address', name: 'feeRecipient' },
692
+ { type: 'bytes', name: 'signature' },
693
+ ],
694
+ outputs: [{ type: 'uint64', name: 'index' }],
695
+ },
696
+ {
697
+ name: 'deactivateValidator',
698
+ type: 'function',
699
+ stateMutability: 'nonpayable',
700
+ inputs: [{ type: 'uint64', name: 'idx' }],
701
+ outputs: [],
702
+ },
703
+ {
704
+ name: 'rotateValidator',
705
+ type: 'function',
706
+ stateMutability: 'nonpayable',
707
+ inputs: [
708
+ { type: 'uint64', name: 'idx' },
709
+ { type: 'bytes32', name: 'publicKey' },
710
+ { type: 'string', name: 'ingress' },
711
+ { type: 'string', name: 'egress' },
712
+ { type: 'bytes', name: 'signature' },
713
+ ],
714
+ outputs: [],
715
+ },
716
+ {
717
+ name: 'setFeeRecipient',
718
+ type: 'function',
719
+ stateMutability: 'nonpayable',
720
+ inputs: [
721
+ { type: 'uint64', name: 'idx' },
722
+ { type: 'address', name: 'feeRecipient' },
723
+ ],
724
+ outputs: [],
725
+ },
726
+ {
727
+ name: 'setIpAddresses',
728
+ type: 'function',
729
+ stateMutability: 'nonpayable',
730
+ inputs: [
731
+ { type: 'uint64', name: 'idx' },
732
+ { type: 'string', name: 'ingress' },
733
+ { type: 'string', name: 'egress' },
734
+ ],
735
+ outputs: [],
736
+ },
737
+ {
738
+ name: 'transferValidatorOwnership',
739
+ type: 'function',
740
+ stateMutability: 'nonpayable',
741
+ inputs: [
742
+ { type: 'uint64', name: 'idx' },
743
+ { type: 'address', name: 'newAddress' },
744
+ ],
745
+ outputs: [],
746
+ },
747
+ {
748
+ name: 'transferOwnership',
749
+ type: 'function',
750
+ stateMutability: 'nonpayable',
751
+ inputs: [{ type: 'address', name: 'newOwner' }],
752
+ outputs: [],
753
+ },
754
+ {
755
+ name: 'setNetworkIdentityRotationEpoch',
756
+ type: 'function',
757
+ stateMutability: 'nonpayable',
758
+ inputs: [{ type: 'uint64', name: 'epoch' }],
759
+ outputs: [],
760
+ },
761
+ {
762
+ name: 'migrateValidator',
763
+ type: 'function',
764
+ stateMutability: 'nonpayable',
765
+ inputs: [{ type: 'uint64', name: 'idx' }],
766
+ outputs: [],
767
+ },
768
+ {
769
+ name: 'initializeIfMigrated',
770
+ type: 'function',
771
+ stateMutability: 'nonpayable',
772
+ inputs: [],
773
+ outputs: [],
774
+ },
775
+ {
776
+ name: 'ValidatorAdded',
777
+ type: 'event',
778
+ inputs: [
779
+ { type: 'uint64', name: 'index', indexed: true },
780
+ { type: 'address', name: 'validatorAddress', indexed: true },
781
+ { type: 'bytes32', name: 'publicKey' },
782
+ { type: 'string', name: 'ingress' },
783
+ { type: 'string', name: 'egress' },
784
+ { type: 'address', name: 'feeRecipient' },
785
+ ],
786
+ },
787
+ {
788
+ name: 'ValidatorDeactivated',
789
+ type: 'event',
790
+ inputs: [
791
+ { type: 'uint64', name: 'index', indexed: true },
792
+ { type: 'address', name: 'validatorAddress', indexed: true },
793
+ ],
794
+ },
795
+ {
796
+ name: 'ValidatorRotated',
797
+ type: 'event',
798
+ inputs: [
799
+ { type: 'uint64', name: 'index', indexed: true },
800
+ { type: 'uint64', name: 'deactivatedIndex', indexed: true },
801
+ { type: 'address', name: 'validatorAddress', indexed: true },
802
+ { type: 'bytes32', name: 'oldPublicKey' },
803
+ { type: 'bytes32', name: 'newPublicKey' },
804
+ { type: 'string', name: 'ingress' },
805
+ { type: 'string', name: 'egress' },
806
+ { type: 'address', name: 'caller' },
807
+ ],
808
+ },
809
+ {
810
+ name: 'FeeRecipientUpdated',
811
+ type: 'event',
812
+ inputs: [
813
+ { type: 'uint64', name: 'index', indexed: true },
814
+ { type: 'address', name: 'feeRecipient' },
815
+ { type: 'address', name: 'caller' },
816
+ ],
817
+ },
818
+ {
819
+ name: 'IpAddressesUpdated',
820
+ type: 'event',
821
+ inputs: [
822
+ { type: 'uint64', name: 'index', indexed: true },
823
+ { type: 'string', name: 'ingress' },
824
+ { type: 'string', name: 'egress' },
825
+ { type: 'address', name: 'caller' },
826
+ ],
827
+ },
828
+ {
829
+ name: 'ValidatorOwnershipTransferred',
830
+ type: 'event',
831
+ inputs: [
832
+ { type: 'uint64', name: 'index', indexed: true },
833
+ { type: 'address', name: 'oldAddress', indexed: true },
834
+ { type: 'address', name: 'newAddress', indexed: true },
835
+ { type: 'address', name: 'caller' },
836
+ ],
837
+ },
838
+ {
839
+ name: 'OwnershipTransferred',
840
+ type: 'event',
841
+ inputs: [
842
+ { type: 'address', name: 'oldOwner', indexed: true },
843
+ { type: 'address', name: 'newOwner', indexed: true },
844
+ ],
845
+ },
846
+ {
847
+ name: 'ValidatorMigrated',
848
+ type: 'event',
849
+ inputs: [
850
+ { type: 'uint64', name: 'index', indexed: true },
851
+ { type: 'address', name: 'validatorAddress', indexed: true },
852
+ { type: 'bytes32', name: 'publicKey' },
853
+ ],
854
+ },
855
+ {
856
+ name: 'NetworkIdentityRotationEpochSet',
857
+ type: 'event',
858
+ inputs: [
859
+ { type: 'uint64', name: 'previousEpoch', indexed: true },
860
+ { type: 'uint64', name: 'nextEpoch', indexed: true },
861
+ ],
862
+ },
863
+ {
864
+ name: 'Initialized',
865
+ type: 'event',
866
+ inputs: [{ type: 'uint64', name: 'height' }],
867
+ },
868
+ {
869
+ name: 'SkippedValidatorMigration',
870
+ type: 'event',
871
+ inputs: [
872
+ { type: 'uint64', name: 'index', indexed: true },
873
+ { type: 'address', name: 'validatorAddress', indexed: true },
874
+ { type: 'bytes32', name: 'publicKey' },
875
+ ],
876
+ },
877
+ { name: 'AlreadyInitialized', type: 'error', inputs: [] },
878
+ {
879
+ name: 'IngressAlreadyExists',
880
+ type: 'error',
881
+ inputs: [{ type: 'string', name: 'ingress' }],
882
+ },
883
+ { name: 'EmptyV1ValidatorSet', type: 'error', inputs: [] },
884
+ { name: 'InvalidMigrationIndex', type: 'error', inputs: [] },
885
+ { name: 'InvalidOwner', type: 'error', inputs: [] },
886
+ { name: 'InvalidPublicKey', type: 'error', inputs: [] },
887
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
888
+ { name: 'InvalidSignatureFormat', type: 'error', inputs: [] },
889
+ { name: 'InvalidValidatorAddress', type: 'error', inputs: [] },
890
+ { name: 'MigrationNotComplete', type: 'error', inputs: [] },
891
+ { name: 'NotInitialized', type: 'error', inputs: [] },
892
+ {
893
+ name: 'NotIp',
894
+ type: 'error',
895
+ inputs: [
896
+ { type: 'string', name: 'input' },
897
+ { type: 'string', name: 'backtrace' },
898
+ ],
899
+ },
900
+ {
901
+ name: 'NotIpPort',
902
+ type: 'error',
903
+ inputs: [
904
+ { type: 'string', name: 'input' },
905
+ { type: 'string', name: 'backtrace' },
906
+ ],
907
+ },
908
+ { name: 'PublicKeyAlreadyExists', type: 'error', inputs: [] },
909
+ { name: 'Unauthorized', type: 'error', inputs: [] },
910
+ { name: 'AddressAlreadyHasValidator', type: 'error', inputs: [] },
911
+ { name: 'ValidatorAlreadyDeactivated', type: 'error', inputs: [] },
912
+ { name: 'ValidatorNotFound', type: 'error', inputs: [] },
913
+ ];
914
+ export const signatureVerifier = [
915
+ {
916
+ name: 'recover',
917
+ type: 'function',
918
+ stateMutability: 'view',
919
+ inputs: [
920
+ { type: 'bytes32', name: 'hash' },
921
+ { type: 'bytes', name: 'signature' },
922
+ ],
923
+ outputs: [{ type: 'address', name: 'signer' }],
924
+ },
925
+ {
926
+ name: 'verify',
927
+ type: 'function',
928
+ stateMutability: 'view',
929
+ inputs: [
930
+ { type: 'address', name: 'signer' },
931
+ { type: 'bytes32', name: 'hash' },
932
+ { type: 'bytes', name: 'signature' },
933
+ ],
934
+ outputs: [{ type: 'bool' }],
935
+ },
936
+ { name: 'InvalidFormat', type: 'error', inputs: [] },
937
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
938
+ ];
530
939
  export const stablecoinDex = [
531
940
  {
532
941
  name: 'createPair',
@@ -840,6 +1249,70 @@ export const stablecoinDex = [
840
1249
  { name: 'InvalidBaseToken', type: 'error', inputs: [] },
841
1250
  { name: 'OrderNotStale', type: 'error', inputs: [] },
842
1251
  ];
1252
+ export const addressRegistry = [
1253
+ {
1254
+ name: 'registerVirtualMaster',
1255
+ type: 'function',
1256
+ stateMutability: 'nonpayable',
1257
+ inputs: [{ type: 'bytes32', name: 'salt' }],
1258
+ outputs: [{ type: 'bytes4', name: 'masterId' }],
1259
+ },
1260
+ {
1261
+ name: 'getMaster',
1262
+ type: 'function',
1263
+ stateMutability: 'view',
1264
+ inputs: [{ type: 'bytes4', name: 'masterId' }],
1265
+ outputs: [{ type: 'address' }],
1266
+ },
1267
+ {
1268
+ name: 'resolveRecipient',
1269
+ type: 'function',
1270
+ stateMutability: 'view',
1271
+ inputs: [{ type: 'address', name: 'to' }],
1272
+ outputs: [{ type: 'address', name: 'effectiveRecipient' }],
1273
+ },
1274
+ {
1275
+ name: 'resolveVirtualAddress',
1276
+ type: 'function',
1277
+ stateMutability: 'view',
1278
+ inputs: [{ type: 'address', name: 'virtualAddr' }],
1279
+ outputs: [{ type: 'address', name: 'master' }],
1280
+ },
1281
+ {
1282
+ name: 'isVirtualAddress',
1283
+ type: 'function',
1284
+ stateMutability: 'pure',
1285
+ inputs: [{ type: 'address', name: 'addr' }],
1286
+ outputs: [{ type: 'bool' }],
1287
+ },
1288
+ {
1289
+ name: 'decodeVirtualAddress',
1290
+ type: 'function',
1291
+ stateMutability: 'pure',
1292
+ inputs: [{ type: 'address', name: 'addr' }],
1293
+ outputs: [
1294
+ { type: 'bool', name: 'isVirtual' },
1295
+ { type: 'bytes4', name: 'masterId' },
1296
+ { type: 'bytes6', name: 'userTag' },
1297
+ ],
1298
+ },
1299
+ {
1300
+ name: 'MasterRegistered',
1301
+ type: 'event',
1302
+ inputs: [
1303
+ { type: 'bytes4', name: 'masterId', indexed: true },
1304
+ { type: 'address', name: 'masterAddress', indexed: true },
1305
+ ],
1306
+ },
1307
+ {
1308
+ name: 'MasterIdCollision',
1309
+ type: 'error',
1310
+ inputs: [{ type: 'address', name: 'master' }],
1311
+ },
1312
+ { name: 'InvalidMasterAddress', type: 'error', inputs: [] },
1313
+ { name: 'ProofOfWorkFailed', type: 'error', inputs: [] },
1314
+ { name: 'VirtualAddressUnregistered', type: 'error', inputs: [] },
1315
+ ];
843
1316
  export const feeManager = [
844
1317
  {
845
1318
  name: 'userTokens',
@@ -1117,6 +1590,49 @@ export const accountKeychain = [
1117
1590
  ],
1118
1591
  outputs: [],
1119
1592
  },
1593
+ {
1594
+ name: 'authorizeKey',
1595
+ type: 'function',
1596
+ stateMutability: 'nonpayable',
1597
+ inputs: [
1598
+ { type: 'address', name: 'keyId' },
1599
+ { type: 'uint8', name: 'signatureType' },
1600
+ {
1601
+ type: 'tuple',
1602
+ name: 'config',
1603
+ components: [
1604
+ { type: 'uint64', name: 'expiry' },
1605
+ { type: 'bool', name: 'enforceLimits' },
1606
+ {
1607
+ type: 'tuple[]',
1608
+ name: 'limits',
1609
+ components: [
1610
+ { type: 'address', name: 'token' },
1611
+ { type: 'uint256', name: 'amount' },
1612
+ { type: 'uint64', name: 'period' },
1613
+ ],
1614
+ },
1615
+ { type: 'bool', name: 'allowAnyCalls' },
1616
+ {
1617
+ type: 'tuple[]',
1618
+ name: 'allowedCalls',
1619
+ components: [
1620
+ { type: 'address', name: 'target' },
1621
+ {
1622
+ type: 'tuple[]',
1623
+ name: 'selectorRules',
1624
+ components: [
1625
+ { type: 'bytes4', name: 'selector' },
1626
+ { type: 'address[]', name: 'recipients' },
1627
+ ],
1628
+ },
1629
+ ],
1630
+ },
1631
+ ],
1632
+ },
1633
+ ],
1634
+ outputs: [],
1635
+ },
1120
1636
  {
1121
1637
  name: 'revokeKey',
1122
1638
  type: 'function',
@@ -1135,6 +1651,40 @@ export const accountKeychain = [
1135
1651
  ],
1136
1652
  outputs: [],
1137
1653
  },
1654
+ {
1655
+ name: 'setAllowedCalls',
1656
+ type: 'function',
1657
+ stateMutability: 'nonpayable',
1658
+ inputs: [
1659
+ { type: 'address', name: 'keyId' },
1660
+ {
1661
+ type: 'tuple[]',
1662
+ name: 'scopes',
1663
+ components: [
1664
+ { type: 'address', name: 'target' },
1665
+ {
1666
+ type: 'tuple[]',
1667
+ name: 'selectorRules',
1668
+ components: [
1669
+ { type: 'bytes4', name: 'selector' },
1670
+ { type: 'address[]', name: 'recipients' },
1671
+ ],
1672
+ },
1673
+ ],
1674
+ },
1675
+ ],
1676
+ outputs: [],
1677
+ },
1678
+ {
1679
+ name: 'removeAllowedCalls',
1680
+ type: 'function',
1681
+ stateMutability: 'nonpayable',
1682
+ inputs: [
1683
+ { type: 'address', name: 'keyId' },
1684
+ { type: 'address', name: 'target' },
1685
+ ],
1686
+ outputs: [],
1687
+ },
1138
1688
  {
1139
1689
  name: 'getKey',
1140
1690
  type: 'function',
@@ -1165,7 +1715,48 @@ export const accountKeychain = [
1165
1715
  { type: 'address', name: 'keyId' },
1166
1716
  { type: 'address', name: 'token' },
1167
1717
  ],
1168
- outputs: [{ type: 'uint256' }],
1718
+ outputs: [{ type: 'uint256', name: 'remaining' }],
1719
+ },
1720
+ {
1721
+ name: 'getRemainingLimitWithPeriod',
1722
+ type: 'function',
1723
+ stateMutability: 'view',
1724
+ inputs: [
1725
+ { type: 'address', name: 'account' },
1726
+ { type: 'address', name: 'keyId' },
1727
+ { type: 'address', name: 'token' },
1728
+ ],
1729
+ outputs: [
1730
+ { type: 'uint256', name: 'remaining' },
1731
+ { type: 'uint64', name: 'periodEnd' },
1732
+ ],
1733
+ },
1734
+ {
1735
+ name: 'getAllowedCalls',
1736
+ type: 'function',
1737
+ stateMutability: 'view',
1738
+ inputs: [
1739
+ { type: 'address', name: 'account' },
1740
+ { type: 'address', name: 'keyId' },
1741
+ ],
1742
+ outputs: [
1743
+ { type: 'bool', name: 'isScoped' },
1744
+ {
1745
+ type: 'tuple[]',
1746
+ name: 'scopes',
1747
+ components: [
1748
+ { type: 'address', name: 'target' },
1749
+ {
1750
+ type: 'tuple[]',
1751
+ name: 'selectorRules',
1752
+ components: [
1753
+ { type: 'bytes4', name: 'selector' },
1754
+ { type: 'address[]', name: 'recipients' },
1755
+ ],
1756
+ },
1757
+ ],
1758
+ },
1759
+ ],
1169
1760
  },
1170
1761
  {
1171
1762
  name: 'getTransactionKey',
@@ -1202,15 +1793,42 @@ export const accountKeychain = [
1202
1793
  { type: 'uint256', name: 'newLimit' },
1203
1794
  ],
1204
1795
  },
1796
+ {
1797
+ name: 'AccessKeySpend',
1798
+ type: 'event',
1799
+ inputs: [
1800
+ { type: 'address', name: 'account', indexed: true },
1801
+ { type: 'address', name: 'publicKey', indexed: true },
1802
+ { type: 'address', name: 'token', indexed: true },
1803
+ { type: 'uint256', name: 'amount' },
1804
+ { type: 'uint256', name: 'remainingLimit' },
1805
+ ],
1806
+ },
1205
1807
  { name: 'UnauthorizedCaller', type: 'error', inputs: [] },
1206
1808
  { name: 'KeyAlreadyExists', type: 'error', inputs: [] },
1207
1809
  { name: 'KeyNotFound', type: 'error', inputs: [] },
1208
1810
  { name: 'KeyExpired', type: 'error', inputs: [] },
1209
1811
  { name: 'SpendingLimitExceeded', type: 'error', inputs: [] },
1812
+ { name: 'InvalidSpendingLimit', type: 'error', inputs: [] },
1210
1813
  { name: 'InvalidSignatureType', type: 'error', inputs: [] },
1211
1814
  { name: 'ZeroPublicKey', type: 'error', inputs: [] },
1212
1815
  { name: 'ExpiryInPast', type: 'error', inputs: [] },
1213
1816
  { name: 'KeyAlreadyRevoked', type: 'error', inputs: [] },
1817
+ {
1818
+ name: 'SignatureTypeMismatch',
1819
+ type: 'error',
1820
+ inputs: [
1821
+ { type: 'uint8', name: 'expected' },
1822
+ { type: 'uint8', name: 'actual' },
1823
+ ],
1824
+ },
1825
+ { name: 'CallNotAllowed', type: 'error', inputs: [] },
1826
+ { name: 'InvalidCallScope', type: 'error', inputs: [] },
1827
+ {
1828
+ name: 'LegacyAuthorizeKeySelectorChanged',
1829
+ type: 'error',
1830
+ inputs: [{ type: 'bytes4', name: 'newSelector' }],
1831
+ },
1214
1832
  ];
1215
1833
  export const nonce = [
1216
1834
  {
@@ -1235,6 +1853,9 @@ export const nonce = [
1235
1853
  { name: 'ProtocolNonceNotSupported', type: 'error', inputs: [] },
1236
1854
  { name: 'InvalidNonceKey', type: 'error', inputs: [] },
1237
1855
  { name: 'NonceOverflow', type: 'error', inputs: [] },
1856
+ { name: 'ExpiringNonceReplay', type: 'error', inputs: [] },
1857
+ { name: 'ExpiringNonceSetFull', type: 'error', inputs: [] },
1858
+ { name: 'InvalidExpiringNonceExpiry', type: 'error', inputs: [] },
1238
1859
  ];
1239
1860
  export const tip20Factory = [
1240
1861
  {
@@ -1325,6 +1946,47 @@ export const tip403Registry = [
1325
1946
  ],
1326
1947
  outputs: [{ type: 'bool' }],
1327
1948
  },
1949
+ {
1950
+ name: 'isAuthorizedSender',
1951
+ type: 'function',
1952
+ stateMutability: 'view',
1953
+ inputs: [
1954
+ { type: 'uint64', name: 'policyId' },
1955
+ { type: 'address', name: 'user' },
1956
+ ],
1957
+ outputs: [{ type: 'bool' }],
1958
+ },
1959
+ {
1960
+ name: 'isAuthorizedRecipient',
1961
+ type: 'function',
1962
+ stateMutability: 'view',
1963
+ inputs: [
1964
+ { type: 'uint64', name: 'policyId' },
1965
+ { type: 'address', name: 'user' },
1966
+ ],
1967
+ outputs: [{ type: 'bool' }],
1968
+ },
1969
+ {
1970
+ name: 'isAuthorizedMintRecipient',
1971
+ type: 'function',
1972
+ stateMutability: 'view',
1973
+ inputs: [
1974
+ { type: 'uint64', name: 'policyId' },
1975
+ { type: 'address', name: 'user' },
1976
+ ],
1977
+ outputs: [{ type: 'bool' }],
1978
+ },
1979
+ {
1980
+ name: 'compoundPolicyData',
1981
+ type: 'function',
1982
+ stateMutability: 'view',
1983
+ inputs: [{ type: 'uint64', name: 'policyId' }],
1984
+ outputs: [
1985
+ { type: 'uint64', name: 'senderPolicyId' },
1986
+ { type: 'uint64', name: 'recipientPolicyId' },
1987
+ { type: 'uint64', name: 'mintRecipientPolicyId' },
1988
+ ],
1989
+ },
1328
1990
  {
1329
1991
  name: 'createPolicy',
1330
1992
  type: 'function',
@@ -1378,6 +2040,17 @@ export const tip403Registry = [
1378
2040
  ],
1379
2041
  outputs: [],
1380
2042
  },
2043
+ {
2044
+ name: 'createCompoundPolicy',
2045
+ type: 'function',
2046
+ stateMutability: 'nonpayable',
2047
+ inputs: [
2048
+ { type: 'uint64', name: 'senderPolicyId' },
2049
+ { type: 'uint64', name: 'recipientPolicyId' },
2050
+ { type: 'uint64', name: 'mintRecipientPolicyId' },
2051
+ ],
2052
+ outputs: [{ type: 'uint64' }],
2053
+ },
1381
2054
  {
1382
2055
  name: 'PolicyAdminUpdated',
1383
2056
  type: 'event',
@@ -1416,11 +2089,25 @@ export const tip403Registry = [
1416
2089
  { type: 'bool', name: 'restricted' },
1417
2090
  ],
1418
2091
  },
2092
+ {
2093
+ name: 'CompoundPolicyCreated',
2094
+ type: 'event',
2095
+ inputs: [
2096
+ { type: 'uint64', name: 'policyId', indexed: true },
2097
+ { type: 'address', name: 'creator', indexed: true },
2098
+ { type: 'uint64', name: 'senderPolicyId' },
2099
+ { type: 'uint64', name: 'recipientPolicyId' },
2100
+ { type: 'uint64', name: 'mintRecipientPolicyId' },
2101
+ ],
2102
+ },
1419
2103
  { name: 'Unauthorized', type: 'error', inputs: [] },
1420
- { name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
1421
2104
  { name: 'PolicyNotFound', type: 'error', inputs: [] },
2105
+ { name: 'PolicyNotSimple', type: 'error', inputs: [] },
2106
+ { name: 'InvalidPolicyType', type: 'error', inputs: [] },
2107
+ { name: 'IncompatiblePolicyType', type: 'error', inputs: [] },
2108
+ { name: 'VirtualAddressNotAllowed', type: 'error', inputs: [] },
1422
2109
  ];
1423
- export const validator = [
2110
+ export const validatorConfig = [
1424
2111
  {
1425
2112
  name: 'getValidators',
1426
2113
  type: 'function',
@@ -1476,6 +2163,16 @@ export const validator = [
1476
2163
  ],
1477
2164
  outputs: [],
1478
2165
  },
2166
+ {
2167
+ name: 'changeValidatorStatusByIndex',
2168
+ type: 'function',
2169
+ stateMutability: 'nonpayable',
2170
+ inputs: [
2171
+ { type: 'uint64', name: 'index' },
2172
+ { type: 'bool', name: 'active' },
2173
+ ],
2174
+ outputs: [],
2175
+ },
1479
2176
  {
1480
2177
  name: 'owner',
1481
2178
  type: 'function',