viem 3.0.0-next.13 → 3.0.0-next.14

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 (194) hide show
  1. package/dist/chains/definitions/arcTestnet.d.ts +5 -5
  2. package/dist/chains/definitions/arcTestnet.d.ts.map +1 -1
  3. package/dist/chains/definitions/arcTestnet.js +11 -8
  4. package/dist/chains/definitions/arcTestnet.js.map +1 -1
  5. package/dist/chains/definitions/qmsTestnet.d.ts +27 -0
  6. package/dist/chains/definitions/qmsTestnet.d.ts.map +1 -0
  7. package/dist/chains/definitions/qmsTestnet.js +23 -0
  8. package/dist/chains/definitions/qmsTestnet.js.map +1 -0
  9. package/dist/chains/definitions/tempo.d.ts +1 -1
  10. package/dist/chains/definitions/tempo.js +1 -1
  11. package/dist/chains/definitions/tempoModerato.d.ts +2 -2
  12. package/dist/chains/definitions/tempoModerato.js +2 -2
  13. package/dist/chains/index.d.ts +1 -0
  14. package/dist/chains/index.d.ts.map +1 -1
  15. package/dist/chains/index.js +1 -0
  16. package/dist/chains/index.js.map +1 -1
  17. package/dist/core/actions/transaction/waitForReceipt.d.ts +1 -1
  18. package/dist/core/actions/transaction/waitForReceipt.d.ts.map +1 -1
  19. package/dist/core/actions/transaction/waitForReceipt.js +5 -2
  20. package/dist/core/actions/transaction/waitForReceipt.js.map +1 -1
  21. package/dist/core/actions/wallet/waitForCallsStatus.d.ts.map +1 -1
  22. package/dist/core/actions/wallet/waitForCallsStatus.js +24 -1
  23. package/dist/core/actions/wallet/waitForCallsStatus.js.map +1 -1
  24. package/dist/internal/inference.d.ts +3 -3
  25. package/dist/internal/inference.d.ts.map +1 -1
  26. package/dist/tempo/Abis.d.ts +1935 -899
  27. package/dist/tempo/Abis.d.ts.map +1 -1
  28. package/dist/tempo/Abis.js +215 -0
  29. package/dist/tempo/Abis.js.map +1 -1
  30. package/dist/tempo/Account.d.ts +30 -30
  31. package/dist/tempo/Account.d.ts.map +1 -1
  32. package/dist/tempo/Account.js +43 -43
  33. package/dist/tempo/Account.js.map +1 -1
  34. package/dist/tempo/Addresses.d.ts +2 -0
  35. package/dist/tempo/Addresses.d.ts.map +1 -1
  36. package/dist/tempo/Addresses.js +2 -0
  37. package/dist/tempo/Addresses.js.map +1 -1
  38. package/dist/tempo/Decorator.d.ts +33 -10
  39. package/dist/tempo/Decorator.d.ts.map +1 -1
  40. package/dist/tempo/Decorator.js +9 -8
  41. package/dist/tempo/Decorator.js.map +1 -1
  42. package/dist/tempo/ExecutionError.js +1 -1
  43. package/dist/tempo/ExecutionError.js.map +1 -1
  44. package/dist/tempo/KeyAuthorizationManager.d.ts +24 -13
  45. package/dist/tempo/KeyAuthorizationManager.d.ts.map +1 -1
  46. package/dist/tempo/KeyAuthorizationManager.js +44 -25
  47. package/dist/tempo/KeyAuthorizationManager.js.map +1 -1
  48. package/dist/tempo/Relay.d.ts +61 -12
  49. package/dist/tempo/Relay.d.ts.map +1 -1
  50. package/dist/tempo/Relay.js +48 -8
  51. package/dist/tempo/Relay.js.map +1 -1
  52. package/dist/tempo/Selectors.d.ts +12 -0
  53. package/dist/tempo/Selectors.d.ts.map +1 -1
  54. package/dist/tempo/Selectors.js +12 -0
  55. package/dist/tempo/Selectors.js.map +1 -1
  56. package/dist/tempo/Transport.d.ts +19 -6
  57. package/dist/tempo/Transport.d.ts.map +1 -1
  58. package/dist/tempo/Transport.js +18 -12
  59. package/dist/tempo/Transport.js.map +1 -1
  60. package/dist/tempo/{multisig → accounts}/Config.d.ts +8 -8
  61. package/dist/tempo/accounts/Config.d.ts.map +1 -0
  62. package/dist/tempo/{multisig → accounts}/Config.js +14 -14
  63. package/dist/tempo/{multisig → accounts}/Config.js.map +1 -1
  64. package/dist/tempo/{multisig → accounts}/Operation.d.ts +8 -8
  65. package/dist/tempo/{multisig → accounts}/Operation.d.ts.map +1 -1
  66. package/dist/tempo/{multisig → accounts}/Operation.js +17 -17
  67. package/dist/tempo/{multisig → accounts}/Operation.js.map +1 -1
  68. package/dist/tempo/{multisig → accounts}/Signature.d.ts +1 -1
  69. package/dist/tempo/accounts/Signature.d.ts.map +1 -0
  70. package/dist/tempo/accounts/Signature.js +9 -0
  71. package/dist/tempo/accounts/Signature.js.map +1 -0
  72. package/dist/tempo/actions/accessKey/index.d.ts +1 -0
  73. package/dist/tempo/actions/accessKey/index.d.ts.map +1 -1
  74. package/dist/tempo/actions/accessKey/index.js +1 -0
  75. package/dist/tempo/actions/accessKey/index.js.map +1 -1
  76. package/dist/tempo/actions/accessKey/prepareAuthorization.d.ts +4 -4
  77. package/dist/tempo/actions/accessKey/prepareAuthorization.d.ts.map +1 -1
  78. package/dist/tempo/actions/accessKey/prepareAuthorization.js +10 -10
  79. package/dist/tempo/actions/accessKey/prepareAuthorization.js.map +1 -1
  80. package/dist/tempo/actions/accessKey/saveAuthorization.d.ts +40 -0
  81. package/dist/tempo/actions/accessKey/saveAuthorization.d.ts.map +1 -0
  82. package/dist/tempo/actions/accessKey/saveAuthorization.js +32 -0
  83. package/dist/tempo/actions/accessKey/saveAuthorization.js.map +1 -0
  84. package/dist/tempo/actions/accessKey/signAuthorization.d.ts +17 -13
  85. package/dist/tempo/actions/accessKey/signAuthorization.d.ts.map +1 -1
  86. package/dist/tempo/actions/accessKey/signAuthorization.js +43 -30
  87. package/dist/tempo/actions/accessKey/signAuthorization.js.map +1 -1
  88. package/dist/tempo/actions/{multisig → accounts}/getConfig.d.ts +5 -5
  89. package/dist/tempo/actions/accounts/getConfig.d.ts.map +1 -0
  90. package/dist/tempo/actions/{multisig → accounts}/getConfig.js +5 -5
  91. package/dist/tempo/actions/accounts/getConfig.js.map +1 -0
  92. package/dist/tempo/actions/{multisig → accounts}/getConfigCommitment.d.ts +3 -3
  93. package/dist/tempo/actions/{multisig → accounts}/getConfigCommitment.d.ts.map +1 -1
  94. package/dist/tempo/actions/{multisig → accounts}/getConfigCommitment.js +2 -2
  95. package/dist/tempo/actions/{multisig → accounts}/getConfigCommitment.js.map +1 -1
  96. package/dist/tempo/actions/{multisig → accounts}/getOperation.d.ts +4 -4
  97. package/dist/tempo/actions/{multisig → accounts}/getOperation.d.ts.map +1 -1
  98. package/dist/tempo/actions/{multisig → accounts}/getOperation.js +4 -4
  99. package/dist/tempo/actions/accounts/getOperation.js.map +1 -0
  100. package/dist/tempo/actions/{multisig → accounts}/index.d.ts.map +1 -1
  101. package/dist/tempo/actions/{multisig → accounts}/index.js.map +1 -1
  102. package/dist/tempo/actions/{multisig → accounts}/updateConfig.d.ts +12 -12
  103. package/dist/tempo/actions/{multisig → accounts}/updateConfig.d.ts.map +1 -1
  104. package/dist/tempo/actions/{multisig → accounts}/updateConfig.js +16 -21
  105. package/dist/tempo/actions/{multisig → accounts}/updateConfig.js.map +1 -1
  106. package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.d.ts +6 -6
  107. package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.d.ts.map +1 -1
  108. package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.js +6 -6
  109. package/dist/tempo/actions/{multisig → accounts}/updateConfigSync.js.map +1 -1
  110. package/dist/tempo/actions/index.d.ts +2 -2
  111. package/dist/tempo/actions/index.d.ts.map +1 -1
  112. package/dist/tempo/actions/index.js +2 -2
  113. package/dist/tempo/actions/index.js.map +1 -1
  114. package/dist/tempo/chainConfig.d.ts +16 -16
  115. package/dist/tempo/chainConfig.d.ts.map +1 -1
  116. package/dist/tempo/chainConfig.js +52 -52
  117. package/dist/tempo/chainConfig.js.map +1 -1
  118. package/dist/tempo/index.d.ts +2 -2
  119. package/dist/tempo/index.d.ts.map +1 -1
  120. package/dist/tempo/index.js +2 -2
  121. package/dist/tempo/index.js.map +1 -1
  122. package/dist/tempo/internal/relay/accounts.d.ts +15 -0
  123. package/dist/tempo/internal/relay/accounts.d.ts.map +1 -0
  124. package/dist/tempo/internal/relay/{multisig.js → accounts.js} +96 -101
  125. package/dist/tempo/internal/relay/accounts.js.map +1 -0
  126. package/dist/tempo/internal/relay/feePayer.js +5 -5
  127. package/dist/tempo/internal/relay/feePayer.js.map +1 -1
  128. package/dist/tempo/internal/relay/keyAuthorization.d.ts +25 -0
  129. package/dist/tempo/internal/relay/keyAuthorization.d.ts.map +1 -0
  130. package/dist/tempo/internal/relay/keyAuthorization.js +339 -0
  131. package/dist/tempo/internal/relay/keyAuthorization.js.map +1 -0
  132. package/dist/tempo/internal/relay/plugin.d.ts +6 -3
  133. package/dist/tempo/internal/relay/plugin.d.ts.map +1 -1
  134. package/dist/tempo/internal/relay/plugin.js +15 -6
  135. package/dist/tempo/internal/relay/plugin.js.map +1 -1
  136. package/dist/tempo/internal/relay/utils.d.ts +8 -0
  137. package/dist/tempo/internal/relay/utils.d.ts.map +1 -1
  138. package/dist/utils/RpcClient.d.ts.map +1 -1
  139. package/dist/utils/RpcClient.js +36 -19
  140. package/dist/utils/RpcClient.js.map +1 -1
  141. package/dist/version.d.ts +1 -1
  142. package/dist/version.js +1 -1
  143. package/package.json +2 -2
  144. package/src/chains/definitions/arcTestnet.ts +11 -8
  145. package/src/chains/definitions/qmsTestnet.ts +23 -0
  146. package/src/chains/definitions/tempo.ts +1 -1
  147. package/src/chains/definitions/tempoModerato.ts +2 -2
  148. package/src/chains/index.ts +1 -0
  149. package/src/core/actions/transaction/waitForReceipt.ts +5 -3
  150. package/src/core/actions/wallet/waitForCallsStatus.ts +25 -1
  151. package/src/internal/inference.ts +3 -3
  152. package/src/tempo/Abis.ts +216 -0
  153. package/src/tempo/Account.ts +97 -87
  154. package/src/tempo/Addresses.ts +2 -0
  155. package/src/tempo/Decorator.ts +55 -28
  156. package/src/tempo/ExecutionError.ts +1 -1
  157. package/src/tempo/KeyAuthorizationManager.ts +53 -31
  158. package/src/tempo/Relay.ts +69 -14
  159. package/src/tempo/Selectors.ts +13 -0
  160. package/src/tempo/Transport.ts +46 -20
  161. package/src/tempo/{multisig → accounts}/Config.ts +21 -21
  162. package/src/tempo/{multisig → accounts}/Operation.ts +26 -26
  163. package/src/tempo/{multisig → accounts}/Signature.ts +5 -3
  164. package/src/tempo/actions/accessKey/index.ts +1 -0
  165. package/src/tempo/actions/accessKey/prepareAuthorization.ts +16 -15
  166. package/src/tempo/actions/accessKey/saveAuthorization.ts +51 -0
  167. package/src/tempo/actions/accessKey/signAuthorization.ts +73 -51
  168. package/src/tempo/actions/{multisig → accounts}/getConfig.ts +7 -7
  169. package/src/tempo/actions/{multisig → accounts}/getConfigCommitment.ts +3 -3
  170. package/src/tempo/actions/{multisig → accounts}/getOperation.ts +6 -6
  171. package/src/tempo/actions/{multisig → accounts}/updateConfig.ts +21 -26
  172. package/src/tempo/actions/{multisig → accounts}/updateConfigSync.ts +7 -7
  173. package/src/tempo/actions/index.ts +2 -3
  174. package/src/tempo/chainConfig.ts +87 -85
  175. package/src/tempo/index.ts +4 -4
  176. package/src/tempo/internal/relay/{multisig.ts → accounts.ts} +121 -121
  177. package/src/tempo/internal/relay/feePayer.ts +5 -5
  178. package/src/tempo/internal/relay/keyAuthorization.ts +419 -0
  179. package/src/tempo/internal/relay/plugin.ts +20 -7
  180. package/src/utils/RpcClient.ts +38 -21
  181. package/src/version.ts +1 -1
  182. package/dist/tempo/actions/multisig/getConfig.d.ts.map +0 -1
  183. package/dist/tempo/actions/multisig/getConfig.js.map +0 -1
  184. package/dist/tempo/actions/multisig/getOperation.js.map +0 -1
  185. package/dist/tempo/internal/relay/multisig.d.ts +0 -4
  186. package/dist/tempo/internal/relay/multisig.d.ts.map +0 -1
  187. package/dist/tempo/internal/relay/multisig.js.map +0 -1
  188. package/dist/tempo/multisig/Config.d.ts.map +0 -1
  189. package/dist/tempo/multisig/Signature.d.ts.map +0 -1
  190. package/dist/tempo/multisig/Signature.js +0 -9
  191. package/dist/tempo/multisig/Signature.js.map +0 -1
  192. /package/dist/tempo/actions/{multisig → accounts}/index.d.ts +0 -0
  193. /package/dist/tempo/actions/{multisig → accounts}/index.js +0 -0
  194. /package/src/tempo/actions/{multisig → accounts}/index.ts +0 -0
@@ -8722,6 +8722,220 @@ export const zoneMessenger = [
8722
8722
  outputs: [],
8723
8723
  },
8724
8724
  ];
8725
+ export const zoneInbox = [
8726
+ {
8727
+ name: 'processedDepositQueueHash',
8728
+ type: 'function',
8729
+ stateMutability: 'view',
8730
+ inputs: [],
8731
+ outputs: [{ type: 'bytes32' }],
8732
+ },
8733
+ {
8734
+ name: 'processedDepositNumber',
8735
+ type: 'function',
8736
+ stateMutability: 'view',
8737
+ inputs: [],
8738
+ outputs: [{ type: 'uint64' }],
8739
+ },
8740
+ {
8741
+ name: 'processedTokenEnablementHash',
8742
+ type: 'function',
8743
+ stateMutability: 'view',
8744
+ inputs: [],
8745
+ outputs: [{ type: 'bytes32' }],
8746
+ },
8747
+ {
8748
+ name: 'processedEnabledTokenCount',
8749
+ type: 'function',
8750
+ stateMutability: 'view',
8751
+ inputs: [],
8752
+ outputs: [{ type: 'uint64' }],
8753
+ },
8754
+ {
8755
+ name: 'tempoPortal',
8756
+ type: 'function',
8757
+ stateMutability: 'view',
8758
+ inputs: [],
8759
+ outputs: [{ type: 'address' }],
8760
+ },
8761
+ {
8762
+ name: 'tempoState',
8763
+ type: 'function',
8764
+ stateMutability: 'view',
8765
+ inputs: [],
8766
+ outputs: [{ type: 'address' }],
8767
+ },
8768
+ {
8769
+ name: 'refunds',
8770
+ type: 'function',
8771
+ stateMutability: 'view',
8772
+ inputs: [
8773
+ { type: 'address', name: 'token' },
8774
+ { type: 'address', name: 'owner' },
8775
+ ],
8776
+ outputs: [{ type: 'uint128' }],
8777
+ },
8778
+ {
8779
+ name: 'claimRefund',
8780
+ type: 'function',
8781
+ stateMutability: 'nonpayable',
8782
+ inputs: [{ type: 'address', name: 'token' }],
8783
+ outputs: [{ type: 'uint128', name: 'amount' }],
8784
+ },
8785
+ {
8786
+ name: 'advanceTempo',
8787
+ type: 'function',
8788
+ stateMutability: 'nonpayable',
8789
+ inputs: [
8790
+ { type: 'bytes', name: 'header' },
8791
+ {
8792
+ type: 'tuple[]',
8793
+ name: 'deposits',
8794
+ components: [
8795
+ { type: 'uint8', name: 'depositType' },
8796
+ { type: 'bytes', name: 'depositData' },
8797
+ { type: 'bool', name: 'rejected' },
8798
+ ],
8799
+ },
8800
+ {
8801
+ type: 'tuple[]',
8802
+ name: 'decryptions',
8803
+ components: [
8804
+ { type: 'bytes32', name: 'sharedSecret' },
8805
+ { type: 'uint8', name: 'sharedSecretYParity' },
8806
+ {
8807
+ type: 'tuple',
8808
+ name: 'cpProof',
8809
+ components: [
8810
+ { type: 'bytes32', name: 's' },
8811
+ { type: 'bytes32', name: 'c' },
8812
+ ],
8813
+ },
8814
+ ],
8815
+ },
8816
+ {
8817
+ type: 'tuple[]',
8818
+ name: 'enabledTokens',
8819
+ components: [
8820
+ { type: 'address', name: 'token' },
8821
+ { type: 'string', name: 'name' },
8822
+ { type: 'string', name: 'symbol' },
8823
+ { type: 'string', name: 'currency' },
8824
+ ],
8825
+ },
8826
+ ],
8827
+ outputs: [],
8828
+ },
8829
+ {
8830
+ name: 'advanceTempoHeaders',
8831
+ type: 'function',
8832
+ stateMutability: 'nonpayable',
8833
+ inputs: [{ type: 'bytes[]', name: 'headers' }],
8834
+ outputs: [],
8835
+ },
8836
+ {
8837
+ name: 'TempoAdvanced',
8838
+ type: 'event',
8839
+ inputs: [
8840
+ { type: 'bytes32', name: 'tempoBlockHash', indexed: true },
8841
+ { type: 'uint64', name: 'tempoBlockNumber', indexed: true },
8842
+ { type: 'uint256', name: 'depositsProcessed' },
8843
+ { type: 'bytes32', name: 'newProcessedDepositQueueHash' },
8844
+ { type: 'uint64', name: 'lastProcessedDepositNumber' },
8845
+ ],
8846
+ },
8847
+ {
8848
+ name: 'TempoAdvanced',
8849
+ type: 'event',
8850
+ inputs: [
8851
+ { type: 'bytes32', name: 'tempoBlockHash', indexed: true },
8852
+ { type: 'uint64', name: 'tempoBlockNumber', indexed: true },
8853
+ { type: 'uint256', name: 'depositsProcessed' },
8854
+ { type: 'bytes32', name: 'newProcessedDepositQueueHash' },
8855
+ { type: 'uint64', name: 'lastProcessedDepositNumber' },
8856
+ { type: 'uint64', name: 'lastProcessedEnabledTokenCount' },
8857
+ ],
8858
+ },
8859
+ {
8860
+ name: 'DepositProcessed',
8861
+ type: 'event',
8862
+ inputs: [
8863
+ { type: 'bytes32', name: 'depositHash', indexed: true },
8864
+ { type: 'address', name: 'sender', indexed: true },
8865
+ { type: 'address', name: 'to', indexed: true },
8866
+ { type: 'address', name: 'token' },
8867
+ { type: 'uint128', name: 'amount' },
8868
+ { type: 'bytes32', name: 'memo' },
8869
+ ],
8870
+ },
8871
+ {
8872
+ name: 'DepositFailed',
8873
+ type: 'event',
8874
+ inputs: [
8875
+ { type: 'bytes32', name: 'depositHash', indexed: true },
8876
+ { type: 'address', name: 'sender', indexed: true },
8877
+ { type: 'address', name: 'token' },
8878
+ { type: 'uint128', name: 'amount' },
8879
+ ],
8880
+ },
8881
+ {
8882
+ name: 'DepositRejected',
8883
+ type: 'event',
8884
+ inputs: [
8885
+ { type: 'bytes32', name: 'depositHash', indexed: true },
8886
+ { type: 'address', name: 'sender', indexed: true },
8887
+ { type: 'uint8', name: 'depositType' },
8888
+ { type: 'address', name: 'token' },
8889
+ { type: 'uint128', name: 'amount' },
8890
+ { type: 'address', name: 'tempoRefundRecipient' },
8891
+ ],
8892
+ },
8893
+ {
8894
+ name: 'WithdrawalBounceBackProcessed',
8895
+ type: 'event',
8896
+ inputs: [
8897
+ { type: 'address', name: 'zoneFallbackRecipient', indexed: true },
8898
+ { type: 'address', name: 'token' },
8899
+ { type: 'uint128', name: 'amount' },
8900
+ ],
8901
+ },
8902
+ {
8903
+ name: 'WithdrawalBounceBackPending',
8904
+ type: 'event',
8905
+ inputs: [
8906
+ { type: 'address', name: 'zoneFallbackRecipient', indexed: true },
8907
+ { type: 'address', name: 'token' },
8908
+ { type: 'uint128', name: 'amount' },
8909
+ ],
8910
+ },
8911
+ {
8912
+ name: 'RefundClaimed',
8913
+ type: 'event',
8914
+ inputs: [
8915
+ { type: 'address', name: 'recipient', indexed: true },
8916
+ { type: 'address', name: 'token', indexed: true },
8917
+ { type: 'uint128', name: 'amount' },
8918
+ ],
8919
+ },
8920
+ {
8921
+ name: 'TokenEnabled',
8922
+ type: 'event',
8923
+ inputs: [
8924
+ { type: 'address', name: 'token', indexed: true },
8925
+ { type: 'string', name: 'name' },
8926
+ { type: 'string', name: 'symbol' },
8927
+ { type: 'string', name: 'currency' },
8928
+ ],
8929
+ },
8930
+ { name: 'OnlySequencer', type: 'error', inputs: [] },
8931
+ { name: 'InvalidDepositQueueHash', type: 'error', inputs: [] },
8932
+ { name: 'InvalidWithdrawalBounceBack', type: 'error', inputs: [] },
8933
+ { name: 'InvalidTokenEnablementHash', type: 'error', inputs: [] },
8934
+ { name: 'MissingDecryptionData', type: 'error', inputs: [] },
8935
+ { name: 'ExtraDecryptionData', type: 'error', inputs: [] },
8936
+ { name: 'InvalidSharedSecretProof', type: 'error', inputs: [] },
8937
+ { name: 'Unauthorized', type: 'error', inputs: [] },
8938
+ ];
8725
8939
  // Source: tempoxyz/propAMM@bff7c1fa50cf72e2896a078abae4e164c36caa93
8726
8940
  export const directPropAmm = [
8727
8941
  {
@@ -9665,6 +9879,7 @@ export const earn = [
9665
9879
  ...vedaEngine,
9666
9880
  ];
9667
9881
  export const zone = [
9882
+ ...zoneInbox,
9668
9883
  ...zoneMessenger,
9669
9884
  ...zoneOutbox,
9670
9885
  ...zonePortalPreT13Retired,