viem 0.0.0-main.20240519T204600 → 0.0.0-main.20240519T233332

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 (187) hide show
  1. package/_cjs/errors/version.js +1 -1
  2. package/_cjs/zksync/actions/estimateFee.js +26 -0
  3. package/_cjs/zksync/actions/estimateFee.js.map +1 -0
  4. package/_cjs/zksync/actions/estimateGasL1ToL2.js +20 -0
  5. package/_cjs/zksync/actions/estimateGasL1ToL2.js.map +1 -0
  6. package/_cjs/zksync/actions/getAllBalances.js +19 -0
  7. package/_cjs/zksync/actions/getAllBalances.js.map +1 -0
  8. package/_cjs/zksync/actions/getBaseTokenL1Address.js +9 -0
  9. package/_cjs/zksync/actions/getBaseTokenL1Address.js.map +1 -0
  10. package/_cjs/zksync/actions/getBlockDetails.js +12 -0
  11. package/_cjs/zksync/actions/getBlockDetails.js.map +1 -0
  12. package/_cjs/zksync/actions/getBridgehubContractAddress.js +9 -0
  13. package/_cjs/zksync/actions/getBridgehubContractAddress.js.map +1 -0
  14. package/_cjs/zksync/actions/getDefaultBridgeAddresses.js +13 -0
  15. package/_cjs/zksync/actions/getDefaultBridgeAddresses.js.map +1 -0
  16. package/_cjs/zksync/actions/getL1BatchBlockRange.js +13 -0
  17. package/_cjs/zksync/actions/getL1BatchBlockRange.js.map +1 -0
  18. package/_cjs/zksync/actions/getL1BatchDetails.js +12 -0
  19. package/_cjs/zksync/actions/getL1BatchDetails.js.map +1 -0
  20. package/_cjs/zksync/actions/getL1BatchNumber.js +9 -0
  21. package/_cjs/zksync/actions/getL1BatchNumber.js.map +1 -0
  22. package/_cjs/zksync/actions/getL1ChainId.js +9 -0
  23. package/_cjs/zksync/actions/getL1ChainId.js.map +1 -0
  24. package/_cjs/zksync/actions/getLogProof.js +12 -0
  25. package/_cjs/zksync/actions/getLogProof.js.map +1 -0
  26. package/_cjs/zksync/actions/getMainContractAddress.js +9 -0
  27. package/_cjs/zksync/actions/getMainContractAddress.js.map +1 -0
  28. package/_cjs/zksync/actions/getRawBlockTransaction.js +13 -0
  29. package/_cjs/zksync/actions/getRawBlockTransaction.js.map +1 -0
  30. package/_cjs/zksync/actions/getTestnetPaymasterAddress.js +9 -0
  31. package/_cjs/zksync/actions/getTestnetPaymasterAddress.js.map +1 -0
  32. package/_cjs/zksync/actions/getTransactionDetails.js +12 -0
  33. package/_cjs/zksync/actions/getTransactionDetails.js.map +1 -0
  34. package/_cjs/zksync/decorators/publicL2.js +43 -0
  35. package/_cjs/zksync/decorators/publicL2.js.map +1 -0
  36. package/_cjs/zksync/index.js +33 -3
  37. package/_cjs/zksync/index.js.map +1 -1
  38. package/_cjs/zksync/types/eip1193.js +3 -0
  39. package/_cjs/zksync/types/eip1193.js.map +1 -0
  40. package/_cjs/zksync/types/proof.js +3 -0
  41. package/_cjs/zksync/types/proof.js.map +1 -0
  42. package/_cjs/zksync/utils/camelCaseKeys.js +17 -0
  43. package/_cjs/zksync/utils/camelCaseKeys.js.map +1 -0
  44. package/_cjs/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js +4 -3
  45. package/_cjs/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js.map +1 -1
  46. package/_cjs/zksync/utils/paymaster/getGeneralPaymasterInput.js +4 -3
  47. package/_cjs/zksync/utils/paymaster/getGeneralPaymasterInput.js.map +1 -1
  48. package/_esm/errors/version.js +1 -1
  49. package/_esm/zksync/actions/estimateFee.js +22 -0
  50. package/_esm/zksync/actions/estimateFee.js.map +1 -0
  51. package/_esm/zksync/actions/estimateGasL1ToL2.js +16 -0
  52. package/_esm/zksync/actions/estimateGasL1ToL2.js.map +1 -0
  53. package/_esm/zksync/actions/getAllBalances.js +15 -0
  54. package/_esm/zksync/actions/getAllBalances.js.map +1 -0
  55. package/_esm/zksync/actions/getBaseTokenL1Address.js +5 -0
  56. package/_esm/zksync/actions/getBaseTokenL1Address.js.map +1 -0
  57. package/_esm/zksync/actions/getBlockDetails.js +8 -0
  58. package/_esm/zksync/actions/getBlockDetails.js.map +1 -0
  59. package/_esm/zksync/actions/getBridgehubContractAddress.js +5 -0
  60. package/_esm/zksync/actions/getBridgehubContractAddress.js.map +1 -0
  61. package/_esm/zksync/actions/getDefaultBridgeAddresses.js +9 -0
  62. package/_esm/zksync/actions/getDefaultBridgeAddresses.js.map +1 -0
  63. package/_esm/zksync/actions/getL1BatchBlockRange.js +9 -0
  64. package/_esm/zksync/actions/getL1BatchBlockRange.js.map +1 -0
  65. package/_esm/zksync/actions/getL1BatchDetails.js +8 -0
  66. package/_esm/zksync/actions/getL1BatchDetails.js.map +1 -0
  67. package/_esm/zksync/actions/getL1BatchNumber.js +5 -0
  68. package/_esm/zksync/actions/getL1BatchNumber.js.map +1 -0
  69. package/_esm/zksync/actions/getL1ChainId.js +5 -0
  70. package/_esm/zksync/actions/getL1ChainId.js.map +1 -0
  71. package/_esm/zksync/actions/getLogProof.js +8 -0
  72. package/_esm/zksync/actions/getLogProof.js.map +1 -0
  73. package/_esm/zksync/actions/getMainContractAddress.js +5 -0
  74. package/_esm/zksync/actions/getMainContractAddress.js.map +1 -0
  75. package/_esm/zksync/actions/getRawBlockTransaction.js +9 -0
  76. package/_esm/zksync/actions/getRawBlockTransaction.js.map +1 -0
  77. package/_esm/zksync/actions/getTestnetPaymasterAddress.js +5 -0
  78. package/_esm/zksync/actions/getTestnetPaymasterAddress.js.map +1 -0
  79. package/_esm/zksync/actions/getTransactionDetails.js +8 -0
  80. package/_esm/zksync/actions/getTransactionDetails.js.map +1 -0
  81. package/_esm/zksync/decorators/publicL2.js +39 -0
  82. package/_esm/zksync/decorators/publicL2.js.map +1 -0
  83. package/_esm/zksync/index.js +16 -1
  84. package/_esm/zksync/index.js.map +1 -1
  85. package/_esm/zksync/types/eip1193.js +2 -0
  86. package/_esm/zksync/types/eip1193.js.map +1 -0
  87. package/_esm/zksync/types/proof.js +2 -0
  88. package/_esm/zksync/types/proof.js.map +1 -0
  89. package/_esm/zksync/utils/camelCaseKeys.js +13 -0
  90. package/_esm/zksync/utils/camelCaseKeys.js.map +1 -0
  91. package/_esm/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js +2 -1
  92. package/_esm/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js.map +1 -1
  93. package/_esm/zksync/utils/paymaster/getGeneralPaymasterInput.js +2 -1
  94. package/_esm/zksync/utils/paymaster/getGeneralPaymasterInput.js.map +1 -1
  95. package/_types/chains/definitions/lisk.d.ts +8 -8
  96. package/_types/chains/definitions/playfiAlbireo.d.ts +8 -8
  97. package/_types/chains/definitions/zkSync.d.ts +8 -8
  98. package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +8 -8
  99. package/_types/chains/definitions/zkSyncLocalNode.d.ts +8 -8
  100. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +8 -8
  101. package/_types/chains/definitions/zkSyncTestnet.d.ts +8 -8
  102. package/_types/errors/version.d.ts +1 -1
  103. package/_types/zksync/actions/estimateFee.d.ts +11 -0
  104. package/_types/zksync/actions/estimateFee.d.ts.map +1 -0
  105. package/_types/zksync/actions/estimateGasL1ToL2.d.ts +10 -0
  106. package/_types/zksync/actions/estimateGasL1ToL2.d.ts.map +1 -0
  107. package/_types/zksync/actions/getAllBalances.d.ts +12 -0
  108. package/_types/zksync/actions/getAllBalances.d.ts.map +1 -0
  109. package/_types/zksync/actions/getBaseTokenL1Address.d.ts +9 -0
  110. package/_types/zksync/actions/getBaseTokenL1Address.d.ts.map +1 -0
  111. package/_types/zksync/actions/getBlockDetails.d.ts +10 -0
  112. package/_types/zksync/actions/getBlockDetails.d.ts.map +1 -0
  113. package/_types/zksync/actions/getBridgehubContractAddress.d.ts +9 -0
  114. package/_types/zksync/actions/getBridgehubContractAddress.d.ts.map +1 -0
  115. package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts +9 -0
  116. package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts.map +1 -0
  117. package/_types/zksync/actions/getL1BatchBlockRange.d.ts +11 -0
  118. package/_types/zksync/actions/getL1BatchBlockRange.d.ts.map +1 -0
  119. package/_types/zksync/actions/getL1BatchDetails.d.ts +10 -0
  120. package/_types/zksync/actions/getL1BatchDetails.d.ts.map +1 -0
  121. package/_types/zksync/actions/getL1BatchNumber.d.ts +9 -0
  122. package/_types/zksync/actions/getL1BatchNumber.d.ts.map +1 -0
  123. package/_types/zksync/actions/getL1ChainId.d.ts +9 -0
  124. package/_types/zksync/actions/getL1ChainId.d.ts.map +1 -0
  125. package/_types/zksync/actions/getLogProof.d.ts +14 -0
  126. package/_types/zksync/actions/getLogProof.d.ts.map +1 -0
  127. package/_types/zksync/actions/getMainContractAddress.d.ts +9 -0
  128. package/_types/zksync/actions/getMainContractAddress.d.ts.map +1 -0
  129. package/_types/zksync/actions/getRawBlockTransaction.d.ts +11 -0
  130. package/_types/zksync/actions/getRawBlockTransaction.d.ts.map +1 -0
  131. package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts +9 -0
  132. package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts.map +1 -0
  133. package/_types/zksync/actions/getTransactionDetails.d.ts +13 -0
  134. package/_types/zksync/actions/getTransactionDetails.d.ts.map +1 -0
  135. package/_types/zksync/chainConfig.d.ts +8 -8
  136. package/_types/zksync/decorators/publicL2.d.ts +318 -0
  137. package/_types/zksync/decorators/publicL2.d.ts.map +1 -0
  138. package/_types/zksync/formatters.d.ts +8 -8
  139. package/_types/zksync/index.d.ts +17 -2
  140. package/_types/zksync/index.d.ts.map +1 -1
  141. package/_types/zksync/types/block.d.ts +30 -1
  142. package/_types/zksync/types/block.d.ts.map +1 -1
  143. package/_types/zksync/types/contract.d.ts +6 -0
  144. package/_types/zksync/types/contract.d.ts.map +1 -1
  145. package/_types/zksync/types/eip1193.d.ts +152 -0
  146. package/_types/zksync/types/eip1193.d.ts.map +1 -0
  147. package/_types/zksync/types/fee.d.ts +6 -0
  148. package/_types/zksync/types/fee.d.ts.map +1 -1
  149. package/_types/zksync/types/proof.d.ts +7 -0
  150. package/_types/zksync/types/proof.d.ts.map +1 -0
  151. package/_types/zksync/types/transaction.d.ts +65 -5
  152. package/_types/zksync/types/transaction.d.ts.map +1 -1
  153. package/_types/zksync/utils/camelCaseKeys.d.ts +2 -0
  154. package/_types/zksync/utils/camelCaseKeys.d.ts.map +1 -0
  155. package/_types/zksync/utils/paymaster/getApprovalBasedPaymasterInput.d.ts +1 -1
  156. package/_types/zksync/utils/paymaster/getApprovalBasedPaymasterInput.d.ts.map +1 -1
  157. package/_types/zksync/utils/paymaster/getGeneralPaymasterInput.d.ts +1 -1
  158. package/_types/zksync/utils/paymaster/getGeneralPaymasterInput.d.ts.map +1 -1
  159. package/errors/version.ts +1 -1
  160. package/package.json +1 -1
  161. package/zksync/actions/estimateFee.ts +46 -0
  162. package/zksync/actions/estimateGasL1ToL2.ts +38 -0
  163. package/zksync/actions/getAllBalances.ts +33 -0
  164. package/zksync/actions/getBaseTokenL1Address.ts +18 -0
  165. package/zksync/actions/getBlockDetails.ts +27 -0
  166. package/zksync/actions/getBridgehubContractAddress.ts +18 -0
  167. package/zksync/actions/getDefaultBridgeAddresses.ts +22 -0
  168. package/zksync/actions/getL1BatchBlockRange.ts +26 -0
  169. package/zksync/actions/getL1BatchDetails.ts +27 -0
  170. package/zksync/actions/getL1BatchNumber.ts +18 -0
  171. package/zksync/actions/getL1ChainId.ts +18 -0
  172. package/zksync/actions/getLogProof.ts +28 -0
  173. package/zksync/actions/getMainContractAddress.ts +18 -0
  174. package/zksync/actions/getRawBlockTransaction.ts +26 -0
  175. package/zksync/actions/getTestnetPaymasterAddress.ts +18 -0
  176. package/zksync/actions/getTransactionDetails.ts +27 -0
  177. package/zksync/decorators/publicL2.ts +425 -0
  178. package/zksync/index.ts +62 -6
  179. package/zksync/types/block.ts +37 -1
  180. package/zksync/types/contract.ts +8 -0
  181. package/zksync/types/eip1193.ts +155 -0
  182. package/zksync/types/fee.ts +7 -0
  183. package/zksync/types/proof.ts +7 -0
  184. package/zksync/types/transaction.ts +84 -10
  185. package/zksync/utils/camelCaseKeys.ts +11 -0
  186. package/zksync/utils/paymaster/getApprovalBasedPaymasterInput.ts +5 -2
  187. package/zksync/utils/paymaster/getGeneralPaymasterInput.ts +5 -2
@@ -0,0 +1,8 @@
1
+ export async function getBlockDetails(client, parameters) {
2
+ const result = await client.request({
3
+ method: 'zks_getBlockDetails',
4
+ params: [parameters.number],
5
+ });
6
+ return result;
7
+ }
8
+ //# sourceMappingURL=getBlockDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBlockDetails.js","sourceRoot":"","sources":["../../../zksync/actions/getBlockDetails.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,KAAK,UAAU,eAAe,CAInC,MAAkE,EAClE,UAAqC;IAErC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;KAC5B,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ export async function getBridgehubContractAddress(client) {
2
+ const result = await client.request({ method: 'zks_getBridgehubContract' });
3
+ return result;
4
+ }
5
+ //# sourceMappingURL=getBridgehubContractAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBridgehubContractAddress.js","sourceRoot":"","sources":["../../../zksync/actions/getBridgehubContractAddress.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAI/C,MAAkE;IAElE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,CAAC,CAAA;IAC3E,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,9 @@
1
+ export async function getDefaultBridgeAddresses(client) {
2
+ const addresses = await client.request({ method: 'zks_getBridgeContracts' });
3
+ return {
4
+ erc20L1: addresses.l1Erc20DefaultBridge,
5
+ sharedL1: addresses.l1SharedDefaultBridge,
6
+ sharedL2: addresses.l2SharedDefaultBridge,
7
+ };
8
+ }
9
+ //# sourceMappingURL=getDefaultBridgeAddresses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultBridgeAddresses.js","sourceRoot":"","sources":["../../../zksync/actions/getDefaultBridgeAddresses.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAI7C,MAAkE;IAElE,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,wBAAwB,EAAE,CAAC,CAAA;IAC5E,OAAO;QACL,OAAO,EAAE,SAAS,CAAC,oBAAoB;QACvC,QAAQ,EAAE,SAAS,CAAC,qBAAqB;QACzC,QAAQ,EAAE,SAAS,CAAC,qBAAqB;KAC1C,CAAA;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { hexToNumber } from '../../utils/encoding/fromHex.js';
2
+ export async function getL1BatchBlockRange(client, parameters) {
3
+ const [number_1, number_2] = await client.request({
4
+ method: 'zks_getL1BatchBlockRange',
5
+ params: [parameters.l1BatchNumber],
6
+ });
7
+ return [hexToNumber(number_1), hexToNumber(number_2)];
8
+ }
9
+ //# sourceMappingURL=getL1BatchBlockRange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getL1BatchBlockRange.js","sourceRoot":"","sources":["../../../zksync/actions/getL1BatchBlockRange.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAS7D,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAIxC,MAAkE,EAClE,UAA0C;IAE1C,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAChD,MAAM,EAAE,0BAA0B;QAClC,MAAM,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;KACnC,CAAC,CAAA;IACF,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAA;AACvD,CAAC"}
@@ -0,0 +1,8 @@
1
+ export async function getL1BatchDetails(client, parameters) {
2
+ const result = await client.request({
3
+ method: 'zks_getL1BatchDetails',
4
+ params: [parameters.number],
5
+ });
6
+ return result;
7
+ }
8
+ //# sourceMappingURL=getL1BatchDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getL1BatchDetails.js","sourceRoot":"","sources":["../../../zksync/actions/getL1BatchDetails.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAIrC,MAAkE,EAClE,UAAuC;IAEvC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;KAC5B,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ export async function getL1BatchNumber(client) {
2
+ const result = await client.request({ method: 'zks_L1BatchNumber' });
3
+ return result;
4
+ }
5
+ //# sourceMappingURL=getL1BatchNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getL1BatchNumber.js","sourceRoot":"","sources":["../../../zksync/actions/getL1BatchNumber.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAIpC,MAAkE;IAElE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAA;IACpE,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ export async function getL1ChainId(client) {
2
+ const result = await client.request({ method: 'zks_L1ChainId' });
3
+ return result;
4
+ }
5
+ //# sourceMappingURL=getL1ChainId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getL1ChainId.js","sourceRoot":"","sources":["../../../zksync/actions/getL1ChainId.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,KAAK,UAAU,YAAY,CAIhC,MAAkE;IAElE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,CAAA;IAChE,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,8 @@
1
+ export async function getLogProof(client, parameters) {
2
+ const result = await client.request({
3
+ method: 'zks_getL2ToL1LogProof',
4
+ params: [parameters.txHash, parameters.index],
5
+ });
6
+ return result;
7
+ }
8
+ //# sourceMappingURL=getLogProof.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLogProof.js","sourceRoot":"","sources":["../../../zksync/actions/getLogProof.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,KAAK,UAAU,WAAW,CAI/B,MAAkE,EAClE,UAAiC;IAEjC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;KAC9C,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,5 @@
1
+ export async function getMainContractAddress(client) {
2
+ const address = await client.request({ method: 'zks_getMainContract' });
3
+ return address;
4
+ }
5
+ //# sourceMappingURL=getMainContractAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMainContractAddress.js","sourceRoot":"","sources":["../../../zksync/actions/getMainContractAddress.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAI1C,MAAkE;IAElE,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC,CAAA;IACvE,OAAO,OAAO,CAAA;AAChB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { camelCaseKeys } from '../utils/camelCaseKeys.js';
2
+ export async function getRawBlockTransactions(client, parameters) {
3
+ const result = await client.request({
4
+ method: 'zks_getRawBlockTransactions',
5
+ params: [parameters.number],
6
+ });
7
+ return camelCaseKeys(result);
8
+ }
9
+ //# sourceMappingURL=getRawBlockTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRawBlockTransaction.js","sourceRoot":"","sources":["../../../zksync/actions/getRawBlockTransaction.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAMzD,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAI3C,MAAkE,EAClE,UAA4C;IAE5C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,6BAA6B;QACrC,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;KAC5B,CAAC,CAAA;IACF,OAAO,aAAa,CAAC,MAAM,CAAqC,CAAA;AAClE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export async function getTestnetPaymasterAddress(client) {
2
+ const result = await client.request({ method: 'zks_getTestnetPaymaster' });
3
+ return result;
4
+ }
5
+ //# sourceMappingURL=getTestnetPaymasterAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTestnetPaymasterAddress.js","sourceRoot":"","sources":["../../../zksync/actions/getTestnetPaymasterAddress.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAI9C,MAAkE;IAElE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,yBAAyB,EAAE,CAAC,CAAA;IAC1E,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,8 @@
1
+ export async function getTransactionDetails(client, parameters) {
2
+ const result = await client.request({
3
+ method: 'zks_getTransactionDetails',
4
+ params: [parameters.txHash],
5
+ });
6
+ return result;
7
+ }
8
+ //# sourceMappingURL=getTransactionDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTransactionDetails.js","sourceRoot":"","sources":["../../../zksync/actions/getTransactionDetails.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAIzC,MAAkE,EAClE,UAA2C;IAE3C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,2BAA2B;QACnC,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;KAC5B,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { estimateFee } from '../actions/estimateFee.js';
2
+ import { estimateGasL1ToL2, } from '../actions/estimateGasL1ToL2.js';
3
+ import { getAllBalances, } from '../actions/getAllBalances.js';
4
+ import { getBaseTokenL1Address } from '../actions/getBaseTokenL1Address.js';
5
+ import { getBlockDetails, } from '../actions/getBlockDetails.js';
6
+ import { getBridgehubContractAddress } from '../actions/getBridgehubContractAddress.js';
7
+ import { getDefaultBridgeAddresses, } from '../actions/getDefaultBridgeAddresses.js';
8
+ import { getL1BatchBlockRange, } from '../actions/getL1BatchBlockRange.js';
9
+ import { getL1BatchDetails, } from '../actions/getL1BatchDetails.js';
10
+ import { getL1BatchNumber } from '../actions/getL1BatchNumber.js';
11
+ import { getL1ChainId } from '../actions/getL1ChainId.js';
12
+ import { getLogProof, } from '../actions/getLogProof.js';
13
+ import { getMainContractAddress } from '../actions/getMainContractAddress.js';
14
+ import { getRawBlockTransactions, } from '../actions/getRawBlockTransaction.js';
15
+ import { getTestnetPaymasterAddress } from '../actions/getTestnetPaymasterAddress.js';
16
+ import { getTransactionDetails, } from '../actions/getTransactionDetails.js';
17
+ export function publicActionsL2() {
18
+ return (client) => {
19
+ return {
20
+ estimateGasL1ToL2: (args) => estimateGasL1ToL2(client, args),
21
+ getDefaultBridgeAddresses: () => getDefaultBridgeAddresses(client),
22
+ getTestnetPaymasterAddress: () => getTestnetPaymasterAddress(client),
23
+ getL1ChainId: () => getL1ChainId(client),
24
+ getMainContractAddress: () => getMainContractAddress(client),
25
+ getAllBalances: (args) => getAllBalances(client, args),
26
+ getRawBlockTransaction: (args) => getRawBlockTransactions(client, args),
27
+ getBlockDetails: (args) => getBlockDetails(client, args),
28
+ getL1BatchDetails: (args) => getL1BatchDetails(client, args),
29
+ getL1BatchBlockRange: (args) => getL1BatchBlockRange(client, args),
30
+ getL1BatchNumber: () => getL1BatchNumber(client),
31
+ getLogProof: (args) => getLogProof(client, args),
32
+ getTransactionDetails: (args) => getTransactionDetails(client, args),
33
+ estimateFee: (args) => estimateFee(client, args),
34
+ getBridgehubContractAddress: () => getBridgehubContractAddress(client),
35
+ getBaseTokenL1Address: () => getBaseTokenL1Address(client),
36
+ };
37
+ };
38
+ }
39
+ //# sourceMappingURL=publicL2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publicL2.js","sourceRoot":"","sources":["../../../zksync/decorators/publicL2.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAKvD,OAAO,EAEL,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAGL,cAAc,GACf,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAGL,eAAe,GAChB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAEL,yBAAyB,GAC1B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAGL,oBAAoB,GACrB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAGL,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAGL,WAAW,GACZ,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAC7E,OAAO,EAGL,uBAAuB,GACxB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAA;AACrF,OAAO,EAGL,qBAAqB,GACtB,MAAM,qCAAqC,CAAA;AAmV5C,MAAM,UAAU,eAAe;IAC7B,OAAO,CAKL,MAA4C,EACT,EAAE;QACrC,OAAO;YACL,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC;YAC5D,yBAAyB,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,MAAM,CAAC;YAClE,0BAA0B,EAAE,GAAG,EAAE,CAAC,0BAA0B,CAAC,MAAM,CAAC;YACpE,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;YACxC,sBAAsB,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,MAAM,CAAC;YAC5D,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC;YACtD,sBAAsB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,uBAAuB,CAAC,MAAM,EAAE,IAAI,CAAC;YACvE,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC;YACxD,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC;YAC5D,oBAAoB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC;YAClE,gBAAgB,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC;YAChD,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC;YAChD,qBAAqB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC;YACpE,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC;YAChD,2BAA2B,EAAE,GAAG,EAAE,CAAC,2BAA2B,CAAC,MAAM,CAAC;YACtE,qBAAqB,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC;SAC3D,CAAA;IACH,CAAC,CAAA;AACH,CAAC"}
@@ -1,12 +1,27 @@
1
+ export { deployContract, } from './actions/deployContract.js';
2
+ export { estimateFee, } from './actions/estimateFee.js';
3
+ export { getAllBalances, } from './actions/getAllBalances.js';
4
+ export { getBlockDetails, } from './actions/getBlockDetails.js';
5
+ export { getDefaultBridgeAddresses, } from './actions/getDefaultBridgeAddresses.js';
6
+ export { getBridgehubContractAddress } from './actions/getBridgehubContractAddress.js';
7
+ export { getL1BatchBlockRange, } from './actions/getL1BatchBlockRange.js';
8
+ export { getL1BatchDetails, } from './actions/getL1BatchDetails.js';
9
+ export { getL1BatchNumber } from './actions/getL1BatchNumber.js';
10
+ export { getL1ChainId } from './actions/getL1ChainId.js';
11
+ export { getLogProof, } from './actions/getLogProof.js';
12
+ export { getMainContractAddress } from './actions/getMainContractAddress.js';
13
+ export { getRawBlockTransactions, } from './actions/getRawBlockTransaction.js';
14
+ export { getTestnetPaymasterAddress } from './actions/getTestnetPaymasterAddress.js';
15
+ export { getTransactionDetails, } from './actions/getTransactionDetails.js';
1
16
  export { sendTransaction, } from './actions/sendTransaction.js';
2
17
  export { sendEip712Transaction, } from './actions/sendEip712Transaction.js';
3
18
  export { signEip712Transaction, } from './actions/signEip712Transaction.js';
4
19
  export { signTransaction, } from './actions/signTransaction.js';
5
- export { deployContract, } from './actions/deployContract.js';
6
20
  export { zkSync, zkSyncTestnet, zkSyncSepoliaTestnet, } from './chains.js';
7
21
  export { chainConfig } from './chainConfig.js';
8
22
  export { eip712WalletActions, } from './decorators/eip712.js';
9
23
  export { serializeTransaction } from './serializers.js';
24
+ export { publicActionsL2, } from './decorators/publicL2.js';
10
25
  export { getApprovalBasedPaymasterInput, } from './utils/paymaster/getApprovalBasedPaymasterInput.js';
11
26
  export { getGeneralPaymasterInput, } from './utils/paymaster/getGeneralPaymasterInput.js';
12
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../zksync/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,eAAe,GAChB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAIL,qBAAqB,GACtB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAIL,qBAAqB,GACtB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAIL,eAAe,GAChB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAIL,cAAc,GACf,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACL,MAAM,EACN,aAAa,EACb,oBAAoB,GACrB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EACL,mBAAmB,GAEpB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AA2CvD,OAAO,EAGL,8BAA8B,GAC/B,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EAGL,wBAAwB,GACzB,MAAM,+CAA+C,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../zksync/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,cAAc,GACf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAGL,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAGL,cAAc,GACf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAGL,eAAe,GAChB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAEL,yBAAyB,GAC1B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAA;AACtF,OAAO,EAGL,oBAAoB,GACrB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAGL,iBAAiB,GAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAGL,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAGL,uBAAuB,GACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAA;AACpF,OAAO,EAGL,qBAAqB,GACtB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAIL,eAAe,GAChB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAIL,qBAAqB,GACtB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAIL,qBAAqB,GACtB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAIL,eAAe,GAChB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,MAAM,EACN,aAAa,EACb,oBAAoB,GACrB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EACL,mBAAmB,GAEpB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAEvD,OAAO,EACL,eAAe,GAEhB,MAAM,0BAA0B,CAAA;AA6CjC,OAAO,EAGL,8BAA8B,GAC/B,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EAGL,wBAAwB,GACzB,MAAM,+CAA+C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=eip1193.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip1193.js","sourceRoot":"","sources":["../../../zksync/types/eip1193.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=proof.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proof.js","sourceRoot":"","sources":["../../../zksync/types/proof.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ export function camelCaseKeys(response) {
2
+ if (!response)
3
+ return response;
4
+ if (typeof response !== 'object')
5
+ return response;
6
+ if (Array.isArray(response))
7
+ return response.map(camelCaseKeys);
8
+ return Object.fromEntries(Object.entries(response).map(([key, value]) => [
9
+ key.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase()),
10
+ camelCaseKeys(value),
11
+ ]));
12
+ }
13
+ //# sourceMappingURL=camelCaseKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camelCaseKeys.js","sourceRoot":"","sources":["../../../zksync/utils/camelCaseKeys.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,QAAgB;IAC5C,IAAI,CAAC,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAC9B,IAAI,OAAO,QAAQ,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAA;IACjD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;IAC/D,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;QAC7C,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QAC7D,aAAa,CAAC,KAAK,CAAC;KACrB,CAAC,CACH,CAAA;AACH,CAAC"}
@@ -1,4 +1,5 @@
1
- import { bytesToHex, encodeFunctionData } from '../../../utils/index.js';
1
+ import { encodeFunctionData, } from '../../../utils/abi/encodeFunctionData.js';
2
+ import { bytesToHex } from '../../../utils/encoding/toHex.js';
2
3
  import { paymasterAbi } from '../../constants/abis.js';
3
4
  export function getApprovalBasedPaymasterInput(parameters) {
4
5
  const { innerInput, minAllowance, token } = parameters;
@@ -1 +1 @@
1
- {"version":3,"file":"getApprovalBasedPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getApprovalBasedPaymasterInput.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAWtD,MAAM,UAAU,8BAA8B,CAC5C,UAAoD;IAEpD,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,UAAU,CAAA;IAEtD,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,kBAAkB,CAAC;QACxB,GAAG,EAAE,YAAY;QACjB,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,CAAC;KAC3C,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"getApprovalBasedPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getApprovalBasedPaymasterInput.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,kBAAkB,GACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAWtD,MAAM,UAAU,8BAA8B,CAC5C,UAAoD;IAEpD,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,UAAU,CAAA;IAEtD,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,kBAAkB,CAAC;QACxB,GAAG,EAAE,YAAY;QACjB,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,CAAC;KAC3C,CAAC,CAAA;AACJ,CAAC"}
@@ -1,4 +1,5 @@
1
- import { bytesToHex, encodeFunctionData } from '../../../utils/index.js';
1
+ import { encodeFunctionData, } from '../../../utils/abi/encodeFunctionData.js';
2
+ import { bytesToHex } from '../../../utils/encoding/toHex.js';
2
3
  import { paymasterAbi } from '../../constants/abis.js';
3
4
  export function getGeneralPaymasterInput(parameters) {
4
5
  const { innerInput } = parameters;
@@ -1 +1 @@
1
- {"version":3,"file":"getGeneralPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getGeneralPaymasterInput.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAQtD,MAAM,UAAU,wBAAwB,CACtC,UAA8C;IAE9C,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAA;IAEjC,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,kBAAkB,CAAC;QACxB,GAAG,EAAE,YAAY;QACjB,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,CAAC,aAAa,CAAC;KACtB,CAAC,CAAA;AACJ,CAAC"}
1
+ {"version":3,"file":"getGeneralPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getGeneralPaymasterInput.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,kBAAkB,GACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAQtD,MAAM,UAAU,wBAAwB,CACtC,UAA8C;IAE9C,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAA;IAEjC,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,kBAAkB,CAAC;QACxB,GAAG,EAAE,YAAY;QACjB,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,CAAC,aAAa,CAAC;KACtB,CAAC,CAAA;AACJ,CAAC"}
@@ -599,7 +599,7 @@ export declare const lisk: {
599
599
  blobVersionedHashes?: undefined;
600
600
  kzg?: undefined;
601
601
  sidecars?: undefined;
602
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
602
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
603
603
  gasPerPubdata?: bigint | undefined;
604
604
  customSignature?: `0x${string}` | undefined;
605
605
  factoryDeps?: `0x${string}`[] | undefined;
@@ -624,7 +624,7 @@ export declare const lisk: {
624
624
  blobVersionedHashes?: undefined;
625
625
  kzg?: undefined;
626
626
  sidecars?: undefined;
627
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
627
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
628
628
  gasPerPubdata?: bigint | undefined;
629
629
  customSignature?: `0x${string}` | undefined;
630
630
  factoryDeps?: `0x${string}`[] | undefined;
@@ -769,7 +769,7 @@ export declare const lisk: {
769
769
  blobVersionedHashes?: undefined;
770
770
  kzg?: undefined;
771
771
  sidecars?: undefined;
772
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
772
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
773
773
  gasPerPubdata?: bigint | undefined;
774
774
  customSignature?: `0x${string}` | undefined;
775
775
  factoryDeps?: `0x${string}`[] | undefined;
@@ -794,7 +794,7 @@ export declare const lisk: {
794
794
  blobVersionedHashes?: undefined;
795
795
  kzg?: undefined;
796
796
  sidecars?: undefined;
797
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
797
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
798
798
  gasPerPubdata?: bigint | undefined;
799
799
  customSignature?: `0x${string}` | undefined;
800
800
  factoryDeps?: `0x${string}`[] | undefined;
@@ -939,7 +939,7 @@ export declare const lisk: {
939
939
  blobVersionedHashes?: undefined;
940
940
  kzg?: undefined;
941
941
  sidecars?: undefined;
942
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
942
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
943
943
  gasPerPubdata?: bigint | undefined;
944
944
  customSignature?: `0x${string}` | undefined;
945
945
  factoryDeps?: `0x${string}`[] | undefined;
@@ -964,7 +964,7 @@ export declare const lisk: {
964
964
  blobVersionedHashes?: undefined;
965
965
  kzg?: undefined;
966
966
  sidecars?: undefined;
967
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
967
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
968
968
  gasPerPubdata?: bigint | undefined;
969
969
  customSignature?: `0x${string}` | undefined;
970
970
  factoryDeps?: `0x${string}`[] | undefined;
@@ -1149,7 +1149,7 @@ export declare const lisk: {
1149
1149
  kzg?: import("../../index.js").Kzg | undefined;
1150
1150
  sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
1151
1151
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1152
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1152
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1153
1153
  gasPerPubdata?: bigint | undefined;
1154
1154
  customSignature?: `0x${string}` | undefined;
1155
1155
  factoryDeps?: `0x${string}`[] | undefined;
@@ -1174,7 +1174,7 @@ export declare const lisk: {
1174
1174
  kzg?: import("../../index.js").Kzg | undefined;
1175
1175
  sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
1176
1176
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1177
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1177
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1178
1178
  gasPerPubdata?: bigint | undefined;
1179
1179
  customSignature?: `0x${string}` | undefined;
1180
1180
  factoryDeps?: `0x${string}`[] | undefined;
@@ -599,7 +599,7 @@ export declare const playfiAlbireo: {
599
599
  blobVersionedHashes?: undefined;
600
600
  kzg?: undefined;
601
601
  sidecars?: undefined;
602
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
602
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
603
603
  gasPerPubdata?: bigint | undefined;
604
604
  customSignature?: `0x${string}` | undefined;
605
605
  factoryDeps?: `0x${string}`[] | undefined;
@@ -624,7 +624,7 @@ export declare const playfiAlbireo: {
624
624
  blobVersionedHashes?: undefined;
625
625
  kzg?: undefined;
626
626
  sidecars?: undefined;
627
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
627
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
628
628
  gasPerPubdata?: bigint | undefined;
629
629
  customSignature?: `0x${string}` | undefined;
630
630
  factoryDeps?: `0x${string}`[] | undefined;
@@ -769,7 +769,7 @@ export declare const playfiAlbireo: {
769
769
  blobVersionedHashes?: undefined;
770
770
  kzg?: undefined;
771
771
  sidecars?: undefined;
772
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
772
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
773
773
  gasPerPubdata?: bigint | undefined;
774
774
  customSignature?: `0x${string}` | undefined;
775
775
  factoryDeps?: `0x${string}`[] | undefined;
@@ -794,7 +794,7 @@ export declare const playfiAlbireo: {
794
794
  blobVersionedHashes?: undefined;
795
795
  kzg?: undefined;
796
796
  sidecars?: undefined;
797
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
797
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
798
798
  gasPerPubdata?: bigint | undefined;
799
799
  customSignature?: `0x${string}` | undefined;
800
800
  factoryDeps?: `0x${string}`[] | undefined;
@@ -939,7 +939,7 @@ export declare const playfiAlbireo: {
939
939
  blobVersionedHashes?: undefined;
940
940
  kzg?: undefined;
941
941
  sidecars?: undefined;
942
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
942
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
943
943
  gasPerPubdata?: bigint | undefined;
944
944
  customSignature?: `0x${string}` | undefined;
945
945
  factoryDeps?: `0x${string}`[] | undefined;
@@ -964,7 +964,7 @@ export declare const playfiAlbireo: {
964
964
  blobVersionedHashes?: undefined;
965
965
  kzg?: undefined;
966
966
  sidecars?: undefined;
967
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
967
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
968
968
  gasPerPubdata?: bigint | undefined;
969
969
  customSignature?: `0x${string}` | undefined;
970
970
  factoryDeps?: `0x${string}`[] | undefined;
@@ -1149,7 +1149,7 @@ export declare const playfiAlbireo: {
1149
1149
  kzg?: import("../../index.js").Kzg | undefined;
1150
1150
  sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
1151
1151
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1152
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1152
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1153
1153
  gasPerPubdata?: bigint | undefined;
1154
1154
  customSignature?: `0x${string}` | undefined;
1155
1155
  factoryDeps?: `0x${string}`[] | undefined;
@@ -1174,7 +1174,7 @@ export declare const playfiAlbireo: {
1174
1174
  kzg?: import("../../index.js").Kzg | undefined;
1175
1175
  sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
1176
1176
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1177
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1177
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1178
1178
  gasPerPubdata?: bigint | undefined;
1179
1179
  customSignature?: `0x${string}` | undefined;
1180
1180
  factoryDeps?: `0x${string}`[] | undefined;
@@ -600,7 +600,7 @@ export declare const zkSync: {
600
600
  blobVersionedHashes?: undefined;
601
601
  kzg?: undefined;
602
602
  sidecars?: undefined;
603
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
603
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
604
604
  gasPerPubdata?: bigint | undefined;
605
605
  customSignature?: `0x${string}` | undefined;
606
606
  factoryDeps?: `0x${string}`[] | undefined;
@@ -625,7 +625,7 @@ export declare const zkSync: {
625
625
  blobVersionedHashes?: undefined;
626
626
  kzg?: undefined;
627
627
  sidecars?: undefined;
628
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
628
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
629
629
  gasPerPubdata?: bigint | undefined;
630
630
  customSignature?: `0x${string}` | undefined;
631
631
  factoryDeps?: `0x${string}`[] | undefined;
@@ -770,7 +770,7 @@ export declare const zkSync: {
770
770
  blobVersionedHashes?: undefined;
771
771
  kzg?: undefined;
772
772
  sidecars?: undefined;
773
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
773
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
774
774
  gasPerPubdata?: bigint | undefined;
775
775
  customSignature?: `0x${string}` | undefined;
776
776
  factoryDeps?: `0x${string}`[] | undefined;
@@ -795,7 +795,7 @@ export declare const zkSync: {
795
795
  blobVersionedHashes?: undefined;
796
796
  kzg?: undefined;
797
797
  sidecars?: undefined;
798
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
798
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
799
799
  gasPerPubdata?: bigint | undefined;
800
800
  customSignature?: `0x${string}` | undefined;
801
801
  factoryDeps?: `0x${string}`[] | undefined;
@@ -940,7 +940,7 @@ export declare const zkSync: {
940
940
  blobVersionedHashes?: undefined;
941
941
  kzg?: undefined;
942
942
  sidecars?: undefined;
943
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
943
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
944
944
  gasPerPubdata?: bigint | undefined;
945
945
  customSignature?: `0x${string}` | undefined;
946
946
  factoryDeps?: `0x${string}`[] | undefined;
@@ -965,7 +965,7 @@ export declare const zkSync: {
965
965
  blobVersionedHashes?: undefined;
966
966
  kzg?: undefined;
967
967
  sidecars?: undefined;
968
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
968
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
969
969
  gasPerPubdata?: bigint | undefined;
970
970
  customSignature?: `0x${string}` | undefined;
971
971
  factoryDeps?: `0x${string}`[] | undefined;
@@ -1150,7 +1150,7 @@ export declare const zkSync: {
1150
1150
  kzg?: import("../../index.js").Kzg | undefined;
1151
1151
  sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
1152
1152
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1153
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1153
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1154
1154
  gasPerPubdata?: bigint | undefined;
1155
1155
  customSignature?: `0x${string}` | undefined;
1156
1156
  factoryDeps?: `0x${string}`[] | undefined;
@@ -1175,7 +1175,7 @@ export declare const zkSync: {
1175
1175
  kzg?: import("../../index.js").Kzg | undefined;
1176
1176
  sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
1177
1177
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1178
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1178
+ } & Omit<import("../../index.js").TransactionRequestBase<bigint, number>, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1179
1179
  gasPerPubdata?: bigint | undefined;
1180
1180
  customSignature?: `0x${string}` | undefined;
1181
1181
  factoryDeps?: `0x${string}`[] | undefined;