@aeternity/aepp-sdk 10.0.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +15 -14
  3. package/dist/aepp-sdk.browser-script.js +1 -1
  4. package/dist/aepp-sdk.browser-script.js.LICENSE.txt +13 -40
  5. package/dist/aepp-sdk.browser-script.js.map +1 -1
  6. package/dist/aepp-sdk.browser.js +1 -1
  7. package/dist/aepp-sdk.browser.js.map +1 -1
  8. package/dist/aepp-sdk.js +1 -1
  9. package/dist/aepp-sdk.js.map +1 -1
  10. package/es/AeSdk.d.ts +37 -0
  11. package/es/AeSdk.mjs +81 -0
  12. package/es/AeSdk.mjs.map +1 -0
  13. package/es/AeSdkAepp.d.ts +69 -0
  14. package/es/AeSdkAepp.mjs +175 -0
  15. package/es/AeSdkAepp.mjs.map +1 -0
  16. package/es/AeSdkBase.d.ts +212 -0
  17. package/es/AeSdkBase.mjs +310 -0
  18. package/es/AeSdkBase.mjs.map +1 -0
  19. package/es/AeSdkWallet.d.ts +103 -0
  20. package/es/AeSdkWallet.mjs +322 -0
  21. package/es/AeSdkWallet.mjs.map +1 -0
  22. package/es/Node.d.ts +44 -0
  23. package/es/Node.mjs +141 -0
  24. package/es/Node.mjs.map +1 -0
  25. package/es/account/Base.d.ts +65 -0
  26. package/es/account/Base.mjs +123 -0
  27. package/es/account/Base.mjs.map +1 -0
  28. package/es/account/Memory.d.ts +25 -0
  29. package/es/account/Memory.mjs +81 -0
  30. package/es/account/Memory.mjs.map +1 -0
  31. package/es/account/Rpc.d.ts +27 -0
  32. package/es/account/Rpc.mjs +79 -0
  33. package/es/account/Rpc.mjs.map +1 -0
  34. package/es/aens.d.ts +209 -0
  35. package/es/aens.mjs +332 -0
  36. package/es/aens.mjs.map +1 -0
  37. package/es/aepp-wallet-communication/connection/Browser.d.ts +32 -0
  38. package/es/aepp-wallet-communication/connection/Browser.mjs +70 -0
  39. package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -0
  40. package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +17 -0
  41. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +57 -0
  42. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -0
  43. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +35 -0
  44. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +142 -0
  45. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -0
  46. package/es/aepp-wallet-communication/connection-proxy.d.ts +10 -0
  47. package/{src/utils/crypto-ts.ts → es/aepp-wallet-communication/connection-proxy.mjs} +15 -11
  48. package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -0
  49. package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +33 -0
  50. package/es/aepp-wallet-communication/rpc/RpcClient.mjs +169 -0
  51. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -0
  52. package/es/aepp-wallet-communication/rpc/types.d.ts +77 -0
  53. package/es/aepp-wallet-communication/rpc/types.mjs +3 -0
  54. package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -0
  55. package/es/aepp-wallet-communication/schema.d.ts +118 -0
  56. package/es/aepp-wallet-communication/schema.mjs +214 -0
  57. package/es/aepp-wallet-communication/schema.mjs.map +1 -0
  58. package/es/aepp-wallet-communication/wallet-detector.d.ts +24 -0
  59. package/es/aepp-wallet-communication/wallet-detector.mjs +63 -0
  60. package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -0
  61. package/es/apis/compiler/compiler.d.ts +92 -0
  62. package/es/apis/compiler/compiler.mjs +576 -0
  63. package/es/apis/compiler/compiler.mjs.map +1 -0
  64. package/es/apis/compiler/index.d.ts +2 -0
  65. package/es/apis/compiler/index.mjs +3 -0
  66. package/es/apis/compiler/index.mjs.map +1 -0
  67. package/es/apis/compiler/models/index.d.ts +248 -0
  68. package/es/apis/compiler/models/index.mjs +48 -0
  69. package/es/apis/compiler/models/index.mjs.map +1 -0
  70. package/es/apis/compiler/models/mappers.d.ts +23 -0
  71. package/es/apis/compiler/models/mappers.mjs +585 -0
  72. package/es/apis/compiler/models/mappers.mjs.map +1 -0
  73. package/es/apis/compiler/models/parameters.d.ts +13 -0
  74. package/es/apis/compiler/models/parameters.mjs +71 -0
  75. package/es/apis/compiler/models/parameters.mjs.map +1 -0
  76. package/es/apis/node/index.d.ts +2 -0
  77. package/es/apis/node/index.mjs +3 -0
  78. package/es/apis/node/index.mjs.map +1 -0
  79. package/es/apis/node/models/index.d.ts +1061 -0
  80. package/es/apis/node/models/index.mjs +2 -0
  81. package/es/apis/node/models/index.mjs.map +1 -0
  82. package/es/apis/node/models/mappers.d.ts +95 -0
  83. package/es/apis/node/models/mappers.mjs +4164 -0
  84. package/es/apis/node/models/mappers.mjs.map +1 -0
  85. package/es/apis/node/models/parameters.d.ts +17 -0
  86. package/es/apis/node/models/parameters.mjs +165 -0
  87. package/es/apis/node/models/parameters.mjs.map +1 -0
  88. package/es/apis/node/node.d.ts +215 -0
  89. package/es/apis/node/node.mjs +1165 -0
  90. package/es/apis/node/node.mjs.map +1 -0
  91. package/es/chain.d.ts +220 -0
  92. package/es/chain.mjs +524 -0
  93. package/es/chain.mjs.map +1 -0
  94. package/es/channel/handlers.d.ts +34 -0
  95. package/es/channel/{handlers.js → handlers.mjs} +163 -130
  96. package/es/channel/handlers.mjs.map +1 -0
  97. package/es/channel/index.d.ts +634 -0
  98. package/es/channel/index.mjs +978 -0
  99. package/es/channel/index.mjs.map +1 -0
  100. package/es/channel/internal.d.ts +100 -0
  101. package/es/channel/internal.mjs +328 -0
  102. package/es/channel/internal.mjs.map +1 -0
  103. package/es/contract/Compiler.d.ts +17 -0
  104. package/es/contract/Compiler.mjs +67 -0
  105. package/es/contract/Compiler.mjs.map +1 -0
  106. package/es/contract/aci.d.ts +125 -0
  107. package/es/contract/aci.mjs +496 -0
  108. package/es/contract/aci.mjs.map +1 -0
  109. package/es/contract/ga.d.ts +68 -0
  110. package/es/contract/ga.mjs +190 -0
  111. package/es/contract/ga.mjs.map +1 -0
  112. package/es/contract/methods.d.ts +68 -0
  113. package/es/contract/methods.mjs +101 -0
  114. package/es/contract/methods.mjs.map +1 -0
  115. package/es/index.d.ts +32 -0
  116. package/es/index.mjs +49 -0
  117. package/es/index.mjs.map +1 -0
  118. package/es/oracle.d.ts +154 -0
  119. package/es/oracle.mjs +288 -0
  120. package/es/oracle.mjs.map +1 -0
  121. package/es/spend.d.ts +61 -0
  122. package/es/spend.mjs +122 -0
  123. package/es/spend.mjs.map +1 -0
  124. package/es/tx/builder/constants.d.ts +41 -0
  125. package/es/tx/builder/constants.mjs +100 -0
  126. package/es/tx/builder/constants.mjs.map +1 -0
  127. package/es/tx/builder/field-types.d.ts +62 -0
  128. package/es/tx/builder/field-types.mjs +126 -0
  129. package/es/tx/builder/field-types.mjs.map +1 -0
  130. package/es/tx/builder/helpers.d.ts +131 -0
  131. package/es/tx/builder/helpers.mjs +223 -0
  132. package/es/tx/builder/helpers.mjs.map +1 -0
  133. package/es/tx/builder/index.d.ts +75 -0
  134. package/es/tx/builder/index.mjs +424 -0
  135. package/es/tx/builder/index.mjs.map +1 -0
  136. package/es/tx/builder/schema.d.ts +350 -0
  137. package/es/tx/builder/schema.mjs +320 -0
  138. package/es/tx/builder/schema.mjs.map +1 -0
  139. package/es/tx/index.d.ts +63 -0
  140. package/es/tx/index.mjs +209 -0
  141. package/es/tx/index.mjs.map +1 -0
  142. package/es/tx/min-fee.d.ts +20 -0
  143. package/es/tx/min-fee.mjs +148 -0
  144. package/es/tx/min-fee.mjs.map +1 -0
  145. package/es/tx/validator.d.ts +19 -0
  146. package/es/tx/validator.mjs +240 -0
  147. package/es/tx/validator.mjs.map +1 -0
  148. package/es/typings/@aeternity__argon2-browser/index.d.mjs +2 -0
  149. package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +1 -0
  150. package/es/typings/@aeternity__uuid/index.d.mjs +2 -0
  151. package/es/typings/@aeternity__uuid/index.d.mjs.map +1 -0
  152. package/es/typings/bip32-path/index.d.mjs +2 -0
  153. package/es/typings/bip32-path/index.d.mjs.map +1 -0
  154. package/es/typings/blakejs/index.d.mjs +2 -0
  155. package/es/typings/blakejs/index.d.mjs.map +1 -0
  156. package/es/typings/tweetnacl-auth/index.d.mjs +2 -0
  157. package/es/typings/tweetnacl-auth/index.d.mjs.map +1 -0
  158. package/es/utils/amount-formatter.d.ts +42 -0
  159. package/es/utils/{amount-formatter.js → amount-formatter.mjs} +38 -44
  160. package/es/utils/amount-formatter.mjs.map +1 -0
  161. package/es/utils/autorest.d.ts +6 -0
  162. package/es/utils/autorest.mjs +97 -0
  163. package/es/utils/autorest.mjs.map +1 -0
  164. package/es/utils/bignumber.d.ts +13 -0
  165. package/es/utils/bignumber.mjs +23 -0
  166. package/es/utils/bignumber.mjs.map +1 -0
  167. package/es/{bytes.d.ts → utils/bytes.d.ts} +10 -13
  168. package/es/utils/{bytes.js → bytes.mjs} +26 -22
  169. package/es/utils/bytes.mjs.map +1 -0
  170. package/es/utils/crypto.d.ts +103 -0
  171. package/es/utils/crypto.mjs +221 -0
  172. package/es/utils/crypto.mjs.map +1 -0
  173. package/es/utils/encoder.d.ts +26 -0
  174. package/es/utils/encoder.mjs +102 -0
  175. package/es/utils/encoder.mjs.map +1 -0
  176. package/es/utils/errors.d.ts +481 -0
  177. package/es/utils/errors.mjs +882 -0
  178. package/es/utils/errors.mjs.map +1 -0
  179. package/es/utils/hd-wallet.d.ts +34 -0
  180. package/es/utils/hd-wallet.mjs +122 -0
  181. package/es/utils/hd-wallet.mjs.map +1 -0
  182. package/es/utils/json-big.d.ts +5 -0
  183. package/es/utils/json-big.mjs +41 -0
  184. package/es/utils/json-big.mjs.map +1 -0
  185. package/es/utils/keystore.d.ts +51 -0
  186. package/es/utils/keystore.mjs +145 -0
  187. package/es/utils/keystore.mjs.map +1 -0
  188. package/es/{mptree.d.ts → utils/mptree.d.ts} +5 -8
  189. package/es/utils/{mptree.js → mptree.mjs} +33 -25
  190. package/es/utils/mptree.mjs.map +1 -0
  191. package/es/utils/other.d.ts +14 -0
  192. package/es/utils/other.mjs +28 -0
  193. package/es/utils/other.mjs.map +1 -0
  194. package/es/{semver-satisfies.d.ts → utils/semver-satisfies.d.ts} +0 -0
  195. package/es/utils/{semver-satisfies.js → semver-satisfies.mjs} +1 -1
  196. package/es/utils/semver-satisfies.mjs.map +1 -0
  197. package/es/utils/string.d.ts +24 -0
  198. package/es/utils/{string.js → string.mjs} +9 -11
  199. package/es/utils/string.mjs.map +1 -0
  200. package/package.json +67 -64
  201. package/src/AeSdk.ts +65 -0
  202. package/src/AeSdkAepp.ts +167 -0
  203. package/src/AeSdkBase.ts +320 -0
  204. package/src/AeSdkWallet.ts +332 -0
  205. package/src/Node.ts +167 -0
  206. package/src/account/Base.ts +114 -0
  207. package/src/account/Memory.ts +83 -0
  208. package/src/account/Rpc.ts +67 -0
  209. package/src/aens.ts +391 -0
  210. package/src/aepp-wallet-communication/connection/Browser.ts +68 -0
  211. package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +58 -0
  212. package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +111 -0
  213. package/{es/utils/crypto-ts.js → src/aepp-wallet-communication/connection-proxy.ts} +16 -9
  214. package/src/aepp-wallet-communication/rpc/RpcClient.ts +137 -0
  215. package/src/aepp-wallet-communication/rpc/types.ts +66 -0
  216. package/src/aepp-wallet-communication/schema.ts +181 -0
  217. package/src/aepp-wallet-communication/wallet-detector.ts +71 -0
  218. package/src/apis/compiler/code-model-v4.yaml +2649 -0
  219. package/src/apis/compiler/compiler.ts +585 -0
  220. package/src/apis/compiler/index.ts +2 -0
  221. package/src/apis/compiler/models/index.ts +301 -0
  222. package/src/apis/compiler/models/mappers.ts +583 -0
  223. package/src/apis/compiler/models/parameters.ts +93 -0
  224. package/src/apis/node/code-model-v4.yaml +10046 -0
  225. package/src/apis/node/index.ts +2 -0
  226. package/src/apis/node/models/index.ts +1253 -0
  227. package/src/apis/node/models/mappers.ts +4278 -0
  228. package/src/apis/node/models/parameters.ts +188 -0
  229. package/src/apis/node/node.ts +1299 -0
  230. package/src/chain.ts +444 -0
  231. package/src/channel/{handlers.js → handlers.ts} +238 -143
  232. package/src/channel/index.ts +991 -0
  233. package/src/channel/internal.ts +345 -0
  234. package/src/contract/Compiler.ts +66 -0
  235. package/src/contract/aci.ts +529 -0
  236. package/src/contract/ga.ts +178 -0
  237. package/src/contract/methods.ts +118 -0
  238. package/src/index.ts +51 -0
  239. package/src/oracle.ts +342 -0
  240. package/src/spend.ts +152 -0
  241. package/src/tx/builder/constants.ts +96 -0
  242. package/src/tx/builder/field-types.ts +111 -0
  243. package/src/tx/builder/helpers.ts +253 -0
  244. package/src/tx/builder/index.ts +394 -0
  245. package/src/tx/builder/schema.ts +771 -0
  246. package/src/tx/index.ts +199 -0
  247. package/src/tx/min-fee.ts +136 -0
  248. package/src/tx/validator.ts +226 -0
  249. package/src/typings/@aeternity__argon2-browser/index.d.ts +3 -0
  250. package/src/typings/@aeternity__uuid/index.d.ts +3 -0
  251. package/src/typings/bip32-path/index.d.ts +33 -0
  252. package/src/typings/tweetnacl-auth/index.d.ts +14 -0
  253. package/src/utils/amount-formatter.ts +29 -41
  254. package/src/utils/autorest.ts +90 -0
  255. package/src/utils/bignumber.ts +9 -19
  256. package/src/utils/bytes.ts +15 -16
  257. package/src/utils/crypto.ts +217 -0
  258. package/src/utils/encoder.ts +98 -0
  259. package/src/utils/errors.ts +817 -0
  260. package/src/utils/hd-wallet.ts +134 -0
  261. package/src/utils/json-big.ts +26 -0
  262. package/src/utils/keystore.ts +179 -0
  263. package/src/utils/mptree.ts +26 -20
  264. package/src/utils/other.ts +28 -43
  265. package/src/utils/string.ts +8 -10
  266. package/CHANGELOG.md +0 -1603
  267. package/es/account/base.js +0 -169
  268. package/es/account/base.js.map +0 -1
  269. package/es/account/memory.js +0 -84
  270. package/es/account/memory.js.map +0 -1
  271. package/es/account/multiple.js +0 -178
  272. package/es/account/multiple.js.map +0 -1
  273. package/es/ae/aens.js +0 -408
  274. package/es/ae/aens.js.map +0 -1
  275. package/es/ae/aepp.js +0 -45
  276. package/es/ae/aepp.js.map +0 -1
  277. package/es/ae/contract.js +0 -312
  278. package/es/ae/contract.js.map +0 -1
  279. package/es/ae/index.js +0 -206
  280. package/es/ae/index.js.map +0 -1
  281. package/es/ae/oracle.js +0 -322
  282. package/es/ae/oracle.js.map +0 -1
  283. package/es/ae/universal.js +0 -45
  284. package/es/ae/universal.js.map +0 -1
  285. package/es/ae/wallet.js +0 -50
  286. package/es/ae/wallet.js.map +0 -1
  287. package/es/amount-formatter.d.ts +0 -58
  288. package/es/bignumber.d.ts +0 -24
  289. package/es/chain/index.js +0 -256
  290. package/es/chain/index.js.map +0 -1
  291. package/es/chain/node.js +0 -394
  292. package/es/chain/node.js.map +0 -1
  293. package/es/channel/handlers.js.map +0 -1
  294. package/es/channel/index.js +0 -980
  295. package/es/channel/index.js.map +0 -1
  296. package/es/channel/internal.js +0 -266
  297. package/es/channel/internal.js.map +0 -1
  298. package/es/contract/aci/helpers.js +0 -298
  299. package/es/contract/aci/helpers.js.map +0 -1
  300. package/es/contract/aci/index.js +0 -361
  301. package/es/contract/aci/index.js.map +0 -1
  302. package/es/contract/aci/transformation.js +0 -66
  303. package/es/contract/aci/transformation.js.map +0 -1
  304. package/es/contract/compiler.js +0 -244
  305. package/es/contract/compiler.js.map +0 -1
  306. package/es/contract/ga/helpers.js +0 -22
  307. package/es/contract/ga/helpers.js.map +0 -1
  308. package/es/contract/ga/index.js +0 -170
  309. package/es/contract/ga/index.js.map +0 -1
  310. package/es/contract/index.js +0 -162
  311. package/es/contract/index.js.map +0 -1
  312. package/es/crypto-ts.d.ts +0 -9
  313. package/es/index.js +0 -57
  314. package/es/index.js.map +0 -1
  315. package/es/node-pool/index.js +0 -187
  316. package/es/node-pool/index.js.map +0 -1
  317. package/es/node.js +0 -132
  318. package/es/node.js.map +0 -1
  319. package/es/other.d.ts +0 -31
  320. package/es/string.d.ts +0 -26
  321. package/es/tx/builder/helpers.js +0 -305
  322. package/es/tx/builder/helpers.js.map +0 -1
  323. package/es/tx/builder/index.js +0 -595
  324. package/es/tx/builder/index.js.map +0 -1
  325. package/es/tx/builder/schema.js +0 -814
  326. package/es/tx/builder/schema.js.map +0 -1
  327. package/es/tx/index.js +0 -300
  328. package/es/tx/index.js.map +0 -1
  329. package/es/tx/tx-object.js +0 -276
  330. package/es/tx/tx-object.js.map +0 -1
  331. package/es/tx/tx.js +0 -937
  332. package/es/tx/tx.js.map +0 -1
  333. package/es/tx/validator.js +0 -208
  334. package/es/tx/validator.js.map +0 -1
  335. package/es/typings/blakejs/index.d.js +0 -2
  336. package/es/typings/blakejs/index.d.js.map +0 -1
  337. package/es/utils/aepp-wallet-communication/connection/browser-runtime.js +0 -131
  338. package/es/utils/aepp-wallet-communication/connection/browser-runtime.js.map +0 -1
  339. package/es/utils/aepp-wallet-communication/connection/browser-window-message.js +0 -184
  340. package/es/utils/aepp-wallet-communication/connection/browser-window-message.js.map +0 -1
  341. package/es/utils/aepp-wallet-communication/connection/index.js +0 -84
  342. package/es/utils/aepp-wallet-communication/connection/index.js.map +0 -1
  343. package/es/utils/aepp-wallet-communication/content-script-bridge.js +0 -97
  344. package/es/utils/aepp-wallet-communication/content-script-bridge.js.map +0 -1
  345. package/es/utils/aepp-wallet-communication/helpers.js +0 -103
  346. package/es/utils/aepp-wallet-communication/helpers.js.map +0 -1
  347. package/es/utils/aepp-wallet-communication/rpc/aepp-rpc.js +0 -329
  348. package/es/utils/aepp-wallet-communication/rpc/aepp-rpc.js.map +0 -1
  349. package/es/utils/aepp-wallet-communication/rpc/rpc-client.js +0 -270
  350. package/es/utils/aepp-wallet-communication/rpc/rpc-client.js.map +0 -1
  351. package/es/utils/aepp-wallet-communication/rpc/wallet-rpc.js +0 -533
  352. package/es/utils/aepp-wallet-communication/rpc/wallet-rpc.js.map +0 -1
  353. package/es/utils/aepp-wallet-communication/schema.js +0 -107
  354. package/es/utils/aepp-wallet-communication/schema.js.map +0 -1
  355. package/es/utils/aepp-wallet-communication/wallet-detector.js +0 -109
  356. package/es/utils/aepp-wallet-communication/wallet-detector.js.map +0 -1
  357. package/es/utils/amount-formatter.js.map +0 -1
  358. package/es/utils/async-init.js +0 -67
  359. package/es/utils/async-init.js.map +0 -1
  360. package/es/utils/bignumber.js +0 -28
  361. package/es/utils/bignumber.js.map +0 -1
  362. package/es/utils/bytes.js.map +0 -1
  363. package/es/utils/crypto-ts.js.map +0 -1
  364. package/es/utils/crypto.js +0 -304
  365. package/es/utils/crypto.js.map +0 -1
  366. package/es/utils/hd-wallet.js +0 -112
  367. package/es/utils/hd-wallet.js.map +0 -1
  368. package/es/utils/json-big.js +0 -45
  369. package/es/utils/json-big.js.map +0 -1
  370. package/es/utils/keystore.js +0 -228
  371. package/es/utils/keystore.js.map +0 -1
  372. package/es/utils/mptree.js.map +0 -1
  373. package/es/utils/other.js +0 -43
  374. package/es/utils/other.js.map +0 -1
  375. package/es/utils/semver-satisfies.js.map +0 -1
  376. package/es/utils/string.js.map +0 -1
  377. package/es/utils/swagger.js +0 -132
  378. package/es/utils/swagger.js.map +0 -1
  379. package/src/account/base.js +0 -153
  380. package/src/account/memory.js +0 -78
  381. package/src/account/multiple.js +0 -154
  382. package/src/ae/aens.js +0 -366
  383. package/src/ae/aepp.js +0 -45
  384. package/src/ae/contract.js +0 -285
  385. package/src/ae/index.js +0 -167
  386. package/src/ae/oracle.js +0 -296
  387. package/src/ae/universal.js +0 -47
  388. package/src/ae/wallet.js +0 -50
  389. package/src/chain/index.js +0 -250
  390. package/src/chain/node.js +0 -293
  391. package/src/channel/index.js +0 -898
  392. package/src/channel/internal.js +0 -231
  393. package/src/contract/aci/index.js +0 -317
  394. package/src/contract/aci/transformation.js +0 -72
  395. package/src/contract/compiler.js +0 -195
  396. package/src/contract/ga/helpers.js +0 -17
  397. package/src/contract/ga/index.js +0 -147
  398. package/src/contract/index.js +0 -163
  399. package/src/index.js +0 -90
  400. package/src/node-pool/index.js +0 -171
  401. package/src/node.js +0 -118
  402. package/src/tx/builder/helpers.js +0 -325
  403. package/src/tx/builder/index.js +0 -460
  404. package/src/tx/builder/schema.js +0 -1211
  405. package/src/tx/index.js +0 -301
  406. package/src/tx/tx-object.js +0 -186
  407. package/src/tx/tx.js +0 -622
  408. package/src/tx/validator.js +0 -161
  409. package/src/utils/aepp-wallet-communication/connection/browser-runtime.js +0 -114
  410. package/src/utils/aepp-wallet-communication/connection/browser-window-message.js +0 -161
  411. package/src/utils/aepp-wallet-communication/connection/index.js +0 -85
  412. package/src/utils/aepp-wallet-communication/content-script-bridge.js +0 -85
  413. package/src/utils/aepp-wallet-communication/helpers.js +0 -70
  414. package/src/utils/aepp-wallet-communication/rpc/aepp-rpc.js +0 -268
  415. package/src/utils/aepp-wallet-communication/rpc/rpc-client.js +0 -223
  416. package/src/utils/aepp-wallet-communication/rpc/wallet-rpc.js +0 -390
  417. package/src/utils/aepp-wallet-communication/schema.js +0 -108
  418. package/src/utils/aepp-wallet-communication/wallet-detector.js +0 -91
  419. package/src/utils/async-init.js +0 -41
  420. package/src/utils/crypto.js +0 -312
  421. package/src/utils/hd-wallet.js +0 -115
  422. package/src/utils/json-big.js +0 -26
  423. package/src/utils/keystore.js +0 -223
  424. package/src/utils/swagger.js +0 -133
@@ -0,0 +1,576 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
3
+ import * as Parameters from "./models/parameters.mjs";
4
+ import * as Mappers from "./models/mappers.mjs";
5
+ export class Compiler extends coreClient.ServiceClient {
6
+ /**
7
+ * Initializes a new instance of the Compiler class.
8
+ * @param $host server parameter
9
+ * @param options The parameter options
10
+ */
11
+ constructor($host, options) {
12
+ var _ref, _options$endpoint, _options;
13
+
14
+ if ($host === undefined) {
15
+ throw new Error("'$host' cannot be null");
16
+ } // Initializing default values for options
17
+
18
+
19
+ if (!options) {
20
+ options = {};
21
+ }
22
+
23
+ const defaults = {
24
+ requestContentType: "application/json; charset=utf-8"
25
+ };
26
+ const packageDetails = `azsdk-js-compiler/1.0.0-beta.1`;
27
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
28
+ const optionsWithDefaults = { ...defaults,
29
+ ...options,
30
+ userAgentOptions: {
31
+ userAgentPrefix
32
+ },
33
+ baseUri: (_ref = (_options$endpoint = options.endpoint) !== null && _options$endpoint !== void 0 ? _options$endpoint : options.baseUri) !== null && _ref !== void 0 ? _ref : "{$host}"
34
+ };
35
+ super(optionsWithDefaults);
36
+
37
+ if ((_options = options) !== null && _options !== void 0 && _options.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
38
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
39
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(pipelinePolicy => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
40
+
41
+ if (!bearerTokenAuthenticationPolicyFound) {
42
+ this.pipeline.removePolicy({
43
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
44
+ });
45
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
46
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
47
+ challengeCallbacks: {
48
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
49
+ }
50
+ }));
51
+ }
52
+ } // Parameter assignments
53
+
54
+
55
+ this.$host = $host;
56
+ }
57
+ /**
58
+ * Generate an Aeternity Contract Interface (ACI) for contract
59
+ * @param body contract code
60
+ * @param options The options parameters.
61
+ */
62
+
63
+
64
+ generateACI(body, options) {
65
+ return this.sendOperationRequest({
66
+ body,
67
+ options
68
+ }, generateACIOperationSpec);
69
+ }
70
+ /**
71
+ * Get the Api description
72
+ * @param options The options parameters.
73
+ */
74
+
75
+
76
+ api(options) {
77
+ return this.sendOperationRequest({
78
+ options
79
+ }, apiOperationSpec);
80
+ }
81
+ /**
82
+ * Get the version of the API
83
+ * @param options The options parameters.
84
+ */
85
+
86
+
87
+ aPIVersion(options) {
88
+ return this.sendOperationRequest({
89
+ options
90
+ }, aPIVersionOperationSpec);
91
+ }
92
+ /**
93
+ * Compile a sophia contract from source and return byte code
94
+ * @param body contract code
95
+ * @param options The options parameters.
96
+ */
97
+
98
+
99
+ compileContract(body, options) {
100
+ return this.sendOperationRequest({
101
+ body,
102
+ options
103
+ }, compileContractOperationSpec);
104
+ }
105
+ /**
106
+ * Extract compiler version from bytecode
107
+ * @param body contract byte array
108
+ * @param options The options parameters.
109
+ */
110
+
111
+
112
+ getCompilerVersion(body, options) {
113
+ return this.sendOperationRequest({
114
+ body,
115
+ options
116
+ }, getCompilerVersionOperationSpec);
117
+ }
118
+ /**
119
+ * Decode the result of contract call
120
+ * @param body Binary data in Sophia ABI format
121
+ * @param options The options parameters.
122
+ */
123
+
124
+
125
+ decodeCallResult(body, options) {
126
+ return this.sendOperationRequest({
127
+ body,
128
+ options
129
+ }, decodeCallResultOperationSpec);
130
+ }
131
+ /**
132
+ * Decode the result of contract call from Bytecode
133
+ * @param body Call result + compiled contract
134
+ * @param options The options parameters.
135
+ */
136
+
137
+
138
+ decodeCallResultBytecode(body, options) {
139
+ return this.sendOperationRequest({
140
+ body,
141
+ options
142
+ }, decodeCallResultBytecodeOperationSpec);
143
+ }
144
+ /**
145
+ * Identify function name and arguments in Calldata for a compiled contract
146
+ * @param body Calldata + compiled contract
147
+ * @param options The options parameters.
148
+ */
149
+
150
+
151
+ decodeCalldataBytecode(body, options) {
152
+ return this.sendOperationRequest({
153
+ body,
154
+ options
155
+ }, decodeCalldataBytecodeOperationSpec);
156
+ }
157
+ /**
158
+ * Identify function name and arguments in Calldata for a (partial) contract
159
+ * @param body Calldata + contract (stub) code
160
+ * @param options The options parameters.
161
+ */
162
+
163
+
164
+ decodeCalldataSource(body, options) {
165
+ return this.sendOperationRequest({
166
+ body,
167
+ options
168
+ }, decodeCalldataSourceOperationSpec);
169
+ }
170
+ /**
171
+ * Decode data as retuned by a contract call. - Legacy decoding
172
+ * @param body Binary data in Sophia ABI format
173
+ * @param options The options parameters.
174
+ */
175
+
176
+
177
+ decodeData(body, options) {
178
+ return this.sendOperationRequest({
179
+ body,
180
+ options
181
+ }, decodeDataOperationSpec);
182
+ }
183
+ /**
184
+ * Encode Sophia function call according to sophia ABI.
185
+ * @param body Sophia function call - contract code + function name + arguments
186
+ * @param options The options parameters.
187
+ */
188
+
189
+
190
+ encodeCalldata(body, options) {
191
+ return this.sendOperationRequest({
192
+ body,
193
+ options
194
+ }, encodeCalldataOperationSpec);
195
+ }
196
+ /**
197
+ * Get FATE assembler code from bytecode
198
+ * @param body contract byte array
199
+ * @param options The options parameters.
200
+ */
201
+
202
+
203
+ getFateAssemblerCode(body, options) {
204
+ return this.sendOperationRequest({
205
+ body,
206
+ options
207
+ }, getFateAssemblerCodeOperationSpec);
208
+ }
209
+ /**
210
+ * Verify that an encoded byte array is the result of compiling a given contract
211
+ * @param body contract byte array and source code
212
+ * @param options The options parameters.
213
+ */
214
+
215
+
216
+ validateByteCode(body, options) {
217
+ return this.sendOperationRequest({
218
+ body,
219
+ options
220
+ }, validateByteCodeOperationSpec);
221
+ }
222
+ /**
223
+ * Get the version of the underlying Sophia compiler version
224
+ * @param options The options parameters.
225
+ */
226
+
227
+
228
+ version(options) {
229
+ return this.sendOperationRequest({
230
+ options
231
+ }, versionOperationSpec);
232
+ }
233
+
234
+ } // Operation Specifications
235
+
236
+ const serializer = coreClient.createSerializer(Mappers,
237
+ /* isXml */
238
+ false);
239
+ const generateACIOperationSpec = {
240
+ path: "/aci",
241
+ httpMethod: "POST",
242
+ responses: {
243
+ 200: {
244
+ bodyMapper: Mappers.Aci
245
+ },
246
+ 400: {
247
+ bodyMapper: {
248
+ type: {
249
+ name: "Sequence",
250
+ element: {
251
+ type: {
252
+ name: "Composite",
253
+ className: "CompilerError"
254
+ }
255
+ }
256
+ }
257
+ },
258
+ isError: true
259
+ }
260
+ },
261
+ requestBody: Parameters.body,
262
+ urlParameters: [Parameters.$host],
263
+ headerParameters: [Parameters.contentType, Parameters.accept],
264
+ mediaType: "json",
265
+ serializer
266
+ };
267
+ const apiOperationSpec = {
268
+ path: "/api",
269
+ httpMethod: "GET",
270
+ responses: {
271
+ 200: {
272
+ bodyMapper: {
273
+ type: {
274
+ name: "Dictionary",
275
+ value: {
276
+ type: {
277
+ name: "any"
278
+ }
279
+ }
280
+ }
281
+ }
282
+ },
283
+ 400: {
284
+ bodyMapper: Mappers.ErrorModel,
285
+ isError: true
286
+ }
287
+ },
288
+ urlParameters: [Parameters.$host],
289
+ headerParameters: [Parameters.accept],
290
+ serializer
291
+ };
292
+ const aPIVersionOperationSpec = {
293
+ path: "/api-version",
294
+ httpMethod: "GET",
295
+ responses: {
296
+ 200: {
297
+ bodyMapper: Mappers.APIVersion
298
+ },
299
+ 500: {
300
+ bodyMapper: Mappers.ErrorModel,
301
+ isError: true
302
+ }
303
+ },
304
+ urlParameters: [Parameters.$host],
305
+ headerParameters: [Parameters.accept],
306
+ serializer
307
+ };
308
+ const compileContractOperationSpec = {
309
+ path: "/compile",
310
+ httpMethod: "POST",
311
+ responses: {
312
+ 200: {
313
+ bodyMapper: Mappers.ByteCode
314
+ },
315
+ 400: {
316
+ bodyMapper: {
317
+ type: {
318
+ name: "Sequence",
319
+ element: {
320
+ type: {
321
+ name: "Composite",
322
+ className: "CompilerError"
323
+ }
324
+ }
325
+ }
326
+ },
327
+ isError: true
328
+ }
329
+ },
330
+ requestBody: Parameters.body,
331
+ urlParameters: [Parameters.$host],
332
+ headerParameters: [Parameters.contentType, Parameters.accept],
333
+ mediaType: "json",
334
+ serializer
335
+ };
336
+ const getCompilerVersionOperationSpec = {
337
+ path: "/compiler-version",
338
+ httpMethod: "POST",
339
+ responses: {
340
+ 200: {
341
+ bodyMapper: Mappers.CompilerVersion
342
+ },
343
+ 400: {
344
+ bodyMapper: Mappers.ErrorModel,
345
+ isError: true
346
+ }
347
+ },
348
+ requestBody: Parameters.body1,
349
+ urlParameters: [Parameters.$host],
350
+ headerParameters: [Parameters.contentType, Parameters.accept],
351
+ mediaType: "json",
352
+ serializer
353
+ };
354
+ const decodeCallResultOperationSpec = {
355
+ path: "/decode-call-result",
356
+ httpMethod: "POST",
357
+ responses: {
358
+ 200: {
359
+ bodyMapper: {
360
+ type: {
361
+ name: "any"
362
+ }
363
+ }
364
+ },
365
+ 400: {
366
+ bodyMapper: {
367
+ type: {
368
+ name: "Sequence",
369
+ element: {
370
+ type: {
371
+ name: "Composite",
372
+ className: "CompilerError"
373
+ }
374
+ }
375
+ }
376
+ },
377
+ isError: true
378
+ }
379
+ },
380
+ requestBody: Parameters.body2,
381
+ urlParameters: [Parameters.$host],
382
+ headerParameters: [Parameters.contentType, Parameters.accept],
383
+ mediaType: "json",
384
+ serializer
385
+ };
386
+ const decodeCallResultBytecodeOperationSpec = {
387
+ path: "/decode-call-result/bytecode",
388
+ httpMethod: "POST",
389
+ responses: {
390
+ 200: {
391
+ bodyMapper: Mappers.DecodedCallresult
392
+ },
393
+ 400: {
394
+ bodyMapper: {
395
+ type: {
396
+ name: "Sequence",
397
+ element: {
398
+ type: {
399
+ name: "Composite",
400
+ className: "CompilerError"
401
+ }
402
+ }
403
+ }
404
+ },
405
+ isError: true
406
+ }
407
+ },
408
+ requestBody: Parameters.body3,
409
+ urlParameters: [Parameters.$host],
410
+ headerParameters: [Parameters.contentType, Parameters.accept],
411
+ mediaType: "json",
412
+ serializer
413
+ };
414
+ const decodeCalldataBytecodeOperationSpec = {
415
+ path: "/decode-calldata/bytecode",
416
+ httpMethod: "POST",
417
+ responses: {
418
+ 200: {
419
+ bodyMapper: Mappers.DecodedCalldata
420
+ },
421
+ 400: {
422
+ bodyMapper: Mappers.ErrorModel,
423
+ isError: true
424
+ }
425
+ },
426
+ requestBody: Parameters.body4,
427
+ urlParameters: [Parameters.$host],
428
+ headerParameters: [Parameters.contentType, Parameters.accept],
429
+ mediaType: "json",
430
+ serializer
431
+ };
432
+ const decodeCalldataSourceOperationSpec = {
433
+ path: "/decode-calldata/source",
434
+ httpMethod: "POST",
435
+ responses: {
436
+ 200: {
437
+ bodyMapper: Mappers.DecodedCalldata
438
+ },
439
+ 400: {
440
+ bodyMapper: {
441
+ type: {
442
+ name: "Sequence",
443
+ element: {
444
+ type: {
445
+ name: "Composite",
446
+ className: "CompilerError"
447
+ }
448
+ }
449
+ }
450
+ },
451
+ isError: true
452
+ }
453
+ },
454
+ requestBody: Parameters.body5,
455
+ urlParameters: [Parameters.$host],
456
+ headerParameters: [Parameters.contentType, Parameters.accept],
457
+ mediaType: "json",
458
+ serializer
459
+ };
460
+ const decodeDataOperationSpec = {
461
+ path: "/decode-data",
462
+ httpMethod: "POST",
463
+ responses: {
464
+ 200: {
465
+ bodyMapper: Mappers.SophiaJsonData
466
+ },
467
+ 400: {
468
+ bodyMapper: {
469
+ type: {
470
+ name: "Sequence",
471
+ element: {
472
+ type: {
473
+ name: "Composite",
474
+ className: "CompilerError"
475
+ }
476
+ }
477
+ }
478
+ },
479
+ isError: true
480
+ }
481
+ },
482
+ requestBody: Parameters.body6,
483
+ urlParameters: [Parameters.$host],
484
+ headerParameters: [Parameters.contentType, Parameters.accept],
485
+ mediaType: "json",
486
+ serializer
487
+ };
488
+ const encodeCalldataOperationSpec = {
489
+ path: "/encode-calldata",
490
+ httpMethod: "POST",
491
+ responses: {
492
+ 200: {
493
+ bodyMapper: Mappers.Calldata
494
+ },
495
+ 400: {
496
+ bodyMapper: {
497
+ type: {
498
+ name: "Sequence",
499
+ element: {
500
+ type: {
501
+ name: "Composite",
502
+ className: "CompilerError"
503
+ }
504
+ }
505
+ }
506
+ },
507
+ isError: true
508
+ }
509
+ },
510
+ requestBody: Parameters.body7,
511
+ urlParameters: [Parameters.$host],
512
+ headerParameters: [Parameters.contentType, Parameters.accept],
513
+ mediaType: "json",
514
+ serializer
515
+ };
516
+ const getFateAssemblerCodeOperationSpec = {
517
+ path: "/fate-assembler",
518
+ httpMethod: "POST",
519
+ responses: {
520
+ 200: {
521
+ bodyMapper: Mappers.FateAssembler
522
+ },
523
+ 400: {
524
+ bodyMapper: Mappers.ErrorModel,
525
+ isError: true
526
+ }
527
+ },
528
+ requestBody: Parameters.body1,
529
+ urlParameters: [Parameters.$host],
530
+ headerParameters: [Parameters.contentType, Parameters.accept],
531
+ mediaType: "json",
532
+ serializer
533
+ };
534
+ const validateByteCodeOperationSpec = {
535
+ path: "/validate-byte-code",
536
+ httpMethod: "POST",
537
+ responses: {
538
+ 200: {},
539
+ 400: {
540
+ bodyMapper: {
541
+ type: {
542
+ name: "Sequence",
543
+ element: {
544
+ type: {
545
+ name: "Composite",
546
+ className: "CompilerError"
547
+ }
548
+ }
549
+ }
550
+ },
551
+ isError: true
552
+ }
553
+ },
554
+ requestBody: Parameters.body8,
555
+ urlParameters: [Parameters.$host],
556
+ headerParameters: [Parameters.contentType, Parameters.accept],
557
+ mediaType: "json",
558
+ serializer
559
+ };
560
+ const versionOperationSpec = {
561
+ path: "/version",
562
+ httpMethod: "GET",
563
+ responses: {
564
+ 200: {
565
+ bodyMapper: Mappers.CompilerVersion
566
+ },
567
+ 500: {
568
+ bodyMapper: Mappers.ErrorModel,
569
+ isError: true
570
+ }
571
+ },
572
+ urlParameters: [Parameters.$host],
573
+ headerParameters: [Parameters.accept],
574
+ serializer
575
+ };
576
+ //# sourceMappingURL=compiler.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.mjs","names":["coreClient","coreRestPipeline","Parameters","Mappers","Compiler","ServiceClient","constructor","$host","options","undefined","Error","defaults","requestContentType","packageDetails","userAgentPrefix","userAgentOptions","optionsWithDefaults","baseUri","endpoint","pipeline","getOrderedPolicies","length","pipelinePolicies","bearerTokenAuthenticationPolicyFound","some","pipelinePolicy","name","bearerTokenAuthenticationPolicyName","removePolicy","addPolicy","bearerTokenAuthenticationPolicy","scopes","challengeCallbacks","authorizeRequestOnChallenge","authorizeRequestOnClaimChallenge","generateACI","body","sendOperationRequest","generateACIOperationSpec","api","apiOperationSpec","aPIVersion","aPIVersionOperationSpec","compileContract","compileContractOperationSpec","getCompilerVersion","getCompilerVersionOperationSpec","decodeCallResult","decodeCallResultOperationSpec","decodeCallResultBytecode","decodeCallResultBytecodeOperationSpec","decodeCalldataBytecode","decodeCalldataBytecodeOperationSpec","decodeCalldataSource","decodeCalldataSourceOperationSpec","decodeData","decodeDataOperationSpec","encodeCalldata","encodeCalldataOperationSpec","getFateAssemblerCode","getFateAssemblerCodeOperationSpec","validateByteCode","validateByteCodeOperationSpec","version","versionOperationSpec","serializer","createSerializer","path","httpMethod","responses","bodyMapper","Aci","type","element","className","isError","requestBody","urlParameters","headerParameters","contentType","accept","mediaType","value","ErrorModel","APIVersion","ByteCode","CompilerVersion","body1","body2","DecodedCallresult","body3","DecodedCalldata","body4","body5","SophiaJsonData","body6","Calldata","body7","FateAssembler","body8"],"sources":["../../../src/apis/compiler/compiler.ts"],"sourcesContent":["import * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n CompilerOptionalParams,\n Contract,\n GenerateACIOptionalParams,\n GenerateACIResponse,\n ApiOptionalParams,\n ApiResponse,\n APIVersionOptionalParams,\n APIVersionResponse,\n CompileContractOptionalParams,\n CompileContractResponse,\n ByteCodeInput,\n GetCompilerVersionOptionalParams,\n GetCompilerVersionResponse,\n SophiaCallResultInput,\n DecodeCallResultOptionalParams,\n DecodeCallResultResponse,\n BytecodeCallResultInput,\n DecodeCallResultBytecodeOptionalParams,\n DecodeCallResultBytecodeResponse,\n DecodeCalldataBytecode,\n DecodeCalldataBytecodeOptionalParams,\n DecodeCalldataBytecodeResponse,\n DecodeCalldataSource,\n DecodeCalldataSourceOptionalParams,\n DecodeCalldataSourceResponse,\n SophiaBinaryData,\n DecodeDataOptionalParams,\n DecodeDataResponse,\n FunctionCallInput,\n EncodeCalldataOptionalParams,\n EncodeCalldataResponse,\n GetFateAssemblerCodeOptionalParams,\n GetFateAssemblerCodeResponse,\n ValidateByteCodeInput,\n ValidateByteCodeOptionalParams,\n VersionOptionalParams,\n VersionResponse\n} from \"./models\";\n\nexport class Compiler extends coreClient.ServiceClient {\n $host: string;\n\n /**\n * Initializes a new instance of the Compiler class.\n * @param $host server parameter\n * @param options The parameter options\n */\n constructor($host: string, options?: CompilerOptionalParams) {\n if ($host === undefined) {\n throw new Error(\"'$host' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: CompilerOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-compiler/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{$host}\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.$host = $host;\n }\n\n /**\n * Generate an Aeternity Contract Interface (ACI) for contract\n * @param body contract code\n * @param options The options parameters.\n */\n generateACI(\n body: Contract,\n options?: GenerateACIOptionalParams\n ): Promise<GenerateACIResponse> {\n return this.sendOperationRequest(\n { body, options },\n generateACIOperationSpec\n );\n }\n\n /**\n * Get the Api description\n * @param options The options parameters.\n */\n api(options?: ApiOptionalParams): Promise<ApiResponse> {\n return this.sendOperationRequest({ options }, apiOperationSpec);\n }\n\n /**\n * Get the version of the API\n * @param options The options parameters.\n */\n aPIVersion(options?: APIVersionOptionalParams): Promise<APIVersionResponse> {\n return this.sendOperationRequest({ options }, aPIVersionOperationSpec);\n }\n\n /**\n * Compile a sophia contract from source and return byte code\n * @param body contract code\n * @param options The options parameters.\n */\n compileContract(\n body: Contract,\n options?: CompileContractOptionalParams\n ): Promise<CompileContractResponse> {\n return this.sendOperationRequest(\n { body, options },\n compileContractOperationSpec\n );\n }\n\n /**\n * Extract compiler version from bytecode\n * @param body contract byte array\n * @param options The options parameters.\n */\n getCompilerVersion(\n body: ByteCodeInput,\n options?: GetCompilerVersionOptionalParams\n ): Promise<GetCompilerVersionResponse> {\n return this.sendOperationRequest(\n { body, options },\n getCompilerVersionOperationSpec\n );\n }\n\n /**\n * Decode the result of contract call\n * @param body Binary data in Sophia ABI format\n * @param options The options parameters.\n */\n decodeCallResult(\n body: SophiaCallResultInput,\n options?: DecodeCallResultOptionalParams\n ): Promise<DecodeCallResultResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCallResultOperationSpec\n );\n }\n\n /**\n * Decode the result of contract call from Bytecode\n * @param body Call result + compiled contract\n * @param options The options parameters.\n */\n decodeCallResultBytecode(\n body: BytecodeCallResultInput,\n options?: DecodeCallResultBytecodeOptionalParams\n ): Promise<DecodeCallResultBytecodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCallResultBytecodeOperationSpec\n );\n }\n\n /**\n * Identify function name and arguments in Calldata for a compiled contract\n * @param body Calldata + compiled contract\n * @param options The options parameters.\n */\n decodeCalldataBytecode(\n body: DecodeCalldataBytecode,\n options?: DecodeCalldataBytecodeOptionalParams\n ): Promise<DecodeCalldataBytecodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCalldataBytecodeOperationSpec\n );\n }\n\n /**\n * Identify function name and arguments in Calldata for a (partial) contract\n * @param body Calldata + contract (stub) code\n * @param options The options parameters.\n */\n decodeCalldataSource(\n body: DecodeCalldataSource,\n options?: DecodeCalldataSourceOptionalParams\n ): Promise<DecodeCalldataSourceResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCalldataSourceOperationSpec\n );\n }\n\n /**\n * Decode data as retuned by a contract call. - Legacy decoding\n * @param body Binary data in Sophia ABI format\n * @param options The options parameters.\n */\n decodeData(\n body: SophiaBinaryData,\n options?: DecodeDataOptionalParams\n ): Promise<DecodeDataResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeDataOperationSpec\n );\n }\n\n /**\n * Encode Sophia function call according to sophia ABI.\n * @param body Sophia function call - contract code + function name + arguments\n * @param options The options parameters.\n */\n encodeCalldata(\n body: FunctionCallInput,\n options?: EncodeCalldataOptionalParams\n ): Promise<EncodeCalldataResponse> {\n return this.sendOperationRequest(\n { body, options },\n encodeCalldataOperationSpec\n );\n }\n\n /**\n * Get FATE assembler code from bytecode\n * @param body contract byte array\n * @param options The options parameters.\n */\n getFateAssemblerCode(\n body: ByteCodeInput,\n options?: GetFateAssemblerCodeOptionalParams\n ): Promise<GetFateAssemblerCodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n getFateAssemblerCodeOperationSpec\n );\n }\n\n /**\n * Verify that an encoded byte array is the result of compiling a given contract\n * @param body contract byte array and source code\n * @param options The options parameters.\n */\n validateByteCode(\n body: ValidateByteCodeInput,\n options?: ValidateByteCodeOptionalParams\n ): Promise<void> {\n return this.sendOperationRequest(\n { body, options },\n validateByteCodeOperationSpec\n );\n }\n\n /**\n * Get the version of the underlying Sophia compiler version\n * @param options The options parameters.\n */\n version(options?: VersionOptionalParams): Promise<VersionResponse> {\n return this.sendOperationRequest({ options }, versionOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst generateACIOperationSpec: coreClient.OperationSpec = {\n path: \"/aci\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Aci\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst apiOperationSpec: coreClient.OperationSpec = {\n path: \"/api\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n }\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst aPIVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/api-version\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.APIVersion\n },\n 500: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst compileContractOperationSpec: coreClient.OperationSpec = {\n path: \"/compile\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ByteCode\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getCompilerVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/compiler-version\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CompilerVersion\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body1,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCallResultOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-call-result\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: { type: { name: \"any\" } }\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body2,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCallResultBytecodeOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-call-result/bytecode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCallresult\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body3,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCalldataBytecodeOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-calldata/bytecode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCalldata\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body4,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCalldataSourceOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-calldata/source\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCalldata\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body5,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeDataOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-data\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SophiaJsonData\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body6,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst encodeCalldataOperationSpec: coreClient.OperationSpec = {\n path: \"/encode-calldata\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Calldata\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body7,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getFateAssemblerCodeOperationSpec: coreClient.OperationSpec = {\n path: \"/fate-assembler\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FateAssembler\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body1,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst validateByteCodeOperationSpec: coreClient.OperationSpec = {\n path: \"/validate-byte-code\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body8,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst versionOperationSpec: coreClient.OperationSpec = {\n path: \"/version\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CompilerVersion\n },\n 500: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],"mappings":"AAAA,OAAO,KAAKA,UAAZ,MAA4B,oBAA5B;AACA,OAAO,KAAKC,gBAAZ,MAAkC,2BAAlC;OACO,KAAKC,U;OACL,KAAKC,O;AAyCZ,OAAO,MAAMC,QAAN,SAAuBJ,UAAU,CAACK,aAAlC,CAAgD;EAGrD;AACF;AACA;AACA;AACA;EACEC,WAAW,CAACC,KAAD,EAAgBC,OAAhB,EAAkD;IAAA;;IAC3D,IAAID,KAAK,KAAKE,SAAd,EAAyB;MACvB,MAAM,IAAIC,KAAJ,CAAU,wBAAV,CAAN;IACD,CAH0D,CAK3D;;;IACA,IAAI,CAACF,OAAL,EAAc;MACZA,OAAO,GAAG,EAAV;IACD;;IACD,MAAMG,QAAgC,GAAG;MACvCC,kBAAkB,EAAE;IADmB,CAAzC;IAIA,MAAMC,cAAc,GAAI,gCAAxB;IACA,MAAMC,eAAe,GACnBN,OAAO,CAACO,gBAAR,IAA4BP,OAAO,CAACO,gBAAR,CAAyBD,eAArD,GACK,GAAEN,OAAO,CAACO,gBAAR,CAAyBD,eAAgB,IAAGD,cAAe,EADlE,GAEK,GAAEA,cAAe,EAHxB;IAKA,MAAMG,mBAAmB,GAAG,EAC1B,GAAGL,QADuB;MAE1B,GAAGH,OAFuB;MAG1BO,gBAAgB,EAAE;QAChBD;MADgB,CAHQ;MAM1BG,OAAO,+BAAET,OAAO,CAACU,QAAV,iEAAsBV,OAAO,CAACS,OAA9B,uCAAyC;IANtB,CAA5B;IAQA,MAAMD,mBAAN;;IAEA,I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"./compiler.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["Compiler"],"sources":["../../../src/apis/compiler/index.ts"],"sourcesContent":["export * from \"./models\";\nexport { Compiler } from \"./compiler\";\n"],"mappings":";SACSA,Q"}