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
package/tempo/Abis.ts CHANGED
@@ -1,5 +1,341 @@
1
1
  // Generated with `pnpm gen:abis`. Do not modify manually.
2
2
 
3
+ export const tip20ChannelReserve = [
4
+ {
5
+ name: 'CLOSE_GRACE_PERIOD',
6
+ type: 'function',
7
+ stateMutability: 'view',
8
+ inputs: [],
9
+ outputs: [{ type: 'uint64' }],
10
+ },
11
+ {
12
+ name: 'VOUCHER_TYPEHASH',
13
+ type: 'function',
14
+ stateMutability: 'view',
15
+ inputs: [],
16
+ outputs: [{ type: 'bytes32' }],
17
+ },
18
+ {
19
+ name: 'open',
20
+ type: 'function',
21
+ stateMutability: 'nonpayable',
22
+ inputs: [
23
+ { type: 'address', name: 'payee' },
24
+ { type: 'address', name: 'operator' },
25
+ { type: 'address', name: 'token' },
26
+ { type: 'uint96', name: 'deposit' },
27
+ { type: 'bytes32', name: 'salt' },
28
+ { type: 'address', name: 'authorizedSigner' },
29
+ ],
30
+ outputs: [{ type: 'bytes32', name: 'channelId' }],
31
+ },
32
+ {
33
+ name: 'settle',
34
+ type: 'function',
35
+ stateMutability: 'nonpayable',
36
+ inputs: [
37
+ {
38
+ type: 'tuple',
39
+ name: 'descriptor',
40
+ components: [
41
+ { type: 'address', name: 'payer' },
42
+ { type: 'address', name: 'payee' },
43
+ { type: 'address', name: 'operator' },
44
+ { type: 'address', name: 'token' },
45
+ { type: 'bytes32', name: 'salt' },
46
+ { type: 'address', name: 'authorizedSigner' },
47
+ { type: 'bytes32', name: 'expiringNonceHash' },
48
+ ],
49
+ },
50
+ { type: 'uint96', name: 'cumulativeAmount' },
51
+ { type: 'bytes', name: 'signature' },
52
+ ],
53
+ outputs: [],
54
+ },
55
+ {
56
+ name: 'topUp',
57
+ type: 'function',
58
+ stateMutability: 'nonpayable',
59
+ inputs: [
60
+ {
61
+ type: 'tuple',
62
+ name: 'descriptor',
63
+ components: [
64
+ { type: 'address', name: 'payer' },
65
+ { type: 'address', name: 'payee' },
66
+ { type: 'address', name: 'operator' },
67
+ { type: 'address', name: 'token' },
68
+ { type: 'bytes32', name: 'salt' },
69
+ { type: 'address', name: 'authorizedSigner' },
70
+ { type: 'bytes32', name: 'expiringNonceHash' },
71
+ ],
72
+ },
73
+ { type: 'uint96', name: 'additionalDeposit' },
74
+ ],
75
+ outputs: [],
76
+ },
77
+ {
78
+ name: 'close',
79
+ type: 'function',
80
+ stateMutability: 'nonpayable',
81
+ inputs: [
82
+ {
83
+ type: 'tuple',
84
+ name: 'descriptor',
85
+ components: [
86
+ { type: 'address', name: 'payer' },
87
+ { type: 'address', name: 'payee' },
88
+ { type: 'address', name: 'operator' },
89
+ { type: 'address', name: 'token' },
90
+ { type: 'bytes32', name: 'salt' },
91
+ { type: 'address', name: 'authorizedSigner' },
92
+ { type: 'bytes32', name: 'expiringNonceHash' },
93
+ ],
94
+ },
95
+ { type: 'uint96', name: 'cumulativeAmount' },
96
+ { type: 'uint96', name: 'captureAmount' },
97
+ { type: 'bytes', name: 'signature' },
98
+ ],
99
+ outputs: [],
100
+ },
101
+ {
102
+ name: 'requestClose',
103
+ type: 'function',
104
+ stateMutability: 'nonpayable',
105
+ inputs: [
106
+ {
107
+ type: 'tuple',
108
+ name: 'descriptor',
109
+ components: [
110
+ { type: 'address', name: 'payer' },
111
+ { type: 'address', name: 'payee' },
112
+ { type: 'address', name: 'operator' },
113
+ { type: 'address', name: 'token' },
114
+ { type: 'bytes32', name: 'salt' },
115
+ { type: 'address', name: 'authorizedSigner' },
116
+ { type: 'bytes32', name: 'expiringNonceHash' },
117
+ ],
118
+ },
119
+ ],
120
+ outputs: [],
121
+ },
122
+ {
123
+ name: 'withdraw',
124
+ type: 'function',
125
+ stateMutability: 'nonpayable',
126
+ inputs: [
127
+ {
128
+ type: 'tuple',
129
+ name: 'descriptor',
130
+ components: [
131
+ { type: 'address', name: 'payer' },
132
+ { type: 'address', name: 'payee' },
133
+ { type: 'address', name: 'operator' },
134
+ { type: 'address', name: 'token' },
135
+ { type: 'bytes32', name: 'salt' },
136
+ { type: 'address', name: 'authorizedSigner' },
137
+ { type: 'bytes32', name: 'expiringNonceHash' },
138
+ ],
139
+ },
140
+ ],
141
+ outputs: [],
142
+ },
143
+ {
144
+ name: 'getChannel',
145
+ type: 'function',
146
+ stateMutability: 'view',
147
+ inputs: [
148
+ {
149
+ type: 'tuple',
150
+ name: 'descriptor',
151
+ components: [
152
+ { type: 'address', name: 'payer' },
153
+ { type: 'address', name: 'payee' },
154
+ { type: 'address', name: 'operator' },
155
+ { type: 'address', name: 'token' },
156
+ { type: 'bytes32', name: 'salt' },
157
+ { type: 'address', name: 'authorizedSigner' },
158
+ { type: 'bytes32', name: 'expiringNonceHash' },
159
+ ],
160
+ },
161
+ ],
162
+ outputs: [
163
+ {
164
+ type: 'tuple',
165
+ components: [
166
+ {
167
+ type: 'tuple',
168
+ name: 'descriptor',
169
+ components: [
170
+ { type: 'address', name: 'payer' },
171
+ { type: 'address', name: 'payee' },
172
+ { type: 'address', name: 'operator' },
173
+ { type: 'address', name: 'token' },
174
+ { type: 'bytes32', name: 'salt' },
175
+ { type: 'address', name: 'authorizedSigner' },
176
+ { type: 'bytes32', name: 'expiringNonceHash' },
177
+ ],
178
+ },
179
+ {
180
+ type: 'tuple',
181
+ name: 'state',
182
+ components: [
183
+ { type: 'uint96', name: 'settled' },
184
+ { type: 'uint96', name: 'deposit' },
185
+ { type: 'uint32', name: 'closeRequestedAt' },
186
+ ],
187
+ },
188
+ ],
189
+ },
190
+ ],
191
+ },
192
+ {
193
+ name: 'getChannelState',
194
+ type: 'function',
195
+ stateMutability: 'view',
196
+ inputs: [{ type: 'bytes32', name: 'channelId' }],
197
+ outputs: [
198
+ {
199
+ type: 'tuple',
200
+ components: [
201
+ { type: 'uint96', name: 'settled' },
202
+ { type: 'uint96', name: 'deposit' },
203
+ { type: 'uint32', name: 'closeRequestedAt' },
204
+ ],
205
+ },
206
+ ],
207
+ },
208
+ {
209
+ name: 'getChannelStatesBatch',
210
+ type: 'function',
211
+ stateMutability: 'view',
212
+ inputs: [{ type: 'bytes32[]', name: 'channelIds' }],
213
+ outputs: [
214
+ {
215
+ type: 'tuple[]',
216
+ components: [
217
+ { type: 'uint96', name: 'settled' },
218
+ { type: 'uint96', name: 'deposit' },
219
+ { type: 'uint32', name: 'closeRequestedAt' },
220
+ ],
221
+ },
222
+ ],
223
+ },
224
+ {
225
+ name: 'computeChannelId',
226
+ type: 'function',
227
+ stateMutability: 'view',
228
+ inputs: [
229
+ { type: 'address', name: 'payer' },
230
+ { type: 'address', name: 'payee' },
231
+ { type: 'address', name: 'operator' },
232
+ { type: 'address', name: 'token' },
233
+ { type: 'bytes32', name: 'salt' },
234
+ { type: 'address', name: 'authorizedSigner' },
235
+ { type: 'bytes32', name: 'expiringNonceHash' },
236
+ ],
237
+ outputs: [{ type: 'bytes32' }],
238
+ },
239
+ {
240
+ name: 'getVoucherDigest',
241
+ type: 'function',
242
+ stateMutability: 'view',
243
+ inputs: [
244
+ { type: 'bytes32', name: 'channelId' },
245
+ { type: 'uint96', name: 'cumulativeAmount' },
246
+ ],
247
+ outputs: [{ type: 'bytes32' }],
248
+ },
249
+ {
250
+ name: 'domainSeparator',
251
+ type: 'function',
252
+ stateMutability: 'view',
253
+ inputs: [],
254
+ outputs: [{ type: 'bytes32' }],
255
+ },
256
+ {
257
+ name: 'ChannelOpened',
258
+ type: 'event',
259
+ inputs: [
260
+ { type: 'bytes32', name: 'channelId', indexed: true },
261
+ { type: 'address', name: 'payer', indexed: true },
262
+ { type: 'address', name: 'payee', indexed: true },
263
+ { type: 'address', name: 'operator' },
264
+ { type: 'address', name: 'token' },
265
+ { type: 'address', name: 'authorizedSigner' },
266
+ { type: 'bytes32', name: 'salt' },
267
+ { type: 'bytes32', name: 'expiringNonceHash' },
268
+ { type: 'uint96', name: 'deposit' },
269
+ ],
270
+ },
271
+ {
272
+ name: 'Settled',
273
+ type: 'event',
274
+ inputs: [
275
+ { type: 'bytes32', name: 'channelId', indexed: true },
276
+ { type: 'address', name: 'payer', indexed: true },
277
+ { type: 'address', name: 'payee', indexed: true },
278
+ { type: 'uint96', name: 'cumulativeAmount' },
279
+ { type: 'uint96', name: 'deltaPaid' },
280
+ { type: 'uint96', name: 'newSettled' },
281
+ ],
282
+ },
283
+ {
284
+ name: 'TopUp',
285
+ type: 'event',
286
+ inputs: [
287
+ { type: 'bytes32', name: 'channelId', indexed: true },
288
+ { type: 'address', name: 'payer', indexed: true },
289
+ { type: 'address', name: 'payee', indexed: true },
290
+ { type: 'uint96', name: 'additionalDeposit' },
291
+ { type: 'uint96', name: 'newDeposit' },
292
+ ],
293
+ },
294
+ {
295
+ name: 'CloseRequested',
296
+ type: 'event',
297
+ inputs: [
298
+ { type: 'bytes32', name: 'channelId', indexed: true },
299
+ { type: 'address', name: 'payer', indexed: true },
300
+ { type: 'address', name: 'payee', indexed: true },
301
+ { type: 'uint256', name: 'closeGraceEnd' },
302
+ ],
303
+ },
304
+ {
305
+ name: 'ChannelClosed',
306
+ type: 'event',
307
+ inputs: [
308
+ { type: 'bytes32', name: 'channelId', indexed: true },
309
+ { type: 'address', name: 'payer', indexed: true },
310
+ { type: 'address', name: 'payee', indexed: true },
311
+ { type: 'uint96', name: 'settledToPayee' },
312
+ { type: 'uint96', name: 'refundedToPayer' },
313
+ ],
314
+ },
315
+ {
316
+ name: 'CloseRequestCancelled',
317
+ type: 'event',
318
+ inputs: [
319
+ { type: 'bytes32', name: 'channelId', indexed: true },
320
+ { type: 'address', name: 'payer', indexed: true },
321
+ { type: 'address', name: 'payee', indexed: true },
322
+ ],
323
+ },
324
+ { name: 'ChannelAlreadyExists', type: 'error', inputs: [] },
325
+ { name: 'ChannelNotFound', type: 'error', inputs: [] },
326
+ { name: 'NotPayer', type: 'error', inputs: [] },
327
+ { name: 'NotPayeeOrOperator', type: 'error', inputs: [] },
328
+ { name: 'InvalidPayee', type: 'error', inputs: [] },
329
+ { name: 'ZeroDeposit', type: 'error', inputs: [] },
330
+ { name: 'ExpiringNonceHashNotSet', type: 'error', inputs: [] },
331
+ { name: 'InvalidSignature', type: 'error', inputs: [] },
332
+ { name: 'AmountExceedsDeposit', type: 'error', inputs: [] },
333
+ { name: 'AmountNotIncreasing', type: 'error', inputs: [] },
334
+ { name: 'CaptureAmountInvalid', type: 'error', inputs: [] },
335
+ { name: 'CloseNotReady', type: 'error', inputs: [] },
336
+ { name: 'DepositOverflow', type: 'error', inputs: [] },
337
+ ] as const
338
+
3
339
  export const tip20 = [
4
340
  {
5
341
  name: 'name',
@@ -18,7 +354,7 @@ export const tip20 = [
18
354
  {
19
355
  name: 'decimals',
20
356
  type: 'function',
21
- stateMutability: 'view',
357
+ stateMutability: 'pure',
22
358
  inputs: [],
23
359
  outputs: [{ type: 'uint8' }],
24
360
  },
@@ -136,6 +472,20 @@ export const tip20 = [
136
472
  inputs: [],
137
473
  outputs: [{ type: 'uint64' }],
138
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
+ },
139
489
  {
140
490
  name: 'burnBlocked',
141
491
  type: 'function',
@@ -455,6 +805,14 @@ export const tip20 = [
455
805
  { type: 'address', name: 'recipient', indexed: true },
456
806
  ],
457
807
  },
808
+ {
809
+ name: 'LogoURIUpdated',
810
+ type: 'event',
811
+ inputs: [
812
+ { type: 'address', name: 'updater', indexed: true },
813
+ { type: 'string', name: 'newLogoURI' },
814
+ ],
815
+ },
458
816
  {
459
817
  name: 'InsufficientBalance',
460
818
  type: 'error',
@@ -468,13 +826,11 @@ export const tip20 = [
468
826
  { name: 'SupplyCapExceeded', type: 'error', inputs: [] },
469
827
  { name: 'InvalidSupplyCap', type: 'error', inputs: [] },
470
828
  { name: 'InvalidPayload', type: 'error', inputs: [] },
471
- { name: 'StringTooLong', type: 'error', inputs: [] },
472
829
  { name: 'PolicyForbids', type: 'error', inputs: [] },
473
830
  { name: 'InvalidRecipient', type: 'error', inputs: [] },
474
831
  { name: 'ContractPaused', type: 'error', inputs: [] },
475
832
  { name: 'InvalidCurrency', type: 'error', inputs: [] },
476
833
  { name: 'InvalidQuoteToken', type: 'error', inputs: [] },
477
- { name: 'TransfersDisabled', type: 'error', inputs: [] },
478
834
  { name: 'InvalidAmount', type: 'error', inputs: [] },
479
835
  { name: 'NoOptedInSupply', type: 'error', inputs: [] },
480
836
  { name: 'Unauthorized', type: 'error', inputs: [] },
@@ -484,6 +840,8 @@ export const tip20 = [
484
840
  { name: 'InvalidTransferPolicyId', type: 'error', inputs: [] },
485
841
  { name: 'PermitExpired', type: 'error', inputs: [] },
486
842
  { name: 'InvalidSignature', type: 'error', inputs: [] },
843
+ { name: 'LogoURITooLong', type: 'error', inputs: [] },
844
+ { name: 'InvalidLogoURI', type: 'error', inputs: [] },
487
845
  {
488
846
  name: 'hasRole',
489
847
  type: 'function',
@@ -1223,6 +1581,19 @@ export const stablecoinDex = [
1223
1581
  { type: 'bool', name: 'partialFill' },
1224
1582
  ],
1225
1583
  },
1584
+ {
1585
+ name: 'OrderFlipped',
1586
+ type: 'event',
1587
+ inputs: [
1588
+ { type: 'uint128', name: 'orderId', indexed: true },
1589
+ { type: 'address', name: 'maker', indexed: true },
1590
+ { type: 'address', name: 'token', indexed: true },
1591
+ { type: 'uint128', name: 'amount' },
1592
+ { type: 'bool', name: 'isBid' },
1593
+ { type: 'int16', name: 'tick' },
1594
+ { type: 'int16', name: 'flipTick' },
1595
+ ],
1596
+ },
1226
1597
  {
1227
1598
  name: 'OrderCancelled',
1228
1599
  type: 'event',
@@ -1301,6 +1672,13 @@ export const addressRegistry = [
1301
1672
  { type: 'bytes6', name: 'userTag' },
1302
1673
  ],
1303
1674
  },
1675
+ {
1676
+ name: 'isImplicitlyApproved',
1677
+ type: 'function',
1678
+ stateMutability: 'view',
1679
+ inputs: [{ type: 'address', name: 'addr' }],
1680
+ outputs: [{ type: 'bool' }],
1681
+ },
1304
1682
  {
1305
1683
  name: 'MasterRegistered',
1306
1684
  type: 'event',
@@ -1393,15 +1771,9 @@ export const feeManager = [
1393
1771
  { type: 'uint256', name: 'amount' },
1394
1772
  ],
1395
1773
  },
1396
- { name: 'OnlyValidator', type: 'error', inputs: [] },
1397
- { name: 'OnlySystemContract', type: 'error', inputs: [] },
1398
1774
  { name: 'InvalidToken', type: 'error', inputs: [] },
1399
- { name: 'PoolDoesNotExist', type: 'error', inputs: [] },
1400
1775
  { name: 'InsufficientFeeTokenBalance', type: 'error', inputs: [] },
1401
- { name: 'InternalError', type: 'error', inputs: [] },
1402
1776
  { name: 'CannotChangeWithinBlock', type: 'error', inputs: [] },
1403
- { name: 'CannotChangeWithPendingFees', type: 'error', inputs: [] },
1404
- { name: 'TokenPolicyForbids', type: 'error', inputs: [] },
1405
1777
  ] as const
1406
1778
 
1407
1779
  export const feeAmm = [
@@ -1641,6 +2013,57 @@ export const accountKeychain = [
1641
2013
  ],
1642
2014
  outputs: [],
1643
2015
  },
2016
+ {
2017
+ name: 'authorizeKey',
2018
+ type: 'function',
2019
+ stateMutability: 'nonpayable',
2020
+ inputs: [
2021
+ { type: 'address', name: 'keyId' },
2022
+ { type: 'uint8', name: 'signatureType' },
2023
+ {
2024
+ type: 'tuple',
2025
+ name: 'config',
2026
+ components: [
2027
+ { type: 'uint64', name: 'expiry' },
2028
+ { type: 'bool', name: 'enforceLimits' },
2029
+ {
2030
+ type: 'tuple[]',
2031
+ name: 'limits',
2032
+ components: [
2033
+ { type: 'address', name: 'token' },
2034
+ { type: 'uint256', name: 'amount' },
2035
+ { type: 'uint64', name: 'period' },
2036
+ ],
2037
+ },
2038
+ { type: 'bool', name: 'allowAnyCalls' },
2039
+ {
2040
+ type: 'tuple[]',
2041
+ name: 'allowedCalls',
2042
+ components: [
2043
+ { type: 'address', name: 'target' },
2044
+ {
2045
+ type: 'tuple[]',
2046
+ name: 'selectorRules',
2047
+ components: [
2048
+ { type: 'bytes4', name: 'selector' },
2049
+ { type: 'address[]', name: 'recipients' },
2050
+ ],
2051
+ },
2052
+ ],
2053
+ },
2054
+ ],
2055
+ },
2056
+ { type: 'bytes32', name: 'witness' },
2057
+ ],
2058
+ outputs: [],
2059
+ },
2060
+ {
2061
+ name: 'burnKeyAuthorizationWitness',
2062
+ type: 'function',
2063
+ stateMutability: 'nonpayable',
2064
+ inputs: [{ type: 'bytes32', name: 'witness' }],
2065
+ outputs: [],
2066
+ },
1644
2067
  {
1645
2068
  name: 'revokeKey',
1646
2069
  type: 'function',
@@ -1766,6 +2189,16 @@ export const accountKeychain = [
1766
2189
  },
1767
2190
  ],
1768
2191
  },
2192
+ {
2193
+ name: 'isKeyAuthorizationWitnessBurned',
2194
+ type: 'function',
2195
+ stateMutability: 'view',
2196
+ inputs: [
2197
+ { type: 'address', name: 'account' },
2198
+ { type: 'bytes32', name: 'witness' },
2199
+ ],
2200
+ outputs: [{ type: 'bool' }],
2201
+ },
1769
2202
  {
1770
2203
  name: 'getTransactionKey',
1771
2204
  type: 'function',
@@ -1812,6 +2245,22 @@ export const accountKeychain = [
1812
2245
  { type: 'uint256', name: 'remainingLimit' },
1813
2246
  ],
1814
2247
  },
2248
+ {
2249
+ name: 'KeyAuthorizationWitness',
2250
+ type: 'event',
2251
+ inputs: [
2252
+ { type: 'address', name: 'account', indexed: true },
2253
+ { type: 'bytes32', name: 'witness', indexed: true },
2254
+ ],
2255
+ },
2256
+ {
2257
+ name: 'KeyAuthorizationWitnessBurned',
2258
+ type: 'event',
2259
+ inputs: [
2260
+ { type: 'address', name: 'account', indexed: true },
2261
+ { type: 'bytes32', name: 'witness', indexed: true },
2262
+ ],
2263
+ },
1815
2264
  { name: 'UnauthorizedCaller', type: 'error', inputs: [] },
1816
2265
  { name: 'KeyAlreadyExists', type: 'error', inputs: [] },
1817
2266
  { name: 'KeyNotFound', type: 'error', inputs: [] },
@@ -1832,6 +2281,8 @@ export const accountKeychain = [
1832
2281
  },
1833
2282
  { name: 'CallNotAllowed', type: 'error', inputs: [] },
1834
2283
  { name: 'InvalidCallScope', type: 'error', inputs: [] },
2284
+ { name: 'InvalidKeyAuthorizationWitness', type: 'error', inputs: [] },
2285
+ { name: 'KeyAuthorizationWitnessAlreadyBurned', type: 'error', inputs: [] },
1835
2286
  {
1836
2287
  name: 'LegacyAuthorizeKeySelectorChanged',
1837
2288
  type: 'error',
@@ -1882,6 +2333,21 @@ export const tip20Factory = [
1882
2333
  ],
1883
2334
  outputs: [{ type: 'address' }],
1884
2335
  },
2336
+ {
2337
+ name: 'createToken',
2338
+ type: 'function',
2339
+ stateMutability: 'nonpayable',
2340
+ inputs: [
2341
+ { type: 'string', name: 'name' },
2342
+ { type: 'string', name: 'symbol' },
2343
+ { type: 'string', name: 'currency' },
2344
+ { type: 'address', name: 'quoteToken' },
2345
+ { type: 'address', name: 'admin' },
2346
+ { type: 'bytes32', name: 'salt' },
2347
+ { type: 'string', name: 'logoURI' },
2348
+ ],
2349
+ outputs: [{ type: 'address' }],
2350
+ },
1885
2351
  {
1886
2352
  name: 'isTIP20',
1887
2353
  type: 'function',
@@ -1892,7 +2358,7 @@ export const tip20Factory = [
1892
2358
  {
1893
2359
  name: 'getTokenAddress',
1894
2360
  type: 'function',
1895
- stateMutability: 'view',
2361
+ stateMutability: 'pure',
1896
2362
  inputs: [
1897
2363
  { type: 'address', name: 'sender' },
1898
2364
  { type: 'bytes32', name: 'salt' },
@@ -2271,6 +2737,7 @@ export const validatorConfig = [
2271
2737
  ] as const
2272
2738
 
2273
2739
  export const abis = [
2740
+ ...tip20ChannelReserve,
2274
2741
  ...tip20,
2275
2742
  ...validatorConfigV2,
2276
2743
  ...signatureVerifier,