viem 2.13.8 → 2.13.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/_cjs/actions/index.js +4 -2
  3. package/_cjs/actions/index.js.map +1 -1
  4. package/_cjs/actions/public/getEip712Domain.js +54 -0
  5. package/_cjs/actions/public/getEip712Domain.js.map +1 -0
  6. package/_cjs/celo/formatters.js +1 -2
  7. package/_cjs/celo/formatters.js.map +1 -1
  8. package/_cjs/chains/definitions/ham.js +27 -0
  9. package/_cjs/chains/definitions/ham.js.map +1 -0
  10. package/_cjs/chains/definitions/kakarotSepolia.js +1 -1
  11. package/_cjs/chains/definitions/kakarotSepolia.js.map +1 -1
  12. package/_cjs/chains/definitions/redbellyTestnet.js +27 -0
  13. package/_cjs/chains/definitions/redbellyTestnet.js.map +1 -0
  14. package/_cjs/chains/definitions/xai.js +28 -0
  15. package/_cjs/chains/definitions/xai.js.map +1 -0
  16. package/_cjs/chains/definitions/xaiTestnet.js +22 -0
  17. package/_cjs/chains/definitions/xaiTestnet.js.map +1 -0
  18. package/_cjs/chains/index.js +12 -4
  19. package/_cjs/chains/index.js.map +1 -1
  20. package/_cjs/clients/decorators/public.js +2 -0
  21. package/_cjs/clients/decorators/public.js.map +1 -1
  22. package/_cjs/clients/decorators/wallet.js.map +1 -1
  23. package/_cjs/errors/base.js +1 -1
  24. package/_cjs/errors/base.js.map +1 -1
  25. package/_cjs/errors/eip712.js +24 -0
  26. package/_cjs/errors/eip712.js.map +1 -0
  27. package/_cjs/errors/version.js +1 -1
  28. package/_cjs/errors/version.js.map +1 -1
  29. package/_cjs/index.js.map +1 -1
  30. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js +4 -3
  31. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
  32. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js +4 -3
  33. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
  34. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js +4 -3
  35. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
  36. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js +4 -3
  37. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
  38. package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
  39. package/_cjs/utils/transaction/serializeTransaction.js +8 -5
  40. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  41. package/_cjs/zksync/actions/sendEip712Transaction.js +7 -7
  42. package/_cjs/zksync/actions/sendEip712Transaction.js.map +1 -1
  43. package/_cjs/zksync/actions/sendTransaction.js +4 -4
  44. package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
  45. package/_cjs/zksync/decorators/eip712.js.map +1 -1
  46. package/_esm/actions/index.js +1 -0
  47. package/_esm/actions/index.js.map +1 -1
  48. package/_esm/actions/public/getEip712Domain.js +82 -0
  49. package/_esm/actions/public/getEip712Domain.js.map +1 -0
  50. package/_esm/celo/formatters.js +1 -2
  51. package/_esm/celo/formatters.js.map +1 -1
  52. package/_esm/chains/definitions/ham.js +24 -0
  53. package/_esm/chains/definitions/ham.js.map +1 -0
  54. package/_esm/chains/definitions/kakarotSepolia.js +1 -1
  55. package/_esm/chains/definitions/kakarotSepolia.js.map +1 -1
  56. package/_esm/chains/definitions/redbellyTestnet.js +24 -0
  57. package/_esm/chains/definitions/redbellyTestnet.js.map +1 -0
  58. package/_esm/chains/definitions/xai.js +25 -0
  59. package/_esm/chains/definitions/xai.js.map +1 -0
  60. package/_esm/chains/definitions/xaiTestnet.js +19 -0
  61. package/_esm/chains/definitions/xaiTestnet.js.map +1 -0
  62. package/_esm/chains/index.js +4 -0
  63. package/_esm/chains/index.js.map +1 -1
  64. package/_esm/clients/decorators/public.js +2 -0
  65. package/_esm/clients/decorators/public.js.map +1 -1
  66. package/_esm/clients/decorators/wallet.js.map +1 -1
  67. package/_esm/errors/base.js +1 -1
  68. package/_esm/errors/base.js.map +1 -1
  69. package/_esm/errors/eip712.js +20 -0
  70. package/_esm/errors/eip712.js.map +1 -0
  71. package/_esm/errors/version.js +1 -1
  72. package/_esm/errors/version.js.map +1 -1
  73. package/_esm/index.js +1 -0
  74. package/_esm/index.js.map +1 -1
  75. package/_esm/op-stack/actions/estimateDepositTransactionGas.js +7 -3
  76. package/_esm/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
  77. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js +7 -3
  78. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
  79. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js +7 -3
  80. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
  81. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js +7 -3
  82. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
  83. package/_esm/utils/abi/encodeDeployData.js.map +1 -1
  84. package/_esm/utils/transaction/serializeTransaction.js +8 -5
  85. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  86. package/_esm/zksync/actions/sendEip712Transaction.js +7 -7
  87. package/_esm/zksync/actions/sendEip712Transaction.js.map +1 -1
  88. package/_esm/zksync/actions/sendTransaction.js +6 -6
  89. package/_esm/zksync/actions/sendTransaction.js.map +1 -1
  90. package/_esm/zksync/decorators/eip712.js.map +1 -1
  91. package/_types/actions/index.d.ts +1 -0
  92. package/_types/actions/index.d.ts.map +1 -1
  93. package/_types/actions/public/getEip712Domain.d.ts +50 -0
  94. package/_types/actions/public/getEip712Domain.d.ts.map +1 -0
  95. package/_types/celo/formatters.d.ts.map +1 -1
  96. package/_types/chains/definitions/ham.d.ts +37 -0
  97. package/_types/chains/definitions/ham.d.ts.map +1 -0
  98. package/_types/chains/definitions/kakarotSepolia.d.ts +1 -1
  99. package/_types/chains/definitions/redbellyTestnet.d.ts +36 -0
  100. package/_types/chains/definitions/redbellyTestnet.d.ts.map +1 -0
  101. package/_types/chains/definitions/xai.d.ts +33 -0
  102. package/_types/chains/definitions/xai.d.ts.map +1 -0
  103. package/_types/chains/definitions/xaiTestnet.d.ts +35 -0
  104. package/_types/chains/definitions/xaiTestnet.d.ts.map +1 -0
  105. package/_types/chains/index.d.ts +4 -0
  106. package/_types/chains/index.d.ts.map +1 -1
  107. package/_types/clients/decorators/public.d.ts +34 -0
  108. package/_types/clients/decorators/public.d.ts.map +1 -1
  109. package/_types/errors/base.d.ts +1 -0
  110. package/_types/errors/base.d.ts.map +1 -1
  111. package/_types/errors/eip712.d.ts +12 -0
  112. package/_types/errors/eip712.d.ts.map +1 -0
  113. package/_types/errors/version.d.ts +1 -1
  114. package/_types/errors/version.d.ts.map +1 -1
  115. package/_types/index.d.ts +1 -0
  116. package/_types/index.d.ts.map +1 -1
  117. package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts +2 -2
  118. package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts.map +1 -1
  119. package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
  120. package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -1
  121. package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
  122. package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -1
  123. package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts +1 -1
  124. package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts.map +1 -1
  125. package/_types/types/chain.d.ts +7 -7
  126. package/_types/types/chain.d.ts.map +1 -1
  127. package/_types/utils/abi/encodeDeployData.d.ts +4 -2
  128. package/_types/utils/abi/encodeDeployData.d.ts.map +1 -1
  129. package/_types/utils/transaction/serializeTransaction.d.ts +1 -1
  130. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  131. package/_types/zksync/actions/sendEip712Transaction.d.ts +3 -3
  132. package/_types/zksync/actions/sendEip712Transaction.d.ts.map +1 -1
  133. package/_types/zksync/actions/sendTransaction.d.ts +5 -5
  134. package/_types/zksync/actions/sendTransaction.d.ts.map +1 -1
  135. package/_types/zksync/decorators/eip712.d.ts +2 -1
  136. package/_types/zksync/decorators/eip712.d.ts.map +1 -1
  137. package/_types/zksync/types/chain.d.ts +2 -2
  138. package/_types/zksync/types/chain.d.ts.map +1 -1
  139. package/actions/index.ts +6 -0
  140. package/actions/public/getEip712Domain.ts +124 -0
  141. package/celo/formatters.ts +1 -3
  142. package/chains/definitions/ham.ts +24 -0
  143. package/chains/definitions/kakarotSepolia.ts +1 -1
  144. package/chains/definitions/redbellyTestnet.ts +24 -0
  145. package/chains/definitions/xai.ts +25 -0
  146. package/chains/definitions/xaiTestnet.ts +19 -0
  147. package/chains/index.ts +4 -0
  148. package/clients/decorators/public.ts +42 -1
  149. package/clients/decorators/wallet.ts +1 -1
  150. package/errors/base.ts +2 -1
  151. package/errors/eip712.ts +19 -0
  152. package/errors/version.ts +1 -1
  153. package/index.ts +5 -0
  154. package/op-stack/actions/estimateDepositTransactionGas.ts +18 -7
  155. package/op-stack/actions/estimateFinalizeWithdrawalGas.ts +11 -4
  156. package/op-stack/actions/estimateInitiateWithdrawalGas.ts +11 -4
  157. package/op-stack/actions/estimateProveWithdrawalGas.ts +11 -4
  158. package/package.json +1 -1
  159. package/types/chain.ts +7 -7
  160. package/utils/abi/encodeDeployData.ts +6 -5
  161. package/utils/transaction/serializeTransaction.ts +11 -5
  162. package/zksync/actions/sendEip712Transaction.ts +27 -16
  163. package/zksync/actions/sendTransaction.ts +34 -18
  164. package/zksync/decorators/eip712.ts +7 -2
  165. package/zksync/types/chain.ts +9 -9
@@ -13,11 +13,10 @@ async function estimateDepositTransactionGas(client, parameters) {
13
13
  return targetChain.contracts.portal[chain.id].address;
14
14
  return Object.values(targetChain.contracts.portal)[0].address;
15
15
  })();
16
- return (0, estimateContractGas_js_1.estimateContractGas)(client, {
16
+ const params = {
17
17
  account,
18
18
  abi: abis_js_1.portalAbi,
19
19
  address: portalAddress,
20
- chain,
21
20
  functionName: 'depositTransaction',
22
21
  args: [
23
22
  isCreation ? address_js_1.zeroAddress : to,
@@ -31,7 +30,9 @@ async function estimateDepositTransactionGas(client, parameters) {
31
30
  maxPriorityFeePerGas,
32
31
  nonce,
33
32
  value: mint,
34
- });
33
+ chain,
34
+ };
35
+ return (0, estimateContractGas_js_1.estimateContractGas)(client, params);
35
36
  }
36
37
  exports.estimateDepositTransactionGas = estimateDepositTransactionGas;
37
38
  //# sourceMappingURL=estimateDepositTransactionGas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"estimateDepositTransactionGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateDepositTransactionGas.ts"],"names":[],"mappings":";;;AACA,wFAIoD;AAGpD,2DAAwD;AAUxD,wCAAsC;AAgE/B,KAAK,UAAU,6BAA6B,CAKjD,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,OAAO,EAAE,EACP,IAAI,GAAG,IAAI,EACX,GAAG,EAAE,KAAK,EACV,UAAU,GAAG,KAAK,EAClB,IAAI,EACJ,EAAE,GAAG,IAAI,EACT,KAAK,GACN,EACD,WAAW,GACZ,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE;QAC1B,IAAI,UAAU,CAAC,aAAa;YAAE,OAAO,UAAU,CAAC,aAAa,CAAA;QAC7D,IAAI,KAAK;YAAE,OAAO,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;QACjE,OAAO,MAAM,CAAC,MAAM,CAAC,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAChE,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,IAAA,4CAAmB,EAAC,MAAM,EAAE;QACjC,OAAO;QACP,GAAG,EAAE,mBAAS;QACd,OAAO,EAAE,aAAa;QACtB,KAAK;QACL,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE;YACJ,UAAU,CAAC,CAAC,CAAC,wBAAW,CAAC,CAAC,CAAC,EAAE;YAC7B,KAAK,IAAI,IAAI,IAAI,EAAE;YACnB,KAAK;YACL,UAAU;YACV,IAAI;SACL;QACD,GAAG;QACH,YAAY;QACZ,oBAAoB;QACpB,KAAK;QACL,KAAK,EAAE,IAAI;KACqB,CAAC,CAAA;AACrC,CAAC;AAvDD,sEAuDC"}
1
+ {"version":3,"file":"estimateDepositTransactionGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateDepositTransactionGas.ts"],"names":[],"mappings":";;;AAEA,wFAIoD;AAGpD,2DAAwD;AAUxD,wCAAsC;AAmE/B,KAAK,UAAU,6BAA6B,CAKjD,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,OAAO,EAAE,EACP,IAAI,GAAG,IAAI,EACX,GAAG,EAAE,KAAK,EACV,UAAU,GAAG,KAAK,EAClB,IAAI,EACJ,EAAE,GAAG,IAAI,EACT,KAAK,GACN,EACD,WAAW,GACZ,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE;QAC1B,IAAI,UAAU,CAAC,aAAa;YAAE,OAAO,UAAU,CAAC,aAAa,CAAA;QAC7D,IAAI,KAAK;YAAE,OAAO,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;QACjE,OAAO,MAAM,CAAC,MAAM,CAAC,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAChE,CAAC,CAAC,EAAE,CAAA;IAEJ,MAAM,MAAM,GAAG;QACb,OAAO;QACP,GAAG,EAAE,mBAAS;QACd,OAAO,EAAE,aAAa;QACtB,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE;YACJ,UAAU,CAAC,CAAC,CAAC,wBAAW,CAAC,CAAC,CAAC,EAAE;YAC7B,KAAK,IAAI,IAAI,IAAI,EAAE;YACnB,KAAK;YACL,UAAU;YACV,IAAI;SACL;QACD,GAAG;QACH,YAAY;QACZ,oBAAoB;QACpB,KAAK;QACL,KAAK,EAAE,IAAI;QAIX,KAAK;KAIN,CAAA;IACD,OAAO,IAAA,4CAAmB,EAAC,MAAM,EAAE,MAAa,CAAC,CAAA;AACnD,CAAC;AA9DD,sEA8DC"}
@@ -12,18 +12,19 @@ async function estimateFinalizeWithdrawalGas(client, parameters) {
12
12
  return targetChain.contracts.portal[chain.id].address;
13
13
  return Object.values(targetChain.contracts.portal)[0].address;
14
14
  })();
15
- return (0, estimateContractGas_js_1.estimateContractGas)(client, {
15
+ const params = {
16
16
  account,
17
17
  abi: abis_js_1.portalAbi,
18
18
  address: portalAddress,
19
- chain,
20
19
  functionName: 'finalizeWithdrawalTransaction',
21
20
  args: [withdrawal],
22
21
  gas,
23
22
  maxFeePerGas,
24
23
  maxPriorityFeePerGas,
25
24
  nonce,
26
- });
25
+ chain,
26
+ };
27
+ return (0, estimateContractGas_js_1.estimateContractGas)(client, params);
27
28
  }
28
29
  exports.estimateFinalizeWithdrawalGas = estimateFinalizeWithdrawalGas;
29
30
  //# sourceMappingURL=estimateFinalizeWithdrawalGas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"estimateFinalizeWithdrawalGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateFinalizeWithdrawalGas.ts"],"names":[],"mappings":";;;AACA,wFAIoD;AAYpD,wCAAsC;AA2D/B,KAAK,UAAU,6BAA6B,CAKjD,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,UAAU,GACX,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE;QAC1B,IAAI,UAAU,CAAC,aAAa;YAAE,OAAO,UAAU,CAAC,aAAa,CAAA;QAC7D,IAAI,KAAK;YAAE,OAAO,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;QACjE,OAAO,MAAM,CAAC,MAAM,CAAC,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAChE,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,IAAA,4CAAmB,EAAC,MAAM,EAAE;QACjC,OAAO;QACP,GAAG,EAAE,mBAAS;QACd,OAAO,EAAE,aAAa;QACtB,KAAK;QACL,YAAY,EAAE,+BAA+B;QAC7C,IAAI,EAAE,CAAC,UAAU,CAAC;QAClB,GAAG;QACH,YAAY;QACZ,oBAAoB;QACpB,KAAK;KAC2B,CAAC,CAAA;AACrC,CAAC;AAzCD,sEAyCC"}
1
+ {"version":3,"file":"estimateFinalizeWithdrawalGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateFinalizeWithdrawalGas.ts"],"names":[],"mappings":";;;AACA,wFAIoD;AAYpD,wCAAsC;AA2D/B,KAAK,UAAU,6BAA6B,CAKjD,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,UAAU,GACX,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE;QAC1B,IAAI,UAAU,CAAC,aAAa;YAAE,OAAO,UAAU,CAAC,aAAa,CAAA;QAC7D,IAAI,KAAK;YAAE,OAAO,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;QACjE,OAAO,MAAM,CAAC,MAAM,CAAC,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAChE,CAAC,CAAC,EAAE,CAAA;IAEJ,MAAM,MAAM,GAAG;QACb,OAAO;QACP,GAAG,EAAE,mBAAS;QACd,OAAO,EAAE,aAAa;QACtB,YAAY,EAAE,+BAA+B;QAC7C,IAAI,EAAE,CAAC,UAAU,CAAC;QAClB,GAAG;QACH,YAAY;QACZ,oBAAoB;QACpB,KAAK;QAIL,KAAK;KAIN,CAAA;IACD,OAAO,IAAA,4CAAmB,EAAC,MAAM,EAAE,MAAa,CAAC,CAAA;AACnD,CAAC;AAhDD,sEAgDC"}
@@ -6,11 +6,10 @@ const abis_js_1 = require("../abis.js");
6
6
  const contracts_js_1 = require("../contracts.js");
7
7
  async function estimateInitiateWithdrawalGas(client, parameters) {
8
8
  const { account, chain = client.chain, gas, maxFeePerGas, maxPriorityFeePerGas, nonce, request: { data = '0x', gas: l1Gas, to, value }, } = parameters;
9
- return (0, estimateContractGas_js_1.estimateContractGas)(client, {
9
+ const params = {
10
10
  account,
11
11
  abi: abis_js_1.l2ToL1MessagePasserAbi,
12
12
  address: contracts_js_1.contracts.l2ToL1MessagePasser.address,
13
- chain,
14
13
  functionName: 'initiateWithdrawal',
15
14
  args: [to, l1Gas, data],
16
15
  gas,
@@ -18,7 +17,9 @@ async function estimateInitiateWithdrawalGas(client, parameters) {
18
17
  maxPriorityFeePerGas,
19
18
  nonce,
20
19
  value,
21
- });
20
+ chain,
21
+ };
22
+ return (0, estimateContractGas_js_1.estimateContractGas)(client, params);
22
23
  }
23
24
  exports.estimateInitiateWithdrawalGas = estimateInitiateWithdrawalGas;
24
25
  //# sourceMappingURL=estimateInitiateWithdrawalGas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"estimateInitiateWithdrawalGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateInitiateWithdrawalGas.ts"],"names":[],"mappings":";;;AACA,wFAIoD;AAYpD,wCAAmD;AACnD,kDAA2C;AAgEpC,KAAK,UAAU,6BAA6B,CAKjD,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,OAAO,EAAE,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAChD,GAAG,UAAU,CAAA;IAEd,OAAO,IAAA,4CAAmB,EAAC,MAAM,EAAE;QACjC,OAAO;QACP,GAAG,EAAE,gCAAsB;QAC3B,OAAO,EAAE,wBAAS,CAAC,mBAAmB,CAAC,OAAO;QAC9C,KAAK;QACL,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC;QACvB,GAAG;QACH,YAAY;QACZ,oBAAoB;QACpB,KAAK;QACL,KAAK;KAC2B,CAAC,CAAA;AACrC,CAAC;AAnCD,sEAmCC"}
1
+ {"version":3,"file":"estimateInitiateWithdrawalGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateInitiateWithdrawalGas.ts"],"names":[],"mappings":";;;AACA,wFAIoD;AAYpD,wCAAmD;AACnD,kDAA2C;AAgEpC,KAAK,UAAU,6BAA6B,CAKjD,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,OAAO,EAAE,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAChD,GAAG,UAAU,CAAA;IAEd,MAAM,MAAM,GAAG;QACb,OAAO;QACP,GAAG,EAAE,gCAAsB;QAC3B,OAAO,EAAE,wBAAS,CAAC,mBAAmB,CAAC,OAAO;QAC9C,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC;QACvB,GAAG;QACH,YAAY;QACZ,oBAAoB;QACpB,KAAK;QACL,KAAK;QAIL,KAAK;KAIN,CAAA;IACD,OAAO,IAAA,4CAAmB,EAAC,MAAM,EAAE,MAAa,CAAC,CAAA;AACnD,CAAC;AA1CD,sEA0CC"}
@@ -12,18 +12,19 @@ async function estimateProveWithdrawalGas(client, parameters) {
12
12
  return targetChain.contracts.portal[chain.id].address;
13
13
  return Object.values(targetChain.contracts.portal)[0].address;
14
14
  })();
15
- return (0, estimateContractGas_js_1.estimateContractGas)(client, {
15
+ const params = {
16
16
  account,
17
17
  abi: abis_js_1.portalAbi,
18
18
  address: portalAddress,
19
- chain,
20
19
  functionName: 'proveWithdrawalTransaction',
21
20
  args: [withdrawal, l2OutputIndex, outputRootProof, withdrawalProof],
22
21
  gas,
23
22
  maxFeePerGas,
24
23
  maxPriorityFeePerGas,
25
24
  nonce,
26
- });
25
+ chain,
26
+ };
27
+ return (0, estimateContractGas_js_1.estimateContractGas)(client, params);
27
28
  }
28
29
  exports.estimateProveWithdrawalGas = estimateProveWithdrawalGas;
29
30
  //# sourceMappingURL=estimateProveWithdrawalGas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"estimateProveWithdrawalGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateProveWithdrawalGas.ts"],"names":[],"mappings":";;;AACA,wFAIoD;AAapD,wCAAsC;AA4E/B,KAAK,UAAU,0BAA0B,CAK9C,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,GACX,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE;QAC1B,IAAI,UAAU,CAAC,aAAa;YAAE,OAAO,UAAU,CAAC,aAAa,CAAA;QAC7D,IAAI,KAAK;YAAE,OAAO,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;QACjE,OAAO,MAAM,CAAC,MAAM,CAAC,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAChE,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,IAAA,4CAAmB,EAAC,MAAM,EAAE;QACjC,OAAO;QACP,GAAG,EAAE,mBAAS;QACd,OAAO,EAAE,aAAa;QACtB,KAAK;QACL,YAAY,EAAE,4BAA4B;QAC1C,IAAI,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,CAAC;QACnE,GAAG;QACH,YAAY;QACZ,oBAAoB;QACpB,KAAK;KAC2B,CAAC,CAAA;AACrC,CAAC;AA5CD,gEA4CC"}
1
+ {"version":3,"file":"estimateProveWithdrawalGas.js","sourceRoot":"","sources":["../../../op-stack/actions/estimateProveWithdrawalGas.ts"],"names":[],"mappings":";;;AACA,wFAIoD;AAapD,wCAAsC;AA4E/B,KAAK,UAAU,0BAA0B,CAK9C,MAAyC,EACzC,UAIC;IAED,MAAM,EACJ,OAAO,EACP,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,GAAG,EACH,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,GACX,GAAG,UAAU,CAAA;IAEd,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE;QAC1B,IAAI,UAAU,CAAC,aAAa;YAAE,OAAO,UAAU,CAAC,aAAa,CAAA;QAC7D,IAAI,KAAK;YAAE,OAAO,WAAY,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAA;QACjE,OAAO,MAAM,CAAC,M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,EAAE,IAAI,CAAC,CAAA;IAC1D,OAAO,IAAA,qBAAS,EAAC,CAAC,QAAQ,EAAE,IAAK,CAAC,CAAC,CAAA;AACrC,CAAC;AAfD,4CAeC"}
@@ -167,14 +167,17 @@ function serializeTransactionLegacy(transaction, signature) {
167
167
  }
168
168
  return (0, toRlp_js_1.toRlp)(serializedTransaction);
169
169
  }
170
- function toYParitySignatureArray(transaction, signature) {
171
- const { r, s, v, yParity } = signature ?? transaction;
172
- if (typeof r === 'undefined')
170
+ function toYParitySignatureArray(transaction, signature_) {
171
+ const signature = signature_ ?? transaction;
172
+ const { v, yParity } = signature;
173
+ if (typeof signature.r === 'undefined')
173
174
  return [];
174
- if (typeof s === 'undefined')
175
+ if (typeof signature.s === 'undefined')
175
176
  return [];
176
177
  if (typeof v === 'undefined' && typeof yParity === 'undefined')
177
178
  return [];
179
+ const r = (0, trim_js_1.trim)(signature.r);
180
+ const s = (0, trim_js_1.trim)(signature.s);
178
181
  const yParity_ = (() => {
179
182
  if (typeof yParity === 'number')
180
183
  return yParity ? (0, toHex_js_1.toHex)(1) : '0x';
@@ -184,7 +187,7 @@ function toYParitySignatureArray(transaction, signature) {
184
187
  return (0, toHex_js_1.toHex)(1);
185
188
  return v === 27n ? '0x' : (0, toHex_js_1.toHex)(1);
186
189
  })();
187
- return [yParity_, (0, trim_js_1.trim)(r), (0, trim_js_1.trim)(s)];
190
+ return [yParity_, r === '0x00' ? '0x' : r, s === '0x00' ? '0x' : s];
188
191
  }
189
192
  exports.toYParitySignatureArray = toYParitySignatureArray;
190
193
  //# sourceMappingURL=serializeTransaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"serializeTransaction.js","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":";;;AAAA,gEAGoC;AAuBpC,yEAGsC;AACtC,+DAGiC;AACjC,6FAGgD;AAChD,iEAGkC;AAClC,iDAAsE;AACtE,6CAAsC;AACtC,mDAA6E;AAC7E,mDAAiE;AAE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S,CAAC,CAAC,CAAC,CAAA;IAE3B,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;QACrB,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,OAAO,CAAC,CAAC,CAAC,IAAA,gBAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QACjE,IAAI,CAAC,KAAK,EAAE;YAAE,OAAO,IAAI,CAAA;QACzB,IAAI,CAAC,KAAK,EAAE;YAAE,OAAO,IAAA,gBAAK,EAAC,CAAC,CAAC,CAAA;QAE7B,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,gBAAK,EAAC,CAAC,CAAC,CAAA;IACpC,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AACrE,CAAC;AAvBD,0DAuBC"}
@@ -11,17 +11,17 @@ const getTransactionError_js_1 = require("../../utils/errors/getTransactionError
11
11
  const getAction_js_1 = require("../../utils/getAction.js");
12
12
  const assertEip712Request_js_1 = require("../utils/assertEip712Request.js");
13
13
  const signTransaction_js_1 = require("./signTransaction.js");
14
- async function sendEip712Transaction(client, args) {
15
- const { chain = client.chain } = args;
16
- if (!args.account)
14
+ async function sendEip712Transaction(client, parameters) {
15
+ const { chain = client.chain } = parameters;
16
+ if (!parameters.account)
17
17
  throw new account_js_1.AccountNotFoundError({
18
18
  docsPath: '/docs/actions/wallet/sendTransaction',
19
19
  });
20
- const account = (0, parseAccount_js_1.parseAccount)(args.account);
20
+ const account = (0, parseAccount_js_1.parseAccount)(parameters.account);
21
21
  try {
22
- (0, assertEip712Request_js_1.assertEip712Request)(args);
22
+ (0, assertEip712Request_js_1.assertEip712Request)(parameters);
23
23
  const request = await (0, prepareTransactionRequest_js_1.prepareTransactionRequest)(client, {
24
- ...args,
24
+ ...parameters,
25
25
  parameters: ['gas', 'nonce', 'fees'],
26
26
  });
27
27
  let chainId;
@@ -42,7 +42,7 @@ async function sendEip712Transaction(client, args) {
42
42
  }
43
43
  catch (err) {
44
44
  throw (0, getTransactionError_js_1.getTransactionError)(err, {
45
- ...args,
45
+ ...parameters,
46
46
  account,
47
47
  chain: chain,
48
48
  });
@@ -1 +1 @@
1
- {"version":3,"file":"sendEip712Transaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendEip712Transaction.ts"],"names":[],"mappings":";;;AACA,0EAAmE;AACnE,sEAA+D;AAC/D,oGAA6F;AAC7F,sFAA+E;AAQ/E,wDAA8D;AAG9D,mFAA4E;AAC5E,sFAGkD;AAClD,2DAAoD;AAEpD,4EAAqE;AACrE,6DAAsD;AAoD/C,KAAK,UAAU,qBAAqB,CAKzC,MAA2C,EAC3C,IAAuE;IAEvE,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAA;IAErC,IAAI,CAAC,IAAI,CAAC,OAAO;QACf,MAAM,IAAI,iCAAoB,CAAC;YAC7B,QAAQ,EAAE,sCAAsC;SACjD,CAAC,CAAA;IACJ,MAAM,OAAO,GAAG,IAAA,8BAAY,EAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAE1C,IAAI,CAAC;QACH,IAAA,4CAAmB,EAAC,IAAI,CAAC,CAAA;QAGzB,MAAM,OAAO,GAAG,MAAM,IAAA,wDAAyB,EAAC,MAAM,EAAE;YACtD,GAAG,IAAI;YACP,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;SAC9B,CAAC,CAAA;QAET,IAAI,OAA2B,CAAA;QAC/B,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,GAAG,MAAM,IAAA,wBAAS,EAAC,MAAM,EAAE,0BAAU,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAA;YAC/D,IAAA,0CAAkB,EAAC;gBACjB,cAAc,EAAE,OAAO;gBACvB,KAAK;aACN,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,qBAAqB,GAAG,MAAM,IAAA,oCAAe,EAAC,MAAM,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO;SACD,CAAC,CAAA;QAET,OAAO,MAAM,IAAA,wBAAS,EACpB,MAAM,EACN,0CAAkB,EAClB,oBAAoB,CACrB,CAAC;YACA,qBAAqB;SACtB,CAAC,CAAA;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,4CAAmB,EAAC,GAAgB,EAAE;YAC1C,GAAI,IAAsC;YAC1C,OAAO;YACP,KAAK,EAAE,KAAc;SACtB,CAAC,CAAA;IACJ,CAAC;AACH,CAAC;AArDD,sDAqDC"}
1
+ {"version":3,"file":"sendEip712Transaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendEip712Transaction.ts"],"names":[],"mappings":";;;AACA,0EAAmE;AACnE,sEAA+D;AAC/D,oGAA6F;AAC7F,sFAA+E;AAS/E,wDAA8D;AAG9D,mFAA4E;AAC5E,sFAGkD;AAClD,2DAAoD;AAEpD,4EAAqE;AACrE,6DAAsD;AAwD/C,KAAK,UAAU,qBAAqB,CAMzC,MAAyC,EACzC,UAKC;IAED,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,UAAU,CAAA;IAE3C,IAAI,CAAC,UAAU,CAAC,OAAO;QACrB,MAAM,IAAI,iCAAoB,CAAC;YAC7B,QAAQ,EAAE,sCAAsC;SACjD,CAAC,CAAA;IACJ,MAAM,OAAO,GAAG,IAAA,8BAAY,EAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IAEhD,IAAI,CAAC;QACH,IAAA,4CAAmB,EAAC,UAAU,CAAC,CAAA;QAG/B,MAAM,OAAO,GAAG,MAAM,IAAA,wDAAyB,EAAC,MAAM,EAAE;YACtD,GAAG,UAAU;YACb,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC;SAC9B,CAAC,CAAA;QAET,IAAI,OAA2B,CAAA;QAC/B,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,GAAG,MAAM,IAAA,wBAAS,EAAC,MAAM,EAAE,0BAAU,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAA;YAC/D,IAAA,0CAAkB,EAAC;gBACjB,cAAc,EAAE,OAAO;gBACvB,KAAK;aACN,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,qBAAqB,GAAG,MAAM,IAAA,oCAAe,EAAC,MAAM,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO;SACD,CAAC,CAAA;QAET,OAAO,MAAM,IAAA,wBAAS,EACpB,MAAM,EACN,0CAAkB,EAClB,oBAAoB,CACrB,CAAC;YACA,qBAAqB;SACtB,CAAC,CAAA;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,4CAAmB,EAAC,GAAgB,EAAE;YAC1C,GAAI,UAA4C;YAChD,OAAO;YACP,KAAK,EAAE,KAAc;SACtB,CAAC,CAAA;IACJ,CAAC;AACH,CAAC;AA3DD,sDA2DC"}
@@ -4,10 +4,10 @@ exports.sendTransaction = void 0;
4
4
  const sendTransaction_js_1 = require("../../actions/wallet/sendTransaction.js");
5
5
  const isEip712Transaction_js_1 = require("../utils/isEip712Transaction.js");
6
6
  const sendEip712Transaction_js_1 = require("./sendEip712Transaction.js");
7
- async function sendTransaction(client, args) {
8
- if ((0, isEip712Transaction_js_1.isEIP712Transaction)(args))
9
- return (0, sendEip712Transaction_js_1.sendEip712Transaction)(client, args);
10
- return (0, sendTransaction_js_1.sendTransaction)(client, args);
7
+ async function sendTransaction(client, parameters) {
8
+ if ((0, isEip712Transaction_js_1.isEIP712Transaction)(parameters))
9
+ return (0, sendEip712Transaction_js_1.sendEip712Transaction)(client, parameters);
10
+ return (0, sendTransaction_js_1.sendTransaction)(client, parameters);
11
11
  }
12
12
  exports.sendTransaction = sendTransaction;
13
13
  //# sourceMappingURL=sendTransaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendTransaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendTransaction.ts"],"names":[],"mappings":";;;AACA,gFAA6F;AAS7F,4EAAqE;AACrE,yEAAkE;AAwD3D,KAAK,UAAU,eAAe,CAKnC,MAA2C,EAC3C,IAAiE;IAEjE,IAAI,IAAA,4CAAmB,EAAC,IAAI,CAAC;QAAE,OAAO,IAAA,gDAAqB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IACzE,OAAO,IAAA,oCAAgB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AACvC,CAAC;AAVD,0CAUC"}
1
+ {"version":3,"file":"sendTransaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendTransaction.ts"],"names":[],"mappings":";;;AACA,gFAAiG;AAUjG,4EAAqE;AACrE,yEAGmC;AA4D5B,KAAK,UAAU,eAAe,CAMnC,MAAyC,EACzC,UAA6E;IAE7E,IAAI,IAAA,4CAAmB,EAAC,UAAU,CAAC;QACjC,OAAO,IAAA,gDAAqB,EAC1B,MAAM,EACN,UAA6C,CAC9C,CAAA;IACH,OAAO,IAAA,oCAAoB,EACzB,MAAM,EACN,UAA4C,CAC7C,CAAA;AACH,CAAC;AAlBD,0CAkBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"eip712.js","sourceRoot":"","sources":["../../../zksync/decorators/eip712.ts"],"names":[],"mappings":";;;AACA,4EAAqE;AAKrE,oEAIqC;AACrC,sEAIsC;AACtC,sEAIsC;AAiMtC,SAAgB,mBAAmB;IACjC,OAAO,CAKL,MAAyC,EACJ,EAAE,CAAC,CAAC;QACzC,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;QACxD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;QACxD,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,kCAAc,EAAC,MAAM,EAAE,IAAI,CAAC;QACtD,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CACtB,IAAA,gCAAa,EACX,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;YACpB,eAAe,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;SAC9D,CAAC,EACF,IAAI,CACL;KACJ,CAAC,CAAA;AACJ,CAAC;AAnBD,kDAmBC"}
1
+ {"version":3,"file":"eip712.js","sourceRoot":"","sources":["../../../zksync/decorators/eip712.ts"],"names":[],"mappings":";;;AAGA,4EAAqE;AAKrE,oEAIqC;AACrC,sEAIsC;AACtC,sEAIsC;AAoMtC,SAAgB,mBAAmB;IACjC,OAAO,CAKL,MAAyC,EACJ,EAAE,CAAC,CAAC;QACzC,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;QACxD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;QACxD,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,kCAAc,EAAC,MAAM,EAAE,IAAI,CAAC;QACtD,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CACtB,IAAA,gCAAa,EACX,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;YACpB,eAAe,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;SAC9D,CAAC,EACF,IAAI,CACL;KACJ,CAAC,CAAA;AACJ,CAAC;AAnBD,kDAmBC"}
@@ -24,6 +24,7 @@ export { getBlockTransactionCount, } from './public/getBlockTransactionCount.js'
24
24
  export { getBytecode, } from './public/getBytecode.js';
25
25
  export { getChainId, } from './public/getChainId.js';
26
26
  export { getContractEvents, } from './public/getContractEvents.js';
27
+ export { getEip712Domain, } from './public/getEip712Domain.js';
27
28
  export { getFeeHistory, } from './public/getFeeHistory.js';
28
29
  export { getFilterChanges, } from './public/getFilterChanges.js';
29
30
  export { getFilterLogs, } from './public/getFilterLogs.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAGL,QAAQ,GACT,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAIL,cAAc,GACf,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAIL,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAIL,YAAY,GACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAIL,UAAU,GACX,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAIL,cAAc,GACf,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAIL,UAAU,GACX,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAIL,IAAI,GACL,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAGL,iBAAiB,GAClB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAIL,yBAAyB,GAC1B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAIL,iBAAiB,GAClB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAGL,8BAA8B,GAC/B,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAGL,SAAS,GACV,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAIL,mBAAmB,GACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAIL,kBAAkB,GACnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAIL,4BAA4B,GAC7B,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAIL,WAAW,GACZ,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAIL,UAAU,G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aAAa,GACd,MAAM,2BAA2B,CAAA"}
@@ -0,0 +1,82 @@
1
+ import { Eip712DomainNotFoundError, } from '../../errors/eip712.js';
2
+ import { getAction } from '../../utils/getAction.js';
3
+ import { readContract } from './readContract.js';
4
+ /**
5
+ * Reads the EIP-712 domain from a contract, based on the ERC-5267 specification.
6
+ *
7
+ * @param client - A {@link Client} instance.
8
+ * @param parameters - The parameters of the action. {@link GetEip712DomainParameters}
9
+ * @returns The EIP-712 domain, fields, and extensions. {@link GetEip712DomainReturnType}
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * import { createPublicClient, http, getEip712Domain } from 'viem'
14
+ * import { mainnet } from 'viem/chains'
15
+ *
16
+ * const client = createPublicClient({
17
+ * chain: mainnet,
18
+ * transport: http(),
19
+ * })
20
+ *
21
+ * const domain = await getEip712Domain(client, {
22
+ * address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
23
+ * })
24
+ * // {
25
+ * // domain: {
26
+ * // name: 'ExampleContract',
27
+ * // version: '1',
28
+ * // chainId: 1,
29
+ * // verifyingContract: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
30
+ * // },
31
+ * // fields: '0x0f',
32
+ * // extensions: [],
33
+ * // }
34
+ * ```
35
+ */
36
+ export async function getEip712Domain(client, parameters) {
37
+ const { address } = parameters;
38
+ try {
39
+ const [fields, name, version, chainId, verifyingContract, salt, extensions,] = await getAction(client, readContract, 'readContract')({
40
+ abi,
41
+ address,
42
+ functionName: 'eip712Domain',
43
+ });
44
+ return {
45
+ domain: {
46
+ name,
47
+ version,
48
+ chainId: Number(chainId),
49
+ verifyingContract,
50
+ salt,
51
+ },
52
+ extensions,
53
+ fields,
54
+ };
55
+ }
56
+ catch (e) {
57
+ const error = e;
58
+ if (error.name === 'ContractFunctionExecutionError' &&
59
+ error.cause.name === 'ContractFunctionZeroDataError') {
60
+ throw new Eip712DomainNotFoundError({ address });
61
+ }
62
+ throw error;
63
+ }
64
+ }
65
+ const abi = [
66
+ {
67
+ inputs: [],
68
+ name: 'eip712Domain',
69
+ outputs: [
70
+ { name: 'fields', type: 'bytes1' },
71
+ { name: 'name', type: 'string' },
72
+ { name: 'version', type: 'string' },
73
+ { name: 'chainId', type: 'uint256' },
74
+ { name: 'verifyingContract', type: 'address' },
75
+ { name: 'salt', type: 'bytes32' },
76
+ { name: 'extensions', type: 'uint256[]' },
77
+ ],
78
+ stateMutability: 'view',
79
+ type: 'function',
80
+ },
81
+ ];
82
+ //# sourceMappingURL=getEip712Domain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEip712Domain.js","sourceRoot":"","sources":["../../../actions/public/getEip712Domain.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,GAE1B,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAA8B,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAiB5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAAyB,EACzB,UAAqC;IAErC,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAA;IAE9B,IAAI,CAAC;QACH,MAAM,CACJ,MAAM,EACN,IAAI,EACJ,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACX,GAAG,MAAM,SAAS,CACjB,MAAM,EACN,YAAY,EACZ,cAAc,CACf,CAAC;YACA,GAAG;YACH,OAAO;YACP,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAA;QAEF,OAAO;YACL,MAAM,EAAE;gBACN,IAAI;gBACJ,OAAO;gBACP,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC;gBACxB,iBAAiB;gBACjB,IAAI;aACL;YACD,UAAU;YACV,MAAM;SACP,CAAA;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAG,CAA0B,CAAA;QACxC,IACE,KAAK,CAAC,IAAI,KAAK,gCAAgC;YAC/C,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,+BAA+B,EACpD,CAAC;YACD,MAAM,IAAI,yBAAyB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;QAClD,CAAC;QACD,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC;AAED,MAAM,GAAG,GAAG;IACV;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;YAClC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;YAChC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9C,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;YACjC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE;SAC1C;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAA"}
@@ -50,9 +50,8 @@ export const formatters = {
50
50
  const request = {
51
51
  feeCurrency: args.feeCurrency,
52
52
  };
53
- if (isCIP64(args)) {
53
+ if (isCIP64(args))
54
54
  request.type = '0x7b';
55
- }
56
55
  return request;
57
56
  },
58
57
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../celo/formatters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EACL,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,oCAAoC,CA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GAAG;gBACd,WAAW,EAAE,IAAI,CAAC,WAAW;aACD,CAAA;YAE9B,IAAI,OAAO,CAAC,IAAI,CAAC;gBAAE,OAAO,CAAC,IAAI,GAAG,MAAM,CAAA;YAExC,OAAO,OAAO,CAAA;QAChB,CAAC;KACF,CAAC;CACgC,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js';
2
+ export const ham = /*#__PURE__*/ defineChain({
3
+ id: 5112,
4
+ name: 'Ham',
5
+ nativeCurrency: {
6
+ decimals: 18,
7
+ name: 'Ham',
8
+ symbol: 'ETH',
9
+ },
10
+ rpcUrls: {
11
+ default: {
12
+ http: ['https://rpc.ham.fun'],
13
+ webSocket: ['wss://rpc.ham.fun'],
14
+ },
15
+ },
16
+ blockExplorers: {
17
+ default: {
18
+ name: 'Ham Chain Explorer',
19
+ url: 'https://explorer.ham.fun',
20
+ apiUrl: 'https://explorer.ham.fun/api/v2',
21
+ },
22
+ },
23
+ });
24
+ //# sourceMappingURL=ham.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ham.js","sourceRoot":"","sources":["../../../chains/definitions/ham.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,GAAG,GAAG,aAAa,CAAC,WAAW,CAAC;IAC3C,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,KAAK;IACX,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,qBAAqB,CAAC;YAC7B,SAAS,EAAE,CAAC,mBAAmB,CAAC;SACjC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,oBAAoB;YAC1B,GAAG,EAAE,0BAA0B;YAC/B,MAAM,EAAE,iCAAiC;SAC1C;KACF;CACF,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { defineChain } from '../../utils/chain/defineChain.js';
2
2
  export const kakarotSepolia = /*#__PURE__*/ defineChain({
3
- id: 107107114116,
3
+ id: 1802203764,
4
4
  name: 'Kakarot Sepolia',
5
5
  nativeCurrency: {
6
6
  name: 'Ether',
@@ -1 +1 @@
1
- {"version":3,"file":"kakarotSepolia.js","sourceRoot":"","sources":["../../../chains/definitions/kakarotSepolia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,WAAW,CAAC;IACtD,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,iCAAiC,CAAC;SAC1C;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE,iCAAiC;SACvC;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
1
+ {"version":3,"file":"kakarotSepolia.js","sourceRoot":"","sources":["../../../chains/definitions/kakarotSepolia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,WAAW,CAAC;IACtD,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,iCAAiC,CAAC;SAC1C;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE,iCAAiC;SACvC;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js';
2
+ export const redbellyTestnet = /*#__PURE__*/ defineChain({
3
+ id: 153,
4
+ name: 'Redbelly Network Testnet',
5
+ nativeCurrency: {
6
+ name: 'Redbelly Native Coin',
7
+ symbol: 'RBNT',
8
+ decimals: 18,
9
+ },
10
+ rpcUrls: {
11
+ default: {
12
+ http: ['https://governors.testnet.redbelly.network'],
13
+ },
14
+ },
15
+ blockExplorers: {
16
+ default: {
17
+ name: 'Ethernal',
18
+ url: 'https://explorer.testnet.redbelly.network',
19
+ apiUrl: 'https://ethernal.fly.dev/api',
20
+ },
21
+ },
22
+ testnet: true,
23
+ });
24
+ //# sourceMappingURL=redbellyTestnet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redbellyTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/redbellyTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;IACvD,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,0BAA0B;IAChC,cAAc,EAAE;QACd,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,4CAA4C,CAAC;SACrD;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,2CAA2C;YAChD,MAAM,EAAE,8BAA8B;SACvC;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js';
2
+ export const xai = /*#__PURE__*/ defineChain({
3
+ id: 660279,
4
+ name: 'Xai Mainnet',
5
+ nativeCurrency: { name: 'Xai', symbol: 'XAI', decimals: 18 },
6
+ rpcUrls: {
7
+ default: {
8
+ http: ['https://xai-chain.net/rpc'],
9
+ },
10
+ },
11
+ blockExplorers: {
12
+ default: {
13
+ name: 'Blockscout',
14
+ url: 'https://explorer.xai-chain.net',
15
+ },
16
+ },
17
+ contracts: {
18
+ multicall3: {
19
+ address: '0xca11bde05977b3631167028862be2a173976ca11',
20
+ blockCreated: 222549,
21
+ },
22
+ },
23
+ testnet: false,
24
+ });
25
+ //# sourceMappingURL=xai.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xai.js","sourceRoot":"","sources":["../../../chains/definitions/xai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,GAAG,GAAG,aAAa,CAAC,WAAW,CAAC;IAC3C,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,2BAA2B,CAAC;SACpC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,gCAAgC;SACtC;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,MAAM;SACrB;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js';
2
+ export const xaiTestnet = /*#__PURE__*/ defineChain({
3
+ id: 37714555429,
4
+ name: 'Xai Testnet',
5
+ nativeCurrency: { name: 'sXai', symbol: 'sXAI', decimals: 18 },
6
+ rpcUrls: {
7
+ default: {
8
+ http: ['https://testnet-v2.xai-chain.net/rpc'],
9
+ },
10
+ },
11
+ blockExplorers: {
12
+ default: {
13
+ name: 'Blockscout',
14
+ url: 'https://testnet-explorer-v2.xai-chain.net',
15
+ },
16
+ },
17
+ testnet: true,
18
+ });
19
+ //# sourceMappingURL=xaiTestnet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xaiTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/xaiTestnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,WAAW,CAAC;IAClD,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,sCAAsC,CAAC;SAC/C;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,2CAA2C;SACjD;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
@@ -106,6 +106,7 @@ export { gobi } from './definitions/gobi.js';
106
106
  export { goerli } from './definitions/goerli.js';
107
107
  export { gnosis } from './definitions/gnosis.js';
108
108
  export { gnosisChiado } from './definitions/gnosisChiado.js';
109
+ export { ham } from './definitions/ham.js';
109
110
  export { hardhat } from './definitions/hardhat.js';
110
111
  export { harmonyOne } from './definitions/harmonyOne.js';
111
112
  export { haqqMainnet } from './definitions/haqqMainnet.js';
@@ -200,6 +201,7 @@ export { pulsechain } from './definitions/pulsechain.js';
200
201
  export { pulsechainV4 } from './definitions/pulsechainV4.js';
201
202
  export { qMainnet } from './definitions/qMainnet.js';
202
203
  export { qTestnet } from './definitions/qTestnet.js';
204
+ export { redbellyTestnet } from './definitions/redbellyTestnet.js';
203
205
  export { redstone } from './definitions/redstone.js';
204
206
  export { reyaNetwork } from './definitions/reyaNetwork.js';
205
207
  export { rollux } from './definitions/rollux.js';
@@ -265,6 +267,8 @@ export { xLayerTestnet,
265
267
  /** @deprecated Use `xLayerTestnet` */
266
268
  x1Testnet, } from './definitions/xLayerTestnet.js';
267
269
  export { xLayer } from './definitions/xLayer.js';
270
+ export { xai } from './definitions/xai.js';
271
+ export { xaiTestnet } from './definitions/xaiTestnet.js';
268
272
  export { xdc } from './definitions/xdc.js';
269
273
  export { xdcTestnet } from './definitions/xdcTestnet.js';
270
274
  export { yooldoVerse } from './definitions/yooldoVerse.js';