@uswap/toolboxes 4.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/src/cardano/index.cjs +4 -0
  2. package/dist/src/cardano/index.cjs.map +11 -0
  3. package/dist/src/cardano/index.js +4 -0
  4. package/dist/src/cardano/index.js.map +11 -0
  5. package/dist/src/cosmos/index.cjs +4 -0
  6. package/dist/src/cosmos/index.cjs.map +20 -0
  7. package/dist/src/cosmos/index.js +4 -0
  8. package/dist/src/cosmos/index.js.map +20 -0
  9. package/dist/src/evm/index.cjs +4 -0
  10. package/dist/src/evm/index.cjs.map +20 -0
  11. package/dist/src/evm/index.js +4 -0
  12. package/dist/src/evm/index.js.map +20 -0
  13. package/dist/src/index.cjs +5 -0
  14. package/dist/src/index.cjs.map +67 -0
  15. package/dist/src/index.js +5 -0
  16. package/dist/src/index.js.map +67 -0
  17. package/dist/src/near/index.cjs +4 -0
  18. package/dist/src/near/index.cjs.map +16 -0
  19. package/dist/src/near/index.js +4 -0
  20. package/dist/src/near/index.js.map +16 -0
  21. package/dist/src/radix/index.cjs +4 -0
  22. package/dist/src/radix/index.cjs.map +10 -0
  23. package/dist/src/radix/index.js +4 -0
  24. package/dist/src/radix/index.js.map +10 -0
  25. package/dist/src/ripple/index.cjs +4 -0
  26. package/dist/src/ripple/index.cjs.map +10 -0
  27. package/dist/src/ripple/index.js +4 -0
  28. package/dist/src/ripple/index.js.map +10 -0
  29. package/dist/src/solana/index.cjs +4 -0
  30. package/dist/src/solana/index.cjs.map +11 -0
  31. package/dist/src/solana/index.js +4 -0
  32. package/dist/src/solana/index.js.map +11 -0
  33. package/dist/src/substrate/index.cjs +4 -0
  34. package/dist/src/substrate/index.cjs.map +13 -0
  35. package/dist/src/substrate/index.js +4 -0
  36. package/dist/src/substrate/index.js.map +13 -0
  37. package/dist/src/sui/index.cjs +4 -0
  38. package/dist/src/sui/index.cjs.map +11 -0
  39. package/dist/src/sui/index.js +4 -0
  40. package/dist/src/sui/index.js.map +11 -0
  41. package/dist/src/ton/index.cjs +4 -0
  42. package/dist/src/ton/index.cjs.map +11 -0
  43. package/dist/src/ton/index.js +4 -0
  44. package/dist/src/ton/index.js.map +11 -0
  45. package/dist/src/tron/index.cjs +4 -0
  46. package/dist/src/tron/index.cjs.map +13 -0
  47. package/dist/src/tron/index.js +4 -0
  48. package/dist/src/tron/index.js.map +13 -0
  49. package/dist/src/utxo/index.cjs +5 -0
  50. package/dist/src/utxo/index.cjs.map +21 -0
  51. package/dist/src/utxo/index.js +5 -0
  52. package/dist/src/utxo/index.js.map +21 -0
  53. package/dist/types/cardano/index.d.ts +3 -0
  54. package/dist/types/cardano/index.d.ts.map +1 -0
  55. package/dist/types/cardano/toolbox.d.ts +34 -0
  56. package/dist/types/cardano/toolbox.d.ts.map +1 -0
  57. package/dist/types/cardano/types.d.ts +11 -0
  58. package/dist/types/cardano/types.d.ts.map +1 -0
  59. package/dist/types/cosmos/index.d.ts +5 -0
  60. package/dist/types/cosmos/index.d.ts.map +1 -0
  61. package/dist/types/cosmos/thorchainUtils/addressFormat.d.ts +5 -0
  62. package/dist/types/cosmos/thorchainUtils/addressFormat.d.ts.map +1 -0
  63. package/dist/types/cosmos/thorchainUtils/index.d.ts +5 -0
  64. package/dist/types/cosmos/thorchainUtils/index.d.ts.map +1 -0
  65. package/dist/types/cosmos/thorchainUtils/messages.d.ts +208 -0
  66. package/dist/types/cosmos/thorchainUtils/messages.d.ts.map +1 -0
  67. package/dist/types/cosmos/thorchainUtils/registry.d.ts +4 -0
  68. package/dist/types/cosmos/thorchainUtils/registry.d.ts.map +1 -0
  69. package/dist/types/cosmos/thorchainUtils/types/MsgCompiled.d.ts +2 -0
  70. package/dist/types/cosmos/thorchainUtils/types/MsgCompiled.d.ts.map +1 -0
  71. package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts +63 -0
  72. package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts.map +1 -0
  73. package/dist/types/cosmos/thorchainUtils/types/index.d.ts +2 -0
  74. package/dist/types/cosmos/thorchainUtils/types/index.d.ts.map +1 -0
  75. package/dist/types/cosmos/toolbox/cosmos.d.ts +62 -0
  76. package/dist/types/cosmos/toolbox/cosmos.d.ts.map +1 -0
  77. package/dist/types/cosmos/toolbox/index.d.ts +15 -0
  78. package/dist/types/cosmos/toolbox/index.d.ts.map +1 -0
  79. package/dist/types/cosmos/toolbox/thorchain.d.ts +158 -0
  80. package/dist/types/cosmos/toolbox/thorchain.d.ts.map +1 -0
  81. package/dist/types/cosmos/types.d.ts +49 -0
  82. package/dist/types/cosmos/types.d.ts.map +1 -0
  83. package/dist/types/cosmos/util.d.ts +74 -0
  84. package/dist/types/cosmos/util.d.ts.map +1 -0
  85. package/dist/types/evm/api.d.ts +8 -0
  86. package/dist/types/evm/api.d.ts.map +1 -0
  87. package/dist/types/evm/contracts/eth/multicall.d.ts +36 -0
  88. package/dist/types/evm/contracts/eth/multicall.d.ts.map +1 -0
  89. package/dist/types/evm/contracts/op/gasOracle.d.ts +40 -0
  90. package/dist/types/evm/contracts/op/gasOracle.d.ts.map +1 -0
  91. package/dist/types/evm/helpers.d.ts +6 -0
  92. package/dist/types/evm/helpers.d.ts.map +1 -0
  93. package/dist/types/evm/index.d.ts +5 -0
  94. package/dist/types/evm/index.d.ts.map +1 -0
  95. package/dist/types/evm/toolbox/baseEVMToolbox.d.ts +83 -0
  96. package/dist/types/evm/toolbox/baseEVMToolbox.d.ts.map +1 -0
  97. package/dist/types/evm/toolbox/evm.d.ts +767 -0
  98. package/dist/types/evm/toolbox/evm.d.ts.map +1 -0
  99. package/dist/types/evm/toolbox/index.d.ts +7 -0
  100. package/dist/types/evm/toolbox/index.d.ts.map +1 -0
  101. package/dist/types/evm/toolbox/op.d.ts +76 -0
  102. package/dist/types/evm/toolbox/op.d.ts.map +1 -0
  103. package/dist/types/evm/types.d.ts +108 -0
  104. package/dist/types/evm/types.d.ts.map +1 -0
  105. package/dist/types/index.d.ts +75 -0
  106. package/dist/types/index.d.ts.map +1 -0
  107. package/dist/types/near/helpers/core.d.ts +15 -0
  108. package/dist/types/near/helpers/core.d.ts.map +1 -0
  109. package/dist/types/near/helpers/gasEstimation.d.ts +41 -0
  110. package/dist/types/near/helpers/gasEstimation.d.ts.map +1 -0
  111. package/dist/types/near/helpers/nep141.d.ts +36 -0
  112. package/dist/types/near/helpers/nep141.d.ts.map +1 -0
  113. package/dist/types/near/index.d.ts +10 -0
  114. package/dist/types/near/index.d.ts.map +1 -0
  115. package/dist/types/near/toolbox.d.ts +32 -0
  116. package/dist/types/near/toolbox.d.ts.map +1 -0
  117. package/dist/types/near/types/contract.d.ts +38 -0
  118. package/dist/types/near/types/contract.d.ts.map +1 -0
  119. package/dist/types/near/types/nep141.d.ts +29 -0
  120. package/dist/types/near/types/nep141.d.ts.map +1 -0
  121. package/dist/types/near/types/toolbox.d.ts +51 -0
  122. package/dist/types/near/types/toolbox.d.ts.map +1 -0
  123. package/dist/types/near/types.d.ts +47 -0
  124. package/dist/types/near/types.d.ts.map +1 -0
  125. package/dist/types/radix/index.d.ts +14 -0
  126. package/dist/types/radix/index.d.ts.map +1 -0
  127. package/dist/types/ripple/index.d.ts +46 -0
  128. package/dist/types/ripple/index.d.ts.map +1 -0
  129. package/dist/types/solana/index.d.ts +23 -0
  130. package/dist/types/solana/index.d.ts.map +1 -0
  131. package/dist/types/solana/toolbox.d.ts +51 -0
  132. package/dist/types/solana/toolbox.d.ts.map +1 -0
  133. package/dist/types/substrate/balance.d.ts +17 -0
  134. package/dist/types/substrate/balance.d.ts.map +1 -0
  135. package/dist/types/substrate/index.d.ts +3 -0
  136. package/dist/types/substrate/index.d.ts.map +1 -0
  137. package/dist/types/substrate/substrate.d.ts +148 -0
  138. package/dist/types/substrate/substrate.d.ts.map +1 -0
  139. package/dist/types/substrate/types.d.ts +100 -0
  140. package/dist/types/substrate/types.d.ts.map +1 -0
  141. package/dist/types/sui/index.d.ts +3 -0
  142. package/dist/types/sui/index.d.ts.map +1 -0
  143. package/dist/types/sui/toolbox.d.ts +19 -0
  144. package/dist/types/sui/toolbox.d.ts.map +1 -0
  145. package/dist/types/sui/types.d.ts +16 -0
  146. package/dist/types/sui/types.d.ts.map +1 -0
  147. package/dist/types/ton/index.d.ts +3 -0
  148. package/dist/types/ton/index.d.ts.map +1 -0
  149. package/dist/types/ton/toolbox.d.ts +14 -0
  150. package/dist/types/ton/toolbox.d.ts.map +1 -0
  151. package/dist/types/ton/types.d.ts +22 -0
  152. package/dist/types/ton/types.d.ts.map +1 -0
  153. package/dist/types/tron/helpers/trc20.abi.d.ts +156 -0
  154. package/dist/types/tron/helpers/trc20.abi.d.ts.map +1 -0
  155. package/dist/types/tron/helpers/trongrid.d.ts +8 -0
  156. package/dist/types/tron/helpers/trongrid.d.ts.map +1 -0
  157. package/dist/types/tron/index.d.ts +6 -0
  158. package/dist/types/tron/index.d.ts.map +1 -0
  159. package/dist/types/tron/toolbox.d.ts +26 -0
  160. package/dist/types/tron/toolbox.d.ts.map +1 -0
  161. package/dist/types/tron/types.d.ts +103 -0
  162. package/dist/types/tron/types.d.ts.map +1 -0
  163. package/dist/types/types.d.ts +26 -0
  164. package/dist/types/types.d.ts.map +1 -0
  165. package/dist/types/utils.d.ts +4 -0
  166. package/dist/types/utils.d.ts.map +1 -0
  167. package/dist/types/utxo/helpers/api.d.ts +101 -0
  168. package/dist/types/utxo/helpers/api.d.ts.map +1 -0
  169. package/dist/types/utxo/helpers/bchaddrjs.d.ts +10 -0
  170. package/dist/types/utxo/helpers/bchaddrjs.d.ts.map +1 -0
  171. package/dist/types/utxo/helpers/coinselect.d.ts +17 -0
  172. package/dist/types/utxo/helpers/coinselect.d.ts.map +1 -0
  173. package/dist/types/utxo/helpers/index.d.ts +5 -0
  174. package/dist/types/utxo/helpers/index.d.ts.map +1 -0
  175. package/dist/types/utxo/helpers/txSize.d.ts +21 -0
  176. package/dist/types/utxo/helpers/txSize.d.ts.map +1 -0
  177. package/dist/types/utxo/index.d.ts +7 -0
  178. package/dist/types/utxo/index.d.ts.map +1 -0
  179. package/dist/types/utxo/toolbox/bitcoinCash.d.ts +93 -0
  180. package/dist/types/utxo/toolbox/bitcoinCash.d.ts.map +1 -0
  181. package/dist/types/utxo/toolbox/index.d.ts +28 -0
  182. package/dist/types/utxo/toolbox/index.d.ts.map +1 -0
  183. package/dist/types/utxo/toolbox/params.d.ts +32 -0
  184. package/dist/types/utxo/toolbox/params.d.ts.map +1 -0
  185. package/dist/types/utxo/toolbox/utxo.d.ts +103 -0
  186. package/dist/types/utxo/toolbox/utxo.d.ts.map +1 -0
  187. package/dist/types/utxo/toolbox/validators.d.ts +4 -0
  188. package/dist/types/utxo/toolbox/validators.d.ts.map +1 -0
  189. package/dist/types/utxo/toolbox/zcash.d.ts +72 -0
  190. package/dist/types/utxo/toolbox/zcash.d.ts.map +1 -0
  191. package/dist/types/utxo/types.d.ts +46 -0
  192. package/dist/types/utxo/types.d.ts.map +1 -0
  193. package/package.json +205 -0
  194. package/src/__tests__/address-validation-all-chains.test.ts +162 -0
  195. package/src/__tests__/addressValidator.test.ts +162 -0
  196. package/src/cardano/__tests__/toolbox.test.ts +48 -0
  197. package/src/cardano/index.ts +2 -0
  198. package/src/cardano/toolbox.ts +168 -0
  199. package/src/cardano/types.ts +10 -0
  200. package/src/cosmos/__tests__/toolbox.test.ts +91 -0
  201. package/src/cosmos/index.ts +4 -0
  202. package/src/cosmos/thorchainUtils/addressFormat.ts +22 -0
  203. package/src/cosmos/thorchainUtils/index.ts +4 -0
  204. package/src/cosmos/thorchainUtils/messages.ts +212 -0
  205. package/src/cosmos/thorchainUtils/registry.ts +43 -0
  206. package/src/cosmos/thorchainUtils/types/MsgCompiled.ts +2800 -0
  207. package/src/cosmos/thorchainUtils/types/client-types.ts +54 -0
  208. package/src/cosmos/thorchainUtils/types/index.ts +1 -0
  209. package/src/cosmos/toolbox/cosmos.ts +345 -0
  210. package/src/cosmos/toolbox/index.ts +35 -0
  211. package/src/cosmos/toolbox/thorchain.ts +249 -0
  212. package/src/cosmos/types.ts +48 -0
  213. package/src/cosmos/util.ts +214 -0
  214. package/src/evm/__tests__/address-validation.test.ts +84 -0
  215. package/src/evm/__tests__/ethereum.test.ts +137 -0
  216. package/src/evm/__tests__/signMessage.test.ts +60 -0
  217. package/src/evm/api.ts +10 -0
  218. package/src/evm/contracts/eth/multicall.ts +165 -0
  219. package/src/evm/contracts/op/gasOracle.ts +145 -0
  220. package/src/evm/helpers.ts +73 -0
  221. package/src/evm/index.ts +4 -0
  222. package/src/evm/toolbox/baseEVMToolbox.ts +695 -0
  223. package/src/evm/toolbox/evm.ts +67 -0
  224. package/src/evm/toolbox/index.ts +44 -0
  225. package/src/evm/toolbox/op.ts +156 -0
  226. package/src/evm/types.ts +146 -0
  227. package/src/index.ts +260 -0
  228. package/src/near/__tests__/core.test.ts +70 -0
  229. package/src/near/helpers/core.ts +85 -0
  230. package/src/near/helpers/gasEstimation.ts +96 -0
  231. package/src/near/helpers/nep141.ts +50 -0
  232. package/src/near/index.ts +21 -0
  233. package/src/near/toolbox.ts +421 -0
  234. package/src/near/types/contract.ts +32 -0
  235. package/src/near/types/nep141.ts +34 -0
  236. package/src/near/types/toolbox.ts +55 -0
  237. package/src/near/types.ts +44 -0
  238. package/src/radix/index.ts +132 -0
  239. package/src/ripple/index.ts +179 -0
  240. package/src/solana/index.ts +36 -0
  241. package/src/solana/toolbox.ts +415 -0
  242. package/src/substrate/balance.ts +88 -0
  243. package/src/substrate/index.ts +2 -0
  244. package/src/substrate/substrate.ts +281 -0
  245. package/src/substrate/types.ts +115 -0
  246. package/src/sui/__tests__/toolbox.test.ts +82 -0
  247. package/src/sui/index.ts +2 -0
  248. package/src/sui/toolbox.ts +165 -0
  249. package/src/sui/types.ts +11 -0
  250. package/src/ton/__tests__/toolbox.test.ts +63 -0
  251. package/src/ton/index.ts +2 -0
  252. package/src/ton/toolbox.ts +136 -0
  253. package/src/ton/types.ts +13 -0
  254. package/src/tron/__tests__/toolbox.test.ts +221 -0
  255. package/src/tron/helpers/trc20.abi.ts +107 -0
  256. package/src/tron/helpers/trongrid.ts +53 -0
  257. package/src/tron/index.ts +21 -0
  258. package/src/tron/toolbox.ts +585 -0
  259. package/src/tron/types.ts +83 -0
  260. package/src/types.ts +28 -0
  261. package/src/utils.ts +27 -0
  262. package/src/utxo/__tests__/zcash-integration.test.ts +97 -0
  263. package/src/utxo/helpers/api.ts +471 -0
  264. package/src/utxo/helpers/bchaddrjs.ts +166 -0
  265. package/src/utxo/helpers/coinselect.ts +92 -0
  266. package/src/utxo/helpers/index.ts +4 -0
  267. package/src/utxo/helpers/txSize.ts +137 -0
  268. package/src/utxo/index.ts +6 -0
  269. package/src/utxo/toolbox/bitcoinCash.ts +243 -0
  270. package/src/utxo/toolbox/index.ts +59 -0
  271. package/src/utxo/toolbox/params.ts +18 -0
  272. package/src/utxo/toolbox/utxo.ts +439 -0
  273. package/src/utxo/toolbox/validators.ts +36 -0
  274. package/src/utxo/toolbox/zcash.ts +245 -0
  275. package/src/utxo/types.ts +39 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../../src/evm/toolbox/evm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,QAAQ,EAAE,SAAS,EAAa,MAAM,gBAAgB,CAAC;AAM5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,wBAAsB,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,EAAE,gBAAgB;4BAG1D;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,+DAGjC,SAAS;;;;;;;;;;;;;;;;gBAoDs2c,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAAnoV,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAAoqX,CAAC;;;;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AAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAAnoV,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAAoqX,CAAC;;;;;EArBngf,CAAC;AAC1D,eAAO,MAAM,cAAc,wDAGmE,gBAAgB;;;;;;;;;;;;;;;;gBAiBmxc,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;kBAAnoV,CAAC;gBAAkB,CAAC;oBAAsB,CAAC;4BAA8B,CAAC;;;;;;;;;oBAAoqX,CAAC;;;;;EApBn/e,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type EVMChain } from "@uswap/helpers";
2
+ import type { EVMToolboxes, EVMToolboxParams } from "../types";
3
+ export declare function getEvmToolbox<T extends EVMChain>(chain: T, params?: EVMToolboxParams): Promise<EVMToolboxes[T]>;
4
+ export * from "./baseEVMToolbox";
5
+ export * from "./evm";
6
+ export * from "./op";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/evm/toolbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI/D,wBAAsB,aAAa,CAAC,CAAC,SAAS,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,gBAAgB,4BA+B1F;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,MAAM,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { Chain, FeeOption } from "@uswap/helpers";
2
+ import type { TransactionRequest } from "ethers";
3
+ import { Contract } from "ethers";
4
+ import type { EVMToolboxParams } from "../types";
5
+ declare function getNetworkParams(): {
6
+ blockExplorerUrls: "https://optimistic.etherscan.io"[];
7
+ chainId: import("@uswap/types").ChainId.Optimism;
8
+ chainName: "Optimism";
9
+ nativeCurrency: {
10
+ decimals: 18;
11
+ name: string;
12
+ symbol: Chain;
13
+ };
14
+ rpcUrls: ["https://mainnet.optimism.io", "https://optimism.llamarpc.com", "https://1rpc.io/op"];
15
+ };
16
+ export declare function OPToolbox({ provider: providerParam, ...toolboxSignerParams }: EVMToolboxParams): Promise<{
17
+ estimateGasPrices: Promise<{
18
+ average: {
19
+ l1GasPrice?: bigint;
20
+ gasPrice?: bigint;
21
+ maxFeePerGas?: bigint;
22
+ maxPriorityFeePerGas?: bigint;
23
+ };
24
+ fast: {
25
+ l1GasPrice?: bigint;
26
+ gasPrice?: bigint;
27
+ maxFeePerGas?: bigint;
28
+ maxPriorityFeePerGas?: bigint;
29
+ };
30
+ fastest: {
31
+ l1GasPrice?: bigint;
32
+ gasPrice?: bigint;
33
+ maxFeePerGas?: bigint;
34
+ maxPriorityFeePerGas?: bigint;
35
+ };
36
+ }>;
37
+ estimateL1Gas: (tx: TransactionRequest) => Promise<any>;
38
+ estimateL1GasCost: (tx: TransactionRequest) => Promise<any>;
39
+ estimateL2GasCost: (tx: TransactionRequest) => Promise<any>;
40
+ estimateTotalGasCost: (tx: TransactionRequest) => Promise<any>;
41
+ getBalance: (address: string, scamFilter?: boolean) => Promise<import("@uswap/helpers").AssetValue[]>;
42
+ getL1GasPrice: () => Promise<bigint | undefined>;
43
+ getNetworkParams: typeof getNetworkParams;
44
+ approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("..").ApproveParams) => Promise<string>;
45
+ approvedAmount: ({ assetAddress, spenderAddress, from }: import("..").IsApprovedParams) => Promise<bigint>;
46
+ broadcastTransaction: ((signedTx: string) => Promise<import("ethers").TransactionResponse>) | ((signedTx: string) => Promise<import("ethers").TransactionResponse>);
47
+ call: <T>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("..").CallParams) => Promise<T>;
48
+ createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam }: import("..").ApproveParams) => Promise<import("ethers").ContractTransaction>;
49
+ createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => Contract;
50
+ createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").CallParams) => Promise<import("ethers").ContractTransaction>;
51
+ createTransaction: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
52
+ createTransferTx: ({ assetValue, memo, recipient, data, sender: fromOverride, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("..").EVMCreateTransactionParams) => Promise<import("ethers").ContractTransaction>;
53
+ EIP1193SendTransaction: ({ value, ...params }: import("..").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
54
+ estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("..").EstimateCallParams) => Promise<bigint>;
55
+ estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("..").EVMTransferParams & {
56
+ assetValue: import("@uswap/helpers").AssetValue;
57
+ funcName?: string;
58
+ funcParams?: unknown[];
59
+ txOverrides?: import("..").EVMTxParams;
60
+ data?: string;
61
+ }) => Promise<bigint>;
62
+ estimateTransactionFee: ({ feeOption, chain, ...txObject }: import("..").EIP1559TxParams & {
63
+ feeOption: FeeOption;
64
+ chain: import("@uswap/types").EVMChain;
65
+ }) => Promise<import("@uswap/helpers").AssetValue>;
66
+ getAddress: () => string | Promise<string> | undefined;
67
+ isApproved: ({ assetAddress, spenderAddress, from, amount }: import("..").IsApprovedParams) => Promise<boolean>;
68
+ sendTransaction: ({ feeOptionKey, ...tx }: import("..").EVMTxParams & {
69
+ feeOptionKey?: FeeOption;
70
+ }) => Promise<string>;
71
+ signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
72
+ transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
73
+ validateAddress: (address: string) => boolean;
74
+ }>;
75
+ export {};
76
+ //# sourceMappingURL=op.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"op.d.ts","sourceRoot":"","sources":["../../../../src/evm/toolbox/op.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,EAAE,SAAS,EAA2C,MAAM,gBAAgB,CAAC;AACvH,OAAO,KAAK,EAA6D,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAgB,MAAM,QAAQ,CAAC;AAKhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA0EjD,iBAAS,gBAAgB;;;;;;;;;;EAUxB;AAyCD,wBAAsB,SAAS,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,mBAAmB,EAAE,EAAE,gBAAgB;;;yBAbhF,MAAM;uBACR,MAAM;2BACF,MAAM;mCACE,MAAM;;;yBAHhB,MAAM;uBACR,MAAM;2BACF,MAAM;mCACE,MAAM;;;yBAHhB,MAAM;uBACR,MAAM;2BACF,MAAM;mCACE,MAAM;;;wBAnDK,kBAAkB;4BA3Bd,kBAAkB;4BAWlB,kBAAkB;+BAQf,kBAAkB;;;;;;;;;;;;;;;;;gBA6FgkX,CAAC;kBAAwB,CAAC;mBAA4B,CAAC;YAAuB,CAAC;;;;;;;;;oBAA2mC,CAAC;;;;;GAD7zZ"}
@@ -0,0 +1,108 @@
1
+ import type { AssetValue, ChainSigner, DerivationPathArray, FeeOption, GenericCreateTransactionParams, GenericTransferParams } from "@uswap/helpers";
2
+ import { Chain } from "@uswap/helpers";
3
+ import type { BigNumberish, BrowserProvider, JsonFragment, JsonRpcProvider, JsonRpcSigner, Signer, Transaction } from "ethers";
4
+ import type { getProvider } from "./index";
5
+ import type { ARBToolbox, AURORAToolbox, AVAXToolbox, BASEToolbox, BERAToolbox, BSCToolbox, COREToolbox, CORNToolbox, CROToolbox, ETHToolbox, GNOToolbox, HYPEREVMToolbox, MATICToolbox, MEGAETHToolbox, MONADToolbox, OPToolbox, SONICToolbox, UNIToolbox, XLayerToolbox } from "./toolbox";
6
+ export declare enum EthNetwork {
7
+ Test = "goerli",
8
+ Main = "homestead"
9
+ }
10
+ export type ApproveParams = {
11
+ assetAddress: string;
12
+ spenderAddress: string;
13
+ feeOptionKey?: FeeOption;
14
+ amount?: BigNumberish;
15
+ from?: string;
16
+ gasLimitFallback?: BigNumberish;
17
+ nonce?: number;
18
+ };
19
+ export type ApprovedParams = {
20
+ assetAddress: string;
21
+ spenderAddress: string;
22
+ from: string;
23
+ };
24
+ export type IsApprovedParams = ApprovedParams & {
25
+ amount?: BigNumberish;
26
+ };
27
+ export type CallParams = {
28
+ callProvider?: Awaited<ReturnType<typeof getProvider>>;
29
+ contractAddress: string;
30
+ abi: readonly JsonFragment[];
31
+ funcName: string;
32
+ funcParams?: unknown[];
33
+ txOverrides?: Partial<Transaction>;
34
+ feeOption?: FeeOption;
35
+ };
36
+ export type EstimateCallParams = Pick<CallParams, "contractAddress" | "abi" | "funcName" | "funcParams" | "txOverrides">;
37
+ export type EVMTransferParams = GenericTransferParams & {
38
+ sender?: string;
39
+ };
40
+ export type EVMCreateTransactionParams = Omit<GenericCreateTransactionParams, "feeRate"> & {
41
+ gasLimit?: bigint;
42
+ gasPrice?: bigint;
43
+ maxFeePerGas?: bigint;
44
+ maxPriorityFeePerGas?: bigint;
45
+ data?: string;
46
+ nonce?: number;
47
+ };
48
+ export type EVMMaxSendableAmountsParams = {
49
+ from: string;
50
+ assetValue: AssetValue;
51
+ feeOptionKey?: FeeOption;
52
+ memo?: string;
53
+ abi?: readonly JsonFragment[];
54
+ funcName?: string;
55
+ contractAddress?: string;
56
+ funcParams?: unknown[];
57
+ txOverrides?: Partial<Transaction>;
58
+ };
59
+ export type EVMTxBaseParams<T = bigint> = {
60
+ to?: string;
61
+ from?: string;
62
+ nonce?: number;
63
+ gasLimit?: T;
64
+ data?: string;
65
+ value?: T;
66
+ chainId?: T;
67
+ };
68
+ export type EIP1559TxParams<T = bigint> = EVMTxBaseParams<T> & {
69
+ type?: number;
70
+ maxFeePerGas?: T;
71
+ maxPriorityFeePerGas?: T;
72
+ };
73
+ export type LegacyEVMTxParams<T = bigint> = EVMTxBaseParams<T> & {
74
+ gasPrice?: T;
75
+ };
76
+ export type EVMTxParams = EIP1559TxParams | LegacyEVMTxParams;
77
+ export type EVMToolboxParams = {
78
+ provider?: BrowserProvider | JsonRpcProvider;
79
+ } & ({
80
+ signer?: (ChainSigner<EVMTransferParams, string> & Signer) | JsonRpcSigner;
81
+ } | {
82
+ phrase?: string;
83
+ derivationPath?: DerivationPathArray;
84
+ index?: number;
85
+ });
86
+ export type EVMToolboxes = {
87
+ [Chain.Arbitrum]: Awaited<ReturnType<typeof ARBToolbox>>;
88
+ [Chain.Aurora]: Awaited<ReturnType<typeof AURORAToolbox>>;
89
+ [Chain.Avalanche]: Awaited<ReturnType<typeof AVAXToolbox>>;
90
+ [Chain.Base]: Awaited<ReturnType<typeof BASEToolbox>>;
91
+ [Chain.Berachain]: Awaited<ReturnType<typeof BERAToolbox>>;
92
+ [Chain.BinanceSmartChain]: Awaited<ReturnType<typeof BSCToolbox>>;
93
+ [Chain.Botanix]: Awaited<ReturnType<typeof SONICToolbox>>;
94
+ [Chain.Core]: Awaited<ReturnType<typeof COREToolbox>>;
95
+ [Chain.Corn]: Awaited<ReturnType<typeof CORNToolbox>>;
96
+ [Chain.Cronos]: Awaited<ReturnType<typeof CROToolbox>>;
97
+ [Chain.Ethereum]: Awaited<ReturnType<typeof ETHToolbox>>;
98
+ [Chain.Gnosis]: Awaited<ReturnType<typeof GNOToolbox>>;
99
+ [Chain.Hyperevm]: Awaited<ReturnType<typeof HYPEREVMToolbox>>;
100
+ [Chain.MegaETH]: Awaited<ReturnType<typeof MEGAETHToolbox>>;
101
+ [Chain.Monad]: Awaited<ReturnType<typeof MONADToolbox>>;
102
+ [Chain.Optimism]: Awaited<ReturnType<typeof OPToolbox>>;
103
+ [Chain.Polygon]: Awaited<ReturnType<typeof MATICToolbox>>;
104
+ [Chain.Sonic]: Awaited<ReturnType<typeof SONICToolbox>>;
105
+ [Chain.Unichain]: Awaited<ReturnType<typeof UNIToolbox>>;
106
+ [Chain.XLayer]: Awaited<ReturnType<typeof XLayerToolbox>>;
107
+ };
108
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/evm/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,8BAA8B,EAC9B,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,eAAe,EACf,aAAa,EACb,MAAM,EACN,WAAW,EACZ,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,UAAU,EACV,aAAa,EACd,MAAM,WAAW,CAAC;AAEnB,oBAAY,UAAU;IACpB,IAAI,WAAW;IACf,IAAI,cAAc;CACnB;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;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,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;IACzD,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;IACvD,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;IAC9D,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC;IAC5D,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;IACxD,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;IACxD,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;IAC1D,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;IACxD,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;IACzD,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;CAC3D,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { AssetValue, Chain, type CosmosChain, type EVMChain, type GenericCreateTransactionParams, type SubstrateChain, type UTXOChain } from "@uswap/helpers";
2
+ import type { getCardanoToolbox } from "./cardano";
3
+ import type { getCosmosToolbox } from "./cosmos";
4
+ import type { EVMCreateTransactionParams, getEvmToolbox } from "./evm";
5
+ import type { getNearToolbox } from "./near";
6
+ import type { RadixToolbox } from "./radix";
7
+ import type { getRippleToolbox } from "./ripple";
8
+ import type { getSolanaToolbox, SolanaCreateTransactionParams } from "./solana";
9
+ import type { getSubstrateToolbox } from "./substrate";
10
+ import type { getSuiToolbox, SuiCreateTransactionParams } from "./sui";
11
+ import type { getTONToolbox } from "./ton";
12
+ import type { createTronToolbox } from "./tron";
13
+ import type { getUtxoToolbox } from "./utxo";
14
+ export * from "./types";
15
+ export declare function getAddressValidator(): Promise<({ address, chain }: {
16
+ address: string;
17
+ chain: Chain;
18
+ }) => boolean>;
19
+ export declare function getFeeEstimator<T extends keyof CreateTransactionParams>(chain: T): (params: CreateTransactionParams[T]) => Promise<AssetValue>;
20
+ type Toolboxes = {
21
+ [key in EVMChain]: Awaited<ReturnType<typeof getEvmToolbox>>;
22
+ } & {
23
+ [key in UTXOChain]: Awaited<ReturnType<typeof getUtxoToolbox>>;
24
+ } & {
25
+ [key in CosmosChain]: Awaited<ReturnType<typeof getCosmosToolbox>>;
26
+ } & {
27
+ [key in SubstrateChain]: Awaited<ReturnType<typeof getSubstrateToolbox>>;
28
+ } & {
29
+ [Chain.Radix]: Awaited<ReturnType<typeof RadixToolbox>>;
30
+ [Chain.Near]: Awaited<ReturnType<typeof getNearToolbox>>;
31
+ [Chain.Ripple]: Awaited<ReturnType<typeof getRippleToolbox>>;
32
+ [Chain.Solana]: Awaited<ReturnType<typeof getSolanaToolbox>>;
33
+ [Chain.Sui]: Awaited<ReturnType<typeof getSuiToolbox>>;
34
+ [Chain.Ton]: Awaited<ReturnType<typeof getTONToolbox>>;
35
+ [Chain.Tron]: Awaited<ReturnType<typeof createTronToolbox>>;
36
+ [Chain.Cardano]: Awaited<ReturnType<typeof getCardanoToolbox>>;
37
+ };
38
+ type ToolboxParams = {
39
+ [key in EVMChain]: Parameters<typeof getEvmToolbox>[1];
40
+ } & {
41
+ [key in UTXOChain]: undefined;
42
+ } & {
43
+ [key in CosmosChain]: Parameters<typeof getCosmosToolbox>[1];
44
+ } & {
45
+ [key in SubstrateChain]: Parameters<typeof getSubstrateToolbox>[1];
46
+ } & {
47
+ [Chain.Radix]: Parameters<typeof RadixToolbox>[0];
48
+ [Chain.Near]: Parameters<typeof getNearToolbox>[0];
49
+ [Chain.Ripple]: Parameters<typeof getRippleToolbox>[0];
50
+ [Chain.Solana]: Parameters<typeof getSolanaToolbox>[0];
51
+ [Chain.Sui]: Parameters<typeof getSuiToolbox>[0];
52
+ [Chain.Ton]: Parameters<typeof getTONToolbox>[0];
53
+ [Chain.Tron]: Parameters<typeof createTronToolbox>[0];
54
+ [Chain.Cardano]: Parameters<typeof getCardanoToolbox>[0];
55
+ };
56
+ type CreateTransactionParams = {
57
+ [key in EVMChain]: EVMCreateTransactionParams;
58
+ } & {
59
+ [key in UTXOChain]: GenericCreateTransactionParams;
60
+ } & {
61
+ [key in CosmosChain]: GenericCreateTransactionParams;
62
+ } & {
63
+ [key in SubstrateChain]: GenericCreateTransactionParams;
64
+ } & {
65
+ [Chain.Radix]: GenericCreateTransactionParams;
66
+ [Chain.Ripple]: GenericCreateTransactionParams;
67
+ [Chain.Near]: GenericCreateTransactionParams;
68
+ [Chain.Solana]: SolanaCreateTransactionParams;
69
+ [Chain.Sui]: SuiCreateTransactionParams;
70
+ [Chain.Ton]: GenericCreateTransactionParams;
71
+ [Chain.Tron]: GenericCreateTransactionParams;
72
+ [Chain.Cardano]: GenericCreateTransactionParams;
73
+ };
74
+ export declare function getToolbox<T extends keyof Toolboxes>(chain: T, params?: ToolboxParams[T]): Promise<Toolboxes[T]>;
75
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,EACL,KAAK,WAAW,EAEhB,KAAK,QAAQ,EAGb,KAAK,8BAA8B,EACnC,KAAK,cAAc,EAGnB,KAAK,SAAS,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAA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,CAAC;IAC9C,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,0BAA0B,CAAC;IACxC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,8BAA8B,CAAC;IAC5C,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,8BAA8B,CAAC;IAC7C,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,8BAA8B,CAAC;CACjD,CAAC;AAEF,wBAAsB,UAAU,CAAC,CAAC,SAAS,MAAM,SAAS,EACxD,KAAK,EAAE,CAAC,EACR,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GACxB,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CA0EvB"}
@@ -0,0 +1,15 @@
1
+ import type { Provider } from "@near-js/providers";
2
+ import { type DerivationPathArray } from "@uswap/helpers";
3
+ import type { NearSigner } from "../types";
4
+ export declare function getValidateNearAddress(): Promise<(address: string) => boolean>;
5
+ export declare function getNearSignerFromPhrase(params: {
6
+ phrase: string;
7
+ derivationPath?: DerivationPathArray;
8
+ index?: number;
9
+ }): Promise<NearSigner>;
10
+ export declare function getNearSignerFromPrivateKey(privateKey: string): Promise<NearSigner>;
11
+ export declare function getFullAccessPublicKey(provider: Provider, accountId: string): Promise<{
12
+ nonce: number;
13
+ publicKey: import("@near-js/crypto").PublicKey;
14
+ }>;
15
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../src/near/helpers/core.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,KAAK,mBAAmB,EAAwC,MAAM,gBAAgB,CAAC;AAChG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,wBAAsB,sBAAsB,sBAEzB,MAAM,cAUxB;AAED,wBAAsB,uBAAuB,CAAC,MAAM,EAAE;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,uBAaA;AAED,wBAAsB,2BAA2B,CAAC,UAAU,EAAE,MAAM,uBAInE;AAuBD,wBAAsB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM;;;GAkBjF"}
@@ -0,0 +1,41 @@
1
+ import type { Account } from "@near-js/accounts";
2
+ import type { NearGasEstimateParams } from "../types/contract";
3
+ export declare const GAS_COSTS: {
4
+ readonly ACCESS_KEY_ADDITION: "5";
5
+ readonly ACCESS_KEY_DELETION: "5";
6
+ readonly ACCOUNT_CREATION: "30";
7
+ readonly CONTRACT_CALL: "150";
8
+ readonly CONTRACT_DEPLOYMENT: "200";
9
+ readonly SIMPLE_TRANSFER: "1";
10
+ readonly STAKE: "10";
11
+ readonly STORAGE_DEPOSIT: "150";
12
+ readonly TOKEN_TRANSFER: "150";
13
+ };
14
+ export declare function isSimpleTransfer(params: NearGasEstimateParams): params is {
15
+ recipient: string;
16
+ amount: string;
17
+ };
18
+ export declare function isContractCall(params: NearGasEstimateParams): params is {
19
+ contractId: string;
20
+ methodName: string;
21
+ args?: Record<string, any>;
22
+ attachedDeposit?: string;
23
+ };
24
+ export declare function isBatchTransaction(params: NearGasEstimateParams): params is {
25
+ actions: any[];
26
+ };
27
+ export declare function isAccountCreation(params: NearGasEstimateParams): params is {
28
+ newAccountId: string;
29
+ publicKey?: string;
30
+ };
31
+ export declare function isContractDeployment(params: NearGasEstimateParams): params is {
32
+ contractCode: Uint8Array;
33
+ };
34
+ export declare function isCustomEstimator(params: NearGasEstimateParams): params is {
35
+ customEstimator: (account: Account) => Promise<string>;
36
+ };
37
+ export declare function estimateBatchGas(actions: any[]): string;
38
+ export declare function getContractMethodGas(methodName: string): "150";
39
+ export declare function tgasToGas(tgas: string): string;
40
+ export declare function gasToTGas(gas: string): string;
41
+ //# sourceMappingURL=gasEstimation.d.ts.map
@@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UAgC9C;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,SAQtD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C"}
@@ -0,0 +1,36 @@
1
+ import type { Account, Contract } from "@near-js/accounts";
2
+ export interface NEP141Metadata {
3
+ spec: string;
4
+ name: string;
5
+ symbol: string;
6
+ icon?: string;
7
+ reference?: string;
8
+ reference_hash?: string;
9
+ decimals: number;
10
+ }
11
+ export interface StorageBalance {
12
+ total: string;
13
+ available: string;
14
+ }
15
+ export interface StorageBalanceBounds {
16
+ min: string;
17
+ max?: string;
18
+ }
19
+ export type NEP141Token = {
20
+ transfer: (receiverId: string, amount: string, memo?: string) => Promise<void>;
21
+ transferCall: (receiverId: string, amount: string, msg: string, memo?: string) => Promise<void>;
22
+ balanceOf: (accountId: string) => Promise<string>;
23
+ totalSupply: () => Promise<string>;
24
+ metadata: () => Promise<NEP141Metadata>;
25
+ storageBalanceOf: (accountId: string) => Promise<StorageBalance | null>;
26
+ storageDeposit: (accountId?: string, amount?: string) => Promise<StorageBalance>;
27
+ ensureStorage: (accountId: string) => Promise<void>;
28
+ contract: Contract;
29
+ };
30
+ export declare function createNearContract<T extends Contract>({ account, contractId, viewMethods, changeMethods, }: {
31
+ account: Account;
32
+ contractId: string;
33
+ viewMethods: string[];
34
+ changeMethods: string[];
35
+ }): Promise<T>;
36
+ //# sourceMappingURL=nep141.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nep141.d.ts","sourceRoot":"","sources":["../../../../src/near/helpers/nep141.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,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EAC3D,OAAO,EACP,UAAU,EACV,WAAW,EACX,aAAa,GACd,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,cAIA"}
@@ -0,0 +1,10 @@
1
+ import type { getNearToolbox } from "./toolbox";
2
+ export * from "./helpers/core";
3
+ export * from "./helpers/gasEstimation";
4
+ export * from "./helpers/nep141";
5
+ export * from "./toolbox";
6
+ export * from "./types";
7
+ export type NearWallet = Awaited<ReturnType<typeof getNearToolbox>>;
8
+ export type { NearCallParams, NearContractInterface, NearGasEstimateParams, } from "./types/contract";
9
+ export type { FungibleTokenMetadata, StorageBalance, StorageBalanceBounds, TokenTransferParams, } from "./types/nep141";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/near/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC;AAEpE,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { Account, Contract } from "@near-js/accounts";
2
+ import type { SignedTransaction, Transaction } from "@near-js/transactions";
3
+ import { AssetValue } from "@uswap/helpers";
4
+ import { getNearSignerFromPrivateKey } from "./helpers/core";
5
+ import type { NearCreateTransactionParams, NearFunctionCallParams, NearToolboxParams, NearTransferParams } from "./types";
6
+ import type { NearContractInterface, NearGasEstimateParams } from "./types/contract";
7
+ import type { BatchTransaction, ContractFunctionCallParams, CreateActionParams, GetSignerFromPhraseParams } from "./types/toolbox";
8
+ export declare function getNearToolbox(toolboxParams?: NearToolboxParams): Promise<{
9
+ broadcastTransaction: (signedTransaction: SignedTransaction) => Promise<any>;
10
+ callFunction: (params: NearFunctionCallParams) => Promise<string>;
11
+ createAction: (params: CreateActionParams) => Promise<import("@near-js/transactions").Action>;
12
+ createContract: <T extends Contract = Contract>(contractInterface: NearContractInterface) => Promise<T>;
13
+ createContractFunctionCall: (params: ContractFunctionCallParams) => Promise<Transaction>;
14
+ createSubAccount: (subAccountId: string, publicKey: string, initialBalance: string) => Promise<string>;
15
+ createTransaction: (params: NearCreateTransactionParams) => Promise<Transaction>;
16
+ estimateGas: (params: NearGasEstimateParams, account?: Account) => Promise<AssetValue>;
17
+ estimateTransactionFee: (params: NearTransferParams | NearGasEstimateParams) => Promise<AssetValue>;
18
+ executeBatchTransaction: (batch: BatchTransaction) => Promise<string>;
19
+ getAddress: () => Promise<string>;
20
+ getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
21
+ getGasPrice: () => Promise<string>;
22
+ getPublicKey: () => Promise<string>;
23
+ getSignerFromPhrase: (params: GetSignerFromPhraseParams) => Promise<import("./types").NearSigner>;
24
+ getSignerFromPrivateKey: typeof getNearSignerFromPrivateKey;
25
+ provider: import("@near-js/providers").JsonRpcProvider;
26
+ serializeTransaction: (transaction: Transaction) => string;
27
+ signAndSendTransaction: (transaction: Transaction) => Promise<any>;
28
+ signTransaction: (transaction: Transaction) => Promise<SignedTransaction>;
29
+ transfer: (params: NearTransferParams) => Promise<any>;
30
+ validateAddress: (address: string) => boolean;
31
+ }>;
32
+ //# sourceMappingURL=toolbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbox.d.ts","sourceRoot":"","sources":["../../../src/near/toolbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAkD,MAAM,gBAAgB,CAAC;AAE5F,OAAO,EAGL,2BAA2B,EAE5B,MAAM,gBAAgB,CAAC;AAaxB,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,KAAK,EACV,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AAEzB,wBAAsB,cAAc,CAAC,aAAa,CAAC,EAAE,iBAAiB;8CAoMb,iBAAiB;2BAsEpC,sBAAsB,KAAG,OAAO,CAAC,MAAM,CAAC;2BA5FxC,kBAAkB;qBAyHxB,CAAC,SAAS,QAAQ,gCAAgC,qBAAqB,KAAG,OAAO,CAAC,CAAC,CAAC;yCAjJhE,0BAA0B;qCAoG9B,MAAM,aAAa,MAAM,kBAAkB,MAAM,KAAG,OAAO,CAAC,MAAM,CAAC;gCA3JxE,2BAA2B;0BAoOjC,qBAAqB,YAAY,OAAO;qCA5G7B,kBAAkB,GAAG,qBAAqB;qCA2F1C,gBAAgB,KAAG,OAAO,CAAC,MAAM,CAAC;;;;;kCAoEhD,yBAAyB;;;wCArOd,WAAW;0CAwDH,WAAW;mCAdlB,WAAW,KAAG,OAAO,CAAC,iBAAiB,CAAC;uBAlHpD,kBAAkB;;GAsTnD"}
@@ -0,0 +1,38 @@
1
+ import type { Account } from "@near-js/accounts";
2
+ import type { Action } from "@near-js/transactions";
3
+ export interface NearContractInterface {
4
+ contractId: string;
5
+ viewMethods: string[];
6
+ changeMethods: string[];
7
+ metadata?: {
8
+ version: string;
9
+ standards: string[];
10
+ };
11
+ }
12
+ export interface NearCallParams {
13
+ contractId: string;
14
+ methodName: string;
15
+ args?: Record<string, any>;
16
+ gas?: string | bigint;
17
+ attachedDeposit?: string | bigint;
18
+ isView?: boolean;
19
+ }
20
+ export type NearGasEstimateParams = {
21
+ recipient: string;
22
+ amount: string;
23
+ } | {
24
+ contractId: string;
25
+ methodName: string;
26
+ args?: Record<string, any>;
27
+ attachedDeposit?: string;
28
+ } | {
29
+ actions: Action[];
30
+ } | {
31
+ newAccountId: string;
32
+ publicKey?: string;
33
+ } | {
34
+ contractCode: Uint8Array;
35
+ } | {
36
+ customEstimator: (account: Account) => Promise<string>;
37
+ };
38
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/near/types/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;CACH;AAGD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAGD,MAAM,MAAM,qBAAqB,GAC7B;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,GAChG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GACrB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,YAAY,EAAE,UAAU,CAAA;CAAE,GAC5B;IAAE,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { Contract } from "@near-js/accounts";
2
+ export interface FungibleTokenMetadata {
3
+ spec: string;
4
+ name: string;
5
+ symbol: string;
6
+ icon?: string;
7
+ reference?: string;
8
+ reference_hash?: string;
9
+ decimals: number;
10
+ }
11
+ export interface StorageBalance {
12
+ total: string;
13
+ available: string;
14
+ }
15
+ export interface StorageBalanceBounds {
16
+ min: string;
17
+ max?: string;
18
+ }
19
+ export interface NEP141StorageContract extends Contract {
20
+ storage_balance_of: (args: {
21
+ account_id: string;
22
+ }) => Promise<StorageBalance | null>;
23
+ }
24
+ export interface TokenTransferParams {
25
+ recipient: string;
26
+ amount: string;
27
+ memo?: string;
28
+ }
29
+ //# sourceMappingURL=nep141.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nep141.d.ts","sourceRoot":"","sources":["../../../../src/near/types/nep141.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAIlD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAsB,SAAQ,QAAQ;IACrD,kBAAkB,EAAE,CAAC,IAAI,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACtF;AAGD,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,51 @@
1
+ import type { Account, Contract } from "@near-js/accounts";
2
+ import type { JsonRpcProvider } from "@near-js/providers";
3
+ import type { Action, SignedTransaction, Transaction } from "@near-js/transactions";
4
+ import type { AssetValue, DerivationPathArray } from "@uswap/helpers";
5
+ import type { NEP141Token } from "../helpers/nep141";
6
+ import type { NearCreateTransactionParams, NearFunctionCallParams, NearSigner, NearTransferParams } from "../types";
7
+ import type { NearContractInterface, NearGasEstimateParams } from "../types/contract";
8
+ export interface BatchTransaction {
9
+ receiverId: string;
10
+ actions: Action[];
11
+ }
12
+ export interface ContractFunctionCallParams {
13
+ sender: string;
14
+ contractId: string;
15
+ methodName: string;
16
+ args: Record<string, any>;
17
+ gas: string;
18
+ attachedDeposit: string;
19
+ }
20
+ export type CreateActionParams = Pick<ContractFunctionCallParams, "methodName" | "args" | "gas" | "attachedDeposit">;
21
+ export interface GetSignerFromPhraseParams {
22
+ phrase: string;
23
+ derivationPath?: DerivationPathArray;
24
+ index?: number;
25
+ }
26
+ export interface NearToolbox {
27
+ getAddress: () => Promise<string>;
28
+ getPublicKey: () => Promise<string>;
29
+ provider: typeof JsonRpcProvider;
30
+ transfer: (params: NearTransferParams) => Promise<string>;
31
+ createAction: (params: CreateActionParams) => Promise<Action>;
32
+ createTransaction: (params: NearCreateTransactionParams) => Promise<Transaction>;
33
+ createContractFunctionCall: (params: ContractFunctionCallParams) => Promise<Transaction>;
34
+ estimateTransactionFee: (params: NearTransferParams | NearGasEstimateParams) => Promise<AssetValue>;
35
+ broadcastTransaction: (signedTransaction: SignedTransaction) => Promise<string>;
36
+ signTransaction: (transaction: Transaction) => Promise<SignedTransaction>;
37
+ getBalance: (address: string) => Promise<AssetValue[]>;
38
+ validateAddress: (address: string) => boolean;
39
+ getSignerFromPhrase: (params: GetSignerFromPhraseParams) => Promise<NearSigner>;
40
+ getSignerFromPrivateKey: (privateKey: string) => Promise<NearSigner>;
41
+ callFunction: (params: NearFunctionCallParams) => Promise<string>;
42
+ createSubAccount: (subAccountId: string, publicKey: string, initialBalance: string) => Promise<string>;
43
+ createContract: <T extends Contract = Contract>(contractInterface: NearContractInterface) => Promise<T>;
44
+ executeBatchTransaction: (batch: BatchTransaction) => Promise<string>;
45
+ nep141: (contractId: string) => Promise<NEP141Token>;
46
+ getGasPrice: () => Promise<string>;
47
+ estimateGas: (params: NearGasEstimateParams, account?: Account) => Promise<AssetValue>;
48
+ serializeTransaction: (params: Transaction) => Promise<string>;
49
+ signAndSendTransaction: (params: Transaction) => Promise<string>;
50
+ }
51
+ //# sourceMappingURL=toolbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbox.d.ts","sourceRoot":"","sources":["../../../../src/near/types/toolbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK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