@wireio/stake 0.4.3 → 0.5.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 (123) hide show
  1. package/lib/stake.browser.js +12682 -6721
  2. package/lib/stake.browser.js.map +1 -1
  3. package/lib/stake.d.ts +158 -13
  4. package/lib/stake.js +12356 -6388
  5. package/lib/stake.js.map +1 -1
  6. package/lib/stake.m.js +12682 -6721
  7. package/lib/stake.m.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/assets/ethereum/ABI/common/Base58.sol/Base58.dbg.json +4 -0
  10. package/src/assets/ethereum/ABI/common/Base58.sol/Base58.json +164 -0
  11. package/src/assets/ethereum/ABI/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +4 -0
  12. package/src/assets/ethereum/ABI/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.json +76 -0
  13. package/src/assets/ethereum/ABI/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +4 -0
  14. package/src/assets/ethereum/ABI/common/RestrictedCallers.sol/RestrictedCallers.json +10 -0
  15. package/src/assets/ethereum/ABI/common/iodata.sol/iodata.dbg.json +4 -0
  16. package/src/assets/ethereum/ABI/common/iodata.sol/iodata.json +618 -0
  17. package/src/assets/ethereum/ABI/common/iodata_util.sol/iodata_util.dbg.json +4 -0
  18. package/src/assets/ethereum/ABI/common/iodata_util.sol/iodata_util.json +40 -0
  19. package/src/assets/ethereum/ABI/common/sysio_data.sol/sysio_data.dbg.json +4 -0
  20. package/src/assets/ethereum/ABI/common/sysio_data.sol/sysio_data.json +10 -0
  21. package/src/assets/ethereum/ABI/common/sysio_errors.sol/sysio_errors.dbg.json +4 -0
  22. package/src/assets/ethereum/ABI/common/sysio_errors.sol/sysio_errors.json +10 -0
  23. package/src/assets/ethereum/ABI/common/sysio_merkle.sol/sysio_merkle.dbg.json +4 -0
  24. package/src/assets/ethereum/ABI/common/sysio_merkle.sol/sysio_merkle.json +233 -0
  25. package/src/assets/ethereum/ABI/common/sysio_name.sol/sysio_name.dbg.json +4 -0
  26. package/src/assets/ethereum/ABI/common/sysio_name.sol/sysio_name.json +49 -0
  27. package/src/assets/ethereum/ABI/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +4 -0
  28. package/src/assets/ethereum/ABI/common/sysio_pubkey.sol/sysio_pubkey.json +64 -0
  29. package/src/assets/ethereum/ABI/common/sysio_read.sol/sysio_read.dbg.json +4 -0
  30. package/src/assets/ethereum/ABI/common/sysio_read.sol/sysio_read.json +1458 -0
  31. package/src/assets/ethereum/ABI/common/sysio_tester.sol/SysioTester.dbg.json +4 -0
  32. package/src/assets/ethereum/ABI/common/sysio_tester.sol/SysioTester.json +1532 -0
  33. package/src/assets/ethereum/ABI/common/sysio_verify.sol/sysio_verify.dbg.json +4 -0
  34. package/src/assets/ethereum/ABI/common/sysio_verify.sol/sysio_verify.json +1525 -0
  35. package/src/assets/ethereum/ABI/common/sysio_write.sol/sysio_write.dbg.json +4 -0
  36. package/src/assets/ethereum/ABI/common/sysio_write.sol/sysio_write.json +1076 -0
  37. package/src/assets/ethereum/ABI/liqEth/BeaconState.sol/BeaconState.dbg.json +1 -1
  38. package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.dbg.json +1 -1
  39. package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.json +28 -2
  40. package/src/assets/ethereum/ABI/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +1 -1
  41. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
  42. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
  43. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
  44. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +1 -1
  45. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
  46. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +1 -1
  47. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
  48. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
  49. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
  50. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
  51. package/src/assets/ethereum/ABI/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +1 -1
  52. package/src/assets/ethereum/ABI/liqEth/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +1 -1
  53. package/src/assets/ethereum/ABI/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +1 -1
  54. package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.dbg.json +1 -1
  55. package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.json +2 -2
  56. package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.dbg.json +1 -1
  57. package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.json +2 -15
  58. package/src/assets/ethereum/ABI/liqEth/liqEth.sol/LiqEthToken.dbg.json +1 -1
  59. package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.dbg.json +1 -1
  60. package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.json +6 -25
  61. package/src/assets/ethereum/ABI/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +1 -1
  62. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +1 -1
  63. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.json +2 -2
  64. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +1 -1
  65. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.json +6 -25
  66. package/src/assets/ethereum/ABI/outpost/BAR.sol/BAR.dbg.json +1 -1
  67. package/src/assets/ethereum/ABI/outpost/Depositor.sol/Depositor.dbg.json +1 -1
  68. package/src/assets/ethereum/ABI/outpost/Depositor.sol/Depositor.json +26 -26
  69. package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +1 -1
  70. package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +1 -1
  71. package/src/assets/ethereum/ABI/outpost/OPP.sol/OPP.dbg.json +1 -1
  72. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPP.dbg.json +1 -1
  73. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +1 -1
  74. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPInbound.dbg.json +1 -1
  75. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +1 -1
  76. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPSender.dbg.json +1 -1
  77. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/OPPCommon.dbg.json +1 -1
  78. package/src/assets/ethereum/ABI/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +1 -1
  79. package/src/assets/ethereum/ABI/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +1 -1
  80. package/src/assets/ethereum/ABI/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +1 -1
  81. package/src/assets/ethereum/ABI/outpost/OPPErrors.sol/OPPErrors.dbg.json +1 -1
  82. package/src/assets/ethereum/ABI/outpost/OPPInbound.sol/OPPInbound.dbg.json +1 -1
  83. package/src/assets/ethereum/ABI/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +1 -1
  84. package/src/assets/ethereum/ABI/outpost/OPPSender.sol/OPPSender.dbg.json +1 -1
  85. package/src/assets/ethereum/ABI/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +1 -1
  86. package/src/assets/ethereum/ABI/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +1 -1
  87. package/src/assets/ethereum/ABI/outpost/OutpostManager.sol/OutpostManager.dbg.json +1 -1
  88. package/src/assets/ethereum/ABI/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +1 -1
  89. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +1 -1
  90. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +1 -1
  91. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +1 -1
  92. package/src/assets/ethereum/ABI/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +1 -1
  93. package/src/assets/ethereum/ABI/outpost/Pool.sol/Pool.dbg.json +1 -1
  94. package/src/assets/ethereum/ABI/outpost/Pool.sol/Pool.json +2 -2
  95. package/src/assets/ethereum/ABI/outpost/Pretoken.sol/Pretoken.dbg.json +1 -1
  96. package/src/assets/ethereum/ABI/outpost/Pretoken.sol/Pretoken.json +9 -9
  97. package/src/assets/ethereum/ABI/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +1 -1
  98. package/src/assets/ethereum/ABI/outpost/interfaces/IPretoken.sol/IPretoken.dbg.json +1 -1
  99. package/src/assets/ethereum/ABI/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +1 -1
  100. package/src/assets/ethereum/ABI/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +1 -1
  101. package/src/assets/ethereum/ABI/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +1 -1
  102. package/src/networks/ethereum/clients/convert.client.ts +2 -2
  103. package/src/networks/ethereum/clients/pretoken.client.ts +6 -4
  104. package/src/networks/ethereum/clients/stake.client.ts +2 -2
  105. package/src/networks/ethereum/contract.ts +102 -49
  106. package/src/networks/ethereum/ethereum.ts +64 -52
  107. package/src/networks/ethereum/types.ts +26 -17
  108. package/src/networks/ethereum/utils.ts +8 -8
  109. package/src/networks/solana/clients/distribution.client.ts +36 -1
  110. package/src/networks/solana/solana.ts +131 -7
  111. package/src/networks/solana/types.ts +129 -0
  112. package/src/types.ts +6 -2
  113. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/BeaconRoots.dbg.json +0 -4
  114. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/BeaconRoots.json +0 -10
  115. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZ.dbg.json +0 -4
  116. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZ.json +0 -10
  117. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZExtras.dbg.json +0 -4
  118. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZExtras.json +0 -10
  119. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZVec48.dbg.json +0 -4
  120. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZVec48.json +0 -10
  121. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/ValidatorBalanceVerifier.dbg.json +0 -4
  122. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/ValidatorBalanceVerifier.json +0 -291
  123. package/src/assets/ethereum/ABI/outpost/Aggregator.sol/Aggregator.json +0 -82
@@ -0,0 +1,618 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "iodata",
4
+ "sourceName": "contracts/common/iodata.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "bytes",
12
+ "name": "data",
13
+ "type": "bytes"
14
+ }
15
+ ],
16
+ "internalType": "struct iodata.Buffer",
17
+ "name": "a",
18
+ "type": "tuple"
19
+ },
20
+ {
21
+ "internalType": "bytes",
22
+ "name": "b",
23
+ "type": "bytes"
24
+ }
25
+ ],
26
+ "name": "appendBytes",
27
+ "outputs": [
28
+ {
29
+ "components": [
30
+ {
31
+ "internalType": "bytes",
32
+ "name": "data",
33
+ "type": "bytes"
34
+ }
35
+ ],
36
+ "internalType": "struct iodata.Buffer",
37
+ "name": "out",
38
+ "type": "tuple"
39
+ }
40
+ ],
41
+ "stateMutability": "pure",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "components": [
48
+ {
49
+ "internalType": "bytes",
50
+ "name": "data",
51
+ "type": "bytes"
52
+ }
53
+ ],
54
+ "internalType": "struct iodata.Buffer",
55
+ "name": "a",
56
+ "type": "tuple"
57
+ },
58
+ {
59
+ "internalType": "bytes32",
60
+ "name": "b",
61
+ "type": "bytes32"
62
+ }
63
+ ],
64
+ "name": "appendBytes32",
65
+ "outputs": [
66
+ {
67
+ "components": [
68
+ {
69
+ "internalType": "bytes",
70
+ "name": "data",
71
+ "type": "bytes"
72
+ }
73
+ ],
74
+ "internalType": "struct iodata.Buffer",
75
+ "name": "out",
76
+ "type": "tuple"
77
+ }
78
+ ],
79
+ "stateMutability": "pure",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "components": [
86
+ {
87
+ "internalType": "bytes",
88
+ "name": "data",
89
+ "type": "bytes"
90
+ }
91
+ ],
92
+ "internalType": "struct iodata.Buffer",
93
+ "name": "a",
94
+ "type": "tuple"
95
+ },
96
+ {
97
+ "internalType": "uint256",
98
+ "name": "n",
99
+ "type": "uint256"
100
+ },
101
+ {
102
+ "internalType": "uint256",
103
+ "name": "value",
104
+ "type": "uint256"
105
+ }
106
+ ],
107
+ "name": "appendLowBytes",
108
+ "outputs": [
109
+ {
110
+ "components": [
111
+ {
112
+ "internalType": "bytes",
113
+ "name": "data",
114
+ "type": "bytes"
115
+ }
116
+ ],
117
+ "internalType": "struct iodata.Buffer",
118
+ "name": "out",
119
+ "type": "tuple"
120
+ }
121
+ ],
122
+ "stateMutability": "pure",
123
+ "type": "function"
124
+ },
125
+ {
126
+ "inputs": [
127
+ {
128
+ "components": [
129
+ {
130
+ "internalType": "bytes",
131
+ "name": "data",
132
+ "type": "bytes"
133
+ }
134
+ ],
135
+ "internalType": "struct iodata.Buffer",
136
+ "name": "a",
137
+ "type": "tuple"
138
+ },
139
+ {
140
+ "internalType": "uint8",
141
+ "name": "b",
142
+ "type": "uint8"
143
+ }
144
+ ],
145
+ "name": "appendUint8",
146
+ "outputs": [
147
+ {
148
+ "components": [
149
+ {
150
+ "internalType": "bytes",
151
+ "name": "data",
152
+ "type": "bytes"
153
+ }
154
+ ],
155
+ "internalType": "struct iodata.Buffer",
156
+ "name": "out",
157
+ "type": "tuple"
158
+ }
159
+ ],
160
+ "stateMutability": "pure",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [
165
+ {
166
+ "components": [
167
+ {
168
+ "internalType": "bytes",
169
+ "name": "data",
170
+ "type": "bytes"
171
+ }
172
+ ],
173
+ "internalType": "struct iodata.Buffer",
174
+ "name": "buf",
175
+ "type": "tuple"
176
+ }
177
+ ],
178
+ "name": "bufferLen",
179
+ "outputs": [
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "",
183
+ "type": "uint256"
184
+ }
185
+ ],
186
+ "stateMutability": "pure",
187
+ "type": "function"
188
+ },
189
+ {
190
+ "inputs": [
191
+ {
192
+ "components": [
193
+ {
194
+ "internalType": "bytes",
195
+ "name": "data",
196
+ "type": "bytes"
197
+ }
198
+ ],
199
+ "internalType": "struct iodata.Buffer",
200
+ "name": "a",
201
+ "type": "tuple"
202
+ },
203
+ {
204
+ "components": [
205
+ {
206
+ "internalType": "uint32",
207
+ "name": "length",
208
+ "type": "uint32"
209
+ },
210
+ {
211
+ "internalType": "uint32",
212
+ "name": "offset",
213
+ "type": "uint32"
214
+ },
215
+ {
216
+ "components": [
217
+ {
218
+ "internalType": "bytes",
219
+ "name": "data",
220
+ "type": "bytes"
221
+ }
222
+ ],
223
+ "internalType": "struct iodata.Buffer",
224
+ "name": "data",
225
+ "type": "tuple"
226
+ }
227
+ ],
228
+ "internalType": "struct DataRef",
229
+ "name": "b",
230
+ "type": "tuple"
231
+ }
232
+ ],
233
+ "name": "concat",
234
+ "outputs": [
235
+ {
236
+ "components": [
237
+ {
238
+ "internalType": "bytes",
239
+ "name": "data",
240
+ "type": "bytes"
241
+ }
242
+ ],
243
+ "internalType": "struct iodata.Buffer",
244
+ "name": "",
245
+ "type": "tuple"
246
+ }
247
+ ],
248
+ "stateMutability": "pure",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "components": [
255
+ {
256
+ "internalType": "bytes",
257
+ "name": "data",
258
+ "type": "bytes"
259
+ }
260
+ ],
261
+ "internalType": "struct iodata.Buffer",
262
+ "name": "a",
263
+ "type": "tuple"
264
+ },
265
+ {
266
+ "components": [
267
+ {
268
+ "internalType": "bytes",
269
+ "name": "data",
270
+ "type": "bytes"
271
+ }
272
+ ],
273
+ "internalType": "struct iodata.Buffer",
274
+ "name": "b",
275
+ "type": "tuple"
276
+ }
277
+ ],
278
+ "name": "concat",
279
+ "outputs": [
280
+ {
281
+ "components": [
282
+ {
283
+ "internalType": "bytes",
284
+ "name": "data",
285
+ "type": "bytes"
286
+ }
287
+ ],
288
+ "internalType": "struct iodata.Buffer",
289
+ "name": "",
290
+ "type": "tuple"
291
+ }
292
+ ],
293
+ "stateMutability": "pure",
294
+ "type": "function"
295
+ },
296
+ {
297
+ "inputs": [
298
+ {
299
+ "internalType": "bytes",
300
+ "name": "input",
301
+ "type": "bytes"
302
+ },
303
+ {
304
+ "components": [
305
+ {
306
+ "internalType": "uint32",
307
+ "name": "length",
308
+ "type": "uint32"
309
+ },
310
+ {
311
+ "internalType": "uint32",
312
+ "name": "offset",
313
+ "type": "uint32"
314
+ },
315
+ {
316
+ "components": [
317
+ {
318
+ "internalType": "bytes",
319
+ "name": "data",
320
+ "type": "bytes"
321
+ }
322
+ ],
323
+ "internalType": "struct iodata.Buffer",
324
+ "name": "data",
325
+ "type": "tuple"
326
+ }
327
+ ],
328
+ "internalType": "struct DataRef",
329
+ "name": "ref",
330
+ "type": "tuple"
331
+ }
332
+ ],
333
+ "name": "getBytes",
334
+ "outputs": [
335
+ {
336
+ "internalType": "bytes",
337
+ "name": "",
338
+ "type": "bytes"
339
+ }
340
+ ],
341
+ "stateMutability": "pure",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "inputs": [
346
+ {
347
+ "components": [
348
+ {
349
+ "internalType": "bytes",
350
+ "name": "data",
351
+ "type": "bytes"
352
+ }
353
+ ],
354
+ "internalType": "struct iodata.Buffer",
355
+ "name": "a",
356
+ "type": "tuple"
357
+ }
358
+ ],
359
+ "name": "getBytes",
360
+ "outputs": [
361
+ {
362
+ "internalType": "bytes",
363
+ "name": "",
364
+ "type": "bytes"
365
+ }
366
+ ],
367
+ "stateMutability": "pure",
368
+ "type": "function"
369
+ },
370
+ {
371
+ "inputs": [
372
+ {
373
+ "components": [
374
+ {
375
+ "internalType": "bytes",
376
+ "name": "data",
377
+ "type": "bytes"
378
+ }
379
+ ],
380
+ "internalType": "struct iodata.Buffer",
381
+ "name": "a",
382
+ "type": "tuple"
383
+ }
384
+ ],
385
+ "name": "keccak256Buffer",
386
+ "outputs": [
387
+ {
388
+ "internalType": "bytes32",
389
+ "name": "",
390
+ "type": "bytes32"
391
+ }
392
+ ],
393
+ "stateMutability": "pure",
394
+ "type": "function"
395
+ },
396
+ {
397
+ "inputs": [
398
+ {
399
+ "internalType": "bytes",
400
+ "name": "data",
401
+ "type": "bytes"
402
+ }
403
+ ],
404
+ "name": "newBuffer",
405
+ "outputs": [
406
+ {
407
+ "components": [
408
+ {
409
+ "internalType": "bytes",
410
+ "name": "data",
411
+ "type": "bytes"
412
+ }
413
+ ],
414
+ "internalType": "struct iodata.Buffer",
415
+ "name": "",
416
+ "type": "tuple"
417
+ }
418
+ ],
419
+ "stateMutability": "pure",
420
+ "type": "function"
421
+ },
422
+ {
423
+ "inputs": [],
424
+ "name": "newBuffer",
425
+ "outputs": [
426
+ {
427
+ "components": [
428
+ {
429
+ "internalType": "bytes",
430
+ "name": "data",
431
+ "type": "bytes"
432
+ }
433
+ ],
434
+ "internalType": "struct iodata.Buffer",
435
+ "name": "",
436
+ "type": "tuple"
437
+ }
438
+ ],
439
+ "stateMutability": "pure",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [
444
+ {
445
+ "internalType": "uint32",
446
+ "name": "length",
447
+ "type": "uint32"
448
+ },
449
+ {
450
+ "internalType": "uint32",
451
+ "name": "offset",
452
+ "type": "uint32"
453
+ }
454
+ ],
455
+ "name": "newDataRef",
456
+ "outputs": [
457
+ {
458
+ "components": [
459
+ {
460
+ "internalType": "uint32",
461
+ "name": "length",
462
+ "type": "uint32"
463
+ },
464
+ {
465
+ "internalType": "uint32",
466
+ "name": "offset",
467
+ "type": "uint32"
468
+ },
469
+ {
470
+ "components": [
471
+ {
472
+ "internalType": "bytes",
473
+ "name": "data",
474
+ "type": "bytes"
475
+ }
476
+ ],
477
+ "internalType": "struct iodata.Buffer",
478
+ "name": "data",
479
+ "type": "tuple"
480
+ }
481
+ ],
482
+ "internalType": "struct DataRef",
483
+ "name": "",
484
+ "type": "tuple"
485
+ }
486
+ ],
487
+ "stateMutability": "pure",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [],
492
+ "name": "newDataRef",
493
+ "outputs": [
494
+ {
495
+ "components": [
496
+ {
497
+ "internalType": "uint32",
498
+ "name": "length",
499
+ "type": "uint32"
500
+ },
501
+ {
502
+ "internalType": "uint32",
503
+ "name": "offset",
504
+ "type": "uint32"
505
+ },
506
+ {
507
+ "components": [
508
+ {
509
+ "internalType": "bytes",
510
+ "name": "data",
511
+ "type": "bytes"
512
+ }
513
+ ],
514
+ "internalType": "struct iodata.Buffer",
515
+ "name": "data",
516
+ "type": "tuple"
517
+ }
518
+ ],
519
+ "internalType": "struct DataRef",
520
+ "name": "",
521
+ "type": "tuple"
522
+ }
523
+ ],
524
+ "stateMutability": "pure",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [
529
+ {
530
+ "internalType": "uint32",
531
+ "name": "length",
532
+ "type": "uint32"
533
+ },
534
+ {
535
+ "internalType": "uint32",
536
+ "name": "offset",
537
+ "type": "uint32"
538
+ },
539
+ {
540
+ "components": [
541
+ {
542
+ "internalType": "bytes",
543
+ "name": "data",
544
+ "type": "bytes"
545
+ }
546
+ ],
547
+ "internalType": "struct iodata.Buffer",
548
+ "name": "data",
549
+ "type": "tuple"
550
+ }
551
+ ],
552
+ "name": "newDataRef",
553
+ "outputs": [
554
+ {
555
+ "components": [
556
+ {
557
+ "internalType": "uint32",
558
+ "name": "length",
559
+ "type": "uint32"
560
+ },
561
+ {
562
+ "internalType": "uint32",
563
+ "name": "offset",
564
+ "type": "uint32"
565
+ },
566
+ {
567
+ "components": [
568
+ {
569
+ "internalType": "bytes",
570
+ "name": "data",
571
+ "type": "bytes"
572
+ }
573
+ ],
574
+ "internalType": "struct iodata.Buffer",
575
+ "name": "data",
576
+ "type": "tuple"
577
+ }
578
+ ],
579
+ "internalType": "struct DataRef",
580
+ "name": "",
581
+ "type": "tuple"
582
+ }
583
+ ],
584
+ "stateMutability": "pure",
585
+ "type": "function"
586
+ },
587
+ {
588
+ "inputs": [
589
+ {
590
+ "components": [
591
+ {
592
+ "internalType": "bytes",
593
+ "name": "data",
594
+ "type": "bytes"
595
+ }
596
+ ],
597
+ "internalType": "struct iodata.Buffer",
598
+ "name": "a",
599
+ "type": "tuple"
600
+ }
601
+ ],
602
+ "name": "sha256Buffer",
603
+ "outputs": [
604
+ {
605
+ "internalType": "bytes32",
606
+ "name": "",
607
+ "type": "bytes32"
608
+ }
609
+ ],
610
+ "stateMutability": "pure",
611
+ "type": "function"
612
+ }
613
+ ],
614
+ "bytecode": "0x60808060405234601957610b19908161001f823930815050f35b600080fdfe6040608081526004908136101561001557600080fd5b600090813560e01c80631173628e1461076b5780631553d3a31461060657806327e28fab1461059e57806329eaef171461055e5780637d877336146105135780638353c199146104b4578063939c9ff21461044d57806396aa28df146103e75780639971e6c1146103a35780639e6d8c721461036b578063a1220dfe14610327578063b9442b2214610304578063be927f6a14610255578063c6e6947a146101d4578063d3fad3dc146101505763e5297fe9146100d157600080fd5b606036600319011261014c576100e56108b6565b6100ed6108c9565b92604435906001600160401b0382116101495750610145946101119136910161087c565b9061011a610a51565b50825193610127856107d9565b63ffffffff80921685521660208401528183015251918291826109ae565b0390f35b80fd5b5080fd5b5082816003193601126101d0576001600160401b0381358181116101cc5761017b903690840161087c565b9360243591821161014957509261019b6101b3926101459536910161087c565b90606084516101a9816107a8565b5251905190610a80565b908051916101c0836107a8565b82525191829182610992565b8480fd5b8280fd5b508060031936011261014c576001600160401b0391833583811161014c576101ff903690860161087c565b9282519361020c856107a8565b60608552519083519260243560208501526020845284840191848310908311176102425761014586866101c08787878452610a80565b634e487b7160e01b815260418752602490fd5b50829060603660031901126101d05781356001600160401b03811161030057610281903690840161087c565b81519260248035926044359190610297876107a8565b60608752518652865b8481106102b4578551806101458982610992565b86518160031b828104600814831517156102ee57600192916102e69186901c60f81b6001600160f81b03191690610a11565b8852016102a0565b634e487b7160e01b8a5260118652838afd5b8380fd5b508160031936011261014c576101459061031c610ac1565b905191829182610992565b50906020366003190112610149578235906001600160401b0382116101495750610145926103579136910161087c565b51905191829160208352602083019061096d565b50906020366003190112610149578235906001600160401b038211610149575060209261039a9136910161087c565b51519051908152f35b508160031936011261014c5790610145916103bc610a51565b506103c5610ac1565b8151926103d1846107d9565b80845260208401528183015251918291826109ae565b5082816003193601126101d0576001600160401b0381358181116101cc57610412903690840161087c565b93602435918211610149575092826104336101b393610145963691016108ed565b9160608251610441816107a8565b52519101515190610a80565b508260203660031901126101d057828135916001600160401b03831161014c5761047f6104929160209436910161087c565b518385519282848094519384920161094a565b8101039060025afa156104aa57602091519051908152f35b51903d90823e3d90fd5b508060031936011261014c576001600160401b038335818111610300576104de903690860161087c565b9260243591821161014957506104fd610145946101c092369101610830565b825193610509856107a8565b6060855251610a80565b50906020366003190112610149578235906001600160401b03821161014957506101459261054391369101610830565b9060608151610551816107a8565b528051916101c0836107a8565b508060031936011261014c57610145906105766108b6565b9061057f6108c9565b91610588610a51565b50610591610ac1565b90825193610127856107d9565b5082816003193601126101d0578035906001600160401b038211610300576105c89136910161087c565b906024359260ff8416840361014957506101c0610145938251936105eb856107a8565b606085525160f89190911b6001600160f81b03191690610a11565b508083916003193601126101d0576001600160401b039180358381116101cc576106339036908301610830565b906024936024359081116107675761064e90369083016108ed565b93602080860163ffffffff918282511683895116018381116107545783875191161161071357828851169661068288610815565b9761068f8251998a6107f4565b80895261069e601f1991610815565b0136838a0137895b848a511681101561070157848451168181018091116106ef5785916001916001600160f81b0319906106d8908c6109ea565b51168d1a6106e6828d6109ea565b530190506106a6565b634e487b7160e01b8c5260118852868cfd5b8151838152806101458186018c61096d565b848160649289519262461bcd60e51b845283015260248201527f496e76616c6964207265666572656e63652c206f7574206f6620626f756e64736044820152fd5b634e487b7160e01b8a526011865260248afd5b8580fd5b50906020366003190112610149578235906001600160401b038211610149575060209261079a9136910161087c565b518281519101209051908152f35b602081019081106001600160401b038211176107c357604052565b634e487b7160e01b600052604160045260246000fd5b606081019081106001600160401b038211176107c357604052565b90601f801991011681019081106001600160401b038211176107c357604052565b6001600160401b0381116107c357601f01601f191660200190565b81601f820112156108775780359061084782610815565b9261085560405194856107f4565b8284526020838301011161087757816000926020809301838601378301015290565b600080fd5b9190916020818403126108775760405190610896826107a8565b819381356001600160401b038111610877576108b29201610830565b9052565b6004359063ffffffff8216820361087757565b6024359063ffffffff8216820361087757565b359063ffffffff8216820361087757565b91906060838203126108775760405190610906826107d9565b8193610911816108dc565b835261091f602082016108dc565b60208401526040810135916001600160401b03831161087757604092610945920161087c565b910152565b60005b83811061095d5750506000910152565b818101518382015260200161094d565b906020916109868151809281855285808601910161094a565b601f01601f1916010190565b60406109ab92602083525191602080820152019061096d565b90565b60a060406109ab936020845263ffffffff808251166020860152602082015116828501520151606080840152519160206080820152019061096d565b9081518110156109fb570160200190565b634e487b7160e01b600052603260045260246000fd5b6021610a4f919392936040519481610a3387935180926020808701910161094a565b82019060ff60f81b1660208201520360018101855201836107f4565b565b60405190610a5e826107d9565b8160008152600060208201526040805191610a78836107a8565b606083520152565b6020610a4f919392936040519481610aa1879351809286808701910161094a565b8201610ab58251809386808501910161094a565b010380855201836107f4565b6060604051610acf816107a8565b52604051610adc816107a8565b606081529056fea2646970667358221220a0aaeedfbe11ef95a174a947293072ae04605dfaf20d05726a8fd9bb353d2dc664736f6c63430008190033",
615
+ "deployedBytecode": "0x6040608081526004908136101561001557600080fd5b600090813560e01c80631173628e1461076b5780631553d3a31461060657806327e28fab1461059e57806329eaef171461055e5780637d877336146105135780638353c199146104b4578063939c9ff21461044d57806396aa28df146103e75780639971e6c1146103a35780639e6d8c721461036b578063a1220dfe14610327578063b9442b2214610304578063be927f6a14610255578063c6e6947a146101d4578063d3fad3dc146101505763e5297fe9146100d157600080fd5b606036600319011261014c576100e56108b6565b6100ed6108c9565b92604435906001600160401b0382116101495750610145946101119136910161087c565b9061011a610a51565b50825193610127856107d9565b63ffffffff80921685521660208401528183015251918291826109ae565b0390f35b80fd5b5080fd5b5082816003193601126101d0576001600160401b0381358181116101cc5761017b903690840161087c565b9360243591821161014957509261019b6101b3926101459536910161087c565b90606084516101a9816107a8565b5251905190610a80565b908051916101c0836107a8565b82525191829182610992565b8480fd5b8280fd5b508060031936011261014c576001600160401b0391833583811161014c576101ff903690860161087c565b9282519361020c856107a8565b60608552519083519260243560208501526020845284840191848310908311176102425761014586866101c08787878452610a80565b634e487b7160e01b815260418752602490fd5b50829060603660031901126101d05781356001600160401b03811161030057610281903690840161087c565b81519260248035926044359190610297876107a8565b60608752518652865b8481106102b4578551806101458982610992565b86518160031b828104600814831517156102ee57600192916102e69186901c60f81b6001600160f81b03191690610a11565b8852016102a0565b634e487b7160e01b8a5260118652838afd5b8380fd5b508160031936011261014c576101459061031c610ac1565b905191829182610992565b50906020366003190112610149578235906001600160401b0382116101495750610145926103579136910161087c565b51905191829160208352602083019061096d565b50906020366003190112610149578235906001600160401b038211610149575060209261039a9136910161087c565b51519051908152f35b508160031936011261014c5790610145916103bc610a51565b506103c5610ac1565b8151926103d1846107d9565b80845260208401528183015251918291826109ae565b5082816003193601126101d0576001600160401b0381358181116101cc57610412903690840161087c565b93602435918211610149575092826104336101b393610145963691016108ed565b9160608251610441816107a8565b52519101515190610a80565b508260203660031901126101d057828135916001600160401b03831161014c5761047f6104929160209436910161087c565b518385519282848094519384920161094a565b8101039060025afa156104aa57602091519051908152f35b51903d90823e3d90fd5b508060031936011261014c576001600160401b038335818111610300576104de903690860161087c565b9260243591821161014957506104fd610145946101c092369101610830565b825193610509856107a8565b6060855251610a80565b50906020366003190112610149578235906001600160401b03821161014957506101459261054391369101610830565b9060608151610551816107a8565b528051916101c0836107a8565b508060031936011261014c57610145906105766108b6565b9061057f6108c9565b91610588610a51565b50610591610ac1565b90825193610127856107d9565b5082816003193601126101d0578035906001600160401b038211610300576105c89136910161087c565b906024359260ff8416840361014957506101c0610145938251936105eb856107a8565b606085525160f89190911b6001600160f81b03191690610a11565b508083916003193601126101d0576001600160401b039180358381116101cc576106339036908301610830565b906024936024359081116107675761064e90369083016108ed565b93602080860163ffffffff918282511683895116018381116107545783875191161161071357828851169661068288610815565b9761068f8251998a6107f4565b80895261069e601f1991610815565b0136838a0137895b848a511681101561070157848451168181018091116106ef5785916001916001600160f81b0319906106d8908c6109ea565b51168d1a6106e6828d6109ea565b530190506106a6565b634e487b7160e01b8c5260118852868cfd5b8151838152806101458186018c61096d565b848160649289519262461bcd60e51b845283015260248201527f496e76616c6964207265666572656e63652c206f7574206f6620626f756e64736044820152fd5b634e487b7160e01b8a526011865260248afd5b8580fd5b50906020366003190112610149578235906001600160401b038211610149575060209261079a9136910161087c565b518281519101209051908152f35b602081019081106001600160401b038211176107c357604052565b634e487b7160e01b600052604160045260246000fd5b606081019081106001600160401b038211176107c357604052565b90601f801991011681019081106001600160401b038211176107c357604052565b6001600160401b0381116107c357601f01601f191660200190565b81601f820112156108775780359061084782610815565b9261085560405194856107f4565b8284526020838301011161087757816000926020809301838601378301015290565b600080fd5b9190916020818403126108775760405190610896826107a8565b819381356001600160401b038111610877576108b29201610830565b9052565b6004359063ffffffff8216820361087757565b6024359063ffffffff8216820361087757565b359063ffffffff8216820361087757565b91906060838203126108775760405190610906826107d9565b8193610911816108dc565b835261091f602082016108dc565b60208401526040810135916001600160401b03831161087757604092610945920161087c565b910152565b60005b83811061095d5750506000910152565b818101518382015260200161094d565b906020916109868151809281855285808601910161094a565b601f01601f1916010190565b60406109ab92602083525191602080820152019061096d565b90565b60a060406109ab936020845263ffffffff808251166020860152602082015116828501520151606080840152519160206080820152019061096d565b9081518110156109fb570160200190565b634e487b7160e01b600052603260045260246000fd5b6021610a4f919392936040519481610a3387935180926020808701910161094a565b82019060ff60f81b1660208201520360018101855201836107f4565b565b60405190610a5e826107d9565b8160008152600060208201526040805191610a78836107a8565b606083520152565b6020610a4f919392936040519481610aa1879351809286808701910161094a565b8201610ab58251809386808501910161094a565b010380855201836107f4565b6060604051610acf816107a8565b52604051610adc816107a8565b606081529056fea2646970667358221220a0aaeedfbe11ef95a174a947293072ae04605dfaf20d05726a8fd9bb353d2dc664736f6c63430008190033",
616
+ "linkReferences": {},
617
+ "deployedLinkReferences": {}
618
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/78c0f1fe267e3ac91162f6a43b842649.json"
4
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "iodata_util",
4
+ "sourceName": "contracts/common/iodata_util.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "bytes",
10
+ "name": "data",
11
+ "type": "bytes"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "start",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "end",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "name": "sliceBytes",
25
+ "outputs": [
26
+ {
27
+ "internalType": "bytes",
28
+ "name": "sliced",
29
+ "type": "bytes"
30
+ }
31
+ ],
32
+ "stateMutability": "pure",
33
+ "type": "function"
34
+ }
35
+ ],
36
+ "bytecode": "0x6080806040523460195761023a908161001f823930815050f35b600080fdfe60406080604052600436101561001457600080fd5b6000803560e01c639f0701421461002a57600080fd5b606036600319011261015f576004359167ffffffffffffffff831161015b573660238401121561015b5782600401359161006b6100668461019e565b610162565b92808452602094366024838301011161015757818394939260248893018388013785010152602435916044356100a184826101ba565b936100ba6100b16100668761019e565b9580875261019e565b601f199690870136878a0137815b83811061011b57505050506040519485938185528051938483870152835b85811061010557866040818a601f8a8a85828601015201168101030190f35b82810184015189820183015288965083016100e6565b60019060ff60f89a9697989a1b61013282856101dd565b511661014b61014186846101ba565b91891a918c6101dd565b530197959493976100c8565b8280fd5b5080fd5b80fd5b6040519190601f01601f1916820167ffffffffffffffff81118382101761018857604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff811161018857601f01601f191660200190565b919082039182116101c757565b634e487b7160e01b600052601160045260246000fd5b9081518110156101ee570160200190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220b20c3d7b94f73e80c8d2700de123903472f9706096a8c3858abc69c70c3178fc64736f6c63430008190033",
37
+ "deployedBytecode": "0x60406080604052600436101561001457600080fd5b6000803560e01c639f0701421461002a57600080fd5b606036600319011261015f576004359167ffffffffffffffff831161015b573660238401121561015b5782600401359161006b6100668461019e565b610162565b92808452602094366024838301011161015757818394939260248893018388013785010152602435916044356100a184826101ba565b936100ba6100b16100668761019e565b9580875261019e565b601f199690870136878a0137815b83811061011b57505050506040519485938185528051938483870152835b85811061010557866040818a601f8a8a85828601015201168101030190f35b82810184015189820183015288965083016100e6565b60019060ff60f89a9697989a1b61013282856101dd565b511661014b61014186846101ba565b91891a918c6101dd565b530197959493976100c8565b8280fd5b5080fd5b80fd5b6040519190601f01601f1916820167ffffffffffffffff81118382101761018857604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff811161018857601f01601f191660200190565b919082039182116101c757565b634e487b7160e01b600052601160045260246000fd5b9081518110156101ee570160200190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220b20c3d7b94f73e80c8d2700de123903472f9706096a8c3858abc69c70c3178fc64736f6c63430008190033",
38
+ "linkReferences": {},
39
+ "deployedLinkReferences": {}
40
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/78c0f1fe267e3ac91162f6a43b842649.json"
4
+ }