@matterlabs/zksync-js 0.0.11 → 0.0.13

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 (48) hide show
  1. package/README.md +13 -0
  2. package/dist/adapters/ethers/client.cjs +722 -4
  3. package/dist/adapters/ethers/client.cjs.map +1 -1
  4. package/dist/adapters/ethers/client.js +6 -6
  5. package/dist/adapters/ethers/index.cjs +774 -45
  6. package/dist/adapters/ethers/index.cjs.map +1 -1
  7. package/dist/adapters/ethers/index.js +9 -9
  8. package/dist/adapters/ethers/resources/deposits/services/gas.d.ts +4 -4
  9. package/dist/adapters/ethers/sdk.cjs +772 -41
  10. package/dist/adapters/ethers/sdk.cjs.map +1 -1
  11. package/dist/adapters/ethers/sdk.js +7 -7
  12. package/dist/adapters/viem/client.cjs +2 -4
  13. package/dist/adapters/viem/client.cjs.map +1 -1
  14. package/dist/adapters/viem/client.js +6 -6
  15. package/dist/adapters/viem/index.cjs +38 -33
  16. package/dist/adapters/viem/index.cjs.map +1 -1
  17. package/dist/adapters/viem/index.js +9 -9
  18. package/dist/adapters/viem/resources/deposits/services/gas.d.ts +4 -4
  19. package/dist/adapters/viem/sdk.cjs +36 -29
  20. package/dist/adapters/viem/sdk.cjs.map +1 -1
  21. package/dist/adapters/viem/sdk.js +7 -7
  22. package/dist/{chunk-EWBYKU4G.js → chunk-2RIARDXZ.js} +4 -4
  23. package/dist/{chunk-USXSAFYA.js → chunk-4S4XDA4N.js} +4 -6
  24. package/dist/{chunk-H3BPVVMN.js → chunk-53MC5BR2.js} +1 -1
  25. package/dist/{chunk-IQVH7YZT.js → chunk-5L6EYUJB.js} +2 -2
  26. package/dist/{chunk-QUI3J42E.js → chunk-5R7L5NM5.js} +2 -2
  27. package/dist/{chunk-ZVHFVUDE.js → chunk-E3KP7XCG.js} +1 -1
  28. package/dist/{chunk-CCUAGJ6K.js → chunk-EDWBCPO3.js} +40 -33
  29. package/dist/{chunk-6IT5PEEN.js → chunk-HI64OOAR.js} +1 -1
  30. package/dist/{chunk-TL26ZONW.js → chunk-JHO2UQ5F.js} +56 -45
  31. package/dist/{chunk-C3AGOEHR.js → chunk-QQ2OR434.js} +1 -1
  32. package/dist/{chunk-FXSFLZ6D.js → chunk-R5WRFPK2.js} +4 -4
  33. package/dist/{chunk-QFEYV4O3.js → chunk-RI73VJSH.js} +716 -2
  34. package/dist/{chunk-N4PR5SVB.js → chunk-UDBRUBEK.js} +10 -2
  35. package/dist/core/abi.d.ts +2 -0
  36. package/dist/core/constants.cjs +1 -1
  37. package/dist/core/constants.d.ts +1 -1
  38. package/dist/core/constants.js +1 -1
  39. package/dist/core/index.cjs +716 -4
  40. package/dist/core/index.cjs.map +1 -1
  41. package/dist/core/index.js +5 -5
  42. package/dist/core/internal/abis/IInteropErrors.d.ts +197 -0
  43. package/dist/core/internal/abis/IL1ContractErrors.d.ts +1021 -0
  44. package/dist/core/rpc/types.d.ts +1 -1
  45. package/dist/index.cjs +717 -5
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.js +5 -5
  48. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- export { pickDepositRoute } from '../chunk-6IT5PEEN.js';
2
- export { findL1MessageSentLog, isL1MessageSentLog, messengerLogIndex, pickWithdrawRoute } from '../chunk-ZVHFVUDE.js';
3
- export { makeTransportFromEthers, makeTransportFromViem, zks_exports as zksRpc } from '../chunk-USXSAFYA.js';
4
- export { abi_exports as abi, factory_exports as errors, formatEnvelopePretty, hexEq, isAddress, isAddressEq, isETH, isHash, isHash66, isHash66Array, isHashArray, normalizeAddrEq, normalizeL1Token } from '../chunk-QFEYV4O3.js';
5
- export { ETH_ADDRESS, FORMAL_ETH_ADDRESS, L1_MESSENGER_ADDRESS, L1_SOPH_TOKEN_ADDRESS, L2_ASSET_ROUTER_ADDRESS, L2_BASE_TOKEN_ADDRESS, L2_NATIVE_TOKEN_VAULT_ADDRESS } from '../chunk-C3AGOEHR.js';
1
+ export { pickDepositRoute } from '../chunk-HI64OOAR.js';
2
+ export { findL1MessageSentLog, isL1MessageSentLog, messengerLogIndex, pickWithdrawRoute } from '../chunk-E3KP7XCG.js';
3
+ export { makeTransportFromEthers, makeTransportFromViem, zks_exports as zksRpc } from '../chunk-4S4XDA4N.js';
4
+ export { abi_exports as abi, factory_exports as errors, formatEnvelopePretty, hexEq, isAddress, isAddressEq, isETH, isHash, isHash66, isHash66Array, isHashArray, normalizeAddrEq, normalizeL1Token } from '../chunk-RI73VJSH.js';
5
+ export { ETH_ADDRESS, FORMAL_ETH_ADDRESS, L1_MESSENGER_ADDRESS, L1_SOPH_TOKEN_ADDRESS, L2_ASSET_ROUTER_ADDRESS, L2_BASE_TOKEN_ADDRESS, L2_NATIVE_TOKEN_VAULT_ADDRESS } from '../chunk-QQ2OR434.js';
@@ -0,0 +1,197 @@
1
+ declare const IInteropErrorsABI: readonly [{
2
+ readonly type: "error";
3
+ readonly name: "AttributeAlreadySet";
4
+ readonly inputs: readonly [{
5
+ readonly name: "selector";
6
+ readonly type: "bytes4";
7
+ }];
8
+ }, {
9
+ readonly type: "error";
10
+ readonly name: "AttributeViolatesRestriction";
11
+ readonly inputs: readonly [{
12
+ readonly name: "selector";
13
+ readonly type: "bytes4";
14
+ }, {
15
+ readonly name: "restriction";
16
+ readonly type: "uint256";
17
+ }];
18
+ }, {
19
+ readonly type: "error";
20
+ readonly name: "BundleAlreadyProcessed";
21
+ readonly inputs: readonly [{
22
+ readonly name: "bundleHash";
23
+ readonly type: "bytes32";
24
+ }];
25
+ }, {
26
+ readonly type: "error";
27
+ readonly name: "CallAlreadyExecuted";
28
+ readonly inputs: readonly [{
29
+ readonly name: "bundleHash";
30
+ readonly type: "bytes32";
31
+ }, {
32
+ readonly name: "callIndex";
33
+ readonly type: "uint256";
34
+ }];
35
+ }, {
36
+ readonly type: "error";
37
+ readonly name: "CallNotExecutable";
38
+ readonly inputs: readonly [{
39
+ readonly name: "bundleHash";
40
+ readonly type: "bytes32";
41
+ }, {
42
+ readonly name: "callIndex";
43
+ readonly type: "uint256";
44
+ }];
45
+ }, {
46
+ readonly type: "error";
47
+ readonly name: "CanNotUnbundle";
48
+ readonly inputs: readonly [{
49
+ readonly name: "bundleHash";
50
+ readonly type: "bytes32";
51
+ }];
52
+ }, {
53
+ readonly type: "error";
54
+ readonly name: "DestinationChainNotRegistered";
55
+ readonly inputs: readonly [{
56
+ readonly name: "destinationChainId";
57
+ readonly type: "uint256";
58
+ }];
59
+ }, {
60
+ readonly type: "error";
61
+ readonly name: "ExecutingNotAllowed";
62
+ readonly inputs: readonly [{
63
+ readonly name: "bundleHash";
64
+ readonly type: "bytes32";
65
+ }, {
66
+ readonly name: "callerAddress";
67
+ readonly type: "bytes";
68
+ }, {
69
+ readonly name: "executionAddress";
70
+ readonly type: "bytes";
71
+ }];
72
+ }, {
73
+ readonly type: "error";
74
+ readonly name: "FeeWithdrawalFailed";
75
+ readonly inputs: readonly [];
76
+ }, {
77
+ readonly type: "error";
78
+ readonly name: "IndirectCallValueMismatch";
79
+ readonly inputs: readonly [{
80
+ readonly name: "expected";
81
+ readonly type: "uint256";
82
+ }, {
83
+ readonly name: "actual";
84
+ readonly type: "uint256";
85
+ }];
86
+ }, {
87
+ readonly type: "error";
88
+ readonly name: "InteroperableAddressChainReferenceNotEmpty";
89
+ readonly inputs: readonly [{
90
+ readonly name: "interoperableAddress";
91
+ readonly type: "bytes";
92
+ }];
93
+ }, {
94
+ readonly type: "error";
95
+ readonly name: "InteroperableAddressNotEmpty";
96
+ readonly inputs: readonly [{
97
+ readonly name: "interoperableAddress";
98
+ readonly type: "bytes";
99
+ }];
100
+ }, {
101
+ readonly type: "error";
102
+ readonly name: "InvalidInteropBundleVersion";
103
+ readonly inputs: readonly [];
104
+ }, {
105
+ readonly type: "error";
106
+ readonly name: "InvalidInteropCallVersion";
107
+ readonly inputs: readonly [];
108
+ }, {
109
+ readonly type: "error";
110
+ readonly name: "InteropRootAlreadyExists";
111
+ readonly inputs: readonly [];
112
+ }, {
113
+ readonly type: "error";
114
+ readonly name: "MessageNotIncluded";
115
+ readonly inputs: readonly [];
116
+ }, {
117
+ readonly type: "error";
118
+ readonly name: "SidesLengthNotOne";
119
+ readonly inputs: readonly [];
120
+ }, {
121
+ readonly type: "error";
122
+ readonly name: "UnauthorizedMessageSender";
123
+ readonly inputs: readonly [{
124
+ readonly name: "expected";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly name: "actual";
128
+ readonly type: "address";
129
+ }];
130
+ }, {
131
+ readonly type: "error";
132
+ readonly name: "UnbundlingNotAllowed";
133
+ readonly inputs: readonly [{
134
+ readonly name: "bundleHash";
135
+ readonly type: "bytes32";
136
+ }, {
137
+ readonly name: "callerAddress";
138
+ readonly type: "bytes";
139
+ }, {
140
+ readonly name: "unbundlerAddress";
141
+ readonly type: "bytes";
142
+ }];
143
+ }, {
144
+ readonly type: "error";
145
+ readonly name: "WrongCallStatusLength";
146
+ readonly inputs: readonly [{
147
+ readonly name: "bundleCallsLength";
148
+ readonly type: "uint256";
149
+ }, {
150
+ readonly name: "providedCallStatusLength";
151
+ readonly type: "uint256";
152
+ }];
153
+ }, {
154
+ readonly type: "error";
155
+ readonly name: "WrongDestinationChainId";
156
+ readonly inputs: readonly [{
157
+ readonly name: "bundleHash";
158
+ readonly type: "bytes32";
159
+ }, {
160
+ readonly name: "expected";
161
+ readonly type: "uint256";
162
+ }, {
163
+ readonly name: "actual";
164
+ readonly type: "uint256";
165
+ }];
166
+ }, {
167
+ readonly type: "error";
168
+ readonly name: "WrongDestinationBaseTokenAssetId";
169
+ readonly inputs: readonly [{
170
+ readonly name: "bundleHash";
171
+ readonly type: "bytes32";
172
+ }, {
173
+ readonly name: "expected";
174
+ readonly type: "bytes32";
175
+ }, {
176
+ readonly name: "actual";
177
+ readonly type: "bytes32";
178
+ }];
179
+ }, {
180
+ readonly type: "error";
181
+ readonly name: "WrongSourceChainId";
182
+ readonly inputs: readonly [{
183
+ readonly name: "bundleHash";
184
+ readonly type: "bytes32";
185
+ }, {
186
+ readonly name: "expected";
187
+ readonly type: "uint256";
188
+ }, {
189
+ readonly name: "actual";
190
+ readonly type: "uint256";
191
+ }];
192
+ }, {
193
+ readonly type: "error";
194
+ readonly name: "ZKTokenNotAvailable";
195
+ readonly inputs: readonly [];
196
+ }];
197
+ export default IInteropErrorsABI;