@across-protocol/sdk 4.3.136 → 4.3.137-alpha.0

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 (245) hide show
  1. package/dist/cjs/src/arch/evm/UpgradeUtils.d.ts +2 -0
  2. package/dist/cjs/src/arch/evm/UpgradeUtils.js +33 -0
  3. package/dist/cjs/src/arch/evm/UpgradeUtils.js.map +1 -0
  4. package/dist/cjs/src/arch/evm/index.d.ts +1 -0
  5. package/dist/cjs/src/arch/evm/index.js +1 -0
  6. package/dist/cjs/src/arch/evm/index.js.map +1 -1
  7. package/dist/cjs/src/arch/index.d.ts +1 -0
  8. package/dist/cjs/src/arch/index.js +2 -1
  9. package/dist/cjs/src/arch/index.js.map +1 -1
  10. package/dist/cjs/src/arch/tvm/BlockUtils.d.ts +1 -0
  11. package/dist/cjs/src/arch/tvm/BlockUtils.js +7 -0
  12. package/dist/cjs/src/arch/tvm/BlockUtils.js.map +1 -0
  13. package/dist/cjs/src/arch/tvm/MessageUtils.d.ts +1 -0
  14. package/dist/cjs/src/arch/tvm/MessageUtils.js +5 -0
  15. package/dist/cjs/src/arch/tvm/MessageUtils.js.map +1 -0
  16. package/dist/cjs/src/arch/tvm/ResourceUtils.d.ts +14 -0
  17. package/dist/cjs/src/arch/tvm/ResourceUtils.js +69 -0
  18. package/dist/cjs/src/arch/tvm/ResourceUtils.js.map +1 -0
  19. package/dist/cjs/src/arch/tvm/SpokeUtils.d.ts +12 -0
  20. package/dist/cjs/src/arch/tvm/SpokeUtils.js +207 -0
  21. package/dist/cjs/src/arch/tvm/SpokeUtils.js.map +1 -0
  22. package/dist/cjs/src/arch/tvm/TransactionUtils.d.ts +7 -0
  23. package/dist/cjs/src/arch/tvm/TransactionUtils.js +43 -0
  24. package/dist/cjs/src/arch/tvm/TransactionUtils.js.map +1 -0
  25. package/dist/cjs/src/arch/tvm/index.d.ts +6 -0
  26. package/dist/cjs/src/arch/tvm/index.js +10 -0
  27. package/dist/cjs/src/arch/tvm/index.js.map +1 -0
  28. package/dist/cjs/src/arch/tvm/types.d.ts +2 -0
  29. package/dist/cjs/src/arch/tvm/types.js +3 -0
  30. package/dist/cjs/src/arch/tvm/types.js.map +1 -0
  31. package/dist/cjs/src/arch/tvm/utils/address.d.ts +3 -0
  32. package/dist/cjs/src/arch/tvm/utils/address.js +17 -0
  33. package/dist/cjs/src/arch/tvm/utils/address.js.map +1 -0
  34. package/dist/cjs/src/arch/tvm/utils/index.d.ts +2 -0
  35. package/dist/cjs/src/arch/tvm/utils/index.js +6 -0
  36. package/dist/cjs/src/arch/tvm/utils/index.js.map +1 -0
  37. package/dist/cjs/src/arch/tvm/utils/wait.d.ts +1 -0
  38. package/dist/cjs/src/arch/tvm/utils/wait.js +5 -0
  39. package/dist/cjs/src/arch/tvm/utils/wait.js.map +1 -0
  40. package/dist/cjs/src/clients/SpokePoolClient/EVMSpokePoolClient.d.ts +9 -2
  41. package/dist/cjs/src/clients/SpokePoolClient/EVMSpokePoolClient.js +33 -12
  42. package/dist/cjs/src/clients/SpokePoolClient/EVMSpokePoolClient.js.map +1 -1
  43. package/dist/cjs/src/clients/SpokePoolClient/TVMSpokePoolClient.d.ts +11 -0
  44. package/dist/cjs/src/clients/SpokePoolClient/TVMSpokePoolClient.js +47 -0
  45. package/dist/cjs/src/clients/SpokePoolClient/TVMSpokePoolClient.js.map +1 -0
  46. package/dist/cjs/src/clients/SpokePoolClient/index.d.ts +3 -0
  47. package/dist/cjs/src/clients/SpokePoolClient/index.js +7 -1
  48. package/dist/cjs/src/clients/SpokePoolClient/index.js.map +1 -1
  49. package/dist/cjs/src/clients/SpokePoolClient/types.d.ts +1 -0
  50. package/dist/cjs/src/clients/SpokePoolClient/types.js +2 -1
  51. package/dist/cjs/src/clients/SpokePoolClient/types.js.map +1 -1
  52. package/dist/cjs/src/gasPriceOracle/adapters/tron.d.ts +4 -0
  53. package/dist/cjs/src/gasPriceOracle/adapters/tron.js +58 -0
  54. package/dist/cjs/src/gasPriceOracle/adapters/tron.js.map +1 -0
  55. package/dist/cjs/src/gasPriceOracle/index.d.ts +1 -1
  56. package/dist/cjs/src/gasPriceOracle/oracle.d.ts +3 -1
  57. package/dist/cjs/src/gasPriceOracle/oracle.js +15 -10
  58. package/dist/cjs/src/gasPriceOracle/oracle.js.map +1 -1
  59. package/dist/cjs/src/gasPriceOracle/types.d.ts +6 -1
  60. package/dist/cjs/src/gasPriceOracle/types.js +5 -0
  61. package/dist/cjs/src/gasPriceOracle/types.js.map +1 -1
  62. package/dist/cjs/src/relayFeeCalculator/chain-queries/factory.d.ts +81 -152
  63. package/dist/cjs/src/relayFeeCalculator/chain-queries/factory.js +5 -0
  64. package/dist/cjs/src/relayFeeCalculator/chain-queries/factory.js.map +1 -1
  65. package/dist/cjs/src/relayFeeCalculator/chain-queries/index.d.ts +1 -0
  66. package/dist/cjs/src/relayFeeCalculator/chain-queries/index.js +1 -0
  67. package/dist/cjs/src/relayFeeCalculator/chain-queries/index.js.map +1 -1
  68. package/dist/cjs/src/relayFeeCalculator/chain-queries/tvmQuery.d.ts +16 -0
  69. package/dist/cjs/src/relayFeeCalculator/chain-queries/tvmQuery.js +52 -0
  70. package/dist/cjs/src/relayFeeCalculator/chain-queries/tvmQuery.js.map +1 -0
  71. package/dist/cjs/src/relayFeeCalculator/relayFeeCalculator.d.ts +77 -150
  72. package/dist/cjs/src/utils/Multicall.js +1 -0
  73. package/dist/cjs/src/utils/Multicall.js.map +1 -1
  74. package/dist/cjs/src/utils/NetworkUtils.d.ts +1 -0
  75. package/dist/cjs/src/utils/NetworkUtils.js +9 -3
  76. package/dist/cjs/src/utils/NetworkUtils.js.map +1 -1
  77. package/dist/cjs/src/utils/TokenUtils.d.ts +154 -300
  78. package/dist/cjs/src/utils/TypeGuards.d.ts +3 -1
  79. package/dist/cjs/src/utils/TypeGuards.js +5 -0
  80. package/dist/cjs/src/utils/TypeGuards.js.map +1 -1
  81. package/dist/esm/src/arch/evm/UpgradeUtils.d.ts +9 -0
  82. package/dist/esm/src/arch/evm/UpgradeUtils.js +37 -0
  83. package/dist/esm/src/arch/evm/UpgradeUtils.js.map +1 -0
  84. package/dist/esm/src/arch/evm/index.d.ts +1 -0
  85. package/dist/esm/src/arch/evm/index.js +1 -0
  86. package/dist/esm/src/arch/evm/index.js.map +1 -1
  87. package/dist/esm/src/arch/index.d.ts +1 -0
  88. package/dist/esm/src/arch/index.js +2 -0
  89. package/dist/esm/src/arch/index.js.map +1 -1
  90. package/dist/esm/src/arch/tvm/BlockUtils.d.ts +1 -0
  91. package/dist/esm/src/arch/tvm/BlockUtils.js +2 -0
  92. package/dist/esm/src/arch/tvm/BlockUtils.js.map +1 -0
  93. package/dist/esm/src/arch/tvm/MessageUtils.d.ts +1 -0
  94. package/dist/esm/src/arch/tvm/MessageUtils.js +2 -0
  95. package/dist/esm/src/arch/tvm/MessageUtils.js.map +1 -0
  96. package/dist/esm/src/arch/tvm/ResourceUtils.d.ts +32 -0
  97. package/dist/esm/src/arch/tvm/ResourceUtils.js +88 -0
  98. package/dist/esm/src/arch/tvm/ResourceUtils.js.map +1 -0
  99. package/dist/esm/src/arch/tvm/SpokeUtils.d.ts +48 -0
  100. package/dist/esm/src/arch/tvm/SpokeUtils.js +237 -0
  101. package/dist/esm/src/arch/tvm/SpokeUtils.js.map +1 -0
  102. package/dist/esm/src/arch/tvm/TransactionUtils.d.ts +20 -0
  103. package/dist/esm/src/arch/tvm/TransactionUtils.js +55 -0
  104. package/dist/esm/src/arch/tvm/TransactionUtils.js.map +1 -0
  105. package/dist/esm/src/arch/tvm/index.d.ts +6 -0
  106. package/dist/esm/src/arch/tvm/index.js +7 -0
  107. package/dist/esm/src/arch/tvm/index.js.map +1 -0
  108. package/dist/esm/src/arch/tvm/types.d.ts +2 -0
  109. package/dist/esm/src/arch/tvm/types.js +2 -0
  110. package/dist/esm/src/arch/tvm/types.js.map +1 -0
  111. package/dist/esm/src/arch/tvm/utils/address.d.ts +18 -0
  112. package/dist/esm/src/arch/tvm/utils/address.js +31 -0
  113. package/dist/esm/src/arch/tvm/utils/address.js.map +1 -0
  114. package/dist/esm/src/arch/tvm/utils/index.d.ts +2 -0
  115. package/dist/esm/src/arch/tvm/utils/index.js +3 -0
  116. package/dist/esm/src/arch/tvm/utils/index.js.map +1 -0
  117. package/dist/esm/src/arch/tvm/utils/wait.d.ts +1 -0
  118. package/dist/esm/src/arch/tvm/utils/wait.js +2 -0
  119. package/dist/esm/src/arch/tvm/utils/wait.js.map +1 -0
  120. package/dist/esm/src/clients/SpokePoolClient/EVMSpokePoolClient.d.ts +20 -2
  121. package/dist/esm/src/clients/SpokePoolClient/EVMSpokePoolClient.js +44 -12
  122. package/dist/esm/src/clients/SpokePoolClient/EVMSpokePoolClient.js.map +1 -1
  123. package/dist/esm/src/clients/SpokePoolClient/TVMSpokePoolClient.d.ts +32 -0
  124. package/dist/esm/src/clients/SpokePoolClient/TVMSpokePoolClient.js +66 -0
  125. package/dist/esm/src/clients/SpokePoolClient/TVMSpokePoolClient.js.map +1 -0
  126. package/dist/esm/src/clients/SpokePoolClient/index.d.ts +8 -0
  127. package/dist/esm/src/clients/SpokePoolClient/index.js +10 -1
  128. package/dist/esm/src/clients/SpokePoolClient/index.js.map +1 -1
  129. package/dist/esm/src/clients/SpokePoolClient/types.d.ts +1 -0
  130. package/dist/esm/src/clients/SpokePoolClient/types.js +1 -0
  131. package/dist/esm/src/clients/SpokePoolClient/types.js.map +1 -1
  132. package/dist/esm/src/gasPriceOracle/adapters/tron.d.ts +10 -0
  133. package/dist/esm/src/gasPriceOracle/adapters/tron.js +68 -0
  134. package/dist/esm/src/gasPriceOracle/adapters/tron.js.map +1 -0
  135. package/dist/esm/src/gasPriceOracle/index.d.ts +1 -1
  136. package/dist/esm/src/gasPriceOracle/oracle.d.ts +3 -1
  137. package/dist/esm/src/gasPriceOracle/oracle.js +17 -11
  138. package/dist/esm/src/gasPriceOracle/oracle.js.map +1 -1
  139. package/dist/esm/src/gasPriceOracle/types.d.ts +6 -1
  140. package/dist/esm/src/gasPriceOracle/types.js +4 -0
  141. package/dist/esm/src/gasPriceOracle/types.js.map +1 -1
  142. package/dist/esm/src/relayFeeCalculator/chain-queries/factory.d.ts +81 -152
  143. package/dist/esm/src/relayFeeCalculator/chain-queries/factory.js +6 -1
  144. package/dist/esm/src/relayFeeCalculator/chain-queries/factory.js.map +1 -1
  145. package/dist/esm/src/relayFeeCalculator/chain-queries/index.d.ts +1 -0
  146. package/dist/esm/src/relayFeeCalculator/chain-queries/index.js +1 -0
  147. package/dist/esm/src/relayFeeCalculator/chain-queries/index.js.map +1 -1
  148. package/dist/esm/src/relayFeeCalculator/chain-queries/tvmQuery.d.ts +32 -0
  149. package/dist/esm/src/relayFeeCalculator/chain-queries/tvmQuery.js +65 -0
  150. package/dist/esm/src/relayFeeCalculator/chain-queries/tvmQuery.js.map +1 -0
  151. package/dist/esm/src/relayFeeCalculator/relayFeeCalculator.d.ts +77 -150
  152. package/dist/esm/src/utils/Multicall.js +1 -0
  153. package/dist/esm/src/utils/Multicall.js.map +1 -1
  154. package/dist/esm/src/utils/NetworkUtils.d.ts +6 -0
  155. package/dist/esm/src/utils/NetworkUtils.js +13 -3
  156. package/dist/esm/src/utils/NetworkUtils.js.map +1 -1
  157. package/dist/esm/src/utils/TokenUtils.d.ts +154 -300
  158. package/dist/esm/src/utils/TypeGuards.d.ts +3 -1
  159. package/dist/esm/src/utils/TypeGuards.js +4 -0
  160. package/dist/esm/src/utils/TypeGuards.js.map +1 -1
  161. package/dist/types/src/arch/evm/UpgradeUtils.d.ts +10 -0
  162. package/dist/types/src/arch/evm/UpgradeUtils.d.ts.map +1 -0
  163. package/dist/types/src/arch/evm/index.d.ts +1 -0
  164. package/dist/types/src/arch/evm/index.d.ts.map +1 -1
  165. package/dist/types/src/arch/index.d.ts +1 -0
  166. package/dist/types/src/arch/index.d.ts.map +1 -1
  167. package/dist/types/src/arch/tvm/BlockUtils.d.ts +2 -0
  168. package/dist/types/src/arch/tvm/BlockUtils.d.ts.map +1 -0
  169. package/dist/types/src/arch/tvm/MessageUtils.d.ts +2 -0
  170. package/dist/types/src/arch/tvm/MessageUtils.d.ts.map +1 -0
  171. package/dist/types/src/arch/tvm/ResourceUtils.d.ts +33 -0
  172. package/dist/types/src/arch/tvm/ResourceUtils.d.ts.map +1 -0
  173. package/dist/types/src/arch/tvm/SpokeUtils.d.ts +49 -0
  174. package/dist/types/src/arch/tvm/SpokeUtils.d.ts.map +1 -0
  175. package/dist/types/src/arch/tvm/TransactionUtils.d.ts +21 -0
  176. package/dist/types/src/arch/tvm/TransactionUtils.d.ts.map +1 -0
  177. package/dist/types/src/arch/tvm/index.d.ts +7 -0
  178. package/dist/types/src/arch/tvm/index.d.ts.map +1 -0
  179. package/dist/types/src/arch/tvm/types.d.ts +3 -0
  180. package/dist/types/src/arch/tvm/types.d.ts.map +1 -0
  181. package/dist/types/src/arch/tvm/utils/address.d.ts +19 -0
  182. package/dist/types/src/arch/tvm/utils/address.d.ts.map +1 -0
  183. package/dist/types/src/arch/tvm/utils/index.d.ts +3 -0
  184. package/dist/types/src/arch/tvm/utils/index.d.ts.map +1 -0
  185. package/dist/types/src/arch/tvm/utils/wait.d.ts +2 -0
  186. package/dist/types/src/arch/tvm/utils/wait.d.ts.map +1 -0
  187. package/dist/types/src/clients/SpokePoolClient/EVMSpokePoolClient.d.ts +20 -2
  188. package/dist/types/src/clients/SpokePoolClient/EVMSpokePoolClient.d.ts.map +1 -1
  189. package/dist/types/src/clients/SpokePoolClient/TVMSpokePoolClient.d.ts +33 -0
  190. package/dist/types/src/clients/SpokePoolClient/TVMSpokePoolClient.d.ts.map +1 -0
  191. package/dist/types/src/clients/SpokePoolClient/index.d.ts +8 -0
  192. package/dist/types/src/clients/SpokePoolClient/index.d.ts.map +1 -1
  193. package/dist/types/src/clients/SpokePoolClient/types.d.ts +1 -0
  194. package/dist/types/src/clients/SpokePoolClient/types.d.ts.map +1 -1
  195. package/dist/types/src/gasPriceOracle/adapters/tron.d.ts +11 -0
  196. package/dist/types/src/gasPriceOracle/adapters/tron.d.ts.map +1 -0
  197. package/dist/types/src/gasPriceOracle/index.d.ts +1 -1
  198. package/dist/types/src/gasPriceOracle/index.d.ts.map +1 -1
  199. package/dist/types/src/gasPriceOracle/oracle.d.ts +3 -1
  200. package/dist/types/src/gasPriceOracle/oracle.d.ts.map +1 -1
  201. package/dist/types/src/gasPriceOracle/types.d.ts +6 -1
  202. package/dist/types/src/gasPriceOracle/types.d.ts.map +1 -1
  203. package/dist/types/src/relayFeeCalculator/chain-queries/factory.d.ts +81 -152
  204. package/dist/types/src/relayFeeCalculator/chain-queries/factory.d.ts.map +1 -1
  205. package/dist/types/src/relayFeeCalculator/chain-queries/index.d.ts +1 -0
  206. package/dist/types/src/relayFeeCalculator/chain-queries/index.d.ts.map +1 -1
  207. package/dist/types/src/relayFeeCalculator/chain-queries/tvmQuery.d.ts +33 -0
  208. package/dist/types/src/relayFeeCalculator/chain-queries/tvmQuery.d.ts.map +1 -0
  209. package/dist/types/src/relayFeeCalculator/relayFeeCalculator.d.ts +77 -150
  210. package/dist/types/src/relayFeeCalculator/relayFeeCalculator.d.ts.map +1 -1
  211. package/dist/types/src/utils/Multicall.d.ts.map +1 -1
  212. package/dist/types/src/utils/NetworkUtils.d.ts +6 -0
  213. package/dist/types/src/utils/NetworkUtils.d.ts.map +1 -1
  214. package/dist/types/src/utils/TokenUtils.d.ts +154 -300
  215. package/dist/types/src/utils/TokenUtils.d.ts.map +1 -1
  216. package/dist/types/src/utils/TypeGuards.d.ts +3 -1
  217. package/dist/types/src/utils/TypeGuards.d.ts.map +1 -1
  218. package/package.json +3 -2
  219. package/src/arch/evm/UpgradeUtils.ts +18 -0
  220. package/src/arch/evm/index.ts +1 -0
  221. package/src/arch/index.ts +1 -0
  222. package/src/arch/tvm/BlockUtils.ts +1 -0
  223. package/src/arch/tvm/MessageUtils.ts +1 -0
  224. package/src/arch/tvm/ResourceUtils.ts +92 -0
  225. package/src/arch/tvm/SpokeUtils.ts +225 -0
  226. package/src/arch/tvm/TransactionUtils.ts +62 -0
  227. package/src/arch/tvm/index.ts +6 -0
  228. package/src/arch/tvm/types.ts +2 -0
  229. package/src/arch/tvm/utils/address.ts +33 -0
  230. package/src/arch/tvm/utils/index.ts +2 -0
  231. package/src/arch/tvm/utils/wait.ts +1 -0
  232. package/src/clients/SpokePoolClient/EVMSpokePoolClient.ts +44 -18
  233. package/src/clients/SpokePoolClient/TVMSpokePoolClient.ts +65 -0
  234. package/src/clients/SpokePoolClient/index.ts +12 -1
  235. package/src/clients/SpokePoolClient/types.ts +1 -0
  236. package/src/gasPriceOracle/adapters/tron.ts +50 -0
  237. package/src/gasPriceOracle/index.ts +1 -1
  238. package/src/gasPriceOracle/oracle.ts +23 -3
  239. package/src/gasPriceOracle/types.ts +11 -1
  240. package/src/relayFeeCalculator/chain-queries/factory.ts +18 -3
  241. package/src/relayFeeCalculator/chain-queries/index.ts +1 -0
  242. package/src/relayFeeCalculator/chain-queries/tvmQuery.ts +88 -0
  243. package/src/utils/Multicall.ts +1 -0
  244. package/src/utils/NetworkUtils.ts +13 -3
  245. package/src/utils/TypeGuards.ts +6 -1
@@ -1,6 +1,8 @@
1
1
  import { SVMProvider } from "../arch/svm/types";
2
2
  import { EvmProvider } from "../arch/evm/types";
3
+ import { TronWeb } from "tronweb";
3
4
  export declare function isPromiseFulfilled<T>(promiseSettledResult: PromiseSettledResult<T>): promiseSettledResult is PromiseFulfilledResult<T>;
4
5
  export declare function isPromiseRejected<T>(promiseSettledResult: PromiseSettledResult<T>): promiseSettledResult is PromiseRejectedResult;
5
6
  export declare function isDefined<T>(input: T | null | undefined): input is T;
6
- export declare function isEvmProvider(provider: EvmProvider | SVMProvider): provider is EvmProvider;
7
+ export declare function isTvmProvider(provider: EvmProvider | SVMProvider | TronWeb): provider is TronWeb;
8
+ export declare function isEvmProvider(provider: EvmProvider | SVMProvider | TronWeb): provider is EvmProvider;
@@ -8,6 +8,10 @@ export function isPromiseRejected(promiseSettledResult) {
8
8
  export function isDefined(input) {
9
9
  return input !== null && input !== undefined;
10
10
  }
11
+ export function isTvmProvider(provider) {
12
+ var _a;
13
+ return typeof ((_a = provider === null || provider === void 0 ? void 0 : provider.trx) === null || _a === void 0 ? void 0 : _a.getEnergyPrices) === "function";
14
+ }
11
15
  export function isEvmProvider(provider) {
12
16
  return provider instanceof providers.Provider;
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TypeGuards.js","sourceRoot":"","sources":["../../../../src/utils/TypeGuards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,UAAU,kBAAkB,CAChC,oBAA6C;IAE7C,OAAO,oBAAoB,CAAC,MAAM,KAAK,WAAW,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,oBAA6C;IAE7C,OAAO,oBAAoB,CAAC,MAAM,KAAK,UAAU,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,KAA2B;IACtD,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,QAAmC;IAC/D,OAAO,QAAQ,YAAY,SAAS,CAAC,QAAQ,CAAC;AAChD,CAAC"}
1
+ {"version":3,"file":"TypeGuards.js","sourceRoot":"","sources":["../../../../src/utils/TypeGuards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGnC,MAAM,UAAU,kBAAkB,CAChC,oBAA6C;IAE7C,OAAO,oBAAoB,CAAC,MAAM,KAAK,WAAW,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,oBAA6C;IAE7C,OAAO,oBAAoB,CAAC,MAAM,KAAK,UAAU,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,KAA2B;IACtD,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,QAA6C;;IACzE,OAAO,OAAO,CAAA,MAAC,QAAoB,aAApB,QAAQ,uBAAR,QAAQ,CAAc,GAAG,0CAAE,eAAe,CAAA,KAAK,UAAU,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,QAA6C;IACzE,OAAO,QAAQ,YAAY,SAAS,CAAC,QAAQ,CAAC;AAChD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Contract } from "ethers";
2
+ /**
3
+ * Query for EIP-1967 contract upgrade events.
4
+ * @param contract A contract instance (must be a UUPS or transparent proxy that emits the Upgraded event).
5
+ * @param startBlock Optional start of the block range (inclusive). Defaults to 0.
6
+ * @param endBlock Optional end of the block range (inclusive). Defaults to latest.
7
+ * @returns An array of block numbers at which upgrades occurred, sorted ascending.
8
+ */
9
+ export declare function get1967Upgrades(contract: Contract, startBlock?: number, endBlock?: number): Promise<number[]>;
10
+ //# sourceMappingURL=UpgradeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpgradeUtils.d.ts","sourceRoot":"","sources":["../../../../../src/arch/evm/UpgradeUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGlC;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAOnH"}
@@ -1,5 +1,6 @@
1
1
  export * from "./SpokeUtils";
2
2
  export * from "./BlockUtils";
3
+ export * from "./UpgradeUtils";
3
4
  export * from "./utils";
4
5
  export * from "./MessageUtils";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/arch/evm/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/arch/evm/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * as evm from "./evm";
2
2
  export * as svm from "./svm";
3
+ export * as tvm from "./tvm";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/arch/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/arch/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { averageBlockTime, EVMBlockFinder as TVMBlockFinder } from "../evm/BlockUtils";
2
+ //# sourceMappingURL=BlockUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockUtils.d.ts","sourceRoot":"","sources":["../../../../../src/arch/tvm/BlockUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "../evm/MessageUtils";
2
+ //# sourceMappingURL=MessageUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageUtils.d.ts","sourceRoot":"","sources":["../../../../../src/arch/tvm/MessageUtils.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { TronWeb } from "tronweb";
2
+ import type { ContractFunctionParameter } from "tronweb/lib/esm/types/TransactionBuilder";
3
+ export interface TronResourceEstimate {
4
+ energyRequired: number;
5
+ /** Recommended feeLimit in SUN (1 TRX = 1,000,000 SUN). */
6
+ feeLimit: number;
7
+ }
8
+ export interface TronAccountResources {
9
+ freeNetLimit: number;
10
+ freeNetUsed: number;
11
+ energyLimit: number;
12
+ energyUsed: number;
13
+ }
14
+ /**
15
+ * Estimate the energy cost and recommended feeLimit for a smart contract call.
16
+ *
17
+ * @param tronWeb An authenticated TronWeb instance.
18
+ * @param contractAddress The target contract address (EVM hex or TRON Base58 format).
19
+ * @param functionSelector The Solidity function selector (e.g., "transfer(address,uint256)").
20
+ * @param parameters The function parameters in TronWeb's ContractFunctionParameter format.
21
+ * @param ownerAddress The address that will execute the transaction (EVM hex or TRON Base58).
22
+ * @returns The estimated energy required and recommended feeLimit in SUN.
23
+ */
24
+ export declare function estimateTransactionFee(tronWeb: TronWeb, contractAddress: string, functionSelector: string, parameters: ContractFunctionParameter[], ownerAddress: string): Promise<TronResourceEstimate>;
25
+ /**
26
+ * Query the current resource allocation and usage for an account.
27
+ *
28
+ * @param tronWeb A TronWeb instance.
29
+ * @param address The account address (EVM hex or TRON Base58 format).
30
+ * @returns The account's bandwidth and energy limits and usage.
31
+ */
32
+ export declare function getAccountResources(tronWeb: TronWeb, address: string): Promise<TronAccountResources>;
33
+ //# sourceMappingURL=ResourceUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceUtils.d.ts","sourceRoot":"","sources":["../../../../../src/arch/tvm/ResourceUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAG1F,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAyBD;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,MAAM,EACvB,gBAAgB,EAAE,MAAM,EACxB,UAAU,EAAE,yBAAyB,EAAE,EACvC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,oBAAoB,CAAC,CAgB/B;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAU1G"}
@@ -0,0 +1,49 @@
1
+ import { Contract, providers } from "ethers";
2
+ import { FillStatus, FillWithBlock, RelayData } from "../../interfaces";
3
+ import { BigNumber } from "../../utils";
4
+ type BlockTag = providers.BlockTag;
5
+ export { populateV3Relay, getTimestampForBlock, fillStatusArray } from "../evm/SpokeUtils";
6
+ /**
7
+ * @notice Retrieve the on-chain time at a specific block number.
8
+ * TRON does not support historical eth_call so block timestamps are used
9
+ * instead of SpokePool.getCurrentTime(). In production these are equivalent.
10
+ */
11
+ export declare function getTimeAt(spokePool: Contract, blockNumber: number): Promise<number>;
12
+ /**
13
+ * @notice Return the maximum fill deadline buffer across a block range.
14
+ * TRON does not support historical eth_call, so we read the current value.
15
+ * If a contract upgrade (EIP-1967 Upgraded event) occurred within the range,
16
+ * the value may have changed at the upgrade boundary. In that case, return
17
+ * the greater of the current value and a conservative 6-hour fallback.
18
+ */
19
+ export declare function getMaxFillDeadlineInRange(spokePool: Contract, startBlock: number, endBlock: number): Promise<number>;
20
+ /**
21
+ * @notice Not supported on TVM — callers should use findDepositBlock instead.
22
+ */
23
+ export declare function getDepositIdAtBlock(_contract: Contract, _blockTag: number): Promise<BigNumber>;
24
+ /**
25
+ * @notice Find the block at which a deposit was created.
26
+ * TRON does not support historical eth_call, so event queries replace the
27
+ * EVM binary-search over numberOfDeposits().
28
+ */
29
+ export declare function findDepositBlock(spokePool: Contract, depositId: BigNumber, lowBlock: number, highBlock?: number): Promise<number | undefined>;
30
+ /**
31
+ * @notice Determine the fill status of a relay at a given block.
32
+ * For "latest" queries, delegates to the EVM implementation (TRON's
33
+ * eth_call works normally for "latest"). For historical queries the
34
+ * status is reconstructed from on-chain events because TRON does not
35
+ * support eth_call with historical blockTags.
36
+ */
37
+ export declare function relayFillStatus(spokePool: Contract, relayData: RelayData, blockTag?: BlockTag, destinationChainId?: number): Promise<FillStatus>;
38
+ /**
39
+ * @notice Find the block at which a fill was completed.
40
+ * TRON does not support historical eth_call, so event queries replace the
41
+ * EVM binary-search over fillStatuses().
42
+ */
43
+ export declare function findFillBlock(spokePool: Contract, relayData: RelayData, lowBlockNumber: number, highBlockNumber?: number): Promise<number | undefined>;
44
+ /**
45
+ * @notice Find the fill event for a deposit.
46
+ * Queries fill events directly rather than binary-searching then re-querying.
47
+ */
48
+ export declare function findFillEvent(spokePool: Contract, relayData: RelayData, lowBlockNumber: number, highBlockNumber?: number): Promise<FillWithBlock | undefined>;
49
+ //# sourceMappingURL=SpokeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpokeUtils.d.ts","sourceRoot":"","sources":["../../../../../src/arch/tvm/SpokeUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,EACL,SAAS,EAOV,MAAM,aAAa,CAAC;AAErB,KAAK,QAAQ,GAAG,SAAS,CAAC,Q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C"}
@@ -0,0 +1,21 @@
1
+ import { TronWeb } from "tronweb";
2
+ import { PopulatedTransaction } from "ethers";
3
+ export interface TronTransactionResult {
4
+ txid: string;
5
+ result: boolean;
6
+ }
7
+ /**
8
+ * Submit a populated EVM transaction to TRON via TronWeb.
9
+ *
10
+ * The EVM `populateV3Relay()` already produces correct ABI-encoded calldata.
11
+ * This function extracts `to` and `data` from the PopulatedTransaction,
12
+ * converts the target address to TRON Base58 format, and uses TronWeb's
13
+ * `triggerSmartContract` → `sign` → `sendRawTransaction` pipeline.
14
+ *
15
+ * @param tronWeb An authenticated TronWeb instance (with private key set).
16
+ * @param populatedTx The populated transaction containing `to` and `data`.
17
+ * @param feeLimit The maximum TRX to burn for energy consumption, in SUN (1 TRX = 1,000,000 SUN).
18
+ * @returns The transaction ID and result status.
19
+ */
20
+ export declare function submitTransaction(tronWeb: TronWeb, populatedTx: PopulatedTransaction, feeLimit: number): Promise<TronTransactionResult>;
21
+ //# sourceMappingURL=TransactionUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionUtils.d.ts","sourceRoot":"","sources":["../../../../../src/arch/tvm/TransactionUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAG9C,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,oBAAoB,EACjC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,qBAAqB,CAAC,CAmChC"}
@@ -0,0 +1,7 @@
1
+ export * from "./SpokeUtils";
2
+ export * from "./BlockUtils";
3
+ export * from "./TransactionUtils";
4
+ export * from "./ResourceUtils";
5
+ export * from "./utils";
6
+ export * from "./MessageUtils";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/arch/tvm/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Provider } from "../evm/types";
2
+ export type { TronWeb } from "tronweb";
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/arch/tvm/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Convert an EVM-format hex address (0x...) to a TRON Base58Check address (T...).
3
+ * @param evmAddress The 0x-prefixed hex address.
4
+ * @returns The TRON Base58Check-encoded address.
5
+ */
6
+ export declare function evmToTronAddress(evmAddress: string): string;
7
+ /**
8
+ * Convert a TRON Base58Check address (T...) to an EVM-format hex address (0x...).
9
+ * @param tronAddress The TRON Base58Check-encoded address.
10
+ * @returns The 0x-prefixed hex address.
11
+ */
12
+ export declare function tronToEvmAddress(tronAddress: string): string;
13
+ /**
14
+ * Check whether a string is a valid TRON Base58Check address.
15
+ * @param address The string to check.
16
+ * @returns True if the address is a valid TRON Base58Check address.
17
+ */
18
+ export declare function isTronBase58Address(address: string): boolean;
19
+ //# sourceMappingURL=address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../../../src/arch/tvm/utils/address.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAK5D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D"}
@@ -0,0 +1,3 @@
1
+ export * from "./address";
2
+ export * from "./wait";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/arch/tvm/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "../../evm/utils/wait";
2
+ //# sourceMappingURL=wait.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../../../../../src/arch/tvm/utils/wait.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Contract } from "ethers";
2
- import { FillStatus, RelayData } from "../../interfaces";
2
+ import { FillStatus, Log, RelayData } from "../../interfaces";
3
3
  import { BigNumber, DepositSearchResult, MakeOptional } from "../../utils";
4
4
  import { EventSearchConfig } from "../../utils/EventUtils";
5
5
  import { SpokePoolClient, SpokePoolUpdate } from "./SpokePoolClient";
@@ -17,10 +17,28 @@ export declare class EVMSpokePoolClient extends SpokePoolClient {
17
17
  getMaxFillDeadlineInRange(startBlock: number, endBlock: number): Promise<number>;
18
18
  private _availableEventsOnSpoke;
19
19
  _queryableEventNames(): string[];
20
+ /**
21
+ * Retrieve the on-chain time at a specific block.
22
+ * EVM reads SpokePool.getCurrentTime() via multicall with a historical blockTag.
23
+ * @param blockNumber The block number to query.
24
+ * @returns The on-chain time as a number.
25
+ */
26
+ protected _getCurrentTime(blockNumber: number): Promise<number>;
20
27
  protected _update(eventsToQuery: string[]): Promise<SpokePoolUpdate>;
21
28
  getTimeAt(blockNumber: number): Promise<number>;
22
29
  findDeposit(depositId: BigNumber): Promise<DepositSearchResult>;
23
30
  getTimestampForBlock(blockNumber: number): Promise<number>;
24
- private queryDepositEvents;
31
+ /**
32
+ * Find the block at which a deposit was created.
33
+ * EVM uses a binary-search over historical numberOfDeposits().
34
+ * TVM overrides this with an event-based lookup.
35
+ */
36
+ protected _findDepositBlock(depositId: BigNumber, lowBlock: number, highBlock?: number): Promise<number | undefined>;
37
+ protected queryDepositEvents(depositId: BigNumber): Promise<{
38
+ event: Log;
39
+ elapsedMs: number;
40
+ } | {
41
+ reason: string;
42
+ }>;
25
43
  }
26
44
  //# sourceMappingURL=EVMSpokePoolClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EVMSpokePoolClient.d.ts","sourceRoot":"","sources":["../../../../../src/clients/SpokePoolClient/EVMSpokePoolClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,MAAM,QAAQ,CAAC;AAS/C,OAAO,EAAoB,UAAU,EAAO,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,SAAS,EACT,mBAAmB,EAGnB,YAAY,EAIb,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,iBAAiB,EAKlB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAmB,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,eAAe;aAInC,SAAS,EAAE,QAAQ;IAHrC,QAAQ,CAAC,IAAI,SAA8B;gBAEzC,MAAM,EAAE,OAAO,CAAC,MAAM,EACN,SAAS,EAAE,QAAQ,EACnC,aAAa,EAAE,aAAa,GAAG,IAAI,EACnC,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,EACvB,iBAAiB,GAAE,YAAY,CAAC,iBAAiB,EAA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pG,kBAAkB,CAChC,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CA4CnE"}
@@ -0,0 +1,33 @@
1
+ import { FillStatus, RelayData } from "../../interfaces";
2
+ import { BigNumber } from "../../utils";
3
+ import { EVMSpokePoolClient } from "./EVMSpokePoolClient";
4
+ /**
5
+ * A TVM-specific SpokePoolClient for TRON.
6
+ *
7
+ * TRON is EVM-compatible for reads and event queries, but diverges in three areas:
8
+ * 1. No historical `eth_call` — only "latest" blockTag is accepted.
9
+ * 2. No `eth_sendRawTransaction` — TRON uses Protobuf-encoded transactions via TronWeb.
10
+ * 3. Energy/bandwidth fee model instead of gas.
11
+ *
12
+ * This client extends EVMSpokePoolClient, overriding only the methods affected by (1).
13
+ * Transaction submission (2) and fee estimation (3) are handled by the arch/tvm utilities.
14
+ */
15
+ export declare class TVMSpokePoolClient extends EVMSpokePoolClient {
16
+ readonly type = "TVM";
17
+ relayFillStatus(relayData: RelayData, atHeight?: number): Promise<FillStatus>;
18
+ getMaxFillDeadlineInRange(startBlock: number, endBlock: number): Promise<number>;
19
+ getTimeAt(blockNumber: number): Promise<number>;
20
+ /**
21
+ * Override to use TVM's event-based findDepositBlock
22
+ * instead of EVM's binary-search over historical numberOfDeposits().
23
+ */
24
+ protected _findDepositBlock(depositId: BigNumber, lowBlock: number, highBlock?: number): Promise<number | undefined>;
25
+ /**
26
+ * Override to avoid historical eth_call for getCurrentTime.
27
+ * TRON does not support eth_call with historical blockTags, so we
28
+ * use the block timestamp from provider.getBlock() instead of
29
+ * SpokePool.getCurrentTime({ blockTag }).
30
+ */
31
+ protected _getCurrentTime(blockNumber: number): Promise<number>;
32
+ }
33
+ //# sourceMappingURL=TVMSpokePoolClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TVMSpokePoolClient.d.ts","sourceRoot":"","sources":["../../../../../src/clients/SpokePoolClient/TVMSpokePoolClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D;;;;;;;;;;GAUG;AACH,qBAAa,kBAAmB,SAAQ,kBAAkB;IAExD,SAAkB,IAAI,SAA8B;IAEpC,eAAe,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAI7E,yBAAyB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhF,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI/D;;;OAGG;cACgB,iBAAiB,CAClC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI9B;;;;;OAKG;cACsB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQ/E"}
@@ -1,9 +1,11 @@
1
1
  import { EVMSpokePoolClient } from "./EVMSpokePoolClient";
2
2
  import { SVMSpokePoolClient } from "./SVMSpokePoolClient";
3
+ import { TVMSpokePoolClient } from "./TVMSpokePoolClient";
3
4
  import { SpokePoolClient } from "./SpokePoolClient";
4
5
  export { EVMSpokePoolClient } from "./EVMSpokePoolClient";
5
6
  export { SpokePoolClient, SpokePoolUpdate } from "./SpokePoolClient";
6
7
  export { SVMSpokePoolClient } from "./SVMSpokePoolClient";
8
+ export { TVMSpokePoolClient } from "./TVMSpokePoolClient";
7
9
  export { SpokePoolManager } from "./SpokePoolClientManager";
8
10
  /**
9
11
  * Checks if a SpokePoolClient is an EVMSpokePoolClient.
@@ -17,4 +19,10 @@ export declare function isEVMSpokePoolClient(spokePoolClient: SpokePoolClient):
17
19
  * @returns True if the SpokePoolClient is an SVMSpokePoolClient, false otherwise.
18
20
  */
19
21
  export declare function isSVMSpokePoolClient(spokePoolClient: SpokePoolClient): spokePoolClient is SVMSpokePoolClient;
22
+ /**
23
+ * Checks if a SpokePoolClient is a TVMSpokePoolClient.
24
+ * @param spokePoolClient The SpokePoolClient to check.
25
+ * @returns True if the SpokePoolClient is a TVMSpokePoolClient, false otherwise.
26
+ */
27
+ export declare function isTVMSpokePoolClient(spokePoolClient: SpokePoolClient): spokePoolClient is TVMSpokePoolClient;
20
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/clients/SpokePoolClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,eAAe,GAAG,eAAe,IAAI,kBAAkB,CAG5G;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,eAAe,GAAG,eAAe,IAAI,kBAAkB,CAG5G"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/clients/SpokePoolClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,eAAe,GAAG,eAAe,IAAI,kBAAkB,CAG5G;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,eAAe,GAAG,eAAe,IAAI,kBAAkB,CAG5G;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,eAAe,GAAG,eAAe,IAAI,kBAAkB,CAE5G"}
@@ -1,3 +1,4 @@
1
1
  export declare const EVM_SPOKE_POOL_CLIENT_TYPE = "EVM";
2
2
  export declare const SVM_SPOKE_POOL_CLIENT_TYPE = "SVM";
3
+ export declare const TVM_SPOKE_POOL_CLIENT_TYPE = "TVM";
3
4
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/clients/SpokePoolClient/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAChD,eAAO,MAAM,0BAA0B,QAAQ,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/clients/SpokePoolClient/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAChD,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAChD,eAAO,MAAM,0BAA0B,QAAQ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { TronWeb } from "tronweb";
2
+ import { TvmGasPriceEstimate } from "../types";
3
+ import { GasPriceEstimateOptions } from "../oracle";
4
+ /**
5
+ * @notice Returns energy and bandwidth prices for the TRON network.
6
+ * @param provider A TronWeb instance.
7
+ * @param _opts Gas price estimate options (unused, kept for interface consistency).
8
+ * @returns TvmGasPriceEstimate with energyPrice and bandwidthPrice in SUN per unit.
9
+ */
10
+ export declare function gasPrices(provider: TronWeb, _opts: GasPriceEstimateOptions): Promise<TvmGasPriceEstimate>;
11
+ //# sourceMappingURL=tron.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tron.d.ts","sourceRoot":"","sources":["../../../../../src/gasPriceOracle/adapters/tron.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD;;;;;GAKG;AACH,wBAAsB,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAO/G"}
@@ -1,3 +1,3 @@
1
1
  export { getGasPriceEstimate, GasPriceEstimateOptions } from "./oracle";
2
- export { GasPriceEstimate, EvmGasPriceEstimate, SvmGasPriceEstimate } from "./types";
2
+ export { GasPriceEstimate, EvmGasPriceEstimate, SvmGasPriceEstimate, TvmGasPriceEstimate } from "./types";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gasPriceOracle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gasPriceOracle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { Transport } from "viem";
2
2
  import { BigNumber } from "../utils";
3
3
  import { SVMProvider as SolanaProvider } from "../arch/svm";
4
- import { EvmGasPriceEstimate, SvmGasPriceEstimate } from "./types";
4
+ import { TronWeb } from "tronweb";
5
+ import { EvmGasPriceEstimate, SvmGasPriceEstimate, TvmGasPriceEstimate } from "./types";
5
6
  import { EvmProvider } from "../arch/evm/types";
6
7
  export interface GasPriceEstimateOptions {
7
8
  baseFeeMultiplier: BigNumber;
@@ -20,4 +21,5 @@ export interface FeeHistoryOptions {
20
21
  }
21
22
  export declare function getGasPriceEstimate(provider: EvmProvider, opts?: Partial<GasPriceEstimateOptions>): Promise<EvmGasPriceEstimate>;
22
23
  export declare function getGasPriceEstimate(provider: SolanaProvider, opts?: Partial<GasPriceEstimateOptions>): Promise<SvmGasPriceEstimate>;
24
+ export declare function getGasPriceEstimate(provider: TronWeb, opts?: Partial<GasPriceEstimateOptions>): Promise<TvmGasPriceEstimate>;
23
25
  //# sourceMappingURL=oracle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oracle.d.ts","sourceRoot":"","sources":["../../../../src/gasPriceOracle/oracle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGjC,OAAO,EAAE,SAAS,EAA2D,MAAM,UAAU,CAAC;AAC9F,OAAO,EAAE,WAAW,IAAI,cAAc,E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AoB,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAQ1G,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,WAAW,uBAAuB;IAEtC,iBAAiB,EAAE,SAAS,CAAC;IAE7B,qBAAqB,EAAE,SAAS,CAAC;IAEjC,cAAc,EAAE,OAAO,CAAC;IAExB,OAAO,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,SAAS,CAAC;CAC7B;AAUD,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,WAAW,EACrB,IAAI,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACtC,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAGhC,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,cAAc,EACxB,IAAI,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACtC,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAGhC,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,OAAO,EACjB,IAAI,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACtC,OAAO,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type Chain, type Transport, PublicClient, FeeValuesEIP1559 } from "viem";
2
2
  import { BigNumber } from "../utils";
3
3
  export type InternalGasPriceEstimate = FeeValuesEIP1559;
4
- export type GasPriceEstimate = EvmGasPriceEstimate | SvmGasPriceEstimate;
4
+ export type GasPriceEstimate = EvmGasPriceEstimate | SvmGasPriceEstimate | TvmGasPriceEstimate;
5
5
  export type EvmGasPriceEstimate = {
6
6
  maxFeePerGas: BigNumber;
7
7
  maxPriorityFeePerGas: BigNumber;
@@ -10,6 +10,10 @@ export type SvmGasPriceEstimate = {
10
10
  baseFee: BigNumber;
11
11
  microLamportsPerComputeUnit: BigNumber;
12
12
  };
13
+ export type TvmGasPriceEstimate = {
14
+ energyPrice: BigNumber;
15
+ bandwidthPrice: BigNumber;
16
+ };
13
17
  export interface GasPriceFeed {
14
18
  (provider: PublicClient<Transport, Chain>, chainId: number): Promise<InternalGasPriceEstimate>;
15
19
  }
@@ -17,4 +21,5 @@ export declare function isEVMGasPrice(gasPrice: GasPriceEstimate): gasPrice is E
17
21
  export declare function isType0Gas(gas: EvmGasPriceEstimate): boolean;
18
22
  export declare function isType2Gas(gas: EvmGasPriceEstimate): boolean;
19
23
  export declare function isSVMGasPrice(gasPrice: GasPriceEstimate): gasPrice is SvmGasPriceEstimate;
24
+ export declare function isTVMGasPrice(gasPrice: GasPriceEstimate): gasPrice is TvmGasPriceEstimate;
20
25
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/gasPriceOracle/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAClF,OAAO,EAAE,SAAS,EAAqB,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAEzE,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,SAAS,CAAC;IACxB,oBAAoB,EAAE,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,SAAS,CAAC;IACnB,2BAA2B,EAA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