viem 2.50.4 → 2.51.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 (197) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/_cjs/actions/index.js +5 -3
  3. package/_cjs/actions/index.js.map +1 -1
  4. package/_cjs/actions/public/createAccessList.js +3 -0
  5. package/_cjs/actions/public/createAccessList.js.map +1 -1
  6. package/_cjs/actions/public/getBlockReceipts.js +19 -0
  7. package/_cjs/actions/public/getBlockReceipts.js.map +1 -0
  8. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  9. package/_cjs/chains/definitions/somnia.js +7 -0
  10. package/_cjs/chains/definitions/somnia.js.map +1 -1
  11. package/_cjs/chains/definitions/somniaTestnet.js +3 -2
  12. package/_cjs/chains/definitions/somniaTestnet.js.map +1 -1
  13. package/_cjs/clients/decorators/public.js +2 -0
  14. package/_cjs/clients/decorators/public.js.map +1 -1
  15. package/_cjs/errors/version.js +1 -1
  16. package/_cjs/index.js.map +1 -1
  17. package/_cjs/op-stack/actions/buildProveWithdrawal.js +10 -2
  18. package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -1
  19. package/_cjs/op-stack/actions/getGame.js.map +1 -1
  20. package/_cjs/op-stack/actions/getGames.js +3 -1
  21. package/_cjs/op-stack/actions/getGames.js.map +1 -1
  22. package/_cjs/op-stack/actions/getTimeToProve.js +3 -3
  23. package/_cjs/op-stack/actions/getTimeToProve.js.map +1 -1
  24. package/_cjs/op-stack/actions/getWithdrawalStatus.js +1 -1
  25. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  26. package/_cjs/op-stack/actions/waitToProve.js +4 -3
  27. package/_cjs/op-stack/actions/waitToProve.js.map +1 -1
  28. package/_cjs/op-stack/gameTypes.js +9 -0
  29. package/_cjs/op-stack/gameTypes.js.map +1 -0
  30. package/_cjs/op-stack/index.js +7 -1
  31. package/_cjs/op-stack/index.js.map +1 -1
  32. package/_cjs/op-stack/utils/getL2BlockNumberAtTimestamp.js +29 -0
  33. package/_cjs/op-stack/utils/getL2BlockNumberAtTimestamp.js.map +1 -0
  34. package/_cjs/tempo/Abis.js +477 -11
  35. package/_cjs/tempo/Abis.js.map +1 -1
  36. package/_cjs/tempo/Account.js +27 -1
  37. package/_cjs/tempo/Account.js.map +1 -1
  38. package/_cjs/tempo/Decorator.js +17 -0
  39. package/_cjs/tempo/Decorator.js.map +1 -1
  40. package/_cjs/tempo/Transaction.js +10 -2
  41. package/_cjs/tempo/Transaction.js.map +1 -1
  42. package/_cjs/tempo/actions/channel.js +377 -0
  43. package/_cjs/tempo/actions/channel.js.map +1 -0
  44. package/_cjs/tempo/actions/index.js +2 -1
  45. package/_cjs/tempo/actions/index.js.map +1 -1
  46. package/_cjs/tempo/actions/token.js +57 -27
  47. package/_cjs/tempo/actions/token.js.map +1 -1
  48. package/_cjs/tempo/index.js +2 -1
  49. package/_cjs/tempo/index.js.map +1 -1
  50. package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
  51. package/_cjs/utils/index.js.map +1 -1
  52. package/_esm/actions/index.js +1 -0
  53. package/_esm/actions/index.js.map +1 -1
  54. package/_esm/actions/public/createAccessList.js +3 -0
  55. package/_esm/actions/public/createAccessList.js.map +1 -1
  56. package/_esm/actions/public/getBlockReceipts.js +39 -0
  57. package/_esm/actions/public/getBlockReceipts.js.map +1 -0
  58. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  59. package/_esm/chains/definitions/somnia.js +7 -0
  60. package/_esm/chains/definitions/somnia.js.map +1 -1
  61. package/_esm/chains/definitions/somniaTestnet.js +3 -2
  62. package/_esm/chains/definitions/somniaTestnet.js.map +1 -1
  63. package/_esm/clients/decorators/public.js +2 -0
  64. package/_esm/clients/decorators/public.js.map +1 -1
  65. package/_esm/errors/version.js +1 -1
  66. package/_esm/index.js.map +1 -1
  67. package/_esm/op-stack/actions/buildProveWithdrawal.js +10 -2
  68. package/_esm/op-stack/actions/buildProveWithdrawal.js.map +1 -1
  69. package/_esm/op-stack/actions/getGame.js.map +1 -1
  70. package/_esm/op-stack/actions/getGames.js +3 -1
  71. package/_esm/op-stack/actions/getGames.js.map +1 -1
  72. package/_esm/op-stack/actions/getTimeToProve.js +3 -3
  73. package/_esm/op-stack/actions/getTimeToProve.js.map +1 -1
  74. package/_esm/op-stack/actions/getWithdrawalStatus.js +1 -1
  75. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  76. package/_esm/op-stack/actions/waitToProve.js +4 -3
  77. package/_esm/op-stack/actions/waitToProve.js.map +1 -1
  78. package/_esm/op-stack/gameTypes.js +9 -0
  79. package/_esm/op-stack/gameTypes.js.map +1 -0
  80. package/_esm/op-stack/index.js +2 -0
  81. package/_esm/op-stack/index.js.map +1 -1
  82. package/_esm/op-stack/utils/getL2BlockNumberAtTimestamp.js +33 -0
  83. package/_esm/op-stack/utils/getL2BlockNumberAtTimestamp.js.map +1 -0
  84. package/_esm/tempo/Abis.js +476 -10
  85. package/_esm/tempo/Abis.js.map +1 -1
  86. package/_esm/tempo/Account.js +27 -2
  87. package/_esm/tempo/Account.js.map +1 -1
  88. package/_esm/tempo/Decorator.js +17 -0
  89. package/_esm/tempo/Decorator.js.map +1 -1
  90. package/_esm/tempo/Transaction.js +16 -11
  91. package/_esm/tempo/Transaction.js.map +1 -1
  92. package/_esm/tempo/actions/channel.js +736 -0
  93. package/_esm/tempo/actions/channel.js.map +1 -0
  94. package/_esm/tempo/actions/index.js +1 -0
  95. package/_esm/tempo/actions/index.js.map +1 -1
  96. package/_esm/tempo/actions/token.js +61 -28
  97. package/_esm/tempo/actions/token.js.map +1 -1
  98. package/_esm/tempo/index.js +1 -1
  99. package/_esm/tempo/index.js.map +1 -1
  100. package/_esm/utils/formatters/transactionRequest.js.map +1 -1
  101. package/_esm/utils/index.js.map +1 -1
  102. package/_types/actions/index.d.ts +1 -0
  103. package/_types/actions/index.d.ts.map +1 -1
  104. package/_types/actions/public/createAccessList.d.ts +2 -1
  105. package/_types/actions/public/createAccessList.d.ts.map +1 -1
  106. package/_types/actions/public/getBlockReceipts.d.ts +53 -0
  107. package/_types/actions/public/getBlockReceipts.d.ts.map +1 -0
  108. package/_types/actions/wallet/prepareTransactionRequest.d.ts +4 -5
  109. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  110. package/_types/chains/definitions/somnia.d.ts +7 -10
  111. package/_types/chains/definitions/somnia.d.ts.map +1 -1
  112. package/_types/chains/definitions/somniaTestnet.d.ts +3 -3
  113. package/_types/chains/definitions/somniaTestnet.d.ts.map +1 -1
  114. package/_types/clients/decorators/public.d.ts +23 -0
  115. package/_types/clients/decorators/public.d.ts.map +1 -1
  116. package/_types/errors/version.d.ts +1 -1
  117. package/_types/index.d.ts +2 -1
  118. package/_types/index.d.ts.map +1 -1
  119. package/_types/op-stack/actions/buildProveWithdrawal.d.ts +2 -1
  120. package/_types/op-stack/actions/buildProveWithdrawal.d.ts.map +1 -1
  121. package/_types/op-stack/actions/getGame.d.ts +7 -0
  122. package/_types/op-stack/actions/getGame.d.ts.map +1 -1
  123. package/_types/op-stack/actions/getGames.d.ts +7 -0
  124. package/_types/op-stack/actions/getGames.d.ts.map +1 -1
  125. package/_types/op-stack/actions/getTimeToProve.d.ts +4 -0
  126. package/_types/op-stack/actions/getTimeToProve.d.ts.map +1 -1
  127. package/_types/op-stack/actions/getWithdrawalStatus.d.ts +4 -0
  128. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
  129. package/_types/op-stack/actions/waitToProve.d.ts +4 -0
  130. package/_types/op-stack/actions/waitToProve.d.ts.map +1 -1
  131. package/_types/op-stack/gameTypes.d.ts +7 -0
  132. package/_types/op-stack/gameTypes.d.ts.map +1 -0
  133. package/_types/op-stack/index.d.ts +2 -0
  134. package/_types/op-stack/index.d.ts.map +1 -1
  135. package/_types/op-stack/utils/getL2BlockNumberAtTimestamp.d.ts +21 -0
  136. package/_types/op-stack/utils/getL2BlockNumberAtTimestamp.d.ts.map +1 -0
  137. package/_types/tempo/Abis.d.ts +3784 -2271
  138. package/_types/tempo/Abis.d.ts.map +1 -1
  139. package/_types/tempo/Account.d.ts +32 -1
  140. package/_types/tempo/Account.d.ts.map +1 -1
  141. package/_types/tempo/Decorator.d.ts +246 -1
  142. package/_types/tempo/Decorator.d.ts.map +1 -1
  143. package/_types/tempo/Transaction.d.ts.map +1 -1
  144. package/_types/tempo/actions/accessKey.d.ts +339 -0
  145. package/_types/tempo/actions/accessKey.d.ts.map +1 -1
  146. package/_types/tempo/actions/channel.d.ts +4390 -0
  147. package/_types/tempo/actions/channel.d.ts.map +1 -0
  148. package/_types/tempo/actions/dex.d.ts +140 -0
  149. package/_types/tempo/actions/dex.d.ts.map +1 -1
  150. package/_types/tempo/actions/fee.d.ts +0 -48
  151. package/_types/tempo/actions/fee.d.ts.map +1 -1
  152. package/_types/tempo/actions/index.d.ts +1 -0
  153. package/_types/tempo/actions/index.d.ts.map +1 -1
  154. package/_types/tempo/actions/reward.d.ts +74 -18
  155. package/_types/tempo/actions/reward.d.ts.map +1 -1
  156. package/_types/tempo/actions/token.d.ts +629 -141
  157. package/_types/tempo/actions/token.d.ts.map +1 -1
  158. package/_types/tempo/actions/virtualAddress.d.ts +11 -0
  159. package/_types/tempo/actions/virtualAddress.d.ts.map +1 -1
  160. package/_types/tempo/index.d.ts +1 -1
  161. package/_types/tempo/index.d.ts.map +1 -1
  162. package/_types/types/eip1193.d.ts +13 -0
  163. package/_types/types/eip1193.d.ts.map +1 -1
  164. package/_types/utils/formatters/transactionRequest.d.ts +6 -1
  165. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  166. package/_types/utils/index.d.ts +1 -1
  167. package/_types/utils/index.d.ts.map +1 -1
  168. package/actions/index.ts +6 -0
  169. package/actions/public/createAccessList.ts +4 -0
  170. package/actions/public/getBlockReceipts.ts +101 -0
  171. package/actions/wallet/prepareTransactionRequest.ts +7 -10
  172. package/chains/definitions/somnia.ts +7 -0
  173. package/chains/definitions/somniaTestnet.ts +3 -2
  174. package/clients/decorators/public.ts +30 -0
  175. package/errors/version.ts +1 -1
  176. package/index.ts +6 -0
  177. package/op-stack/actions/buildProveWithdrawal.ts +17 -2
  178. package/op-stack/actions/getGame.ts +7 -0
  179. package/op-stack/actions/getGames.ts +10 -1
  180. package/op-stack/actions/getTimeToProve.ts +7 -3
  181. package/op-stack/actions/getWithdrawalStatus.ts +6 -1
  182. package/op-stack/actions/waitToProve.ts +8 -3
  183. package/op-stack/gameTypes.ts +9 -0
  184. package/op-stack/index.ts +7 -1
  185. package/op-stack/utils/getL2BlockNumberAtTimestamp.ts +57 -0
  186. package/package.json +2 -2
  187. package/tempo/Abis.ts +477 -10
  188. package/tempo/Account.ts +67 -2
  189. package/tempo/Decorator.ts +299 -1
  190. package/tempo/Transaction.ts +18 -11
  191. package/tempo/actions/channel.ts +1197 -0
  192. package/tempo/actions/index.ts +1 -0
  193. package/tempo/actions/token.ts +85 -26
  194. package/tempo/index.ts +1 -0
  195. package/types/eip1193.ts +13 -0
  196. package/utils/formatters/transactionRequest.ts +13 -1
  197. package/utils/index.ts +1 -0
@@ -1,6 +1,341 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.abis = exports.validatorConfig = exports.tip403Registry = exports.tip20Factory = exports.nonce = exports.accountKeychain = exports.feeAmm = exports.feeManager = exports.addressRegistry = exports.stablecoinDex = exports.signatureVerifier = exports.validatorConfigV2 = exports.tip20 = void 0;
3
+ exports.abis = exports.validatorConfig = exports.tip403Registry = exports.tip20Factory = exports.nonce = exports.accountKeychain = exports.feeAmm = exports.feeManager = exports.addressRegistry = exports.stablecoinDex = exports.signatureVerifier = exports.validatorConfigV2 = exports.tip20 = exports.tip20ChannelReserve = void 0;
4
+ exports.tip20ChannelReserve = [
5
+ {
6
+ name: 'CLOSE_GRACE_PERIOD',
7
+ type: 'function',
8
+ stateMutability: 'view',
9
+ inputs: [],
10
+ outputs: [{ type: 'uint64' }],
11
+ },
12
+ {
13
+ name: 'VOUCHER_TYPEHASH',
14
+ type: 'function',
15
+ stateMutability: 'view',
16
+ inputs: [],
17
+ outputs: [{ type: 'bytes32' }],
18
+ },
19
+ {
20
+ name: 'open',
21
+ type: 'function',
22
+ stateMutability: 'nonpayable',
23
+ inputs: [
24
+ { type: 'address', name: 'payee' },
25
+ { type: 'address', name: 'operator' },
26
+ { type: 'address', name: 'token' },
27
+ { type: 'uint96', name: 'deposit' },
28
+ { type: 'bytes32', name: 'salt' },
29
+ { type: 'address', name: 'authorizedSigner' },
30
+ ],
31
+ outputs: [{ type: 'bytes32', name: 'channelId' }],
32
+ },
33
+ {
34
+ name: 'settle',
35
+ type: 'function',
36
+ stateMutability: 'nonpayable',
37
+ inputs: [
38
+ {
39
+ type: 'tuple',
40
+ name: 'descriptor',
41
+ components: [
42
+ { type: 'address', name: 'payer' },
43
+ { type: 'address', name: 'payee' },
44
+ { type: 'address', name: 'operator' },
45
+ { type: 'address', name: 'token' },
46
+ { type: 'bytes32', name: 'salt' },
47
+ { type: 'address', name: 'authorizedSigner' },
48
+ { type: 'bytes32', name: 'expiringNonceHash' },
49
+ ],
50
+ },
51
+ { type: 'uint96', name: 'cumulativeAmount' },
52
+ { type: 'bytes', name: 'signature' },
53
+ ],
54
+ outputs: [],
55
+ },
56
+ {
57
+ name: 'topUp',
58
+ type: 'function',
59
+ stateMutability: 'nonpayable',
60
+ inputs: [
61
+ {
62
+ type: 'tuple',
63
+ name: 'descriptor',
64
+ components: [
65
+ { type: 'address', name: 'payer' },
66
+ { type: 'address', name: 'payee' },
67
+ { type: 'address', name: 'operator' },
68
+ { type: 'address', name: 'token' },
69
+ { type: 'bytes32', name: 'salt' },
70
+ { type: 'address', name: 'authorizedSigner' },
71
+ { type: 'bytes32', name: 'expiringNonceHash' },
72
+ ],
73
+ },
74
+ { type: 'uint96', name: 'additionalDeposit' },
75
+ ],
76
+ outputs: [],
77
+ },
78
+ {
79
+ name: 'close',
80
+ type: 'function',
81
+ stateMutability: 'nonpayable',
82
+ inputs: [
83
+ {
84
+ type: 'tuple',
85
+ name: 'descriptor',
86
+ components: [
87
+ { type: 'address', name: 'payer' },
88
+ { type: 'address', name: 'payee' },
89
+ { type: 'address', name: 'operator' },
90
+ { type: 'address', name: 'token' },
91
+ { type: 'bytes32', name: 'salt' },
92
+ { type: 'address', name: 'authorizedSigner' },
93
+ { type: 'bytes32', name: 'expiringNonceHash' },
94
+ ],
95
+ },
96
+ { type: 'uint96', name: 'cumulativeAmount' },
97
+ { type: 'uint96', name: 'captureAmount' },
98
+ { type: 'bytes', name: 'signature' },
99
+ ],
100
+ outputs: [],
101
+ },
102
+ {
103
+ name: 'requestClose',
104
+ type: 'function',
105
+ stateMutability: 'nonpayable',
106
+ inputs: [
107
+ {
108
+ type: 'tuple',
109
+ name: 'descriptor',
110
+ components: [
111
+ { type: 'address', name: 'payer' },
112
+ { type: 'address', name: 'payee' },
113
+ { type: 'address', name: 'operator' },
114
+ { type: 'address', name: 'token' },
115
+ { type: 'bytes32', name: 'salt' },
116
+ { type: 'address', name: 'authorizedSigner' },
117
+ { type: 'bytes32', name: 'expiringNonceHash' },
118
+ ],
119
+ },
120
+ ],
121
+ outputs: [],
122
+ },
123
+ {
124
+ name: 'withdraw',
125
+ type: 'function',
126
+ stateMutability: 'nonpayable',
127
+ inputs: [
128
+ {
129
+ type: 'tuple',
130
+ name: 'descriptor',
131
+ components: [
132
+ { type: 'address', name: 'payer' },
133
+ { type: 'address', name: 'payee' },
134
+ { type: 'address', name: 'operator' },
135
+ { type: 'address', name: 'token' },
136
+ { type: 'bytes32', name: 'salt' },
137
+ { type: 'address', name: 'authorizedSigner' },
138
+ { type: 'bytes32', name: 'expiringNonceHash' },
139
+ ],
140
+ },
141
+ ],
142
+ outputs: [],
143
+ },
144
+ {
145
+ name: 'getChannel',
146
+ type: 'function',
147
+ stateMutability: 'view',
148
+ inputs: [
149
+ {
150
+ type: 'tuple',
151
+ name: 'descriptor',
152
+ components: [
153
+ { type: 'address', name: 'payer' },
154
+ { type: 'address', name: 'payee' },
155
+ { type: 'address', name: 'operator' },
156
+ { type: 'address', name: 'token' },
157
+ { type: 'bytes32', name: 'salt' },
158
+ { type: 'address', name: 'authorizedSigner' },
159
+ { type: 'bytes32', name: 'expiringNonceHash' },
160
+ ],
161
+ },
162
+ ],
163
+ outputs: [
164
+ {
165
+ type: 'tuple',
166
+ components: [
167
+ {
168
+ type: 'tuple',
169
+ name: 'descriptor',
170
+ components: [
171
+ { type: 'address', name: 'payer' },
172
+ { type: 'address', name: 'payee' },
173
+ { type: 'address', name: 'operator' },
174
+ { type: 'address', name: 'token' },
175
+ { type: 'bytes32', name: 'salt' },
176
+ { type: 'address', name: 'authorizedSigner' },
177
+ { type: 'bytes32', name: 'expiringNonceHash' },
178
+ ],
179
+ },
180
+ {
181
+ type: 'tuple',
182
+ name: 'state',
183
+ components: [
184
+ { type: 'uint96', name: 'settled' },
185
+ { type: 'uint96', name: 'deposit' },
186
+ { type: 'uint32', name: 'closeRequestedAt' },
187
+ ],
188
+ },
189
+ ],
190
+ },
191
+ ],
192
+ },
193
+ {
194
+ name: 'getChannelState',
195
+ type: 'function',
196
+ stateMutability: 'view',
197
+ inputs: [{ type: 'bytes32', name: 'channelId' }],
198
+ outputs: [
199
+ {
200
+ type: 'tuple',
201
+ components: [
202
+ { type: 'uint96', name: 'settled' },
203
+ { type: 'uint96', name: 'deposit' },
204
+ { type: 'uint32', name: 'closeRequestedAt' },
205
+ ],
206
+ },
207
+ ],
208
+ },
209
+ {
210
+ name: 'getChannelStatesBatch',
211
+ type: 'function',
212
+ stateMutability: 'view',
213
+ inputs: [{ type: 'bytes32[]', name: 'channelIds' }],
214
+ outputs: [
215
+ {
216
+ type: 'tuple[]',
217
+ components: [
218
+ { type: 'uint96', name: 'settled' },
219
+ { type: 'uint96', name: 'deposit' },
220
+ { type: 'uint32', name: 'closeRequestedAt' },
221
+ ],
222
+ },
223
+ ],
224
+ },
225
+ {
226
+ name: 'computeChannelId',
227
+ type: 'function',
228
+ stateMutability: 'view',
229
+ inputs: [
230
+ { type: 'address', name: 'payer' },
231
+ { type: 'address', name: 'payee' },
232
+ { type: 'address', name: 'operator' },
233
+ { type: 'address', name: 'token' },
234
+ { type: 'bytes32', name: 'salt' },
235
+ { type: 'address', name: 'authorizedSigner' },
236
+ { type: 'bytes32', name: 'expiringNonceHash' },
237
+ ],
238
+ outputs: [{ type: 'bytes32' }],
239
+ },
240
+ {
241
+ name: 'getVoucherDigest',
242
+ type: 'function',
243
+ stateMutability: 'view',
244
+ inputs: [
245
+ { type: 'bytes32', name: 'channelId' },
246
+ { type: 'uint96', name: 'cumulativeAmount' },
247
+ ],
248
+ outputs: [{ type: 'bytes32' }],
249
+ },
250
+ {
251
+ name: 'domainSeparator',
252
+ type: 'function',
253
+ stateMutability: 'view',
254
+ inputs: [],
255
+ outputs: [{ type: 'bytes32' }],
256
+ },
257
+ {
258
+ name: 'ChannelOpened',
259
+ type: 'event',
260
+ inputs: [
261
+ { type: 'bytes32', name: 'channelId', indexed: true },
262
+ { type: 'address', name: 'payer', indexed: true },
263
+ { type: 'address', name: 'payee', indexed: true },
264
+ { type: 'address', name: 'operator' },
265
+ { type: 'address', name: 'token' },
266
+ { type: 'address', name: 'authorizedSigner' },
267
+ { type: 'bytes32', name: 'salt' },
268
+ { type: 'bytes32', name: 'expiringNonceHash' },
269
+ { type: 'uint96', name: 'deposit' },
270
+ ],
271
+ },
272
+ {
273
+ name: 'Settled',
274
+ type: 'event',
275
+ inputs: [
276
+ { type: 'bytes32', name: 'channelId', indexed: true },
277
+ { type: 'address', name: 'payer', indexed: true },
278
+ { type: 'address', name: 'payee', indexed: true },
279
+ { type: 'uint96', name: 'cumulativeAmount' },
280
+ { type: 'uint96', name: 'deltaPaid' },
281
+ { type: 'uint96', name: 'newSettled' },
282
+ ],
283
+ },
284
+ {
285
+ name: 'TopUp',
286
+ type: 'event',
287
+ inputs: [
288
+ { type: 'bytes32', name: 'channelId', indexed: true },
289
+ { type: 'address', name: 'payer', indexed: true },
290
+ { type: 'address', name: 'payee', indexed: true },
291
+ { type: 'uint96', name: 'additionalDeposit' },
292
+ { type: 'uint96', name: 'newDeposit' },
293
+ ],
294
+ },
295
+ {
296
+ name: 'CloseRequested',
297
+ type: 'event',
298
+ inputs: [
299
+ { type: 'bytes32', name: 'channelId', indexed: true },
300
+ { type: 'address', name: 'payer', indexed: true },
301
+ { type: 'address', name: 'payee', indexed: true },
302
+ { type: 'uint256', name: 'closeGraceEnd' },
303
+ ],
304
+ },
305
+ {
306
+ name: 'ChannelClosed',
307
+ type: 'event',
308
+ inputs: [
309
+ { type: 'bytes32', name: 'channelId', indexed: true },
310
+ { type: 'address', name: 'payer', indexed: true },
311
+ { type: 'address', name: 'payee', indexed: true },
312
+ { type: 'uint96', name: 'settledToPayee' },
313
+ { type: 'uint96', name: 'refundedToPayer' },
314
+ ],
315
+ },
316
+ {
317
+ name: 'CloseRequestCancelled',
318
+ type: 'event',
319
+ inputs: [
320
+ { type: 'bytes32', name: 'channelId', indexed: true },
321
+ { type: 'address', name: 'payer', indexed: true },
322
+ { type: 'address', name: 'payee', indexed: true },
323
+ ],
324
+ },
325
+ { name: 'ChannelAlreadyExists', type: 'error', inputs: [] },
326
+ { name: 'ChannelNotFound', type: 'error', inputs: [] },
327
+ { name: 'NotPayer', type: 'error', inputs: [] },
328
+ { name: 'NotPayeeOrOperator', type: 'error', inputs: [] },
329
+ { name: 'InvalidPayee', type: 'error', inputs: [] },
330
+ { name: 'ZeroDeposit', type: 'error', inputs: [] },
331
+ { name: 'ExpiringNonceHashNotSet', type: 'error', inputs: [] },
332
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
333
+ { name: 'AmountExceedsDeposit', type: 'error', inputs: [] },
334
+ { name: 'AmountNotIncreasing', type: 'error', inputs: [] },
335
+ { name: 'CaptureAmountInvalid', type: 'error', inputs: [] },
336
+ { name: 'CloseNotReady', type: 'error', inputs: [] },
337
+ { name: 'DepositOverflow', type: 'error', inputs: [] },
338
+ ];
4
339
  exports.tip20 = [
5
340
  {
6
341
  name: 'name',
@@ -19,7 +354,7 @@ exports.tip20 = [
19
354
  {
20
355
  name: 'decimals',
21
356
  type: 'function',
22
- stateMutability: 'view',
357
+ stateMutability: 'pure',
23
358
  inputs: [],
24
359
  outputs: [{ type: 'uint8' }],
25
360
  },
@@ -137,6 +472,20 @@ exports.tip20 = [
137
472
  inputs: [],
138
473
  outputs: [{ type: 'uint64' }],
139
474
  },
475
+ {
476
+ name: 'logoURI',
477
+ type: 'function',
478
+ stateMutability: 'view',
479
+ inputs: [],
480
+ outputs: [{ type: 'string' }],
481
+ },
482
+ {
483
+ name: 'setLogoURI',
484
+ type: 'function',
485
+ stateMutability: 'nonpayable',
486
+ inputs: [{ type: 'string', name: 'newLogoURI' }],
487
+ outputs: [],
488
+ },
140
489
  {
141
490
  name: 'burnBlocked',
142
491
  type: 'function',
@@ -456,6 +805,14 @@ exports.tip20 = [
456
805
  { type: 'address', name: 'recipient', indexed: true },
457
806
  ],
458
807
  },
808
+ {
809
+ name: 'LogoURIUpdated',
810
+ type: 'event',
811
+ inputs: [
812
+ { type: 'address', name: 'updater', indexed: true },
813
+ { type: 'string', name: 'newLogoURI' },
814
+ ],
815
+ },
459
816
  {
460
817
  name: 'InsufficientBalance',
461
818
  type: 'error',
@@ -469,13 +826,11 @@ exports.tip20 = [
469
826
  { name: 'SupplyCapExceeded', type: 'error', inputs: [] },
470
827
  { name: 'InvalidSupplyCap', type: 'error', inputs: [] },
471
828
  { name: 'InvalidPayload', type: 'error', inputs: [] },
472
- { name: 'StringTooLong', type: 'error', inputs: [] },
473
829
  { name: 'PolicyForbids', type: 'error', inputs: [] },
474
830
  { name: 'InvalidRecipient', type: 'error', inputs: [] },
475
831
  { name: 'ContractPaused', type: 'error', inputs: [] },
476
832
  { name: 'InvalidCurrency', type: 'error', inputs: [] },
477
833
  { name: 'InvalidQuoteToken', type: 'error', inputs: [] },
478
- { name: 'TransfersDisabled', type: 'error', inputs: [] },
479
834
  { name: 'InvalidAmount', type: 'error', inputs: [] },
480
835
  { name: 'NoOptedInSupply', type: 'error', inputs: [] },
481
836
  { name: 'Unauthorized', type: 'error', inputs: [] },
@@ -485,6 +840,8 @@ exports.tip20 = [
485
840
  { name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
486
841
  { name: 'PermitExpired', type: 'error', inputs: [] },
487
842
  { name: 'InvalidSignature', type: 'error', inputs: [] },
843
+ { name: 'LogoURITooLong', type: 'error', inputs: [] },
844
+ { name: 'InvalidLogoURI', type: 'error', inputs: [] },
488
845
  {
489
846
  name: 'hasRole',
490
847
  type: 'function',
@@ -1221,6 +1578,19 @@ exports.stablecoinDex = [
1221
1578
  { type: 'bool', name: 'partialFill' },
1222
1579
  ],
1223
1580
  },
1581
+ {
1582
+ name: 'OrderFlipped',
1583
+ type: 'event',
1584
+ inputs: [
1585
+ { type: 'uint128', name: 'orderId', indexed: true },
1586
+ { type: 'address', name: 'maker', indexed: true },
1587
+ { type: 'address', name: 'token', indexed: true },
1588
+ { type: 'uint128', name: 'amount' },
1589
+ { type: 'bool', name: 'isBid' },
1590
+ { type: 'int16', name: 'tick' },
1591
+ { type: 'int16', name: 'flipTick' },
1592
+ ],
1593
+ },
1224
1594
  {
1225
1595
  name: 'OrderCancelled',
1226
1596
  type: 'event',
@@ -1298,6 +1668,13 @@ exports.addressRegistry = [
1298
1668
  { type: 'bytes6', name: 'userTag' },
1299
1669
  ],
1300
1670
  },
1671
+ {
1672
+ name: 'isImplicitlyApproved',
1673
+ type: 'function',
1674
+ stateMutability: 'view',
1675
+ inputs: [{ type: 'address', name: 'addr' }],
1676
+ outputs: [{ type: 'bool' }],
1677
+ },
1301
1678
  {
1302
1679
  name: 'MasterRegistered',
1303
1680
  type: 'event',
@@ -1389,15 +1766,9 @@ exports.feeManager = [
1389
1766
  { type: 'uint256', name: 'amount' },
1390
1767
  ],
1391
1768
  },
1392
- { name: 'OnlyValidator', type: 'error', inputs: [] },
1393
- { name: 'OnlySystemContract', type: 'error', inputs: [] },
1394
1769
  { name: 'InvalidToken', type: 'error', inputs: [] },
1395
- { name: 'PoolDoesNotExist', type: 'error', inputs: [] },
1396
1770
  { name: 'InsufficientFeeTokenBalance', type: 'error', inputs: [] },
1397
- { name: 'InternalError', type: 'error', inputs: [] },
1398
1771
  { name: 'CannotChangeWithinBlock', type: 'error', inputs: [] },
1399
- { name: 'CannotChangeWithPendingFees', type: 'error', inputs: [] },
1400
- { name: 'TokenPolicyForbids', type: 'error', inputs: [] },
1401
1772
  ];
1402
1773
  exports.feeAmm = [
1403
1774
  {
@@ -1635,6 +2006,57 @@ exports.accountKeychain = [
1635
2006
  ],
1636
2007
  outputs: [],
1637
2008
  },
2009
+ {
2010
+ name: 'authorizeKey',
2011
+ type: 'function',
2012
+ stateMutability: 'nonpayable',
2013
+ inputs: [
2014
+ { type: 'address', name: 'keyId' },
2015
+ { type: 'uint8', name: 'signatureType' },
2016
+ {
2017
+ type: 'tuple',
2018
+ name: 'config',
2019
+ components: [
2020
+ { type: 'uint64', name: 'expiry' },
2021
+ { type: 'bool', name: 'enforceLimits' },
2022
+ {
2023
+ type: 'tuple[]',
2024
+ name: 'limits',
2025
+ components: [
2026
+ { type: 'address', name: 'token' },
2027
+ { type: 'uint256', name: 'amount' },
2028
+ { type: 'uint64', name: 'period' },
2029
+ ],
2030
+ },
2031
+ { type: 'bool', name: 'allowAnyCalls' },
2032
+ {
2033
+ type: 'tuple[]',
2034
+ name: 'allowedCalls',
2035
+ components: [
2036
+ { type: 'address', name: 'target' },
2037
+ {
2038
+ type: 'tuple[]',
2039
+ name: 'selectorRules',
2040
+ components: [
2041
+ { type: 'bytes4', name: 'selector' },
2042
+ { type: 'address[]', name: 'recipients' },
2043
+ ],
2044
+ },
2045
+ ],
2046
+ },
2047
+ ],
2048
+ },
2049
+ { type: 'bytes32', name: 'witness' },
2050
+ ],
2051
+ outputs: [],
2052
+ },
2053
+ {
2054
+ name: 'burnKeyAuthorizationWitness',
2055
+ type: 'function',
2056
+ stateMutability: 'nonpayable',
2057
+ inputs: [{ type: 'bytes32', name: 'witness' }],
2058
+ outputs: [],
2059
+ },
1638
2060
  {
1639
2061
  name: 'revokeKey',
1640
2062
  type: 'function',
@@ -1760,6 +2182,16 @@ exports.accountKeychain = [
1760
2182
  },
1761
2183
  ],
1762
2184
  },
2185
+ {
2186
+ name: 'isKeyAuthorizationWitnessBurned',
2187
+ type: 'function',
2188
+ stateMutability: 'view',
2189
+ inputs: [
2190
+ { type: 'address', name: 'account' },
2191
+ { type: 'bytes32', name: 'witness' },
2192
+ ],
2193
+ outputs: [{ type: 'bool' }],
2194
+ },
1763
2195
  {
1764
2196
  name: 'getTransactionKey',
1765
2197
  type: 'function',
@@ -1806,6 +2238,22 @@ exports.accountKeychain = [
1806
2238
  { type: 'uint256', name: 'remainingLimit' },
1807
2239
  ],
1808
2240
  },
2241
+ {
2242
+ name: 'KeyAuthorizationWitness',
2243
+ type: 'event',
2244
+ inputs: [
2245
+ { type: 'address', name: 'account', indexed: true },
2246
+ { type: 'bytes32', name: 'witness', indexed: true },
2247
+ ],
2248
+ },
2249
+ {
2250
+ name: 'KeyAuthorizationWitnessBurned',
2251
+ type: 'event',
2252
+ inputs: [
2253
+ { type: 'address', name: 'account', indexed: true },
2254
+ { type: 'bytes32', name: 'witness', indexed: true },
2255
+ ],
2256
+ },
1809
2257
  { name: 'UnauthorizedCaller', type: 'error', inputs: [] },
1810
2258
  { name: 'KeyAlreadyExists', type: 'error', inputs: [] },
1811
2259
  { name: 'KeyNotFound', type: 'error', inputs: [] },
@@ -1826,6 +2274,8 @@ exports.accountKeychain = [
1826
2274
  },
1827
2275
  { name: 'CallNotAllowed', type: 'error', inputs: [] },
1828
2276
  { name: 'InvalidCallScope', type: 'error', inputs: [] },
2277
+ { name: 'InvalidKeyAuthorizationWitness', type: 'error', inputs: [] },
2278
+ { name: 'KeyAuthorizationWitnessAlreadyBurned', type: 'error', inputs: [] },
1829
2279
  {
1830
2280
  name: 'LegacyAuthorizeKeySelectorChanged',
1831
2281
  type: 'error',
@@ -1874,6 +2324,21 @@ exports.tip20Factory = [
1874
2324
  ],
1875
2325
  outputs: [{ type: 'address' }],
1876
2326
  },
2327
+ {
2328
+ name: 'createToken',
2329
+ type: 'function',
2330
+ stateMutability: 'nonpayable',
2331
+ inputs: [
2332
+ { type: 'string', name: 'name' },
2333
+ { type: 'string', name: 'symbol' },
2334
+ { type: 'string', name: 'currency' },
2335
+ { type: 'address', name: 'quoteToken' },
2336
+ { type: 'address', name: 'admin' },
2337
+ { type: 'bytes32', name: 'salt' },
2338
+ { type: 'string', name: 'logoURI' },
2339
+ ],
2340
+ outputs: [{ type: 'address' }],
2341
+ },
1877
2342
  {
1878
2343
  name: 'isTIP20',
1879
2344
  type: 'function',
@@ -1884,7 +2349,7 @@ exports.tip20Factory = [
1884
2349
  {
1885
2350
  name: 'getTokenAddress',
1886
2351
  type: 'function',
1887
- stateMutability: 'view',
2352
+ stateMutability: 'pure',
1888
2353
  inputs: [
1889
2354
  { type: 'address', name: 'sender' },
1890
2355
  { type: 'bytes32', name: 'salt' },
@@ -2260,6 +2725,7 @@ exports.validatorConfig = [
2260
2725
  },
2261
2726
  ];
2262
2727
  exports.abis = [
2728
+ ...exports.tip20ChannelReserve,
2263
2729
  ...exports.tip20,
2264
2730
  ...exports.validatorConfigV2,
2265
2731
  ...exports.signatureVerifier,