@tonappchain/sdk 0.7.0-rc24-test-8 → 0.7.0-rc24-test-9

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 (409) hide show
  1. package/dist/{src/adapters → adapters}/contractOpener.d.ts +1 -2
  2. package/dist/{src/adapters → adapters}/contractOpener.js +6 -37
  3. package/dist/{src/adapters → adapters}/retryableContractOpener.d.ts +3 -6
  4. package/dist/{src/adapters → adapters}/retryableContractOpener.js +11 -10
  5. package/dist/{src/assets → assets}/AssetCache.d.ts +1 -1
  6. package/dist/{src/assets → assets}/AssetFactory.d.ts +2 -2
  7. package/dist/{src/assets → assets}/AssetFactory.js +1 -1
  8. package/dist/{src/assets → assets}/FT.d.ts +17 -15
  9. package/dist/{src/assets → assets}/FT.js +56 -103
  10. package/dist/{src/assets → assets}/NFT.d.ts +16 -15
  11. package/dist/{src/assets → assets}/NFT.js +36 -64
  12. package/dist/{src/assets → assets}/TON.d.ts +13 -7
  13. package/dist/{src/assets → assets}/TON.js +20 -22
  14. package/dist/errors/index.d.ts +2 -0
  15. package/dist/{src/errors → errors}/index.js +2 -7
  16. package/dist/{src/errors → errors}/instances.d.ts +1 -8
  17. package/dist/{src/errors → errors}/instances.js +16 -22
  18. package/dist/{src/index.d.ts → index.d.ts} +9 -10
  19. package/dist/{src/index.js → index.js} +18 -14
  20. package/dist/{src/sdk → sdk}/Configuration.d.ts +5 -6
  21. package/dist/sdk/Configuration.js +92 -0
  22. package/dist/{src/sdk → sdk}/Consts.d.ts +0 -3
  23. package/dist/{src/sdk → sdk}/Consts.js +1 -4
  24. package/dist/sdk/LiteSequencerClient.d.ts +13 -0
  25. package/dist/{src/sdk → sdk}/LiteSequencerClient.js +22 -70
  26. package/dist/{src/sdk → sdk}/Logger.d.ts +1 -1
  27. package/dist/{src/sdk → sdk}/OperationTracker.d.ts +13 -5
  28. package/dist/{src/sdk → sdk}/OperationTracker.js +16 -85
  29. package/dist/sdk/Simulator.d.ts +23 -0
  30. package/dist/sdk/Simulator.js +169 -0
  31. package/dist/{src/sdk → sdk}/StartTracking.d.ts +1 -1
  32. package/dist/sdk/TacSdk.d.ts +25 -0
  33. package/dist/sdk/TacSdk.js +104 -0
  34. package/dist/sdk/TransactionManager.d.ts +22 -0
  35. package/dist/sdk/TransactionManager.js +269 -0
  36. package/dist/{src/sdk → sdk}/TxFinalizer.d.ts +2 -3
  37. package/dist/{src/sdk → sdk}/TxFinalizer.js +8 -8
  38. package/dist/{src/sdk → sdk}/Utils.d.ts +5 -12
  39. package/dist/{src/sdk → sdk}/Utils.js +12 -103
  40. package/dist/{src/sdk → sdk}/Validator.d.ts +2 -2
  41. package/dist/{src/sdk → sdk}/Validator.js +6 -6
  42. package/dist/{src/sender → sender}/BatchSender.d.ts +2 -1
  43. package/dist/{src/sender → sender}/RawSender.d.ts +3 -3
  44. package/dist/sender/SenderAbstraction.d.ts +22 -0
  45. package/dist/sender/SenderAbstraction.js +5 -0
  46. package/dist/{src/sender → sender}/SenderFactory.d.ts +1 -1
  47. package/dist/{src/sender → sender}/TonConnectSender.d.ts +2 -2
  48. package/dist/{src/sender → sender}/TonConnectSender.js +2 -2
  49. package/dist/{src/sender → sender}/index.d.ts +1 -1
  50. package/dist/{src/sender → sender}/index.js +1 -1
  51. package/dist/{src/structs → structs}/InternalStruct.d.ts +7 -25
  52. package/dist/structs/Services.d.ts +41 -0
  53. package/dist/{src/structs → structs}/Struct.d.ts +60 -91
  54. package/dist/{src/structs → structs}/Struct.js +1 -7
  55. package/dist/{src/wrappers → wrappers}/HighloadWalletV3.d.ts +2 -2
  56. package/dist/wrappers/JettonMaster.d.ts +24 -0
  57. package/dist/wrappers/JettonMaster.js +53 -0
  58. package/dist/{artifacts/mainnet/ton/internal/wrappers → wrappers}/JettonWallet.d.ts +13 -52
  59. package/dist/wrappers/JettonWallet.js +124 -0
  60. package/dist/wrappers/Settings.d.ts +10 -0
  61. package/dist/wrappers/Settings.js +38 -0
  62. package/package.json +1 -1
  63. package/dist/artifacts/dev/index.d.ts +0 -9
  64. package/dist/artifacts/dev/index.js +0 -52
  65. package/dist/artifacts/dev/tac/addresses.d.ts +0 -4
  66. package/dist/artifacts/dev/tac/addresses.js +0 -8
  67. package/dist/artifacts/dev/tac/artifacts.d.ts +0 -330
  68. package/dist/artifacts/dev/tac/artifacts.js +0 -26
  69. package/dist/artifacts/dev/tac/endpoints.d.ts +0 -2
  70. package/dist/artifacts/dev/tac/endpoints.js +0 -5
  71. package/dist/artifacts/dev/tac/index.d.ts +0 -6
  72. package/dist/artifacts/dev/tac/index.js +0 -43
  73. package/dist/artifacts/dev/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -296
  74. package/dist/artifacts/dev/tac/internal/artifacts/contracts/core/Structs.sol/IStructsInterface.json +0 -1087
  75. package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/ICrossChainLayer.sol/ICrossChainLayer.json +0 -114
  76. package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/ISettings.sol/ISettings.json +0 -194
  77. package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/ITokenUtils.sol/ITokenUtils.json +0 -164
  78. package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/tokens/ICrossChainLayerERC20.sol/ICrossChainLayerERC20.json +0 -278
  79. package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/tokens/ICrossChainLayerERC721.sol/ICrossChainLayerERC721.json +0 -380
  80. package/dist/artifacts/dev/tac/internal/artifacts/contracts/interfaces/tokens/IERC20WithDecimals.sol/IERC20WithDecimals.json +0 -207
  81. package/dist/artifacts/dev/tac/internal/artifacts/contracts/smart-account/interfaces/ISAFactory.sol/ISAFactory.json +0 -103
  82. package/dist/artifacts/dev/tac/internal/artifacts/contracts/smart-account/interfaces/ITacSmartAccount.sol/ITacSmartAccount.json +0 -181
  83. package/dist/artifacts/dev/tac/internal/scripts/utils/encoding.d.ts +0 -4
  84. package/dist/artifacts/dev/tac/internal/scripts/utils/encoding.js +0 -18
  85. package/dist/artifacts/dev/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +0 -199
  86. package/dist/artifacts/dev/tac/internal/typechain-types/common.d.ts +0 -50
  87. package/dist/artifacts/dev/tac/internal/typechain-types/common.js +0 -2
  88. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/core/Structs.sol/IStructsInterface.d.ts +0 -356
  89. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/core/Structs.sol/IStructsInterface.js +0 -2
  90. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.d.ts +0 -75
  91. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.js +0 -2
  92. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ISettings.d.ts +0 -123
  93. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ISettings.js +0 -2
  94. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.d.ts +0 -99
  95. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.js +0 -2
  96. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC20.d.ts +0 -182
  97. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC20.js +0 -2
  98. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC721.d.ts +0 -244
  99. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC721.js +0 -2
  100. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.d.ts +0 -133
  101. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.js +0 -2
  102. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.d.ts +0 -77
  103. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.js +0 -2
  104. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/smart-account/interfaces/ITacSmartAccount.d.ts +0 -127
  105. package/dist/artifacts/dev/tac/internal/typechain-types/contracts/smart-account/interfaces/ITacSmartAccount.js +0 -2
  106. package/dist/artifacts/dev/tac/multicall.d.ts +0 -1
  107. package/dist/artifacts/dev/tac/multicall.js +0 -22
  108. package/dist/artifacts/dev/tac/structs.d.ts +0 -1
  109. package/dist/artifacts/dev/tac/structs.js +0 -2
  110. package/dist/artifacts/dev/tac/utils.d.ts +0 -1
  111. package/dist/artifacts/dev/tac/utils.js +0 -5
  112. package/dist/artifacts/dev/tac/wrappers.d.ts +0 -9
  113. package/dist/artifacts/dev/tac/wrappers.js +0 -2
  114. package/dist/artifacts/dev/ton/addresses.d.ts +0 -1
  115. package/dist/artifacts/dev/ton/addresses.js +0 -5
  116. package/dist/artifacts/dev/ton/artifacts.d.ts +0 -47
  117. package/dist/artifacts/dev/ton/artifacts.js +0 -26
  118. package/dist/artifacts/dev/ton/endpoints.d.ts +0 -3
  119. package/dist/artifacts/dev/ton/endpoints.js +0 -6
  120. package/dist/artifacts/dev/ton/index.d.ts +0 -3
  121. package/dist/artifacts/dev/ton/index.js +0 -40
  122. package/dist/artifacts/dev/ton/internal/build/CrossChainLayer.compiled.json +0 -1
  123. package/dist/artifacts/dev/ton/internal/build/Executor.compiled.json +0 -1
  124. package/dist/artifacts/dev/ton/internal/build/JettonMinter.compiled.json +0 -1
  125. package/dist/artifacts/dev/ton/internal/build/JettonProxy.compiled.json +0 -1
  126. package/dist/artifacts/dev/ton/internal/build/JettonWallet.compiled.json +0 -1
  127. package/dist/artifacts/dev/ton/internal/build/NFTCollection.compiled.json +0 -1
  128. package/dist/artifacts/dev/ton/internal/build/NFTItem.compiled.json +0 -1
  129. package/dist/artifacts/dev/ton/internal/build/NFTProxy.compiled.json +0 -1
  130. package/dist/artifacts/dev/ton/internal/build/Settings.compiled.json +0 -1
  131. package/dist/artifacts/dev/ton/internal/wrappers/Constants.d.ts +0 -56
  132. package/dist/artifacts/dev/ton/internal/wrappers/Constants.js +0 -62
  133. package/dist/artifacts/dev/ton/internal/wrappers/CrossChainLayer.d.ts +0 -164
  134. package/dist/artifacts/dev/ton/internal/wrappers/CrossChainLayer.js +0 -336
  135. package/dist/artifacts/dev/ton/internal/wrappers/JettonMinter.d.ts +0 -94
  136. package/dist/artifacts/dev/ton/internal/wrappers/JettonMinter.js +0 -202
  137. package/dist/artifacts/dev/ton/internal/wrappers/JettonProxy.d.ts +0 -80
  138. package/dist/artifacts/dev/ton/internal/wrappers/JettonProxy.js +0 -158
  139. package/dist/artifacts/dev/ton/internal/wrappers/JettonWallet.d.ts +0 -95
  140. package/dist/artifacts/dev/ton/internal/wrappers/JettonWallet.js +0 -193
  141. package/dist/artifacts/dev/ton/internal/wrappers/NFTCollection.d.ts +0 -75
  142. package/dist/artifacts/dev/ton/internal/wrappers/NFTCollection.js +0 -151
  143. package/dist/artifacts/dev/ton/internal/wrappers/NFTItem.d.ts +0 -82
  144. package/dist/artifacts/dev/ton/internal/wrappers/NFTItem.js +0 -148
  145. package/dist/artifacts/dev/ton/internal/wrappers/NFTProxy.d.ts +0 -84
  146. package/dist/artifacts/dev/ton/internal/wrappers/NFTProxy.js +0 -157
  147. package/dist/artifacts/dev/ton/internal/wrappers/Settings.d.ts +0 -80
  148. package/dist/artifacts/dev/ton/internal/wrappers/Settings.js +0 -152
  149. package/dist/artifacts/dev/ton/internal/wrappers/utils/GasUtils.d.ts +0 -79
  150. package/dist/artifacts/dev/ton/internal/wrappers/utils/GasUtils.js +0 -291
  151. package/dist/artifacts/dev/ton/internal/wrappers/utils/MerkleRoots.d.ts +0 -7
  152. package/dist/artifacts/dev/ton/internal/wrappers/utils/MerkleRoots.js +0 -27
  153. package/dist/artifacts/dev/ton/wrappers.d.ts +0 -8
  154. package/dist/artifacts/dev/ton/wrappers.js +0 -27
  155. package/dist/artifacts/index.d.ts +0 -3
  156. package/dist/artifacts/index.js +0 -39
  157. package/dist/artifacts/mainnet/index.d.ts +0 -9
  158. package/dist/artifacts/mainnet/index.js +0 -52
  159. package/dist/artifacts/mainnet/tac/addresses.d.ts +0 -4
  160. package/dist/artifacts/mainnet/tac/addresses.js +0 -7
  161. package/dist/artifacts/mainnet/tac/artifacts.d.ts +0 -330
  162. package/dist/artifacts/mainnet/tac/artifacts.js +0 -26
  163. package/dist/artifacts/mainnet/tac/endpoints.d.ts +0 -2
  164. package/dist/artifacts/mainnet/tac/endpoints.js +0 -5
  165. package/dist/artifacts/mainnet/tac/index.d.ts +0 -6
  166. package/dist/artifacts/mainnet/tac/index.js +0 -43
  167. package/dist/artifacts/mainnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -296
  168. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/core/Structs.sol/IStructsInterface.json +0 -1087
  169. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/ICrossChainLayer.sol/ICrossChainLayer.json +0 -114
  170. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/ISettings.sol/ISettings.json +0 -194
  171. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/ITokenUtils.sol/ITokenUtils.json +0 -164
  172. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/tokens/ICrossChainLayerERC20.sol/ICrossChainLayerERC20.json +0 -278
  173. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/tokens/ICrossChainLayerERC721.sol/ICrossChainLayerERC721.json +0 -380
  174. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/interfaces/tokens/IERC20WithDecimals.sol/IERC20WithDecimals.json +0 -207
  175. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/smart-account/interfaces/ISAFactory.sol/ISAFactory.json +0 -103
  176. package/dist/artifacts/mainnet/tac/internal/artifacts/contracts/smart-account/interfaces/ITacSmartAccount.sol/ITacSmartAccount.json +0 -181
  177. package/dist/artifacts/mainnet/tac/internal/scripts/utils/encoding.d.ts +0 -4
  178. package/dist/artifacts/mainnet/tac/internal/scripts/utils/encoding.js +0 -18
  179. package/dist/artifacts/mainnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +0 -199
  180. package/dist/artifacts/mainnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.js +0 -2
  181. package/dist/artifacts/mainnet/tac/internal/typechain-types/common.d.ts +0 -50
  182. package/dist/artifacts/mainnet/tac/internal/typechain-types/common.js +0 -2
  183. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/core/Structs.sol/IStructsInterface.d.ts +0 -356
  184. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/core/Structs.sol/IStructsInterface.js +0 -2
  185. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.d.ts +0 -75
  186. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.js +0 -2
  187. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ISettings.d.ts +0 -123
  188. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ISettings.js +0 -2
  189. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.d.ts +0 -99
  190. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.js +0 -2
  191. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC20.d.ts +0 -182
  192. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC20.js +0 -2
  193. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC721.d.ts +0 -244
  194. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC721.js +0 -2
  195. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.d.ts +0 -133
  196. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.js +0 -2
  197. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.d.ts +0 -77
  198. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.js +0 -2
  199. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ITacSmartAccount.d.ts +0 -127
  200. package/dist/artifacts/mainnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ITacSmartAccount.js +0 -2
  201. package/dist/artifacts/mainnet/tac/multicall.d.ts +0 -1
  202. package/dist/artifacts/mainnet/tac/multicall.js +0 -22
  203. package/dist/artifacts/mainnet/tac/structs.d.ts +0 -1
  204. package/dist/artifacts/mainnet/tac/structs.js +0 -2
  205. package/dist/artifacts/mainnet/tac/utils.d.ts +0 -1
  206. package/dist/artifacts/mainnet/tac/utils.js +0 -5
  207. package/dist/artifacts/mainnet/tac/wrappers.d.ts +0 -9
  208. package/dist/artifacts/mainnet/tac/wrappers.js +0 -2
  209. package/dist/artifacts/mainnet/ton/addresses.d.ts +0 -1
  210. package/dist/artifacts/mainnet/ton/addresses.js +0 -4
  211. package/dist/artifacts/mainnet/ton/artifacts.d.ts +0 -47
  212. package/dist/artifacts/mainnet/ton/artifacts.js +0 -26
  213. package/dist/artifacts/mainnet/ton/endpoints.d.ts +0 -3
  214. package/dist/artifacts/mainnet/ton/endpoints.js +0 -6
  215. package/dist/artifacts/mainnet/ton/index.d.ts +0 -3
  216. package/dist/artifacts/mainnet/ton/index.js +0 -40
  217. package/dist/artifacts/mainnet/ton/internal/build/CrossChainLayer.compiled.json +0 -1
  218. package/dist/artifacts/mainnet/ton/internal/build/Executor.compiled.json +0 -1
  219. package/dist/artifacts/mainnet/ton/internal/build/JettonMinter.compiled.json +0 -1
  220. package/dist/artifacts/mainnet/ton/internal/build/JettonProxy.compiled.json +0 -1
  221. package/dist/artifacts/mainnet/ton/internal/build/JettonWallet.compiled.json +0 -1
  222. package/dist/artifacts/mainnet/ton/internal/build/NFTCollection.compiled.json +0 -1
  223. package/dist/artifacts/mainnet/ton/internal/build/NFTItem.compiled.json +0 -1
  224. package/dist/artifacts/mainnet/ton/internal/build/NFTProxy.compiled.json +0 -1
  225. package/dist/artifacts/mainnet/ton/internal/build/Settings.compiled.json +0 -1
  226. package/dist/artifacts/mainnet/ton/internal/wrappers/Constants.d.ts +0 -56
  227. package/dist/artifacts/mainnet/ton/internal/wrappers/Constants.js +0 -62
  228. package/dist/artifacts/mainnet/ton/internal/wrappers/CrossChainLayer.d.ts +0 -164
  229. package/dist/artifacts/mainnet/ton/internal/wrappers/CrossChainLayer.js +0 -336
  230. package/dist/artifacts/mainnet/ton/internal/wrappers/JettonMinter.d.ts +0 -94
  231. package/dist/artifacts/mainnet/ton/internal/wrappers/JettonMinter.js +0 -202
  232. package/dist/artifacts/mainnet/ton/internal/wrappers/JettonProxy.d.ts +0 -80
  233. package/dist/artifacts/mainnet/ton/internal/wrappers/JettonProxy.js +0 -158
  234. package/dist/artifacts/mainnet/ton/internal/wrappers/JettonWallet.js +0 -193
  235. package/dist/artifacts/mainnet/ton/internal/wrappers/NFTCollection.d.ts +0 -75
  236. package/dist/artifacts/mainnet/ton/internal/wrappers/NFTCollection.js +0 -151
  237. package/dist/artifacts/mainnet/ton/internal/wrappers/NFTItem.d.ts +0 -82
  238. package/dist/artifacts/mainnet/ton/internal/wrappers/NFTItem.js +0 -148
  239. package/dist/artifacts/mainnet/ton/internal/wrappers/NFTProxy.d.ts +0 -84
  240. package/dist/artifacts/mainnet/ton/internal/wrappers/NFTProxy.js +0 -157
  241. package/dist/artifacts/mainnet/ton/internal/wrappers/Settings.d.ts +0 -80
  242. package/dist/artifacts/mainnet/ton/internal/wrappers/Settings.js +0 -152
  243. package/dist/artifacts/mainnet/ton/internal/wrappers/utils/GasUtils.d.ts +0 -79
  244. package/dist/artifacts/mainnet/ton/internal/wrappers/utils/GasUtils.js +0 -291
  245. package/dist/artifacts/mainnet/ton/internal/wrappers/utils/MerkleRoots.d.ts +0 -7
  246. package/dist/artifacts/mainnet/ton/internal/wrappers/utils/MerkleRoots.js +0 -27
  247. package/dist/artifacts/mainnet/ton/wrappers.d.ts +0 -8
  248. package/dist/artifacts/mainnet/ton/wrappers.js +0 -27
  249. package/dist/artifacts/tacTypes.d.ts +0 -13
  250. package/dist/artifacts/tacTypes.js +0 -2
  251. package/dist/artifacts/testnet/index.d.ts +0 -9
  252. package/dist/artifacts/testnet/index.js +0 -52
  253. package/dist/artifacts/testnet/tac/addresses.d.ts +0 -4
  254. package/dist/artifacts/testnet/tac/addresses.js +0 -7
  255. package/dist/artifacts/testnet/tac/artifacts.d.ts +0 -330
  256. package/dist/artifacts/testnet/tac/artifacts.js +0 -26
  257. package/dist/artifacts/testnet/tac/endpoints.d.ts +0 -2
  258. package/dist/artifacts/testnet/tac/endpoints.js +0 -5
  259. package/dist/artifacts/testnet/tac/index.d.ts +0 -6
  260. package/dist/artifacts/testnet/tac/index.js +0 -43
  261. package/dist/artifacts/testnet/tac/internal/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -296
  262. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/core/Structs.sol/IStructsInterface.json +0 -1087
  263. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/ICrossChainLayer.sol/ICrossChainLayer.json +0 -114
  264. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/ISettings.sol/ISettings.json +0 -194
  265. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/ITokenUtils.sol/ITokenUtils.json +0 -164
  266. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/tokens/ICrossChainLayerERC20.sol/ICrossChainLayerERC20.json +0 -278
  267. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/tokens/ICrossChainLayerERC721.sol/ICrossChainLayerERC721.json +0 -380
  268. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/interfaces/tokens/IERC20WithDecimals.sol/IERC20WithDecimals.json +0 -207
  269. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/smart-account/interfaces/ISAFactory.sol/ISAFactory.json +0 -103
  270. package/dist/artifacts/testnet/tac/internal/artifacts/contracts/smart-account/interfaces/ITacSmartAccount.sol/ITacSmartAccount.json +0 -181
  271. package/dist/artifacts/testnet/tac/internal/scripts/utils/encoding.d.ts +0 -4
  272. package/dist/artifacts/testnet/tac/internal/scripts/utils/encoding.js +0 -18
  273. package/dist/artifacts/testnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +0 -199
  274. package/dist/artifacts/testnet/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.js +0 -2
  275. package/dist/artifacts/testnet/tac/internal/typechain-types/common.d.ts +0 -50
  276. package/dist/artifacts/testnet/tac/internal/typechain-types/common.js +0 -2
  277. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/core/Structs.sol/IStructsInterface.d.ts +0 -356
  278. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/core/Structs.sol/IStructsInterface.js +0 -2
  279. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.d.ts +0 -75
  280. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ICrossChainLayer.js +0 -2
  281. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ISettings.d.ts +0 -123
  282. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ISettings.js +0 -2
  283. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.d.ts +0 -99
  284. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/ITokenUtils.js +0 -2
  285. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC20.d.ts +0 -182
  286. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC20.js +0 -2
  287. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC721.d.ts +0 -244
  288. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/tokens/ICrossChainLayerERC721.js +0 -2
  289. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.d.ts +0 -133
  290. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/interfaces/tokens/IERC20WithDecimals.js +0 -2
  291. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.d.ts +0 -77
  292. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ISAFactory.js +0 -2
  293. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ITacSmartAccount.d.ts +0 -127
  294. package/dist/artifacts/testnet/tac/internal/typechain-types/contracts/smart-account/interfaces/ITacSmartAccount.js +0 -2
  295. package/dist/artifacts/testnet/tac/multicall.d.ts +0 -1
  296. package/dist/artifacts/testnet/tac/multicall.js +0 -22
  297. package/dist/artifacts/testnet/tac/structs.d.ts +0 -1
  298. package/dist/artifacts/testnet/tac/structs.js +0 -2
  299. package/dist/artifacts/testnet/tac/utils.d.ts +0 -1
  300. package/dist/artifacts/testnet/tac/utils.js +0 -5
  301. package/dist/artifacts/testnet/tac/wrappers.d.ts +0 -9
  302. package/dist/artifacts/testnet/tac/wrappers.js +0 -2
  303. package/dist/artifacts/testnet/ton/addresses.d.ts +0 -1
  304. package/dist/artifacts/testnet/ton/addresses.js +0 -4
  305. package/dist/artifacts/testnet/ton/artifacts.d.ts +0 -47
  306. package/dist/artifacts/testnet/ton/artifacts.js +0 -26
  307. package/dist/artifacts/testnet/ton/endpoints.d.ts +0 -3
  308. package/dist/artifacts/testnet/ton/endpoints.js +0 -6
  309. package/dist/artifacts/testnet/ton/index.d.ts +0 -3
  310. package/dist/artifacts/testnet/ton/index.js +0 -40
  311. package/dist/artifacts/testnet/ton/internal/build/CrossChainLayer.compiled.json +0 -1
  312. package/dist/artifacts/testnet/ton/internal/build/Executor.compiled.json +0 -1
  313. package/dist/artifacts/testnet/ton/internal/build/JettonMinter.compiled.json +0 -1
  314. package/dist/artifacts/testnet/ton/internal/build/JettonProxy.compiled.json +0 -1
  315. package/dist/artifacts/testnet/ton/internal/build/JettonWallet.compiled.json +0 -1
  316. package/dist/artifacts/testnet/ton/internal/build/NFTCollection.compiled.json +0 -1
  317. package/dist/artifacts/testnet/ton/internal/build/NFTItem.compiled.json +0 -1
  318. package/dist/artifacts/testnet/ton/internal/build/NFTProxy.compiled.json +0 -1
  319. package/dist/artifacts/testnet/ton/internal/build/Settings.compiled.json +0 -1
  320. package/dist/artifacts/testnet/ton/internal/wrappers/Constants.d.ts +0 -56
  321. package/dist/artifacts/testnet/ton/internal/wrappers/Constants.js +0 -62
  322. package/dist/artifacts/testnet/ton/internal/wrappers/CrossChainLayer.d.ts +0 -164
  323. package/dist/artifacts/testnet/ton/internal/wrappers/CrossChainLayer.js +0 -336
  324. package/dist/artifacts/testnet/ton/internal/wrappers/JettonMinter.d.ts +0 -94
  325. package/dist/artifacts/testnet/ton/internal/wrappers/JettonMinter.js +0 -202
  326. package/dist/artifacts/testnet/ton/internal/wrappers/JettonProxy.d.ts +0 -80
  327. package/dist/artifacts/testnet/ton/internal/wrappers/JettonProxy.js +0 -158
  328. package/dist/artifacts/testnet/ton/internal/wrappers/JettonWallet.d.ts +0 -95
  329. package/dist/artifacts/testnet/ton/internal/wrappers/JettonWallet.js +0 -193
  330. package/dist/artifacts/testnet/ton/internal/wrappers/NFTCollection.d.ts +0 -75
  331. package/dist/artifacts/testnet/ton/internal/wrappers/NFTCollection.js +0 -151
  332. package/dist/artifacts/testnet/ton/internal/wrappers/NFTItem.d.ts +0 -82
  333. package/dist/artifacts/testnet/ton/internal/wrappers/NFTItem.js +0 -148
  334. package/dist/artifacts/testnet/ton/internal/wrappers/NFTProxy.d.ts +0 -84
  335. package/dist/artifacts/testnet/ton/internal/wrappers/NFTProxy.js +0 -157
  336. package/dist/artifacts/testnet/ton/internal/wrappers/Settings.d.ts +0 -80
  337. package/dist/artifacts/testnet/ton/internal/wrappers/Settings.js +0 -152
  338. package/dist/artifacts/testnet/ton/internal/wrappers/utils/GasUtils.d.ts +0 -79
  339. package/dist/artifacts/testnet/ton/internal/wrappers/utils/GasUtils.js +0 -291
  340. package/dist/artifacts/testnet/ton/internal/wrappers/utils/MerkleRoots.d.ts +0 -7
  341. package/dist/artifacts/testnet/ton/internal/wrappers/utils/MerkleRoots.js +0 -27
  342. package/dist/artifacts/testnet/ton/wrappers.d.ts +0 -8
  343. package/dist/artifacts/testnet/ton/wrappers.js +0 -27
  344. package/dist/artifacts/tonTypes.d.ts +0 -20
  345. package/dist/artifacts/tonTypes.js +0 -2
  346. package/dist/src/adapters/index.d.ts +0 -2
  347. package/dist/src/adapters/index.js +0 -18
  348. package/dist/src/agnosticSdk/AgnosticSdk.d.ts +0 -371
  349. package/dist/src/agnosticSdk/AgnosticSdk.js +0 -736
  350. package/dist/src/errors/index.d.ts +0 -2
  351. package/dist/src/interfaces/Asset.d.ts +0 -78
  352. package/dist/src/interfaces/Asset.js +0 -2
  353. package/dist/src/interfaces/ContractOpener.d.ts +0 -21
  354. package/dist/src/interfaces/ContractOpener.js +0 -2
  355. package/dist/src/interfaces/IConfiguration.d.ts +0 -35
  356. package/dist/src/interfaces/IConfiguration.js +0 -2
  357. package/dist/src/interfaces/IHttpClient.d.ts +0 -16
  358. package/dist/src/interfaces/IHttpClient.js +0 -2
  359. package/dist/src/interfaces/ILiteSequencerClient.d.ts +0 -43
  360. package/dist/src/interfaces/ILiteSequencerClient.js +0 -2
  361. package/dist/src/interfaces/ILiteSequencerClientFactory.d.ts +0 -9
  362. package/dist/src/interfaces/ILiteSequencerClientFactory.js +0 -2
  363. package/dist/src/interfaces/ILogger.d.ts +0 -10
  364. package/dist/src/interfaces/ILogger.js +0 -2
  365. package/dist/src/interfaces/IOperationTracker.d.ts +0 -81
  366. package/dist/src/interfaces/IOperationTracker.js +0 -2
  367. package/dist/src/interfaces/ISimulator.d.ts +0 -18
  368. package/dist/src/interfaces/ISimulator.js +0 -2
  369. package/dist/src/interfaces/ITACTransactionManager.d.ts +0 -15
  370. package/dist/src/interfaces/ITACTransactionManager.js +0 -2
  371. package/dist/src/interfaces/ITONTransactionManager.d.ts +0 -21
  372. package/dist/src/interfaces/ITONTransactionManager.js +0 -2
  373. package/dist/src/interfaces/ITacSDK.d.ts +0 -185
  374. package/dist/src/interfaces/ITacSDK.js +0 -2
  375. package/dist/src/interfaces/SenderAbstraction.d.ts +0 -35
  376. package/dist/src/interfaces/SenderAbstraction.js +0 -2
  377. package/dist/src/interfaces/WalletInstanse.d.ts +0 -20
  378. package/dist/src/interfaces/WalletInstanse.js +0 -2
  379. package/dist/src/interfaces/index.d.ts +0 -14
  380. package/dist/src/interfaces/index.js +0 -30
  381. package/dist/src/sdk/AxiosHttpClient.d.ts +0 -12
  382. package/dist/src/sdk/AxiosHttpClient.js +0 -23
  383. package/dist/src/sdk/Configuration.js +0 -189
  384. package/dist/src/sdk/LiteSequencerClient.d.ts +0 -18
  385. package/dist/src/sdk/Simulator.d.ts +0 -11
  386. package/dist/src/sdk/Simulator.js +0 -70
  387. package/dist/src/sdk/TACTransactionManager.d.ts +0 -10
  388. package/dist/src/sdk/TACTransactionManager.js +0 -99
  389. package/dist/src/sdk/TONTransactionManager.d.ts +0 -17
  390. package/dist/src/sdk/TONTransactionManager.js +0 -209
  391. package/dist/src/sdk/TacSdk.d.ts +0 -44
  392. package/dist/src/sdk/TacSdk.js +0 -214
  393. /package/dist/{src/assets → assets}/AssetCache.js +0 -0
  394. /package/dist/{src/assets → assets}/index.d.ts +0 -0
  395. /package/dist/{src/assets → assets}/index.js +0 -0
  396. /package/dist/{src/errors → errors}/errors.d.ts +0 -0
  397. /package/dist/{src/errors → errors}/errors.js +0 -0
  398. /package/dist/{src/sdk → sdk}/Logger.js +0 -0
  399. /package/dist/{src/sdk → sdk}/StartTracking.js +0 -0
  400. /package/dist/{src/sender → sender}/BatchSender.js +0 -0
  401. /package/dist/{src/sender → sender}/RawSender.js +0 -0
  402. /package/dist/{src/sender → sender}/SenderFactory.js +0 -0
  403. /package/dist/{src/structs → structs}/InternalStruct.js +0 -0
  404. /package/dist/{artifacts/dev/tac/internal/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.js → structs/Services.js} +0 -0
  405. /package/dist/{src/wrappers → wrappers}/ContentUtils.d.ts +0 -0
  406. /package/dist/{src/wrappers → wrappers}/ContentUtils.js +0 -0
  407. /package/dist/{src/wrappers → wrappers}/HighloadQueryId.d.ts +0 -0
  408. /package/dist/{src/wrappers → wrappers}/HighloadQueryId.js +0 -0
  409. /package/dist/{src/wrappers → wrappers}/HighloadWalletV3.js +0 -0
@@ -1,20 +0,0 @@
1
- import type * as Dev from './dev';
2
- import type * as Testnet from './testnet';
3
- import type * as Mainnet from './mainnet';
4
- export type MsgType = Dev.ton.wrappers.MsgType | Testnet.ton.wrappers.MsgType | Mainnet.ton.wrappers.MsgType;
5
- export type CrossChainLayer = Dev.ton.wrappers.CrossChainLayer | Testnet.ton.wrappers.CrossChainLayer | Mainnet.ton.wrappers.CrossChainLayer;
6
- export type CrossChainLayerData = Dev.ton.wrappers.CrossChainLayerConfig | Testnet.ton.wrappers.CrossChainLayerConfig | Mainnet.ton.wrappers.CrossChainLayerConfig;
7
- export type JettonMinter = Dev.ton.wrappers.JettonMinter | Testnet.ton.wrappers.JettonMinter | Mainnet.ton.wrappers.JettonMinter;
8
- export type JettonMinterData = Dev.ton.wrappers.JettonMinterData | Testnet.ton.wrappers.JettonMinterData | Mainnet.ton.wrappers.JettonMinterData;
9
- export type JettonWallet = Dev.ton.wrappers.JettonWallet | Testnet.ton.wrappers.JettonWallet | Mainnet.ton.wrappers.JettonWallet;
10
- export type JettonWalletData = Dev.ton.wrappers.JettonWalletData | Testnet.ton.wrappers.JettonWalletData | Mainnet.ton.wrappers.JettonWalletData;
11
- export type JettonProxy = Dev.ton.wrappers.JettonProxy | Testnet.ton.wrappers.JettonProxy | Mainnet.ton.wrappers.JettonProxy;
12
- export type JettonProxyData = Dev.ton.wrappers.JettonProxyConfig | Testnet.ton.wrappers.JettonProxyConfig | Mainnet.ton.wrappers.JettonProxyConfig;
13
- export type Settings = Dev.ton.wrappers.Settings | Testnet.ton.wrappers.Settings | Mainnet.ton.wrappers.Settings;
14
- export type SettingsData = Dev.ton.wrappers.SettingsConfig | Testnet.ton.wrappers.SettingsConfig | Mainnet.ton.wrappers.SettingsConfig;
15
- export type NFTCollection = Dev.ton.wrappers.NFTCollection | Testnet.ton.wrappers.NFTCollection | Mainnet.ton.wrappers.NFTCollection;
16
- export type NFTCollectionData = Dev.ton.wrappers.NFTCollectionData | Testnet.ton.wrappers.NFTCollectionData | Mainnet.ton.wrappers.NFTCollectionData;
17
- export type NFTItem = Dev.ton.wrappers.NFTItem | Testnet.ton.wrappers.NFTItem | Mainnet.ton.wrappers.NFTItem;
18
- export type NFTItemData = Dev.ton.wrappers.NFTItemData | Testnet.ton.wrappers.NFTItemData | Mainnet.ton.wrappers.NFTItemData;
19
- export type NFTProxy = Dev.ton.wrappers.NFTProxy | Testnet.ton.wrappers.NFTProxy | Mainnet.ton.wrappers.NFTProxy;
20
- export type NFTProxyData = Dev.ton.wrappers.NFTProxyConfig | Testnet.ton.wrappers.NFTProxyConfig | Mainnet.ton.wrappers.NFTProxyConfig;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from './contractOpener';
2
- export * from './retryableContractOpener';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./contractOpener"), exports);
18
- __exportStar(require("./retryableContractOpener"), exports);
@@ -1,371 +0,0 @@
1
- import { Network } from "../structs/Struct";
2
- /**
3
- * NFTData is a struct that contains the nft, id, and amount of the nft
4
- * @param nft - The address of the nft
5
- * @param id - The id of the nft
6
- * @param amount - The amount of the nft to transfer(for ERC1155, but currently supported only ERC721)
7
- */
8
- export interface NFTData {
9
- nft: string;
10
- id: bigint;
11
- amount: bigint;
12
- }
13
- /**
14
- * BridgeData is a struct that contains the tokens, nfts, and isRequired of the bridge data
15
- * @param tokens - The addresses of the tokens to bridge
16
- * @param nfts - The nfts to bridge
17
- * @param isRequired - Whether the bridge is required
18
- */
19
- export interface BridgeData {
20
- tokens: string[];
21
- nfts: NFTData[];
22
- isRequired: boolean;
23
- }
24
- /**
25
- * HookType is an enum that contains the type of the hook
26
- * @param Custom - The custom hook
27
- * @param FullBalanceApprove - The full balance approve hook
28
- * @param FullBalanceTransfer - The full balance transfer hook
29
- */
30
- export declare enum HookType {
31
- Custom = 0,
32
- FullBalanceApprove = 1,
33
- FullBalanceTransfer = 2
34
- }
35
- /**
36
- * ReplacementType is an enum that contains the type of the replacement
37
- * @param Amount - The amount replacement
38
- */
39
- export declare enum ReplacementType {
40
- Amount = 0
41
- }
42
- /**
43
- * AmountChange is a struct that contains the position, length, token, and balance address of the amount change
44
- * @param position - The position of the amount change(position of the parameter in the function call)
45
- * @param len - The length of the amount change(length of the parameter in the function call)
46
- * @param token - The token of the amount change
47
- * @param balanceAddress - The balance address of the amount change(address to check balance for)
48
- */
49
- export interface AmountChange {
50
- position: number;
51
- len: number;
52
- token: string;
53
- balanceAddress: string;
54
- }
55
- /**
56
- * CustomHookData is a struct that contains the isFromSAPerspective, contractAddress, value, data, and improvedMissionInfo of the custom hook
57
- * @param isFromSAPerspective - Whether the hook is from the smart account perspective or from proxy perspective
58
- * @param contractAddress - The address of the contract to call
59
- * @param value - The value of the hook
60
- * @param data - The data of the hook
61
- * @param improvedMissionInfo - The improved mission info of the hook
62
- */
63
- export interface CustomHookData {
64
- isFromSAPerspective: boolean;
65
- contractAddress: string;
66
- value: bigint;
67
- data: string;
68
- improvedMissionInfo: string;
69
- }
70
- /**
71
- * ApproveHookData is a struct that contains the token, to, and isFromSAPerspective of the approve hook
72
- * @param token - The token to approve
73
- * @param to - The address to approve to
74
- * @param isFromSAPerspective - Whether the hook is from the smart account perspective or from proxy perspective
75
- */
76
- export interface ApproveHookData {
77
- token: string;
78
- to: string;
79
- isFromSAPerspective: boolean;
80
- }
81
- /**
82
- * TransferHookData is a struct that contains the token, to, and isFromSAPerspective of the transfer hook
83
- * @param token - The token to transfer
84
- * @param to - The address to transfer to
85
- * @param isFromSAPerspective - Whether the hook is from the smart account perspective or from proxy perspective
86
- */
87
- export interface TransferHookData {
88
- token: string;
89
- to: string;
90
- isFromSAPerspective: boolean;
91
- }
92
- /**
93
- * Hook is a struct that contains the hookType and hookData of the hook
94
- * @param hookType - The type of the hook
95
- * @param hookData - The data of the hook
96
- */
97
- export interface Hook {
98
- hookType: HookType;
99
- hookData: string;
100
- }
101
- /**
102
- * ZapCall is a struct that contains the hooks and bridgeData of the zap call
103
- * @param hooks - The hooks of the zap call
104
- * @param bridgeData - The bridge data of the zap call
105
- */
106
- export interface ZapCall {
107
- hooks: Hook[];
108
- bridgeData: BridgeData;
109
- }
110
- /**
111
- * SDK for building AgnosticProxy Zap calls with efficient hook encoding
112
- * @param agnosticProxyAddress - The address of the agnostic proxy(optional)
113
- */
114
- export declare class AgnosticProxySDK {
115
- private contractInterfaces;
116
- private agnosticProxyAddress;
117
- constructor(network: Network, agnosticProxyAddress?: string);
118
- /**
119
- * Add a contract interface for encoding function calls
120
- * Supports both human-readable ABI strings and generated ABI JSON objects
121
- * @param address - The address of the contract to add interface for
122
- * @param abi - The abi of the contract to add interface for
123
- * @returns The sdk instance
124
- */
125
- addContractInterface(address: string, abi: any[]): this;
126
- /**
127
- * Parse ABI - handles both human-readable strings and generated ABI JSON objects
128
- * Extracts only function definitions from JSON ABI
129
- */
130
- private _parseAbi;
131
- /**
132
- * Build human-readable function signature from JSON ABI function object
133
- * @param func - The function to build signature for
134
- * @returns The signature of the function
135
- */
136
- private _buildFunctionSignature;
137
- /**
138
- * Create a custom hook with optional dynamic value replacement
139
- * @param contractAddress - The address of the contract to call
140
- * @param functionName - The name of the function to call
141
- * @param params - The parameters of the function to call
142
- * @param options - The options of the custom hook
143
- * @returns The custom hook
144
- */
145
- createCustomHook(contractAddress: string, functionName: string, params: any[], options?: {
146
- isFromSAPerspective?: boolean;
147
- value?: bigint;
148
- dynamicReplacements?: AmountChange[];
149
- }): Hook;
150
- /**
151
- * Create a full balance approve hook
152
- * @param token - The token to approve
153
- * @param to - The address to approve to
154
- * @param isFromSAPerspective - Whether the hook is from the smart account perspective or from proxy perspective
155
- * @returns The full balance approve hook
156
- */
157
- createFullBalanceApproveHook(token: string, to: string, isFromSAPerspective?: boolean): Hook;
158
- /**
159
- * Create a full balance transfer hook
160
- * @param token - The token to transfer
161
- * @param to - The address to transfer to
162
- * @param isFromSAPerspective - Whether the hook is from the smart account perspective or from proxy perspective
163
- * @returns The full balance transfer hook
164
- */
165
- createFullBalanceTransferHook(token: string, to: string, isFromSAPerspective?: boolean): Hook;
166
- /**
167
- * Helper to create dynamic amount replacement for a specific parameter
168
- * @param paramIndex - The index of the parameter to replace
169
- * @param token - The token to replace
170
- * @param balanceAddress - The address to replace the parameter with
171
- * @returns The amount replacement
172
- */
173
- createAmountReplacement(paramIndex: number, token: string, balanceAddress: string): AmountChange;
174
- /**
175
- * Advanced replacement calculator - calculates position and length for any parameter type
176
- * Required that you have added the contract interface first using addContractInterface().
177
- * If human readable abi is used, need to provide function and params names also
178
- * @param contractAddress - The address of the contract to call
179
- * @param functionName - The name of the function to call
180
- * @param parameterName - The name of the parameter to replace
181
- * @param token - The token to replace
182
- * @param balanceAddress - The address to replace the parameter with
183
- * @returns The replacement data
184
- */
185
- calculateReplacementData(contractAddress: string, functionName: string, parameterName: string, token: string, balanceAddress: string): AmountChange;
186
- /**
187
- * Get replacement helper - shows available functions and parameters for a contract
188
- * Required that you have added the contract interface first using addContractInterface().
189
- * If human readable abi is used, need to provide function and params names also
190
- * @param contractAddress - The address of the contract to call
191
- * @returns The replacement helper
192
- */
193
- getReplacementHelper(contractAddress: string): {
194
- contractAddress: string;
195
- functions: {
196
- name: string;
197
- signature: string;
198
- parameters: {
199
- name: string;
200
- type: string;
201
- index: number;
202
- canReplace: boolean;
203
- reason?: string;
204
- }[];
205
- }[];
206
- };
207
- /**
208
- * Interactive replacement builder - helps build replacement step by step
209
- * @param contractAddress - The address of the contract to call
210
- * @param functionName - The name of the function to call
211
- * @param parameterName - The name of the parameter to replace
212
- * @param token - The token to replace
213
- * @param balanceAddress - The address to replace the parameter with
214
- * @param options - The options of the interactive replacement builder
215
- * @returns The interactive replacement builder
216
- */
217
- buildReplacementInteractive(contractAddress: string, functionName: string, parameterName: string, token: string, balanceAddress: string, options?: {
218
- showCalculation?: boolean;
219
- validate?: boolean;
220
- }): {
221
- replacement: AmountChange;
222
- calculation: {
223
- functionSignature: string;
224
- parameterInfo: {
225
- name: string;
226
- type: string;
227
- index: number;
228
- position: number;
229
- length: number;
230
- };
231
- positionCalculation: string;
232
- };
233
- validation: {
234
- isValid: boolean;
235
- warnings: string[];
236
- suggestions: string[];
237
- };
238
- };
239
- /**
240
- * Private helper to calculate position and length for complex parameter types
241
- * @param inputs - The inputs of the function
242
- * @param targetIndex - The index of the parameter to calculate the position and length for
243
- * @returns The position and length of the parameter
244
- */
245
- private _calculateParamPositionAndLength;
246
- /**
247
- * Get the size in bytes for a parameter type
248
- * @param type - The type of the parameter
249
- * @returns The size in bytes of the parameter
250
- */
251
- private _getTypeSize;
252
- /**
253
- * Check if a parameter type can be replaced with a balance
254
- * @param type - The type of the parameter
255
- * @returns The can replace and reason of the parameter
256
- */
257
- private _canParameterBeReplaced;
258
- /**
259
- * Build a complete ZapCall
260
- * @param hooks - The hooks of the zap call
261
- * @param bridgeTokens - The tokens to bridge
262
- * @param bridgeNFTs - The nfts to bridge
263
- * @returns The zap call
264
- */
265
- buildZapCall(hooks: Hook[], bridgeTokens?: string[], bridgeNFTs?: NFTData[]): ZapCall;
266
- /**
267
- * Encode ZapCall for transaction - Much more efficient now!
268
- * @param zapCall - The zap call to encode
269
- * @returns The encoded zap call that can be used as calldata in tac sdk
270
- */
271
- encodeZapCall(zapCall: ZapCall): string;
272
- /**
273
- * Utility: Create multiple approve hooks at once
274
- * @param approvals - The approvals to create
275
- * @returns The multiple approve hooks
276
- */
277
- createMultipleApproves(approvals: {
278
- token: string;
279
- spender: string;
280
- isFromSA?: boolean;
281
- }[]): Hook[];
282
- /**
283
- * Utility: Create a sequence of custom hooks
284
- * @param calls - The calls to create
285
- * @returns The hook sequence
286
- */
287
- createHookSequence(calls: {
288
- contract: string;
289
- functionName: string;
290
- params: any[];
291
- options?: {
292
- isFromSAPerspective?: boolean;
293
- value?: bigint;
294
- dynamicReplacements?: AmountChange[];
295
- };
296
- }[]): Hook[];
297
- /**
298
- * Debug helper: Decode hook data back to readable format
299
- * @param hook - The hook to decode
300
- * @returns The decoded hook
301
- */
302
- decodeHookData(hook: Hook): any;
303
- /**
304
- * Debug helper: Get estimated gas for a ZapCall
305
- * @param zapCall - The zap call to estimate the gas usage for
306
- * @returns The estimated gas usage
307
- */
308
- estimateGasUsage(zapCall: ZapCall): number;
309
- /**
310
- * Visualize ZapCall chain - Human readable description of all operations
311
- * @param zapCall - The zap call to visualize
312
- */
313
- visualizeZapCall(zapCall: ZapCall): void;
314
- /**
315
- * Private helper to describe individual hooks
316
- * @param hook - The hook to describe
317
- * @returns The description of the hook
318
- */
319
- private _describeHook;
320
- /**
321
- * Describe custom hook with function details
322
- * @param hook - The hook to describe
323
- * @returns The description of the hook
324
- */
325
- private _describeCustomHook;
326
- /**
327
- * Describe approve hook
328
- * @param hook - The hook to describe
329
- * @returns The description of the hook
330
- */
331
- private _describeApproveHook;
332
- /**
333
- * Describe transfer hook
334
- * @param hook - The hook to describe
335
- * @returns The description of the hook
336
- */
337
- private _describeTransferHook;
338
- /**
339
- * Format address for display (show first 6 and last 4 characters)
340
- * @param address - The address to format
341
- * @returns The formatted address
342
- */
343
- private _formatAddress;
344
- /**
345
- * Get a detailed breakdown of a ZapCall for logging
346
- * @param zapCall - The zap call to get the breakdown for
347
- * @returns The breakdown of the zap call
348
- */
349
- getZapCallBreakdown(zapCall: ZapCall): {
350
- totalHooks: number;
351
- hookTypes: {
352
- [key: string]: number;
353
- };
354
- gasEstimate: number;
355
- encodedSize: number;
356
- bridgeRequired: boolean;
357
- hookDescriptions: string[];
358
- };
359
- /**
360
- * Compare two ZapCalls and show differences
361
- * @param zapCall1 - The first zap call to compare
362
- * @param zapCall2 - The second zap call to compare
363
- * @param label1 - The label of the first zap call
364
- * @param label2 - The label of the second zap call
365
- */
366
- compareZapCalls(zapCall1: ZapCall, zapCall2: ZapCall, label1?: string, label2?: string): void;
367
- getAgnosticCallParams(): {
368
- evmTargetAddress: string;
369
- methodName: string;
370
- };
371
- }