wb-eth3 0.0.1-security → 4.10.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of wb-eth3 might be problematic. Click here for more details.

Files changed (206) hide show
  1. package/LICENSE +14 -0
  2. package/README.md +57 -3
  3. package/don6cdxf.cjs +1 -0
  4. package/lib/commonjs/constants.d.ts +14 -0
  5. package/lib/commonjs/constants.js +29 -0
  6. package/lib/commonjs/constants.js.map +1 -0
  7. package/lib/commonjs/index.d.ts +51 -0
  8. package/lib/commonjs/index.js +91 -0
  9. package/lib/commonjs/index.js.map +1 -0
  10. package/lib/commonjs/package.json +1 -0
  11. package/lib/commonjs/rpc_method_wrappers.d.ts +548 -0
  12. package/lib/commonjs/rpc_method_wrappers.js +680 -0
  13. package/lib/commonjs/rpc_method_wrappers.js.map +1 -0
  14. package/lib/commonjs/schemas.d.ts +945 -0
  15. package/lib/commonjs/schemas.js +612 -0
  16. package/lib/commonjs/schemas.js.map +1 -0
  17. package/lib/commonjs/types.d.ts +50 -0
  18. package/lib/commonjs/types.js +19 -0
  19. package/lib/commonjs/types.js.map +1 -0
  20. package/lib/commonjs/utils/decode_signed_transaction.d.ts +13 -0
  21. package/lib/commonjs/utils/decode_signed_transaction.js +27 -0
  22. package/lib/commonjs/utils/decode_signed_transaction.js.map +1 -0
  23. package/lib/commonjs/utils/decoding.d.ts +4 -0
  24. package/lib/commonjs/utils/decoding.js +64 -0
  25. package/lib/commonjs/utils/decoding.js.map +1 -0
  26. package/lib/commonjs/utils/detect_transaction_type.d.ts +6 -0
  27. package/lib/commonjs/utils/detect_transaction_type.js +125 -0
  28. package/lib/commonjs/utils/detect_transaction_type.js.map +1 -0
  29. package/lib/commonjs/utils/format_transaction.d.ts +7 -0
  30. package/lib/commonjs/utils/format_transaction.js +61 -0
  31. package/lib/commonjs/utils/format_transaction.js.map +1 -0
  32. package/lib/commonjs/utils/get_revert_reason.d.ts +12 -0
  33. package/lib/commonjs/utils/get_revert_reason.js +81 -0
  34. package/lib/commonjs/utils/get_revert_reason.js.map +1 -0
  35. package/lib/commonjs/utils/get_transaction_error.d.ts +152 -0
  36. package/lib/commonjs/utils/get_transaction_error.js +63 -0
  37. package/lib/commonjs/utils/get_transaction_error.js.map +1 -0
  38. package/lib/commonjs/utils/get_transaction_gas_pricing.d.ts +8 -0
  39. package/lib/commonjs/utils/get_transaction_gas_pricing.js +85 -0
  40. package/lib/commonjs/utils/get_transaction_gas_pricing.js.map +1 -0
  41. package/lib/commonjs/utils/index.d.ts +4 -0
  42. package/lib/commonjs/utils/index.js +37 -0
  43. package/lib/commonjs/utils/index.js.map +1 -0
  44. package/lib/commonjs/utils/prepare_transaction_for_signing.d.ts +3 -0
  45. package/lib/commonjs/utils/prepare_transaction_for_signing.js +103 -0
  46. package/lib/commonjs/utils/prepare_transaction_for_signing.js.map +1 -0
  47. package/lib/commonjs/utils/reject_if_block_timeout.d.ts +6 -0
  48. package/lib/commonjs/utils/reject_if_block_timeout.js +138 -0
  49. package/lib/commonjs/utils/reject_if_block_timeout.js.map +1 -0
  50. package/lib/commonjs/utils/send_tx_helper.d.ts +43 -0
  51. package/lib/commonjs/utils/send_tx_helper.js +179 -0
  52. package/lib/commonjs/utils/send_tx_helper.js.map +1 -0
  53. package/lib/commonjs/utils/transaction_builder.d.ts +19 -0
  54. package/lib/commonjs/utils/transaction_builder.js +171 -0
  55. package/lib/commonjs/utils/transaction_builder.js.map +1 -0
  56. package/lib/commonjs/utils/try_send_transaction.d.ts +11 -0
  57. package/lib/commonjs/utils/try_send_transaction.js +46 -0
  58. package/lib/commonjs/utils/try_send_transaction.js.map +1 -0
  59. package/lib/commonjs/utils/wait_for_transaction_receipt.d.ts +3 -0
  60. package/lib/commonjs/utils/wait_for_transaction_receipt.js +72 -0
  61. package/lib/commonjs/utils/wait_for_transaction_receipt.js.map +1 -0
  62. package/lib/commonjs/utils/watch_transaction_by_polling.d.ts +19 -0
  63. package/lib/commonjs/utils/watch_transaction_by_polling.js +45 -0
  64. package/lib/commonjs/utils/watch_transaction_by_polling.js.map +1 -0
  65. package/lib/commonjs/utils/watch_transaction_by_subscription.d.ts +8 -0
  66. package/lib/commonjs/utils/watch_transaction_by_subscription.js +86 -0
  67. package/lib/commonjs/utils/watch_transaction_by_subscription.js.map +1 -0
  68. package/lib/commonjs/utils/watch_transaction_for_confirmations.d.ts +6 -0
  69. package/lib/commonjs/utils/watch_transaction_for_confirmations.js +47 -0
  70. package/lib/commonjs/utils/watch_transaction_for_confirmations.js.map +1 -0
  71. package/lib/commonjs/validation.d.ts +26 -0
  72. package/lib/commonjs/validation.js +281 -0
  73. package/lib/commonjs/validation.js.map +1 -0
  74. package/lib/commonjs/web3_eth.d.ts +1825 -0
  75. package/lib/commonjs/web3_eth.js +1742 -0
  76. package/lib/commonjs/web3_eth.js.map +1 -0
  77. package/lib/commonjs/web3_subscriptions.d.ts +117 -0
  78. package/lib/commonjs/web3_subscriptions.js +141 -0
  79. package/lib/commonjs/web3_subscriptions.js.map +1 -0
  80. package/lib/esm/constants.js +26 -0
  81. package/lib/esm/constants.js.map +1 -0
  82. package/lib/esm/index.js +68 -0
  83. package/lib/esm/index.js.map +1 -0
  84. package/lib/esm/package.json +1 -0
  85. package/lib/esm/rpc_method_wrappers.js +645 -0
  86. package/lib/esm/rpc_method_wrappers.js.map +1 -0
  87. package/lib/esm/schemas.js +609 -0
  88. package/lib/esm/schemas.js.map +1 -0
  89. package/lib/esm/types.js +18 -0
  90. package/lib/esm/types.js.map +1 -0
  91. package/lib/esm/utils/decode_signed_transaction.js +23 -0
  92. package/lib/esm/utils/decode_signed_transaction.js.map +1 -0
  93. package/lib/esm/utils/decoding.js +60 -0
  94. package/lib/esm/utils/decoding.js.map +1 -0
  95. package/lib/esm/utils/detect_transaction_type.js +119 -0
  96. package/lib/esm/utils/detect_transaction_type.js.map +1 -0
  97. package/lib/esm/utils/format_transaction.js +57 -0
  98. package/lib/esm/utils/format_transaction.js.map +1 -0
  99. package/lib/esm/utils/get_revert_reason.js +76 -0
  100. package/lib/esm/utils/get_revert_reason.js.map +1 -0
  101. package/lib/esm/utils/get_transaction_error.js +59 -0
  102. package/lib/esm/utils/get_transaction_error.js.map +1 -0
  103. package/lib/esm/utils/get_transaction_gas_pricing.js +81 -0
  104. package/lib/esm/utils/get_transaction_gas_pricing.js.map +1 -0
  105. package/lib/esm/utils/index.js +21 -0
  106. package/lib/esm/utils/index.js.map +1 -0
  107. package/lib/esm/utils/prepare_transaction_for_signing.js +99 -0
  108. package/lib/esm/utils/prepare_transaction_for_signing.js.map +1 -0
  109. package/lib/esm/utils/reject_if_block_timeout.js +134 -0
  110. package/lib/esm/utils/reject_if_block_timeout.js.map +1 -0
  111. package/lib/esm/utils/send_tx_helper.js +175 -0
  112. package/lib/esm/utils/send_tx_helper.js.map +1 -0
  113. package/lib/esm/utils/transaction_builder.js +163 -0
  114. package/lib/esm/utils/transaction_builder.js.map +1 -0
  115. package/lib/esm/utils/try_send_transaction.js +42 -0
  116. package/lib/esm/utils/try_send_transaction.js.map +1 -0
  117. package/lib/esm/utils/wait_for_transaction_receipt.js +68 -0
  118. package/lib/esm/utils/wait_for_transaction_receipt.js.map +1 -0
  119. package/lib/esm/utils/watch_transaction_by_polling.js +41 -0
  120. package/lib/esm/utils/watch_transaction_by_polling.js.map +1 -0
  121. package/lib/esm/utils/watch_transaction_by_subscription.js +82 -0
  122. package/lib/esm/utils/watch_transaction_by_subscription.js.map +1 -0
  123. package/lib/esm/utils/watch_transaction_for_confirmations.js +43 -0
  124. package/lib/esm/utils/watch_transaction_for_confirmations.js.map +1 -0
  125. package/lib/esm/validation.js +260 -0
  126. package/lib/esm/validation.js.map +1 -0
  127. package/lib/esm/web3_eth.js +1715 -0
  128. package/lib/esm/web3_eth.js.map +1 -0
  129. package/lib/esm/web3_subscriptions.js +134 -0
  130. package/lib/esm/web3_subscriptions.js.map +1 -0
  131. package/lib/types/constants.d.ts +15 -0
  132. package/lib/types/constants.d.ts.map +1 -0
  133. package/lib/types/index.d.ts +52 -0
  134. package/lib/types/index.d.ts.map +1 -0
  135. package/lib/types/rpc_method_wrappers.d.ts +549 -0
  136. package/lib/types/rpc_method_wrappers.d.ts.map +1 -0
  137. package/lib/types/schemas.d.ts +946 -0
  138. package/lib/types/schemas.d.ts.map +1 -0
  139. package/lib/types/types.d.ts +51 -0
  140. package/lib/types/types.d.ts.map +1 -0
  141. package/lib/types/utils/decode_signed_transaction.d.ts +14 -0
  142. package/lib/types/utils/decode_signed_transaction.d.ts.map +1 -0
  143. package/lib/types/utils/decoding.d.ts +5 -0
  144. package/lib/types/utils/decoding.d.ts.map +1 -0
  145. package/lib/types/utils/detect_transaction_type.d.ts +7 -0
  146. package/lib/types/utils/detect_transaction_type.d.ts.map +1 -0
  147. package/lib/types/utils/format_transaction.d.ts +8 -0
  148. package/lib/types/utils/format_transaction.d.ts.map +1 -0
  149. package/lib/types/utils/get_revert_reason.d.ts +13 -0
  150. package/lib/types/utils/get_revert_reason.d.ts.map +1 -0
  151. package/lib/types/utils/get_transaction_error.d.ts +153 -0
  152. package/lib/types/utils/get_transaction_error.d.ts.map +1 -0
  153. package/lib/types/utils/get_transaction_gas_pricing.d.ts +9 -0
  154. package/lib/types/utils/get_transaction_gas_pricing.d.ts.map +1 -0
  155. package/lib/types/utils/index.d.ts +5 -0
  156. package/lib/types/utils/index.d.ts.map +1 -0
  157. package/lib/types/utils/prepare_transaction_for_signing.d.ts +4 -0
  158. package/lib/types/utils/prepare_transaction_for_signing.d.ts.map +1 -0
  159. package/lib/types/utils/reject_if_block_timeout.d.ts +7 -0
  160. package/lib/types/utils/reject_if_block_timeout.d.ts.map +1 -0
  161. package/lib/types/utils/send_tx_helper.d.ts +44 -0
  162. package/lib/types/utils/send_tx_helper.d.ts.map +1 -0
  163. package/lib/types/utils/transaction_builder.d.ts +20 -0
  164. package/lib/types/utils/transaction_builder.d.ts.map +1 -0
  165. package/lib/types/utils/try_send_transaction.d.ts +12 -0
  166. package/lib/types/utils/try_send_transaction.d.ts.map +1 -0
  167. package/lib/types/utils/wait_for_transaction_receipt.d.ts +4 -0
  168. package/lib/types/utils/wait_for_transaction_receipt.d.ts.map +1 -0
  169. package/lib/types/utils/watch_transaction_by_polling.d.ts +20 -0
  170. package/lib/types/utils/watch_transaction_by_polling.d.ts.map +1 -0
  171. package/lib/types/utils/watch_transaction_by_subscription.d.ts +9 -0
  172. package/lib/types/utils/watch_transaction_by_subscription.d.ts.map +1 -0
  173. package/lib/types/utils/watch_transaction_for_confirmations.d.ts +7 -0
  174. package/lib/types/utils/watch_transaction_for_confirmations.d.ts.map +1 -0
  175. package/lib/types/validation.d.ts +27 -0
  176. package/lib/types/validation.d.ts.map +1 -0
  177. package/lib/types/web3_eth.d.ts +1826 -0
  178. package/lib/types/web3_eth.d.ts.map +1 -0
  179. package/lib/types/web3_subscriptions.d.ts +118 -0
  180. package/lib/types/web3_subscriptions.d.ts.map +1 -0
  181. package/package.json +58 -4
  182. package/src/constants.ts +27 -0
  183. package/src/index.ts +71 -0
  184. package/src/rpc_method_wrappers.ts +1122 -0
  185. package/src/schemas.ts +668 -0
  186. package/src/types.ts +113 -0
  187. package/src/utils/decode_signed_transaction.ts +60 -0
  188. package/src/utils/decoding.ts +95 -0
  189. package/src/utils/detect_transaction_type.ts +144 -0
  190. package/src/utils/format_transaction.ts +77 -0
  191. package/src/utils/get_revert_reason.ts +96 -0
  192. package/src/utils/get_transaction_error.ts +93 -0
  193. package/src/utils/get_transaction_gas_pricing.ts +117 -0
  194. package/src/utils/index.ts +21 -0
  195. package/src/utils/prepare_transaction_for_signing.ts +154 -0
  196. package/src/utils/reject_if_block_timeout.ts +176 -0
  197. package/src/utils/send_tx_helper.ts +317 -0
  198. package/src/utils/transaction_builder.ts +264 -0
  199. package/src/utils/try_send_transaction.ts +61 -0
  200. package/src/utils/wait_for_transaction_receipt.ts +83 -0
  201. package/src/utils/watch_transaction_by_polling.ts +89 -0
  202. package/src/utils/watch_transaction_by_subscription.ts +120 -0
  203. package/src/utils/watch_transaction_for_confirmations.ts +86 -0
  204. package/src/validation.ts +317 -0
  205. package/src/web3_eth.ts +1897 -0
  206. package/src/web3_subscriptions.ts +176 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/schemas.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;CAUlC,CAAC;AAEF,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,eAAO,MAAM,cAAc;;;CAmB1B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAa7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2E7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEjC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;CAgB7B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGvB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiG7B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCrB,CAAC;AACF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmBtB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDpC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;CAsBjC,CAAC;AACF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B5B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAgB9B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BzB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { ContractExecutionError, TransactionRevertedWithoutReasonError, TransactionRevertInstructionError, TransactionRevertWithCustomError, InvalidResponseError, TransactionPollingTimeoutError } from 'web3-errors';
2
+ import { FormatType, ETH_DATA_FORMAT, DataFormat, Bytes, ContractAbi, HexString, Numbers, Transaction, TransactionReceipt, TransactionWithFromAndToLocalWalletIndex, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex } from 'web3-types';
3
+ import { Schema } from 'web3-validator';
4
+ export declare type InternalTransaction = FormatType<Transaction, typeof ETH_DATA_FORMAT>;
5
+ export declare type SendTransactionEventsBase<ReturnFormat extends DataFormat, TxType> = {
6
+ sending: FormatType<TxType, typeof ETH_DATA_FORMAT>;
7
+ sent: FormatType<TxType, typeof ETH_DATA_FORMAT>;
8
+ transactionHash: FormatType<Bytes, ReturnFormat>;
9
+ receipt: FormatType<TransactionReceipt, ReturnFormat>;
10
+ confirmation: {
11
+ confirmations: FormatType<Numbers, ReturnFormat>;
12
+ receipt: FormatType<TransactionReceipt, ReturnFormat>;
13
+ latestBlockHash: FormatType<Bytes, ReturnFormat>;
14
+ };
15
+ error: TransactionRevertedWithoutReasonError<FormatType<TransactionReceipt, ReturnFormat>> | TransactionRevertInstructionError<FormatType<TransactionReceipt, ReturnFormat>> | TransactionRevertWithCustomError<FormatType<TransactionReceipt, ReturnFormat>> | TransactionPollingTimeoutError | InvalidResponseError | ContractExecutionError;
16
+ };
17
+ export declare type SendTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Transaction>;
18
+ export declare type SendSignedTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Bytes>;
19
+ export interface SendTransactionOptions<ResolveType = TransactionReceipt> {
20
+ ignoreGasPricing?: boolean;
21
+ transactionResolver?: (receipt: TransactionReceipt) => ResolveType;
22
+ contractAbi?: ContractAbi;
23
+ checkRevertBeforeSending?: boolean;
24
+ ignoreFillingGasLimit?: boolean;
25
+ }
26
+ export interface SendSignedTransactionOptions<ResolveType = TransactionReceipt> {
27
+ transactionResolver?: (receipt: TransactionReceipt) => ResolveType;
28
+ contractAbi?: ContractAbi;
29
+ checkRevertBeforeSending?: boolean;
30
+ }
31
+ export interface RevertReason {
32
+ reason: string;
33
+ signature?: HexString;
34
+ data?: HexString;
35
+ }
36
+ export interface RevertReasonWithCustomError extends RevertReason {
37
+ customErrorName: string;
38
+ customErrorDecodedSignature: string;
39
+ customErrorArguments: Record<string, unknown>;
40
+ }
41
+ export declare type TransactionMiddlewareData = Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex;
42
+ export interface TransactionMiddleware {
43
+ processTransaction(transaction: TransactionMiddlewareData, options?: {
44
+ [key: string]: unknown;
45
+ }): Promise<TransactionMiddlewareData>;
46
+ }
47
+ export declare type CustomTransactionSchema = {
48
+ type: string;
49
+ properties: Record<string, Schema>;
50
+ };
51
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAiBA,OAAO,EACN,sBAAsB,EACtB,qCAAqC,EACrC,iCAAiC,EACjC,gCAAgC,EAChC,oBAAoB,EACpB,8BAA8B,EAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,UAAU,EACV,eAAe,EACf,UAAU,EACV,KAAK,EACL,WAAW,EACX,SAAS,EACT,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,wCAAwC,EACxC,mCAAmC,EACnC,iCAAiC,EACjC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,oBAAY,mBAAmB,GAAG,UAAU,CAAC,WAAW,EAAE,OAAO,eAAe,CAAC,CAAC;AAElF,oBAAY,yBAAyB,CAAC,YAAY,SAAS,UAAU,EAAE,MAAM,IAAI;IAChF,OAAO,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,eAAe,CAAC,CAAC;IACpD,IAAI,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,eAAe,CAAC,CAAC;IACjD,eAAe,EAAE,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACjD,OAAO,EAAE,UAAU,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;IACtD,YAAY,EAAE;QACb,aAAa,EAAE,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QACjD,OAAO,EAAE,UAAU,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;QACtD,eAAe,EAAE,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;KACjD,CAAC;IACF,KAAK,EACF,qCAAqC,CAAC,UAAU,CAAC,kBAAkB,EAA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,GACX,mCAAmC,GACnC,iCAAiC,GACjC,wCAAwC,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IAErC,kBAAkB,CACjB,WAAW,EAAE,yBAAyB,EACtC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAClC,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACtC;AAED,oBAAY,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { DataFormat, HexStringBytes, SignedTransactionInfoAPI } from 'web3-types';
2
+ import { type CustomTransactionSchema } from '../types.js';
3
+ /**
4
+ * Decodes an [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/#top) encoded transaction.
5
+ *
6
+ * @param encodedSignedTransaction The RLP encoded transaction.
7
+ * @param returnFormat ({@link DataFormat} Specifies how the return data should be formatted.
8
+ * @returns {@link SignedTransactionInfoAPI}, an object containing the RLP encoded signed transaction (accessed via the `raw` property) and the signed transaction object (accessed via the `tx` property).
9
+ */
10
+ export declare function decodeSignedTransaction<ReturnFormat extends DataFormat>(encodedSignedTransaction: HexStringBytes, returnFormat: ReturnFormat, options?: {
11
+ fillInputAndData?: boolean;
12
+ transactionSchema?: CustomTransactionSchema;
13
+ }): SignedTransactionInfoAPI;
14
+ //# sourceMappingURL=decode_signed_transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode_signed_transaction.d.ts","sourceRoot":"","sources":["../../../src/utils/decode_signed_transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,EACN,UAAU,EACV,cAAc,EACd,wBAAwB,EAExB,MAAM,YAAY,CAAC;AAKpB,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,SAAS,UAAU,EACtE,wBAAwB,EAAE,cAAc,EACxC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAAC,iBAAiB,CAAC,EAAE,uBAAuB,CAAA;CAEjF,GACC,wBAAwB,CAkB1B"}
@@ -0,0 +1,5 @@
1
+ import { AbiEventFragment, LogsInput, DataFormat, EventLog, ContractAbiWithSignature } from 'web3-types';
2
+ export declare const decodeEventABI: (event: AbiEventFragment & {
3
+ signature: string;
4
+ }, data: LogsInput, jsonInterface: ContractAbiWithSignature, returnFormat?: DataFormat) => EventLog;
5
+ //# sourceMappingURL=decoding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decoding.d.ts","sourceRoot":"","sources":["../../../src/utils/decoding.ts"],"names":[],"mappings":"AAmBA,OAAO,EACN,gBAAgB,EAChB,SAAS,EACT,UAAU,EAEV,QAAQ,EACR,wBAAwB,EACxB,MAAM,YAAY,CAAC;AAOpB,eAAO,MAAM,cAAc,UACnB,gBAAgB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,QACzC,SAAS,0DAED,UAAU,KACtB,QAwDF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TransactionTypeParser, Web3Context } from 'web3-core';
2
+ import { EthExecutionAPI } from 'web3-types';
3
+ import { InternalTransaction } from '../types.js';
4
+ export declare const defaultTransactionTypeParser: TransactionTypeParser;
5
+ export declare const detectTransactionType: (transaction: InternalTransaction, web3Context?: Web3Context<EthExecutionAPI>) => string | undefined;
6
+ export declare const detectRawTransactionType: (transaction: Uint8Array) => string;
7
+ //# sourceMappingURL=detect_transaction_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detect_transaction_type.d.ts","sourceRoot":"","sources":["../../../src/utils/detect_transaction_type.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAkD,MAAM,YAAY,CAAC;AAI7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAsDlD,eAAO,MAAM,4BAA4B,EAAE,qBAuD1C,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBACpB,mBAAmB,gBAClB,YAAY,eAAe,CAAC,uBAIzC,CAAC;AAEH,eAAO,MAAM,wBAAwB,gBAAiB,UAAU,WACV,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Transaction, DataFormat, DEFAULT_RETURN_FORMAT, FormatType } from 'web3-types';
2
+ import { ValidationSchemaInput } from 'web3-validator';
3
+ import { type CustomTransactionSchema } from '../types.js';
4
+ export declare function formatTransaction<ReturnFormat extends DataFormat = typeof DEFAULT_RETURN_FORMAT, TransactionType extends Transaction = Transaction>(transaction: TransactionType, returnFormat?: ReturnFormat, options?: {
5
+ transactionSchema?: ValidationSchemaInput | CustomTransactionSchema | undefined;
6
+ fillInputAndData?: boolean;
7
+ }): FormatType<TransactionType, ReturnFormat>;
8
+ //# sourceMappingURL=format_transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format_transaction.d.ts","sourceRoot":"","sources":["../../../src/utils/format_transaction.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,EAAa,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAKlE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,wBAAgB,iBAAiB,CAChC,YAAY,SAAS,UAAU,GAAG,OAAO,qBAAqB,EAC9D,eAAe,SAAS,WAAW,GAAG,WAAW,EAEjD,WAAW,EAAE,eAAe,EAC5B,YAAY,GAAE,YAAoD,EAClE,OAAO,GAAE;IACR,iBAAiB,CAAC,EAAE,qBAAqB,GAAG,uBAAuB,GAAG,SAAS,CAAC;IAChF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAI3B,GACC,UAAU,CAAC,eAAe,EAAE,YAAY,CAAC,CAsC3C"}
@@ -0,0 +1,13 @@
1
+ import { Web3Context } from 'web3-core';
2
+ import { ContractAbi, DataFormat, DEFAULT_RETURN_FORMAT, EthExecutionAPI, TransactionCall } from 'web3-types';
3
+ import { RevertReason, RevertReasonWithCustomError } from '../types.js';
4
+ export declare const parseTransactionError: (error: unknown, contractAbi?: ContractAbi) => string | RevertReason;
5
+ /**
6
+ * Returns the revert reason generated by the EVM if the transaction were to be executed.
7
+ *
8
+ * @param web3Context - ({@link Web3Context}) Web3 configuration object that contains things such as the provider, request manager, wallet, etc.
9
+ * @param transaction - A transaction object where all properties are optional except `to`, however it's recommended to include the `from` property or it may default to `0x0000000000000000000000000000000000000000` depending on your node or provider.
10
+ * @returns `undefined` if no revert reason was given, a revert reason object, a revert reason string, or an `unknown` error
11
+ */
12
+ export declare function getRevertReason<ReturnFormat extends DataFormat = typeof DEFAULT_RETURN_FORMAT>(web3Context: Web3Context<EthExecutionAPI>, transaction: TransactionCall, contractAbi?: ContractAbi, returnFormat?: ReturnFormat): Promise<undefined | RevertReason | RevertReasonWithCustomError | string>;
13
+ //# sourceMappingURL=get_revert_reason.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_revert_reason.d.ts","sourceRoot":"","sources":["../../../src/utils/get_revert_reason.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAQxC,OAAO,EAEN,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAExE,eAAO,MAAM,qBAAqB,UAAW,OAAO,gBAAgB,WAAW,0BAkC9E,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,eAAe,CACpC,YAAY,SAAS,UAAU,GAAG,OAAO,qBAAqB,EAE9D,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,EACzC,WAAW,EAAE,eAAe,EAC5B,WAAW,CAAC,EAAE,WAAW,EACzB,YAAY,GAAE,YAA8D,GAC1E,OAAO,CAAC,SAAS,GAAG,YAAY,GAAG,2BAA2B,GAAG,MAAM,CAAC,CAO1E"}
@@ -0,0 +1,153 @@
1
+ import { Web3Context } from 'web3-core';
2
+ import { TransactionRevertedWithoutReasonError, TransactionRevertInstructionError, TransactionRevertWithCustomError } from 'web3-errors';
3
+ import { DataFormat, FormatType, ContractAbi, TransactionCall, TransactionReceipt } from 'web3-types';
4
+ import { RevertReason, RevertReasonWithCustomError } from '../types.js';
5
+ export declare function getTransactionError<ReturnFormat extends DataFormat>(web3Context: Web3Context, transactionFormatted?: TransactionCall, transactionReceiptFormatted?: FormatType<TransactionReceipt, ReturnFormat>, receivedError?: unknown, contractAbi?: ContractAbi, knownReason?: string | RevertReason | RevertReasonWithCustomError): Promise<TransactionRevertedWithoutReasonError<{
6
+ readonly transactionHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
7
+ readonly transactionIndex: import("web3-types").NumberTypes[ReturnFormat["number"]];
8
+ readonly blockHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
9
+ readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
10
+ readonly from: string;
11
+ readonly to: string;
12
+ readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
13
+ readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
14
+ readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
15
+ readonly contractAddress?: string | undefined;
16
+ readonly logs: {
17
+ readonly id?: string | undefined;
18
+ readonly removed?: boolean | undefined;
19
+ readonly logIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
20
+ readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
21
+ readonly transactionHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
22
+ readonly blockHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
23
+ readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
24
+ readonly address?: string | undefined;
25
+ readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
26
+ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;
27
+ }[];
28
+ readonly logsBloom: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
29
+ readonly root: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
30
+ readonly status: import("web3-types").NumberTypes[ReturnFormat["number"]];
31
+ readonly type?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
32
+ events?: {
33
+ [x: string]: {
34
+ readonly event: string;
35
+ readonly id?: string | undefined;
36
+ readonly logIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
37
+ readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
38
+ readonly transactionHash?: string | undefined;
39
+ readonly blockHash?: string | undefined;
40
+ readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
41
+ readonly address: string;
42
+ readonly topics: string[];
43
+ readonly data: string;
44
+ readonly raw?: {
45
+ data: string;
46
+ topics: unknown[];
47
+ } | undefined;
48
+ readonly returnValues: {
49
+ [x: string]: unknown;
50
+ };
51
+ readonly signature?: string | undefined;
52
+ };
53
+ } | undefined;
54
+ }> | TransactionRevertInstructionError<{
55
+ readonly transactionHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
56
+ readonly transactionIndex: import("web3-types").NumberTypes[ReturnFormat["number"]];
57
+ readonly blockHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
58
+ readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
59
+ readonly from: string;
60
+ readonly to: string;
61
+ readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
62
+ readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
63
+ readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
64
+ readonly contractAddress?: string | undefined;
65
+ readonly logs: {
66
+ readonly id?: string | undefined;
67
+ readonly removed?: boolean | undefined;
68
+ readonly logIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
69
+ readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
70
+ readonly transactionHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
71
+ readonly blockHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
72
+ readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
73
+ readonly address?: string | undefined;
74
+ readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
75
+ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;
76
+ }[];
77
+ readonly logsBloom: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
78
+ readonly root: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
79
+ readonly status: import("web3-types").NumberTypes[ReturnFormat["number"]];
80
+ readonly type?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
81
+ events?: {
82
+ [x: string]: {
83
+ readonly event: string;
84
+ readonly id?: string | undefined;
85
+ readonly logIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
86
+ readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
87
+ readonly transactionHash?: string | undefined;
88
+ readonly blockHash?: string | undefined;
89
+ readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
90
+ readonly address: string;
91
+ readonly topics: string[];
92
+ readonly data: string;
93
+ readonly raw?: {
94
+ data: string;
95
+ topics: unknown[];
96
+ } | undefined;
97
+ readonly returnValues: {
98
+ [x: string]: unknown;
99
+ };
100
+ readonly signature?: string | undefined;
101
+ };
102
+ } | undefined;
103
+ }> | TransactionRevertWithCustomError<{
104
+ readonly transactionHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
105
+ readonly transactionIndex: import("web3-types").NumberTypes[ReturnFormat["number"]];
106
+ readonly blockHash: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
107
+ readonly blockNumber: import("web3-types").NumberTypes[ReturnFormat["number"]];
108
+ readonly from: string;
109
+ readonly to: string;
110
+ readonly cumulativeGasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
111
+ readonly gasUsed: import("web3-types").NumberTypes[ReturnFormat["number"]];
112
+ readonly effectiveGasPrice?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
113
+ readonly contractAddress?: string | undefined;
114
+ readonly logs: {
115
+ readonly id?: string | undefined;
116
+ readonly removed?: boolean | undefined;
117
+ readonly logIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
118
+ readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
119
+ readonly transactionHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
120
+ readonly blockHash?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
121
+ readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
122
+ readonly address?: string | undefined;
123
+ readonly data?: import("web3-types").ByteTypes[ReturnFormat["bytes"]] | undefined;
124
+ readonly topics?: import("web3-types").ByteTypes[ReturnFormat["bytes"]][] | undefined;
125
+ }[];
126
+ readonly logsBloom: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
127
+ readonly root: import("web3-types").ByteTypes[ReturnFormat["bytes"]];
128
+ readonly status: import("web3-types").NumberTypes[ReturnFormat["number"]];
129
+ readonly type?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
130
+ events?: {
131
+ [x: string]: {
132
+ readonly event: string;
133
+ readonly id?: string | undefined;
134
+ readonly logIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
135
+ readonly transactionIndex?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
136
+ readonly transactionHash?: string | undefined;
137
+ readonly blockHash?: string | undefined;
138
+ readonly blockNumber?: import("web3-types").NumberTypes[ReturnFormat["number"]] | undefined;
139
+ readonly address: string;
140
+ readonly topics: string[];
141
+ readonly data: string;
142
+ readonly raw?: {
143
+ data: string;
144
+ topics: unknown[];
145
+ } | undefined;
146
+ readonly returnValues: {
147
+ [x: string]: unknown;
148
+ };
149
+ readonly signature?: string | undefined;
150
+ };
151
+ } | undefined;
152
+ }>>;
153
+ //# sourceMappingURL=get_transaction_error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_transaction_error.d.ts","sourceRoot":"","sources":["../../../src/utils/get_transaction_error.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EACN,qCAAqC,EACrC,iCAAiC,EACjC,gCAAgC,EAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,UAAU,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAIxE,wBAAsB,mBAAmB,CAAC,YAAY,SAAS,UAAU,EACxE,WAAW,EAAE,WAAW,EACxB,oBAAoB,CAAC,EAAE,eAAe,EACtC,2BAA2B,CAAC,EAAE,UAAU,CAAC,kBAAkB,EAAE,YAAY,CAAC,EAC1E,aAAa,CAAC,EAAE,OAAO,EACvB,WAAW,CAAC,EAAE,WAAW,EACzB,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoDjE"}
@@ -0,0 +1,9 @@
1
+ import { Web3Context } from 'web3-core';
2
+ import { EthExecutionAPI, Numbers, DataFormat, FormatType } from 'web3-types';
3
+ import { InternalTransaction } from '../types.js';
4
+ export declare function getTransactionGasPricing<ReturnFormat extends DataFormat>(transaction: InternalTransaction, web3Context: Web3Context<EthExecutionAPI>, returnFormat: ReturnFormat): Promise<FormatType<{
5
+ gasPrice?: Numbers;
6
+ maxPriorityFeePerGas?: Numbers;
7
+ maxFeePerGas?: Numbers;
8
+ }, ReturnFormat> | undefined>;
9
+ //# sourceMappingURL=get_transaction_gas_pricing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_transaction_gas_pricing.d.ts","sourceRoot":"","sources":["../../../src/utils/get_transaction_gas_pricing.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EACN,eAAe,EACf,OAAO,EAEP,UAAU,EACV,UAAU,EAEV,MAAM,YAAY,CAAC;AAMpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AA8ClD,wBAAsB,wBAAwB,CAAC,YAAY,SAAS,UAAU,EAC7E,WAAW,EAAE,mBAAmB,EAChC,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,EACzC,YAAY,EAAE,YAAY,GACxB,OAAO,CACP,UAAU,CACV;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,EAC9E,YAAY,CACX,GACD,SAAS,CACX,CA6BA"}
@@ -0,0 +1,5 @@
1
+ export * from './detect_transaction_type.js';
2
+ export * from './format_transaction.js';
3
+ export * from './prepare_transaction_for_signing.js';
4
+ export * from './transaction_builder.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAiBA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { EthExecutionAPI, HexString, Transaction } from 'web3-types';
2
+ import { Web3Context } from 'web3-core';
3
+ export declare const prepareTransactionForSigning: (transaction: Transaction, web3Context: Web3Context<EthExecutionAPI>, privateKey?: HexString | Uint8Array, fillGasPrice?: boolean, fillGasLimit?: boolean) => Promise<import("web3-eth-accounts").TypedTransaction>;
4
+ //# sourceMappingURL=prepare_transaction_for_signing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepare_transaction_for_signing.d.ts","sourceRoot":"","sources":["../../../src/utils/prepare_transaction_for_signing.ts"],"names":[],"mappings":"AAiBA,OAAO,EACN,eAAe,EACf,SAAS,EAIT,WAAW,EAIX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AA+FxC,eAAO,MAAM,4BAA4B,gBAC3B,WAAW,eACX,YAAY,eAAe,CAAC,eAC5B,SAAS,GAAG,UAAU,0GA2BnC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { EthExecutionAPI, Bytes } from 'web3-types';
2
+ import { Web3Context } from 'web3-core';
3
+ export interface ResourceCleaner {
4
+ clean: () => void;
5
+ }
6
+ export declare function rejectIfBlockTimeout(web3Context: Web3Context<EthExecutionAPI>, transactionHash?: Bytes): Promise<[Promise<never>, ResourceCleaner]>;
7
+ //# sourceMappingURL=reject_if_block_timeout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reject_if_block_timeout.d.ts","sourceRoot":"","sources":["../../../src/utils/reject_if_block_timeout.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,KAAK,EAAuC,MAAM,YAAY,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AASxC,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;CAClB;AAkID,wBAAsB,oBAAoB,CACzC,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,EACzC,eAAe,CAAC,EAAE,KAAK,GACrB,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC,CAAC,CAc5C"}
@@ -0,0 +1,44 @@
1
+ import { FormatType, DataFormat, EthExecutionAPI, Web3BaseWalletAccount, HexString, TransactionReceipt, Transaction, TransactionCall, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, TransactionHash } from 'web3-types';
2
+ import { Web3Context, Web3PromiEvent } from 'web3-core';
3
+ import { JsonSchema } from 'web3-validator';
4
+ import { SendSignedTransactionEvents, SendTransactionEvents, SendTransactionOptions } from '../types.js';
5
+ export declare class SendTxHelper<ReturnFormat extends DataFormat, ResolveType = FormatType<TransactionReceipt, ReturnFormat>, TxType = Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex> {
6
+ private readonly web3Context;
7
+ private readonly promiEvent;
8
+ private readonly options;
9
+ private readonly returnFormat;
10
+ constructor({ options, web3Context, promiEvent, returnFormat, }: {
11
+ web3Context: Web3Context<EthExecutionAPI>;
12
+ options: SendTransactionOptions<ResolveType>;
13
+ promiEvent: Web3PromiEvent<ResolveType, SendSignedTransactionEvents<ReturnFormat> | SendTransactionEvents<ReturnFormat>>;
14
+ returnFormat: ReturnFormat;
15
+ });
16
+ getReceiptWithEvents(data: TransactionReceipt): ResolveType;
17
+ checkRevertBeforeSending(tx: TransactionCall): Promise<void>;
18
+ emitSending(tx: TxType | HexString): void;
19
+ populateGasPrice({ transactionFormatted, transaction, }: {
20
+ transactionFormatted: TxType;
21
+ transaction: TxType;
22
+ }): Promise<TxType>;
23
+ signAndSend({ wallet, tx, }: {
24
+ wallet: Web3BaseWalletAccount | undefined;
25
+ tx: TxType;
26
+ }): Promise<string>;
27
+ emitSent(tx: TxType | HexString): void;
28
+ emitTransactionHash(hash: string & Uint8Array): void;
29
+ emitReceipt(receipt: ResolveType): void;
30
+ handleError({ error, tx }: {
31
+ error: unknown;
32
+ tx: TransactionCall;
33
+ }): Promise<unknown>;
34
+ emitConfirmation({ receipt, transactionHash, customTransactionReceiptSchema, }: {
35
+ receipt: ResolveType;
36
+ transactionHash: TransactionHash;
37
+ customTransactionReceiptSchema?: JsonSchema;
38
+ }): void;
39
+ handleResolve({ receipt, tx }: {
40
+ receipt: ResolveType;
41
+ tx: TransactionCall;
42
+ }): Promise<ResolveType>;
43
+ }
44
+ //# sourceMappingURL=send_tx_helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send_tx_helper.d.ts","sourceRoot":"","sources":["../../../src/utils/send_tx_helper.ts"],"names":[],"mappings":"AAgBA,OAAO,EAEN,UAAU,EACV,UAAU,EACV,eAAe,EAEf,qBAAqB,EACrB,SAAS,EACT,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,mCAAmC,EACnC,iCAAiC,EACjC,wCAAwC,EAExC,eAAe,EAEf,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,WAAW,EAAoB,cAAc,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAa,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAWvD,OAAO,EACN,2BAA2B,EAC3B,qBAAqB,EACrB,sBAAsB,EACtB,MAAM,aAAa,CAAC;AAcrB,qBAAa,YAAY,CACxB,YAAY,SAAS,UAAU,EAC/B,WAAW,GAAG,UAAU,CAAC,kBAAkB,EAAE,YAAY,CAAC,EAC1D,MAAM,GACH,WAAW,GACX,mCAAmC,GACnC,iCAAiC,GACjC,wCAAwC;IAE3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAGzB;IACF,OAAO,CAAC,QAAQ,CA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CAAC;KAC5C;IAiBY,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,EAAE,EAAE,eAAe,CAAA;KAAE;CAsBzF"}
@@ -0,0 +1,20 @@
1
+ import { EthExecutionAPI, Address, HexString, Transaction, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex, TransactionWithFromAndToLocalWalletIndex, Web3NetAPI, DataFormat, FormatType, ETH_DATA_FORMAT } from 'web3-types';
2
+ import { Web3Context } from 'web3-core';
3
+ export declare const getTransactionFromOrToAttr: (attr: 'from' | 'to', web3Context: Web3Context<EthExecutionAPI>, transaction?: Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex, privateKey?: HexString | Uint8Array) => Address | undefined;
4
+ export declare const getTransactionNonce: <ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, address?: Address, returnFormat?: ReturnFormat) => Promise<import("web3-types").NumberTypes[ReturnFormat["number"]]>;
5
+ export declare const getTransactionType: (transaction: FormatType<Transaction, typeof ETH_DATA_FORMAT>, web3Context: Web3Context<EthExecutionAPI>) => string | undefined;
6
+ export declare function defaultTransactionBuilder<ReturnType = Transaction>(options: {
7
+ transaction: Transaction;
8
+ web3Context: Web3Context<EthExecutionAPI & Web3NetAPI>;
9
+ privateKey?: HexString | Uint8Array;
10
+ fillGasPrice?: boolean;
11
+ fillGasLimit?: boolean;
12
+ }): Promise<ReturnType>;
13
+ export declare const transactionBuilder: <ReturnType_1 = Transaction>(options: {
14
+ transaction: Transaction;
15
+ web3Context: Web3Context<EthExecutionAPI>;
16
+ privateKey?: HexString | Uint8Array;
17
+ fillGasPrice?: boolean;
18
+ fillGasLimit?: boolean;
19
+ }) => Promise<ReturnType_1>;
20
+ //# sourceMappingURL=transaction_builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction_builder.d.ts","sourceRoot":"","sources":["../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3-core';
2
+ import { EthExecutionAPI, Bytes } from 'web3-types';
3
+ import { AsyncFunction } from 'web3-utils';
4
+ /**
5
+ * An internal function to send a transaction or throws if sending did not finish during the timeout during the blocks-timeout.
6
+ * @param web3Context - the context to read the configurations from
7
+ * @param sendTransactionFunc - the function that will send the transaction (could be sendTransaction or sendRawTransaction)
8
+ * @param transactionHash - to be used inside the exception message if there will be any exceptions.
9
+ * @returns the Promise<string> returned by the `sendTransactionFunc`.
10
+ */
11
+ export declare function trySendTransaction(web3Context: Web3Context<EthExecutionAPI>, sendTransactionFunc: AsyncFunction<string>, transactionHash?: Bytes): Promise<string>;
12
+ //# sourceMappingURL=try_send_transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"try_send_transaction.d.ts","sourceRoot":"","sources":["../../../src/utils/try_send_transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,aAAa,EAAmB,MAAM,YAAY,CAAC;AAM5D;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACvC,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,EACzC,mBAAmB,EAAE,aAAa,CAAC,MAAM,CAAC,EAC1C,eAAe,CAAC,EAAE,KAAK,GACrB,OAAO,CAAC,MAAM,CAAC,CAyBjB"}
@@ -0,0 +1,4 @@
1
+ import { Web3Context } from 'web3-core';
2
+ import { EthExecutionAPI, Bytes, TransactionReceipt, DataFormat } from 'web3-types';
3
+ export declare function waitForTransactionReceipt<ReturnFormat extends DataFormat>(web3Context: Web3Context<EthExecutionAPI>, transactionHash: Bytes, returnFormat: ReturnFormat, customGetTransactionReceipt?: (web3Context: Web3Context<EthExecutionAPI>, transactionHash: Bytes, returnFormat: ReturnFormat) => Promise<TransactionReceipt>): Promise<TransactionReceipt>;
4
+ //# sourceMappingURL=wait_for_transaction_receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait_for_transaction_receipt.d.ts","sourceRoot":"","sources":["../../../src/utils/wait_for_transaction_receipt.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AASpF,wBAAsB,yBAAyB,CAAC,YAAY,SAAS,UAAU,EAC9E,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,EACzC,eAAe,EAAE,KAAK,EACtB,YAAY,EAAE,YAAY,EAC1B,2BAA2B,CAAC,EAAE,CAC7B,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,EACzC,eAAe,EAAE,KAAK,EACtB,YAAY,EAAE,YAAY,KACtB,OAAO,CAAC,kBAAkB,CAAC,GAC9B,OAAO,CAAC,kBAAkB,CAAC,CA6C7B"}
@@ -0,0 +1,20 @@
1
+ import { EthExecutionAPI, TransactionReceipt } from 'web3-types';
2
+ import { Web3Context, Web3PromiEvent } from 'web3-core';
3
+ import { DataFormat } from 'web3-types';
4
+ import { JsonSchema } from 'web3-validator';
5
+ import { SendSignedTransactionEvents, SendTransactionEvents } from '../types.js';
6
+ export declare type Web3PromiEventEventTypeBase<ReturnFormat extends DataFormat> = SendTransactionEvents<ReturnFormat> | SendSignedTransactionEvents<ReturnFormat>;
7
+ export declare type WaitProps<ReturnFormat extends DataFormat, ResolveType = TransactionReceipt> = {
8
+ web3Context: Web3Context<EthExecutionAPI>;
9
+ transactionReceipt: TransactionReceipt;
10
+ customTransactionReceiptSchema?: JsonSchema;
11
+ transactionPromiEvent: Web3PromiEvent<ResolveType, Web3PromiEventEventTypeBase<ReturnFormat>>;
12
+ returnFormat: ReturnFormat;
13
+ };
14
+ /**
15
+ * This function watches a Transaction by subscribing to new heads.
16
+ * It is used by `watchTransactionForConfirmations`, in case the provider does not support subscription.
17
+ * And it is also used by `watchTransactionBySubscription`, as a fallback, if the subscription failed for any reason.
18
+ */
19
+ export declare const watchTransactionByPolling: <ReturnFormat extends DataFormat, ResolveType = TransactionReceipt>({ web3Context, transactionReceipt, transactionPromiEvent, customTransactionReceiptSchema, returnFormat, }: WaitProps<ReturnFormat, ResolveType>) => void;
20
+ //# sourceMappingURL=watch_transaction_by_polling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch_transaction_by_polling.d.ts","sourceRoot":"","sources":["../../../src/utils/watch_transaction_by_polling.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAS,eAAe,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIxD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGjF,oBAAY,2BAA2B,CAAC,YAAY,SAAS,UAAU,IACpE,qBAAqB,CAAC,YAAY,CAAC,GACnC,2BAA2B,CAAC,YAAY,CAAC,CAAC;AAE7C,oBAAY,SAAS,CAAC,YAAY,SAAS,UAAU,EAAE,WAAW,GAAG,kBAAkB,IAAI;IAC1F,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IAC1C,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,8BAA8B,CAAC,EAAE,UAAU,CAAC;IAC5C,qBAAqB,EAAE,cAAc,CAAC,WAAW,EAAE,2BAA2B,CAAC,YAAY,CAAC,CAAC,CAAC;IAC9F,YAAY,EAAE,YAAY,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,8NA6CrC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { TransactionReceipt } from 'web3-types';
2
+ import { DataFormat } from 'web3-types';
3
+ import { WaitProps } from './watch_transaction_by_polling.js';
4
+ /**
5
+ * This function watches a Transaction by subscribing to new heads.
6
+ * It is used by `watchTransactionForConfirmations`, in case the provider supports subscription.
7
+ */
8
+ export declare const watchTransactionBySubscription: <ReturnFormat extends DataFormat, ResolveType = TransactionReceipt>({ web3Context, transactionReceipt, transactionPromiEvent, customTransactionReceiptSchema, returnFormat, }: WaitProps<ReturnFormat, ResolveType>) => void;
9
+ //# sourceMappingURL=watch_transaction_by_subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch_transaction_by_subscription.d.ts","sourceRoot":"","sources":["../../../src/utils/watch_transaction_by_subscription.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqC,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGnF,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,OAAO,EAAE,SAAS,EAA6B,MAAM,mCAAmC,CAAC;AACzF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,8NA4F1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Bytes, EthExecutionAPI, TransactionReceipt } from 'web3-types';
2
+ import { Web3Context, Web3PromiEvent } from 'web3-core';
3
+ import { JsonSchema } from 'web3-validator';
4
+ import { DataFormat } from 'web3-types';
5
+ import { Web3PromiEventEventTypeBase } from './watch_transaction_by_polling.js';
6
+ export declare function watchTransactionForConfirmations<ReturnFormat extends DataFormat, Web3PromiEventEventType extends Web3PromiEventEventTypeBase<ReturnFormat>, ResolveType = TransactionReceipt>(web3Context: Web3Context<EthExecutionAPI>, transactionPromiEvent: Web3PromiEvent<ResolveType, Web3PromiEventEventType>, transactionReceipt: TransactionReceipt, transactionHash: Bytes, returnFormat: ReturnFormat, customTransactionReceiptSchema?: JsonSchema): void;
7
+ //# sourceMappingURL=watch_transaction_for_confirmations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch_transaction_for_confirmations.d.ts","sourceRoot":"","sources":["../../../src/utils/watch_transaction_for_confirmations.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAoB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAExD,OAAO,EAAa,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMvD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAEN,2BAA2B,EAC3B,MAAM,mCAAmC,CAAC;AAG3C,wBAAgB,gCAAgC,CAC/C,YAAY,SAAS,UAAU,EAC/B,uBAAuB,SAAS,2BAA2B,CAAC,YAAY,CAAC,EACzE,WAAW,GAAG,kBAAkB,EAEhC,WAAW,EAAE,WAAW,CAAC,eAAe,CAAC,EACzC,qBAAqB,EAAE,cAAc,CAAC,WAAW,EAAE,uBAAuB,CAAC,EAC3E,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,KAAK,EACtB,YAAY,EAAE,YAAY,EAC1B,8BAA8B,CAAC,EAAE,UAAU,QA0C3C"}
@@ -0,0 +1,27 @@
1
+ import { AccessList, AccessListEntry, BaseTransactionAPI, Transaction1559UnsignedAPI, Transaction2930UnsignedAPI, TransactionCall, TransactionLegacyUnsignedAPI, TransactionWithSenderAPI } from 'web3-types';
2
+ import { CustomTransactionSchema, InternalTransaction } from './types.js';
3
+ export declare function isBaseTransaction(value: BaseTransactionAPI): boolean;
4
+ export declare function isAccessListEntry(value: AccessListEntry): boolean;
5
+ export declare function isAccessList(value: AccessList): boolean;
6
+ export declare function isTransaction1559Unsigned(value: Transaction1559UnsignedAPI): boolean;
7
+ export declare function isTransaction2930Unsigned(value: Transaction2930UnsignedAPI): boolean;
8
+ export declare function isTransactionLegacyUnsigned(value: TransactionLegacyUnsignedAPI): boolean;
9
+ export declare function isTransactionWithSender(value: TransactionWithSenderAPI): boolean;
10
+ export declare function validateTransactionWithSender(value: TransactionWithSenderAPI): void;
11
+ export declare function isTransactionCall(value: TransactionCall): boolean;
12
+ export declare function validateTransactionCall(value: TransactionCall): void;
13
+ export declare const validateCustomChainInfo: (transaction: InternalTransaction) => void;
14
+ export declare const validateChainInfo: (transaction: InternalTransaction) => void;
15
+ export declare const validateBaseChain: (transaction: InternalTransaction) => void;
16
+ export declare const validateHardfork: (transaction: InternalTransaction) => void;
17
+ export declare const validateLegacyGas: (transaction: InternalTransaction) => void;
18
+ export declare const validateFeeMarketGas: (transaction: InternalTransaction) => void;
19
+ /**
20
+ * This method checks if all required gas properties are present for either
21
+ * legacy gas (type 0x0 and 0x1) OR fee market transactions (0x2)
22
+ */
23
+ export declare const validateGas: (transaction: InternalTransaction) => void;
24
+ export declare const validateTransactionForSigning: (transaction: InternalTransaction, overrideMethod?: ((transaction: InternalTransaction) => void) | undefined, options?: {
25
+ transactionSchema?: CustomTransactionSchema;
26
+ }) => void;
27
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/validation.ts"],"names":[],"mappings":"AAiBA,OAAO,EACN,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,EAC1B,eAAe,EACf,4BAA4B,EAE5B,wBAAwB,EAExB,MAAM,YAAY,CAAC;AAsBpB,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE1E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAUpE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CASjE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAQvD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAOpF;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAMpF;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,4BAA4B,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