@allbridge/bridge-core-sdk 3.19.1-alpha.1 → 3.20.0-alpha.1

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 (197) hide show
  1. package/dist/browser/index.js +5 -5
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/cjs/index.js +3 -3
  4. package/dist/cjs/index.js.map +4 -4
  5. package/dist/esm/index.js +2 -2
  6. package/dist/esm/index.js.map +4 -4
  7. package/dist/src/chains/chain.enums.js +2 -2
  8. package/dist/src/chains/chain.enums.js.map +1 -1
  9. package/dist/src/chains/index.js.map +1 -1
  10. package/dist/src/chains/models.js.map +1 -1
  11. package/dist/src/client/core-api/api-client-caching.js +5 -0
  12. package/dist/src/client/core-api/api-client-caching.js.map +1 -1
  13. package/dist/src/client/core-api/api-client.js +1 -0
  14. package/dist/src/client/core-api/api-client.js.map +1 -1
  15. package/dist/src/client/core-api/core-api-mapper.js +6 -8
  16. package/dist/src/client/core-api/core-api-mapper.js.map +1 -1
  17. package/dist/src/client/core-api/core-api.model.js +3 -3
  18. package/dist/src/client/core-api/core-api.model.js.map +1 -1
  19. package/dist/src/client/core-api/core-client-base.js +1 -0
  20. package/dist/src/client/core-api/core-client-base.js.map +1 -1
  21. package/dist/src/client/core-api/core-client-filtered.js +2 -0
  22. package/dist/src/client/core-api/core-client-filtered.js.map +1 -1
  23. package/dist/src/client/core-api/core-client-pool-info-caching.js +3 -1
  24. package/dist/src/client/core-api/core-client-pool-info-caching.js.map +1 -1
  25. package/dist/src/configs/index.js.map +1 -1
  26. package/dist/src/configs/mainnet.d.ts +1 -1
  27. package/dist/src/configs/mainnet.js +1 -1
  28. package/dist/src/configs/mainnet.js.map +1 -1
  29. package/dist/src/exceptions/exceptions.js +2 -1
  30. package/dist/src/exceptions/exceptions.js.map +1 -1
  31. package/dist/src/exceptions/index.js.map +1 -1
  32. package/dist/src/index.d.ts +7 -7
  33. package/dist/src/index.js +11 -6
  34. package/dist/src/index.js.map +1 -1
  35. package/dist/src/models/index.js +2 -2
  36. package/dist/src/models/index.js.map +1 -1
  37. package/dist/src/services/bridge/evm/index.d.ts +6 -8
  38. package/dist/src/services/bridge/evm/index.js +14 -12
  39. package/dist/src/services/bridge/evm/index.js.map +1 -1
  40. package/dist/src/services/bridge/index.d.ts +3 -4
  41. package/dist/src/services/bridge/index.js +16 -11
  42. package/dist/src/services/bridge/index.js.map +1 -1
  43. package/dist/src/services/bridge/models/bridge.d.ts +1 -1
  44. package/dist/src/services/bridge/models/bridge.js.map +1 -1
  45. package/dist/src/services/bridge/models/bridge.model.d.ts +18 -10
  46. package/dist/src/services/bridge/models/bridge.model.js.map +1 -1
  47. package/dist/src/services/bridge/models/index.js.map +1 -1
  48. package/dist/src/services/bridge/raw-bridge-transaction-builder.js +4 -0
  49. package/dist/src/services/bridge/raw-bridge-transaction-builder.js.map +1 -1
  50. package/dist/src/services/bridge/sol/index.d.ts +2 -2
  51. package/dist/src/services/bridge/sol/index.js +5 -5
  52. package/dist/src/services/bridge/sol/index.js.map +1 -1
  53. package/dist/src/services/bridge/sol/jupiter.js +2 -0
  54. package/dist/src/services/bridge/sol/jupiter.js.map +1 -1
  55. package/dist/src/services/bridge/srb/index.d.ts +3 -3
  56. package/dist/src/services/bridge/srb/index.js +4 -1
  57. package/dist/src/services/bridge/srb/index.js.map +1 -1
  58. package/dist/src/services/bridge/trx/index.d.ts +6 -6
  59. package/dist/src/services/bridge/trx/index.js +5 -3
  60. package/dist/src/services/bridge/trx/index.js.map +1 -1
  61. package/dist/src/services/bridge/utils.d.ts +12 -3
  62. package/dist/src/services/bridge/utils.js +22 -40
  63. package/dist/src/services/bridge/utils.js.map +1 -1
  64. package/dist/src/services/index.js +7 -3
  65. package/dist/src/services/index.js.map +1 -1
  66. package/dist/src/services/liquidity-pool/evm/index.d.ts +4 -6
  67. package/dist/src/services/liquidity-pool/evm/index.js +102 -47
  68. package/dist/src/services/liquidity-pool/evm/index.js.map +1 -1
  69. package/dist/src/services/liquidity-pool/index.d.ts +1 -1
  70. package/dist/src/services/liquidity-pool/index.js +14 -7
  71. package/dist/src/services/liquidity-pool/index.js.map +1 -1
  72. package/dist/src/services/liquidity-pool/models/index.js.map +1 -1
  73. package/dist/src/services/liquidity-pool/models/pool.js.map +1 -1
  74. package/dist/src/services/liquidity-pool/models/pool.model.js +2 -0
  75. package/dist/src/services/liquidity-pool/models/pool.model.js.map +1 -1
  76. package/dist/src/services/liquidity-pool/raw-pool-transaction-builder.js +4 -0
  77. package/dist/src/services/liquidity-pool/raw-pool-transaction-builder.js.map +1 -1
  78. package/dist/src/services/liquidity-pool/sol/index.js +7 -5
  79. package/dist/src/services/liquidity-pool/sol/index.js.map +1 -1
  80. package/dist/src/services/liquidity-pool/srb/index.js +5 -2
  81. package/dist/src/services/liquidity-pool/srb/index.js.map +1 -1
  82. package/dist/src/services/liquidity-pool/trx/index.d.ts +4 -5
  83. package/dist/src/services/liquidity-pool/trx/index.js +94 -38
  84. package/dist/src/services/liquidity-pool/trx/index.js.map +1 -1
  85. package/dist/src/services/models/abi/Bridge.d.ts +715 -0
  86. package/dist/src/services/models/abi/Bridge.js +925 -0
  87. package/dist/src/services/models/abi/Bridge.js.map +1 -0
  88. package/dist/src/services/models/abi/CctpBridge.d.ts +446 -0
  89. package/dist/src/services/models/abi/CctpBridge.js +575 -0
  90. package/dist/src/services/models/abi/CctpBridge.js.map +1 -0
  91. package/dist/src/services/models/abi/ERC20.d.ts +222 -0
  92. package/dist/src/services/models/abi/ERC20.js +294 -0
  93. package/dist/src/services/models/abi/ERC20.js.map +1 -0
  94. package/dist/src/services/models/abi/Pool.d.ts +746 -0
  95. package/dist/src/services/models/abi/Pool.js +965 -0
  96. package/dist/src/services/models/abi/Pool.js.map +1 -0
  97. package/dist/src/services/models/index.d.ts +35 -9
  98. package/dist/src/services/models/index.js.map +1 -1
  99. package/dist/src/services/models/sol/index.d.ts +2 -4
  100. package/dist/src/services/models/sol/index.js +1 -1
  101. package/dist/src/services/models/sol/index.js.map +1 -1
  102. package/dist/src/services/models/sol/types/bridge.js.map +1 -1
  103. package/dist/src/services/models/sol/types/cctp_bridge.js.map +1 -1
  104. package/dist/src/services/models/sol/types/gas_oracle.js.map +1 -1
  105. package/dist/src/services/models/srb/bridge-contract.d.ts +0 -1
  106. package/dist/src/services/models/srb/bridge-contract.js +32 -31
  107. package/dist/src/services/models/srb/bridge-contract.js.map +1 -1
  108. package/dist/src/services/models/srb/gas-oracle-contract.d.ts +0 -1
  109. package/dist/src/services/models/srb/gas-oracle-contract.js +13 -12
  110. package/dist/src/services/models/srb/gas-oracle-contract.js.map +1 -1
  111. package/dist/src/services/models/srb/messenger-contract.d.ts +0 -1
  112. package/dist/src/services/models/srb/messenger-contract.js +23 -22
  113. package/dist/src/services/models/srb/messenger-contract.js.map +1 -1
  114. package/dist/src/services/models/srb/pool-contract.d.ts +0 -1
  115. package/dist/src/services/models/srb/pool-contract.js +28 -27
  116. package/dist/src/services/models/srb/pool-contract.js.map +1 -1
  117. package/dist/src/services/models/srb/token-contract.js +19 -18
  118. package/dist/src/services/models/srb/token-contract.js.map +1 -1
  119. package/dist/src/services/models/srb/utils.js +3 -4
  120. package/dist/src/services/models/srb/utils.js.map +1 -1
  121. package/dist/src/services/token/evm/index.d.ts +5 -7
  122. package/dist/src/services/token/evm/index.js +24 -23
  123. package/dist/src/services/token/evm/index.js.map +1 -1
  124. package/dist/src/services/token/index.js +7 -8
  125. package/dist/src/services/token/index.js.map +1 -1
  126. package/dist/src/services/token/models/index.js.map +1 -1
  127. package/dist/src/services/token/models/token.js.map +1 -1
  128. package/dist/src/services/token/models/token.model.js.map +1 -1
  129. package/dist/src/services/token/sol/index.js +3 -2
  130. package/dist/src/services/token/sol/index.js.map +1 -1
  131. package/dist/src/services/token/srb/index.js +4 -1
  132. package/dist/src/services/token/srb/index.js.map +1 -1
  133. package/dist/src/services/token/trx/index.d.ts +3 -3
  134. package/dist/src/services/token/trx/index.js +7 -5
  135. package/dist/src/services/token/trx/index.js.map +1 -1
  136. package/dist/src/services/utils/calculation/index.js +2 -3
  137. package/dist/src/services/utils/calculation/index.js.map +1 -1
  138. package/dist/src/services/utils/index.js +5 -9
  139. package/dist/src/services/utils/index.js.map +1 -1
  140. package/dist/src/services/utils/sol/accounts.d.ts +0 -1
  141. package/dist/src/services/utils/sol/accounts.js +19 -20
  142. package/dist/src/services/utils/sol/accounts.js.map +1 -1
  143. package/dist/src/services/utils/sol/anchor-provider.js +1 -2
  144. package/dist/src/services/utils/sol/anchor-provider.js.map +1 -1
  145. package/dist/src/services/utils/sol/compute-budget.js +2 -3
  146. package/dist/src/services/utils/sol/compute-budget.js.map +1 -1
  147. package/dist/src/services/utils/sol/index.d.ts +0 -1
  148. package/dist/src/services/utils/sol/index.js +8 -9
  149. package/dist/src/services/utils/sol/index.js.map +1 -1
  150. package/dist/src/services/utils/trx/index.d.ts +1 -1
  151. package/dist/src/services/utils/trx/index.js +3 -6
  152. package/dist/src/services/utils/trx/index.js.map +1 -1
  153. package/dist/src/tokens-info/index.js +4 -0
  154. package/dist/src/tokens-info/index.js.map +1 -1
  155. package/dist/src/tokens-info/tokens-info.model.d.ts +1 -1
  156. package/dist/src/tokens-info/tokens-info.model.js.map +1 -1
  157. package/dist/src/utils/calculation/constants.js.map +1 -1
  158. package/dist/src/utils/calculation/index.js +17 -18
  159. package/dist/src/utils/calculation/index.js.map +1 -1
  160. package/dist/src/utils/calculation/swap-and-bridge-details.js +1 -2
  161. package/dist/src/utils/calculation/swap-and-bridge-details.js.map +1 -1
  162. package/dist/src/utils/calculation/swap-and-bridge-fee-calc.js +2 -3
  163. package/dist/src/utils/calculation/swap-and-bridge-fee-calc.js.map +1 -1
  164. package/dist/src/utils/index.js +3 -0
  165. package/dist/src/utils/index.js.map +1 -1
  166. package/dist/src/utils/sol/index.js +2 -0
  167. package/dist/src/utils/sol/index.js.map +1 -1
  168. package/dist/src/utils/sol/utils.js +1 -2
  169. package/dist/src/utils/sol/utils.js.map +1 -1
  170. package/dist/src/utils/srb/index.d.ts +1 -1
  171. package/dist/src/utils/srb/index.js +7 -5
  172. package/dist/src/utils/srb/index.js.map +1 -1
  173. package/dist/src/utils/utils.js +7 -9
  174. package/dist/src/utils/utils.js.map +1 -1
  175. package/dist/src/version.d.ts +1 -1
  176. package/dist/src/version.js +1 -1
  177. package/dist/src/version.js.map +1 -1
  178. package/package.json +55 -53
  179. package/dist/src/services/models/abi/Bridge.json +0 -919
  180. package/dist/src/services/models/abi/CctpBridge.json +0 -569
  181. package/dist/src/services/models/abi/ERC20.json +0 -288
  182. package/dist/src/services/models/abi/Pool.json +0 -959
  183. package/dist/src/services/models/abi/types/Bridge.d.ts +0 -145
  184. package/dist/src/services/models/abi/types/Bridge.js +0 -6
  185. package/dist/src/services/models/abi/types/Bridge.js.map +0 -1
  186. package/dist/src/services/models/abi/types/CctpBridge.d.ts +0 -117
  187. package/dist/src/services/models/abi/types/CctpBridge.js +0 -6
  188. package/dist/src/services/models/abi/types/CctpBridge.js.map +0 -1
  189. package/dist/src/services/models/abi/types/Pool.d.ts +0 -164
  190. package/dist/src/services/models/abi/types/Pool.js +0 -6
  191. package/dist/src/services/models/abi/types/Pool.js.map +0 -1
  192. package/dist/src/services/models/abi/types/index.d.ts +0 -2
  193. package/dist/src/services/models/abi/types/index.js +0 -3
  194. package/dist/src/services/models/abi/types/index.js.map +0 -1
  195. package/dist/src/services/models/abi/types/types.d.ts +0 -54
  196. package/dist/src/services/models/abi/types/types.js +0 -3
  197. package/dist/src/services/models/abi/types/types.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cctp_bridge.js","sourceRoot":"","sources":["../../../../../../src/services/models/sol/types/cctp_bridge.ts"],"names":[],"mappings":";;;AAmmBa,QAAA,GAAG,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,aAAa;IACnB,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE;gBACR;oBACE,IAAI,E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IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,IAAI;qBACX;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,WAAW;qBAClB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE;4BACJ,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;yBAClB;qBACF;oBACD;wBACE,IAAI,EAAE,oBAAoB;wBAC1B,IAAI,EAAE,IAAI;qBACX;oBACD;wBACE,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE;4BACJ,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;yBAClB;qBACF;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,KAAK;qBACZ;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,oBAAoB;wBAC1B,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,0BAA0B;wBAChC,IAAI,EAAE,WAAW;qBAClB;iBACF;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN;YACE,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE,mBAAmB;SACzB;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"cctp_bridge.js","sourceRoot":"","sources":["../../../../../../src/services/models/sol/types/cctp_bridge.ts"],"names":[],"mappings":";;;AAmmBa,QAAA,GAAG,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,IAAI,EA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AAI,EAAE,uBAAuB;YAC7B,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,IAAI;qBACX;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,WAAW;qBAClB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE;4BACJ,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;yBAClB;qBACF;oBACD;wBACE,IAAI,EAAE,oBAAoB;wBAC1B,IAAI,EAAE,IAAI;qBACX;oBACD;wBACE,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE;4BACJ,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;yBAClB;qBACF;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,KAAK;qBACZ;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,oBAAoB;wBAC1B,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,0BAA0B;wBAChC,IAAI,EAAE,WAAW;qBAClB;iBACF;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN;YACE,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE,mBAAmB;SACzB;KACF;CACF,CAAC","sourcesContent":["export interface CctpBridge {\n version: \"0.1.0\";\n name: \"cctp_bridge\";\n instructions: [\n {\n name: \"initialize\";\n accounts: [\n {\n name: \"payer\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"admin\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"mint\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"cctpBridge\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"bridgeAuthority\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"bridgeToken\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"systemProgram\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"tokenProgram\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"rent\";\n isMut: false;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"args\";\n type: {\n defined: \"InitializeArgs\";\n };\n },\n ];\n },\n {\n name: \"bridge\";\n accounts: [\n {\n name: \"user\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"payer\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"messageSentEventData\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"lock\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"mint\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"cctpBridge\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"cctpMessenger\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"messageTransmitterProgram\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"messageTransmitterAccount\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"tokenMessenger\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"tokenMinter\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"localToken\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"remoteTokenMessengerKey\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"authorityPda\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"eventAuthority\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"bridgeToken\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"gasPrice\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"thisGasPrice\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"chainBridge\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"userToken\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"bridgeAuthority\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"tokenProgram\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"systemProgram\";\n isMut: false;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"args\";\n type: {\n defined: \"BridgeArgs\";\n };\n },\n ];\n },\n {\n name: \"registerChainBridge\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"payer\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"cctpBridge\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"chainBridge\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"systemProgram\";\n isMut: false;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"args\";\n type: {\n defined: \"RegisterChainBridgeArgs\";\n };\n },\n ];\n },\n {\n name: \"updateChainBridge\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"cctpBridge\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"chainBridge\";\n isMut: true;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"args\";\n type: {\n defined: \"UpdateChainBridgeArgs\";\n };\n },\n ];\n },\n {\n name: \"setAdminFeeShare\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"mint\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"cctpBridge\";\n isMut: true;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"feeShareBp\";\n type: \"u64\";\n },\n ];\n },\n {\n name: \"setGasOracleProgramId\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"mint\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"cctpBridge\";\n isMut: true;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"newProgramId\";\n type: \"publicKey\";\n },\n ];\n },\n {\n name: \"withdrawGasToken\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"recipient\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"mint\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"cctpBridge\";\n isMut: true;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"amount\";\n type: \"u64\";\n },\n ];\n },\n {\n name: \"withdrawAdminFee\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"mint\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"cctpBridge\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"bridgeToken\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"adminToken\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"bridgeAuthority\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"tokenProgram\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"systemProgram\";\n isMut: false;\n isSigner: false;\n },\n ];\n args: [];\n },\n {\n name: \"setCctpTokenMessengerMinter\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"mint\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"cctpBridge\";\n isMut: true;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"newProgramId\";\n type: \"publicKey\";\n },\n ];\n },\n ];\n accounts: [\n {\n name: \"cctpBridge\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"mint\";\n type: \"publicKey\";\n },\n {\n name: \"admin\";\n type: \"publicKey\";\n },\n {\n name: \"cctpTokenMessengerMinter\";\n type: \"publicKey\";\n },\n {\n name: \"gasOracleProgramId\";\n type: \"publicKey\";\n },\n {\n name: \"authorityBumpSeed\";\n type: \"u8\";\n },\n {\n name: \"adminFeeShareBp\";\n type: \"u64\";\n },\n {\n name: \"adminFeeAmount\";\n type: \"u64\";\n },\n ];\n };\n },\n {\n name: \"chainBridge\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"chainId\";\n type: \"u8\";\n },\n {\n name: \"gasUsage\";\n type: \"u64\";\n },\n {\n name: \"domain\";\n type: \"u32\";\n },\n ];\n };\n },\n {\n name: \"lock\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"sender\";\n type: \"publicKey\";\n },\n {\n name: \"amount\";\n type: \"u64\";\n },\n {\n name: \"adminFee\";\n type: \"u64\";\n },\n {\n name: \"relayerFee\";\n type: \"u64\";\n },\n {\n name: \"recipient\";\n type: {\n array: [\"u8\", 32];\n };\n },\n {\n name: \"destinationChainId\";\n type: \"u8\";\n },\n {\n name: \"slot\";\n type: \"u64\";\n },\n ];\n };\n },\n ];\n types: [\n {\n name: \"RegisterChainBridgeArgs\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"chainId\";\n type: \"u8\";\n },\n {\n name: \"gasUsage\";\n type: \"u64\";\n },\n {\n name: \"domain\";\n type: \"u32\";\n },\n {\n name: \"mint\";\n type: \"publicKey\";\n },\n ];\n };\n },\n {\n name: \"UpdateChainBridgeArgs\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"chainId\";\n type: \"u8\";\n },\n {\n name: \"gasUsage\";\n type: \"u64\";\n },\n {\n name: \"domain\";\n type: \"u32\";\n },\n {\n name: \"mint\";\n type: \"publicKey\";\n },\n ];\n };\n },\n {\n name: \"BridgeArgs\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"recipient\";\n type: {\n array: [\"u8\", 32];\n };\n },\n {\n name: \"destinationChainId\";\n type: \"u8\";\n },\n {\n name: \"receiveToken\";\n type: {\n array: [\"u8\", 32];\n };\n },\n {\n name: \"amount\";\n type: \"u64\";\n },\n ];\n };\n },\n {\n name: \"InitializeArgs\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"gasOracleProgramId\";\n type: \"publicKey\";\n },\n {\n name: \"cctpTokenMessengerMinter\";\n type: \"publicKey\";\n },\n ];\n };\n },\n ];\n errors: [\n {\n code: 6000;\n name: \"ValueTooHigh\";\n msg: \"Value is too high\";\n },\n ];\n}\n\nexport const IDL: CctpBridge = {\n version: \"0.1.0\",\n name: \"cctp_bridge\",\n instructions: [\n {\n name: \"initialize\",\n accounts: [\n {\n name: \"payer\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"admin\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"mint\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"cctpBridge\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"bridgeAuthority\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"bridgeToken\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"systemProgram\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"tokenProgram\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"rent\",\n isMut: false,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"args\",\n type: {\n defined: \"InitializeArgs\",\n },\n },\n ],\n },\n {\n name: \"bridge\",\n accounts: [\n {\n name: \"user\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"payer\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"messageSentEventData\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"lock\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"mint\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"cctpBridge\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"cctpMessenger\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"messageTransmitterProgram\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"messageTransmitterAccount\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"tokenMessenger\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"tokenMinter\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"localToken\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"remoteTokenMessengerKey\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"authorityPda\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"eventAuthority\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"bridgeToken\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"gasPrice\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"thisGasPrice\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"chainBridge\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"userToken\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"bridgeAuthority\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"tokenProgram\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"systemProgram\",\n isMut: false,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"args\",\n type: {\n defined: \"BridgeArgs\",\n },\n },\n ],\n },\n {\n name: \"registerChainBridge\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"payer\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"cctpBridge\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"chainBridge\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"systemProgram\",\n isMut: false,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"args\",\n type: {\n defined: \"RegisterChainBridgeArgs\",\n },\n },\n ],\n },\n {\n name: \"updateChainBridge\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"cctpBridge\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"chainBridge\",\n isMut: true,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"args\",\n type: {\n defined: \"UpdateChainBridgeArgs\",\n },\n },\n ],\n },\n {\n name: \"setAdminFeeShare\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"mint\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"cctpBridge\",\n isMut: true,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"feeShareBp\",\n type: \"u64\",\n },\n ],\n },\n {\n name: \"setGasOracleProgramId\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"mint\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"cctpBridge\",\n isMut: true,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"newProgramId\",\n type: \"publicKey\",\n },\n ],\n },\n {\n name: \"withdrawGasToken\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"recipient\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"mint\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"cctpBridge\",\n isMut: true,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"amount\",\n type: \"u64\",\n },\n ],\n },\n {\n name: \"withdrawAdminFee\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"mint\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"cctpBridge\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"bridgeToken\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"adminToken\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"bridgeAuthority\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"tokenProgram\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"systemProgram\",\n isMut: false,\n isSigner: false,\n },\n ],\n args: [],\n },\n {\n name: \"setCctpTokenMessengerMinter\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"mint\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"cctpBridge\",\n isMut: true,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"newProgramId\",\n type: \"publicKey\",\n },\n ],\n },\n ],\n accounts: [\n {\n name: \"cctpBridge\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"mint\",\n type: \"publicKey\",\n },\n {\n name: \"admin\",\n type: \"publicKey\",\n },\n {\n name: \"cctpTokenMessengerMinter\",\n type: \"publicKey\",\n },\n {\n name: \"gasOracleProgramId\",\n type: \"publicKey\",\n },\n {\n name: \"authorityBumpSeed\",\n type: \"u8\",\n },\n {\n name: \"adminFeeShareBp\",\n type: \"u64\",\n },\n {\n name: \"adminFeeAmount\",\n type: \"u64\",\n },\n ],\n },\n },\n {\n name: \"chainBridge\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"chainId\",\n type: \"u8\",\n },\n {\n name: \"gasUsage\",\n type: \"u64\",\n },\n {\n name: \"domain\",\n type: \"u32\",\n },\n ],\n },\n },\n {\n name: \"lock\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"sender\",\n type: \"publicKey\",\n },\n {\n name: \"amount\",\n type: \"u64\",\n },\n {\n name: \"adminFee\",\n type: \"u64\",\n },\n {\n name: \"relayerFee\",\n type: \"u64\",\n },\n {\n name: \"recipient\",\n type: {\n array: [\"u8\", 32],\n },\n },\n {\n name: \"destinationChainId\",\n type: \"u8\",\n },\n {\n name: \"slot\",\n type: \"u64\",\n },\n ],\n },\n },\n ],\n types: [\n {\n name: \"RegisterChainBridgeArgs\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"chainId\",\n type: \"u8\",\n },\n {\n name: \"gasUsage\",\n type: \"u64\",\n },\n {\n name: \"domain\",\n type: \"u32\",\n },\n {\n name: \"mint\",\n type: \"publicKey\",\n },\n ],\n },\n },\n {\n name: \"UpdateChainBridgeArgs\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"chainId\",\n type: \"u8\",\n },\n {\n name: \"gasUsage\",\n type: \"u64\",\n },\n {\n name: \"domain\",\n type: \"u32\",\n },\n {\n name: \"mint\",\n type: \"publicKey\",\n },\n ],\n },\n },\n {\n name: \"BridgeArgs\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"recipient\",\n type: {\n array: [\"u8\", 32],\n },\n },\n {\n name: \"destinationChainId\",\n type: \"u8\",\n },\n {\n name: \"receiveToken\",\n type: {\n array: [\"u8\", 32],\n },\n },\n {\n name: \"amount\",\n type: \"u64\",\n },\n ],\n },\n },\n {\n name: \"InitializeArgs\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"gasOracleProgramId\",\n type: \"publicKey\",\n },\n {\n name: \"cctpTokenMessengerMinter\",\n type: \"publicKey\",\n },\n ],\n },\n },\n ],\n errors: [\n {\n code: 6000,\n name: \"ValueTooHigh\",\n msg: \"Value is too high\",\n },\n ],\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"gas_oracle.js","sourceRoot":"","sources":["../../../../../../src/services/models/sol/types/gas_oracle.ts"],"names":[],"mappings":";;;AA6Ja,QAAA,GAAG,GAAc;IAC5B,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,YAAY;IAClB,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,IAAI;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,IAAI;oBACX,QAAQ,EAAE,KAAK;iBAChB;gBACD;oBACE,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,KAAK;oBACZ,QAAQ,EAAE,KAAK;iBAChB;aACF;YACD,IAAI,EAAE,EAAE;SACT;QACD;YACE,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,IAAI;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,KAAK;oBACZ,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,KAAK;oBACZ,QAAQ,EAAE,KAAK;iBAChB;gBACD;oBACE,IAAI,EAAE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BACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,WAAW;qBAClB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,IAAI;qBACX;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,KAAK;qBACZ;iBACF;aACF;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"gas_oracle.js","sourceRoot":"","sources":["../../../../../../src/services/models/sol/types/gas_oracle.ts"],"names":[],"mappings":";;;AA6Ja,QAAA,GAAG,GAAc;IAC5B,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,YAAY;IAClB,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,IAAI;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,IAAI;oBACX,QAAQ,EAAE,KAAK;iBAChB;gBACD;oBACE,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,KAAK;oBACZ,QAAQ,EAAE,KAAK;iBAChB;aACF;YACD,IAAI,EAAE,EAAE;SACT;QACD;YACE,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,IAAI;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,KAAK;oBACZ,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,KAAK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AQ,EAAE;QACR;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,WAAW;qBAClB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,IAAI;qBACX;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,KAAK;qBACZ;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,KAAK;qBACZ;iBACF;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["export interface GasOracle {\n version: \"0.1.0\";\n name: \"gas_oracle\";\n instructions: [\n {\n name: \"initialize\";\n accounts: [\n {\n name: \"admin\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"config\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"systemProgram\";\n isMut: false;\n isSigner: false;\n },\n ];\n args: [];\n },\n {\n name: \"initializePrice\";\n accounts: [\n {\n name: \"payer\";\n isMut: true;\n isSigner: true;\n },\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"config\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"price\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"systemProgram\";\n isMut: false;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"chainId\";\n type: \"u8\";\n },\n ];\n },\n {\n name: \"setPrice\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"config\";\n isMut: false;\n isSigner: false;\n },\n {\n name: \"price\";\n isMut: true;\n isSigner: false;\n },\n ];\n args: [\n {\n name: \"chainId\";\n type: \"u8\";\n },\n {\n name: \"price\";\n type: {\n option: \"u64\";\n };\n },\n {\n name: \"gasPrice\";\n type: {\n option: \"u64\";\n };\n },\n ];\n },\n {\n name: \"setAdmin\";\n accounts: [\n {\n name: \"admin\";\n isMut: false;\n isSigner: true;\n },\n {\n name: \"config\";\n isMut: true;\n isSigner: false;\n },\n {\n name: \"newAdmin\";\n isMut: false;\n isSigner: false;\n },\n ];\n args: [];\n },\n ];\n accounts: [\n {\n name: \"config\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"admin\";\n type: \"publicKey\";\n },\n ];\n };\n },\n {\n name: \"price\";\n type: {\n kind: \"struct\";\n fields: [\n {\n name: \"chainId\";\n type: \"u8\";\n },\n {\n name: \"price\";\n type: \"u64\";\n },\n {\n name: \"gasPrice\";\n type: \"u64\";\n },\n ];\n };\n },\n ];\n}\n\nexport const IDL: GasOracle = {\n version: \"0.1.0\",\n name: \"gas_oracle\",\n instructions: [\n {\n name: \"initialize\",\n accounts: [\n {\n name: \"admin\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"config\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"systemProgram\",\n isMut: false,\n isSigner: false,\n },\n ],\n args: [],\n },\n {\n name: \"initializePrice\",\n accounts: [\n {\n name: \"payer\",\n isMut: true,\n isSigner: true,\n },\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"config\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"price\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"systemProgram\",\n isMut: false,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"chainId\",\n type: \"u8\",\n },\n ],\n },\n {\n name: \"setPrice\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"config\",\n isMut: false,\n isSigner: false,\n },\n {\n name: \"price\",\n isMut: true,\n isSigner: false,\n },\n ],\n args: [\n {\n name: \"chainId\",\n type: \"u8\",\n },\n {\n name: \"price\",\n type: {\n option: \"u64\",\n },\n },\n {\n name: \"gasPrice\",\n type: {\n option: \"u64\",\n },\n },\n ],\n },\n {\n name: \"setAdmin\",\n accounts: [\n {\n name: \"admin\",\n isMut: false,\n isSigner: true,\n },\n {\n name: \"config\",\n isMut: true,\n isSigner: false,\n },\n {\n name: \"newAdmin\",\n isMut: false,\n isSigner: false,\n },\n ],\n args: [],\n },\n ],\n accounts: [\n {\n name: \"config\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"admin\",\n type: \"publicKey\",\n },\n ],\n },\n },\n {\n name: \"price\",\n type: {\n kind: \"struct\",\n fields: [\n {\n name: \"chainId\",\n type: \"u8\",\n },\n {\n name: \"price\",\n type: \"u64\",\n },\n {\n name: \"gasPrice\",\n type: \"u64\",\n },\n ],\n },\n },\n ],\n};\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { contract } from "@stellar/stellar-sdk";
3
2
  import u128 = contract.u128;
4
3
  import u32 = contract.u32;
@@ -48,6 +48,7 @@ exports.Errors = {
48
48
  };
49
49
  // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
50
50
  class BridgeContract extends ContractClient {
51
+ options;
51
52
  constructor(options) {
52
53
  super(new ContractSpec([
53
54
  "AAAAAAAAAAAAAAAKaW5pdGlhbGl6ZQAAAAAABAAAAAAAAAAFYWRtaW4AAAAAAAATAAAAAAAAAAltZXNzZW5nZXIAAAAAAAATAAAAAAAAAApnYXNfb3JhY2xlAAAAAAATAAAAAAAAAAxuYXRpdmVfdG9rZW4AAAATAAAAAQAAA+kAAAPtAAAAAAAAAAM=",
@@ -95,38 +96,38 @@ class BridgeContract extends ContractClient {
95
96
  "AAAABAAAAAAAAAAAAAAABUVycm9yAAAAAAAAKAAAAAAAAAANVW5pbXBsZW1lbnRlZAAAAAAAAAAAAAAAAAAAC0luaXRpYWxpemVkAAAAAAEAAAAAAAAADVVuaW5pdGlhbGl6ZWQAAAAAAAACAAAAAAAAAAxVbmF1dGhvcml6ZWQAAAADAAAAAAAAAApJbnZhbGlkQXJnAAAAAAAEAAAAAAAAAA5JbnZ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1JlY2VpdmVQb29sAAAAAAAA2AAAAAAAAAAGTm9Qb29sAAAAAADZAAAAAAAAABNVbmtub3duQW5vdGhlclRva2VuAAAAANoAAAAAAAAAD1dyb25nQnl0ZUxlbmd0aAAAAAEsAAAAAAAAAApIYXNNZXNzYWdlAAAAAAEtAAAAAAAAABdJbnZhbGlkUHJpbWFyeVNpZ25hdHVyZQAAAAEuAAAAAAAAABlJbnZhbGlkU2Vjb25kYXJ5U2lnbmF0dXJlAAAAAAABLwAAAAAAAAARTm9HYXNEYXRhRm9yQ2hhaW4AAAAAAAGQ",
96
97
  ]), options);
97
98
  this.options = options;
98
- this.fromJSON = {
99
- initialize: (this.txFromJSON),
100
- swap_and_bridge: (this.txFromJSON),
101
- receive_tokens: (this.txFromJSON),
102
- swap: (this.txFromJSON),
103
- stop_swap: (this.txFromJSON),
104
- start_swap: (this.txFromJSON),
105
- set_gas_oracle: (this.txFromJSON),
106
- set_stop_authority: (this.txFromJSON),
107
- set_rebalancer: (this.txFromJSON),
108
- set_messenger: (this.txFromJSON),
109
- set_gas_usage: (this.txFromJSON),
110
- register_bridge: (this.txFromJSON),
111
- add_bridge_token: (this.txFromJSON),
112
- remove_bridge_token: (this.txFromJSON),
113
- add_pool: (this.txFromJSON),
114
- withdraw_gas_tokens: (this.txFromJSON),
115
- withdraw_bridging_fee_in_tokens: (this.txFromJSON),
116
- has_processed_message: (this.txFromJSON),
117
- has_received_message: (this.txFromJSON),
118
- get_pool_address: (this.txFromJSON),
119
- get_config: (this.txFromJSON),
120
- get_stop_authority: (this.txFromJSON),
121
- get_transaction_cost: (this.txFromJSON),
122
- get_gas_usage: (this.txFromJSON),
123
- get_admin: (this.txFromJSON),
124
- get_gas_oracle: (this.txFromJSON),
125
- get_another_bridge: (this.txFromJSON),
126
- set_admin: (this.txFromJSON),
127
- upgrade: (this.txFromJSON),
128
- };
129
99
  }
100
+ fromJSON = {
101
+ initialize: (this.txFromJSON),
102
+ swap_and_bridge: (this.txFromJSON),
103
+ receive_tokens: (this.txFromJSON),
104
+ swap: (this.txFromJSON),
105
+ stop_swap: (this.txFromJSON),
106
+ start_swap: (this.txFromJSON),
107
+ set_gas_oracle: (this.txFromJSON),
108
+ set_stop_authority: (this.txFromJSON),
109
+ set_rebalancer: (this.txFromJSON),
110
+ set_messenger: (this.txFromJSON),
111
+ set_gas_usage: (this.txFromJSON),
112
+ register_bridge: (this.txFromJSON),
113
+ add_bridge_token: (this.txFromJSON),
114
+ remove_bridge_token: (this.txFromJSON),
115
+ add_pool: (this.txFromJSON),
116
+ withdraw_gas_tokens: (this.txFromJSON),
117
+ withdraw_bridging_fee_in_tokens: (this.txFromJSON),
118
+ has_processed_message: (this.txFromJSON),
119
+ has_received_message: (this.txFromJSON),
120
+ get_pool_address: (this.txFromJSON),
121
+ get_config: (this.txFromJSON),
122
+ get_stop_authority: (this.txFromJSON),
123
+ get_transaction_cost: (this.txFromJSON),
124
+ get_gas_usage: (this.txFromJSON),
125
+ get_admin: (this.txFromJSON),
126
+ get_gas_oracle: (this.txFromJSON),
127
+ get_another_bridge: (this.txFromJSON),
128
+ set_admin: (this.txFromJSON),
129
+ upgrade: (this.txFromJSON),
130
+ };
130
131
  }
131
132
  exports.BridgeContract = BridgeContract;
132
133
  //# sourceMappingURL=bridge-contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge-contract.js","sourceRoot":"","sources":["../../../../../src/services/models/srb/bridge-contract.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;AAOhD,IAAO,YAAY,GAAG,sBAAQ,CAAC,IAAI,CAAC;AACpC,IAAO,cAAc,GAAG,sBAAQ,CAAC,MAAM,CAAC;AAoE3B,QAAA,MAAM,GAAG;IACpB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EA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AAE,CAAA,IAAI,CAAC,UAAwB,CAAA;KACvC,CAAC;CACH;AAnFD,wCAmFC","sourcesContent":["import { contract } from \"@stellar/stellar-sdk\";\nimport u128 = contract.u128;\nimport u32 = contract.u32;\nimport u256 = contract.u256;\nimport AssembledTransaction = contract.AssembledTransaction;\nimport Result = contract.Result;\nimport Option = contract.Option;\nimport ContractSpec = contract.Spec;\nimport ContractClient = contract.Client;\nimport ContractClientOptions = contract.ClientOptions;\n\nexport interface Swapped {\n receive_amount: u128;\n receive_token: Buffer;\n recipient: string;\n send_amount: u128;\n send_token: Buffer;\n sender: string;\n}\n\nexport interface TokensSent {\n amount: u128;\n destination_chain_id: u32;\n nonce: u256;\n receive_token: Buffer;\n recipient: Buffer;\n}\n\nexport interface TokensReceived {\n amount: u128;\n message: Buffer;\n nonce: u256;\n recipient: Buffer;\n}\n\nexport interface ReceiveFee {\n bridge_transaction_cost: u128;\n extra_gas: u128;\n message_transaction_cost: u128;\n}\n\nexport interface BridgingFeeFromTokens {\n fee_token_amount: u128;\n gas: u128;\n}\n\nexport interface AnotherBridge {\n address: Buffer;\n tokens: Map<Buffer, boolean>;\n}\n\nexport interface Bridge {\n /**\n * precomputed values of the scaling factor required for paying the bridging fee with stable tokens\n */\n bridging_fee_conversion_factor: Map<string, u128>;\n can_swap: boolean;\n /**\n * precomputed values to divide by to change the precision from the Gas Oracle precision to the token precision\n */\n from_gas_oracle_factor: Map<string, u128>;\n messenger: string;\n pools: Map<Buffer, string>;\n rebalancer: string;\n}\n\nexport type DataKey =\n | { tag: \"OtherBridge\"; values: readonly [u32] }\n | { tag: \"SentMessage\"; values: readonly [Buffer] }\n | { tag: \"ReceivedMessage\"; values: readonly [Buffer] };\n\nexport type Admin = readonly [string];\nexport type GasOracleAddress = readonly [string];\nexport type GasUsage = readonly [Map<u32, u128>];\nexport type NativeToken = readonly [string];\nexport type StopAuthority = readonly [string];\nexport const Errors = {\n 0: { message: \"\" },\n 1: { message: \"\" },\n 2: { message: \"\" },\n 3: { message: \"\" },\n 4: { message: \"\" },\n 5: { message: \"\" },\n 6: { message: \"\" },\n 7: { message: \"\" },\n 8: { message: \"\" },\n 9: { message: \"\" },\n 10: { message: \"\" },\n 11: { message: \"\" },\n 12: { message: \"\" },\n 103: { message: \"\" },\n 104: { message: \"\" },\n 105: { message: \"\" },\n 106: { message: \"\" },\n 107: { message: \"\" },\n 108: { message: \"\" },\n 109: { message: \"\" },\n 203: { message: \"\" },\n 204: { message: \"\" },\n 205: { message: \"\" },\n 206: { message: \"\" },\n 207: { message: \"\" },\n 208: { message: \"\" },\n 209: { message: \"\" },\n 210: { message: \"\" },\n 211: { message: \"\" },\n 212: { message: \"\" },\n 214: { message: \"\" },\n 215: { message: \"\" },\n 216: { message: \"\" },\n 217: { message: \"\" },\n 218: { message: \"\" },\n 300: { message: \"\" },\n 301: { message: \"\" },\n 302: { message: \"\" },\n 303: { message: \"\" },\n 400: { message: \"\" },\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nexport interface BridgeContract {\n /**\n * Construct and simulate a initialize transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n initialize: (\n {\n admin,\n messenger,\n gas_oracle,\n native_token,\n }: {\n admin: string;\n messenger: string;\n gas_oracle: string;\n native_token: string;\n },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a swap_and_bridge transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n swap_and_bridge: (\n {\n sender,\n token,\n amount,\n recipient,\n destination_chain_id,\n receive_token,\n nonce,\n gas_amount,\n fee_token_amount,\n }: {\n sender: string;\n token: string;\n amount: u128;\n recipient: Buffer;\n destination_chain_id: u32;\n receive_token: Buffer;\n nonce: u256;\n gas_amount: u128;\n fee_token_amount: u128;\n },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a receive_tokens transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n receive_tokens: (\n {\n sender,\n amount,\n recipient,\n source_chain_id,\n receive_token,\n nonce,\n receive_amount_min,\n extra_gas,\n }: {\n sender: string;\n amount: u128;\n recipient: string;\n source_chain_id: u32;\n receive_token: Buffer;\n nonce: u256;\n receive_amount_min: u128;\n extra_gas: Option<u128>;\n },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a swap transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n swap: (\n {\n sender,\n amount,\n token,\n receive_token,\n recipient,\n receive_amount_min,\n }: {\n sender: string;\n amount: u128;\n token: Buffer;\n receive_token: Buffer;\n recipient: string;\n receive_amount_min: u128;\n },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a stop_swap transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n stop_swap: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a start_swap transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n start_swap: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_gas_oracle transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_gas_oracle: (\n { new_address }: { new_address: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_stop_authority transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_stop_authority: (\n { stop_authority }: { stop_authority: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_rebalancer transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_rebalancer: (\n { rebalancer }: { rebalancer: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_messenger transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_messenger: (\n { messenger }: { messenger: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_gas_usage transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_gas_usage: (\n { chain_id, gas_usage }: { chain_id: u32; gas_usage: u128 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a register_bridge transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n register_bridge: (\n { chain_id, bridge_address }: { chain_id: u32; bridge_address: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a add_bridge_token transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n add_bridge_token: (\n { chain_id, token_address }: { chain_id: u32; token_address: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a remove_bridge_token transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n remove_bridge_token: (\n { chain_id, token_address }: { chain_id: u32; token_address: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a add_pool transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n add_pool: (\n { pool, token }: { pool: string; token: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a withdraw_gas_tokens transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n withdraw_gas_tokens: (\n { sender, amount }: { sender: string; amount: u128 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a withdraw_bridging_fee_in_tokens transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n withdraw_bridging_fee_in_tokens: (\n { sender, token_address }: { sender: string; token_address: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a has_processed_message transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n has_processed_message: (\n { message }: { message: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<boolean>>>;\n\n /**\n * Construct and simulate a has_received_message transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n has_received_message: (\n { message }: { message: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<boolean>>>;\n\n /**\n * Construct and simulate a get_pool_address transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_pool_address: (\n { token_address }: { token_address: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<string>>>;\n\n /**\n * Construct and simulate a get_config transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_config: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<Bridge>>>;\n\n /**\n * Construct and simulate a get_stop_authority transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_stop_authority: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<string>>>;\n\n /**\n * Construct and simulate a get_transaction_cost transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_transaction_cost: (\n { chain_id }: { chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a get_gas_usage transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_gas_usage: (\n { chain_id }: { chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a get_admin transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_admin: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<string>>>;\n\n /**\n * Construct and simulate a get_gas_oracle transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_gas_oracle: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<string>>>;\n\n /**\n * Construct and simulate a get_another_bridge transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_another_bridge: (\n { chain_id }: { chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<AnotherBridge>>>;\n\n /**\n * Construct and simulate a set_admin transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_admin: (\n { new_admin }: { new_admin: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a upgrade transaction. Returns an `AssembledTransaction` object which will have a `Result` field containing the Result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n upgrade: (\n { new_wasm_hash }: { new_wasm_hash: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nexport class BridgeContract extends ContractClient {\n constructor(public readonly options: ContractClientOptions) {\n super(\n new ContractSpec([\n \"AAAAAAAAAAAAAAAKaW5pdGlhbGl6ZQAAAA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AAAAA1Ob1JlY2VpdmVQb29sAAAAAAAA2AAAAAAAAAAGTm9Qb29sAAAAAADZAAAAAAAAABNVbmtub3duQW5vdGhlclRva2VuAAAAANoAAAAAAAAAD1dyb25nQnl0ZUxlbmd0aAAAAAEsAAAAAAAAAApIYXNNZXNzYWdlAAAAAAEtAAAAAAAAABdJbnZhbGlkUHJpbWFyeVNpZ25hdHVyZQAAAAEuAAAAAAAAABlJbnZhbGlkU2Vjb25kYXJ5U2lnbmF0dXJlAAAAAAABLwAAAAAAAAARTm9HYXNEYXRhRm9yQ2hhaW4AAAAAAAGQ\",\n ]),\n options,\n );\n }\n\n public readonly fromJSON = {\n initialize: this.txFromJSON<Result<void>>,\n swap_and_bridge: this.txFromJSON<Result<void>>,\n receive_tokens: this.txFromJSON<Result<void>>,\n swap: this.txFromJSON<Result<void>>,\n stop_swap: this.txFromJSON<Result<void>>,\n start_swap: this.txFromJSON<Result<void>>,\n set_gas_oracle: this.txFromJSON<Result<void>>,\n set_stop_authority: this.txFromJSON<Result<void>>,\n set_rebalancer: this.txFromJSON<Result<void>>,\n set_messenger: this.txFromJSON<Result<void>>,\n set_gas_usage: this.txFromJSON<Result<void>>,\n register_bridge: this.txFromJSON<Result<void>>,\n add_bridge_token: this.txFromJSON<Result<void>>,\n remove_bridge_token: this.txFromJSON<Result<void>>,\n add_pool: this.txFromJSON<Result<void>>,\n withdraw_gas_tokens: this.txFromJSON<Result<void>>,\n withdraw_bridging_fee_in_tokens: this.txFromJSON<Result<void>>,\n has_processed_message: this.txFromJSON<Result<boolean>>,\n has_received_message: this.txFromJSON<Result<boolean>>,\n get_pool_address: this.txFromJSON<Result<string>>,\n get_config: this.txFromJSON<Result<Bridge>>,\n get_stop_authority: this.txFromJSON<Result<string>>,\n get_transaction_cost: this.txFromJSON<Result<u128>>,\n get_gas_usage: this.txFromJSON<Result<u128>>,\n get_admin: this.txFromJSON<Result<string>>,\n get_gas_oracle: this.txFromJSON<Result<string>>,\n get_another_bridge: this.txFromJSON<Result<AnotherBridge>>,\n set_admin: this.txFromJSON<Result<void>>,\n upgrade: this.txFromJSON<Result<void>>,\n };\n}\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { contract } from "@stellar/stellar-sdk";
3
2
  import u128 = contract.u128;
4
3
  import u32 = contract.u32;
@@ -48,6 +48,7 @@ exports.Errors = {
48
48
  };
49
49
  // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
50
50
  class GasOracleContract extends ContractClient {
51
+ options;
51
52
  constructor(options) {
52
53
  super(new ContractSpec([
53
54
  "AAAAAAAAAAAAAAAKaW5pdGlhbGl6ZQAAAAAAAQAAAAAAAAAFYWRtaW4AAAAAAAATAAAAAQAAA+kAAAPtAAAAAAAAAAM=",
@@ -69,19 +70,19 @@ class GasOracleContract extends ContractClient {
69
70
  "AAAABAAAAAAAAAAAAAAABUVycm9yAAAAAAAAKAAAAAAAAAANVW5pbXBsZW1lbnRlZAAAAAAAAAAAAAAAAAAAC0luaXRpYWxpemVkAAAAAAEAAAAAAAAADVVuaW5pdGlhbGl6ZWQAAAAAAAACAAAAAAAAAAxVbmF1dGhvcml6ZWQAAAADAAAAAAAAAApJbnZhbGlkQXJnAAAAAAAEAAAAAAAAAA5JbnZhbGlkQ2hhaW5JZAAAAAAABQAAAAAAAAATSW52YWxpZE90aGVyQ2hhaW5JZAAAAAAGAAAAAAAAAA5HYXNVc2FnZU5vdFNldAAAAAAABwAAAAAAAAANQnJva2VuQWRkcmVzcwAAAAAAAAgAAAAAAAAACE5vdEZvdW5kAAAACQAAAAAAAAAYVG9rZW5JbnN1ZmZpY2llbnRCYWxhbmNlAAAACgAAAAAAAAAKQ2FzdEZhaWxlZAAAAAAACwAAAAAAAAAMVTI1Nk92ZXJmbG93AAAADAAAAAAAAAAKWmVyb0Ftb3VudAAAAAAAZwAAAAAAAAAMUG9vbE92ZXJmbG93AAAAaAAAAAAAAAALWmVyb0NoYW5nZXMAAAAAaQAAAAAAAAARUmVzZXJ2ZXNFeGhhdXN0ZWQAAAAAAABqAAAAAAAAABpJbnN1ZmZpY2llbnRSZWNlaXZlZEFtb3VudAAAAAAAawAAAAAAAAAUQmFsYW5jZVJhdGlvRXhjZWVkZWQAAABsAAAAAAAAAAlGb3JiaWRkZW4AAAAAAABtAAAAAAAAABlVbmF1dGhvcml6ZWRTdG9wQXV0aG9yaXR5AAAAAAAAywAAAAAAAAAOU3dhcFByb2hpYml0ZWQAAAAAAMwAAAAAAAAAEkFtb3VudFRvb0xvd0ZvckZlZQAAAAAAzQAAAAAAAAAWQnJpZGdlVG9UaGVaZXJvQWRkcmVzcwAAAAAAzgAAAAAAAAAORW1wdHlSZWNpcGllbnQAAAAAAM8AAAAAAAAAE1NvdXJjZU5vdFJlZ2lzdGVyZWQAAAAA0AAAAAAAAAAVV3JvbmdEZXN0aW5hdGlvbkNoYWluAAAAAAAA0QAAAAAAAAATVW5rbm93bkFub3RoZXJDaGFpbgAAAADSAAAAAAAAABFUb2tlbnNBbHJlYWR5U2VudAAAAAAAANMAAAAAAAAAEE1lc3NhZ2VQcm9jZXNzZWQAAADUAAAAAAAAAAxOb3RFbm91Z2hGZWUAAADWAAAAAAAAAAlOb01lc3NhZ2UAAAAAAADXAAAAAAAAAA1Ob1JlY2VpdmVQb29sAAAAAAAA2AAAAAAAAAAGTm9Qb29sAAAAAADZAAAAAAAAABNVbmtub3duQW5vdGhlclRva2VuAAAAANoAAAAAAAAAD1dyb25nQnl0ZUxlbmd0aAAAAAEsAAAAAAAAAApIYXNNZXNzYWdlAAAAAAEtAAAAAAAAABdJbnZhbGlkUHJpbWFyeVNpZ25hdHVyZQAAAAEuAAAAAAAAABlJbnZhbGlkU2Vjb25kYXJ5U2lnbmF0dXJlAAAAAAABLwAAAAAAAAARTm9HYXNEYXRhRm9yQ2hhaW4AAAAAAAGQ",
70
71
  ]), options);
71
72
  this.options = options;
72
- this.fromJSON = {
73
- initialize: (this.txFromJSON),
74
- set_price: (this.txFromJSON),
75
- set_admin: (this.txFromJSON),
76
- get_gas_price: (this.txFromJSON),
77
- get_price: (this.txFromJSON),
78
- get_gas_cost_in_native_token: (this.txFromJSON),
79
- get_transaction_gas_cost_in_usd: (this.txFromJSON),
80
- crossrate: (this.txFromJSON),
81
- get_admin: (this.txFromJSON),
82
- upgrade: (this.txFromJSON),
83
- };
84
73
  }
74
+ fromJSON = {
75
+ initialize: (this.txFromJSON),
76
+ set_price: (this.txFromJSON),
77
+ set_admin: (this.txFromJSON),
78
+ get_gas_price: (this.txFromJSON),
79
+ get_price: (this.txFromJSON),
80
+ get_gas_cost_in_native_token: (this.txFromJSON),
81
+ get_transaction_gas_cost_in_usd: (this.txFromJSON),
82
+ crossrate: (this.txFromJSON),
83
+ get_admin: (this.txFromJSON),
84
+ upgrade: (this.txFromJSON),
85
+ };
85
86
  }
86
87
  exports.GasOracleContract = GasOracleContract;
87
88
  //# sourceMappingURL=gas-oracle-contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gas-oracle-contract.js","sourceRoot":"","sources":["../../../../../src/services/models/srb/gas-oracle-contract.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;AAMhD,IAAO,YAAY,GAAG,sBAAQ,CAAC,IAAI,CAAC;AACpC,IAAO,cAAc,GAAG,sBAAQ,CAAC,MAAM,CAAC;AAa3B,QAAA,MAAM,GAAG;IACpB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,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A,IAAI,CAAC,UAAwB,CAAA;SACvC,CAAC;IAbF,CAAC;CAcF;AAtCD,8CAsCC"}
1
+ {"version":3,"file":"gas-oracle-contract.js","sourceRoot":"","sources":["../../../../../src/services/models/srb/gas-oracle-contract.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;AAMhD,IAAO,YAAY,GAAG,sBAAQ,CAAC,IAAI,CAAC;AACpC,IAAO,cAAc,GAAG,sBAAQ,CAAC,MAAM,CAAC;AAa3B,QAAA,MAAM,GAAG;IACpB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnB,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnB,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACpB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACpB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACpB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACpB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACpB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACp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8J;YAC9J,kGAAkG;YAClG,8DAA8D;YAC9D,0GAA0G;YAC1G,0GAA0G;YAC1G,8DAA8D;YAC9D,0EAA0E;YAC1E,0EAA0E;YAC1E,kEAAkE;YAClE,0EAA0E;YAC1E,kjDAAkjD;SACnjD,CAAC,EACF,OAAO,CACR,CAAC;QAtBwB,YAAO,GAAP,OAAO,CAAuB;IAuB1D,CAAC;IAEe,QAAQ,GAAG;QACzB,UAAU,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QACzC,SAAS,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QACxC,SAAS,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QACxC,aAAa,EAAE,CAAA,IAAI,CAAC,UAA6B,CAAA;QACjD,SAAS,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QACxC,4BAA4B,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QAC3D,+BAA+B,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QAC9D,SAAS,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QACxC,SAAS,EAAE,CAAA,IAAI,CAAC,UAA0B,CAAA;QAC1C,OAAO,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;KACvC,CAAC;CACH;AAtCD,8CAsCC","sourcesContent":["import { contract } from \"@stellar/stellar-sdk\";\nimport u128 = contract.u128;\nimport u32 = contract.u32;\nimport AssembledTransaction = contract.AssembledTransaction;\nimport Result = contract.Result;\nimport Option = contract.Option;\nimport ContractSpec = contract.Spec;\nimport ContractClient = contract.Client;\nimport ContractClientOptions = contract.ClientOptions;\n\nexport interface ChainData {\n gas_price: u128;\n price: u128;\n}\n\nexport type Admin = readonly [string];\nexport type GasOracleAddress = readonly [string];\nexport type GasUsage = readonly [Map<u32, u128>];\nexport type NativeToken = readonly [string];\nexport type StopAuthority = readonly [string];\nexport const Errors = {\n 0: { message: \"\" },\n 1: { message: \"\" },\n 2: { message: \"\" },\n 3: { message: \"\" },\n 4: { message: \"\" },\n 5: { message: \"\" },\n 6: { message: \"\" },\n 7: { message: \"\" },\n 8: { message: \"\" },\n 9: { message: \"\" },\n 10: { message: \"\" },\n 11: { message: \"\" },\n 12: { message: \"\" },\n 103: { message: \"\" },\n 104: { message: \"\" },\n 105: { message: \"\" },\n 106: { message: \"\" },\n 107: { message: \"\" },\n 108: { message: \"\" },\n 109: { message: \"\" },\n 203: { message: \"\" },\n 204: { message: \"\" },\n 205: { message: \"\" },\n 206: { message: \"\" },\n 207: { message: \"\" },\n 208: { message: \"\" },\n 209: { message: \"\" },\n 210: { message: \"\" },\n 211: { message: \"\" },\n 212: { message: \"\" },\n 214: { message: \"\" },\n 215: { message: \"\" },\n 216: { message: \"\" },\n 217: { message: \"\" },\n 218: { message: \"\" },\n 300: { message: \"\" },\n 301: { message: \"\" },\n 302: { message: \"\" },\n 303: { message: \"\" },\n 400: { message: \"\" },\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nexport interface GasOracleContract {\n /**\n * Construct and simulate a initialize transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n initialize: (\n { admin }: { admin: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_price transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_price: (\n {\n chain_id,\n price,\n gas_price,\n }: {\n chain_id: u32;\n price: Option<u128>;\n gas_price: Option<u128>;\n },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_admin transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_admin: (\n { new_admin }: { new_admin: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a get_gas_price transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_gas_price: (\n { chain_id }: { chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<ChainData>>>;\n\n /**\n * Construct and simulate a get_price transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_price: (\n { chain_id }: { chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a get_gas_cost_in_native_token transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_gas_cost_in_native_token: (\n { other_chain_id, gas_amount }: { other_chain_id: u32; gas_amount: u128 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a get_transaction_gas_cost_in_usd transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_transaction_gas_cost_in_usd: (\n { other_chain_id, gas_amount }: { other_chain_id: u32; gas_amount: u128 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a crossrate transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n crossrate: (\n { other_chain_id }: { other_chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a get_admin transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_admin: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<string>>>;\n\n /**\n * Construct and simulate a upgrade transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n upgrade: (\n { new_wasm_hash }: { new_wasm_hash: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n}\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nexport class GasOracleContract extends ContractClient {\n constructor(public readonly options: ContractClientOptions) {\n super(\n new ContractSpec([\n \"AAAAAAAAAAAAAAAKaW5pdGlhbGl6ZQAAAAAAAQAAAAAAAAAFYWRtaW4AAAAAAAATAAAAAQAAA+kAAAPtAAAAAAAAAAM=\",\n \"AAAAAAAAAAAAAAAJc2V0X3ByaWNlAAAAAAAAAwAAAAAAAAAIY2hhaW5faWQAAAAEAAAAAAAAAAVwcmljZQAAAAAAA+gAAAAKAAAAAAAAAAlnYXNfcHJpY2UAAAAAAAPoAAAACgAAAAEAAAPpAAAD7QAAAAAA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XhjZWVkZWQAAABsAAAAAAAAAAlGb3JiaWRkZW4AAAAAAABtAAAAAAAAABlVbmF1dGhvcml6ZWRTdG9wQXV0aG9yaXR5AAAAAAAAywAAAAAAAAAOU3dhcFByb2hpYml0ZWQAAAAAAMwAAAAAAAAAEkFtb3VudFRvb0xvd0ZvckZlZQAAAAAAzQAAAAAAAAAWQnJpZGdlVG9UaGVaZXJvQWRkcmVzcwAAAAAAzgAAAAAAAAAORW1wdHlSZWNpcGllbnQAAAAAAM8AAAAAAAAAE1NvdXJjZU5vdFJlZ2lzdGVyZWQAAAAA0AAAAAAAAAAVV3JvbmdEZXN0aW5hdGlvbkNoYWluAAAAAAAA0QAAAAAAAAATVW5rbm93bkFub3RoZXJDaGFpbgAAAADSAAAAAAAAABFUb2tlbnNBbHJlYWR5U2VudAAAAAAAANMAAAAAAAAAEE1lc3NhZ2VQcm9jZXNzZWQAAADUAAAAAAAAAAxOb3RFbm91Z2hGZWUAAADWAAAAAAAAAAlOb01lc3NhZ2UAAAAAAADXAAAAAAAAAA1Ob1JlY2VpdmVQb29sAAAAAAAA2AAAAAAAAAAGTm9Qb29sAAAAAADZAAAAAAAAABNVbmtub3duQW5vdGhlclRva2VuAAAAANoAAAAAAAAAD1dyb25nQnl0ZUxlbmd0aAAAAAEsAAAAAAAAAApIYXNNZXNzYWdlAAAAAAEtAAAAAAAAABdJbnZhbGlkUHJpbWFyeVNpZ25hdHVyZQAAAAEuAAAAAAAAABlJbnZhbGlkU2Vjb25kYXJ5U2lnbmF0dXJlAAAAAAABLwAAAAAAAAARTm9HYXNEYXRhRm9yQ2hhaW4AAAAAAAGQ\",\n ]),\n options,\n );\n }\n\n public readonly fromJSON = {\n initialize: this.txFromJSON<Result<void>>,\n set_price: this.txFromJSON<Result<void>>,\n set_admin: this.txFromJSON<Result<void>>,\n get_gas_price: this.txFromJSON<Result<ChainData>>,\n get_price: this.txFromJSON<Result<u128>>,\n get_gas_cost_in_native_token: this.txFromJSON<Result<u128>>,\n get_transaction_gas_cost_in_usd: this.txFromJSON<Result<u128>>,\n crossrate: this.txFromJSON<Result<u128>>,\n get_admin: this.txFromJSON<Result<string>>,\n upgrade: this.txFromJSON<Result<void>>,\n };\n}\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { contract } from "@stellar/stellar-sdk";
3
2
  import u128 = contract.u128;
4
3
  import u32 = contract.u32;
@@ -48,6 +48,7 @@ exports.Errors = {
48
48
  };
49
49
  // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
50
50
  class MessengerContract extends ContractClient {
51
+ options;
51
52
  constructor(options) {
52
53
  super(new ContractSpec([
53
54
  "AAAAAAAAAAAAAAAKaW5pdGlhbGl6ZQAAAAAABwAAAAAAAAAFYWRtaW4AAAAAAAATAAAAAAAAAAhjaGFpbl9pZAAAAAQAAAAAAAAAFG5hdGl2ZV90b2tlbl9hZGRyZXNzAAAAEwAAAAAAAAAPb3RoZXJfY2hhaW5faWRzAAAAA+4AAAAgAAAAAAAAABJnYXNfb3JhY2xlX2FkZHJlc3MAAAAAABMAAAAAAAAAFXByaW1hcnlfdmFsaWRhdG9yX2tleQAAAAAAA+4AAABBAAAAAAAAABhzZWNvbmRhcnlfdmFsaWRhdG9yX2tleXMAAAPsAAAD7gAAAEEAAAABAAAAAQAAA+kAAAPtAAAAAAAAAAM=",
@@ -83,29 +84,29 @@ class MessengerContract extends ContractClient {
83
84
  "AAAABAAAAAAAAAAAAAAABUVycm9yAAAAAAAAKAAAAAAAAAANVW5pbXBsZW1lbnRlZAAAAAAAAAAAAAAAAAAAC0luaXRpYWxpemVkAAAAAAEAAAAAAAAADVVuaW5pdGlhbGl6ZWQAAAAAAAACAAAAAAAAAAxVbmF1dGhvcml6ZWQAAAADAAAAAAAAAApJbnZhbGlkQXJnAAAAAAAEAAAAAAAAAA5JbnZhbGlkQ2hhaW5JZAAAAAAABQAAAAAAAAATSW52YWxpZE90aGVyQ2hhaW5JZAAAAAAGAAAAAAAAAA5HYXN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VuAAAAANoAAAAAAAAAD1dyb25nQnl0ZUxlbmd0aAAAAAEsAAAAAAAAAApIYXNNZXNzYWdlAAAAAAEtAAAAAAAAABdJbnZhbGlkUHJpbWFyeVNpZ25hdHVyZQAAAAEuAAAAAAAAABlJbnZhbGlkU2Vjb25kYXJ5U2lnbmF0dXJlAAAAAAABLwAAAAAAAAARTm9HYXNEYXRhRm9yQ2hhaW4AAAAAAAGQ",
84
85
  ]), options);
85
86
  this.options = options;
86
- this.fromJSON = {
87
- initialize: (this.txFromJSON),
88
- send_message: (this.txFromJSON),
89
- receive_message: (this.txFromJSON),
90
- set_gas_usage: (this.txFromJSON),
91
- add_secondary_validator: (this.txFromJSON),
92
- remove_secondary_validator: (this.txFromJSON),
93
- set_primary_validator: (this.txFromJSON),
94
- set_admin: (this.txFromJSON),
95
- set_gas_oracle: (this.txFromJSON),
96
- set_other_chain_ids: (this.txFromJSON),
97
- withdraw_gas_tokens: (this.txFromJSON),
98
- get_config: (this.txFromJSON),
99
- has_sent_message: (this.txFromJSON),
100
- has_received_message: (this.txFromJSON),
101
- get_sent_message_sequence: (this.txFromJSON),
102
- get_gas_usage: (this.txFromJSON),
103
- get_transaction_cost: (this.txFromJSON),
104
- get_admin: (this.txFromJSON),
105
- get_gas_oracle: (this.txFromJSON),
106
- upgrade: (this.txFromJSON),
107
- };
108
87
  }
88
+ fromJSON = {
89
+ initialize: (this.txFromJSON),
90
+ send_message: (this.txFromJSON),
91
+ receive_message: (this.txFromJSON),
92
+ set_gas_usage: (this.txFromJSON),
93
+ add_secondary_validator: (this.txFromJSON),
94
+ remove_secondary_validator: (this.txFromJSON),
95
+ set_primary_validator: (this.txFromJSON),
96
+ set_admin: (this.txFromJSON),
97
+ set_gas_oracle: (this.txFromJSON),
98
+ set_other_chain_ids: (this.txFromJSON),
99
+ withdraw_gas_tokens: (this.txFromJSON),
100
+ get_config: (this.txFromJSON),
101
+ has_sent_message: (this.txFromJSON),
102
+ has_received_message: (this.txFromJSON),
103
+ get_sent_message_sequence: (this.txFromJSON),
104
+ get_gas_usage: (this.txFromJSON),
105
+ get_transaction_cost: (this.txFromJSON),
106
+ get_admin: (this.txFromJSON),
107
+ get_gas_oracle: (this.txFromJSON),
108
+ upgrade: (this.txFromJSON),
109
+ };
109
110
  }
110
111
  exports.MessengerContract = MessengerContract;
111
112
  //# sourceMappingURL=messenger-contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"messenger-contract.js","sourceRoot":"","sources":["../../../../../src/services/models/srb/messenger-contract.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;AAKhD,IAAO,YAAY,GAAG,sBAAQ,CAAC,IAAI,CAAC;AACpC,IAAO,cAAc,GAAG,sBAAQ,CAAC,MAAM,CAAC;AAgC3B,QAAA,MAAM,GAAG;IACpB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnB,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnB,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACpB,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACpB,GAAG,EAAE,EAAE,OAAO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3C,gBAAgB,EAAE,CAAA,IAAI,CAAC,UAA2B,CAAA;YAClD,oBAAoB,EAAE,CAAA,IAAI,CAAC,UAA2B,CAAA;YACtD,yBAAyB,EAAE,CAAA,IAAI,CAAC,UAAuB,CAAA;YACvD,aAAa,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;YAC5C,oBAAoB,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;YACnD,SAAS,EAAE,CAAA,IAAI,CAAC,UAA0B,CAAA;YAC1C,cAAc,EAAE,CAAA,IAAI,CAAC,UAA0B,CAAA;YAC/C,OAAO,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;SACvC,CAAC;IAtBF,CAAC;CAuBF;AA7DD,8CA6DC"}
1
+ {"version":3,"file":"messenger-contract.js","sourceRoot":"","sources":["../../../../../src/services/models/srb/messenger-contract.ts"],"names":[],"mappings":";;;AAAA,sDAAgD;AAKhD,IAAO,YAAY,GAAG,sBAAQ,CAAC,IAAI,CAAC;AACpC,IAAO,cAAc,GAAG,sBAAQ,CAAC,MAAM,CAAC;AAgC3B,QAAA,MAAM,GAAG;IACpB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAClB,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACnB,EAAE,EA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AAC,UAAwB,CAAA;QACxC,cAAc,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QAC7C,mBAAmB,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QAClD,mBAAmB,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QAClD,UAAU,EAAE,CAAA,IAAI,CAAC,UAA0B,CAAA;QAC3C,gBAAgB,EAAE,CAAA,IAAI,CAAC,UAA2B,CAAA;QAClD,oBAAoB,EAAE,CAAA,IAAI,CAAC,UAA2B,CAAA;QACtD,yBAAyB,EAAE,CAAA,IAAI,CAAC,UAAuB,CAAA;QACvD,aAAa,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QAC5C,oBAAoB,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;QACnD,SAAS,EAAE,CAAA,IAAI,CAAC,UAA0B,CAAA;QAC1C,cAAc,EAAE,CAAA,IAAI,CAAC,UAA0B,CAAA;QAC/C,OAAO,EAAE,CAAA,IAAI,CAAC,UAAwB,CAAA;KACvC,CAAC;CACH;AA7DD,8CA6DC","sourcesContent":["import { contract } from \"@stellar/stellar-sdk\";\nimport u128 = contract.u128;\nimport u32 = contract.u32;\nimport AssembledTransaction = contract.AssembledTransaction;\nimport Result = contract.Result;\nimport ContractSpec = contract.Spec;\nimport ContractClient = contract.Client;\nimport ContractClientOptions = contract.ClientOptions;\n\nexport interface MessageSent {\n message: Buffer;\n}\n\nexport interface MessageReceived {\n message: Buffer;\n}\n\nexport interface SecondaryValidatorsSet {\n new_validators: string[];\n old_validators: string[];\n}\n\nexport interface Config {\n chain_id: u32;\n other_chain_ids: Buffer;\n primary_validator_key: Buffer;\n secondary_validator_keys: Map<Buffer, boolean>;\n}\n\nexport type DataKey =\n | { tag: \"SentMessage\"; values: readonly [Buffer] }\n | { tag: \"ReceivedMessage\"; values: readonly [Buffer] };\n\nexport type Admin = readonly [string];\nexport type GasOracleAddress = readonly [string];\nexport type GasUsage = readonly [Map<u32, u128>];\nexport type NativeToken = readonly [string];\nexport type StopAuthority = readonly [string];\nexport const Errors = {\n 0: { message: \"\" },\n 1: { message: \"\" },\n 2: { message: \"\" },\n 3: { message: \"\" },\n 4: { message: \"\" },\n 5: { message: \"\" },\n 6: { message: \"\" },\n 7: { message: \"\" },\n 8: { message: \"\" },\n 9: { message: \"\" },\n 10: { message: \"\" },\n 11: { message: \"\" },\n 12: { message: \"\" },\n 103: { message: \"\" },\n 104: { message: \"\" },\n 105: { message: \"\" },\n 106: { message: \"\" },\n 107: { message: \"\" },\n 108: { message: \"\" },\n 109: { message: \"\" },\n 203: { message: \"\" },\n 204: { message: \"\" },\n 205: { message: \"\" },\n 206: { message: \"\" },\n 207: { message: \"\" },\n 208: { message: \"\" },\n 209: { message: \"\" },\n 210: { message: \"\" },\n 211: { message: \"\" },\n 212: { message: \"\" },\n 214: { message: \"\" },\n 215: { message: \"\" },\n 216: { message: \"\" },\n 217: { message: \"\" },\n 218: { message: \"\" },\n 300: { message: \"\" },\n 301: { message: \"\" },\n 302: { message: \"\" },\n 303: { message: \"\" },\n 400: { message: \"\" },\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nexport interface MessengerContract {\n /**\n * Construct and simulate a initialize transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n initialize: (\n {\n admin,\n chain_id,\n native_token_address,\n other_chain_ids,\n gas_oracle_address,\n primary_validator_key,\n secondary_validator_keys,\n }: {\n admin: string;\n chain_id: u32;\n native_token_address: string;\n other_chain_ids: Buffer;\n gas_oracle_address: string;\n primary_validator_key: Buffer;\n secondary_validator_keys: Map<Buffer, boolean>;\n },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a send_message transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n send_message: (\n { message, sender }: { message: Buffer; sender: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a receive_message transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n receive_message: (\n {\n message,\n primary_signature,\n primary_recovery_id,\n secondary_signature,\n secondary_recovery_id,\n }: {\n message: Buffer;\n primary_signature: Buffer;\n primary_recovery_id: u32;\n secondary_signature: Buffer;\n secondary_recovery_id: u32;\n },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_gas_usage transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_gas_usage: (\n { chain_id, gas_usage }: { chain_id: u32; gas_usage: u128 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a add_secondary_validator transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n add_secondary_validator: (\n { validator_address }: { validator_address: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a remove_secondary_validator transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n remove_secondary_validator: (\n { validator_address }: { validator_address: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_primary_validator transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_primary_validator: (\n { validator_address }: { validator_address: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_admin transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_admin: (\n { new_admin }: { new_admin: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_gas_oracle transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_gas_oracle: (\n { new_address }: { new_address: string },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a set_other_chain_ids transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n set_other_chain_ids: (\n { other_chain_ids }: { other_chain_ids: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a withdraw_gas_tokens transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n withdraw_gas_tokens: (\n { sender, amount }: { sender: string; amount: u128 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n\n /**\n * Construct and simulate a get_config transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_config: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<Config>>>;\n\n /**\n * Construct and simulate a has_sent_message transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n has_sent_message: (\n { message }: { message: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<boolean>>>;\n\n /**\n * Construct and simulate a has_received_message transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n has_received_message: (\n { message }: { message: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<boolean>>>;\n\n /**\n * Construct and simulate a get_sent_message_sequence transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_sent_message_sequence: (\n { message }: { message: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u32>>>;\n\n /**\n * Construct and simulate a get_gas_usage transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_gas_usage: (\n { chain_id }: { chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a get_transaction_cost transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_transaction_cost: (\n { chain_id }: { chain_id: u32 },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<u128>>>;\n\n /**\n * Construct and simulate a get_admin transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_admin: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<string>>>;\n\n /**\n * Construct and simulate a get_gas_oracle transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n get_gas_oracle: (options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n }) => Promise<AssembledTransaction<Result<string>>>;\n\n /**\n * Construct and simulate a upgrade transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.\n */\n upgrade: (\n { new_wasm_hash }: { new_wasm_hash: Buffer },\n options?: {\n /**\n * The fee to pay for the transaction. Default: BASE_FEE\n */\n fee?: number;\n\n /**\n * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT\n */\n timeoutInSeconds?: number;\n\n /**\n * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true\n */\n simulate?: boolean;\n },\n ) => Promise<AssembledTransaction<Result<void>>>;\n}\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nexport class MessengerContract extends ContractClient {\n constructor(public readonly options: ContractClientOptions) {\n super(\n new ContractSpec([\n \"AAAAAAAAAAAAAAAKaW5pdGlhbGl6ZQAAAAAABwAAAAAAAAAFYWRtaW4AAAAAAAATAAAAAAAAAAhjaGFpbl9pZAAAAAQAAAAAAAAAFG5hdGl2ZV90b2tlbl9hZGRyZXNzAAAAEwAAAAAAAAAPb3RoZXJfY2hhaW5faWRzAAAAA+4AAAAgAAAAAAAAABJnYXNfb3JhY2xlX2FkZHJlc3MAAAAAABMAAAAAAAAAFXByaW1hcnlfdmFsaWRhdG9yX2tleQAAAAAAA+4AAABBAAAAAAAAABhzZWNvbmRhcnlfdmFsaWRhdG9yX2tleXMAAAPsAAAD7gAAAEEAAAABAAAAAQAAA+kAAAPtAAAAAAAAAAM=\",\n \"AAAAAAAAAAAAAAAMc2VuZF9tZXNzYWdlAAAAAgAAAAAAAAAHbWVzc2FnZQAAAAPuAAAAIAAAAAAAAAAGc2VuZGVyAAAAAAATAAAAAQAAA+kAAAPtAAAAAAAAAAM=\",\n \"AAAAAAAAAAAAAAAPcmVjZWl2ZV9tZXNzYWdlAAAAAAUAAAAAAAAAB21lc3NhZ2UAAAAD7gAAACAAAAAAAAAAEXByaW1hcnlfc2lnbmF0dXJlAAAAAAAD7gAAAEAAAAAAAAAAE3ByaW1hcnlfcmVjb3ZlcnlfaWQAAAAABAAAAAAAAAATc2Vjb25kYXJ5X3NpZ25hdHVyZQAAAAPuAAAAQAAAAAAAAAAVc2Vjb25kYXJ5X3JlY292ZXJ5X2lkAAAAAAAABAAAAAEAAAPpAAAD7QAAAAAAAAAD\",\n \"AAAAAAAAAAAAAAANc2V0X2dhc191c2FnZQAAAAAAAAIAAAAAAAAACGNoYWluX2lkAAAABAAAAAAAAAAJZ2FzX3VzYWdlAAAAAAAACgAAAAEAAAPpAAAD7QAAAAAAAAAD\",\n \"AAAAAAAAAAAAAAAXYWRkX3NlY29uZGFyeV92Y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kUHJpbWFyeVNpZ25hdHVyZQAAAAEuAAAAAAAAABlJbnZhbGlkU2Vjb25kYXJ5U2lnbmF0dXJlAAAAAAABLwAAAAAAAAARTm9HYXNEYXRhRm9yQ2hhaW4AAAAAAAGQ\",\n ]),\n options,\n );\n }\n public readonly fromJSON = {\n initialize: this.txFromJSON<Result<void>>,\n send_message: this.txFromJSON<Result<void>>,\n receive_message: this.txFromJSON<Result<void>>,\n set_gas_usage: this.txFromJSON<Result<void>>,\n add_secondary_validator: this.txFromJSON<Result<void>>,\n remove_secondary_validator: this.txFromJSON<Result<void>>,\n set_primary_validator: this.txFromJSON<Result<void>>,\n set_admin: this.txFromJSON<Result<void>>,\n set_gas_oracle: this.txFromJSON<Result<void>>,\n set_other_chain_ids: this.txFromJSON<Result<void>>,\n withdraw_gas_tokens: this.txFromJSON<Result<void>>,\n get_config: this.txFromJSON<Result<Config>>,\n has_sent_message: this.txFromJSON<Result<boolean>>,\n has_received_message: this.txFromJSON<Result<boolean>>,\n get_sent_message_sequence: this.txFromJSON<Result<u32>>,\n get_gas_usage: this.txFromJSON<Result<u128>>,\n get_transaction_cost: this.txFromJSON<Result<u128>>,\n get_admin: this.txFromJSON<Result<string>>,\n get_gas_oracle: this.txFromJSON<Result<string>>,\n upgrade: this.txFromJSON<Result<void>>,\n };\n}\n"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { contract } from "@stellar/stellar-sdk";
3
2
  import u128 = contract.u128;
4
3
  import u32 = contract.u32;