@aeternity/aepp-sdk 13.2.1 → 13.3.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 (509) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/bin/aesophia_cli +0 -0
  4. package/bin/aesophia_cli_8 +0 -0
  5. package/dist/aepp-sdk.browser-script.js +1 -1
  6. package/dist/aepp-sdk.browser-script.js.map +1 -1
  7. package/dist/aepp-sdk.browser.js +1 -1
  8. package/dist/aepp-sdk.browser.js.map +1 -1
  9. package/dist/aepp-sdk.js +7288 -9464
  10. package/dist/aepp-sdk.js.map +1 -1
  11. package/es/AeSdk.d.ts +3 -0
  12. package/es/AeSdk.mjs +12 -12
  13. package/es/AeSdk.mjs.map +1 -1
  14. package/es/AeSdkAepp.d.ts +0 -1
  15. package/es/AeSdkAepp.mjs +12 -16
  16. package/es/AeSdkAepp.mjs.map +1 -1
  17. package/es/AeSdkBase.d.ts +61 -6
  18. package/es/AeSdkBase.mjs +150 -69
  19. package/es/AeSdkBase.mjs.map +1 -1
  20. package/es/AeSdkMethods.d.ts +19 -7
  21. package/es/AeSdkMethods.mjs +39 -38
  22. package/es/AeSdkMethods.mjs.map +1 -1
  23. package/es/AeSdkWallet.mjs +86 -55
  24. package/es/AeSdkWallet.mjs.map +1 -1
  25. package/es/Middleware.d.ts +1 -1
  26. package/es/Middleware.mjs +32 -28
  27. package/es/Middleware.mjs.map +1 -1
  28. package/es/MiddlewareSubscriber.mjs +5 -14
  29. package/es/MiddlewareSubscriber.mjs.map +1 -1
  30. package/es/Node.d.ts +11 -3
  31. package/es/Node.mjs +65 -57
  32. package/es/Node.mjs.map +1 -1
  33. package/es/account/Base.d.ts +39 -3
  34. package/es/account/Base.mjs +35 -1
  35. package/es/account/Base.mjs.map +1 -1
  36. package/es/account/Generalized.d.ts +2 -0
  37. package/es/account/Generalized.mjs +15 -6
  38. package/es/account/Generalized.mjs.map +1 -1
  39. package/es/account/Ledger.d.ts +2 -0
  40. package/es/account/Ledger.mjs +14 -5
  41. package/es/account/Ledger.mjs.map +1 -1
  42. package/es/account/LedgerFactory.mjs +4 -6
  43. package/es/account/LedgerFactory.mjs.map +1 -1
  44. package/es/account/Memory.d.ts +15 -4
  45. package/es/account/Memory.mjs +96 -31
  46. package/es/account/Memory.mjs.map +1 -1
  47. package/es/account/Rpc.d.ts +16 -5
  48. package/es/account/Rpc.mjs +94 -21
  49. package/es/account/Rpc.mjs.map +1 -1
  50. package/es/aens.d.ts +17 -44
  51. package/es/aens.mjs +32 -71
  52. package/es/aens.mjs.map +1 -1
  53. package/es/aepp-wallet-communication/connection/Browser.mjs +3 -4
  54. package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
  55. package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +3 -0
  56. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +7 -5
  57. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
  58. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +8 -9
  59. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
  60. package/es/aepp-wallet-communication/rpc/RpcClient.mjs +7 -7
  61. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
  62. package/es/aepp-wallet-communication/rpc/types.d.ts +14 -0
  63. package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
  64. package/es/aepp-wallet-communication/schema.d.ts +2 -0
  65. package/es/aepp-wallet-communication/schema.mjs +2 -0
  66. package/es/aepp-wallet-communication/schema.mjs.map +1 -1
  67. package/es/aepp-wallet-communication/wallet-detector.d.ts +2 -5
  68. package/es/aepp-wallet-communication/wallet-detector.mjs +13 -9
  69. package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
  70. package/es/apis/compiler/compiler.mjs.map +1 -1
  71. package/es/apis/compiler/models/index.d.ts +1 -0
  72. package/es/apis/compiler/models/index.mjs.map +1 -1
  73. package/es/apis/compiler/models/mappers.mjs +13 -0
  74. package/es/apis/compiler/models/mappers.mjs.map +1 -1
  75. package/es/apis/compiler/models/parameters.mjs.map +1 -1
  76. package/es/apis/middleware/middleware.d.ts +23 -5
  77. package/es/apis/middleware/middleware.mjs +114 -18
  78. package/es/apis/middleware/middleware.mjs.map +1 -1
  79. package/es/apis/middleware/models/index.d.ts +164 -15
  80. package/es/apis/middleware/models/index.mjs +53 -3
  81. package/es/apis/middleware/models/index.mjs.map +1 -1
  82. package/es/apis/middleware/models/mappers.d.ts +8 -1
  83. package/es/apis/middleware/models/mappers.mjs +376 -3
  84. package/es/apis/middleware/models/mappers.mjs.map +1 -1
  85. package/es/apis/middleware/models/parameters.d.ts +6 -3
  86. package/es/apis/middleware/models/parameters.mjs +38 -11
  87. package/es/apis/middleware/models/parameters.mjs.map +1 -1
  88. package/es/apis/node/models/index.d.ts +66 -2
  89. package/es/apis/node/models/index.mjs.map +1 -1
  90. package/es/apis/node/models/mappers.d.ts +5 -1
  91. package/es/apis/node/models/mappers.mjs +229 -7
  92. package/es/apis/node/models/mappers.mjs.map +1 -1
  93. package/es/apis/node/models/parameters.d.ts +2 -2
  94. package/es/apis/node/models/parameters.mjs +2 -2
  95. package/es/apis/node/models/parameters.mjs.map +1 -1
  96. package/es/apis/node/node.d.ts +24 -3
  97. package/es/apis/node/node.mjs +135 -3
  98. package/es/apis/node/node.mjs.map +1 -1
  99. package/es/chain.d.ts +14 -44
  100. package/es/chain.mjs +125 -219
  101. package/es/chain.mjs.map +1 -1
  102. package/es/channel/Base.d.ts +3 -47
  103. package/es/channel/Base.mjs +21 -54
  104. package/es/channel/Base.mjs.map +1 -1
  105. package/es/channel/Contract.d.ts +16 -25
  106. package/es/channel/Contract.mjs +39 -63
  107. package/es/channel/Contract.mjs.map +1 -1
  108. package/es/channel/Spend.d.ts +0 -8
  109. package/es/channel/Spend.mjs +17 -29
  110. package/es/channel/Spend.mjs.map +1 -1
  111. package/es/channel/handlers.mjs +1 -1
  112. package/es/channel/handlers.mjs.map +1 -1
  113. package/es/channel/internal.d.ts +104 -5
  114. package/es/channel/internal.mjs +26 -34
  115. package/es/channel/internal.mjs.map +1 -1
  116. package/es/contract/Contract.d.ts +10 -2
  117. package/es/contract/Contract.mjs +83 -79
  118. package/es/contract/Contract.mjs.map +1 -1
  119. package/es/contract/compiler/Base.d.ts +14 -8
  120. package/es/contract/compiler/Base.mjs.map +1 -1
  121. package/es/contract/compiler/Cli.d.ts +12 -11
  122. package/es/contract/compiler/Cli.mjs +52 -25
  123. package/es/contract/compiler/Cli.mjs.map +1 -1
  124. package/es/contract/compiler/Cli8.d.ts +13 -0
  125. package/es/contract/compiler/Cli8.mjs +22 -0
  126. package/es/contract/compiler/Cli8.mjs.map +1 -0
  127. package/es/contract/compiler/Http.d.ts +3 -9
  128. package/es/contract/compiler/Http.mjs +28 -16
  129. package/es/contract/compiler/Http.mjs.map +1 -1
  130. package/es/contract/compiler/HttpNode.d.ts +2 -5
  131. package/es/contract/compiler/HttpNode.mjs.map +1 -1
  132. package/es/contract/delegation-signature.d.ts +2 -1
  133. package/es/contract/delegation-signature.mjs +18 -14
  134. package/es/contract/delegation-signature.mjs.map +1 -1
  135. package/es/contract/ga.d.ts +1 -2
  136. package/es/contract/ga.mjs +23 -25
  137. package/es/contract/ga.mjs.map +1 -1
  138. package/es/deprecated.d.ts +48 -0
  139. package/es/deprecated.mjs +66 -1
  140. package/es/deprecated.mjs.map +1 -1
  141. package/es/index-browser.d.ts +11 -6
  142. package/es/index-browser.mjs +10 -6
  143. package/es/index-browser.mjs.map +1 -1
  144. package/es/index.d.ts +1 -0
  145. package/es/index.mjs +1 -0
  146. package/es/index.mjs.map +1 -1
  147. package/es/oracle.d.ts +6 -37
  148. package/es/oracle.mjs +32 -66
  149. package/es/oracle.mjs.map +1 -1
  150. package/es/send-transaction.d.ts +53 -0
  151. package/es/send-transaction.mjs +109 -0
  152. package/es/send-transaction.mjs.map +1 -0
  153. package/es/spend.d.ts +4 -3
  154. package/es/spend.mjs +6 -1
  155. package/es/spend.mjs.map +1 -1
  156. package/es/tx/builder/common.d.ts +29 -0
  157. package/es/tx/builder/common.mjs +42 -0
  158. package/es/tx/builder/common.mjs.map +1 -0
  159. package/es/tx/builder/constants.d.ts +6 -5
  160. package/es/tx/builder/constants.mjs +7 -15
  161. package/es/tx/builder/constants.mjs.map +1 -1
  162. package/es/tx/builder/delegation/index.d.ts +20 -0
  163. package/es/tx/builder/delegation/index.mjs +24 -0
  164. package/es/tx/builder/delegation/index.mjs.map +1 -0
  165. package/es/tx/builder/delegation/schema.d.ts +130 -0
  166. package/es/tx/builder/delegation/schema.generated.d.ts +141 -0
  167. package/es/tx/builder/delegation/schema.generated.mjs +2 -0
  168. package/es/tx/builder/delegation/schema.generated.mjs.map +1 -0
  169. package/es/tx/builder/delegation/schema.mjs +54 -0
  170. package/es/tx/builder/delegation/schema.mjs.map +1 -0
  171. package/es/tx/builder/field-types/abi-version.mjs +8 -11
  172. package/es/tx/builder/field-types/abi-version.mjs.map +1 -1
  173. package/es/tx/builder/field-types/address.mjs +1 -4
  174. package/es/tx/builder/field-types/address.mjs.map +1 -1
  175. package/es/tx/builder/field-types/coin-amount.d.ts +2 -2
  176. package/es/tx/builder/field-types/coin-amount.mjs +6 -6
  177. package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
  178. package/es/tx/builder/field-types/ct-version.d.ts +1 -1
  179. package/es/tx/builder/field-types/ct-version.mjs +4 -5
  180. package/es/tx/builder/field-types/ct-version.mjs.map +1 -1
  181. package/es/tx/builder/field-types/entry.mjs +7 -13
  182. package/es/tx/builder/field-types/entry.mjs.map +1 -1
  183. package/es/tx/builder/field-types/fee.d.ts +19 -11
  184. package/es/tx/builder/field-types/fee.mjs +57 -39
  185. package/es/tx/builder/field-types/fee.mjs.map +1 -1
  186. package/es/tx/builder/field-types/gas-limit.mjs +13 -15
  187. package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
  188. package/es/tx/builder/field-types/gas-price.d.ts +10 -2
  189. package/es/tx/builder/field-types/gas-price.mjs +53 -4
  190. package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
  191. package/es/tx/builder/field-types/index.d.ts +31 -29
  192. package/es/tx/builder/field-types/index.mjs +31 -29
  193. package/es/tx/builder/field-types/index.mjs.map +1 -1
  194. package/es/tx/builder/field-types/map.mjs +20 -31
  195. package/es/tx/builder/field-types/map.mjs.map +1 -1
  196. package/es/tx/builder/field-types/mptree.mjs +14 -29
  197. package/es/tx/builder/field-types/mptree.mjs.map +1 -1
  198. package/es/tx/builder/field-types/name-fee.d.ts +1 -1
  199. package/es/tx/builder/field-types/name-fee.mjs +1 -1
  200. package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
  201. package/es/tx/builder/field-types/nonce.d.ts +1 -0
  202. package/es/tx/builder/field-types/nonce.mjs +2 -0
  203. package/es/tx/builder/field-types/nonce.mjs.map +1 -1
  204. package/es/tx/builder/field-types/pointers.mjs +4 -7
  205. package/es/tx/builder/field-types/pointers.mjs.map +1 -1
  206. package/es/tx/builder/field-types/pointers2.d.ts +23 -0
  207. package/es/tx/builder/field-types/pointers2.mjs +65 -0
  208. package/es/tx/builder/field-types/pointers2.mjs.map +1 -0
  209. package/es/tx/builder/field-types/query-fee.d.ts +19 -0
  210. package/es/tx/builder/field-types/query-fee.mjs +20 -0
  211. package/es/tx/builder/field-types/query-fee.mjs.map +1 -0
  212. package/es/tx/builder/field-types/ttl.d.ts +9 -1
  213. package/es/tx/builder/field-types/ttl.mjs +19 -8
  214. package/es/tx/builder/field-types/ttl.mjs.map +1 -1
  215. package/es/tx/builder/field-types/with-default.d.ts +7 -0
  216. package/es/tx/builder/field-types/with-default.mjs +9 -0
  217. package/es/tx/builder/field-types/with-default.mjs.map +1 -0
  218. package/es/tx/builder/field-types/with-formatting.d.ts +7 -0
  219. package/es/tx/builder/field-types/with-formatting.mjs +9 -0
  220. package/es/tx/builder/field-types/with-formatting.mjs.map +1 -0
  221. package/es/tx/builder/field-types/wrapped.mjs +6 -8
  222. package/es/tx/builder/field-types/wrapped.mjs.map +1 -1
  223. package/es/tx/builder/helpers.d.ts +2 -2
  224. package/es/tx/builder/helpers.mjs +12 -21
  225. package/es/tx/builder/helpers.mjs.map +1 -1
  226. package/es/tx/builder/index.d.ts +17 -10
  227. package/es/tx/builder/index.mjs +39 -65
  228. package/es/tx/builder/index.mjs.map +1 -1
  229. package/es/tx/builder/schema.d.ts +478 -257
  230. package/es/tx/builder/schema.generated.d.ts +39 -3
  231. package/es/tx/builder/schema.generated.mjs.map +1 -1
  232. package/es/tx/builder/schema.mjs +48 -36
  233. package/es/tx/builder/schema.mjs.map +1 -1
  234. package/es/tx/execution-cost.d.ts +6 -5
  235. package/es/tx/execution-cost.mjs +16 -17
  236. package/es/tx/execution-cost.mjs.map +1 -1
  237. package/es/tx/transaction-signer.mjs +1 -4
  238. package/es/tx/transaction-signer.mjs.map +1 -1
  239. package/es/tx/validator.mjs +61 -42
  240. package/es/tx/validator.mjs.map +1 -1
  241. package/es/utils/amount-formatter.mjs +15 -22
  242. package/es/utils/amount-formatter.mjs.map +1 -1
  243. package/es/utils/autorest.d.ts +2 -3
  244. package/es/utils/autorest.mjs +41 -25
  245. package/es/utils/autorest.mjs.map +1 -1
  246. package/es/utils/bytes.mjs +1 -2
  247. package/es/utils/bytes.mjs.map +1 -1
  248. package/es/utils/crypto.d.ts +9 -5
  249. package/es/utils/crypto.mjs +18 -14
  250. package/es/utils/crypto.mjs.map +1 -1
  251. package/es/utils/errors.d.ts +6 -0
  252. package/es/utils/errors.mjs +12 -6
  253. package/es/utils/errors.mjs.map +1 -1
  254. package/es/utils/hd-wallet.d.ts +2 -0
  255. package/es/utils/hd-wallet.mjs +6 -5
  256. package/es/utils/hd-wallet.mjs.map +1 -1
  257. package/es/utils/json-big.mjs +2 -10
  258. package/es/utils/json-big.mjs.map +1 -1
  259. package/es/utils/jwt.d.ts +53 -0
  260. package/es/utils/jwt.mjs +120 -0
  261. package/es/utils/jwt.mjs.map +1 -0
  262. package/es/utils/keystore.d.ts +6 -2
  263. package/es/utils/keystore.mjs +8 -16
  264. package/es/utils/keystore.mjs.map +1 -1
  265. package/es/utils/typed-data.d.ts +0 -2
  266. package/es/utils/typed-data.mjs +8 -23
  267. package/es/utils/typed-data.mjs.map +1 -1
  268. package/es/utils/wrap-proxy.d.ts +2 -0
  269. package/es/utils/wrap-proxy.mjs +15 -0
  270. package/es/utils/wrap-proxy.mjs.map +1 -0
  271. package/package.json +57 -51
  272. package/src/AeSdk.ts +3 -0
  273. package/src/AeSdkAepp.ts +0 -1
  274. package/src/AeSdkBase.ts +97 -10
  275. package/src/AeSdkMethods.ts +37 -33
  276. package/src/AeSdkWallet.ts +22 -3
  277. package/src/Middleware.ts +17 -9
  278. package/src/MiddlewareSubscriber.ts +1 -1
  279. package/src/Node.ts +51 -21
  280. package/src/account/Base.ts +62 -3
  281. package/src/account/Generalized.ts +10 -0
  282. package/src/account/Ledger.ts +10 -0
  283. package/src/account/Memory.ts +83 -9
  284. package/src/account/Rpc.ts +69 -6
  285. package/src/aens.ts +35 -56
  286. package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +3 -0
  287. package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +2 -2
  288. package/src/aepp-wallet-communication/rpc/RpcClient.ts +4 -2
  289. package/src/aepp-wallet-communication/rpc/types.ts +14 -1
  290. package/src/aepp-wallet-communication/schema.ts +2 -0
  291. package/src/aepp-wallet-communication/wallet-detector.ts +10 -10
  292. package/src/apis/compiler/compiler.ts +93 -93
  293. package/src/apis/compiler/models/index.ts +1 -0
  294. package/src/apis/compiler/models/mappers.ts +178 -165
  295. package/src/apis/compiler/models/parameters.ts +18 -18
  296. package/src/apis/middleware/middleware.ts +462 -341
  297. package/src/apis/middleware/models/index.ts +258 -56
  298. package/src/apis/middleware/models/mappers.ts +2357 -1919
  299. package/src/apis/middleware/models/parameters.ts +172 -142
  300. package/src/apis/node/models/index.ts +79 -2
  301. package/src/apis/node/models/mappers.ts +1529 -1302
  302. package/src/apis/node/models/parameters.ts +51 -51
  303. package/src/apis/node/node.ts +420 -275
  304. package/src/chain.ts +42 -128
  305. package/src/channel/Base.ts +14 -47
  306. package/src/channel/Contract.ts +18 -26
  307. package/src/channel/Spend.ts +0 -8
  308. package/src/channel/internal.ts +115 -13
  309. package/src/contract/Contract.ts +36 -12
  310. package/src/contract/compiler/Base.ts +15 -8
  311. package/src/contract/compiler/Cli.ts +44 -23
  312. package/src/contract/compiler/Cli8.ts +17 -0
  313. package/src/contract/compiler/Http.ts +24 -14
  314. package/src/contract/compiler/HttpNode.ts +2 -2
  315. package/src/contract/delegation-signature.ts +11 -5
  316. package/src/contract/ga.ts +4 -3
  317. package/src/deprecated.ts +55 -1
  318. package/src/index-browser.ts +18 -11
  319. package/src/index.ts +1 -0
  320. package/src/oracle.ts +11 -54
  321. package/src/send-transaction.ts +136 -0
  322. package/src/spend.ts +25 -11
  323. package/src/tx/builder/common.ts +74 -0
  324. package/src/tx/builder/constants.ts +7 -9
  325. package/src/tx/builder/delegation/index.ts +28 -0
  326. package/src/tx/builder/delegation/schema.generated.ts +143 -0
  327. package/src/tx/builder/delegation/schema.ts +61 -0
  328. package/src/tx/builder/field-types/coin-amount.ts +3 -2
  329. package/src/tx/builder/field-types/ct-version.ts +1 -1
  330. package/src/tx/builder/field-types/entry.ts +1 -4
  331. package/src/tx/builder/field-types/fee.ts +72 -44
  332. package/src/tx/builder/field-types/gas-limit.ts +4 -4
  333. package/src/tx/builder/field-types/gas-price.ts +59 -3
  334. package/src/tx/builder/field-types/index.ts +31 -59
  335. package/src/tx/builder/field-types/name-fee.ts +1 -1
  336. package/src/tx/builder/field-types/nonce.ts +7 -1
  337. package/src/tx/builder/field-types/pointers2.ts +62 -0
  338. package/src/tx/builder/field-types/query-fee.ts +25 -0
  339. package/src/tx/builder/field-types/ttl.ts +13 -3
  340. package/src/tx/builder/field-types/with-default.ts +18 -0
  341. package/src/tx/builder/field-types/with-formatting.ts +18 -0
  342. package/src/tx/builder/helpers.ts +2 -2
  343. package/src/tx/builder/index.ts +42 -59
  344. package/src/tx/builder/schema.generated.ts +39 -3
  345. package/src/tx/builder/schema.ts +55 -29
  346. package/src/tx/execution-cost.ts +6 -5
  347. package/src/tx/validator.ts +31 -5
  348. package/src/utils/autorest.ts +37 -28
  349. package/src/utils/crypto.ts +24 -14
  350. package/src/utils/errors.ts +10 -0
  351. package/src/utils/hd-wallet.ts +2 -0
  352. package/src/utils/jwt.ts +126 -0
  353. package/src/utils/keystore.ts +6 -2
  354. package/src/utils/typed-data.ts +4 -30
  355. package/src/utils/wrap-proxy.ts +24 -0
  356. package/types-legacy/ts4.2/AeSdk.d.ts +3 -0
  357. package/types-legacy/ts4.2/AeSdkAepp.d.ts +0 -1
  358. package/types-legacy/ts4.2/AeSdkBase.d.ts +61 -6
  359. package/types-legacy/ts4.2/AeSdkMethods.d.ts +19 -7
  360. package/types-legacy/ts4.2/Middleware.d.ts +1 -1
  361. package/types-legacy/ts4.2/Node.d.ts +15 -2
  362. package/types-legacy/ts4.2/account/Base.d.ts +39 -3
  363. package/types-legacy/ts4.2/account/Generalized.d.ts +2 -0
  364. package/types-legacy/ts4.2/account/Ledger.d.ts +2 -0
  365. package/types-legacy/ts4.2/account/Memory.d.ts +15 -4
  366. package/types-legacy/ts4.2/account/Rpc.d.ts +16 -5
  367. package/types-legacy/ts4.2/aens.d.ts +17 -44
  368. package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserRuntime.d.ts +3 -0
  369. package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +14 -0
  370. package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +2 -0
  371. package/types-legacy/ts4.2/aepp-wallet-communication/wallet-detector.d.ts +2 -5
  372. package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +1 -0
  373. package/types-legacy/ts4.2/apis/middleware/middleware.d.ts +23 -5
  374. package/types-legacy/ts4.2/apis/middleware/models/index.d.ts +164 -15
  375. package/types-legacy/ts4.2/apis/middleware/models/mappers.d.ts +8 -1
  376. package/types-legacy/ts4.2/apis/middleware/models/parameters.d.ts +6 -3
  377. package/types-legacy/ts4.2/apis/node/models/index.d.ts +66 -2
  378. package/types-legacy/ts4.2/apis/node/models/mappers.d.ts +5 -1
  379. package/types-legacy/ts4.2/apis/node/models/parameters.d.ts +2 -2
  380. package/types-legacy/ts4.2/apis/node/node.d.ts +24 -3
  381. package/types-legacy/ts4.2/chain.d.ts +14 -44
  382. package/types-legacy/ts4.2/channel/Base.d.ts +3 -47
  383. package/types-legacy/ts4.2/channel/Contract.d.ts +16 -25
  384. package/types-legacy/ts4.2/channel/Spend.d.ts +0 -8
  385. package/types-legacy/ts4.2/channel/internal.d.ts +104 -5
  386. package/types-legacy/ts4.2/contract/Contract.d.ts +10 -2
  387. package/types-legacy/ts4.2/contract/compiler/Base.d.ts +14 -8
  388. package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +12 -11
  389. package/types-legacy/ts4.2/contract/compiler/Cli8.d.ts +13 -0
  390. package/types-legacy/ts4.2/contract/compiler/Http.d.ts +3 -9
  391. package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +2 -5
  392. package/types-legacy/ts4.2/contract/delegation-signature.d.ts +2 -1
  393. package/types-legacy/ts4.2/contract/ga.d.ts +1 -2
  394. package/types-legacy/ts4.2/deprecated.d.ts +48 -0
  395. package/types-legacy/ts4.2/index-browser.d.ts +11 -6
  396. package/types-legacy/ts4.2/index.d.ts +1 -0
  397. package/types-legacy/ts4.2/oracle.d.ts +6 -37
  398. package/types-legacy/ts4.2/send-transaction.d.ts +53 -0
  399. package/types-legacy/ts4.2/spend.d.ts +4 -3
  400. package/types-legacy/ts4.2/tx/builder/common.d.ts +32 -0
  401. package/types-legacy/ts4.2/tx/builder/constants.d.ts +6 -5
  402. package/types-legacy/ts4.2/tx/builder/delegation/index.d.ts +20 -0
  403. package/types-legacy/ts4.2/tx/builder/delegation/schema.d.ts +136 -0
  404. package/types-legacy/ts4.2/tx/builder/delegation/schema.generated.d.ts +141 -0
  405. package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +2 -2
  406. package/types-legacy/ts4.2/tx/builder/field-types/ct-version.d.ts +1 -1
  407. package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +19 -11
  408. package/types-legacy/ts4.2/tx/builder/field-types/gas-price.d.ts +10 -2
  409. package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +31 -29
  410. package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +1 -1
  411. package/types-legacy/ts4.2/tx/builder/field-types/nonce.d.ts +1 -0
  412. package/types-legacy/ts4.2/tx/builder/field-types/pointers2.d.ts +26 -0
  413. package/types-legacy/ts4.2/tx/builder/field-types/query-fee.d.ts +19 -0
  414. package/types-legacy/ts4.2/tx/builder/field-types/ttl.d.ts +9 -1
  415. package/types-legacy/ts4.2/tx/builder/field-types/with-default.d.ts +7 -0
  416. package/types-legacy/ts4.2/tx/builder/field-types/with-formatting.d.ts +7 -0
  417. package/types-legacy/ts4.2/tx/builder/helpers.d.ts +2 -2
  418. package/types-legacy/ts4.2/tx/builder/index.d.ts +17 -10
  419. package/types-legacy/ts4.2/tx/builder/schema.d.ts +482 -257
  420. package/types-legacy/ts4.2/tx/builder/schema.generated.d.ts +39 -3
  421. package/types-legacy/ts4.2/tx/execution-cost.d.ts +6 -5
  422. package/types-legacy/ts4.2/utils/autorest.d.ts +2 -3
  423. package/types-legacy/ts4.2/utils/crypto.d.ts +9 -5
  424. package/types-legacy/ts4.2/utils/errors.d.ts +6 -0
  425. package/types-legacy/ts4.2/utils/hd-wallet.d.ts +2 -0
  426. package/types-legacy/ts4.2/utils/jwt.d.ts +53 -0
  427. package/types-legacy/ts4.2/utils/keystore.d.ts +6 -2
  428. package/types-legacy/ts4.2/utils/typed-data.d.ts +0 -2
  429. package/types-legacy/ts4.2/utils/wrap-proxy.d.ts +2 -0
  430. package/types-legacy/ts4.5/AeSdk.d.ts +3 -0
  431. package/types-legacy/ts4.5/AeSdkAepp.d.ts +0 -1
  432. package/types-legacy/ts4.5/AeSdkBase.d.ts +61 -6
  433. package/types-legacy/ts4.5/AeSdkMethods.d.ts +19 -7
  434. package/types-legacy/ts4.5/Middleware.d.ts +1 -1
  435. package/types-legacy/ts4.5/Node.d.ts +15 -2
  436. package/types-legacy/ts4.5/account/Base.d.ts +39 -3
  437. package/types-legacy/ts4.5/account/Generalized.d.ts +2 -0
  438. package/types-legacy/ts4.5/account/Ledger.d.ts +2 -0
  439. package/types-legacy/ts4.5/account/Memory.d.ts +15 -4
  440. package/types-legacy/ts4.5/account/Rpc.d.ts +16 -5
  441. package/types-legacy/ts4.5/aens.d.ts +17 -44
  442. package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserRuntime.d.ts +3 -0
  443. package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +14 -0
  444. package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +2 -0
  445. package/types-legacy/ts4.5/aepp-wallet-communication/wallet-detector.d.ts +2 -5
  446. package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +1 -0
  447. package/types-legacy/ts4.5/apis/middleware/middleware.d.ts +23 -5
  448. package/types-legacy/ts4.5/apis/middleware/models/index.d.ts +164 -15
  449. package/types-legacy/ts4.5/apis/middleware/models/mappers.d.ts +8 -1
  450. package/types-legacy/ts4.5/apis/middleware/models/parameters.d.ts +6 -3
  451. package/types-legacy/ts4.5/apis/node/models/index.d.ts +66 -2
  452. package/types-legacy/ts4.5/apis/node/models/mappers.d.ts +5 -1
  453. package/types-legacy/ts4.5/apis/node/models/parameters.d.ts +2 -2
  454. package/types-legacy/ts4.5/apis/node/node.d.ts +24 -3
  455. package/types-legacy/ts4.5/chain.d.ts +14 -44
  456. package/types-legacy/ts4.5/channel/Base.d.ts +3 -47
  457. package/types-legacy/ts4.5/channel/Contract.d.ts +16 -25
  458. package/types-legacy/ts4.5/channel/Spend.d.ts +0 -8
  459. package/types-legacy/ts4.5/channel/internal.d.ts +104 -5
  460. package/types-legacy/ts4.5/contract/Contract.d.ts +10 -2
  461. package/types-legacy/ts4.5/contract/compiler/Base.d.ts +14 -8
  462. package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +12 -11
  463. package/types-legacy/ts4.5/contract/compiler/Cli8.d.ts +13 -0
  464. package/types-legacy/ts4.5/contract/compiler/Http.d.ts +3 -9
  465. package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +2 -5
  466. package/types-legacy/ts4.5/contract/delegation-signature.d.ts +2 -1
  467. package/types-legacy/ts4.5/contract/ga.d.ts +1 -2
  468. package/types-legacy/ts4.5/deprecated.d.ts +48 -0
  469. package/types-legacy/ts4.5/index-browser.d.ts +11 -6
  470. package/types-legacy/ts4.5/index.d.ts +1 -0
  471. package/types-legacy/ts4.5/oracle.d.ts +6 -37
  472. package/types-legacy/ts4.5/send-transaction.d.ts +53 -0
  473. package/types-legacy/ts4.5/spend.d.ts +4 -3
  474. package/types-legacy/ts4.5/tx/builder/common.d.ts +32 -0
  475. package/types-legacy/ts4.5/tx/builder/constants.d.ts +6 -5
  476. package/types-legacy/ts4.5/tx/builder/delegation/index.d.ts +20 -0
  477. package/types-legacy/ts4.5/tx/builder/delegation/schema.d.ts +136 -0
  478. package/types-legacy/ts4.5/tx/builder/delegation/schema.generated.d.ts +141 -0
  479. package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +2 -2
  480. package/types-legacy/ts4.5/tx/builder/field-types/ct-version.d.ts +1 -1
  481. package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +19 -11
  482. package/types-legacy/ts4.5/tx/builder/field-types/gas-price.d.ts +10 -2
  483. package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +31 -29
  484. package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +1 -1
  485. package/types-legacy/ts4.5/tx/builder/field-types/nonce.d.ts +1 -0
  486. package/types-legacy/ts4.5/tx/builder/field-types/pointers2.d.ts +26 -0
  487. package/types-legacy/ts4.5/tx/builder/field-types/query-fee.d.ts +19 -0
  488. package/types-legacy/ts4.5/tx/builder/field-types/ttl.d.ts +9 -1
  489. package/types-legacy/ts4.5/tx/builder/field-types/with-default.d.ts +7 -0
  490. package/types-legacy/ts4.5/tx/builder/field-types/with-formatting.d.ts +7 -0
  491. package/types-legacy/ts4.5/tx/builder/helpers.d.ts +2 -2
  492. package/types-legacy/ts4.5/tx/builder/index.d.ts +17 -10
  493. package/types-legacy/ts4.5/tx/builder/schema.d.ts +482 -257
  494. package/types-legacy/ts4.5/tx/builder/schema.generated.d.ts +39 -3
  495. package/types-legacy/ts4.5/tx/execution-cost.d.ts +6 -5
  496. package/types-legacy/ts4.5/utils/autorest.d.ts +2 -3
  497. package/types-legacy/ts4.5/utils/crypto.d.ts +9 -5
  498. package/types-legacy/ts4.5/utils/errors.d.ts +6 -0
  499. package/types-legacy/ts4.5/utils/hd-wallet.d.ts +2 -0
  500. package/types-legacy/ts4.5/utils/jwt.d.ts +53 -0
  501. package/types-legacy/ts4.5/utils/keystore.d.ts +6 -2
  502. package/types-legacy/ts4.5/utils/typed-data.d.ts +0 -2
  503. package/types-legacy/ts4.5/utils/wrap-proxy.d.ts +2 -0
  504. package/es/tx/builder/field-types/deposit.d.ts +0 -15
  505. package/es/tx/builder/field-types/deposit.mjs +0 -18
  506. package/es/tx/builder/field-types/deposit.mjs.map +0 -1
  507. package/src/tx/builder/field-types/deposit.ts +0 -23
  508. package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +0 -15
  509. package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +0 -15
@@ -1,7 +1,7 @@
1
1
  import AccountBase from './Base';
2
2
  import { Encoded } from '../utils/encoder';
3
3
  import { AciValue } from '../utils/typed-data';
4
- import { AensName } from '../tx/builder/constants';
4
+ import { AensName, ConsensusProtocolVersion } from '../tx/builder/constants';
5
5
  export declare function getBufferToSign(transaction: Encoded.Transaction, networkId: string, innerTx: boolean): Uint8Array;
6
6
  /**
7
7
  * In-memory account class
@@ -23,13 +23,24 @@ export default class AccountMemory extends AccountBase {
23
23
  }): Promise<Encoded.Transaction>;
24
24
  signMessage(message: string, options?: any): Promise<Uint8Array>;
25
25
  signTypedData(data: Encoded.ContractBytearray, aci: AciValue, { name, version, networkId, contractAddress, ...options }?: Parameters<AccountBase['signTypedData']>[2]): Promise<Encoded.Signature>;
26
- signDelegationToContract(contractAddress: Encoded.ContractAddress, { networkId }?: {
26
+ signDelegationToContract(contractAddress: Encoded.ContractAddress, { networkId, consensusProtocolVersion, isOracle }?: {
27
27
  networkId?: string;
28
+ consensusProtocolVersion?: ConsensusProtocolVersion;
29
+ isOracle?: boolean;
28
30
  }): Promise<Encoded.Signature>;
29
- signNameDelegationToContract(contractAddress: Encoded.ContractAddress, name: AensName, { networkId }?: {
31
+ signNameDelegationToContract(contractAddress: Encoded.ContractAddress, name: AensName, { networkId, consensusProtocolVersion }?: {
30
32
  networkId?: string;
33
+ consensusProtocolVersion?: ConsensusProtocolVersion;
31
34
  }): Promise<Encoded.Signature>;
32
- signOracleQueryDelegationToContract(contractAddress: Encoded.ContractAddress, oracleQueryId: Encoded.OracleQueryId, { networkId }?: {
35
+ signAllNamesDelegationToContract(contractAddress: Encoded.ContractAddress, { networkId, consensusProtocolVersion }?: {
36
+ networkId?: string;
37
+ consensusProtocolVersion?: ConsensusProtocolVersion;
38
+ }): Promise<Encoded.Signature>;
39
+ signOracleQueryDelegationToContract(contractAddress: Encoded.ContractAddress, oracleQueryId: Encoded.OracleQueryId, { networkId, consensusProtocolVersion }?: {
40
+ networkId?: string;
41
+ consensusProtocolVersion?: ConsensusProtocolVersion;
42
+ }): Promise<Encoded.Signature>;
43
+ signDelegation(delegation: Encoded.Bytearray, { networkId }?: {
33
44
  networkId?: string;
34
45
  }): Promise<Encoded.Signature>;
35
46
  }
@@ -2,7 +2,7 @@ import AccountBase from './Base';
2
2
  import { Encoded } from '../utils/encoder';
3
3
  import RpcClient from '../aepp-wallet-communication/rpc/RpcClient';
4
4
  import { AeppApi, WalletApi } from '../aepp-wallet-communication/rpc/types';
5
- import { AensName } from '../tx/builder/constants';
5
+ import { AensName, ConsensusProtocolVersion } from '../tx/builder/constants';
6
6
  /**
7
7
  * Account provided by wallet
8
8
  * @param params - Params
@@ -14,11 +14,22 @@ export default class AccountRpc extends AccountBase {
14
14
  _rpcClient: RpcClient<WalletApi, AeppApi>;
15
15
  readonly address: Encoded.AccountAddress;
16
16
  constructor(rpcClient: RpcClient<WalletApi, AeppApi>, address: Encoded.AccountAddress);
17
- sign(): Promise<Uint8Array>;
17
+ sign(dataRaw: string | Uint8Array): Promise<Uint8Array>;
18
18
  signTransaction(tx: Encoded.Transaction, { innerTx, networkId }?: Parameters<AccountBase['signTransaction']>[1]): Promise<Encoded.Transaction>;
19
19
  signMessage(message: string): Promise<Uint8Array>;
20
20
  signTypedData(data: Encoded.ContractBytearray, aci: Parameters<AccountBase['signTypedData']>[1], { name, version, contractAddress, networkId, }?: Parameters<AccountBase['signTypedData']>[2]): Promise<Encoded.Signature>;
21
- signDelegationToContract(contractAddress: Encoded.ContractAddress): Promise<Encoded.Signature>;
22
- signNameDelegationToContract(contractAddress: Encoded.ContractAddress, name: AensName): Promise<Encoded.Signature>;
23
- signOracleQueryDelegationToContract(contractAddress: Encoded.ContractAddress, oracleQueryId: Encoded.OracleQueryId): Promise<Encoded.Signature>;
21
+ signDelegationToContract(contractAddress: Encoded.ContractAddress, { consensusProtocolVersion, isOracle }?: {
22
+ consensusProtocolVersion?: ConsensusProtocolVersion;
23
+ isOracle?: boolean;
24
+ }): Promise<Encoded.Signature>;
25
+ signNameDelegationToContract(contractAddress: Encoded.ContractAddress, name: AensName, { consensusProtocolVersion }?: {
26
+ consensusProtocolVersion?: ConsensusProtocolVersion;
27
+ }): Promise<Encoded.Signature>;
28
+ signAllNamesDelegationToContract(contractAddress: Encoded.ContractAddress, { consensusProtocolVersion }?: {
29
+ consensusProtocolVersion?: ConsensusProtocolVersion;
30
+ }): Promise<Encoded.Signature>;
31
+ signOracleQueryDelegationToContract(contractAddress: Encoded.ContractAddress, oracleQueryId: Encoded.OracleQueryId, { consensusProtocolVersion }?: {
32
+ consensusProtocolVersion?: ConsensusProtocolVersion;
33
+ }): Promise<Encoded.Signature>;
34
+ signDelegation(delegation: Encoded.Bytearray): Promise<Encoded.Signature>;
24
35
  }
@@ -7,26 +7,22 @@
7
7
  */
8
8
  import BigNumber from 'bignumber.js';
9
9
  import { Tag, AensName } from './tx/builder/constants';
10
- import { Encoded } from './utils/encoder';
11
- import { sendTransaction, SendTransactionOptions, getName } from './chain';
10
+ import { Encoded, Encoding } from './utils/encoder';
11
+ import { getName } from './chain';
12
+ import { sendTransaction, SendTransactionOptions } from './send-transaction';
12
13
  import { BuildTxOptions } from './tx/builder';
13
14
  import { TransformNodeType } from './Node';
14
15
  import { NameEntry, NamePointer } from './apis/node';
15
16
  import AccountBase from './account/Base';
16
17
  import { AddressEncodings } from './tx/builder/field-types/address';
17
18
  interface KeyPointers {
18
- [key: string]: Encoded.Generic<AddressEncodings>;
19
+ [key: string]: Encoded.Generic<AddressEncodings | Encoding.Bytearray>;
19
20
  }
20
21
  /**
21
22
  * Revoke a name
22
23
  * @category AENS
23
24
  * @param name - Name hash
24
25
  * @param options - Options
25
- * @param options.onAccount - Make operation on specific account from sdk (you pass
26
- * publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount)
27
- * @param options.fee - fee
28
- * @param options.ttl - ttl
29
- * @param options.nonce - nonce
30
26
  * @returns Transaction result
31
27
  * @example
32
28
  * ```js
@@ -47,17 +43,6 @@ interface AensRevokeOptions extends BuildTxOptions<Tag.NameRevokeTx, 'nameId' |
47
43
  * @param name - AENS name
48
44
  * @param pointers - Map of pointer keys to corresponding addresses
49
45
  * @param options - Options
50
- * @param options.extendPointers - Get the pointers from the node and merge with provided
51
- * ones. Pointers with the same type will be overwritten
52
- * @param options.onAccount - Make operation on specific account from sdk (you
53
- * pass publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount)
54
- * @param options.fee - fee
55
- * @param options.ttl - ttl
56
- * @param options.nonce - nonce
57
- * @param options.nameTtl - Name ttl represented in number of
58
- * blocks (Max value is 50000 blocks)
59
- * @param options.clientTtl=84600 a suggestion as to how long any
60
- * clients should cache this information
61
46
  * @throws Invalid pointer array error
62
47
  * @example
63
48
  * ```js
@@ -72,8 +57,18 @@ interface AensRevokeOptions extends BuildTxOptions<Tag.NameRevokeTx, 'nameId' |
72
57
  */
73
58
  export declare function aensUpdate(name: AensName, pointers: KeyPointers, { extendPointers, ...options }: AensUpdateOptions): ReturnType<typeof sendTransaction>;
74
59
  interface AensUpdateOptions extends BuildTxOptions<Tag.NameUpdateTx, 'nameId' | 'accountId' | 'pointers' | 'clientTtl' | 'nameTtl' | 'onNode'>, SendTransactionOptions {
60
+ /**
61
+ * Get the pointers from the node and merge with provided ones. Pointers with the same key will be
62
+ * overwritten.
63
+ */
75
64
  extendPointers?: boolean;
65
+ /**
66
+ * a suggestion as to how long any clients should cache this information
67
+ */
76
68
  clientTtl?: number;
69
+ /**
70
+ * Name ttl represented in number of blocks (Max value is 50000 blocks)
71
+ */
77
72
  nameTtl?: number;
78
73
  }
79
74
  /**
@@ -82,11 +77,6 @@ interface AensUpdateOptions extends BuildTxOptions<Tag.NameUpdateTx, 'nameId' |
82
77
  * @param name - AENS name
83
78
  * @param account - Recipient account publick key
84
79
  * @param options - Options
85
- * @param options.onAccount - Make operation on specific account from sdk (you pass
86
- * publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount)
87
- * @param options.fee - fee
88
- * @param options.ttl - ttl
89
- * @param options.nonce - nonce
90
80
  * @returns Transaction result
91
81
  * @example
92
82
  * ```js
@@ -108,7 +98,6 @@ interface AensTransferOptions extends BuildTxOptions<Tag.NameTransferTx, 'nameId
108
98
  * @category AENS
109
99
  * @param name - AENS name
110
100
  * @param opt - Options
111
- * @returns
112
101
  * @example
113
102
  * ```js
114
103
  * const nameObject = sdkInstance.aensQuery('test.chain')
@@ -135,22 +124,16 @@ export declare function aensQuery(name: AensName, opt: Parameters<typeof getName
135
124
  revoke: (options?: Omit<Parameters<typeof aensRevoke>[1], 'onNode' | 'onCompiler' | 'onAccount'> & {
136
125
  onAccount?: AccountBase;
137
126
  }) => ReturnType<typeof aensRevoke>;
138
- extendTtl: (nameTtl: number, options?: Omit<Parameters<typeof aensQuery>[1], 'onNode' | 'onCompiler' | 'onAccount'>) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>;
127
+ extendTtl: (nameTtl?: number, options?: Omit<Parameters<typeof aensQuery>[1], 'onNode' | 'onCompiler' | 'onAccount'>) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>;
139
128
  }>>;
140
129
  /**
141
130
  * Claim a previously preclaimed registration. This can only be done after the
142
131
  * preclaim step
143
132
  * @category AENS
144
133
  * @param name - AENS name
145
- * @param salt - Salt from pre-claim, or 0 if it's a bid
134
+ * @param salt - Salt from pre-claim, or 0 if it's a bid or claiming without preclaim (in Ceres)
146
135
  * @param options - options
147
- * @param options.onAccount - Make operation on specific account from sdk (you pass
148
- * publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount)
149
- * @param options.fee - fee
150
- * @param options.ttl - ttl
151
- * @param options.nonce - nonce
152
- * @param options.nameFee - Name Fee (By default calculated by sdk)
153
- * @returns the result of the claim
136
+ * @returns Transaction result
154
137
  * @example
155
138
  * ```js
156
139
  * const name = 'test.chain'
@@ -170,11 +153,6 @@ interface AensClaimReturnType extends Awaited<ReturnType<typeof sendTransaction>
170
153
  * @category AENS
171
154
  * @param name - AENS name
172
155
  * @param options - Options
173
- * @param options.onAccount - Make operation on specific account from sdk (you pass
174
- * publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount)
175
- * @param options.fee - fee
176
- * @param options.ttl - ttl
177
- * @param options.nonce - nonce
178
156
  * @example
179
157
  * ```js
180
158
  * const name = 'test.chain'
@@ -202,11 +180,6 @@ interface AensPreclaimOptions extends BuildTxOptions<Tag.NamePreclaimTx, 'accoun
202
180
  * @param name - Domain name
203
181
  * @param nameFee - Name fee (bid fee)
204
182
  * @param options - Options
205
- * @param options.onAccount - Make operation on specific account from sdk (you pass
206
- * publickKey) or using provided KeyPair(Can be keypair object or MemoryAccount)
207
- * @param options.fee - fee
208
- * @param options.ttl - ttl
209
- * @param options.nonce - nonce
210
183
  * @returns Transaction result
211
184
  * @example
212
185
  * ```js
@@ -8,6 +8,9 @@ import BrowserConnection from './Browser';
8
8
  export default class BrowserRuntimeConnection extends BrowserConnection {
9
9
  #private;
10
10
  port: Runtime.Port;
11
+ /**
12
+ * @param options - Options
13
+ */
11
14
  constructor({ port, ...options }: {
12
15
  port: Runtime.Port;
13
16
  debug: boolean;
@@ -52,6 +52,12 @@ export interface WalletApi {
52
52
  address: Accounts;
53
53
  }>;
54
54
  [METHODS.address]: () => Promise<Encoded.AccountAddress[]>;
55
+ [METHODS.unsafeSign]: (p: {
56
+ data: Encoded.Bytearray;
57
+ onAccount: Encoded.AccountAddress;
58
+ }) => Promise<{
59
+ signature: Encoded.Signature;
60
+ }>;
55
61
  [METHODS.sign]: ((p: {
56
62
  tx: Encoded.Transaction;
57
63
  onAccount: Encoded.AccountAddress;
@@ -92,6 +98,14 @@ export interface WalletApi {
92
98
  contractAddress: Encoded.ContractAddress;
93
99
  name?: AensName;
94
100
  oracleQueryId?: Encoded.OracleQueryId;
101
+ allNames?: boolean;
102
+ isOracle?: boolean;
103
+ onAccount: Encoded.AccountAddress;
104
+ }) => Promise<{
105
+ signature: Encoded.Signature;
106
+ }>;
107
+ [METHODS.signDelegation]: (p: {
108
+ delegation: Encoded.Bytearray;
95
109
  onAccount: Encoded.AccountAddress;
96
110
  }) => Promise<{
97
111
  signature: Encoded.Signature;
@@ -29,10 +29,12 @@ export declare const enum METHODS {
29
29
  updateAddress = "address.update",
30
30
  address = "address.get",
31
31
  connect = "connection.open",
32
+ unsafeSign = "data.unsafeSign",
32
33
  sign = "transaction.sign",
33
34
  signMessage = "message.sign",
34
35
  signTypedData = "typedData.sign",
35
36
  signDelegationToContract = "delegationToContract.sign",
37
+ signDelegation = "delegation.sign",
36
38
  subscribeAddress = "address.subscribe",
37
39
  updateNetwork = "networkId.update",
38
40
  closeConnection = "connection.close"
@@ -1,11 +1,8 @@
1
1
  import BrowserConnection from './connection/Browser';
2
2
  import BrowserWindowMessageConnection from './connection/BrowserWindowMessage';
3
+ import { WalletInfo } from './rpc/types';
3
4
  interface Wallet {
4
- info: {
5
- id: string;
6
- type: string;
7
- origin: string;
8
- };
5
+ info: WalletInfo;
9
6
  getConnection: () => BrowserWindowMessageConnection;
10
7
  }
11
8
  interface Wallets {
@@ -24,6 +24,7 @@ export interface CompileResult {
24
24
  /** Prefixed (cb_) Base64Check encoded byte array */
25
25
  bytecode: string;
26
26
  aci: Record<string, unknown>[];
27
+ warnings: CompilerError[];
27
28
  }
28
29
  export interface SophiaCallResultInput {
29
30
  /** (Possibly partial) Sophia contract code/interface */
@@ -1,5 +1,5 @@
1
1
  import * as coreClient from "@azure/core-client";
2
- import { Enum1, MiddlewareOptionalParams, GetAccountActivitiesOptionalParams, GetAccountActivitiesResponse, GetSortedAex141ContractsOptionalParams, GetSortedAex141ContractsResponse, GetAex141OwnedTokensOptionalParams, GetAex141OwnedTokensResponse, GetAex141TokenOwnerOptionalParams, GetAex141TokenOwnerResponse, GetAex141ContractOwnersOptionalParams, GetAex141ContractOwnersResponse, GetAex141ContractTemplatesOptionalParams, GetAex141ContractTemplatesResponse, GetAex141TemplateTokensOptionalParams, GetAex141TemplateTokensResponse, GetAex141ByContractOptionalParams, GetAex141ByContractResponse, GetSortedAex9TokensOptionalParams, GetSortedAex9TokensResponse, GetAex9AccountBalancesOptionalParams, GetAex9AccountBalancesResponse, GetAex9TokensCountOptionalParams, GetAex9TokensCountResponse, GetAex9PairTransfersOptionalParams, GetAex9PairTransfersResponse, GetAex9SenderTransfersOptionalParams, GetAex9SenderTransfersResponse, GetAex9RecipientTransfersOptionalParams, GetAex9RecipientTransfersResponse, GetAex9ContractBalancesOptionalParams, GetAex9ContractBalancesResponse, GetAex9ContractAccountBalanceOptionalParams, GetAex9ContractAccountBalanceResponse, GetAex9ContractAccountBalanceHistoryOptionalParams, GetAex9ContractAccountBalanceHistoryResponse, GetAex9LogsCountOptionalParams, GetAex9LogsCountResponse, GetAex9ByContractOptionalParams, GetAex9ByContractResponse, GetBlocksOptionalParams, GetBlocksResponse, GetBlockOptionalParams, GetBlockResponse, GetBlockByMbiOptionalParams, GetBlockByMbiResponse, GetChannelsOptionalParams, GetChannelsResponse, GetChannelOptionalParams, GetChannelResponse, GetContractsCallsOptionalParams, GetContractsCallsResponse, GetContractsLogsOptionalParams, GetContractsLogsResponse, GetDeltastatsOptionalParams, GetDeltastatsResponse, GetKeyBlocksOptionalParams, GetKeyBlocksResponse, GetKeyBlockOptionalParams, GetKeyBlockResponse, GetKeyBlockMicroBlocksOptionalParams, GetKeyBlockMicroBlocksResponse, GetMicroBlockOptionalParams, GetMicroBlockResponse, GetMicroBlockTransactionsOptionalParams, GetMicroBlockTransactionsResponse, GetNamesOptionalParams, GetNamesResponse, GetNamesAuctionsOptionalParams, GetNamesAuctionsResponse, SearchNamesOptionalParams, SearchNamesResponse, GetNameOptionalParams, GetNameResponse, GetNameAuctionOptionalParams, GetNameAuctionResponse, GetNameClaimsOptionalParams, GetNameClaimsResponse, GetNamePointeesOptionalParams, GetNamePointeesResponse, GetNamePointersOptionalParams, GetNamePointersResponse, GetNameTransfersOptionalParams, GetNameTransfersResponse, GetNameUpdatesOptionalParams, GetNameUpdatesResponse, GetOracleOptionalParams, GetOracleResponse, GetOraclesOptionalParams, GetOraclesResponse, GetStatusOptionalParams, GetStatusResponse, GetTotalstatsOptionalParams, GetTotalstatsResponse, GetTransfersOptionalParams, GetTransfersResponse, GetTxsOptionalParams, GetTxsResponse, GetTxCountOptionalParams, GetTxCountResponse, GetTxCountByIdOptionalParams, GetTxCountByIdResponse, GetTxOptionalParams, GetTxResponse } from "./models";
2
+ import { Enum1, MiddlewareOptionalParams, GetAccountActivitiesOptionalParams, GetAccountActivitiesResponse, GetSortedAex141ContractsOptionalParams, GetSortedAex141ContractsResponse, GetAex141OwnedTokensOptionalParams, GetAex141OwnedTokensResponse, GetAex141TokenOwnerOptionalParams, GetAex141TokenOwnerResponse, GetAex141ContractOwnersOptionalParams, GetAex141ContractOwnersResponse, GetAex141ContractTemplatesOptionalParams, GetAex141ContractTemplatesResponse, GetAex141TemplateTokensOptionalParams, GetAex141TemplateTokensResponse, GetAex141ByContractOptionalParams, GetAex141ByContractResponse, GetSortedAex9TokensOptionalParams, GetSortedAex9TokensResponse, GetAex9AccountBalancesOptionalParams, GetAex9AccountBalancesResponse, GetAex9TokensCountOptionalParams, GetAex9TokensCountResponse, GetAex9PairTransfersOptionalParams, GetAex9PairTransfersResponse, GetAex9SenderTransfersOptionalParams, GetAex9SenderTransfersResponse, GetAex9RecipientTransfersOptionalParams, GetAex9RecipientTransfersResponse, GetAex9ContractBalancesOptionalParams, GetAex9ContractBalancesResponse, GetAex9ContractAccountBalanceOptionalParams, GetAex9ContractAccountBalanceResponse, GetAex9ContractAccountBalanceHistoryOptionalParams, GetAex9ContractAccountBalanceHistoryResponse, GetAex9LogsCountOptionalParams, GetAex9LogsCountResponse, GetAex9ByContractOptionalParams, GetAex9ByContractResponse, GetBlocksOptionalParams, GetBlocksResponse, GetBlockOptionalParams, GetBlockResponse, GetBlockByMbiOptionalParams, GetBlockByMbiResponse, GetChannelsOptionalParams, GetChannelsResponse, GetChannelOptionalParams, GetChannelResponse, GetContractsCallsOptionalParams, GetContractsCallsResponse, GetContractsLogsOptionalParams, GetContractsLogsResponse, GetContractOptionalParams, GetContractResponse, GetDeltastatsOptionalParams, GetDeltastatsResponse, GetKeyBlocksOptionalParams, GetKeyBlocksResponse, GetKeyBlockOptionalParams, GetKeyBlockResponse, GetKeyBlockMicroBlocksOptionalParams, GetKeyBlockMicroBlocksResponse, GetMicroBlockOptionalParams, GetMicroBlockResponse, GetMicroBlockTransactionsOptionalParams, GetMicroBlockTransactionsResponse, GetNamesOptionalParams, GetNamesResponse, GetNamesAuctionsOptionalParams, GetNamesAuctionsResponse, SearchNamesOptionalParams, SearchNamesResponse, GetNameOptionalParams, GetNameResponse, GetNameAuctionOptionalParams, GetNameAuctionResponse, GetNameClaimsOptionalParams, GetNameClaimsResponse, GetNamePointeesOptionalParams, GetNamePointeesResponse, GetNamePointersOptionalParams, GetNamePointersResponse, GetNameTransfersOptionalParams, GetNameTransfersResponse, GetNameUpdatesOptionalParams, GetNameUpdatesResponse, GetOraclesOptionalParams, GetOraclesResponse, GetOracleOptionalParams, GetOracleResponse, GetOracleQueriesOptionalParams, GetOracleQueriesResponse, GetOracleResponsesOptionalParams, GetOracleResponsesResponse, GetStatusOptionalParams, GetStatusResponse, GetTotalstatsOptionalParams, GetTotalstatsResponse, GetTransfersOptionalParams, GetTransfersResponse, GetTxsOptionalParams, GetTxsResponse, GetTxCountOptionalParams, GetTxCountResponse, GetTxCountByIdOptionalParams, GetTxCountByIdResponse, GetTxOptionalParams, GetTxResponse } from "./models";
3
3
  export declare class Middleware extends coreClient.ServiceClient {
4
4
  $host: string;
5
5
  limit?: number;
@@ -18,7 +18,7 @@ export declare class Middleware extends coreClient.ServiceClient {
18
18
  */
19
19
  getAccountActivities(id: string, options?: GetAccountActivitiesOptionalParams): Promise<GetAccountActivitiesResponse>;
20
20
  /**
21
- * Get AEX141 contracts sorted by name or symbol.
21
+ * Get AEX141 contracts sorted by creation time, name or symbol.
22
22
  * @param options The options parameters.
23
23
  */
24
24
  getSortedAex141Contracts(options?: GetSortedAex141ContractsOptionalParams): Promise<GetSortedAex141ContractsResponse>;
@@ -61,7 +61,7 @@ export declare class Middleware extends coreClient.ServiceClient {
61
61
  */
62
62
  getAex141ByContract(id: string, options?: GetAex141ByContractOptionalParams): Promise<GetAex141ByContractResponse>;
63
63
  /**
64
- * Get AEX9 tokens sorted by name or symbol.
64
+ * Get AEX9 tokens sorted by creation time, name or symbol.
65
65
  * @param options The options parameters.
66
66
  */
67
67
  getSortedAex9Tokens(options?: GetSortedAex9TokensOptionalParams): Promise<GetSortedAex9TokensResponse>;
@@ -167,6 +167,12 @@ export declare class Middleware extends coreClient.ServiceClient {
167
167
  * @param options The options parameters.
168
168
  */
169
169
  getContractsLogs(options?: GetContractsLogsOptionalParams): Promise<GetContractsLogsResponse>;
170
+ /**
171
+ * Gets contract creation info.
172
+ * @param id Contract that emitted the logs
173
+ * @param options The options parameters.
174
+ */
175
+ getContract(id: string, options?: GetContractOptionalParams): Promise<GetContractResponse>;
170
176
  /**
171
177
  * Get delta stats.
172
178
  * @param options The options parameters.
@@ -258,6 +264,11 @@ export declare class Middleware extends coreClient.ServiceClient {
258
264
  * @param options The options parameters.
259
265
  */
260
266
  getNameUpdates(id: string, options?: GetNameUpdatesOptionalParams): Promise<GetNameUpdatesResponse>;
267
+ /**
268
+ * Get multiple oracles.
269
+ * @param options The options parameters.
270
+ */
271
+ getOracles(options?: GetOraclesOptionalParams): Promise<GetOraclesResponse>;
261
272
  /**
262
273
  * Get a single oracle.
263
274
  * @param id The oracle
@@ -265,10 +276,17 @@ export declare class Middleware extends coreClient.ServiceClient {
265
276
  */
266
277
  getOracle(id: string, options?: GetOracleOptionalParams): Promise<GetOracleResponse>;
267
278
  /**
268
- * Get multiple oracles.
279
+ * Get an oracle's queries.
280
+ * @param id The oracle
269
281
  * @param options The options parameters.
270
282
  */
271
- getOracles(options?: GetOraclesOptionalParams): Promise<GetOraclesResponse>;
283
+ getOracleQueries(id: string, options?: GetOracleQueriesOptionalParams): Promise<GetOracleQueriesResponse>;
284
+ /**
285
+ * Get an oracle's responses.
286
+ * @param id The oracle
287
+ * @param options The options parameters.
288
+ */
289
+ getOracleResponses(id: string, options?: GetOracleResponsesOptionalParams): Promise<GetOracleResponsesResponse>;
272
290
  /**
273
291
  * Gets the current syncing status of both middleware and the node
274
292
  * @param options The options parameters.