@aeternity/aepp-sdk 12.1.3 → 13.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/dist/aepp-sdk.browser-script.js +1 -1
  2. package/dist/aepp-sdk.browser-script.js.map +1 -1
  3. package/dist/aepp-sdk.browser.js +1 -1
  4. package/dist/aepp-sdk.browser.js.map +1 -1
  5. package/dist/aepp-sdk.js +6580 -8859
  6. package/dist/aepp-sdk.js.map +1 -1
  7. package/es/AeSdk.d.ts +7 -3
  8. package/es/AeSdk.mjs +17 -22
  9. package/es/AeSdk.mjs.map +1 -1
  10. package/es/AeSdkAepp.d.ts +6 -5
  11. package/es/AeSdkAepp.mjs +7 -30
  12. package/es/AeSdkAepp.mjs.map +1 -1
  13. package/es/AeSdkBase.d.ts +18 -140
  14. package/es/AeSdkBase.mjs +27 -185
  15. package/es/AeSdkBase.mjs.map +1 -1
  16. package/es/AeSdkMethods.d.ts +124 -0
  17. package/es/AeSdkMethods.mjs +122 -0
  18. package/es/AeSdkMethods.mjs.map +1 -0
  19. package/es/AeSdkWallet.d.ts +7 -21
  20. package/es/AeSdkWallet.mjs +38 -86
  21. package/es/AeSdkWallet.mjs.map +1 -1
  22. package/es/Node.d.ts +7 -12
  23. package/es/Node.mjs +34 -47
  24. package/es/Node.mjs.map +1 -1
  25. package/es/account/Base.d.ts +24 -40
  26. package/es/account/Base.mjs +1 -101
  27. package/es/account/Base.mjs.map +1 -1
  28. package/es/account/Generalized.d.ts +16 -0
  29. package/es/account/Generalized.mjs +111 -0
  30. package/es/account/Generalized.mjs.map +1 -0
  31. package/es/account/Ledger.d.ts +28 -0
  32. package/es/account/Ledger.mjs +101 -0
  33. package/es/account/Ledger.mjs.map +1 -0
  34. package/es/account/LedgerFactory.d.ts +39 -0
  35. package/es/account/LedgerFactory.mjs +81 -0
  36. package/es/account/LedgerFactory.mjs.map +1 -0
  37. package/es/account/Memory.d.ts +13 -17
  38. package/es/account/Memory.mjs +43 -65
  39. package/es/account/Memory.mjs.map +1 -1
  40. package/es/account/Rpc.d.ts +6 -8
  41. package/es/account/Rpc.mjs +14 -32
  42. package/es/account/Rpc.mjs.map +1 -1
  43. package/es/aens.d.ts +3 -3
  44. package/es/aens.mjs +42 -41
  45. package/es/aens.mjs.map +1 -1
  46. package/es/aepp-wallet-communication/connection/Browser.mjs +9 -13
  47. package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
  48. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +3 -7
  49. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
  50. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +1 -1
  51. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +0 -31
  52. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
  53. package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
  54. package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +3 -3
  55. package/es/aepp-wallet-communication/rpc/RpcClient.mjs +4 -41
  56. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
  57. package/es/aepp-wallet-communication/rpc/types.d.ts +7 -1
  58. package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
  59. package/es/aepp-wallet-communication/schema.mjs +14 -68
  60. package/es/aepp-wallet-communication/schema.mjs.map +1 -1
  61. package/es/aepp-wallet-communication/wallet-detector.mjs +0 -3
  62. package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
  63. package/es/apis/compiler/compiler.d.ts +23 -29
  64. package/es/apis/compiler/compiler.mjs +128 -189
  65. package/es/apis/compiler/compiler.mjs.map +1 -1
  66. package/es/apis/compiler/index.mjs.map +1 -1
  67. package/es/apis/compiler/models/index.d.ts +82 -135
  68. package/es/apis/compiler/models/index.mjs +1 -47
  69. package/es/apis/compiler/models/index.mjs.map +1 -1
  70. package/es/apis/compiler/models/mappers.d.ts +8 -8
  71. package/es/apis/compiler/models/mappers.mjs +165 -183
  72. package/es/apis/compiler/models/mappers.mjs.map +1 -1
  73. package/es/apis/compiler/models/parameters.d.ts +0 -1
  74. package/es/apis/compiler/models/parameters.mjs +5 -9
  75. package/es/apis/compiler/models/parameters.mjs.map +1 -1
  76. package/es/apis/node/index.mjs.map +1 -1
  77. package/es/apis/node/models/index.d.ts +48 -48
  78. package/es/apis/node/models/mappers.mjs +12 -6
  79. package/es/apis/node/models/mappers.mjs.map +1 -1
  80. package/es/apis/node/models/parameters.mjs.map +1 -1
  81. package/es/apis/node/node.mjs +43 -84
  82. package/es/apis/node/node.mjs.map +1 -1
  83. package/es/chain.d.ts +1 -1
  84. package/es/chain.mjs +33 -58
  85. package/es/chain.mjs.map +1 -1
  86. package/es/channel/Base.d.ts +195 -0
  87. package/es/channel/Base.mjs +290 -0
  88. package/es/channel/Base.mjs.map +1 -0
  89. package/es/channel/Contract.d.ts +247 -0
  90. package/es/channel/Contract.mjs +420 -0
  91. package/es/channel/Contract.mjs.map +1 -0
  92. package/es/channel/Spend.d.ts +217 -0
  93. package/es/channel/Spend.mjs +383 -0
  94. package/es/channel/Spend.mjs.map +1 -0
  95. package/es/channel/handlers.d.ts +8 -21
  96. package/es/channel/handlers.mjs +141 -891
  97. package/es/channel/handlers.mjs.map +1 -1
  98. package/es/channel/internal.d.ts +27 -21
  99. package/es/channel/internal.mjs +98 -190
  100. package/es/channel/internal.mjs.map +1 -1
  101. package/es/contract/{Compiler.d.ts → CompilerHttp.d.ts} +3 -3
  102. package/es/contract/{Compiler.mjs → CompilerHttp.mjs} +8 -13
  103. package/es/contract/CompilerHttp.mjs.map +1 -0
  104. package/es/contract/Contract.d.ts +235 -0
  105. package/es/contract/Contract.mjs +534 -0
  106. package/es/contract/Contract.mjs.map +1 -0
  107. package/es/contract/ga.d.ts +7 -33
  108. package/es/contract/ga.mjs +20 -112
  109. package/es/contract/ga.mjs.map +1 -1
  110. package/es/index.d.ts +9 -6
  111. package/es/index.mjs +8 -6
  112. package/es/index.mjs.map +1 -1
  113. package/es/oracle.d.ts +5 -5
  114. package/es/oracle.mjs +33 -39
  115. package/es/oracle.mjs.map +1 -1
  116. package/es/spend.d.ts +3 -3
  117. package/es/spend.mjs +17 -20
  118. package/es/spend.mjs.map +1 -1
  119. package/es/tx/builder/constants.d.ts +2 -1
  120. package/es/tx/builder/constants.mjs +12 -12
  121. package/es/tx/builder/constants.mjs.map +1 -1
  122. package/es/tx/builder/field-types/address.d.ts +15 -0
  123. package/es/tx/builder/field-types/address.mjs +42 -0
  124. package/es/tx/builder/field-types/address.mjs.map +1 -0
  125. package/es/tx/builder/field-types/addresses.d.ts +6 -0
  126. package/es/tx/builder/field-types/addresses.mjs +13 -0
  127. package/es/tx/builder/field-types/addresses.mjs.map +1 -0
  128. package/es/tx/builder/field-types/coin-amount.d.ts +1 -2
  129. package/es/tx/builder/field-types/coin-amount.mjs +4 -12
  130. package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
  131. package/es/tx/builder/field-types/deposit.d.ts +0 -1
  132. package/es/tx/builder/field-types/deposit.mjs +2 -4
  133. package/es/tx/builder/field-types/deposit.mjs.map +1 -1
  134. package/es/tx/builder/field-types/enumeration.d.ts +5 -0
  135. package/es/tx/builder/field-types/enumeration.mjs +21 -0
  136. package/es/tx/builder/field-types/enumeration.mjs.map +1 -0
  137. package/es/tx/builder/field-types/fee.d.ts +1 -9
  138. package/es/tx/builder/field-types/fee.mjs +9 -25
  139. package/es/tx/builder/field-types/fee.mjs.map +1 -1
  140. package/es/tx/builder/field-types/field.mjs +0 -2
  141. package/es/tx/builder/field-types/field.mjs.map +1 -1
  142. package/es/tx/builder/field-types/gas-limit.mjs +4 -9
  143. package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
  144. package/es/tx/builder/field-types/gas-price.d.ts +1 -2
  145. package/es/tx/builder/field-types/gas-price.mjs +3 -7
  146. package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
  147. package/es/tx/builder/field-types/index.d.ts +23 -11
  148. package/es/tx/builder/field-types/index.mjs +10 -3
  149. package/es/tx/builder/field-types/index.mjs.map +1 -1
  150. package/es/tx/builder/field-types/name-fee.d.ts +0 -1
  151. package/es/tx/builder/field-types/name-fee.mjs +3 -5
  152. package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
  153. package/es/tx/builder/field-types/name-id.d.ts +1 -4
  154. package/es/tx/builder/field-types/name-id.mjs +4 -10
  155. package/es/tx/builder/field-types/name-id.mjs.map +1 -1
  156. package/es/tx/builder/field-types/name.mjs +0 -2
  157. package/es/tx/builder/field-types/name.mjs.map +1 -1
  158. package/es/tx/builder/field-types/pointers.d.ts +23 -0
  159. package/es/tx/builder/field-types/pointers.mjs +36 -0
  160. package/es/tx/builder/field-types/pointers.mjs.map +1 -0
  161. package/es/tx/builder/field-types/short-u-int.mjs +0 -2
  162. package/es/tx/builder/field-types/short-u-int.mjs.map +1 -1
  163. package/es/tx/builder/field-types/u-int.d.ts +1 -1
  164. package/es/tx/builder/field-types/u-int.mjs +3 -4
  165. package/es/tx/builder/field-types/u-int.mjs.map +1 -1
  166. package/es/tx/builder/helpers.d.ts +2 -32
  167. package/es/tx/builder/helpers.mjs +19 -71
  168. package/es/tx/builder/helpers.mjs.map +1 -1
  169. package/es/tx/builder/index.d.ts +1 -21
  170. package/es/tx/builder/index.mjs +29 -148
  171. package/es/tx/builder/index.mjs.map +1 -1
  172. package/es/tx/builder/schema.d.ts +336 -176
  173. package/es/tx/builder/schema.mjs +71 -78
  174. package/es/tx/builder/schema.mjs.map +1 -1
  175. package/es/tx/index.d.ts +3 -33
  176. package/es/tx/index.mjs +26 -43
  177. package/es/tx/index.mjs.map +1 -1
  178. package/es/tx/validator.d.ts +2 -2
  179. package/es/tx/validator.mjs +86 -59
  180. package/es/tx/validator.mjs.map +1 -1
  181. package/es/typings/{@aeternity__argon2-browser → @aeternity__aepp-calldata}/index.d.mjs +0 -0
  182. package/es/typings/@aeternity__aepp-calldata/index.d.mjs.map +1 -0
  183. package/es/utils/amount-formatter.mjs +4 -10
  184. package/es/utils/amount-formatter.mjs.map +1 -1
  185. package/es/utils/autorest.d.ts +1 -0
  186. package/es/utils/autorest.mjs +17 -19
  187. package/es/utils/autorest.mjs.map +1 -1
  188. package/es/utils/bignumber.mjs +4 -7
  189. package/es/utils/bignumber.mjs.map +1 -1
  190. package/es/utils/bytes.d.ts +0 -17
  191. package/es/utils/bytes.mjs +6 -35
  192. package/es/utils/bytes.mjs.map +1 -1
  193. package/es/utils/crypto.d.ts +15 -8
  194. package/es/utils/crypto.mjs +40 -40
  195. package/es/utils/crypto.mjs.map +1 -1
  196. package/es/utils/encoder-types.d.ts +28 -28
  197. package/es/utils/encoder-types.mjs +0 -1
  198. package/es/utils/encoder-types.mjs.map +1 -1
  199. package/es/utils/encoder.d.ts +0 -1
  200. package/es/utils/encoder.mjs +7 -15
  201. package/es/utils/encoder.mjs.map +1 -1
  202. package/es/utils/errors.d.ts +12 -6
  203. package/es/utils/errors.mjs +87 -163
  204. package/es/utils/errors.mjs.map +1 -1
  205. package/es/utils/hd-wallet.d.ts +27 -19
  206. package/es/utils/hd-wallet.mjs +42 -26
  207. package/es/utils/hd-wallet.mjs.map +1 -1
  208. package/es/utils/json-big.mjs +0 -8
  209. package/es/utils/json-big.mjs.map +1 -1
  210. package/es/utils/keystore.d.ts +2 -0
  211. package/es/utils/keystore.mjs +37 -36
  212. package/es/utils/keystore.mjs.map +1 -1
  213. package/es/utils/mptree.d.ts +1 -1
  214. package/es/utils/mptree.mjs +4 -26
  215. package/es/utils/mptree.mjs.map +1 -1
  216. package/es/utils/other.d.ts +3 -1
  217. package/es/utils/other.mjs +11 -7
  218. package/es/utils/other.mjs.map +1 -1
  219. package/es/utils/semver-satisfies.mjs +0 -3
  220. package/es/utils/semver-satisfies.mjs.map +1 -1
  221. package/es/utils/string.d.ts +0 -12
  222. package/es/utils/string.mjs +1 -21
  223. package/es/utils/string.mjs.map +1 -1
  224. package/package.json +86 -47
  225. package/src/AeSdk.ts +15 -11
  226. package/src/AeSdkAepp.ts +9 -7
  227. package/src/AeSdkBase.ts +28 -202
  228. package/src/AeSdkMethods.ts +170 -0
  229. package/src/AeSdkWallet.ts +16 -47
  230. package/src/Node.ts +11 -15
  231. package/src/account/Base.ts +29 -75
  232. package/src/account/Generalized.ts +98 -0
  233. package/src/account/Ledger.ts +131 -0
  234. package/src/account/LedgerFactory.ts +86 -0
  235. package/src/account/Memory.ts +46 -60
  236. package/src/account/Rpc.ts +17 -26
  237. package/src/aens.ts +10 -9
  238. package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +5 -4
  239. package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +3 -3
  240. package/src/aepp-wallet-communication/rpc/RpcClient.ts +2 -2
  241. package/src/aepp-wallet-communication/rpc/types.ts +11 -1
  242. package/src/aepp-wallet-communication/schema.ts +18 -18
  243. package/src/apis/compiler/code-model-v4.yaml +681 -888
  244. package/src/apis/compiler/compiler.ts +113 -154
  245. package/src/apis/compiler/models/index.ts +80 -140
  246. package/src/apis/compiler/models/mappers.ts +165 -183
  247. package/src/apis/compiler/models/parameters.ts +6 -12
  248. package/src/chain.ts +6 -3
  249. package/src/channel/Base.ts +327 -0
  250. package/src/channel/Contract.ts +487 -0
  251. package/src/channel/Spend.ts +403 -0
  252. package/src/channel/handlers.ts +154 -573
  253. package/src/channel/internal.ts +113 -142
  254. package/src/contract/{Compiler.ts → CompilerHttp.ts} +5 -5
  255. package/src/contract/Contract.ts +620 -0
  256. package/src/contract/ga.ts +18 -104
  257. package/src/index.ts +9 -8
  258. package/src/oracle.ts +7 -7
  259. package/src/spend.ts +5 -13
  260. package/src/tx/builder/constants.ts +1 -0
  261. package/src/tx/builder/field-types/address.ts +52 -0
  262. package/src/tx/builder/field-types/addresses.ts +18 -0
  263. package/src/tx/builder/field-types/coin-amount.ts +2 -8
  264. package/src/tx/builder/field-types/enumeration.ts +21 -0
  265. package/src/tx/builder/field-types/fee.ts +1 -3
  266. package/src/tx/builder/field-types/gas-limit.ts +2 -2
  267. package/src/tx/builder/field-types/gas-price.ts +0 -2
  268. package/src/tx/builder/field-types/index.ts +16 -6
  269. package/src/tx/builder/field-types/name-fee.ts +1 -1
  270. package/src/tx/builder/field-types/name-id.ts +7 -10
  271. package/src/tx/builder/field-types/pointers.ts +41 -0
  272. package/src/tx/builder/field-types/u-int.ts +3 -2
  273. package/src/tx/builder/helpers.ts +10 -60
  274. package/src/tx/builder/index.ts +6 -65
  275. package/src/tx/builder/schema.ts +89 -100
  276. package/src/tx/index.ts +19 -15
  277. package/src/tx/validator.ts +36 -18
  278. package/src/typings/@aeternity__aepp-calldata/index.d.ts +20 -0
  279. package/src/utils/autorest.ts +16 -1
  280. package/src/utils/bytes.ts +5 -33
  281. package/src/utils/crypto.ts +23 -16
  282. package/src/utils/encoder.ts +0 -1
  283. package/src/utils/errors.ts +18 -12
  284. package/src/utils/hd-wallet.ts +30 -9
  285. package/src/utils/keystore.ts +24 -21
  286. package/src/utils/other.ts +16 -1
  287. package/src/utils/string.ts +0 -20
  288. package/types-legacy/ts4.2/AeSdk.d.ts +41 -0
  289. package/types-legacy/ts4.2/AeSdkAepp.d.ts +71 -0
  290. package/types-legacy/ts4.2/AeSdkBase.d.ts +91 -0
  291. package/types-legacy/ts4.2/AeSdkMethods.d.ts +141 -0
  292. package/types-legacy/ts4.2/AeSdkWallet.d.ts +90 -0
  293. package/types-legacy/ts4.2/Node.d.ts +78 -0
  294. package/types-legacy/ts4.2/account/Base.d.ts +52 -0
  295. package/types-legacy/ts4.2/account/Generalized.d.ts +16 -0
  296. package/types-legacy/ts4.2/account/Ledger.d.ts +28 -0
  297. package/types-legacy/ts4.2/account/LedgerFactory.d.ts +39 -0
  298. package/types-legacy/ts4.2/account/Memory.d.ts +22 -0
  299. package/types-legacy/ts4.2/account/Rpc.d.ts +25 -0
  300. package/types-legacy/ts4.2/aens.d.ts +222 -0
  301. package/types-legacy/ts4.2/aepp-wallet-communication/connection/Browser.d.ts +33 -0
  302. package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserRuntime.d.ts +18 -0
  303. package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
  304. package/types-legacy/ts4.2/aepp-wallet-communication/connection-proxy.d.ts +11 -0
  305. package/types-legacy/ts4.2/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
  306. package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +83 -0
  307. package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +133 -0
  308. package/types-legacy/ts4.2/aepp-wallet-communication/wallet-detector.d.ts +25 -0
  309. package/types-legacy/ts4.2/apis/compiler/compiler.d.ts +86 -0
  310. package/types-legacy/ts4.2/apis/compiler/index.d.ts +2 -0
  311. package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +195 -0
  312. package/types-legacy/ts4.2/apis/compiler/models/mappers.d.ts +23 -0
  313. package/types-legacy/ts4.2/apis/compiler/models/parameters.d.ts +12 -0
  314. package/types-legacy/ts4.2/apis/node/index.d.ts +2 -0
  315. package/types-legacy/ts4.2/apis/node/models/index.d.ts +1065 -0
  316. package/types-legacy/ts4.2/apis/node/models/mappers.d.ts +95 -0
  317. package/types-legacy/ts4.2/apis/node/models/parameters.d.ts +17 -0
  318. package/types-legacy/ts4.2/apis/node/node.d.ts +215 -0
  319. package/types-legacy/ts4.2/chain.d.ts +248 -0
  320. package/types-legacy/ts4.2/channel/Base.d.ts +194 -0
  321. package/types-legacy/ts4.2/channel/Contract.d.ts +247 -0
  322. package/types-legacy/ts4.2/channel/Spend.d.ts +217 -0
  323. package/types-legacy/ts4.2/channel/handlers.d.ts +21 -0
  324. package/types-legacy/ts4.2/channel/internal.d.ts +107 -0
  325. package/types-legacy/ts4.2/contract/CompilerHttp.d.ts +18 -0
  326. package/types-legacy/ts4.2/contract/Contract.d.ts +237 -0
  327. package/types-legacy/ts4.2/contract/ga.d.ts +43 -0
  328. package/types-legacy/ts4.2/globals.d.ts +16 -0
  329. package/types-legacy/ts4.2/index.d.ts +39 -0
  330. package/types-legacy/ts4.2/oracle.d.ts +161 -0
  331. package/types-legacy/ts4.2/spend.d.ts +62 -0
  332. package/types-legacy/ts4.2/tx/builder/constants.d.ts +71 -0
  333. package/types-legacy/ts4.2/tx/builder/field-types/address.d.ts +22 -0
  334. package/types-legacy/ts4.2/tx/builder/field-types/addresses.d.ts +6 -0
  335. package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +12 -0
  336. package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +14 -0
  337. package/types-legacy/ts4.2/tx/builder/field-types/enumeration.d.ts +5 -0
  338. package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +17 -0
  339. package/types-legacy/ts4.2/tx/builder/field-types/field.d.ts +6 -0
  340. package/types-legacy/ts4.2/tx/builder/field-types/gas-limit.d.ts +12 -0
  341. package/types-legacy/ts4.2/tx/builder/field-types/gas-price.d.ts +7 -0
  342. package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +85 -0
  343. package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +19 -0
  344. package/types-legacy/ts4.2/tx/builder/field-types/name-id.d.ts +11 -0
  345. package/types-legacy/ts4.2/tx/builder/field-types/name.d.ts +13 -0
  346. package/types-legacy/ts4.2/tx/builder/field-types/pointers.d.ts +26 -0
  347. package/types-legacy/ts4.2/tx/builder/field-types/short-u-int.d.ts +6 -0
  348. package/types-legacy/ts4.2/tx/builder/field-types/u-int.d.ts +8 -0
  349. package/types-legacy/ts4.2/tx/builder/helpers.d.ts +112 -0
  350. package/types-legacy/ts4.2/tx/builder/index.d.ts +68 -0
  351. package/types-legacy/ts4.2/tx/builder/schema.d.ts +2963 -0
  352. package/types-legacy/ts4.2/tx/index.d.ts +34 -0
  353. package/types-legacy/ts4.2/tx/validator.d.ts +20 -0
  354. package/types-legacy/ts4.2/utils/amount-formatter.d.ts +42 -0
  355. package/types-legacy/ts4.2/utils/autorest.d.ts +7 -0
  356. package/types-legacy/ts4.2/utils/bignumber.d.ts +13 -0
  357. package/types-legacy/ts4.2/utils/bytes.d.ts +9 -0
  358. package/types-legacy/ts4.2/utils/crypto.d.ts +95 -0
  359. package/types-legacy/ts4.2/utils/encoder-types.d.ts +61 -0
  360. package/types-legacy/ts4.2/utils/encoder.d.ts +24 -0
  361. package/types-legacy/ts4.2/utils/errors.d.ts +480 -0
  362. package/types-legacy/ts4.2/utils/hd-wallet.d.ts +65 -0
  363. package/types-legacy/ts4.2/utils/json-big.d.ts +5 -0
  364. package/types-legacy/ts4.2/utils/keystore.d.ts +53 -0
  365. package/types-legacy/ts4.2/utils/mptree.d.ts +32 -0
  366. package/types-legacy/ts4.2/utils/other.d.ts +31 -0
  367. package/types-legacy/ts4.2/utils/semver-satisfies.d.ts +1 -0
  368. package/types-legacy/ts4.2/utils/string.d.ts +12 -0
  369. package/types-legacy/ts4.5/AeSdk.d.ts +41 -0
  370. package/types-legacy/ts4.5/AeSdkAepp.d.ts +71 -0
  371. package/types-legacy/ts4.5/AeSdkBase.d.ts +91 -0
  372. package/types-legacy/ts4.5/AeSdkMethods.d.ts +141 -0
  373. package/types-legacy/ts4.5/AeSdkWallet.d.ts +90 -0
  374. package/types-legacy/ts4.5/Node.d.ts +78 -0
  375. package/types-legacy/ts4.5/account/Base.d.ts +52 -0
  376. package/types-legacy/ts4.5/account/Generalized.d.ts +16 -0
  377. package/types-legacy/ts4.5/account/Ledger.d.ts +28 -0
  378. package/types-legacy/ts4.5/account/LedgerFactory.d.ts +39 -0
  379. package/types-legacy/ts4.5/account/Memory.d.ts +22 -0
  380. package/types-legacy/ts4.5/account/Rpc.d.ts +25 -0
  381. package/types-legacy/ts4.5/aens.d.ts +222 -0
  382. package/types-legacy/ts4.5/aepp-wallet-communication/connection/Browser.d.ts +33 -0
  383. package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserRuntime.d.ts +18 -0
  384. package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
  385. package/types-legacy/ts4.5/aepp-wallet-communication/connection-proxy.d.ts +11 -0
  386. package/types-legacy/ts4.5/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
  387. package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +83 -0
  388. package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +133 -0
  389. package/types-legacy/ts4.5/aepp-wallet-communication/wallet-detector.d.ts +25 -0
  390. package/types-legacy/ts4.5/apis/compiler/compiler.d.ts +86 -0
  391. package/types-legacy/ts4.5/apis/compiler/index.d.ts +2 -0
  392. package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +195 -0
  393. package/types-legacy/ts4.5/apis/compiler/models/mappers.d.ts +23 -0
  394. package/types-legacy/ts4.5/apis/compiler/models/parameters.d.ts +12 -0
  395. package/types-legacy/ts4.5/apis/node/index.d.ts +2 -0
  396. package/types-legacy/ts4.5/apis/node/models/index.d.ts +1065 -0
  397. package/types-legacy/ts4.5/apis/node/models/mappers.d.ts +95 -0
  398. package/types-legacy/ts4.5/apis/node/models/parameters.d.ts +17 -0
  399. package/types-legacy/ts4.5/apis/node/node.d.ts +215 -0
  400. package/types-legacy/ts4.5/chain.d.ts +248 -0
  401. package/types-legacy/ts4.5/channel/Base.d.ts +194 -0
  402. package/types-legacy/ts4.5/channel/Contract.d.ts +247 -0
  403. package/types-legacy/ts4.5/channel/Spend.d.ts +217 -0
  404. package/types-legacy/ts4.5/channel/handlers.d.ts +21 -0
  405. package/types-legacy/ts4.5/channel/internal.d.ts +107 -0
  406. package/types-legacy/ts4.5/contract/CompilerHttp.d.ts +18 -0
  407. package/types-legacy/ts4.5/contract/Contract.d.ts +237 -0
  408. package/types-legacy/ts4.5/contract/ga.d.ts +43 -0
  409. package/types-legacy/ts4.5/index.d.ts +38 -0
  410. package/types-legacy/ts4.5/oracle.d.ts +161 -0
  411. package/types-legacy/ts4.5/spend.d.ts +62 -0
  412. package/types-legacy/ts4.5/tx/builder/constants.d.ts +71 -0
  413. package/types-legacy/ts4.5/tx/builder/field-types/address.d.ts +22 -0
  414. package/types-legacy/ts4.5/tx/builder/field-types/addresses.d.ts +6 -0
  415. package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +12 -0
  416. package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +14 -0
  417. package/types-legacy/ts4.5/tx/builder/field-types/enumeration.d.ts +5 -0
  418. package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +17 -0
  419. package/types-legacy/ts4.5/tx/builder/field-types/field.d.ts +6 -0
  420. package/types-legacy/ts4.5/tx/builder/field-types/gas-limit.d.ts +12 -0
  421. package/types-legacy/ts4.5/tx/builder/field-types/gas-price.d.ts +7 -0
  422. package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +85 -0
  423. package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +19 -0
  424. package/types-legacy/ts4.5/tx/builder/field-types/name-id.d.ts +11 -0
  425. package/types-legacy/ts4.5/tx/builder/field-types/name.d.ts +13 -0
  426. package/types-legacy/ts4.5/tx/builder/field-types/pointers.d.ts +26 -0
  427. package/types-legacy/ts4.5/tx/builder/field-types/short-u-int.d.ts +6 -0
  428. package/types-legacy/ts4.5/tx/builder/field-types/u-int.d.ts +8 -0
  429. package/types-legacy/ts4.5/tx/builder/helpers.d.ts +112 -0
  430. package/types-legacy/ts4.5/tx/builder/index.d.ts +68 -0
  431. package/types-legacy/ts4.5/tx/builder/schema.d.ts +2963 -0
  432. package/types-legacy/ts4.5/tx/index.d.ts +34 -0
  433. package/types-legacy/ts4.5/tx/validator.d.ts +20 -0
  434. package/types-legacy/ts4.5/utils/amount-formatter.d.ts +42 -0
  435. package/types-legacy/ts4.5/utils/autorest.d.ts +7 -0
  436. package/types-legacy/ts4.5/utils/bignumber.d.ts +13 -0
  437. package/types-legacy/ts4.5/utils/bytes.d.ts +9 -0
  438. package/types-legacy/ts4.5/utils/crypto.d.ts +95 -0
  439. package/types-legacy/ts4.5/utils/encoder-types.d.ts +61 -0
  440. package/types-legacy/ts4.5/utils/encoder.d.ts +24 -0
  441. package/types-legacy/ts4.5/utils/errors.d.ts +480 -0
  442. package/types-legacy/ts4.5/utils/hd-wallet.d.ts +65 -0
  443. package/types-legacy/ts4.5/utils/json-big.d.ts +5 -0
  444. package/types-legacy/ts4.5/utils/keystore.d.ts +53 -0
  445. package/types-legacy/ts4.5/utils/mptree.d.ts +32 -0
  446. package/types-legacy/ts4.5/utils/other.d.ts +31 -0
  447. package/types-legacy/ts4.5/utils/semver-satisfies.d.ts +1 -0
  448. package/types-legacy/ts4.5/utils/string.d.ts +12 -0
  449. package/es/channel/index.d.ts +0 -625
  450. package/es/channel/index.mjs +0 -975
  451. package/es/channel/index.mjs.map +0 -1
  452. package/es/contract/Compiler.mjs.map +0 -1
  453. package/es/contract/aci.d.ts +0 -127
  454. package/es/contract/aci.mjs +0 -508
  455. package/es/contract/aci.mjs.map +0 -1
  456. package/es/contract/methods.d.ts +0 -71
  457. package/es/contract/methods.mjs +0 -104
  458. package/es/contract/methods.mjs.map +0 -1
  459. package/es/deprecated/index.d.ts +0 -143
  460. package/es/deprecated/index.mjs +0 -162
  461. package/es/deprecated/index.mjs.map +0 -1
  462. package/es/deprecated/methods.d.ts +0 -18
  463. package/es/deprecated/methods.mjs +0 -26
  464. package/es/deprecated/methods.mjs.map +0 -1
  465. package/es/tx/builder/address.d.ts +0 -25
  466. package/es/tx/builder/address.mjs +0 -45
  467. package/es/tx/builder/address.mjs.map +0 -1
  468. package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +0 -1
  469. package/src/channel/index.ts +0 -1025
  470. package/src/contract/aci.ts +0 -537
  471. package/src/contract/methods.ts +0 -123
  472. package/src/deprecated/index.ts +0 -172
  473. package/src/deprecated/methods.ts +0 -25
  474. package/src/tx/builder/address.ts +0 -50
  475. package/src/typings/@aeternity__argon2-browser/index.d.ts +0 -3
@@ -1 +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,cA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N;EAJI,CAH0C;EAYrDE,aAAa,EAAE,CAAC3E,UAAU,CAACK,KAAZ,CAZsC;EAarDuE,gBAAgB,EAAE,CAAC5E,UAAU,CAAC8E,MAAZ,CAbmC;EAcrDf;AAdqD,CAAvD"}
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","compileContract","compileContractOperationSpec","decodeCallResult","decodeCallResultOperationSpec","decodeCallResultBytecode","decodeCallResultBytecodeOperationSpec","encodeCalldata","encodeCalldataOperationSpec","decodeCalldataBytecode","decodeCalldataBytecodeOperationSpec","decodeCalldataSource","decodeCalldataSourceOperationSpec","getFateAssemblerCode","getFateAssemblerCodeOperationSpec","validateByteCode","validateByteCodeOperationSpec","getCompilerVersion","getCompilerVersionOperationSpec","version","versionOperationSpec","apiVersion","apiVersionOperationSpec","api","apiOperationSpec","serializer","createSerializer","path","httpMethod","responses","bodyMapper","Aci","type","element","className","isError","requestBody","urlParameters","headerParameters","contentType","accept","mediaType","ByteCode","body1","DecodedCallresult","body2","Calldata","body3","DecodedCalldata","ErrorModel","body4","body5","FateAssembler","body6","body7","CompilerVersion","ApiVersion","value"],"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 CompileContractOptionalParams,\n CompileContractResponse,\n SophiaCallResultInput,\n DecodeCallResultOptionalParams,\n DecodeCallResultResponse,\n BytecodeCallResultInput,\n DecodeCallResultBytecodeOptionalParams,\n DecodeCallResultBytecodeResponse,\n FunctionCallInput,\n EncodeCalldataOptionalParams,\n EncodeCalldataResponse,\n DecodeCalldataBytecode,\n DecodeCalldataBytecodeOptionalParams,\n DecodeCalldataBytecodeResponse,\n DecodeCalldataSource,\n DecodeCalldataSourceOptionalParams,\n DecodeCalldataSourceResponse,\n ByteCodeInput,\n GetFateAssemblerCodeOptionalParams,\n GetFateAssemblerCodeResponse,\n ValidateByteCodeInput,\n ValidateByteCodeOptionalParams,\n GetCompilerVersionOptionalParams,\n GetCompilerVersionResponse,\n VersionOptionalParams,\n VersionResponse,\n ApiVersionOptionalParams,\n ApiVersionResponse,\n ApiOptionalParams,\n ApiResponse\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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 /**\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 * 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// 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 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 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.body1,\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.body2,\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.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 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.body6,\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.body7,\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.body6,\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};\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 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};\n"],"mappings":"AAAA,OAAO,KAAKA,UAAU,MAAM,oBAAoB;AAChD,OAAO,KAAKC,gBAAgB,MAAM,2BAA2B;AAAC,OACvD,KAAKC,UAAU;AAAA,OACf,KAAKC,OAAO;AAsCnB,OAAO,MAAMC,QAAQ,SAASJ,UAAU,CAACK,aAAa,CAAC;EAGrD;AACF;AACA;AACA;AACA;EACEC,WAAW,CAACC,KAAa,EAAEC,OAAgC,EAAE;IAAA;IAC3D,IAAID,KAAK,KAAKE,SAAS,EAAE;MACvB,MAAM,IAAIC,KAAK,CAAC,wBAAwB,CAAC;IAC3C;;IAEA;IACA,IAAI,CAACF,OAAO,EAAE;MACZA,OAAO,GAAG,CAAC,CAAC;IACd;IACA,MAAMG,QAAgC,GAAG;MACvCC,kBAAkB,EAAE;IACtB,CAAC;IAED,MAAMC,cAAc,GAAI,gCAA+B;IACvD,MAAMC,eAAe,GACnBN,OAAO,CAACO,gBAAgB,IAAIP,OAAO,CAACO,gBAAgB,CAACD,eAAe,GAC/D,GAAEN,OAAO,CAACO,gBAAgB,CAACD,eAAgB,IAAGD,cAAe,EAAC,GAC9D,GAAEA,cAAe,EAAC;IAEzB,MAAMG,mBAAmB,GAAG;MAC1B,GAAGL,QAAQ;MACX,GAAGH,OAAO;MACVO,gBAAgB,EAAE;QAChBD;MACF,CAAC;MACDG,OAAO,+BAAET,OAAO,CAACU,QAAQ,iEAAIV,OAAO,CAACS,OAAO,uCAAI;IAClD,CAAC;IACD,KAAK,CAACD,mBAAmB,CAAC;IAE1B,IAAI,YAAAR,OAAO,qCAAP,SAASW,QAAQ,IAAIX,OAAO,CAACW,QAAQ,CAACC,kBAAkB,EAAE,CAACC,MAAM,GAAG,CAAC,EAAE;MACzE,MAAMC,gBAAmD,GAAGd,OAAO,CAACW,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AC1E,UAAU,CAAC4E,MAAM,CAAC;EACrCf;AACF,CAAC"}
@@ -1 +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"}
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,QAAQ"}
@@ -1,11 +1,9 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  export interface Contract {
3
3
  code: string;
4
- options: CompileOpts;
4
+ options?: CompileOpts;
5
5
  }
6
6
  export interface CompileOpts {
7
- /** Compiler backend; fate | aevm */
8
- backend?: CompileOptsBackend;
9
7
  /** An explicit file system, mapping file names to file content */
10
8
  fileSystem?: Record<string, unknown>;
11
9
  /** Name of contract source file - only used in error messages */
@@ -18,104 +16,84 @@ export interface Aci {
18
16
  interface: string;
19
17
  }
20
18
  export interface CompilerError {
21
- context?: string;
22
- message: string;
23
- pos: ErrorPos;
24
19
  type: string;
20
+ pos: ErrorPos;
21
+ message: string;
22
+ context?: string;
25
23
  }
26
24
  export interface ErrorPos {
27
- col: number;
28
25
  file?: string;
29
26
  line: number;
30
- }
31
- export interface ErrorModel {
32
- reason: string;
33
- }
34
- export interface APIVersion {
35
- /** API compiler version */
36
- apiVersion: string;
27
+ col: number;
37
28
  }
38
29
  export interface ByteCode {
39
30
  /** Prefixed (cb_) Base64Check encoded byte array */
40
31
  bytecode: string;
41
32
  }
42
- export interface ByteCodeInput {
43
- /** Compiled contract */
44
- bytecode: string;
45
- }
46
- export interface CompilerVersion {
47
- /** Sophia compiler version */
48
- version: string;
49
- }
50
33
  export interface SophiaCallResultInput {
34
+ /** (Possibly partial) Sophia contract code/interface */
35
+ source: string;
36
+ options?: CompileOpts;
37
+ /** Name of the called function */
38
+ function: string;
51
39
  /** Call result type (ok | revert | error) */
52
40
  callResult: string;
53
41
  /** Call result value (ABI encoded data or error string) */
54
42
  callValue: string;
55
- /** Name of the called function */
56
- function: string;
57
- options?: CompileOpts;
58
- /** (Possibly partial) Sophia contract code/interface */
59
- source: string;
60
43
  }
61
44
  export interface BytecodeCallResultInput {
62
- /** Compiler backend; fate | aevm */
63
- backend?: BytecodeCallResultInputBackend;
64
45
  /** Compiled contract */
65
46
  bytecode: string;
47
+ /** Name of the called function */
48
+ function: string;
66
49
  /** Call result type (ok | revert | error) */
67
50
  callResult: string;
68
51
  /** Call result value (ABI encoded data or error string) */
69
52
  callValue: string;
70
- /** Name of the called function */
71
- function: string;
72
53
  }
73
54
  export interface DecodedCallresult {
74
55
  function: string;
75
56
  /** Any object */
76
57
  result: Record<string, unknown>;
77
58
  }
59
+ export interface FunctionCallInput {
60
+ /** (Possibly partial) Sophia contract code */
61
+ source: string;
62
+ options?: CompileOpts;
63
+ /** Name of function to call */
64
+ function: string;
65
+ /** Array of function call arguments */
66
+ arguments: string[];
67
+ }
68
+ export interface Calldata {
69
+ /** Prefixed (cb_) Base64Check encoded byte array */
70
+ calldata: string;
71
+ }
78
72
  export interface DecodeCalldataBytecode {
79
- /** Compiler backend; fate | aevm */
80
- backend?: DecodeCalldataBytecodeBackend;
81
- /** Compiled contract */
82
- bytecode: string;
83
73
  /** Calldata to dissect */
84
74
  calldata: string;
75
+ /** Compiled contract */
76
+ bytecode: string;
85
77
  }
86
78
  export interface DecodedCalldata {
87
- arguments: Record<string, unknown>[];
88
79
  function: string;
80
+ arguments: Record<string, unknown>[];
81
+ }
82
+ export interface ErrorModel {
83
+ reason: string;
89
84
  }
90
85
  export interface DecodeCalldataSource {
86
+ /** (Possibly partial) Sophia contract code */
87
+ source: string;
88
+ options?: CompileOpts;
91
89
  /** Calldata to dissect */
92
90
  calldata: string;
93
91
  /** Name of the function to call */
94
92
  function: string;
95
- options?: CompileOpts;
96
- /** (Possibly partial) Sophia contract code */
97
- source: string;
98
- }
99
- export interface SophiaBinaryData {
100
- data: string;
101
- sophiaType: string;
102
- }
103
- export interface SophiaJsonData {
104
- /** Any object */
105
- data: Record<string, unknown>;
106
- }
107
- export interface FunctionCallInput {
108
- /** Array of function call arguments */
109
- arguments: string[];
110
- /** Name of function to call */
111
- function: string;
112
- options?: CompileOpts;
113
- /** (Possibly partial) Sophia contract code */
114
- source: string;
115
93
  }
116
- export interface Calldata {
117
- /** Prefixed (cb_) Base64Check encoded byte array */
118
- calldata: string;
94
+ export interface ByteCodeInput {
95
+ /** Compiled contract */
96
+ bytecode: string;
119
97
  }
120
98
  export interface FateAssembler {
121
99
  /** Fate assembler code */
@@ -124,82 +102,41 @@ export interface FateAssembler {
124
102
  export interface ValidateByteCodeInput {
125
103
  /** Compiled contract */
126
104
  bytecode: string;
127
- options: CompileOpts;
128
105
  /** Sophia contract source code */
129
106
  source: string;
107
+ options?: CompileOpts;
130
108
  }
131
- /** Known values of {@link CompileOptsBackend} that the service accepts. */
132
- export declare enum KnownCompileOptsBackend {
133
- Fate = "fate",
134
- Aevm = "aevm"
135
- }
136
- /**
137
- * Defines values for CompileOptsBackend. \
138
- * {@link KnownCompileOptsBackend} can be used interchangeably with CompileOptsBackend,
139
- * this enum contains the known values that the service supports.
140
- * ### Known values supported by the service
141
- * **fate** \
142
- * **aevm**
143
- */
144
- export declare type CompileOptsBackend = string;
145
- /** Known values of {@link BytecodeCallResultInputBackend} that the service accepts. */
146
- export declare enum KnownBytecodeCallResultInputBackend {
147
- Fate = "fate",
148
- Aevm = "aevm"
149
- }
150
- /**
151
- * Defines values for BytecodeCallResultInputBackend. \
152
- * {@link KnownBytecodeCallResultInputBackend} can be used interchangeably with BytecodeCallResultInputBackend,
153
- * this enum contains the known values that the service supports.
154
- * ### Known values supported by the service
155
- * **fate** \
156
- * **aevm**
157
- */
158
- export declare type BytecodeCallResultInputBackend = string;
159
- /** Known values of {@link DecodeCalldataBytecodeBackend} that the service accepts. */
160
- export declare enum KnownDecodeCalldataBytecodeBackend {
161
- Fate = "fate",
162
- Aevm = "aevm"
163
- }
164
- /**
165
- * Defines values for DecodeCalldataBytecodeBackend. \
166
- * {@link KnownDecodeCalldataBytecodeBackend} can be used interchangeably with DecodeCalldataBytecodeBackend,
167
- * this enum contains the known values that the service supports.
168
- * ### Known values supported by the service
169
- * **fate** \
170
- * **aevm**
171
- */
172
- export declare type DecodeCalldataBytecodeBackend = string;
173
- /** Optional parameters. */
174
- export interface GenerateACIOptionalParams extends coreClient.OperationOptions {
109
+ export interface CompilerVersion {
110
+ /** Sophia compiler version */
111
+ version: string;
175
112
  }
176
- /** Contains response data for the generateACI operation. */
177
- export declare type GenerateACIResponse = Aci;
178
- /** Optional parameters. */
179
- export interface ApiOptionalParams extends coreClient.OperationOptions {
113
+ export interface ApiVersion {
114
+ /** API compiler version */
115
+ apiVersion: string;
116
+ }
117
+ export interface SophiaBinaryData {
118
+ sophiaType: string;
119
+ data: string;
120
+ }
121
+ export interface SophiaJsonData {
122
+ /** Any object */
123
+ data: Record<string, unknown>;
180
124
  }
181
- /** Contains response data for the api operation. */
182
- export declare type ApiResponse = Record<string, unknown>;
183
125
  /** Optional parameters. */
184
- export interface APIVersionOptionalParams extends coreClient.OperationOptions {
126
+ export interface GenerateACIOptionalParams extends coreClient.OperationOptions {
185
127
  }
186
- /** Contains response data for the aPIVersion operation. */
187
- export declare type APIVersionResponse = APIVersion;
128
+ /** Contains response data for the generateACI operation. */
129
+ export type GenerateACIResponse = Aci;
188
130
  /** Optional parameters. */
189
131
  export interface CompileContractOptionalParams extends coreClient.OperationOptions {
190
132
  }
191
133
  /** Contains response data for the compileContract operation. */
192
- export declare type CompileContractResponse = ByteCode;
193
- /** Optional parameters. */
194
- export interface GetCompilerVersionOptionalParams extends coreClient.OperationOptions {
195
- }
196
- /** Contains response data for the getCompilerVersion operation. */
197
- export declare type GetCompilerVersionResponse = CompilerVersion;
134
+ export type CompileContractResponse = ByteCode;
198
135
  /** Optional parameters. */
199
136
  export interface DecodeCallResultOptionalParams extends coreClient.OperationOptions {
200
137
  }
201
138
  /** Contains response data for the decodeCallResult operation. */
202
- export declare type DecodeCallResultResponse = {
139
+ export type DecodeCallResultResponse = {
203
140
  /** The parsed response body. */
204
141
  body: any;
205
142
  };
@@ -207,40 +144,50 @@ export declare type DecodeCallResultResponse = {
207
144
  export interface DecodeCallResultBytecodeOptionalParams extends coreClient.OperationOptions {
208
145
  }
209
146
  /** Contains response data for the decodeCallResultBytecode operation. */
210
- export declare type DecodeCallResultBytecodeResponse = DecodedCallresult;
147
+ export type DecodeCallResultBytecodeResponse = DecodedCallresult;
148
+ /** Optional parameters. */
149
+ export interface EncodeCalldataOptionalParams extends coreClient.OperationOptions {
150
+ }
151
+ /** Contains response data for the encodeCalldata operation. */
152
+ export type EncodeCalldataResponse = Calldata;
211
153
  /** Optional parameters. */
212
154
  export interface DecodeCalldataBytecodeOptionalParams extends coreClient.OperationOptions {
213
155
  }
214
156
  /** Contains response data for the decodeCalldataBytecode operation. */
215
- export declare type DecodeCalldataBytecodeResponse = DecodedCalldata;
157
+ export type DecodeCalldataBytecodeResponse = DecodedCalldata;
216
158
  /** Optional parameters. */
217
159
  export interface DecodeCalldataSourceOptionalParams extends coreClient.OperationOptions {
218
160
  }
219
161
  /** Contains response data for the decodeCalldataSource operation. */
220
- export declare type DecodeCalldataSourceResponse = DecodedCalldata;
221
- /** Optional parameters. */
222
- export interface DecodeDataOptionalParams extends coreClient.OperationOptions {
223
- }
224
- /** Contains response data for the decodeData operation. */
225
- export declare type DecodeDataResponse = SophiaJsonData;
226
- /** Optional parameters. */
227
- export interface EncodeCalldataOptionalParams extends coreClient.OperationOptions {
228
- }
229
- /** Contains response data for the encodeCalldata operation. */
230
- export declare type EncodeCalldataResponse = Calldata;
162
+ export type DecodeCalldataSourceResponse = DecodedCalldata;
231
163
  /** Optional parameters. */
232
164
  export interface GetFateAssemblerCodeOptionalParams extends coreClient.OperationOptions {
233
165
  }
234
166
  /** Contains response data for the getFateAssemblerCode operation. */
235
- export declare type GetFateAssemblerCodeResponse = FateAssembler;
167
+ export type GetFateAssemblerCodeResponse = FateAssembler;
236
168
  /** Optional parameters. */
237
169
  export interface ValidateByteCodeOptionalParams extends coreClient.OperationOptions {
238
170
  }
239
171
  /** Optional parameters. */
172
+ export interface GetCompilerVersionOptionalParams extends coreClient.OperationOptions {
173
+ }
174
+ /** Contains response data for the getCompilerVersion operation. */
175
+ export type GetCompilerVersionResponse = CompilerVersion;
176
+ /** Optional parameters. */
240
177
  export interface VersionOptionalParams extends coreClient.OperationOptions {
241
178
  }
242
179
  /** Contains response data for the version operation. */
243
- export declare type VersionResponse = CompilerVersion;
180
+ export type VersionResponse = CompilerVersion;
181
+ /** Optional parameters. */
182
+ export interface ApiVersionOptionalParams extends coreClient.OperationOptions {
183
+ }
184
+ /** Contains response data for the apiVersion operation. */
185
+ export type ApiVersionResponse = ApiVersion;
186
+ /** Optional parameters. */
187
+ export interface ApiOptionalParams extends coreClient.OperationOptions {
188
+ }
189
+ /** Contains response data for the api operation. */
190
+ export type ApiResponse = Record<string, unknown>;
244
191
  /** Optional parameters. */
245
192
  export interface CompilerOptionalParams extends coreClient.ServiceClientOptions {
246
193
  /** Overrides client endpoint. */
@@ -1,48 +1,2 @@
1
- /** Known values of {@link CompileOptsBackend} that the service accepts. */
2
- export let KnownCompileOptsBackend;
3
- /**
4
- * Defines values for CompileOptsBackend. \
5
- * {@link KnownCompileOptsBackend} can be used interchangeably with CompileOptsBackend,
6
- * this enum contains the known values that the service supports.
7
- * ### Known values supported by the service
8
- * **fate** \
9
- * **aevm**
10
- */
11
-
12
- (function (KnownCompileOptsBackend) {
13
- KnownCompileOptsBackend["Fate"] = "fate";
14
- KnownCompileOptsBackend["Aevm"] = "aevm";
15
- })(KnownCompileOptsBackend || (KnownCompileOptsBackend = {}));
16
-
17
- /** Known values of {@link BytecodeCallResultInputBackend} that the service accepts. */
18
- export let KnownBytecodeCallResultInputBackend;
19
- /**
20
- * Defines values for BytecodeCallResultInputBackend. \
21
- * {@link KnownBytecodeCallResultInputBackend} can be used interchangeably with BytecodeCallResultInputBackend,
22
- * this enum contains the known values that the service supports.
23
- * ### Known values supported by the service
24
- * **fate** \
25
- * **aevm**
26
- */
27
-
28
- (function (KnownBytecodeCallResultInputBackend) {
29
- KnownBytecodeCallResultInputBackend["Fate"] = "fate";
30
- KnownBytecodeCallResultInputBackend["Aevm"] = "aevm";
31
- })(KnownBytecodeCallResultInputBackend || (KnownBytecodeCallResultInputBackend = {}));
32
-
33
- /** Known values of {@link DecodeCalldataBytecodeBackend} that the service accepts. */
34
- export let KnownDecodeCalldataBytecodeBackend;
35
- /**
36
- * Defines values for DecodeCalldataBytecodeBackend. \
37
- * {@link KnownDecodeCalldataBytecodeBackend} can be used interchangeably with DecodeCalldataBytecodeBackend,
38
- * this enum contains the known values that the service supports.
39
- * ### Known values supported by the service
40
- * **fate** \
41
- * **aevm**
42
- */
43
-
44
- (function (KnownDecodeCalldataBytecodeBackend) {
45
- KnownDecodeCalldataBytecodeBackend["Fate"] = "fate";
46
- KnownDecodeCalldataBytecodeBackend["Aevm"] = "aevm";
47
- })(KnownDecodeCalldataBytecodeBackend || (KnownDecodeCalldataBytecodeBackend = {}));
1
+ export {};
48
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["KnownCompileOptsBackend","KnownBytecodeCallResultInputBackend","KnownDecodeCalldataBytecodeBackend"],"sources":["../../../../src/apis/compiler/models/index.ts"],"sourcesContent":["import * as coreClient from \"@azure/core-client\";\n\nexport interface Contract {\n code: string;\n options: CompileOpts;\n}\n\nexport interface CompileOpts {\n /** Compiler backend; fate | aevm */\n backend?: CompileOptsBackend;\n /** An explicit file system, mapping file names to file content */\n fileSystem?: Record<string, unknown>;\n /** Name of contract source file - only used in error messages */\n srcFile?: string;\n}\n\nexport interface Aci {\n /** Any object */\n encodedAci: Record<string, unknown>;\n externalEncodedAci?: Record<string, unknown>[];\n interface: string;\n}\n\nexport interface CompilerError {\n context?: string;\n message: string;\n pos: ErrorPos;\n type: string;\n}\n\nexport interface ErrorPos {\n col: number;\n file?: string;\n line: number;\n}\n\nexport interface ErrorModel {\n reason: string;\n}\n\nexport interface APIVersion {\n /** API compiler version */\n apiVersion: string;\n}\n\nexport interface ByteCode {\n /** Prefixed (cb_) Base64Check encoded byte array */\n bytecode: string;\n}\n\nexport interface ByteCodeInput {\n /** Compiled contract */\n bytecode: string;\n}\n\nexport interface CompilerVersion {\n /** Sophia compiler version */\n version: string;\n}\n\nexport interface SophiaCallResultInput {\n /** Call result type (ok | revert | error) */\n callResult: string;\n /** Call result value (ABI encoded data or error string) */\n callValue: string;\n /** Name of the called function */\n function: string;\n options?: CompileOpts;\n /** (Possibly partial) Sophia contract code/interface */\n source: string;\n}\n\nexport interface BytecodeCallResultInput {\n /** Compiler backend; fate | aevm */\n backend?: BytecodeCallResultInputBackend;\n /** Compiled contract */\n bytecode: string;\n /** Call result type (ok | revert | error) */\n callResult: string;\n /** Call result value (ABI encoded data or error string) */\n callValue: string;\n /** Name of the called function */\n function: string;\n}\n\nexport interface DecodedCallresult {\n function: string;\n /** Any object */\n result: Record<string, unknown>;\n}\n\nexport interface DecodeCalldataBytecode {\n /** Compiler backend; fate | aevm */\n backend?: DecodeCalldataBytecodeBackend;\n /** Compiled contract */\n bytecode: string;\n /** Calldata to dissect */\n calldata: string;\n}\n\nexport interface DecodedCalldata {\n arguments: Record<string, unknown>[];\n function: string;\n}\n\nexport interface DecodeCalldataSource {\n /** Calldata to dissect */\n calldata: string;\n /** Name of the function to call */\n function: string;\n options?: CompileOpts;\n /** (Possibly partial) Sophia contract code */\n source: string;\n}\n\nexport interface SophiaBinaryData {\n data: string;\n sophiaType: string;\n}\n\nexport interface SophiaJsonData {\n /** Any object */\n data: Record<string, unknown>;\n}\n\nexport interface FunctionCallInput {\n /** Array of function call arguments */\n arguments: string[];\n /** Name of function to call */\n function: string;\n options?: CompileOpts;\n /** (Possibly partial) Sophia contract code */\n source: string;\n}\n\nexport interface Calldata {\n /** Prefixed (cb_) Base64Check encoded byte array */\n calldata: string;\n}\n\nexport interface FateAssembler {\n /** Fate assembler code */\n fateAssembler: string;\n}\n\nexport interface ValidateByteCodeInput {\n /** Compiled contract */\n bytecode: string;\n options: CompileOpts;\n /** Sophia contract source code */\n source: string;\n}\n\n/** Known values of {@link CompileOptsBackend} that the service accepts. */\nexport enum KnownCompileOptsBackend {\n Fate = \"fate\",\n Aevm = \"aevm\"\n}\n\n/**\n * Defines values for CompileOptsBackend. \\\n * {@link KnownCompileOptsBackend} can be used interchangeably with CompileOptsBackend,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **fate** \\\n * **aevm**\n */\nexport type CompileOptsBackend = string;\n\n/** Known values of {@link BytecodeCallResultInputBackend} that the service accepts. */\nexport enum KnownBytecodeCallResultInputBackend {\n Fate = \"fate\",\n Aevm = \"aevm\"\n}\n\n/**\n * Defines values for BytecodeCallResultInputBackend. \\\n * {@link KnownBytecodeCallResultInputBackend} can be used interchangeably with BytecodeCallResultInputBackend,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **fate** \\\n * **aevm**\n */\nexport type BytecodeCallResultInputBackend = string;\n\n/** Known values of {@link DecodeCalldataBytecodeBackend} that the service accepts. */\nexport enum KnownDecodeCalldataBytecodeBackend {\n Fate = \"fate\",\n Aevm = \"aevm\"\n}\n\n/**\n * Defines values for DecodeCalldataBytecodeBackend. \\\n * {@link KnownDecodeCalldataBytecodeBackend} can be used interchangeably with DecodeCalldataBytecodeBackend,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **fate** \\\n * **aevm**\n */\nexport type DecodeCalldataBytecodeBackend = string;\n\n/** Optional parameters. */\nexport interface GenerateACIOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the generateACI operation. */\nexport type GenerateACIResponse = Aci;\n\n/** Optional parameters. */\nexport interface ApiOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the api operation. */\nexport type ApiResponse = Record<string, unknown>;\n\n/** Optional parameters. */\nexport interface APIVersionOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the aPIVersion operation. */\nexport type APIVersionResponse = APIVersion;\n\n/** Optional parameters. */\nexport interface CompileContractOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the compileContract operation. */\nexport type CompileContractResponse = ByteCode;\n\n/** Optional parameters. */\nexport interface GetCompilerVersionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getCompilerVersion operation. */\nexport type GetCompilerVersionResponse = CompilerVersion;\n\n/** Optional parameters. */\nexport interface DecodeCallResultOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCallResult operation. */\nexport type DecodeCallResultResponse = {\n /** The parsed response body. */\n body: any;\n};\n\n/** Optional parameters. */\nexport interface DecodeCallResultBytecodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCallResultBytecode operation. */\nexport type DecodeCallResultBytecodeResponse = DecodedCallresult;\n\n/** Optional parameters. */\nexport interface DecodeCalldataBytecodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCalldataBytecode operation. */\nexport type DecodeCalldataBytecodeResponse = DecodedCalldata;\n\n/** Optional parameters. */\nexport interface DecodeCalldataSourceOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCalldataSource operation. */\nexport type DecodeCalldataSourceResponse = DecodedCalldata;\n\n/** Optional parameters. */\nexport interface DecodeDataOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeData operation. */\nexport type DecodeDataResponse = SophiaJsonData;\n\n/** Optional parameters. */\nexport interface EncodeCalldataOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the encodeCalldata operation. */\nexport type EncodeCalldataResponse = Calldata;\n\n/** Optional parameters. */\nexport interface GetFateAssemblerCodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getFateAssemblerCode operation. */\nexport type GetFateAssemblerCodeResponse = FateAssembler;\n\n/** Optional parameters. */\nexport interface ValidateByteCodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface VersionOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the version operation. */\nexport type VersionResponse = CompilerVersion;\n\n/** Optional parameters. */\nexport interface CompilerOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"],"mappings":"AAyJA;AACA,WAAYA,uBAAZ;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;WAZYA,uB;EAAAA,uB;EAAAA,uB;GAAAA,uB,KAAAA,uB;;AAeZ;AACA,WAAYC,mCAAZ;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;WAZYA,mC;EAAAA,mC;EAAAA,mC;GAAAA,mC,KAAAA,mC;;AAeZ;AACA,WAAYC,kCAAZ;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;WAZYA,kC;EAAAA,kC;EAAAA,kC;GAAAA,kC,KAAAA,kC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/apis/compiler/models/index.ts"],"sourcesContent":["import * as coreClient from \"@azure/core-client\";\n\nexport interface Contract {\n code: string;\n options?: CompileOpts;\n}\n\nexport interface CompileOpts {\n /** An explicit file system, mapping file names to file content */\n fileSystem?: Record<string, unknown>;\n /** Name of contract source file - only used in error messages */\n srcFile?: string;\n}\n\nexport interface Aci {\n /** Any object */\n encodedAci: Record<string, unknown>;\n externalEncodedAci?: Record<string, unknown>[];\n interface: string;\n}\n\nexport interface CompilerError {\n type: string;\n pos: ErrorPos;\n message: string;\n context?: string;\n}\n\nexport interface ErrorPos {\n file?: string;\n line: number;\n col: number;\n}\n\nexport interface ByteCode {\n /** Prefixed (cb_) Base64Check encoded byte array */\n bytecode: string;\n}\n\nexport interface SophiaCallResultInput {\n /** (Possibly partial) Sophia contract code/interface */\n source: string;\n options?: CompileOpts;\n /** Name of the called function */\n function: string;\n /** Call result type (ok | revert | error) */\n callResult: string;\n /** Call result value (ABI encoded data or error string) */\n callValue: string;\n}\n\nexport interface BytecodeCallResultInput {\n /** Compiled contract */\n bytecode: string;\n /** Name of the called function */\n function: string;\n /** Call result type (ok | revert | error) */\n callResult: string;\n /** Call result value (ABI encoded data or error string) */\n callValue: string;\n}\n\nexport interface DecodedCallresult {\n function: string;\n /** Any object */\n result: Record<string, unknown>;\n}\n\nexport interface FunctionCallInput {\n /** (Possibly partial) Sophia contract code */\n source: string;\n options?: CompileOpts;\n /** Name of function to call */\n function: string;\n /** Array of function call arguments */\n arguments: string[];\n}\n\nexport interface Calldata {\n /** Prefixed (cb_) Base64Check encoded byte array */\n calldata: string;\n}\n\nexport interface DecodeCalldataBytecode {\n /** Calldata to dissect */\n calldata: string;\n /** Compiled contract */\n bytecode: string;\n}\n\nexport interface DecodedCalldata {\n function: string;\n arguments: Record<string, unknown>[];\n}\n\nexport interface ErrorModel {\n reason: string;\n}\n\nexport interface DecodeCalldataSource {\n /** (Possibly partial) Sophia contract code */\n source: string;\n options?: CompileOpts;\n /** Calldata to dissect */\n calldata: string;\n /** Name of the function to call */\n function: string;\n}\n\nexport interface ByteCodeInput {\n /** Compiled contract */\n bytecode: string;\n}\n\nexport interface FateAssembler {\n /** Fate assembler code */\n fateAssembler: string;\n}\n\nexport interface ValidateByteCodeInput {\n /** Compiled contract */\n bytecode: string;\n /** Sophia contract source code */\n source: string;\n options?: CompileOpts;\n}\n\nexport interface CompilerVersion {\n /** Sophia compiler version */\n version: string;\n}\n\nexport interface ApiVersion {\n /** API compiler version */\n apiVersion: string;\n}\n\nexport interface SophiaBinaryData {\n sophiaType: string;\n data: string;\n}\n\nexport interface SophiaJsonData {\n /** Any object */\n data: Record<string, unknown>;\n}\n\n/** Optional parameters. */\nexport interface GenerateACIOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the generateACI operation. */\nexport type GenerateACIResponse = Aci;\n\n/** Optional parameters. */\nexport interface CompileContractOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the compileContract operation. */\nexport type CompileContractResponse = ByteCode;\n\n/** Optional parameters. */\nexport interface DecodeCallResultOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCallResult operation. */\nexport type DecodeCallResultResponse = {\n /** The parsed response body. */\n body: any;\n};\n\n/** Optional parameters. */\nexport interface DecodeCallResultBytecodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCallResultBytecode operation. */\nexport type DecodeCallResultBytecodeResponse = DecodedCallresult;\n\n/** Optional parameters. */\nexport interface EncodeCalldataOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the encodeCalldata operation. */\nexport type EncodeCalldataResponse = Calldata;\n\n/** Optional parameters. */\nexport interface DecodeCalldataBytecodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCalldataBytecode operation. */\nexport type DecodeCalldataBytecodeResponse = DecodedCalldata;\n\n/** Optional parameters. */\nexport interface DecodeCalldataSourceOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCalldataSource operation. */\nexport type DecodeCalldataSourceResponse = DecodedCalldata;\n\n/** Optional parameters. */\nexport interface GetFateAssemblerCodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getFateAssemblerCode operation. */\nexport type GetFateAssemblerCodeResponse = FateAssembler;\n\n/** Optional parameters. */\nexport interface ValidateByteCodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetCompilerVersionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getCompilerVersion operation. */\nexport type GetCompilerVersionResponse = CompilerVersion;\n\n/** Optional parameters. */\nexport interface VersionOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the version operation. */\nexport type VersionResponse = CompilerVersion;\n\n/** Optional parameters. */\nexport interface ApiVersionOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the apiVersion operation. */\nexport type ApiVersionResponse = ApiVersion;\n\n/** Optional parameters. */\nexport interface ApiOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the api operation. */\nexport type ApiResponse = Record<string, unknown>;\n\n/** Optional parameters. */\nexport interface CompilerOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"],"mappings":""}
@@ -4,20 +4,20 @@ export declare const CompileOpts: coreClient.CompositeMapper;
4
4
  export declare const Aci: coreClient.CompositeMapper;
5
5
  export declare const CompilerError: coreClient.CompositeMapper;
6
6
  export declare const ErrorPos: coreClient.CompositeMapper;
7
- export declare const ErrorModel: coreClient.CompositeMapper;
8
- export declare const APIVersion: coreClient.CompositeMapper;
9
7
  export declare const ByteCode: coreClient.CompositeMapper;
10
- export declare const ByteCodeInput: coreClient.CompositeMapper;
11
- export declare const CompilerVersion: coreClient.CompositeMapper;
12
8
  export declare const SophiaCallResultInput: coreClient.CompositeMapper;
13
9
  export declare const BytecodeCallResultInput: coreClient.CompositeMapper;
14
10
  export declare const DecodedCallresult: coreClient.CompositeMapper;
11
+ export declare const FunctionCallInput: coreClient.CompositeMapper;
12
+ export declare const Calldata: coreClient.CompositeMapper;
15
13
  export declare const DecodeCalldataBytecode: coreClient.CompositeMapper;
16
14
  export declare const DecodedCalldata: coreClient.CompositeMapper;
15
+ export declare const ErrorModel: coreClient.CompositeMapper;
17
16
  export declare const DecodeCalldataSource: coreClient.CompositeMapper;
18
- export declare const SophiaBinaryData: coreClient.CompositeMapper;
19
- export declare const SophiaJsonData: coreClient.CompositeMapper;
20
- export declare const FunctionCallInput: coreClient.CompositeMapper;
21
- export declare const Calldata: coreClient.CompositeMapper;
17
+ export declare const ByteCodeInput: coreClient.CompositeMapper;
22
18
  export declare const FateAssembler: coreClient.CompositeMapper;
23
19
  export declare const ValidateByteCodeInput: coreClient.CompositeMapper;
20
+ export declare const CompilerVersion: coreClient.CompositeMapper;
21
+ export declare const ApiVersion: coreClient.CompositeMapper;
22
+ export declare const SophiaBinaryData: coreClient.CompositeMapper;
23
+ export declare const SophiaJsonData: coreClient.CompositeMapper;