@aeternity/aepp-sdk 13.0.1 → 13.2.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 (322) hide show
  1. package/README.md +4 -2
  2. package/bin/aesophia_cli +0 -0
  3. package/dist/aepp-sdk.browser-script.js +1 -1
  4. package/dist/aepp-sdk.browser-script.js.map +1 -1
  5. package/dist/aepp-sdk.browser.js +1 -1
  6. package/dist/aepp-sdk.browser.js.map +1 -1
  7. package/dist/aepp-sdk.js +28490 -17706
  8. package/dist/aepp-sdk.js.map +1 -1
  9. package/es/AeSdkAepp.mjs.map +1 -1
  10. package/es/AeSdkBase.d.ts +21 -3
  11. package/es/AeSdkBase.mjs +51 -3
  12. package/es/AeSdkBase.mjs.map +1 -1
  13. package/es/AeSdkMethods.d.ts +9 -14
  14. package/es/AeSdkMethods.mjs +20 -49
  15. package/es/AeSdkMethods.mjs.map +1 -1
  16. package/es/AeSdkWallet.d.ts +1 -1
  17. package/es/AeSdkWallet.mjs +79 -23
  18. package/es/AeSdkWallet.mjs.map +1 -1
  19. package/es/Middleware.d.ts +38 -0
  20. package/es/Middleware.mjs +90 -0
  21. package/es/Middleware.mjs.map +1 -0
  22. package/es/MiddlewareSubscriber.d.ts +30 -0
  23. package/es/MiddlewareSubscriber.mjs +198 -0
  24. package/es/MiddlewareSubscriber.mjs.map +1 -0
  25. package/es/Node.d.ts +1 -1
  26. package/es/Node.mjs.map +1 -1
  27. package/es/account/Base.d.ts +57 -3
  28. package/es/account/Base.mjs +95 -1
  29. package/es/account/Base.mjs.map +1 -1
  30. package/es/account/Generalized.d.ts +4 -0
  31. package/es/account/Generalized.mjs +20 -0
  32. package/es/account/Generalized.mjs.map +1 -1
  33. package/es/account/Ledger.d.ts +4 -0
  34. package/es/account/Ledger.mjs +20 -0
  35. package/es/account/Ledger.mjs.map +1 -1
  36. package/es/account/LedgerFactory.mjs.map +1 -1
  37. package/es/account/Memory.d.ts +12 -0
  38. package/es/account/Memory.mjs +52 -0
  39. package/es/account/Memory.mjs.map +1 -1
  40. package/es/account/Rpc.d.ts +5 -6
  41. package/es/account/Rpc.mjs +53 -10
  42. package/es/account/Rpc.mjs.map +1 -1
  43. package/es/aens.d.ts +1 -1
  44. package/es/aens.mjs +1 -1
  45. package/es/aens.mjs.map +1 -1
  46. package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
  47. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
  48. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
  49. package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
  50. package/es/aepp-wallet-communication/rpc/RpcClient.mjs +5 -2
  51. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
  52. package/es/aepp-wallet-communication/rpc/types.d.ts +19 -0
  53. package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
  54. package/es/aepp-wallet-communication/schema.d.ts +2 -8
  55. package/es/aepp-wallet-communication/schema.mjs +21 -33
  56. package/es/aepp-wallet-communication/schema.mjs.map +1 -1
  57. package/es/aepp-wallet-communication/wallet-detector.d.ts +1 -1
  58. package/es/aepp-wallet-communication/wallet-detector.mjs +0 -3
  59. package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
  60. package/es/apis/compiler/compiler.mjs +15 -1
  61. package/es/apis/compiler/compiler.mjs.map +1 -1
  62. package/es/apis/compiler/models/index.d.ts +1 -7
  63. package/es/apis/compiler/models/index.mjs.map +1 -1
  64. package/es/apis/compiler/models/mappers.d.ts +0 -1
  65. package/es/apis/compiler/models/mappers.mjs +0 -43
  66. package/es/apis/compiler/models/mappers.mjs.map +1 -1
  67. package/es/apis/middleware/index.d.ts +2 -0
  68. package/es/apis/middleware/index.mjs +3 -0
  69. package/es/apis/middleware/index.mjs.map +1 -0
  70. package/es/apis/middleware/middleware.d.ts +309 -0
  71. package/es/apis/middleware/middleware.mjs +1527 -0
  72. package/es/apis/middleware/middleware.mjs.map +1 -0
  73. package/es/apis/middleware/models/index.d.ts +1496 -0
  74. package/es/apis/middleware/models/index.mjs +580 -0
  75. package/es/apis/middleware/models/index.mjs.map +1 -0
  76. package/es/apis/middleware/models/mappers.d.ts +102 -0
  77. package/es/apis/middleware/models/mappers.mjs +3334 -0
  78. package/es/apis/middleware/models/mappers.mjs.map +1 -0
  79. package/es/apis/middleware/models/parameters.d.ts +43 -0
  80. package/es/apis/middleware/models/parameters.mjs +417 -0
  81. package/es/apis/middleware/models/parameters.mjs.map +1 -0
  82. package/es/apis/node/node.mjs.map +1 -1
  83. package/es/chain.d.ts +2 -1
  84. package/es/chain.mjs +5 -3
  85. package/es/chain.mjs.map +1 -1
  86. package/es/channel/Base.d.ts +1 -1
  87. package/es/channel/Base.mjs +1 -4
  88. package/es/channel/Base.mjs.map +1 -1
  89. package/es/channel/Contract.mjs.map +1 -1
  90. package/es/channel/Spend.mjs.map +1 -1
  91. package/es/channel/handlers.mjs +2 -2
  92. package/es/channel/handlers.mjs.map +1 -1
  93. package/es/channel/internal.mjs +7 -5
  94. package/es/channel/internal.mjs.map +1 -1
  95. package/es/contract/Contract.mjs +2 -2
  96. package/es/contract/Contract.mjs.map +1 -1
  97. package/es/contract/compiler/Base.d.ts +21 -0
  98. package/es/contract/compiler/Base.mjs.map +1 -1
  99. package/es/contract/compiler/Cli.d.ts +2 -0
  100. package/es/contract/compiler/Cli.mjs +24 -3
  101. package/es/contract/compiler/Cli.mjs.map +1 -1
  102. package/es/contract/compiler/Http.d.ts +2 -0
  103. package/es/contract/compiler/Http.mjs +22 -2
  104. package/es/contract/compiler/Http.mjs.map +1 -1
  105. package/es/contract/compiler/HttpNode.d.ts +1 -0
  106. package/es/contract/compiler/HttpNode.mjs +5 -0
  107. package/es/contract/compiler/HttpNode.mjs.map +1 -1
  108. package/es/contract/delegation-signature.d.ts +2 -1
  109. package/es/contract/delegation-signature.mjs +39 -8
  110. package/es/contract/delegation-signature.mjs.map +1 -1
  111. package/es/contract/ga.mjs.map +1 -1
  112. package/es/deprecated.d.ts +14 -0
  113. package/es/deprecated.mjs +22 -0
  114. package/es/deprecated.mjs.map +1 -0
  115. package/es/index-browser.d.ts +20 -14
  116. package/es/index-browser.mjs +19 -15
  117. package/es/index-browser.mjs.map +1 -1
  118. package/es/oracle.mjs.map +1 -1
  119. package/es/spend.d.ts +2 -1
  120. package/es/spend.mjs +4 -2
  121. package/es/spend.mjs.map +1 -1
  122. package/es/tx/builder/constants.d.ts +0 -1
  123. package/es/tx/builder/constants.mjs +26 -24
  124. package/es/tx/builder/constants.mjs.map +1 -1
  125. package/es/tx/builder/field-types/abi-version.mjs.map +1 -1
  126. package/es/tx/builder/field-types/coin-amount.d.ts +1 -1
  127. package/es/tx/builder/field-types/coin-amount.mjs +2 -1
  128. package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
  129. package/es/tx/builder/field-types/ct-version.mjs.map +1 -1
  130. package/es/tx/builder/field-types/deposit.d.ts +1 -1
  131. package/es/tx/builder/field-types/deposit.mjs.map +1 -1
  132. package/es/tx/builder/field-types/entry.mjs +2 -1
  133. package/es/tx/builder/field-types/entry.mjs.map +1 -1
  134. package/es/tx/builder/field-types/fee.mjs.map +1 -1
  135. package/es/tx/builder/field-types/field.mjs.map +1 -1
  136. package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
  137. package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
  138. package/es/tx/builder/field-types/index.d.ts +28 -150
  139. package/es/tx/builder/field-types/index.mjs +28 -56
  140. package/es/tx/builder/field-types/index.mjs.map +1 -1
  141. package/es/tx/builder/field-types/map.mjs.map +1 -1
  142. package/es/tx/builder/field-types/mptree.mjs +3 -3
  143. package/es/tx/builder/field-types/mptree.mjs.map +1 -1
  144. package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
  145. package/es/tx/builder/field-types/pointers.mjs.map +1 -1
  146. package/es/tx/builder/field-types/string.mjs.map +1 -1
  147. package/es/tx/builder/field-types/ttl.mjs.map +1 -1
  148. package/es/tx/builder/field-types/u-int.mjs +1 -1
  149. package/es/tx/builder/field-types/u-int.mjs.map +1 -1
  150. package/es/tx/builder/helpers.d.ts +8 -1
  151. package/es/tx/builder/helpers.mjs +53 -9
  152. package/es/tx/builder/helpers.mjs.map +1 -1
  153. package/es/tx/builder/index.d.ts +4 -2
  154. package/es/tx/builder/index.mjs +0 -1
  155. package/es/tx/builder/index.mjs.map +1 -1
  156. package/es/tx/builder/schema.d.ts +9 -9
  157. package/es/tx/builder/schema.mjs +11 -10
  158. package/es/tx/builder/schema.mjs.map +1 -1
  159. package/es/tx/execution-cost.mjs.map +1 -1
  160. package/es/tx/transaction-signer.mjs.map +1 -1
  161. package/es/tx/validator.mjs +6 -3
  162. package/es/tx/validator.mjs.map +1 -1
  163. package/es/utils/amount-formatter.mjs +7 -7
  164. package/es/utils/amount-formatter.mjs.map +1 -1
  165. package/es/utils/autorest.mjs +6 -8
  166. package/es/utils/autorest.mjs.map +1 -1
  167. package/es/utils/bignumber.mjs.map +1 -1
  168. package/es/utils/bytes.mjs.map +1 -1
  169. package/es/utils/crypto.d.ts +1 -0
  170. package/es/utils/crypto.mjs +12 -2
  171. package/es/utils/crypto.mjs.map +1 -1
  172. package/es/utils/encoder-types.mjs +3 -3
  173. package/es/utils/encoder-types.mjs.map +1 -1
  174. package/es/utils/encoder.mjs.map +1 -1
  175. package/es/utils/errors.d.ts +2 -2
  176. package/es/utils/errors.mjs.map +1 -1
  177. package/es/utils/hd-wallet.mjs.map +1 -1
  178. package/es/utils/keystore.mjs.map +1 -1
  179. package/es/utils/other.d.ts +1 -0
  180. package/es/utils/other.mjs +5 -0
  181. package/es/utils/other.mjs.map +1 -1
  182. package/es/utils/semver-satisfies.mjs.map +1 -1
  183. package/es/utils/string.mjs.map +1 -1
  184. package/es/utils/typed-data.d.ts +45 -0
  185. package/es/utils/typed-data.mjs +70 -0
  186. package/es/utils/typed-data.mjs.map +1 -0
  187. package/package.json +56 -37
  188. package/src/AeSdkBase.ts +66 -5
  189. package/src/AeSdkMethods.ts +31 -50
  190. package/src/AeSdkWallet.ts +63 -17
  191. package/src/Middleware.ts +141 -0
  192. package/src/MiddlewareSubscriber.ts +207 -0
  193. package/src/Node.ts +1 -1
  194. package/src/account/Base.ts +102 -4
  195. package/src/account/Generalized.ts +20 -0
  196. package/src/account/Ledger.ts +20 -0
  197. package/src/account/Memory.ts +68 -1
  198. package/src/account/Rpc.ts +54 -7
  199. package/src/aens.ts +1 -1
  200. package/src/aepp-wallet-communication/rpc/RpcClient.ts +11 -3
  201. package/src/aepp-wallet-communication/rpc/types.ts +21 -0
  202. package/src/aepp-wallet-communication/schema.ts +3 -17
  203. package/src/aepp-wallet-communication/wallet-detector.ts +1 -2
  204. package/src/apis/compiler/compiler.ts +8 -1
  205. package/src/apis/compiler/models/index.ts +1 -8
  206. package/src/apis/compiler/models/mappers.ts +0 -36
  207. package/src/apis/middleware/index.ts +2 -0
  208. package/src/apis/middleware/middleware.ts +1807 -0
  209. package/src/apis/middleware/models/index.ts +1747 -0
  210. package/src/apis/middleware/models/mappers.ts +3370 -0
  211. package/src/apis/middleware/models/parameters.ts +463 -0
  212. package/src/chain.ts +4 -3
  213. package/src/channel/Base.ts +5 -5
  214. package/src/channel/internal.ts +2 -0
  215. package/src/contract/Contract.ts +2 -1
  216. package/src/contract/compiler/Base.ts +26 -0
  217. package/src/contract/compiler/Cli.ts +27 -3
  218. package/src/contract/compiler/Http.ts +21 -2
  219. package/src/contract/compiler/HttpNode.ts +6 -0
  220. package/src/contract/delegation-signature.ts +37 -11
  221. package/src/deprecated.ts +23 -0
  222. package/src/index-browser.ts +77 -15
  223. package/src/spend.ts +2 -2
  224. package/src/tx/builder/constants.ts +0 -1
  225. package/src/tx/builder/field-types/coin-amount.ts +2 -1
  226. package/src/tx/builder/field-types/entry.ts +1 -1
  227. package/src/tx/builder/field-types/index.ts +28 -58
  228. package/src/tx/builder/field-types/u-int.ts +1 -1
  229. package/src/tx/builder/helpers.ts +54 -9
  230. package/src/tx/builder/index.ts +6 -9
  231. package/src/tx/validator.ts +4 -2
  232. package/src/utils/autorest.ts +5 -10
  233. package/src/utils/crypto.ts +12 -2
  234. package/src/utils/errors.ts +2 -2
  235. package/src/utils/other.ts +5 -0
  236. package/src/utils/typed-data.ts +95 -0
  237. package/types-legacy/ts4.2/AeSdkBase.d.ts +21 -3
  238. package/types-legacy/ts4.2/AeSdkMethods.d.ts +9 -14
  239. package/types-legacy/ts4.2/AeSdkWallet.d.ts +1 -1
  240. package/types-legacy/ts4.2/Middleware.d.ts +46 -0
  241. package/types-legacy/ts4.2/MiddlewareSubscriber.d.ts +30 -0
  242. package/types-legacy/ts4.2/Node.d.ts +1 -1
  243. package/types-legacy/ts4.2/account/Base.d.ts +57 -3
  244. package/types-legacy/ts4.2/account/Generalized.d.ts +4 -0
  245. package/types-legacy/ts4.2/account/Ledger.d.ts +4 -0
  246. package/types-legacy/ts4.2/account/Memory.d.ts +12 -0
  247. package/types-legacy/ts4.2/account/Rpc.d.ts +5 -6
  248. package/types-legacy/ts4.2/aens.d.ts +1 -1
  249. package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +19 -0
  250. package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +2 -8
  251. package/types-legacy/ts4.2/aepp-wallet-communication/wallet-detector.d.ts +1 -1
  252. package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +1 -7
  253. package/types-legacy/ts4.2/apis/compiler/models/mappers.d.ts +0 -1
  254. package/types-legacy/ts4.2/apis/middleware/index.d.ts +2 -0
  255. package/types-legacy/ts4.2/apis/middleware/middleware.d.ts +309 -0
  256. package/types-legacy/ts4.2/apis/middleware/models/index.d.ts +1496 -0
  257. package/types-legacy/ts4.2/apis/middleware/models/mappers.d.ts +102 -0
  258. package/types-legacy/ts4.2/apis/middleware/models/parameters.d.ts +43 -0
  259. package/types-legacy/ts4.2/chain.d.ts +2 -1
  260. package/types-legacy/ts4.2/channel/Base.d.ts +1 -1
  261. package/types-legacy/ts4.2/contract/compiler/Base.d.ts +21 -0
  262. package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +2 -0
  263. package/types-legacy/ts4.2/contract/compiler/Http.d.ts +2 -0
  264. package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +1 -0
  265. package/types-legacy/ts4.2/contract/delegation-signature.d.ts +2 -1
  266. package/types-legacy/ts4.2/deprecated.d.ts +14 -0
  267. package/types-legacy/ts4.2/index-browser.d.ts +20 -14
  268. package/types-legacy/ts4.2/spend.d.ts +2 -1
  269. package/types-legacy/ts4.2/tx/builder/constants.d.ts +0 -1
  270. package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +1 -1
  271. package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +1 -1
  272. package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +28 -153
  273. package/types-legacy/ts4.2/tx/builder/helpers.d.ts +8 -1
  274. package/types-legacy/ts4.2/tx/builder/index.d.ts +4 -2
  275. package/types-legacy/ts4.2/tx/builder/schema.d.ts +9 -9
  276. package/types-legacy/ts4.2/utils/crypto.d.ts +1 -0
  277. package/types-legacy/ts4.2/utils/errors.d.ts +2 -2
  278. package/types-legacy/ts4.2/utils/other.d.ts +1 -0
  279. package/types-legacy/ts4.2/utils/typed-data.d.ts +60 -0
  280. package/types-legacy/ts4.5/AeSdkBase.d.ts +21 -3
  281. package/types-legacy/ts4.5/AeSdkMethods.d.ts +9 -14
  282. package/types-legacy/ts4.5/AeSdkWallet.d.ts +1 -1
  283. package/types-legacy/ts4.5/Middleware.d.ts +46 -0
  284. package/types-legacy/ts4.5/MiddlewareSubscriber.d.ts +30 -0
  285. package/types-legacy/ts4.5/Node.d.ts +1 -1
  286. package/types-legacy/ts4.5/account/Base.d.ts +57 -3
  287. package/types-legacy/ts4.5/account/Generalized.d.ts +4 -0
  288. package/types-legacy/ts4.5/account/Ledger.d.ts +4 -0
  289. package/types-legacy/ts4.5/account/Memory.d.ts +12 -0
  290. package/types-legacy/ts4.5/account/Rpc.d.ts +5 -6
  291. package/types-legacy/ts4.5/aens.d.ts +1 -1
  292. package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +19 -0
  293. package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +2 -8
  294. package/types-legacy/ts4.5/aepp-wallet-communication/wallet-detector.d.ts +1 -1
  295. package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +1 -7
  296. package/types-legacy/ts4.5/apis/compiler/models/mappers.d.ts +0 -1
  297. package/types-legacy/ts4.5/apis/middleware/index.d.ts +2 -0
  298. package/types-legacy/ts4.5/apis/middleware/middleware.d.ts +309 -0
  299. package/types-legacy/ts4.5/apis/middleware/models/index.d.ts +1496 -0
  300. package/types-legacy/ts4.5/apis/middleware/models/mappers.d.ts +102 -0
  301. package/types-legacy/ts4.5/apis/middleware/models/parameters.d.ts +43 -0
  302. package/types-legacy/ts4.5/chain.d.ts +2 -1
  303. package/types-legacy/ts4.5/channel/Base.d.ts +1 -1
  304. package/types-legacy/ts4.5/contract/compiler/Base.d.ts +21 -0
  305. package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +2 -0
  306. package/types-legacy/ts4.5/contract/compiler/Http.d.ts +2 -0
  307. package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +1 -0
  308. package/types-legacy/ts4.5/contract/delegation-signature.d.ts +2 -1
  309. package/types-legacy/ts4.5/deprecated.d.ts +14 -0
  310. package/types-legacy/ts4.5/index-browser.d.ts +20 -14
  311. package/types-legacy/ts4.5/spend.d.ts +2 -1
  312. package/types-legacy/ts4.5/tx/builder/constants.d.ts +0 -1
  313. package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +1 -1
  314. package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +1 -1
  315. package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +28 -153
  316. package/types-legacy/ts4.5/tx/builder/helpers.d.ts +8 -1
  317. package/types-legacy/ts4.5/tx/builder/index.d.ts +4 -2
  318. package/types-legacy/ts4.5/tx/builder/schema.d.ts +9 -9
  319. package/types-legacy/ts4.5/utils/crypto.d.ts +1 -0
  320. package/types-legacy/ts4.5/utils/errors.d.ts +2 -2
  321. package/types-legacy/ts4.5/utils/other.d.ts +1 -0
  322. package/types-legacy/ts4.5/utils/typed-data.d.ts +60 -0
@@ -0,0 +1,102 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ export declare const Paths1I5J7OcV2AccountsIdActivitiesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
3
+ export declare const Activity: coreClient.CompositeMapper;
4
+ export declare const PaginatedResponse: coreClient.CompositeMapper;
5
+ export declare const ErrorResponse: coreClient.CompositeMapper;
6
+ export declare const Paths17FlgdkV2Aex141GetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
7
+ export declare const Aex141Response: coreClient.CompositeMapper;
8
+ export declare const PathsAxw0PwV2Aex141OwnedNftsAccountidGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
9
+ export declare const Aex141OwnedTokenResponse: coreClient.CompositeMapper;
10
+ export declare const PathsN3Ru7DV2Aex141ContractidOwnersGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
11
+ export declare const PathsRa6Pv6V2Aex141ContractidTemplatesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
12
+ export declare const Aex141TemplatesResponse: coreClient.CompositeMapper;
13
+ export declare const Paths19B9O7TV2Aex141ContractidTemplatesTemplateidTokensGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
14
+ export declare const Aex141TemplateTokensResponse: coreClient.CompositeMapper;
15
+ export declare const Paths1Fe570RV2Aex9GetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
16
+ export declare const Aex9Response: coreClient.CompositeMapper;
17
+ export declare const PathsO9MbpkV2Aex9AccountBalancesAccountIdGetResponses200ContentApplicationJsonSchemaAllof1: coreClient.CompositeMapper;
18
+ export declare const Aex9BalanceResponse: coreClient.CompositeMapper;
19
+ export declare const PathsY2JwfkV2Aex9TransfersFromToSenderRecipientGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
20
+ export declare const Aex9TransferResponse: coreClient.CompositeMapper;
21
+ export declare const Paths5U7W2V2Aex9TransfersFromIdGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
22
+ export declare const Paths12TleqhV2Aex9TransfersToIdGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
23
+ export declare const Paths1C2B0UpV2Aex9ContractidBalancesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
24
+ export declare const Aex9ContractBalanceResponse: coreClient.CompositeMapper;
25
+ export declare const PathsBelvp6V2Aex9ContractidBalancesAccountidGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
26
+ export declare const Paths11X7LpcV2Aex9ContractidBalancesAccountidHistoryGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
27
+ export declare const Paths5LeqfqV2BlocksGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
28
+ export declare const Block: coreClient.CompositeMapper;
29
+ export declare const NotFoundResponse: coreClient.CompositeMapper;
30
+ export declare const PathsC25EgV2ChannelsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
31
+ export declare const Channel: coreClient.CompositeMapper;
32
+ export declare const Paths1Csrt0IV2ContractsCallsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
33
+ export declare const ContractCall: coreClient.CompositeMapper;
34
+ export declare const Paths9Ya94MV2ContractsLogsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
35
+ export declare const ContractLog: coreClient.CompositeMapper;
36
+ export declare const PathsRzn6HzV2DeltastatsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
37
+ export declare const DeltaStat: coreClient.CompositeMapper;
38
+ export declare const Paths10TrrshV2KeyBlocksGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
39
+ export declare const KeyBlock: coreClient.CompositeMapper;
40
+ export declare const Paths7Hfka2V2KeyBlocksHashOrKbiMicroBlocksGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
41
+ export declare const MicroBlock: coreClient.CompositeMapper;
42
+ export declare const Paths1RxrrvbV2MicroBlocksHashTxsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
43
+ export declare const Tx: coreClient.CompositeMapper;
44
+ export declare const Paths16Srg6EV2NamesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
45
+ export declare const Name: coreClient.CompositeMapper;
46
+ export declare const NameInfo: coreClient.CompositeMapper;
47
+ export declare const NameInfoOwnership: coreClient.CompositeMapper;
48
+ export declare const NameInfoPointers: coreClient.CompositeMapper;
49
+ export declare const Auction: coreClient.CompositeMapper;
50
+ export declare const AuctionInfo: coreClient.CompositeMapper;
51
+ export declare const AuctionInfoLastBid: coreClient.CompositeMapper;
52
+ export declare const Paths1I6PwfdV2NamesSearchGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
53
+ export declare const Paths7P6Qc1V2NamesSearchGetResponses200ContentApplicationJsonSchemaAllof0PropertiesDataItemsAllof1: coreClient.CompositeMapper;
54
+ export declare const NameClaim: coreClient.CompositeMapper;
55
+ export declare const PathsDjelzuV2NamesIdPointeesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
56
+ export declare const NameTransfer: coreClient.CompositeMapper;
57
+ export declare const NameUpdate: coreClient.CompositeMapper;
58
+ export declare const Oracle: coreClient.CompositeMapper;
59
+ export declare const OracleExtendsItem: coreClient.CompositeMapper;
60
+ export declare const PathsMherz6V2OraclesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
61
+ export declare const Status: coreClient.CompositeMapper;
62
+ export declare const StatusMdwAsyncTasks: coreClient.CompositeMapper;
63
+ export declare const PathsDpxn99V2TotalstatsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
64
+ export declare const TotalStat: coreClient.CompositeMapper;
65
+ export declare const Paths17Cjtx5V2TransfersGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
66
+ export declare const Transfer: coreClient.CompositeMapper;
67
+ export declare const Paths1R74KpvV2TxsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
68
+ export declare const Paths16Tt677V2TxsCountIdGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
69
+ export declare const Aex141TransferEvent: coreClient.CompositeMapper;
70
+ export declare const Aex9TransferEvent: coreClient.CompositeMapper;
71
+ export declare const InternalContractCallEvent: coreClient.CompositeMapper;
72
+ export declare const InternalTransferEvent: coreClient.CompositeMapper;
73
+ export declare const NameClaimEvent: coreClient.CompositeMapper;
74
+ export declare const PathsKlr2M2V2AccountsIdActivitiesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
75
+ export declare const PathsFlc7UjV2Aex141GetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
76
+ export declare const PathsSs61ZgV2Aex141OwnedNftsAccountidGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
77
+ export declare const Paths1Ilysy5V2Aex141ContractidOwnersGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
78
+ export declare const Paths17O9Fn6V2Aex141ContractidTemplatesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
79
+ export declare const PathsNuoourV2Aex141ContractidTemplatesTemplateidTokensGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
80
+ export declare const Paths1Wbogg8V2Aex9GetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
81
+ export declare const Paths1BsirxgV2Aex9AccountBalancesAccountIdGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
82
+ export declare const Paths1V0FiznV2Aex9TransfersFromToSenderRecipientGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
83
+ export declare const Paths1X48QgjV2Aex9TransfersFromIdGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
84
+ export declare const Paths1DkkopqV2Aex9TransfersToIdGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
85
+ export declare const PathsNi359V2Aex9ContractidBalancesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
86
+ export declare const Paths15Ih6XV2BlocksGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
87
+ export declare const Paths1Txl2A9V2ChannelsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
88
+ export declare const Paths187U0XzV2ContractsCallsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
89
+ export declare const PathsB246H1V2ContractsLogsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
90
+ export declare const Paths7Pbec0V2DeltastatsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
91
+ export declare const Paths1Ulxr59V2KeyBlocksGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
92
+ export declare const PathsO99PhzV2KeyBlocksHashOrKbiMicroBlocksGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
93
+ export declare const PathsGuqvhdV2MicroBlocksHashTxsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
94
+ export declare const PathsK9TkttV2NamesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
95
+ export declare const Paths3Msq0DV2NamesSearchGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
96
+ export declare const PathsB0YvynV2OraclesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
97
+ export declare const Paths15PsutbV2TotalstatsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
98
+ export declare const PathsIgs9Z1V2TransfersGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
99
+ export declare const PathsFclv4TV2TxsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
100
+ export declare const Paths1R02SlwV2Aex9ContractidBalancesAccountidGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
101
+ export declare const Paths1T9RwnyV2Aex9ContractidBalancesAccountidHistoryGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
102
+ export declare const Get200ApplicationJsonAllOfPropertiesItemsItem: coreClient.CompositeMapper;
@@ -0,0 +1,43 @@
1
+ import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
2
+ export declare const accept: OperationParameter;
3
+ export declare const $host: OperationURLParameter;
4
+ export declare const id: OperationURLParameter;
5
+ export declare const ownedOnly: OperationQueryParameter;
6
+ export declare const type: OperationQueryParameter;
7
+ export declare const limit: OperationQueryParameter;
8
+ export declare const scope: OperationQueryParameter;
9
+ export declare const direction: OperationQueryParameter;
10
+ export declare const by: OperationQueryParameter;
11
+ export declare const prefix: OperationQueryParameter;
12
+ export declare const accountId: OperationURLParameter;
13
+ export declare const contractId: OperationURLParameter;
14
+ export declare const tokenId: OperationURLParameter;
15
+ export declare const templateId: OperationURLParameter;
16
+ export declare const accountId1: OperationURLParameter;
17
+ export declare const sender: OperationURLParameter;
18
+ export declare const recipient: OperationURLParameter;
19
+ export declare const hash: OperationQueryParameter;
20
+ export declare const hashOrKbi: OperationURLParameter;
21
+ export declare const kbi: OperationURLParameter;
22
+ export declare const mbi: OperationURLParameter;
23
+ export declare const state: OperationQueryParameter;
24
+ export declare const contractId1: OperationQueryParameter;
25
+ export declare const event: OperationQueryParameter;
26
+ export declare const functionPrefix: OperationQueryParameter;
27
+ export declare const data: OperationQueryParameter;
28
+ export declare const aexnArgs: OperationQueryParameter;
29
+ export declare const hash1: OperationURLParameter;
30
+ export declare const ownedBy: OperationQueryParameter;
31
+ export declare const state1: OperationQueryParameter;
32
+ export declare const type1: OperationQueryParameter;
33
+ export declare const typeGroup: OperationQueryParameter;
34
+ export declare const account: OperationQueryParameter;
35
+ export declare const contract: OperationQueryParameter;
36
+ export declare const channel: OperationQueryParameter;
37
+ export declare const oracle: OperationQueryParameter;
38
+ export declare const senderId: OperationQueryParameter;
39
+ export declare const recipientId: OperationQueryParameter;
40
+ export declare const entrypoint: OperationQueryParameter;
41
+ export declare const txType: OperationQueryParameter;
42
+ export declare const id1: OperationQueryParameter;
43
+ export declare const hashOrIndex: OperationURLParameter;
@@ -9,7 +9,8 @@ import AccountBase from './account/Base';
9
9
  /**
10
10
  * @category chain
11
11
  */
12
- export declare function _getPollInterval(type: 'block' | 'microblock', { _expectedMineRate, _microBlockCycle, _maxPollInterval }: {
12
+ export declare function _getPollInterval(type: 'block' | 'microblock', // TODO: rename to 'key-block' | 'micro-block'
13
+ { _expectedMineRate, _microBlockCycle, _maxPollInterval }: {
13
14
  _expectedMineRate?: number;
14
15
  _microBlockCycle?: number;
15
16
  _maxPollInterval?: number;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { EventEmitter } from 'events';
2
+ import EventEmitter from 'events';
3
3
  import { w3cwebsocket as W3CWebSocket } from 'websocket';
4
4
  import { Tag } from '../tx/builder/constants';
5
5
  import { SignTx, ChannelOptions, ChannelState, ChannelHandler, ChannelAction, ChannelStatus, ChannelFsm, ChannelMessage, ChannelEvents } from './internal';
@@ -47,6 +47,27 @@ export default abstract class CompilerBase {
47
47
  bytecode: Encoded.ContractBytearray;
48
48
  aci: Aci;
49
49
  }>;
50
+ /**
51
+ * Generate contract's ACI by contract's path
52
+ * Available only in Node.js
53
+ * @param path - Path to contract source code
54
+ * @returns ACI
55
+ */
56
+ abstract generateAci(path: string): Promise<Aci>;
57
+ /**
58
+ * Generate contract's ACI by contract's source code
59
+ * @param sourceCode - Contract source code as string
60
+ * @param fileSystem - A map of contract filename to the corresponding contract source code to
61
+ * include into the main contract
62
+ * @example
63
+ * ```js
64
+ * {
65
+ * 'library.aes': 'namespace TestLib =\n function sum(x: int, y: int) : int = x + y'
66
+ * }
67
+ * ```
68
+ * @returns ACI
69
+ */
70
+ abstract generateAciBySourceCode(sourceCode: string, fileSystem?: Record<string, string>): Promise<Aci>;
50
71
  /**
51
72
  * Verify that a contract bytecode is the result of compiling the given source code
52
73
  * Available only in Node.js
@@ -17,6 +17,8 @@ export default class CompilerCli extends CompilerBase {
17
17
  bytecode: Encoded.ContractBytearray;
18
18
  aci: Aci;
19
19
  }>;
20
+ generateAci(path: string): Promise<Aci>;
21
+ generateAciBySourceCode(sourceCode: string, fileSystem?: Record<string, string>): Promise<Aci>;
20
22
  validate(bytecode: Encoded.ContractBytearray, path: string): Promise<boolean>;
21
23
  validateBySourceCode(bytecode: Encoded.ContractBytearray, sourceCode: string, fileSystem?: Record<string, string>): Promise<boolean>;
22
24
  version(): Promise<string>;
@@ -26,6 +26,8 @@ export default class CompilerHttp extends CompilerBase {
26
26
  bytecode: Encoded.ContractBytearray;
27
27
  aci: Aci;
28
28
  }>;
29
+ generateAciBySourceCode(sourceCode: string, fileSystem?: Record<string, string>): Promise<Aci>;
30
+ generateAci(path: string): Promise<Aci>;
29
31
  validateBySourceCode(bytecode: Encoded.ContractBytearray, sourceCode: string, fileSystem?: Record<string, string>): Promise<boolean>;
30
32
  validate(bytecode: Encoded.ContractBytearray, path: string): Promise<boolean>;
31
33
  version(): Promise<string>;
@@ -13,5 +13,6 @@ export default class CompilerHttpNode extends HttpBrowser {
13
13
  bytecode: Encoded.ContractBytearray;
14
14
  aci: Aci;
15
15
  }>;
16
+ generateAci(path: string): Promise<Aci>;
16
17
  validate(bytecode: Encoded.ContractBytearray, path: string): Promise<boolean>;
17
18
  }
@@ -14,6 +14,7 @@ import Node from '../Node';
14
14
  * @param options.onAccount - Account to use
15
15
  * @param options.onNode - Node to use
16
16
  * @returns Signature
17
+ * @deprecated use methods `sign*DelegationToContract` of Account instance instead
17
18
  * @example
18
19
  * ```js
19
20
  * const aeSdk = new AeSdk({ ... })
@@ -36,7 +37,7 @@ import Node from '../Node';
36
37
  * .createDelegationSignature(contractAddress, [oracleQueryId], { onAccount, omitAddress: true })
37
38
  * ```
38
39
  */
39
- export default function createDelegationSignature(contractAddress: Encoded.ContractAddress, ids: Array<Encoded.Any | AensName>, options: {
40
+ export default function createDelegationSignature(contractAddress: Encoded.ContractAddress, ids: Array<Encoded.Any | AensName>, { onAccount, omitAddress, ...options }: {
40
41
  omitAddress?: boolean;
41
42
  onAccount: AccountBase;
42
43
  onNode: Node;
@@ -0,0 +1,14 @@
1
+ import { RpcError } from './aepp-wallet-communication/schema';
2
+ /**
3
+ * @category exception
4
+ * @deprecated this exception is not thrown anymore
5
+ */
6
+ export declare class RpcBroadcastError extends RpcError {
7
+ static code: number;
8
+ code: number;
9
+ constructor(data?: any);
10
+ }
11
+ /**
12
+ * @deprecated use isAuctionName instead
13
+ */
14
+ export declare const NAME_BID_MAX_LENGTH = 12;
@@ -1,22 +1,25 @@
1
- export * from './chain';
2
- export * from './utils/crypto';
3
- export * from './utils/keystore';
4
- export * from './utils/bytes';
1
+ export { _getPollInterval, InvalidTxError, getHeight, poll, awaitHeight, waitForTxConfirm, sendTransaction, getAccount, getBalance, getCurrentGeneration, getGeneration, getMicroBlockTransactions, getKeyBlock, getMicroBlockHeader, txDryRun, getContractByteCode, getContract, getName, resolveName, } from './chain';
2
+ export { getAddressFromPriv, isAddressValid, genSalt, encodeUnsigned, hash, encodeContractAddress, generateKeyPairFromSecret, generateKeyPair, sign, verify, messageToHash, signMessage, verifyMessage, isValidKeypair, } from './utils/crypto';
3
+ export { recover, dump } from './utils/keystore';
4
+ export type { Keystore } from './utils/keystore';
5
+ export { toBytes } from './utils/bytes';
5
6
  export { buildTx, buildTxAsync, buildTxHash, unpackTx, buildContractIdByContractTx, } from './tx/builder';
6
- export * from './tx/builder/helpers';
7
- export * from './tx/builder/constants';
7
+ export { buildContractId, oracleQueryId, produceNameId, commitmentHash, readInt, isNameValid, ensureName, getDefaultPointerKey, getMinimumNameFee, computeBidFee, computeAuctionEndBlock, isAuctionName, } from './tx/builder/helpers';
8
+ export { MAX_AUTH_FUN_GAS, NAME_TTL, NAME_MAX_TTL, NAME_MAX_CLIENT_TTL, CLIENT_TTL, MIN_GAS_PRICE, NAME_FEE_MULTIPLIER, NAME_FEE_BID_INCREMENT, NAME_BID_TIMEOUT_BLOCKS, NAME_MAX_LENGTH_FEE, NAME_BID_RANGES, ConsensusProtocolVersion, VmVersion, AbiVersion, Tag, } from './tx/builder/constants';
9
+ export type { Int, AensName } from './tx/builder/constants';
8
10
  export { ORACLE_TTL_TYPES, ORACLE_TTL, QUERY_TTL, RESPONSE_TTL, DRY_RUN_ACCOUNT, CallReturnType, } from './tx/builder/schema';
9
11
  export { getExecutionCost, getExecutionCostBySignedTx, getExecutionCostUsingNode, } from './tx/execution-cost';
10
12
  export { default as getTransactionSignerAddress } from './tx/transaction-signer';
11
- export * from './utils/amount-formatter';
12
- export * from './utils/hd-wallet';
13
+ export { AE_AMOUNT_FORMATS, formatAmount, toAe, toAettos, prefixedAmount, } from './utils/amount-formatter';
14
+ export { DerivationError, deriveChild, derivePathFromKey, getMasterKeyFromSeed, derivePathFromSeed, getKeyPair, generateSaveHDWalletFromSeed, getSaveHDWalletAccounts, getHdWalletAccountFromSeed, } from './utils/hd-wallet';
13
15
  export { encode, decode, Encoding, Encoded, } from './utils/encoder';
14
- export * from './aens';
16
+ export { encodeFateValue, decodeFateValue, hashTypedData, hashDomain, hashJson, } from './utils/typed-data';
17
+ export { aensRevoke, aensUpdate, aensTransfer, aensQuery, aensClaim, aensPreclaim, aensBid, } from './aens';
15
18
  export { default as Contract } from './contract/Contract';
16
19
  export type { ContractMethodsBase } from './contract/Contract';
17
- export * from './oracle';
18
- export * from './spend';
19
- export * from './contract/ga';
20
+ export { pollForQueries, pollForQueryResponse, getQueryObject, postQueryToOracle, extendOracleTtl, respondToQuery, getOracleObject, registerOracle, } from './oracle';
21
+ export { spend, transferFunds, payForTransaction } from './spend';
22
+ export { createGeneralizedAccount, buildAuthTxHash, buildAuthTxHashByGaMetaTx } from './contract/ga';
20
23
  export { default as AeSdkMethods } from './AeSdkMethods';
21
24
  export { default as AeSdkBase } from './AeSdkBase';
22
25
  export { default as AeSdk } from './AeSdk';
@@ -32,9 +35,12 @@ export { default as AccountLedgerFactory } from './account/LedgerFactory';
32
35
  export { default as CompilerBase } from './contract/compiler/Base';
33
36
  export { default as CompilerHttp } from './contract/compiler/Http';
34
37
  export { default as Channel } from './channel/Contract';
38
+ export { default as _MiddlewareSubscriber, MiddlewareSubscriberError as _MiddlewareSubscriberError, MiddlewareSubscriberDisconnected as _MiddlewareSubscriberDisconnected, } from './MiddlewareSubscriber';
39
+ export { default as _Middleware } from './Middleware';
35
40
  export { default as connectionProxy } from './aepp-wallet-communication/connection-proxy';
36
- export * from './aepp-wallet-communication/schema';
41
+ export { MESSAGE_DIRECTION, WALLET_TYPE, SUBSCRIPTION_TYPES, METHODS, RPC_STATUS, RpcError, RpcInvalidTransactionError, RpcRejectedByUserError, RpcUnsupportedProtocolError, RpcConnectionDenyError, RpcNotAuthorizeError, RpcPermissionDenyError, RpcInternalError, RpcMethodNotFoundError, } from './aepp-wallet-communication/schema';
37
42
  export { default as walletDetector } from './aepp-wallet-communication/wallet-detector';
38
43
  export { default as BrowserRuntimeConnection } from './aepp-wallet-communication/connection/BrowserRuntime';
39
44
  export { default as BrowserWindowMessageConnection } from './aepp-wallet-communication/connection/BrowserWindowMessage';
40
- export * from './utils/errors';
45
+ export { BaseError, AccountError, AensError, AeppError, ChannelError, CompilerError, ContractError, CryptographyError, NodeError, TransactionError, WalletError, ArgumentError, IllegalArgumentError, ArgumentCountMismatchError, InsufficientBalanceError, MissingParamError, NoSerializerFoundError, RequestTimedOutError, TxTimedOutError, TypeError, UnsupportedPlatformError, UnsupportedProtocolError, NotImplementedError, UnsupportedVersionError, InternalError, UnexpectedTsError, UnavailableAccountError, AensPointerContextError, InsufficientNameFeeError, InvalidAensNameError, InvalidRpcMessageError, MissingCallbackError, UnAuthorizedAccountError, UnknownRpcClientError, UnsubscribedAccountError, ChannelCallError, ChannelConnectionError, ChannelPingTimedOutError, UnexpectedChannelMessageError, ChannelIncomingMessageError, UnknownChannelStateError, InvalidAuthDataError, BytecodeMismatchError, DuplicateContractError, InactiveContractError, InvalidMethodInvocationError, MissingContractAddressError, MissingContractDefError, MissingFunctionNameError, NodeInvocationError, NoSuchContractFunctionError, NotPayableFunctionError, MissingEventDefinitionError, AmbiguousEventDefinitionError, InvalidChecksumError, InvalidPasswordError, MerkleTreeHashMismatchError, MissingNodeInTreeError, UnknownNodeLengthError, UnknownPathNibbleError, DuplicateNodeError, NodeNotFoundError, DecodeError, PayloadLengthError, DryRunError, IllegalBidFeeError, InvalidSignatureError, PrefixNotFoundError, SchemaNotFoundError, TagNotFoundError, TxNotInChainError, AlreadyConnectedError, NoWalletConnectedError, RpcConnectionError, } from './utils/errors';
46
+ export { RpcBroadcastError, NAME_BID_MAX_LENGTH } from './deprecated';
@@ -34,7 +34,8 @@ interface SpendOptions extends SpendOptionsType {
34
34
  * console.log('Transaction mined at', blockHeight);
35
35
  * ```
36
36
  */
37
- export declare function transferFunds(fraction: number | string, recipientIdOrName: AensName | Encoded.AccountAddress, options: TransferFundsOptions): ReturnType<typeof sendTransaction>;
37
+ export declare function transferFunds(fraction: number | string, // TODO: accept only number
38
+ recipientIdOrName: AensName | Encoded.AccountAddress, options: TransferFundsOptions): ReturnType<typeof sendTransaction>;
38
39
  type TransferFundsOptionsType = BuildTxOptions<Tag.SpendTx, 'senderId' | 'recipientId' | 'amount'> & Parameters<typeof resolveName>[2] & {
39
40
  onAccount: AccountBase;
40
41
  } & SendTransactionOptions;
@@ -11,7 +11,6 @@ export declare const NAME_FEE_MULTIPLIER = 100000000000000;
11
11
  export declare const NAME_FEE_BID_INCREMENT = 0.05;
12
12
  export declare const NAME_BID_TIMEOUT_BLOCKS = 480;
13
13
  export declare const NAME_MAX_LENGTH_FEE = 31;
14
- export declare const NAME_BID_MAX_LENGTH = 12;
15
14
  export declare const NAME_BID_RANGES: {
16
15
  [k: string]: BigNumber;
17
16
  };
@@ -2,7 +2,7 @@
2
2
  import { Int } from '../constants';
3
3
  import { AE_AMOUNT_FORMATS } from '../../../utils/amount-formatter';
4
4
  declare const _default: {
5
- serializeAettos(value: string | undefined): string;
5
+ serializeAettos(value: string | undefined, params: {}): string;
6
6
  serialize(value: Int | undefined, params: {}, { denomination }: {
7
7
  denomination?: AE_AMOUNT_FORMATS | undefined;
8
8
  }): Buffer;
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  * @returns Deposit value Buffer.
10
10
  */
11
11
  serialize(value: Int | undefined, options: Parameters<(typeof coinAmount)['serialize']>[1], parameters: Parameters<(typeof coinAmount)['serialize']>[2]): Buffer;
12
- serializeAettos(value: string | undefined): string;
12
+ serializeAettos(value: string | undefined, params: {}): string;
13
13
  deserialize(value: Buffer): string;
14
14
  };
15
15
  export default _default;
@@ -1,157 +1,32 @@
1
1
  /// <reference types="node" />
2
- import _address from './address';
3
- import _array from './array';
4
- import _encoded from './encoded';
5
- import _entry from './entry';
6
- import _enumeration from './enumeration';
7
- import _map from './map';
8
- import _mptree from './mptree';
9
- import _nonce from './nonce';
10
- import _shortUIntConst from './short-u-int-const';
11
- import _wrapped from './wrapped';
12
- declare const abiVersion: {
13
- _getProtocolDetails(c: import("../constants").ConsensusProtocolVersion, tag: import("../constants").Tag): import("../constants").AbiVersion;
14
- serialize(value: import("../constants").AbiVersion | undefined, { tag }: {
15
- tag: import("../constants").Tag;
16
- }, { consensusProtocolVersion }: {
17
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
18
- }): Buffer;
19
- prepare(value: import("../constants").AbiVersion | undefined, { tag }: {
20
- tag: import("../constants").Tag;
21
- }, options: {
22
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
23
- onNode?: import("../../..").Node | undefined;
24
- }): Promise<import("../constants").AbiVersion | undefined>;
25
- deserialize(buffer: Buffer): import("../constants").AbiVersion;
26
- };
27
- declare const address: typeof _address;
28
- declare const array: typeof _array;
29
- declare const boolean: {
30
- serialize(value: boolean): Buffer;
31
- deserialize(buffer: Buffer): boolean;
32
- };
33
- declare const coinAmount: {
34
- serializeAettos(value: string | undefined): string;
35
- serialize(value: import("../constants").Int | undefined, params: {}, { denomination }: {
36
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
37
- }): Buffer;
38
- deserialize(value: Buffer): string;
39
- };
40
- declare const ctVersion: {
41
- serialize(value: import("./ct-version").CtVersion | undefined, params: {}, { consensusProtocolVersion }: {
42
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
43
- }): Buffer;
44
- prepare(value: import("./ct-version").CtVersion | undefined, params: {}, options: {
45
- consensusProtocolVersion?: import("../constants").ConsensusProtocolVersion | undefined;
46
- onNode?: import("../../..").Node | undefined;
47
- }): Promise<import("./ct-version").CtVersion | undefined>;
48
- deserialize(buffer: Buffer): import("./ct-version").CtVersion;
49
- };
50
- declare const deposit: {
51
- serialize(value: import("../constants").Int | undefined, options: {}, parameters: {
52
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
53
- }): Buffer;
54
- serializeAettos(value: string | undefined): string;
55
- deserialize(value: Buffer): string;
56
- };
57
- declare const encoded: typeof _encoded;
58
- declare const entry: typeof _entry;
59
- declare const enumeration: typeof _enumeration;
60
- declare const fee: {
61
- serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
62
- rebuildTx: (params: any) => `tx_${string}`;
63
- unpackTx: typeof import("..").unpackTx;
64
- buildTx: typeof import("..").buildTx;
65
- _computingMinFee?: import("bignumber.js").BigNumber | undefined;
66
- _pickBiggerFee?: boolean | undefined;
67
- }): string;
68
- serialize(value: import("../constants").Int | undefined, params: {}, { denomination }: {
69
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
70
- }): Buffer;
71
- deserialize(value: Buffer): string;
72
- };
73
- declare const field: {
74
- serialize(value: string): Buffer;
75
- deserialize(value: Buffer): string;
76
- };
77
- declare const gasLimit: {
78
- serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, _computingGasLimit, }: {
79
- tag: import("../constants").Tag;
80
- rebuildTx: (params: any) => any;
81
- unpackTx: typeof import("..").unpackTx;
82
- buildTx: typeof import("..").buildTx;
83
- _computingGasLimit?: number | undefined;
84
- }, { gasMax }: {
85
- gasMax?: number | undefined;
86
- }): Buffer;
87
- deserialize(value: Buffer): number;
88
- };
89
- declare const gasPrice: {
90
- serializeAettos(value?: string | undefined): string;
91
- serialize(value: import("../constants").Int | undefined, params: {}, { denomination }: {
92
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
93
- }): Buffer;
94
- deserialize(value: Buffer): string;
95
- };
96
- declare const map: typeof _map;
97
- declare const mptree: typeof _mptree;
98
- declare const name: {
99
- serialize(value: `${string}.chain`): Buffer;
100
- deserialize(value: Buffer): `${string}.chain`;
101
- };
102
- declare const nameFee: {
103
- serializeAettos(_value: string | undefined, txFields: {
104
- name: `${string}.chain`;
105
- }): string;
106
- serialize(value: import("../constants").Int | undefined, txFields: {
107
- name: `${string}.chain`;
108
- }, parameters: {
109
- denomination?: import("../../..").AE_AMOUNT_FORMATS | undefined;
110
- }): Buffer;
111
- deserialize(value: Buffer): string;
112
- };
113
- declare const nameId: {
114
- serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
115
- deserialize: (value: Buffer) => `nm_${string}`;
116
- };
117
- declare const nonce: typeof _nonce;
118
- declare const pointers: {
119
- serialize(pointers: (import("../../../apis/node").NamePointer & {
120
- id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
121
- })[]): Buffer[][];
122
- deserialize(pointers: [
123
- key: Buffer,
124
- id: Buffer
125
- ][]): (import("../../../apis/node").NamePointer & {
126
- id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
127
- })[];
128
- };
129
- declare const raw: {
130
- serialize(buffer: Uint8Array): Buffer;
131
- deserialize(buffer: Buffer): Buffer;
132
- };
133
- declare const shortUInt: {
134
- serialize(value: number): Buffer;
135
- deserialize(value: Buffer): number;
136
- };
137
- declare const shortUIntConst: typeof _shortUIntConst;
138
- declare const string: {
139
- serialize(string: string): Buffer;
140
- deserialize(buffer: Buffer): string;
141
- };
142
- declare const ttl: {
143
- serialize(value: number | undefined): Buffer;
144
- prepare(value: number | undefined, params: {}, { onNode, absoluteTtl }: {
145
- onNode?: import("../../..").Node | undefined;
146
- absoluteTtl?: boolean | undefined;
147
- }): Promise<number | undefined>;
148
- deserialize(value: Buffer): number;
149
- };
150
- declare const uInt: {
151
- serialize(value: import("../constants").Int): Buffer;
152
- deserialize(value: Buffer): string;
153
- };
154
- declare const wrapped: typeof _wrapped;
2
+ import abiVersion from './abi-version';
3
+ import address from './address';
4
+ import array from './array';
5
+ import boolean from './boolean';
6
+ import coinAmount from './coin-amount';
7
+ import ctVersion from './ct-version';
8
+ import deposit from './deposit';
9
+ import encoded from './encoded';
10
+ import entry from './entry';
11
+ import enumeration from './enumeration';
12
+ import fee from './fee';
13
+ import field from './field';
14
+ import gasLimit from './gas-limit';
15
+ import gasPrice from './gas-price';
16
+ import map from './map';
17
+ import mptree from './mptree';
18
+ import name from './name';
19
+ import nameFee from './name-fee';
20
+ import nameId from './name-id';
21
+ import nonce from './nonce';
22
+ import pointers from './pointers';
23
+ import raw from './raw';
24
+ import shortUInt from './short-u-int';
25
+ import shortUIntConst from './short-u-int-const';
26
+ import string from './string';
27
+ import ttl from './ttl';
28
+ import uInt from './u-int';
29
+ import wrapped from './wrapped';
155
30
  export type BinaryData = Buffer | Buffer[] | Buffer[][] | Array<[
156
31
  Buffer,
157
32
  Array<[
@@ -22,6 +22,7 @@ export declare function buildContractId(ownerId: Encoded.AccountAddress, nonce:
22
22
  * @returns Contract public key
23
23
  */
24
24
  export declare function oracleQueryId(senderId: Encoded.AccountAddress, nonce: number | BigNumber | string, oracleId: Encoded.OracleAddress): Encoded.OracleQueryId;
25
+ export declare function nameToPunycode(maybeName: string): AensName;
25
26
  /**
26
27
  * Encode an AENS name
27
28
  * @category AENS
@@ -45,12 +46,18 @@ export declare function commitmentHash(name: AensName, salt?: number): Encoded.C
45
46
  * @returns Buffer Buffer from number(BigEndian)
46
47
  */
47
48
  export declare function readInt(buf?: Buffer): string;
49
+ /**
50
+ * Ensure that name is valid AENS name, would throw an exception otherwise
51
+ * @category AENS
52
+ * @param name - AENS name
53
+ */
54
+ export declare function ensureName(maybeName: string): asserts maybeName is AensName;
48
55
  /**
49
56
  * Is AENS name valid
50
57
  * @category AENS
51
58
  * @param name - AENS name
52
59
  */
53
- export declare function isNameValid(name: string): name is AensName;
60
+ export declare function isNameValid(maybeName: string): maybeName is AensName;
54
61
  declare const encodingToPointerKey: readonly [
55
62
  readonly [
56
63
  Encoded.Encoding.AccountAddress,
@@ -9,6 +9,7 @@ export declare function getSchema(tag: Tag, version?: number): Array<[
9
9
  string,
10
10
  Field
11
11
  ]>;
12
+ type TxEncoding = Encoding.Transaction | Encoding.Poi | Encoding.StateTrees | Encoding.CallStateTree;
12
13
  /**
13
14
  * Build transaction hash
14
15
  * @category transaction builder
@@ -17,7 +18,7 @@ export declare function getSchema(tag: Tag, version?: number): Array<[
17
18
  * @param options.prefix - Prefix of transaction
18
19
  * @returns object Base64Check transaction hash with 'tx_' prefix
19
20
  */
20
- export declare function buildTx<E extends Encoding = Encoding.Transaction>(params: TxParams, { prefix, }?: {
21
+ export declare function buildTx<E extends TxEncoding = Encoding.Transaction>(params: TxParams, { prefix }?: {
21
22
  prefix?: E;
22
23
  }): Encoded.Generic<E>;
23
24
  export type BuildTxOptions<TxType extends Tag, OmitFields extends string> = Omit<TxParamsAsync & {
@@ -34,7 +35,7 @@ export declare function buildTxAsync(params: TxParamsAsync): Promise<Encoded.Tra
34
35
  * @param txType - Expected transaction type
35
36
  * @returns Object with transaction param's
36
37
  */
37
- export declare function unpackTx<TxType extends Tag>(encodedTx: Encoded.Transaction | Encoded.Poi | Encoded.StateTrees | Encoded.CallStateTree, txType?: TxType): TxUnpacked & {
38
+ export declare function unpackTx<TxType extends Tag>(encodedTx: Encoded.Generic<TxEncoding>, txType?: TxType): TxUnpacked & {
38
39
  tag: TxType;
39
40
  };
40
41
  /**
@@ -51,3 +52,4 @@ export declare function buildTxHash(rawTx: Encoded.Transaction | Uint8Array): En
51
52
  * @returns Contract public key
52
53
  */
53
54
  export declare function buildContractIdByContractTx(contractTx: Encoded.Transaction): Encoded.ContractAddress;
55
+ export {};