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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (565) hide show
  1. package/bin/aesophia_cli +0 -0
  2. package/dist/aepp-sdk.browser-script.js +1 -1
  3. package/dist/aepp-sdk.browser-script.js.map +1 -1
  4. package/dist/aepp-sdk.browser.js +1 -1
  5. package/dist/aepp-sdk.browser.js.map +1 -1
  6. package/dist/aepp-sdk.js +12031 -11231
  7. package/dist/aepp-sdk.js.map +1 -1
  8. package/es/AeSdk.d.ts +7 -3
  9. package/es/AeSdk.mjs +17 -22
  10. package/es/AeSdk.mjs.map +1 -1
  11. package/es/AeSdkAepp.d.ts +6 -5
  12. package/es/AeSdkAepp.mjs +7 -30
  13. package/es/AeSdkAepp.mjs.map +1 -1
  14. package/es/AeSdkBase.d.ts +18 -140
  15. package/es/AeSdkBase.mjs +30 -184
  16. package/es/AeSdkBase.mjs.map +1 -1
  17. package/es/AeSdkMethods.d.ts +123 -0
  18. package/es/AeSdkMethods.mjs +122 -0
  19. package/es/AeSdkMethods.mjs.map +1 -0
  20. package/es/AeSdkWallet.d.ts +7 -21
  21. package/es/AeSdkWallet.mjs +38 -86
  22. package/es/AeSdkWallet.mjs.map +1 -1
  23. package/es/Node.d.ts +11 -15
  24. package/es/Node.mjs +35 -48
  25. package/es/Node.mjs.map +1 -1
  26. package/es/account/Base.d.ts +24 -40
  27. package/es/account/Base.mjs +1 -101
  28. package/es/account/Base.mjs.map +1 -1
  29. package/es/account/Generalized.d.ts +16 -0
  30. package/es/account/Generalized.mjs +113 -0
  31. package/es/account/Generalized.mjs.map +1 -0
  32. package/es/account/Ledger.d.ts +28 -0
  33. package/es/account/Ledger.mjs +102 -0
  34. package/es/account/Ledger.mjs.map +1 -0
  35. package/es/account/LedgerFactory.d.ts +39 -0
  36. package/es/account/LedgerFactory.mjs +81 -0
  37. package/es/account/LedgerFactory.mjs.map +1 -0
  38. package/es/account/Memory.d.ts +13 -17
  39. package/es/account/Memory.mjs +43 -64
  40. package/es/account/Memory.mjs.map +1 -1
  41. package/es/account/Rpc.d.ts +6 -8
  42. package/es/account/Rpc.mjs +14 -32
  43. package/es/account/Rpc.mjs.map +1 -1
  44. package/es/aens.d.ts +4 -4
  45. package/es/aens.mjs +46 -41
  46. package/es/aens.mjs.map +1 -1
  47. package/es/aepp-wallet-communication/connection/Browser.mjs +9 -13
  48. package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
  49. package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -0
  50. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +22 -11
  51. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
  52. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +1 -1
  53. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +0 -31
  54. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
  55. package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
  56. package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +3 -3
  57. package/es/aepp-wallet-communication/rpc/RpcClient.mjs +5 -42
  58. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
  59. package/es/aepp-wallet-communication/rpc/types.d.ts +7 -1
  60. package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
  61. package/es/aepp-wallet-communication/schema.mjs +14 -68
  62. package/es/aepp-wallet-communication/schema.mjs.map +1 -1
  63. package/es/aepp-wallet-communication/wallet-detector.mjs +0 -3
  64. package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
  65. package/es/apis/compiler/compiler.d.ts +23 -29
  66. package/es/apis/compiler/compiler.mjs +128 -189
  67. package/es/apis/compiler/compiler.mjs.map +1 -1
  68. package/es/apis/compiler/index.mjs.map +1 -1
  69. package/es/apis/compiler/models/index.d.ts +82 -135
  70. package/es/apis/compiler/models/index.mjs +1 -47
  71. package/es/apis/compiler/models/index.mjs.map +1 -1
  72. package/es/apis/compiler/models/mappers.d.ts +8 -8
  73. package/es/apis/compiler/models/mappers.mjs +165 -183
  74. package/es/apis/compiler/models/mappers.mjs.map +1 -1
  75. package/es/apis/compiler/models/parameters.d.ts +0 -1
  76. package/es/apis/compiler/models/parameters.mjs +5 -9
  77. package/es/apis/compiler/models/parameters.mjs.map +1 -1
  78. package/es/apis/node/index.mjs.map +1 -1
  79. package/es/apis/node/models/index.d.ts +48 -48
  80. package/es/apis/node/models/mappers.mjs +12 -6
  81. package/es/apis/node/models/mappers.mjs.map +1 -1
  82. package/es/apis/node/models/parameters.mjs.map +1 -1
  83. package/es/apis/node/node.mjs +43 -84
  84. package/es/apis/node/node.mjs.map +1 -1
  85. package/es/chain.d.ts +10 -2
  86. package/es/chain.mjs +37 -59
  87. package/es/chain.mjs.map +1 -1
  88. package/es/channel/Base.d.ts +200 -0
  89. package/es/channel/Base.mjs +293 -0
  90. package/es/channel/Base.mjs.map +1 -0
  91. package/es/channel/Contract.d.ts +248 -0
  92. package/es/channel/Contract.mjs +420 -0
  93. package/es/channel/Contract.mjs.map +1 -0
  94. package/es/channel/Spend.d.ts +219 -0
  95. package/es/channel/Spend.mjs +385 -0
  96. package/es/channel/Spend.mjs.map +1 -0
  97. package/es/channel/handlers.d.ts +8 -21
  98. package/es/channel/handlers.mjs +151 -899
  99. package/es/channel/handlers.mjs.map +1 -1
  100. package/es/channel/internal.d.ts +27 -21
  101. package/es/channel/internal.mjs +101 -191
  102. package/es/channel/internal.mjs.map +1 -1
  103. package/es/contract/Contract.d.ts +210 -0
  104. package/es/contract/Contract.mjs +551 -0
  105. package/es/contract/Contract.mjs.map +1 -0
  106. package/es/contract/compiler/Base.d.ts +81 -0
  107. package/es/contract/compiler/Base.mjs +5 -0
  108. package/es/contract/compiler/Base.mjs.map +1 -0
  109. package/es/contract/compiler/Cli.d.ts +23 -0
  110. package/es/contract/compiler/Cli.mjs +155 -0
  111. package/es/contract/compiler/Cli.mjs.map +1 -0
  112. package/es/contract/compiler/Http.d.ts +32 -0
  113. package/es/contract/compiler/Http.mjs +118 -0
  114. package/es/contract/compiler/Http.mjs.map +1 -0
  115. package/es/contract/compiler/HttpNode.d.ts +17 -0
  116. package/es/contract/compiler/HttpNode.mjs +26 -0
  117. package/es/contract/compiler/HttpNode.mjs.map +1 -0
  118. package/es/contract/compiler/getFileSystem.d.ts +6 -0
  119. package/es/contract/compiler/getFileSystem.mjs +40 -0
  120. package/es/contract/compiler/getFileSystem.mjs.map +1 -0
  121. package/es/contract/ga.d.ts +9 -34
  122. package/es/contract/ga.mjs +29 -112
  123. package/es/contract/ga.mjs.map +1 -1
  124. package/es/index-browser.d.ts +39 -0
  125. package/es/index-browser.mjs +55 -0
  126. package/es/index-browser.mjs.map +1 -0
  127. package/es/index.d.ts +4 -35
  128. package/es/index.mjs +4 -51
  129. package/es/index.mjs.map +1 -1
  130. package/es/oracle.d.ts +5 -5
  131. package/es/oracle.mjs +34 -40
  132. package/es/oracle.mjs.map +1 -1
  133. package/es/spend.d.ts +3 -3
  134. package/es/spend.mjs +18 -23
  135. package/es/spend.mjs.map +1 -1
  136. package/es/tx/builder/constants.d.ts +30 -2
  137. package/es/tx/builder/constants.mjs +43 -14
  138. package/es/tx/builder/constants.mjs.map +1 -1
  139. package/es/tx/builder/field-types/abi-version.d.ts +10 -0
  140. package/es/tx/builder/field-types/abi-version.mjs +20 -0
  141. package/es/tx/builder/field-types/abi-version.mjs.map +1 -0
  142. package/es/tx/builder/field-types/address.d.ts +14 -0
  143. package/es/tx/builder/field-types/address.mjs +51 -0
  144. package/es/tx/builder/field-types/address.mjs.map +1 -0
  145. package/es/tx/builder/field-types/array.d.ts +7 -0
  146. package/es/tx/builder/field-types/array.mjs +11 -0
  147. package/es/tx/builder/field-types/array.mjs.map +1 -0
  148. package/es/tx/builder/field-types/boolean.d.ts +6 -0
  149. package/es/tx/builder/field-types/boolean.mjs +13 -0
  150. package/es/tx/builder/field-types/boolean.mjs.map +1 -0
  151. package/es/tx/builder/field-types/coin-amount.d.ts +2 -3
  152. package/es/tx/builder/field-types/coin-amount.mjs +4 -12
  153. package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
  154. package/es/tx/builder/field-types/ct-version.d.ts +30 -0
  155. package/es/tx/builder/field-types/ct-version.mjs +48 -0
  156. package/es/tx/builder/field-types/ct-version.mjs.map +1 -0
  157. package/es/tx/builder/field-types/deposit.d.ts +1 -2
  158. package/es/tx/builder/field-types/deposit.mjs +2 -4
  159. package/es/tx/builder/field-types/deposit.mjs.map +1 -1
  160. package/es/tx/builder/field-types/encoded.d.ts +6 -0
  161. package/es/tx/builder/field-types/encoded.mjs +21 -0
  162. package/es/tx/builder/field-types/encoded.mjs.map +1 -0
  163. package/es/tx/builder/field-types/entry.d.ts +11 -0
  164. package/es/tx/builder/field-types/entry.mjs +31 -0
  165. package/es/tx/builder/field-types/entry.mjs.map +1 -0
  166. package/es/tx/builder/field-types/enumeration.d.ts +7 -0
  167. package/es/tx/builder/field-types/enumeration.mjs +30 -0
  168. package/es/tx/builder/field-types/enumeration.mjs.map +1 -0
  169. package/es/tx/builder/field-types/fee.d.ts +10 -15
  170. package/es/tx/builder/field-types/fee.mjs +31 -43
  171. package/es/tx/builder/field-types/fee.mjs.map +1 -1
  172. package/es/tx/builder/field-types/field.mjs +0 -2
  173. package/es/tx/builder/field-types/field.mjs.map +1 -1
  174. package/es/tx/builder/field-types/gas-limit.d.ts +5 -2
  175. package/es/tx/builder/field-types/gas-limit.mjs +12 -14
  176. package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
  177. package/es/tx/builder/field-types/gas-price.d.ts +1 -2
  178. package/es/tx/builder/field-types/gas-price.mjs +3 -7
  179. package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
  180. package/es/tx/builder/field-types/index.d.ts +80 -30
  181. package/es/tx/builder/field-types/index.mjs +34 -9
  182. package/es/tx/builder/field-types/index.mjs.map +1 -1
  183. package/es/tx/builder/field-types/mptree.d.ts +37 -0
  184. package/es/tx/builder/field-types/mptree.mjs +268 -0
  185. package/es/tx/builder/field-types/mptree.mjs.map +1 -0
  186. package/es/tx/builder/field-types/name-fee.d.ts +1 -3
  187. package/es/tx/builder/field-types/name-fee.mjs +3 -5
  188. package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
  189. package/es/tx/builder/field-types/name-id.d.ts +1 -4
  190. package/es/tx/builder/field-types/name-id.mjs +5 -10
  191. package/es/tx/builder/field-types/name-id.mjs.map +1 -1
  192. package/es/tx/builder/field-types/name.mjs +0 -2
  193. package/es/tx/builder/field-types/name.mjs.map +1 -1
  194. package/es/tx/builder/field-types/pointers.d.ts +23 -0
  195. package/es/tx/builder/field-types/pointers.mjs +36 -0
  196. package/es/tx/builder/field-types/pointers.mjs.map +1 -0
  197. package/es/tx/builder/field-types/raw.d.ts +6 -0
  198. package/es/tx/builder/field-types/raw.mjs +13 -0
  199. package/es/tx/builder/field-types/raw.mjs.map +1 -0
  200. package/es/tx/builder/field-types/short-u-int-const.d.ts +5 -0
  201. package/es/tx/builder/field-types/short-u-int-const.mjs +16 -0
  202. package/es/tx/builder/field-types/short-u-int-const.mjs.map +1 -0
  203. package/es/tx/builder/field-types/short-u-int.mjs +0 -2
  204. package/es/tx/builder/field-types/short-u-int.mjs.map +1 -1
  205. package/es/tx/builder/field-types/string.d.ts +6 -0
  206. package/es/tx/builder/field-types/string.mjs +10 -0
  207. package/es/tx/builder/field-types/string.mjs.map +1 -0
  208. package/es/tx/builder/field-types/u-int.d.ts +1 -2
  209. package/es/tx/builder/field-types/u-int.mjs +3 -4
  210. package/es/tx/builder/field-types/u-int.mjs.map +1 -1
  211. package/es/tx/builder/helpers.d.ts +2 -32
  212. package/es/tx/builder/helpers.mjs +19 -71
  213. package/es/tx/builder/helpers.mjs.map +1 -1
  214. package/es/tx/builder/index.d.ts +11 -49
  215. package/es/tx/builder/index.mjs +57 -337
  216. package/es/tx/builder/index.mjs.map +1 -1
  217. package/es/tx/builder/schema.d.ts +2367 -667
  218. package/es/tx/builder/schema.mjs +70 -145
  219. package/es/tx/builder/schema.mjs.map +1 -1
  220. package/es/tx/index.d.ts +4 -49
  221. package/es/tx/index.mjs +38 -112
  222. package/es/tx/index.mjs.map +1 -1
  223. package/es/tx/validator.d.ts +4 -6
  224. package/es/tx/validator.mjs +104 -90
  225. package/es/tx/validator.mjs.map +1 -1
  226. package/es/typings/{@aeternity__argon2-browser → @aeternity__aepp-calldata}/index.d.mjs +0 -0
  227. package/es/typings/@aeternity__aepp-calldata/index.d.mjs.map +1 -0
  228. package/es/utils/amount-formatter.mjs +4 -10
  229. package/es/utils/amount-formatter.mjs.map +1 -1
  230. package/es/utils/autorest.d.ts +1 -0
  231. package/es/utils/autorest.mjs +17 -19
  232. package/es/utils/autorest.mjs.map +1 -1
  233. package/es/utils/bignumber.mjs +4 -7
  234. package/es/utils/bignumber.mjs.map +1 -1
  235. package/es/utils/bytes.d.ts +0 -17
  236. package/es/utils/bytes.mjs +6 -35
  237. package/es/utils/bytes.mjs.map +1 -1
  238. package/es/utils/crypto.d.ts +15 -8
  239. package/es/utils/crypto.mjs +40 -40
  240. package/es/utils/crypto.mjs.map +1 -1
  241. package/es/utils/encoder-types.d.ts +28 -28
  242. package/es/utils/encoder-types.mjs +0 -1
  243. package/es/utils/encoder-types.mjs.map +1 -1
  244. package/es/utils/encoder.d.ts +0 -1
  245. package/es/utils/encoder.mjs +7 -15
  246. package/es/utils/encoder.mjs.map +1 -1
  247. package/es/utils/errors.d.ts +15 -14
  248. package/es/utils/errors.mjs +86 -172
  249. package/es/utils/errors.mjs.map +1 -1
  250. package/es/utils/hd-wallet.d.ts +27 -19
  251. package/es/utils/hd-wallet.mjs +42 -26
  252. package/es/utils/hd-wallet.mjs.map +1 -1
  253. package/es/utils/json-big.mjs +0 -8
  254. package/es/utils/json-big.mjs.map +1 -1
  255. package/es/utils/keystore.d.ts +2 -0
  256. package/es/utils/keystore.mjs +37 -36
  257. package/es/utils/keystore.mjs.map +1 -1
  258. package/es/utils/other.d.ts +4 -2
  259. package/es/utils/other.mjs +11 -7
  260. package/es/utils/other.mjs.map +1 -1
  261. package/es/utils/semver-satisfies.mjs +0 -3
  262. package/es/utils/semver-satisfies.mjs.map +1 -1
  263. package/es/utils/string.d.ts +0 -12
  264. package/es/utils/string.mjs +1 -21
  265. package/es/utils/string.mjs.map +1 -1
  266. package/package.json +98 -51
  267. package/src/AeSdk.ts +15 -11
  268. package/src/AeSdkAepp.ts +9 -7
  269. package/src/AeSdkBase.ts +31 -202
  270. package/src/AeSdkMethods.ts +169 -0
  271. package/src/AeSdkWallet.ts +16 -47
  272. package/src/Node.ts +17 -18
  273. package/src/account/Base.ts +29 -75
  274. package/src/account/Generalized.ts +98 -0
  275. package/src/account/Ledger.ts +131 -0
  276. package/src/account/LedgerFactory.ts +86 -0
  277. package/src/account/Memory.ts +46 -60
  278. package/src/account/Rpc.ts +17 -26
  279. package/src/aens.ts +13 -11
  280. package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +21 -9
  281. package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +3 -3
  282. package/src/aepp-wallet-communication/rpc/RpcClient.ts +4 -4
  283. package/src/aepp-wallet-communication/rpc/types.ts +11 -1
  284. package/src/aepp-wallet-communication/schema.ts +18 -18
  285. package/src/apis/compiler/code-model-v4.yaml +681 -888
  286. package/src/apis/compiler/compiler.ts +113 -154
  287. package/src/apis/compiler/models/index.ts +80 -140
  288. package/src/apis/compiler/models/mappers.ts +165 -183
  289. package/src/apis/compiler/models/parameters.ts +6 -12
  290. package/src/chain.ts +11 -6
  291. package/src/channel/Base.ts +335 -0
  292. package/src/channel/Contract.ts +488 -0
  293. package/src/channel/Spend.ts +408 -0
  294. package/src/channel/handlers.ts +164 -582
  295. package/src/channel/internal.ts +114 -143
  296. package/src/contract/Contract.ts +610 -0
  297. package/src/contract/compiler/Base.ts +94 -0
  298. package/src/contract/compiler/Cli.ts +134 -0
  299. package/src/contract/compiler/Http.ts +124 -0
  300. package/src/contract/compiler/HttpNode.ts +26 -0
  301. package/src/contract/compiler/getFileSystem.ts +42 -0
  302. package/src/contract/ga.ts +23 -106
  303. package/src/index-browser.ts +58 -0
  304. package/src/index.ts +4 -55
  305. package/src/oracle.ts +8 -8
  306. package/src/spend.ts +6 -14
  307. package/src/tx/builder/constants.ts +33 -3
  308. package/src/tx/builder/field-types/abi-version.ts +21 -0
  309. package/src/tx/builder/field-types/address.ts +62 -0
  310. package/src/tx/builder/field-types/array.ts +19 -0
  311. package/src/tx/builder/field-types/boolean.ts +9 -0
  312. package/src/tx/builder/field-types/coin-amount.ts +4 -9
  313. package/src/tx/builder/field-types/ct-version.ts +50 -0
  314. package/src/tx/builder/field-types/deposit.ts +1 -1
  315. package/src/tx/builder/field-types/encoded.ts +27 -0
  316. package/src/tx/builder/field-types/entry.ts +31 -0
  317. package/src/tx/builder/field-types/enumeration.ts +32 -0
  318. package/src/tx/builder/field-types/fee.ts +39 -21
  319. package/src/tx/builder/field-types/gas-limit.ts +13 -8
  320. package/src/tx/builder/field-types/gas-price.ts +0 -2
  321. package/src/tx/builder/field-types/index.ts +54 -15
  322. package/src/tx/builder/field-types/mptree.ts +242 -0
  323. package/src/tx/builder/field-types/name-fee.ts +2 -3
  324. package/src/tx/builder/field-types/name-id.ts +7 -10
  325. package/src/tx/builder/field-types/pointers.ts +41 -0
  326. package/src/tx/builder/field-types/raw.ts +9 -0
  327. package/src/tx/builder/field-types/short-u-int-const.ts +20 -0
  328. package/src/tx/builder/field-types/string.ts +11 -0
  329. package/src/tx/builder/field-types/u-int.ts +4 -5
  330. package/src/tx/builder/helpers.ts +10 -60
  331. package/src/tx/builder/index.ts +65 -308
  332. package/src/tx/builder/schema.ts +280 -341
  333. package/src/tx/index.ts +40 -103
  334. package/src/tx/validator.ts +91 -96
  335. package/src/typings/@aeternity__aepp-calldata/index.d.ts +20 -0
  336. package/src/utils/autorest.ts +16 -1
  337. package/src/utils/bytes.ts +6 -34
  338. package/src/utils/crypto.ts +23 -16
  339. package/src/utils/encoder.ts +0 -1
  340. package/src/utils/errors.ts +22 -25
  341. package/src/utils/hd-wallet.ts +30 -9
  342. package/src/utils/keystore.ts +24 -21
  343. package/src/utils/other.ts +16 -1
  344. package/src/utils/string.ts +0 -20
  345. package/types-legacy/ts4.2/AeSdk.d.ts +41 -0
  346. package/types-legacy/ts4.2/AeSdkAepp.d.ts +71 -0
  347. package/types-legacy/ts4.2/AeSdkBase.d.ts +91 -0
  348. package/types-legacy/ts4.2/AeSdkMethods.d.ts +140 -0
  349. package/types-legacy/ts4.2/AeSdkWallet.d.ts +90 -0
  350. package/types-legacy/ts4.2/Node.d.ts +78 -0
  351. package/types-legacy/ts4.2/account/Base.d.ts +52 -0
  352. package/types-legacy/ts4.2/account/Generalized.d.ts +16 -0
  353. package/types-legacy/ts4.2/account/Ledger.d.ts +28 -0
  354. package/types-legacy/ts4.2/account/LedgerFactory.d.ts +39 -0
  355. package/types-legacy/ts4.2/account/Memory.d.ts +22 -0
  356. package/types-legacy/ts4.2/account/Rpc.d.ts +25 -0
  357. package/types-legacy/ts4.2/aens.d.ts +222 -0
  358. package/types-legacy/ts4.2/aepp-wallet-communication/connection/Browser.d.ts +33 -0
  359. package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserRuntime.d.ts +19 -0
  360. package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
  361. package/types-legacy/ts4.2/aepp-wallet-communication/connection-proxy.d.ts +11 -0
  362. package/types-legacy/ts4.2/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
  363. package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +83 -0
  364. package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +133 -0
  365. package/types-legacy/ts4.2/aepp-wallet-communication/wallet-detector.d.ts +25 -0
  366. package/types-legacy/ts4.2/apis/compiler/compiler.d.ts +86 -0
  367. package/types-legacy/ts4.2/apis/compiler/index.d.ts +2 -0
  368. package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +195 -0
  369. package/types-legacy/ts4.2/apis/compiler/models/mappers.d.ts +23 -0
  370. package/types-legacy/ts4.2/apis/compiler/models/parameters.d.ts +12 -0
  371. package/types-legacy/ts4.2/apis/node/index.d.ts +2 -0
  372. package/types-legacy/ts4.2/apis/node/models/index.d.ts +1065 -0
  373. package/types-legacy/ts4.2/apis/node/models/mappers.d.ts +95 -0
  374. package/types-legacy/ts4.2/apis/node/models/parameters.d.ts +17 -0
  375. package/types-legacy/ts4.2/apis/node/node.d.ts +215 -0
  376. package/types-legacy/ts4.2/chain.d.ts +256 -0
  377. package/types-legacy/ts4.2/channel/Base.d.ts +199 -0
  378. package/types-legacy/ts4.2/channel/Contract.d.ts +248 -0
  379. package/types-legacy/ts4.2/channel/Spend.d.ts +219 -0
  380. package/types-legacy/ts4.2/channel/handlers.d.ts +21 -0
  381. package/types-legacy/ts4.2/channel/internal.d.ts +107 -0
  382. package/types-legacy/ts4.2/contract/Contract.d.ts +212 -0
  383. package/types-legacy/ts4.2/contract/compiler/Base.d.ts +81 -0
  384. package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +23 -0
  385. package/types-legacy/ts4.2/contract/compiler/Http.d.ts +32 -0
  386. package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +17 -0
  387. package/types-legacy/ts4.2/contract/compiler/getFileSystem.d.ts +6 -0
  388. package/types-legacy/ts4.2/contract/ga.d.ts +44 -0
  389. package/types-legacy/ts4.2/globals.d.ts +16 -0
  390. package/types-legacy/ts4.2/index-browser.d.ts +39 -0
  391. package/types-legacy/ts4.2/index.d.ts +5 -0
  392. package/types-legacy/ts4.2/oracle.d.ts +161 -0
  393. package/types-legacy/ts4.2/spend.d.ts +62 -0
  394. package/types-legacy/ts4.2/tx/builder/constants.d.ts +98 -0
  395. package/types-legacy/ts4.2/tx/builder/field-types/abi-version.d.ts +10 -0
  396. package/types-legacy/ts4.2/tx/builder/field-types/address.d.ts +21 -0
  397. package/types-legacy/ts4.2/tx/builder/field-types/array.d.ts +7 -0
  398. package/types-legacy/ts4.2/tx/builder/field-types/boolean.d.ts +6 -0
  399. package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +12 -0
  400. package/types-legacy/ts4.2/tx/builder/field-types/ct-version.d.ts +42 -0
  401. package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +14 -0
  402. package/types-legacy/ts4.2/tx/builder/field-types/encoded.d.ts +6 -0
  403. package/types-legacy/ts4.2/tx/builder/field-types/entry.d.ts +11 -0
  404. package/types-legacy/ts4.2/tx/builder/field-types/enumeration.d.ts +7 -0
  405. package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +20 -0
  406. package/types-legacy/ts4.2/tx/builder/field-types/field.d.ts +6 -0
  407. package/types-legacy/ts4.2/tx/builder/field-types/gas-limit.d.ts +15 -0
  408. package/types-legacy/ts4.2/tx/builder/field-types/gas-price.d.ts +7 -0
  409. package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +129 -0
  410. package/types-legacy/ts4.2/tx/builder/field-types/mptree.d.ts +43 -0
  411. package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +18 -0
  412. package/types-legacy/ts4.2/tx/builder/field-types/name-id.d.ts +11 -0
  413. package/types-legacy/ts4.2/tx/builder/field-types/name.d.ts +13 -0
  414. package/types-legacy/ts4.2/tx/builder/field-types/pointers.d.ts +26 -0
  415. package/types-legacy/ts4.2/tx/builder/field-types/raw.d.ts +6 -0
  416. package/types-legacy/ts4.2/tx/builder/field-types/short-u-int-const.d.ts +5 -0
  417. package/types-legacy/ts4.2/tx/builder/field-types/short-u-int.d.ts +6 -0
  418. package/types-legacy/ts4.2/tx/builder/field-types/string.d.ts +6 -0
  419. package/types-legacy/ts4.2/tx/builder/field-types/u-int.d.ts +7 -0
  420. package/types-legacy/ts4.2/tx/builder/helpers.d.ts +112 -0
  421. package/types-legacy/ts4.2/tx/builder/index.d.ts +50 -0
  422. package/types-legacy/ts4.2/tx/builder/schema.d.ts +4675 -0
  423. package/types-legacy/ts4.2/tx/index.d.ts +19 -0
  424. package/types-legacy/ts4.2/tx/validator.d.ts +18 -0
  425. package/types-legacy/ts4.2/utils/amount-formatter.d.ts +42 -0
  426. package/types-legacy/ts4.2/utils/autorest.d.ts +7 -0
  427. package/types-legacy/ts4.2/utils/bignumber.d.ts +13 -0
  428. package/types-legacy/ts4.2/utils/bytes.d.ts +9 -0
  429. package/types-legacy/ts4.2/utils/crypto.d.ts +95 -0
  430. package/types-legacy/ts4.2/utils/encoder-types.d.ts +61 -0
  431. package/types-legacy/ts4.2/utils/encoder.d.ts +24 -0
  432. package/types-legacy/ts4.2/utils/errors.d.ts +475 -0
  433. package/types-legacy/ts4.2/utils/hd-wallet.d.ts +65 -0
  434. package/types-legacy/ts4.2/utils/json-big.d.ts +5 -0
  435. package/types-legacy/ts4.2/utils/keystore.d.ts +53 -0
  436. package/types-legacy/ts4.2/utils/other.d.ts +31 -0
  437. package/types-legacy/ts4.2/utils/semver-satisfies.d.ts +1 -0
  438. package/types-legacy/ts4.2/utils/string.d.ts +12 -0
  439. package/types-legacy/ts4.5/AeSdk.d.ts +41 -0
  440. package/types-legacy/ts4.5/AeSdkAepp.d.ts +71 -0
  441. package/types-legacy/ts4.5/AeSdkBase.d.ts +91 -0
  442. package/types-legacy/ts4.5/AeSdkMethods.d.ts +140 -0
  443. package/types-legacy/ts4.5/AeSdkWallet.d.ts +90 -0
  444. package/types-legacy/ts4.5/Node.d.ts +78 -0
  445. package/types-legacy/ts4.5/account/Base.d.ts +52 -0
  446. package/types-legacy/ts4.5/account/Generalized.d.ts +16 -0
  447. package/types-legacy/ts4.5/account/Ledger.d.ts +28 -0
  448. package/types-legacy/ts4.5/account/LedgerFactory.d.ts +39 -0
  449. package/types-legacy/ts4.5/account/Memory.d.ts +22 -0
  450. package/types-legacy/ts4.5/account/Rpc.d.ts +25 -0
  451. package/types-legacy/ts4.5/aens.d.ts +222 -0
  452. package/types-legacy/ts4.5/aepp-wallet-communication/connection/Browser.d.ts +33 -0
  453. package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserRuntime.d.ts +19 -0
  454. package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
  455. package/types-legacy/ts4.5/aepp-wallet-communication/connection-proxy.d.ts +11 -0
  456. package/types-legacy/ts4.5/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
  457. package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +83 -0
  458. package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +133 -0
  459. package/types-legacy/ts4.5/aepp-wallet-communication/wallet-detector.d.ts +25 -0
  460. package/types-legacy/ts4.5/apis/compiler/compiler.d.ts +86 -0
  461. package/types-legacy/ts4.5/apis/compiler/index.d.ts +2 -0
  462. package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +195 -0
  463. package/types-legacy/ts4.5/apis/compiler/models/mappers.d.ts +23 -0
  464. package/types-legacy/ts4.5/apis/compiler/models/parameters.d.ts +12 -0
  465. package/types-legacy/ts4.5/apis/node/index.d.ts +2 -0
  466. package/types-legacy/ts4.5/apis/node/models/index.d.ts +1065 -0
  467. package/types-legacy/ts4.5/apis/node/models/mappers.d.ts +95 -0
  468. package/types-legacy/ts4.5/apis/node/models/parameters.d.ts +17 -0
  469. package/types-legacy/ts4.5/apis/node/node.d.ts +215 -0
  470. package/types-legacy/ts4.5/chain.d.ts +256 -0
  471. package/types-legacy/ts4.5/channel/Base.d.ts +199 -0
  472. package/types-legacy/ts4.5/channel/Contract.d.ts +248 -0
  473. package/types-legacy/ts4.5/channel/Spend.d.ts +219 -0
  474. package/types-legacy/ts4.5/channel/handlers.d.ts +21 -0
  475. package/types-legacy/ts4.5/channel/internal.d.ts +107 -0
  476. package/types-legacy/ts4.5/contract/Contract.d.ts +212 -0
  477. package/types-legacy/ts4.5/contract/compiler/Base.d.ts +81 -0
  478. package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +23 -0
  479. package/types-legacy/ts4.5/contract/compiler/Http.d.ts +32 -0
  480. package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +17 -0
  481. package/types-legacy/ts4.5/contract/compiler/getFileSystem.d.ts +6 -0
  482. package/types-legacy/ts4.5/contract/ga.d.ts +44 -0
  483. package/types-legacy/ts4.5/index-browser.d.ts +39 -0
  484. package/types-legacy/ts4.5/index.d.ts +4 -0
  485. package/types-legacy/ts4.5/oracle.d.ts +161 -0
  486. package/types-legacy/ts4.5/spend.d.ts +62 -0
  487. package/types-legacy/ts4.5/tx/builder/constants.d.ts +98 -0
  488. package/types-legacy/ts4.5/tx/builder/field-types/abi-version.d.ts +10 -0
  489. package/types-legacy/ts4.5/tx/builder/field-types/address.d.ts +21 -0
  490. package/types-legacy/ts4.5/tx/builder/field-types/array.d.ts +7 -0
  491. package/types-legacy/ts4.5/tx/builder/field-types/boolean.d.ts +6 -0
  492. package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +12 -0
  493. package/types-legacy/ts4.5/tx/builder/field-types/ct-version.d.ts +42 -0
  494. package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +14 -0
  495. package/types-legacy/ts4.5/tx/builder/field-types/encoded.d.ts +6 -0
  496. package/types-legacy/ts4.5/tx/builder/field-types/entry.d.ts +11 -0
  497. package/types-legacy/ts4.5/tx/builder/field-types/enumeration.d.ts +7 -0
  498. package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +20 -0
  499. package/types-legacy/ts4.5/tx/builder/field-types/field.d.ts +6 -0
  500. package/types-legacy/ts4.5/tx/builder/field-types/gas-limit.d.ts +15 -0
  501. package/types-legacy/ts4.5/tx/builder/field-types/gas-price.d.ts +7 -0
  502. package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +129 -0
  503. package/types-legacy/ts4.5/tx/builder/field-types/mptree.d.ts +43 -0
  504. package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +18 -0
  505. package/types-legacy/ts4.5/tx/builder/field-types/name-id.d.ts +11 -0
  506. package/types-legacy/ts4.5/tx/builder/field-types/name.d.ts +13 -0
  507. package/types-legacy/ts4.5/tx/builder/field-types/pointers.d.ts +26 -0
  508. package/types-legacy/ts4.5/tx/builder/field-types/raw.d.ts +6 -0
  509. package/types-legacy/ts4.5/tx/builder/field-types/short-u-int-const.d.ts +5 -0
  510. package/types-legacy/ts4.5/tx/builder/field-types/short-u-int.d.ts +6 -0
  511. package/types-legacy/ts4.5/tx/builder/field-types/string.d.ts +6 -0
  512. package/types-legacy/ts4.5/tx/builder/field-types/u-int.d.ts +7 -0
  513. package/types-legacy/ts4.5/tx/builder/helpers.d.ts +112 -0
  514. package/types-legacy/ts4.5/tx/builder/index.d.ts +50 -0
  515. package/types-legacy/ts4.5/tx/builder/schema.d.ts +4675 -0
  516. package/types-legacy/ts4.5/tx/index.d.ts +19 -0
  517. package/types-legacy/ts4.5/tx/validator.d.ts +18 -0
  518. package/types-legacy/ts4.5/utils/amount-formatter.d.ts +42 -0
  519. package/types-legacy/ts4.5/utils/autorest.d.ts +7 -0
  520. package/types-legacy/ts4.5/utils/bignumber.d.ts +13 -0
  521. package/types-legacy/ts4.5/utils/bytes.d.ts +9 -0
  522. package/types-legacy/ts4.5/utils/crypto.d.ts +95 -0
  523. package/types-legacy/ts4.5/utils/encoder-types.d.ts +61 -0
  524. package/types-legacy/ts4.5/utils/encoder.d.ts +24 -0
  525. package/types-legacy/ts4.5/utils/errors.d.ts +475 -0
  526. package/types-legacy/ts4.5/utils/hd-wallet.d.ts +65 -0
  527. package/types-legacy/ts4.5/utils/json-big.d.ts +5 -0
  528. package/types-legacy/ts4.5/utils/keystore.d.ts +53 -0
  529. package/types-legacy/ts4.5/utils/other.d.ts +31 -0
  530. package/types-legacy/ts4.5/utils/semver-satisfies.d.ts +1 -0
  531. package/types-legacy/ts4.5/utils/string.d.ts +12 -0
  532. package/es/channel/index.d.ts +0 -625
  533. package/es/channel/index.mjs +0 -975
  534. package/es/channel/index.mjs.map +0 -1
  535. package/es/contract/Compiler.d.ts +0 -18
  536. package/es/contract/Compiler.mjs +0 -68
  537. package/es/contract/Compiler.mjs.map +0 -1
  538. package/es/contract/aci.d.ts +0 -127
  539. package/es/contract/aci.mjs +0 -508
  540. package/es/contract/aci.mjs.map +0 -1
  541. package/es/contract/methods.d.ts +0 -71
  542. package/es/contract/methods.mjs +0 -104
  543. package/es/contract/methods.mjs.map +0 -1
  544. package/es/deprecated/index.d.ts +0 -143
  545. package/es/deprecated/index.mjs +0 -162
  546. package/es/deprecated/index.mjs.map +0 -1
  547. package/es/deprecated/methods.d.ts +0 -18
  548. package/es/deprecated/methods.mjs +0 -26
  549. package/es/deprecated/methods.mjs.map +0 -1
  550. package/es/tx/builder/address.d.ts +0 -25
  551. package/es/tx/builder/address.mjs +0 -45
  552. package/es/tx/builder/address.mjs.map +0 -1
  553. package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +0 -1
  554. package/es/utils/mptree.d.ts +0 -26
  555. package/es/utils/mptree.mjs +0 -165
  556. package/es/utils/mptree.mjs.map +0 -1
  557. package/src/channel/index.ts +0 -1025
  558. package/src/contract/Compiler.ts +0 -67
  559. package/src/contract/aci.ts +0 -537
  560. package/src/contract/methods.ts +0 -123
  561. package/src/deprecated/index.ts +0 -172
  562. package/src/deprecated/methods.ts +0 -25
  563. package/src/tx/builder/address.ts +0 -50
  564. package/src/typings/@aeternity__argon2-browser/index.d.ts +0 -3
  565. package/src/utils/mptree.ts +0 -145
@@ -5,9 +5,8 @@
5
5
  import BigNumber from 'bignumber.js';
6
6
  import { Tag } from './constants';
7
7
  import { Field } from './field-types';
8
- import { Encoded, Encoding } from '../../utils/encoder';
9
- import MPTree from '../../utils/mptree';
10
- import { NamePointer } from '../../apis/node';
8
+ import { Encoding } from '../../utils/encoder';
9
+ import { UnionToIntersection } from '../../utils/other';
11
10
  export declare enum ORACLE_TTL_TYPES {
12
11
  delta = 0,
13
12
  block = 1
@@ -26,193 +25,116 @@ export declare const RESPONSE_TTL: {
26
25
  type: ORACLE_TTL_TYPES;
27
26
  value: number;
28
27
  };
29
- export declare const AMOUNT = 0;
30
- export declare const MAX_AUTH_FUN_GAS = 50000;
31
28
  export declare const DRY_RUN_ACCOUNT: {
32
29
  readonly pub: "ak_11111111111111111111111111111111273Yts";
33
30
  readonly amount: 100000000000000000000000000000000000n;
34
31
  };
35
- export declare type TxField = [
32
+ export type TxField = [
36
33
  name: string,
37
- type: FIELD_TYPES | Field,
38
- prefix?: Encoding | Encoding[]
34
+ type: Field
39
35
  ];
40
- /**
41
- * @category transaction builder
42
- * @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
43
- */
44
- export declare enum VM_VERSIONS {
45
- NO_VM = 0,
46
- SOPHIA = 1,
47
- SOPHIA_IMPROVEMENTS_MINERVA = 3,
48
- SOPHIA_IMPROVEMENTS_FORTUNA = 4,
49
- FATE = 5,
50
- SOPHIA_IMPROVEMENTS_LIMA = 6,
51
- FATE_2 = 7
52
- }
53
- /**
54
- * @category transaction builder
55
- * @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
56
- */
57
- export declare enum ABI_VERSIONS {
58
- NO_ABI = 0,
59
- SOPHIA = 1,
60
- FATE = 3
36
+ export declare enum CallReturnType {
37
+ Ok = 0,
38
+ Error = 1,
39
+ Revert = 2
61
40
  }
62
- /**
63
- * @category transaction builder
64
- */
65
- export declare enum PROTOCOL_VERSIONS {
66
- IRIS = 5
67
- }
68
- export declare const PROTOCOL_VM_ABI: {
69
- readonly 5: {
70
- readonly 42: {
71
- readonly vmVersion: readonly [VM_VERSIONS.FATE_2];
72
- readonly abiVersion: readonly [ABI_VERSIONS.FATE];
73
- };
74
- readonly 43: {
75
- readonly vmVersion: readonly [];
76
- readonly abiVersion: readonly [ABI_VERSIONS.FATE, ABI_VERSIONS.SOPHIA];
77
- };
78
- readonly 22: {
79
- readonly vmVersion: readonly [];
80
- readonly abiVersion: readonly [ABI_VERSIONS.NO_ABI, ABI_VERSIONS.SOPHIA];
81
- };
82
- };
83
- };
84
- declare type PrefixType<Prefix> = Prefix extends Encoding ? Encoded.Generic<Prefix> : Prefix extends readonly Encoding[] ? Encoded.Generic<Prefix[number]> : Encoded.Generic<any>;
85
- /**
86
- * @category transaction builder
87
- */
88
- export interface CtVersion {
89
- vmVersion: VM_VERSIONS;
90
- abiVersion: ABI_VERSIONS;
91
- }
92
- /**
93
- * @category transaction builder
94
- */
95
- export declare enum FIELD_TYPES {
96
- id = 0,
97
- ids = 1,
98
- string = 2,
99
- binary = 3,
100
- bool = 4,
101
- hex = 5,
102
- rlpBinary = 6,
103
- rlpBinaries = 7,
104
- rawBinary = 8,
105
- signatures = 9,
106
- pointers = 10,
107
- offChainUpdates = 11,
108
- callStack = 12,
109
- proofOfInclusion = 13,
110
- mptrees = 14,
111
- callReturnType = 15,
112
- ctVersion = 16,
113
- abiVersion = 17,
114
- ttlType = 18,
115
- sophiaCodeTypeInfo = 19,
116
- payload = 20,
117
- stateTree = 21
118
- }
119
- interface BuildFieldTypes<Prefix extends undefined | Encoding | readonly Encoding[]> {
120
- [FIELD_TYPES.id]: PrefixType<Prefix>;
121
- [FIELD_TYPES.ids]: Array<Encoded.Generic<Prefix extends Encoding[] ? Prefix : any>>;
122
- [FIELD_TYPES.string]: string;
123
- [FIELD_TYPES.binary]: PrefixType<Prefix>;
124
- [FIELD_TYPES.bool]: Boolean;
125
- [FIELD_TYPES.hex]: string;
126
- [FIELD_TYPES.rlpBinary]: any;
127
- [FIELD_TYPES.rlpBinaries]: any[];
128
- [FIELD_TYPES.rawBinary]: Uint8Array;
129
- [FIELD_TYPES.signatures]: Uint8Array[];
130
- [FIELD_TYPES.pointers]: NamePointer[];
131
- [FIELD_TYPES.offChainUpdates]: any;
132
- [FIELD_TYPES.callStack]: any;
133
- [FIELD_TYPES.proofOfInclusion]: any;
134
- [FIELD_TYPES.mptrees]: MPTree[];
135
- [FIELD_TYPES.callReturnType]: any;
136
- [FIELD_TYPES.ctVersion]: CtVersion;
137
- [FIELD_TYPES.abiVersion]: ABI_VERSIONS;
138
- [FIELD_TYPES.ttlType]: ORACLE_TTL_TYPES;
139
- [FIELD_TYPES.sophiaCodeTypeInfo]: any;
140
- [FIELD_TYPES.payload]: string | undefined;
141
- [FIELD_TYPES.stateTree]: any;
142
- }
143
- declare type UnionToIntersection<Union> = (Union extends any ? (k: Union) => void : never) extends ((k: infer Intersection) => void) ? Intersection : never;
144
- declare type TxElem = readonly [string, FIELD_TYPES | Field] | readonly [string, FIELD_TYPES, Encoding | readonly Encoding[]];
145
- declare type BuildTxArgBySchemaType<Type extends FIELD_TYPES | Field, Prefix extends undefined | Encoding | readonly Encoding[]> = Type extends Field ? Parameters<Type['serialize']>[0] : Type extends FIELD_TYPES ? BuildFieldTypes<Prefix>[Type] : never;
146
- declare type NullablePartial<T, NK extends keyof T = {
41
+ type TxElem = readonly [string, Field];
42
+ type BuildTxArgBySchemaType<Type extends Field> = Parameters<Type['serialize']>[0];
43
+ type NullablePartial<T, NK extends keyof T = {
147
44
  [K in keyof T]: undefined extends T[K] ? K : never;
148
45
  }[keyof T]> = Partial<Pick<T, NK>> & Omit<T, NK>;
149
- declare type BuildTxArgBySchema<SchemaLine> = UnionToIntersection<SchemaLine extends ReadonlyArray<infer Elem> ? Elem extends TxElem ? NullablePartial<{
150
- [k in Elem[0]]: BuildTxArgBySchemaType<Elem[1], Elem[2]>;
46
+ type BuildTxArgBySchema<SchemaLine> = UnionToIntersection<SchemaLine extends ReadonlyArray<infer Elem> ? Elem extends TxElem ? NullablePartial<{
47
+ [k in Elem[0]]: BuildTxArgBySchemaType<Elem[1]>;
151
48
  }> : never : never>;
152
- export declare type RawTxObject<Tx extends TxSchema> = {
49
+ export type RawTxObject<Tx extends TxSchema> = {
153
50
  [k in keyof Tx]-?: Tx[k] extends BigNumber ? string : Tx[k];
154
51
  };
52
+ /**
53
+ * @see {@link https://github.com/aeternity/protocol/blob/c007deeac4a01e401238412801ac7084ac72d60e/serializations.md#accounts-version-1-basic-accounts}
54
+ */
155
55
  export declare const TX_SCHEMA: {
156
56
  readonly 10: {
157
57
  readonly 1: readonly [readonly ["tag", {
158
- serialize(value: number): Buffer;
159
- deserialize(value: Buffer): number;
160
- }], readonly ["VSN", {
161
- serialize(value: number): Buffer;
162
- deserialize(value: Buffer): number;
58
+ serialize: (value?: Tag.Account | undefined) => Buffer;
59
+ deserialize: (value: Buffer) => Tag.Account;
60
+ }], readonly ["version", {
61
+ serialize: (value?: 1 | undefined) => Buffer;
62
+ deserialize: (value: Buffer) => 1;
163
63
  }], readonly ["nonce", {
164
64
  serialize(value: number): Buffer;
165
65
  deserialize(value: Buffer): number;
166
66
  }], readonly ["balance", {
167
- serialize(value: import("./field-types/u-int").Int): Buffer;
67
+ serialize(value: import("./constants").Int): Buffer;
168
68
  deserialize(value: Buffer): string;
169
69
  }]];
170
70
  readonly 2: readonly [readonly ["tag", {
171
- serialize(value: number): Buffer;
172
- deserialize(value: Buffer): number;
173
- }], readonly ["VSN", {
174
- serialize(value: number): Buffer;
175
- deserialize(value: Buffer): number;
71
+ serialize: (value?: Tag.Account | undefined) => Buffer;
72
+ deserialize: (value: Buffer) => Tag.Account;
73
+ }], readonly ["version", {
74
+ serialize: (value?: 2 | undefined) => Buffer;
75
+ deserialize: (value: Buffer) => 2;
176
76
  }], readonly ["flags", {
177
- serialize(value: import("./field-types/u-int").Int): Buffer;
77
+ serialize(value: import("./constants").Int): Buffer;
178
78
  deserialize(value: Buffer): string;
179
79
  }], readonly ["nonce", {
180
80
  serialize(value: number): Buffer;
181
81
  deserialize(value: Buffer): number;
182
82
  }], readonly ["balance", {
183
- serialize(value: import("./field-types/u-int").Int): Buffer;
184
- deserialize(value: Buffer): string;
185
- }], readonly ["gaContract", FIELD_TYPES.id, readonly [Encoded.Encoding.ContractAddress, Encoded.Encoding.Name]], readonly ["gaAuthFun", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
83
+ serialize(value: import("./constants").Int): Buffer;
84
+ deserialize(value: Buffer): string;
85
+ }], readonly ["gaContract", {
86
+ serialize: (value: `ct_${string}` | `nm_${string}`) => Buffer;
87
+ deserialize: (value: Buffer) => `ct_${string}` | `nm_${string}`;
88
+ }], readonly ["gaAuthFun", {
89
+ serialize: (value: `cb_${string}`) => Buffer;
90
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
91
+ }]];
186
92
  };
187
93
  readonly 11: {
188
94
  readonly 1: readonly [readonly ["tag", {
189
- serialize(value: number): Buffer;
190
- deserialize(value: Buffer): number;
191
- }], readonly ["VSN", {
192
- serialize(value: number): Buffer;
193
- deserialize(value: Buffer): number;
194
- }], readonly ["signatures", FIELD_TYPES.signatures], readonly ["encodedTx", FIELD_TYPES.rlpBinary]];
95
+ serialize: (value?: Tag.SignedTx | undefined) => Buffer;
96
+ deserialize: (value: Buffer) => Tag.SignedTx;
97
+ }], readonly ["version", {
98
+ serialize: (value?: 1 | undefined) => Buffer;
99
+ deserialize: (value: Buffer) => 1;
100
+ }], readonly ["signatures", {
101
+ serialize: (value: Uint8Array[], params: unknown) => Buffer[];
102
+ deserialize: (value: Buffer[], params: unknown) => Buffer[];
103
+ }], readonly ["encodedTx", {
104
+ serialize: (value: any, options: {
105
+ buildTx: typeof import(".").buildTx;
106
+ }) => Buffer;
107
+ deserialize: (value: Buffer, options: {
108
+ unpackTx: typeof import(".").unpackTx;
109
+ }) => any;
110
+ }]];
195
111
  };
196
112
  readonly 12: {
197
113
  readonly 1: readonly [readonly ["tag", {
198
- serialize(value: number): Buffer;
199
- deserialize(value: Buffer): number;
200
- }], readonly ["VSN", {
201
- serialize(value: number): Buffer;
202
- deserialize(value: Buffer): number;
203
- }], readonly ["senderId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["recipientId", FIELD_TYPES.id, readonly [Encoded.Encoding.AccountAddress, Encoded.Encoding.Name]], readonly ["amount", {
114
+ serialize: (value?: Tag.SpendTx | undefined) => Buffer;
115
+ deserialize: (value: Buffer) => Tag.SpendTx;
116
+ }], readonly ["version", {
117
+ serialize: (value?: 1 | undefined) => Buffer;
118
+ deserialize: (value: Buffer) => 1;
119
+ }], readonly ["senderId", {
120
+ serialize: (value: `ak_${string}`) => Buffer;
121
+ deserialize: (value: Buffer) => `ak_${string}`;
122
+ }], readonly ["recipientId", {
123
+ serialize: (value: `ak_${string}` | `nm_${string}`) => Buffer;
124
+ deserialize: (value: Buffer) => `ak_${string}` | `nm_${string}`;
125
+ }], readonly ["amount", {
204
126
  serializeAettos(value: string | undefined): string;
205
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
206
- serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
127
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
207
128
  deserialize(value: Buffer): string;
208
129
  }], readonly ["fee", {
209
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
210
- txType: Tag;
211
- rebuildTx: (params: any) => any;
212
- _computingMinFee?: string | undefined;
130
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
131
+ rebuildTx: (params: any) => `tx_${string}`;
132
+ unpackTx: typeof import(".").unpackTx;
133
+ buildTx: typeof import(".").buildTx;
134
+ _computingMinFee?: BigNumber | undefined;
135
+ _pickBiggerFee?: boolean | undefined;
213
136
  }): string;
214
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
215
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
137
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
216
138
  deserialize(value: Buffer): string;
217
139
  }], readonly ["ttl", {
218
140
  serialize(value: number): Buffer;
@@ -220,26 +142,64 @@ export declare const TX_SCHEMA: {
220
142
  }], readonly ["nonce", {
221
143
  serialize(value: number): Buffer;
222
144
  deserialize(value: Buffer): number;
223
- }], readonly ["payload", FIELD_TYPES.payload]];
145
+ }], readonly ["payload", {
146
+ serialize: (value?: `ba_${string}` | undefined) => Buffer;
147
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
148
+ }]];
224
149
  };
225
- readonly 33: {
150
+ readonly 30: {
226
151
  readonly 1: readonly [readonly ["tag", {
152
+ serialize: (value?: Tag.Name | undefined) => Buffer;
153
+ deserialize: (value: Buffer) => Tag.Name;
154
+ }], readonly ["version", {
155
+ serialize: (value?: 1 | undefined) => Buffer;
156
+ deserialize: (value: Buffer) => 1;
157
+ }], readonly ["accountId", {
158
+ serialize: (value: `ak_${string}`) => Buffer;
159
+ deserialize: (value: Buffer) => `ak_${string}`;
160
+ }], readonly ["nameTtl", {
227
161
  serialize(value: number): Buffer;
228
162
  deserialize(value: Buffer): number;
229
- }], readonly ["VSN", {
163
+ }], readonly ["status", {
164
+ serialize(buffer: Uint8Array): Buffer;
165
+ deserialize(buffer: Buffer): Buffer;
166
+ }], readonly ["clientTtl", {
230
167
  serialize(value: number): Buffer;
231
168
  deserialize(value: Buffer): number;
232
- }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
169
+ }], readonly ["pointers", {
170
+ serialize(pointers: (import("../../apis/node").NamePointer & {
171
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
172
+ })[]): Buffer[][];
173
+ deserialize(pointers: [key: Buffer, id: Buffer][]): (import("../../apis/node").NamePointer & {
174
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
175
+ })[];
176
+ }]];
177
+ };
178
+ readonly 33: {
179
+ readonly 1: readonly [readonly ["tag", {
180
+ serialize: (value?: Tag.NamePreclaimTx | undefined) => Buffer;
181
+ deserialize: (value: Buffer) => Tag.NamePreclaimTx;
182
+ }], readonly ["version", {
183
+ serialize: (value?: 1 | undefined) => Buffer;
184
+ deserialize: (value: Buffer) => 1;
185
+ }], readonly ["accountId", {
186
+ serialize: (value: `ak_${string}`) => Buffer;
187
+ deserialize: (value: Buffer) => `ak_${string}`;
188
+ }], readonly ["nonce", {
233
189
  serialize(value: number): Buffer;
234
190
  deserialize(value: Buffer): number;
235
- }], readonly ["commitmentId", FIELD_TYPES.id, Encoded.Encoding.Commitment], readonly ["fee", {
236
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
237
- txType: Tag;
238
- rebuildTx: (params: any) => any;
239
- _computingMinFee?: string | undefined;
191
+ }], readonly ["commitmentId", {
192
+ serialize: (value: `cm_${string}`) => Buffer;
193
+ deserialize: (value: Buffer) => `cm_${string}`;
194
+ }], readonly ["fee", {
195
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
196
+ rebuildTx: (params: any) => `tx_${string}`;
197
+ unpackTx: typeof import(".").unpackTx;
198
+ buildTx: typeof import(".").buildTx;
199
+ _computingMinFee?: BigNumber | undefined;
200
+ _pickBiggerFee?: boolean | undefined;
240
201
  }): string;
241
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
242
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
202
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
243
203
  deserialize(value: Buffer): string;
244
204
  }], readonly ["ttl", {
245
205
  serialize(value: number): Buffer;
@@ -248,37 +208,40 @@ export declare const TX_SCHEMA: {
248
208
  };
249
209
  readonly 32: {
250
210
  readonly 2: readonly [readonly ["tag", {
251
- serialize(value: number): Buffer;
252
- deserialize(value: Buffer): number;
253
- }], readonly ["VSN", {
254
- serialize(value: number): Buffer;
255
- deserialize(value: Buffer): number;
256
- }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
211
+ serialize: (value?: Tag.NameClaimTx | undefined) => Buffer;
212
+ deserialize: (value: Buffer) => Tag.NameClaimTx;
213
+ }], readonly ["version", {
214
+ serialize: (value?: 2 | undefined) => Buffer;
215
+ deserialize: (value: Buffer) => 2;
216
+ }], readonly ["accountId", {
217
+ serialize: (value: `ak_${string}`) => Buffer;
218
+ deserialize: (value: Buffer) => `ak_${string}`;
219
+ }], readonly ["nonce", {
257
220
  serialize(value: number): Buffer;
258
221
  deserialize(value: Buffer): number;
259
222
  }], readonly ["name", {
260
223
  serialize(value: `${string}.chain`): Buffer;
261
224
  deserialize(value: Buffer): `${string}.chain`;
262
225
  }], readonly ["nameSalt", {
263
- serialize(value: import("./field-types/u-int").Int): Buffer;
226
+ serialize(value: import("./constants").Int): Buffer;
264
227
  deserialize(value: Buffer): string;
265
228
  }], readonly ["nameFee", {
266
229
  serializeAettos(_value: string | undefined, txFields: {
267
230
  name: `${string}.chain`;
268
231
  }): string;
269
- serialize(value: import("./field-types/u-int").Int | undefined, txFields: {
232
+ serialize(value: import("./constants").Int | undefined, txFields: {
270
233
  name: `${string}.chain`;
271
234
  } & import("./field-types/coin-amount").Options): Buffer;
272
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
273
235
  deserialize(value: Buffer): string;
274
236
  }], readonly ["fee", {
275
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
276
- txType: Tag;
277
- rebuildTx: (params: any) => any;
278
- _computingMinFee?: string | undefined;
237
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
238
+ rebuildTx: (params: any) => `tx_${string}`;
239
+ unpackTx: typeof import(".").unpackTx;
240
+ buildTx: typeof import(".").buildTx;
241
+ _computingMinFee?: BigNumber | undefined;
242
+ _pickBiggerFee?: boolean | undefined;
279
243
  }): string;
280
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
281
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
244
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
282
245
  deserialize(value: Buffer): string;
283
246
  }], readonly ["ttl", {
284
247
  serialize(value: number): Buffer;
@@ -287,31 +250,42 @@ export declare const TX_SCHEMA: {
287
250
  };
288
251
  readonly 34: {
289
252
  readonly 1: readonly [readonly ["tag", {
290
- serialize(value: number): Buffer;
291
- deserialize(value: Buffer): number;
292
- }], readonly ["VSN", {
293
- serialize(value: number): Buffer;
294
- deserialize(value: Buffer): number;
295
- }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
253
+ serialize: (value?: Tag.NameUpdateTx | undefined) => Buffer;
254
+ deserialize: (value: Buffer) => Tag.NameUpdateTx;
255
+ }], readonly ["version", {
256
+ serialize: (value?: 1 | undefined) => Buffer;
257
+ deserialize: (value: Buffer) => 1;
258
+ }], readonly ["accountId", {
259
+ serialize: (value: `ak_${string}`) => Buffer;
260
+ deserialize: (value: Buffer) => `ak_${string}`;
261
+ }], readonly ["nonce", {
296
262
  serialize(value: number): Buffer;
297
263
  deserialize(value: Buffer): number;
298
264
  }], readonly ["nameId", {
299
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
300
- deserialize(value: Buffer): `nm_${string}`;
265
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
266
+ deserialize: (value: Buffer) => `nm_${string}`;
301
267
  }], readonly ["nameTtl", {
302
- serialize(value: import("./field-types/u-int").Int): Buffer;
303
- deserialize(value: Buffer): string;
304
- }], readonly ["pointers", FIELD_TYPES.pointers], readonly ["clientTtl", {
268
+ serialize(value: number): Buffer;
269
+ deserialize(value: Buffer): number;
270
+ }], readonly ["pointers", {
271
+ serialize(pointers: (import("../../apis/node").NamePointer & {
272
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
273
+ })[]): Buffer[][];
274
+ deserialize(pointers: [key: Buffer, id: Buffer][]): (import("../../apis/node").NamePointer & {
275
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
276
+ })[];
277
+ }], readonly ["clientTtl", {
305
278
  serialize(value: number): Buffer;
306
279
  deserialize(value: Buffer): number;
307
280
  }], readonly ["fee", {
308
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
309
- txType: Tag;
310
- rebuildTx: (params: any) => any;
311
- _computingMinFee?: string | undefined;
281
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
282
+ rebuildTx: (params: any) => `tx_${string}`;
283
+ unpackTx: typeof import(".").unpackTx;
284
+ buildTx: typeof import(".").buildTx;
285
+ _computingMinFee?: BigNumber | undefined;
286
+ _pickBiggerFee?: boolean | undefined;
312
287
  }): string;
313
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
314
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
288
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
315
289
  deserialize(value: Buffer): string;
316
290
  }], readonly ["ttl", {
317
291
  serialize(value: number): Buffer;
@@ -320,25 +294,32 @@ export declare const TX_SCHEMA: {
320
294
  };
321
295
  readonly 36: {
322
296
  readonly 1: readonly [readonly ["tag", {
323
- serialize(value: number): Buffer;
324
- deserialize(value: Buffer): number;
325
- }], readonly ["VSN", {
326
- serialize(value: number): Buffer;
327
- deserialize(value: Buffer): number;
328
- }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
297
+ serialize: (value?: Tag.NameTransferTx | undefined) => Buffer;
298
+ deserialize: (value: Buffer) => Tag.NameTransferTx;
299
+ }], readonly ["version", {
300
+ serialize: (value?: 1 | undefined) => Buffer;
301
+ deserialize: (value: Buffer) => 1;
302
+ }], readonly ["accountId", {
303
+ serialize: (value: `ak_${string}`) => Buffer;
304
+ deserialize: (value: Buffer) => `ak_${string}`;
305
+ }], readonly ["nonce", {
329
306
  serialize(value: number): Buffer;
330
307
  deserialize(value: Buffer): number;
331
308
  }], readonly ["nameId", {
332
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
333
- deserialize(value: Buffer): `nm_${string}`;
334
- }], readonly ["recipientId", FIELD_TYPES.id, readonly [Encoded.Encoding.AccountAddress, Encoded.Encoding.Name]], readonly ["fee", {
335
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
336
- txType: Tag;
337
- rebuildTx: (params: any) => any;
338
- _computingMinFee?: string | undefined;
309
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
310
+ deserialize: (value: Buffer) => `nm_${string}`;
311
+ }], readonly ["recipientId", {
312
+ serialize: (value: `ak_${string}` | `nm_${string}`) => Buffer;
313
+ deserialize: (value: Buffer) => `ak_${string}` | `nm_${string}`;
314
+ }], readonly ["fee", {
315
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
316
+ rebuildTx: (params: any) => `tx_${string}`;
317
+ unpackTx: typeof import(".").unpackTx;
318
+ buildTx: typeof import(".").buildTx;
319
+ _computingMinFee?: BigNumber | undefined;
320
+ _pickBiggerFee?: boolean | undefined;
339
321
  }): string;
340
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
341
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
322
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
342
323
  deserialize(value: Buffer): string;
343
324
  }], readonly ["ttl", {
344
325
  serialize(value: number): Buffer;
@@ -347,25 +328,29 @@ export declare const TX_SCHEMA: {
347
328
  };
348
329
  readonly 35: {
349
330
  readonly 1: readonly [readonly ["tag", {
350
- serialize(value: number): Buffer;
351
- deserialize(value: Buffer): number;
352
- }], readonly ["VSN", {
353
- serialize(value: number): Buffer;
354
- deserialize(value: Buffer): number;
355
- }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
331
+ serialize: (value?: Tag.NameRevokeTx | undefined) => Buffer;
332
+ deserialize: (value: Buffer) => Tag.NameRevokeTx;
333
+ }], readonly ["version", {
334
+ serialize: (value?: 1 | undefined) => Buffer;
335
+ deserialize: (value: Buffer) => 1;
336
+ }], readonly ["accountId", {
337
+ serialize: (value: `ak_${string}`) => Buffer;
338
+ deserialize: (value: Buffer) => `ak_${string}`;
339
+ }], readonly ["nonce", {
356
340
  serialize(value: number): Buffer;
357
341
  deserialize(value: Buffer): number;
358
342
  }], readonly ["nameId", {
359
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
360
- deserialize(value: Buffer): `nm_${string}`;
343
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
344
+ deserialize: (value: Buffer) => `nm_${string}`;
361
345
  }], readonly ["fee", {
362
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
363
- txType: Tag;
364
- rebuildTx: (params: any) => any;
365
- _computingMinFee?: string | undefined;
346
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
347
+ rebuildTx: (params: any) => `tx_${string}`;
348
+ unpackTx: typeof import(".").unpackTx;
349
+ buildTx: typeof import(".").buildTx;
350
+ _computingMinFee?: BigNumber | undefined;
351
+ _pickBiggerFee?: boolean | undefined;
366
352
  }): string;
367
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
368
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
353
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
369
354
  deserialize(value: Buffer): string;
370
355
  }], readonly ["ttl", {
371
356
  serialize(value: number): Buffer;
@@ -374,183 +359,302 @@ export declare const TX_SCHEMA: {
374
359
  };
375
360
  readonly 40: {
376
361
  readonly 1: readonly [readonly ["tag", {
377
- serialize(value: number): Buffer;
378
- deserialize(value: Buffer): number;
379
- }], readonly ["VSN", {
380
- serialize(value: number): Buffer;
381
- deserialize(value: Buffer): number;
382
- }], readonly ["owner", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["log", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["active", FIELD_TYPES.bool], readonly ["referers", FIELD_TYPES.ids, Encoded.Encoding.AccountAddress], readonly ["deposit", {
383
- serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
362
+ serialize: (value?: Tag.Contract | undefined) => Buffer;
363
+ deserialize: (value: Buffer) => Tag.Contract;
364
+ }], readonly ["version", {
365
+ serialize: (value?: 1 | undefined) => Buffer;
366
+ deserialize: (value: Buffer) => 1;
367
+ }], readonly ["owner", {
368
+ serialize: (value: `ak_${string}`) => Buffer;
369
+ deserialize: (value: Buffer) => `ak_${string}`;
370
+ }], readonly ["ctVersion", {
371
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
372
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
373
+ }): Buffer;
374
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
375
+ }], readonly ["code", {
376
+ serialize: (value: `cb_${string}`) => Buffer;
377
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
378
+ }], readonly ["log", {
379
+ serialize: (value: `cb_${string}`) => Buffer;
380
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
381
+ }], readonly ["active", {
382
+ serialize(value: boolean): Buffer;
383
+ deserialize(buffer: Buffer): boolean;
384
+ }], readonly ["referers", {
385
+ serialize: (value: `ak_${string}`[], params: unknown) => Buffer[];
386
+ deserialize: (value: Buffer[], params: unknown) => `ak_${string}`[];
387
+ }], readonly ["deposit", {
388
+ serialize(value: import("./constants").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
384
389
  serializeAettos(value: string | undefined): string;
385
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
386
390
  deserialize(value: Buffer): string;
387
391
  }]];
388
392
  };
389
393
  readonly 42: {
390
394
  readonly 1: readonly [readonly ["tag", {
395
+ serialize: (value?: Tag.ContractCreateTx | undefined) => Buffer;
396
+ deserialize: (value: Buffer) => Tag.ContractCreateTx;
397
+ }], readonly ["version", {
398
+ serialize: (value?: 1 | undefined) => Buffer;
399
+ deserialize: (value: Buffer) => 1;
400
+ }], readonly ["ownerId", {
401
+ serialize: (value: `ak_${string}`) => Buffer;
402
+ deserialize: (value: Buffer) => `ak_${string}`;
403
+ }], readonly ["nonce", {
391
404
  serialize(value: number): Buffer;
392
405
  deserialize(value: Buffer): number;
393
- }], readonly ["VSN", {
394
- serialize(value: number): Buffer;
395
- deserialize(value: Buffer): number;
396
- }], readonly ["ownerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
397
- serialize(value: number): Buffer;
398
- deserialize(value: Buffer): number;
399
- }], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
400
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
401
- txType: Tag;
402
- rebuildTx: (params: any) => any;
403
- _computingMinFee?: string | undefined;
406
+ }], readonly ["code", {
407
+ serialize: (value: `cb_${string}`) => Buffer;
408
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
409
+ }], readonly ["ctVersion", {
410
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
411
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
412
+ }): Buffer;
413
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
414
+ }], readonly ["fee", {
415
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
416
+ rebuildTx: (params: any) => `tx_${string}`;
417
+ unpackTx: typeof import(".").unpackTx;
418
+ buildTx: typeof import(".").buildTx;
419
+ _computingMinFee?: BigNumber | undefined;
420
+ _pickBiggerFee?: boolean | undefined;
404
421
  }): string;
405
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
406
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
422
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
407
423
  deserialize(value: Buffer): string;
408
424
  }], readonly ["ttl", {
409
425
  serialize(value: number): Buffer;
410
426
  deserialize(value: Buffer): number;
411
427
  }], readonly ["deposit", {
412
- serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
428
+ serialize(value: import("./constants").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
413
429
  serializeAettos(value: string | undefined): string;
414
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
415
430
  deserialize(value: Buffer): string;
416
431
  }], readonly ["amount", {
417
432
  serializeAettos(value: string | undefined): string;
418
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
419
- serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
433
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
420
434
  deserialize(value: Buffer): string;
421
435
  }], readonly ["gasLimit", {
422
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
423
- txType: Tag;
436
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
437
+ tag: Tag;
424
438
  rebuildTx: (params: any) => any;
439
+ unpackTx: typeof import(".").unpackTx;
440
+ buildTx: typeof import(".").buildTx;
425
441
  gasMax: number;
426
442
  _computingGasLimit?: number | undefined;
427
443
  }): Buffer;
428
444
  deserialize(value: Buffer): number;
429
445
  }], readonly ["gasPrice", {
430
446
  serializeAettos(value?: string | undefined): string;
431
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
432
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
447
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
433
448
  deserialize(value: Buffer): string;
434
- }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
449
+ }], readonly ["callData", {
450
+ serialize: (value: `cb_${string}`) => Buffer;
451
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
452
+ }]];
435
453
  };
436
454
  readonly 43: {
437
455
  readonly 1: readonly [readonly ["tag", {
456
+ serialize: (value?: Tag.ContractCallTx | undefined) => Buffer;
457
+ deserialize: (value: Buffer) => Tag.ContractCallTx;
458
+ }], readonly ["version", {
459
+ serialize: (value?: 1 | undefined) => Buffer;
460
+ deserialize: (value: Buffer) => 1;
461
+ }], readonly ["callerId", {
462
+ serialize: (value: `ak_${string}`) => Buffer;
463
+ deserialize: (value: Buffer) => `ak_${string}`;
464
+ }], readonly ["nonce", {
438
465
  serialize(value: number): Buffer;
439
466
  deserialize(value: Buffer): number;
440
- }], readonly ["VSN", {
441
- serialize(value: number): Buffer;
442
- deserialize(value: Buffer): number;
443
- }], readonly ["callerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
444
- serialize(value: number): Buffer;
445
- deserialize(value: Buffer): number;
446
- }], readonly ["contractId", FIELD_TYPES.id, readonly [Encoded.Encoding.ContractAddress, Encoded.Encoding.Name]], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", {
447
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
448
- txType: Tag;
449
- rebuildTx: (params: any) => any;
450
- _computingMinFee?: string | undefined;
467
+ }], readonly ["contractId", {
468
+ serialize: (value: `ct_${string}` | `nm_${string}`) => Buffer;
469
+ deserialize: (value: Buffer) => `ct_${string}` | `nm_${string}`;
470
+ }], readonly ["abiVersion", {
471
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
472
+ tag: Tag;
473
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
474
+ }): Buffer;
475
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
476
+ }], readonly ["fee", {
477
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
478
+ rebuildTx: (params: any) => `tx_${string}`;
479
+ unpackTx: typeof import(".").unpackTx;
480
+ buildTx: typeof import(".").buildTx;
481
+ _computingMinFee?: BigNumber | undefined;
482
+ _pickBiggerFee?: boolean | undefined;
451
483
  }): string;
452
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
453
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
484
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
454
485
  deserialize(value: Buffer): string;
455
486
  }], readonly ["ttl", {
456
487
  serialize(value: number): Buffer;
457
488
  deserialize(value: Buffer): number;
458
489
  }], readonly ["amount", {
459
490
  serializeAettos(value: string | undefined): string;
460
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
461
- serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
491
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
462
492
  deserialize(value: Buffer): string;
463
493
  }], readonly ["gasLimit", {
464
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
465
- txType: Tag;
494
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
495
+ tag: Tag;
466
496
  rebuildTx: (params: any) => any;
497
+ unpackTx: typeof import(".").unpackTx;
498
+ buildTx: typeof import(".").buildTx;
467
499
  gasMax: number;
468
500
  _computingGasLimit?: number | undefined;
469
501
  }): Buffer;
470
502
  deserialize(value: Buffer): number;
471
503
  }], readonly ["gasPrice", {
472
504
  serializeAettos(value?: string | undefined): string;
473
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
474
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
505
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
475
506
  deserialize(value: Buffer): string;
476
- }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
507
+ }], readonly ["callData", {
508
+ serialize: (value: `cb_${string}`) => Buffer;
509
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
510
+ }]];
477
511
  };
478
512
  readonly 41: {
479
513
  readonly 1: readonly [readonly ["tag", {
480
- serialize(value: number): Buffer;
481
- deserialize(value: Buffer): number;
482
- }], readonly ["VSN", {
483
- serialize(value: number): Buffer;
484
- deserialize(value: Buffer): number;
485
- }], readonly ["callerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["callerNonce", {
514
+ serialize: (value?: Tag.ContractCall | undefined) => Buffer;
515
+ deserialize: (value: Buffer) => Tag.ContractCall;
516
+ }], readonly ["version", {
517
+ serialize: (value?: 1 | undefined) => Buffer;
518
+ deserialize: (value: Buffer) => 1;
519
+ }], readonly ["callerId", {
520
+ serialize: (value: `ak_${string}`) => Buffer;
521
+ deserialize: (value: Buffer) => `ak_${string}`;
522
+ }], readonly ["callerNonce", {
486
523
  serialize(value: number): Buffer;
487
524
  deserialize(value: Buffer): number;
488
525
  }], readonly ["height", {
489
526
  serialize(value: number): Buffer;
490
527
  deserialize(value: Buffer): number;
491
- }], readonly ["contractId", FIELD_TYPES.id, Encoded.Encoding.ContractAddress], readonly ["gasPrice", {
528
+ }], readonly ["contractId", {
529
+ serialize: (value: `ct_${string}`) => Buffer;
530
+ deserialize: (value: Buffer) => `ct_${string}`;
531
+ }], readonly ["gasPrice", {
492
532
  serializeAettos(value?: string | undefined): string;
493
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
494
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
533
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
495
534
  deserialize(value: Buffer): string;
496
535
  }], readonly ["gasUsed", {
497
536
  serialize(value: number): Buffer;
498
537
  deserialize(value: Buffer): number;
499
- }], readonly ["returnValue", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["returnType", FIELD_TYPES.callReturnType], readonly ["log", FIELD_TYPES.rawBinary]];
538
+ }], readonly ["returnValue", {
539
+ serialize: (value: `cb_${string}`) => Buffer;
540
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
541
+ }], readonly ["returnType", {
542
+ serialize: (value: CallReturnType) => Buffer;
543
+ deserialize: (value: Buffer) => CallReturnType;
544
+ }], readonly ["log", {
545
+ serialize(buffer: Uint8Array): Buffer;
546
+ deserialize(buffer: Buffer): Buffer;
547
+ }]];
500
548
  };
501
- readonly 22: {
549
+ readonly 20: {
502
550
  readonly 1: readonly [readonly ["tag", {
551
+ serialize: (value?: Tag.Oracle | undefined) => Buffer;
552
+ deserialize: (value: Buffer) => Tag.Oracle;
553
+ }], readonly ["version", {
554
+ serialize: (value?: 1 | undefined) => Buffer;
555
+ deserialize: (value: Buffer) => 1;
556
+ }], readonly ["accountId", {
557
+ serialize: (value: `ak_${string}`) => Buffer;
558
+ deserialize: (value: Buffer) => `ak_${string}`;
559
+ }], readonly ["queryFormat", {
560
+ serialize(string: string): Buffer;
561
+ deserialize(buffer: Buffer): string;
562
+ }], readonly ["responseFormat", {
563
+ serialize(string: string): Buffer;
564
+ deserialize(buffer: Buffer): string;
565
+ }], readonly ["queryFee", {
566
+ serializeAettos(value: string | undefined): string;
567
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
568
+ deserialize(value: Buffer): string;
569
+ }], readonly ["oracleTtlValue", {
503
570
  serialize(value: number): Buffer;
504
571
  deserialize(value: Buffer): number;
505
- }], readonly ["VSN", {
506
- serialize(value: number): Buffer;
507
- deserialize(value: Buffer): number;
508
- }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
572
+ }], readonly ["abiVersion", {
573
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
574
+ tag: Tag;
575
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
576
+ }): Buffer;
577
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
578
+ }]];
579
+ };
580
+ readonly 22: {
581
+ readonly 1: readonly [readonly ["tag", {
582
+ serialize: (value?: Tag.OracleRegisterTx | undefined) => Buffer;
583
+ deserialize: (value: Buffer) => Tag.OracleRegisterTx;
584
+ }], readonly ["version", {
585
+ serialize: (value?: 1 | undefined) => Buffer;
586
+ deserialize: (value: Buffer) => 1;
587
+ }], readonly ["accountId", {
588
+ serialize: (value: `ak_${string}`) => Buffer;
589
+ deserialize: (value: Buffer) => `ak_${string}`;
590
+ }], readonly ["nonce", {
509
591
  serialize(value: number): Buffer;
510
592
  deserialize(value: Buffer): number;
511
- }], readonly ["queryFormat", FIELD_TYPES.string], readonly ["responseFormat", FIELD_TYPES.string], readonly ["queryFee", {
593
+ }], readonly ["queryFormat", {
594
+ serialize(string: string): Buffer;
595
+ deserialize(buffer: Buffer): string;
596
+ }], readonly ["responseFormat", {
597
+ serialize(string: string): Buffer;
598
+ deserialize(buffer: Buffer): string;
599
+ }], readonly ["queryFee", {
512
600
  serializeAettos(value: string | undefined): string;
513
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
514
- serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
601
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
515
602
  deserialize(value: Buffer): string;
516
- }], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", {
603
+ }], readonly ["oracleTtlType", {
604
+ serialize: (value: ORACLE_TTL_TYPES) => Buffer;
605
+ deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
606
+ }], readonly ["oracleTtlValue", {
517
607
  serialize(value: number): Buffer;
518
608
  deserialize(value: Buffer): number;
519
609
  }], readonly ["fee", {
520
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
521
- txType: Tag;
522
- rebuildTx: (params: any) => any;
523
- _computingMinFee?: string | undefined;
610
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
611
+ rebuildTx: (params: any) => `tx_${string}`;
612
+ unpackTx: typeof import(".").unpackTx;
613
+ buildTx: typeof import(".").buildTx;
614
+ _computingMinFee?: BigNumber | undefined;
615
+ _pickBiggerFee?: boolean | undefined;
524
616
  }): string;
525
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
526
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
617
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
527
618
  deserialize(value: Buffer): string;
528
619
  }], readonly ["ttl", {
529
620
  serialize(value: number): Buffer;
530
621
  deserialize(value: Buffer): number;
531
- }], readonly ["abiVersion", FIELD_TYPES.abiVersion]];
622
+ }], readonly ["abiVersion", {
623
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
624
+ tag: Tag;
625
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
626
+ }): Buffer;
627
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
628
+ }]];
532
629
  };
533
630
  readonly 25: {
534
631
  readonly 1: readonly [readonly ["tag", {
632
+ serialize: (value?: Tag.OracleExtendTx | undefined) => Buffer;
633
+ deserialize: (value: Buffer) => Tag.OracleExtendTx;
634
+ }], readonly ["version", {
635
+ serialize: (value?: 1 | undefined) => Buffer;
636
+ deserialize: (value: Buffer) => 1;
637
+ }], readonly ["oracleId", {
638
+ serialize: (value: `ok_${string}` | `nm_${string}`) => Buffer;
639
+ deserialize: (value: Buffer) => `ok_${string}` | `nm_${string}`;
640
+ }], readonly ["nonce", {
535
641
  serialize(value: number): Buffer;
536
642
  deserialize(value: Buffer): number;
537
- }], readonly ["VSN", {
538
- serialize(value: number): Buffer;
539
- deserialize(value: Buffer): number;
540
- }], readonly ["oracleId", FIELD_TYPES.id, readonly [Encoded.Encoding.OracleAddress, Encoded.Encoding.Name]], readonly ["nonce", {
541
- serialize(value: number): Buffer;
542
- deserialize(value: Buffer): number;
543
- }], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", {
643
+ }], readonly ["oracleTtlType", {
644
+ serialize: (value: ORACLE_TTL_TYPES) => Buffer;
645
+ deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
646
+ }], readonly ["oracleTtlValue", {
544
647
  serialize(value: number): Buffer;
545
648
  deserialize(value: Buffer): number;
546
649
  }], readonly ["fee", {
547
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
548
- txType: Tag;
549
- rebuildTx: (params: any) => any;
550
- _computingMinFee?: string | undefined;
650
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
651
+ rebuildTx: (params: any) => `tx_${string}`;
652
+ unpackTx: typeof import(".").unpackTx;
653
+ buildTx: typeof import(".").buildTx;
654
+ _computingMinFee?: BigNumber | undefined;
655
+ _pickBiggerFee?: boolean | undefined;
551
656
  }): string;
552
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
553
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
657
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
554
658
  deserialize(value: Buffer): string;
555
659
  }], readonly ["ttl", {
556
660
  serialize(value: number): Buffer;
@@ -559,33 +663,48 @@ export declare const TX_SCHEMA: {
559
663
  };
560
664
  readonly 23: {
561
665
  readonly 1: readonly [readonly ["tag", {
666
+ serialize: (value?: Tag.OracleQueryTx | undefined) => Buffer;
667
+ deserialize: (value: Buffer) => Tag.OracleQueryTx;
668
+ }], readonly ["version", {
669
+ serialize: (value?: 1 | undefined) => Buffer;
670
+ deserialize: (value: Buffer) => 1;
671
+ }], readonly ["senderId", {
672
+ serialize: (value: `ak_${string}`) => Buffer;
673
+ deserialize: (value: Buffer) => `ak_${string}`;
674
+ }], readonly ["nonce", {
562
675
  serialize(value: number): Buffer;
563
676
  deserialize(value: Buffer): number;
564
- }], readonly ["VSN", {
565
- serialize(value: number): Buffer;
566
- deserialize(value: Buffer): number;
567
- }], readonly ["senderId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
568
- serialize(value: number): Buffer;
569
- deserialize(value: Buffer): number;
570
- }], readonly ["oracleId", FIELD_TYPES.id, readonly [Encoded.Encoding.OracleAddress, Encoded.Encoding.Name]], readonly ["query", FIELD_TYPES.string], readonly ["queryFee", {
677
+ }], readonly ["oracleId", {
678
+ serialize: (value: `ok_${string}` | `nm_${string}`) => Buffer;
679
+ deserialize: (value: Buffer) => `ok_${string}` | `nm_${string}`;
680
+ }], readonly ["query", {
681
+ serialize(string: string): Buffer;
682
+ deserialize(buffer: Buffer): string;
683
+ }], readonly ["queryFee", {
571
684
  serializeAettos(value: string | undefined): string;
572
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
573
- serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
685
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
574
686
  deserialize(value: Buffer): string;
575
- }], readonly ["queryTtlType", FIELD_TYPES.ttlType], readonly ["queryTtlValue", {
687
+ }], readonly ["queryTtlType", {
688
+ serialize: (value: ORACLE_TTL_TYPES) => Buffer;
689
+ deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
690
+ }], readonly ["queryTtlValue", {
576
691
  serialize(value: number): Buffer;
577
692
  deserialize(value: Buffer): number;
578
- }], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", {
693
+ }], readonly ["responseTtlType", {
694
+ serialize: (value: ORACLE_TTL_TYPES) => Buffer;
695
+ deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
696
+ }], readonly ["responseTtlValue", {
579
697
  serialize(value: number): Buffer;
580
698
  deserialize(value: Buffer): number;
581
699
  }], readonly ["fee", {
582
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
583
- txType: Tag;
584
- rebuildTx: (params: any) => any;
585
- _computingMinFee?: string | undefined;
700
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
701
+ rebuildTx: (params: any) => `tx_${string}`;
702
+ unpackTx: typeof import(".").unpackTx;
703
+ buildTx: typeof import(".").buildTx;
704
+ _computingMinFee?: BigNumber | undefined;
705
+ _pickBiggerFee?: boolean | undefined;
586
706
  }): string;
587
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
588
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
707
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
589
708
  deserialize(value: Buffer): string;
590
709
  }], readonly ["ttl", {
591
710
  serialize(value: number): Buffer;
@@ -594,25 +713,38 @@ export declare const TX_SCHEMA: {
594
713
  };
595
714
  readonly 24: {
596
715
  readonly 1: readonly [readonly ["tag", {
716
+ serialize: (value?: Tag.OracleResponseTx | undefined) => Buffer;
717
+ deserialize: (value: Buffer) => Tag.OracleResponseTx;
718
+ }], readonly ["version", {
719
+ serialize: (value?: 1 | undefined) => Buffer;
720
+ deserialize: (value: Buffer) => 1;
721
+ }], readonly ["oracleId", {
722
+ serialize: (value: `ok_${string}`) => Buffer;
723
+ deserialize: (value: Buffer) => `ok_${string}`;
724
+ }], readonly ["nonce", {
597
725
  serialize(value: number): Buffer;
598
726
  deserialize(value: Buffer): number;
599
- }], readonly ["VSN", {
600
- serialize(value: number): Buffer;
601
- deserialize(value: Buffer): number;
602
- }], readonly ["oracleId", FIELD_TYPES.id, Encoded.Encoding.OracleAddress], readonly ["nonce", {
603
- serialize(value: number): Buffer;
604
- deserialize(value: Buffer): number;
605
- }], readonly ["queryId", FIELD_TYPES.binary, Encoded.Encoding.OracleQueryId], readonly ["response", FIELD_TYPES.string], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", {
727
+ }], readonly ["queryId", {
728
+ serialize: (value: `oq_${string}`) => Buffer;
729
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
730
+ }], readonly ["response", {
731
+ serialize(string: string): Buffer;
732
+ deserialize(buffer: Buffer): string;
733
+ }], readonly ["responseTtlType", {
734
+ serialize: (value: ORACLE_TTL_TYPES) => Buffer;
735
+ deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
736
+ }], readonly ["responseTtlValue", {
606
737
  serialize(value: number): Buffer;
607
738
  deserialize(value: Buffer): number;
608
739
  }], readonly ["fee", {
609
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
610
- txType: Tag;
611
- rebuildTx: (params: any) => any;
612
- _computingMinFee?: string | undefined;
740
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
741
+ rebuildTx: (params: any) => `tx_${string}`;
742
+ unpackTx: typeof import(".").unpackTx;
743
+ buildTx: typeof import(".").buildTx;
744
+ _computingMinFee?: BigNumber | undefined;
745
+ _pickBiggerFee?: boolean | undefined;
613
746
  }): string;
614
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
615
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
747
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
616
748
  deserialize(value: Buffer): string;
617
749
  }], readonly ["ttl", {
618
750
  serialize(value: number): Buffer;
@@ -621,64 +753,87 @@ export declare const TX_SCHEMA: {
621
753
  };
622
754
  readonly 50: {
623
755
  readonly 2: readonly [readonly ["tag", {
624
- serialize(value: number): Buffer;
625
- deserialize(value: Buffer): number;
626
- }], readonly ["VSN", {
627
- serialize(value: number): Buffer;
628
- deserialize(value: Buffer): number;
629
- }], readonly ["initiator", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmount", {
630
- serialize(value: import("./field-types/u-int").Int): Buffer;
756
+ serialize: (value?: Tag.ChannelCreateTx | undefined) => Buffer;
757
+ deserialize: (value: Buffer) => Tag.ChannelCreateTx;
758
+ }], readonly ["version", {
759
+ serialize: (value?: 2 | undefined) => Buffer;
760
+ deserialize: (value: Buffer) => 2;
761
+ }], readonly ["initiator", {
762
+ serialize: (value: `ak_${string}`) => Buffer;
763
+ deserialize: (value: Buffer) => `ak_${string}`;
764
+ }], readonly ["initiatorAmount", {
765
+ serialize(value: import("./constants").Int): Buffer;
631
766
  deserialize(value: Buffer): string;
632
- }], readonly ["responder", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["responderAmount", {
633
- serialize(value: import("./field-types/u-int").Int): Buffer;
767
+ }], readonly ["responder", {
768
+ serialize: (value: `ak_${string}`) => Buffer;
769
+ deserialize: (value: Buffer) => `ak_${string}`;
770
+ }], readonly ["responderAmount", {
771
+ serialize(value: import("./constants").Int): Buffer;
634
772
  deserialize(value: Buffer): string;
635
773
  }], readonly ["channelReserve", {
636
- serialize(value: import("./field-types/u-int").Int): Buffer;
774
+ serialize(value: import("./constants").Int): Buffer;
637
775
  deserialize(value: Buffer): string;
638
776
  }], readonly ["lockPeriod", {
639
- serialize(value: import("./field-types/u-int").Int): Buffer;
777
+ serialize(value: import("./constants").Int): Buffer;
640
778
  deserialize(value: Buffer): string;
641
779
  }], readonly ["ttl", {
642
780
  serialize(value: number): Buffer;
643
781
  deserialize(value: Buffer): number;
644
782
  }], readonly ["fee", {
645
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
646
- txType: Tag;
647
- rebuildTx: (params: any) => any;
648
- _computingMinFee?: string | undefined;
783
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
784
+ rebuildTx: (params: any) => `tx_${string}`;
785
+ unpackTx: typeof import(".").unpackTx;
786
+ buildTx: typeof import(".").buildTx;
787
+ _computingMinFee?: BigNumber | undefined;
788
+ _pickBiggerFee?: boolean | undefined;
649
789
  }): string;
650
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
651
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
652
- deserialize(value: Buffer): string;
653
- }], readonly ["initiatorDelegateIds", FIELD_TYPES.string], readonly ["responderDelegateIds", FIELD_TYPES.string], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["nonce", {
790
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
791
+ deserialize(value: Buffer): string;
792
+ }], readonly ["initiatorDelegateIds", {
793
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
794
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
795
+ }], readonly ["responderDelegateIds", {
796
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
797
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
798
+ }], readonly ["stateHash", {
799
+ serialize: (value: `st_${string}`) => Buffer;
800
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
801
+ }], readonly ["nonce", {
654
802
  serialize(value: number): Buffer;
655
803
  deserialize(value: Buffer): number;
656
804
  }]];
657
805
  };
658
806
  readonly 53: {
659
807
  readonly 1: readonly [readonly ["tag", {
660
- serialize(value: number): Buffer;
661
- deserialize(value: Buffer): number;
662
- }], readonly ["VSN", {
663
- serialize(value: number): Buffer;
664
- deserialize(value: Buffer): number;
665
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmountFinal", {
666
- serialize(value: import("./field-types/u-int").Int): Buffer;
808
+ serialize: (value?: Tag.ChannelCloseMutualTx | undefined) => Buffer;
809
+ deserialize: (value: Buffer) => Tag.ChannelCloseMutualTx;
810
+ }], readonly ["version", {
811
+ serialize: (value?: 1 | undefined) => Buffer;
812
+ deserialize: (value: Buffer) => 1;
813
+ }], readonly ["channelId", {
814
+ serialize: (value: `ch_${string}`) => Buffer;
815
+ deserialize: (value: Buffer) => `ch_${string}`;
816
+ }], readonly ["fromId", {
817
+ serialize: (value: `ak_${string}`) => Buffer;
818
+ deserialize: (value: Buffer) => `ak_${string}`;
819
+ }], readonly ["initiatorAmountFinal", {
820
+ serialize(value: import("./constants").Int): Buffer;
667
821
  deserialize(value: Buffer): string;
668
822
  }], readonly ["responderAmountFinal", {
669
- serialize(value: import("./field-types/u-int").Int): Buffer;
823
+ serialize(value: import("./constants").Int): Buffer;
670
824
  deserialize(value: Buffer): string;
671
825
  }], readonly ["ttl", {
672
826
  serialize(value: number): Buffer;
673
827
  deserialize(value: Buffer): number;
674
828
  }], readonly ["fee", {
675
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
676
- txType: Tag;
677
- rebuildTx: (params: any) => any;
678
- _computingMinFee?: string | undefined;
829
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
830
+ rebuildTx: (params: any) => `tx_${string}`;
831
+ unpackTx: typeof import(".").unpackTx;
832
+ buildTx: typeof import(".").buildTx;
833
+ _computingMinFee?: BigNumber | undefined;
834
+ _pickBiggerFee?: boolean | undefined;
679
835
  }): string;
680
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
681
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
836
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
682
837
  deserialize(value: Buffer): string;
683
838
  }], readonly ["nonce", {
684
839
  serialize(value: number): Buffer;
@@ -687,22 +842,39 @@ export declare const TX_SCHEMA: {
687
842
  };
688
843
  readonly 54: {
689
844
  readonly 1: readonly [readonly ["tag", {
690
- serialize(value: number): Buffer;
691
- deserialize(value: Buffer): number;
692
- }], readonly ["VSN", {
693
- serialize(value: number): Buffer;
694
- deserialize(value: Buffer): number;
695
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", {
845
+ serialize: (value?: Tag.ChannelCloseSoloTx | undefined) => Buffer;
846
+ deserialize: (value: Buffer) => Tag.ChannelCloseSoloTx;
847
+ }], readonly ["version", {
848
+ serialize: (value?: 1 | undefined) => Buffer;
849
+ deserialize: (value: Buffer) => 1;
850
+ }], readonly ["channelId", {
851
+ serialize: (value: `ch_${string}`) => Buffer;
852
+ deserialize: (value: Buffer) => `ch_${string}`;
853
+ }], readonly ["fromId", {
854
+ serialize: (value: `ak_${string}`) => Buffer;
855
+ deserialize: (value: Buffer) => `ak_${string}`;
856
+ }], readonly ["payload", {
857
+ serialize: (value: `tx_${string}`) => Buffer;
858
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
859
+ }], readonly ["poi", {
860
+ serialize: (value: any, options: {
861
+ buildTx: typeof import(".").buildTx;
862
+ }) => Buffer;
863
+ deserialize: (value: Buffer, options: {
864
+ unpackTx: typeof import(".").unpackTx;
865
+ }) => any;
866
+ }], readonly ["ttl", {
696
867
  serialize(value: number): Buffer;
697
868
  deserialize(value: Buffer): number;
698
869
  }], readonly ["fee", {
699
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
700
- txType: Tag;
701
- rebuildTx: (params: any) => any;
702
- _computingMinFee?: string | undefined;
870
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
871
+ rebuildTx: (params: any) => `tx_${string}`;
872
+ unpackTx: typeof import(".").unpackTx;
873
+ buildTx: typeof import(".").buildTx;
874
+ _computingMinFee?: BigNumber | undefined;
875
+ _pickBiggerFee?: boolean | undefined;
703
876
  }): string;
704
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
705
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
877
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
706
878
  deserialize(value: Buffer): string;
707
879
  }], readonly ["nonce", {
708
880
  serialize(value: number): Buffer;
@@ -711,22 +883,39 @@ export declare const TX_SCHEMA: {
711
883
  };
712
884
  readonly 55: {
713
885
  readonly 1: readonly [readonly ["tag", {
714
- serialize(value: number): Buffer;
715
- deserialize(value: Buffer): number;
716
- }], readonly ["VSN", {
717
- serialize(value: number): Buffer;
718
- deserialize(value: Buffer): number;
719
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", {
886
+ serialize: (value?: Tag.ChannelSlashTx | undefined) => Buffer;
887
+ deserialize: (value: Buffer) => Tag.ChannelSlashTx;
888
+ }], readonly ["version", {
889
+ serialize: (value?: 1 | undefined) => Buffer;
890
+ deserialize: (value: Buffer) => 1;
891
+ }], readonly ["channelId", {
892
+ serialize: (value: `ch_${string}`) => Buffer;
893
+ deserialize: (value: Buffer) => `ch_${string}`;
894
+ }], readonly ["fromId", {
895
+ serialize: (value: `ak_${string}`) => Buffer;
896
+ deserialize: (value: Buffer) => `ak_${string}`;
897
+ }], readonly ["payload", {
898
+ serialize: (value: `tx_${string}`) => Buffer;
899
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
900
+ }], readonly ["poi", {
901
+ serialize: (value: any, options: {
902
+ buildTx: typeof import(".").buildTx;
903
+ }) => Buffer;
904
+ deserialize: (value: Buffer, options: {
905
+ unpackTx: typeof import(".").unpackTx;
906
+ }) => any;
907
+ }], readonly ["ttl", {
720
908
  serialize(value: number): Buffer;
721
909
  deserialize(value: Buffer): number;
722
910
  }], readonly ["fee", {
723
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
724
- txType: Tag;
725
- rebuildTx: (params: any) => any;
726
- _computingMinFee?: string | undefined;
911
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
912
+ rebuildTx: (params: any) => `tx_${string}`;
913
+ unpackTx: typeof import(".").unpackTx;
914
+ buildTx: typeof import(".").buildTx;
915
+ _computingMinFee?: BigNumber | undefined;
916
+ _pickBiggerFee?: boolean | undefined;
727
917
  }): string;
728
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
729
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
918
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
730
919
  deserialize(value: Buffer): string;
731
920
  }], readonly ["nonce", {
732
921
  serialize(value: number): Buffer;
@@ -735,27 +924,37 @@ export declare const TX_SCHEMA: {
735
924
  };
736
925
  readonly 51: {
737
926
  readonly 1: readonly [readonly ["tag", {
738
- serialize(value: number): Buffer;
739
- deserialize(value: Buffer): number;
740
- }], readonly ["VSN", {
741
- serialize(value: number): Buffer;
742
- deserialize(value: Buffer): number;
743
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
744
- serialize(value: import("./field-types/u-int").Int): Buffer;
927
+ serialize: (value?: Tag.ChannelDepositTx | undefined) => Buffer;
928
+ deserialize: (value: Buffer) => Tag.ChannelDepositTx;
929
+ }], readonly ["version", {
930
+ serialize: (value?: 1 | undefined) => Buffer;
931
+ deserialize: (value: Buffer) => 1;
932
+ }], readonly ["channelId", {
933
+ serialize: (value: `ch_${string}`) => Buffer;
934
+ deserialize: (value: Buffer) => `ch_${string}`;
935
+ }], readonly ["fromId", {
936
+ serialize: (value: `ak_${string}`) => Buffer;
937
+ deserialize: (value: Buffer) => `ak_${string}`;
938
+ }], readonly ["amount", {
939
+ serialize(value: import("./constants").Int): Buffer;
745
940
  deserialize(value: Buffer): string;
746
941
  }], readonly ["ttl", {
747
942
  serialize(value: number): Buffer;
748
943
  deserialize(value: Buffer): number;
749
944
  }], readonly ["fee", {
750
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
751
- txType: Tag;
752
- rebuildTx: (params: any) => any;
753
- _computingMinFee?: string | undefined;
945
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
946
+ rebuildTx: (params: any) => `tx_${string}`;
947
+ unpackTx: typeof import(".").unpackTx;
948
+ buildTx: typeof import(".").buildTx;
949
+ _computingMinFee?: BigNumber | undefined;
950
+ _pickBiggerFee?: boolean | undefined;
754
951
  }): string;
755
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
756
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
952
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
757
953
  deserialize(value: Buffer): string;
758
- }], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", {
954
+ }], readonly ["stateHash", {
955
+ serialize: (value: `st_${string}`) => Buffer;
956
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
957
+ }], readonly ["round", {
759
958
  serialize(value: number): Buffer;
760
959
  deserialize(value: Buffer): number;
761
960
  }], readonly ["nonce", {
@@ -765,27 +964,37 @@ export declare const TX_SCHEMA: {
765
964
  };
766
965
  readonly 52: {
767
966
  readonly 1: readonly [readonly ["tag", {
768
- serialize(value: number): Buffer;
769
- deserialize(value: Buffer): number;
770
- }], readonly ["VSN", {
771
- serialize(value: number): Buffer;
772
- deserialize(value: Buffer): number;
773
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["toId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
774
- serialize(value: import("./field-types/u-int").Int): Buffer;
967
+ serialize: (value?: Tag.ChannelWithdrawTx | undefined) => Buffer;
968
+ deserialize: (value: Buffer) => Tag.ChannelWithdrawTx;
969
+ }], readonly ["version", {
970
+ serialize: (value?: 1 | undefined) => Buffer;
971
+ deserialize: (value: Buffer) => 1;
972
+ }], readonly ["channelId", {
973
+ serialize: (value: `ch_${string}`) => Buffer;
974
+ deserialize: (value: Buffer) => `ch_${string}`;
975
+ }], readonly ["toId", {
976
+ serialize: (value: `ak_${string}`) => Buffer;
977
+ deserialize: (value: Buffer) => `ak_${string}`;
978
+ }], readonly ["amount", {
979
+ serialize(value: import("./constants").Int): Buffer;
775
980
  deserialize(value: Buffer): string;
776
981
  }], readonly ["ttl", {
777
982
  serialize(value: number): Buffer;
778
983
  deserialize(value: Buffer): number;
779
984
  }], readonly ["fee", {
780
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
781
- txType: Tag;
782
- rebuildTx: (params: any) => any;
783
- _computingMinFee?: string | undefined;
985
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
986
+ rebuildTx: (params: any) => `tx_${string}`;
987
+ unpackTx: typeof import(".").unpackTx;
988
+ buildTx: typeof import(".").buildTx;
989
+ _computingMinFee?: BigNumber | undefined;
990
+ _pickBiggerFee?: boolean | undefined;
784
991
  }): string;
785
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
786
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
992
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
787
993
  deserialize(value: Buffer): string;
788
- }], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", {
994
+ }], readonly ["stateHash", {
995
+ serialize: (value: `st_${string}`) => Buffer;
996
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
997
+ }], readonly ["round", {
789
998
  serialize(value: number): Buffer;
790
999
  deserialize(value: Buffer): number;
791
1000
  }], readonly ["nonce", {
@@ -795,28 +1004,35 @@ export declare const TX_SCHEMA: {
795
1004
  };
796
1005
  readonly 56: {
797
1006
  readonly 1: readonly [readonly ["tag", {
798
- serialize(value: number): Buffer;
799
- deserialize(value: Buffer): number;
800
- }], readonly ["VSN", {
801
- serialize(value: number): Buffer;
802
- deserialize(value: Buffer): number;
803
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmountFinal", {
804
- serialize(value: import("./field-types/u-int").Int): Buffer;
1007
+ serialize: (value?: Tag.ChannelSettleTx | undefined) => Buffer;
1008
+ deserialize: (value: Buffer) => Tag.ChannelSettleTx;
1009
+ }], readonly ["version", {
1010
+ serialize: (value?: 1 | undefined) => Buffer;
1011
+ deserialize: (value: Buffer) => 1;
1012
+ }], readonly ["channelId", {
1013
+ serialize: (value: `ch_${string}`) => Buffer;
1014
+ deserialize: (value: Buffer) => `ch_${string}`;
1015
+ }], readonly ["fromId", {
1016
+ serialize: (value: `ak_${string}`) => Buffer;
1017
+ deserialize: (value: Buffer) => `ak_${string}`;
1018
+ }], readonly ["initiatorAmountFinal", {
1019
+ serialize(value: import("./constants").Int): Buffer;
805
1020
  deserialize(value: Buffer): string;
806
1021
  }], readonly ["responderAmountFinal", {
807
- serialize(value: import("./field-types/u-int").Int): Buffer;
1022
+ serialize(value: import("./constants").Int): Buffer;
808
1023
  deserialize(value: Buffer): string;
809
1024
  }], readonly ["ttl", {
810
1025
  serialize(value: number): Buffer;
811
1026
  deserialize(value: Buffer): number;
812
1027
  }], readonly ["fee", {
813
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
814
- txType: Tag;
815
- rebuildTx: (params: any) => any;
816
- _computingMinFee?: string | undefined;
1028
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1029
+ rebuildTx: (params: any) => `tx_${string}`;
1030
+ unpackTx: typeof import(".").unpackTx;
1031
+ buildTx: typeof import(".").buildTx;
1032
+ _computingMinFee?: BigNumber | undefined;
1033
+ _pickBiggerFee?: boolean | undefined;
817
1034
  }): string;
818
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
819
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1035
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
820
1036
  deserialize(value: Buffer): string;
821
1037
  }], readonly ["nonce", {
822
1038
  serialize(value: number): Buffer;
@@ -825,25 +1041,44 @@ export declare const TX_SCHEMA: {
825
1041
  };
826
1042
  readonly 521: {
827
1043
  readonly 1: readonly [readonly ["tag", {
828
- serialize(value: number): Buffer;
829
- deserialize(value: Buffer): number;
830
- }], readonly ["VSN", {
831
- serialize(value: number): Buffer;
832
- deserialize(value: Buffer): number;
833
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["round", {
834
- serialize(value: number): Buffer;
835
- deserialize(value: Buffer): number;
836
- }], readonly ["update", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["offChainTrees", FIELD_TYPES.stateTree], readonly ["ttl", {
1044
+ serialize: (value?: Tag.ChannelForceProgressTx | undefined) => Buffer;
1045
+ deserialize: (value: Buffer) => Tag.ChannelForceProgressTx;
1046
+ }], readonly ["version", {
1047
+ serialize: (value?: 1 | undefined) => Buffer;
1048
+ deserialize: (value: Buffer) => 1;
1049
+ }], readonly ["channelId", {
1050
+ serialize: (value: `ch_${string}`) => Buffer;
1051
+ deserialize: (value: Buffer) => `ch_${string}`;
1052
+ }], readonly ["fromId", {
1053
+ serialize: (value: `ak_${string}`) => Buffer;
1054
+ deserialize: (value: Buffer) => `ak_${string}`;
1055
+ }], readonly ["payload", {
1056
+ serialize: (value: `tx_${string}`) => Buffer;
1057
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1058
+ }], readonly ["round", {
1059
+ serialize(value: number): Buffer;
1060
+ deserialize(value: Buffer): number;
1061
+ }], readonly ["update", {
1062
+ serialize: (value: `cb_${string}`) => Buffer;
1063
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1064
+ }], readonly ["stateHash", {
1065
+ serialize: (value: `st_${string}`) => Buffer;
1066
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1067
+ }], readonly ["offChainTrees", {
1068
+ serialize: (value: `ss_${string}`) => Buffer;
1069
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1070
+ }], readonly ["ttl", {
837
1071
  serialize(value: number): Buffer;
838
1072
  deserialize(value: Buffer): number;
839
1073
  }], readonly ["fee", {
840
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
841
- txType: Tag;
842
- rebuildTx: (params: any) => any;
843
- _computingMinFee?: string | undefined;
1074
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1075
+ rebuildTx: (params: any) => `tx_${string}`;
1076
+ unpackTx: typeof import(".").unpackTx;
1077
+ buildTx: typeof import(".").buildTx;
1078
+ _computingMinFee?: BigNumber | undefined;
1079
+ _pickBiggerFee?: boolean | undefined;
844
1080
  }): string;
845
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
846
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1081
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
847
1082
  deserialize(value: Buffer): string;
848
1083
  }], readonly ["nonce", {
849
1084
  serialize(value: number): Buffer;
@@ -852,67 +1087,104 @@ export declare const TX_SCHEMA: {
852
1087
  };
853
1088
  readonly 57: {
854
1089
  readonly 2: readonly [readonly ["tag", {
855
- serialize(value: number): Buffer;
856
- deserialize(value: Buffer): number;
857
- }], readonly ["VSN", {
858
- serialize(value: number): Buffer;
859
- deserialize(value: Buffer): number;
860
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["round", {
861
- serialize(value: number): Buffer;
862
- deserialize(value: Buffer): number;
863
- }], readonly ["stateHash", FIELD_TYPES.binary, "st"]];
1090
+ serialize: (value?: Tag.ChannelOffChainTx | undefined) => Buffer;
1091
+ deserialize: (value: Buffer) => Tag.ChannelOffChainTx;
1092
+ }], readonly ["version", {
1093
+ serialize: (value?: 2 | undefined) => Buffer;
1094
+ deserialize: (value: Buffer) => 2;
1095
+ }], readonly ["channelId", {
1096
+ serialize: (value: `ch_${string}`) => Buffer;
1097
+ deserialize: (value: Buffer) => `ch_${string}`;
1098
+ }], readonly ["round", {
1099
+ serialize(value: number): Buffer;
1100
+ deserialize(value: Buffer): number;
1101
+ }], readonly ["stateHash", {
1102
+ serialize: (value: `st_${string}`) => Buffer;
1103
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1104
+ }]];
864
1105
  };
865
1106
  readonly 58: {
866
1107
  readonly 3: readonly [readonly ["tag", {
867
- serialize(value: number): Buffer;
868
- deserialize(value: Buffer): number;
869
- }], readonly ["VSN", {
870
- serialize(value: number): Buffer;
871
- deserialize(value: Buffer): number;
872
- }], readonly ["initiator", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["responder", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["channelAmount", {
873
- serialize(value: import("./field-types/u-int").Int): Buffer;
1108
+ serialize: (value?: Tag.Channel | undefined) => Buffer;
1109
+ deserialize: (value: Buffer) => Tag.Channel;
1110
+ }], readonly ["version", {
1111
+ serialize: (value?: 3 | undefined) => Buffer;
1112
+ deserialize: (value: Buffer) => 3;
1113
+ }], readonly ["initiator", {
1114
+ serialize: (value: `ak_${string}`) => Buffer;
1115
+ deserialize: (value: Buffer) => `ak_${string}`;
1116
+ }], readonly ["responder", {
1117
+ serialize: (value: `ak_${string}`) => Buffer;
1118
+ deserialize: (value: Buffer) => `ak_${string}`;
1119
+ }], readonly ["channelAmount", {
1120
+ serialize(value: import("./constants").Int): Buffer;
874
1121
  deserialize(value: Buffer): string;
875
1122
  }], readonly ["initiatorAmount", {
876
- serialize(value: import("./field-types/u-int").Int): Buffer;
1123
+ serialize(value: import("./constants").Int): Buffer;
877
1124
  deserialize(value: Buffer): string;
878
1125
  }], readonly ["responderAmount", {
879
- serialize(value: import("./field-types/u-int").Int): Buffer;
1126
+ serialize(value: import("./constants").Int): Buffer;
880
1127
  deserialize(value: Buffer): string;
881
1128
  }], readonly ["channelReserve", {
882
- serialize(value: import("./field-types/u-int").Int): Buffer;
1129
+ serialize(value: import("./constants").Int): Buffer;
883
1130
  deserialize(value: Buffer): string;
884
- }], readonly ["initiatorDelegateIds", FIELD_TYPES.ids], readonly ["responderDelegateIds", FIELD_TYPES.ids], readonly ["stateHash", FIELD_TYPES.hex], readonly ["round", {
1131
+ }], readonly ["initiatorDelegateIds", {
1132
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
1133
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1134
+ }], readonly ["responderDelegateIds", {
1135
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
1136
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1137
+ }], readonly ["stateHash", {
1138
+ serialize: (value: `st_${string}`) => Buffer;
1139
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1140
+ }], readonly ["round", {
885
1141
  serialize(value: number): Buffer;
886
1142
  deserialize(value: Buffer): number;
887
1143
  }], readonly ["soloRound", {
888
- serialize(value: import("./field-types/u-int").Int): Buffer;
1144
+ serialize(value: import("./constants").Int): Buffer;
889
1145
  deserialize(value: Buffer): string;
890
1146
  }], readonly ["lockPeriod", {
891
- serialize(value: import("./field-types/u-int").Int): Buffer;
1147
+ serialize(value: import("./constants").Int): Buffer;
892
1148
  deserialize(value: Buffer): string;
893
1149
  }], readonly ["lockedUntil", {
894
- serialize(value: import("./field-types/u-int").Int): Buffer;
895
- deserialize(value: Buffer): string;
896
- }], readonly ["initiatorAuth", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["responderAuth", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
1150
+ serialize(value: import("./constants").Int): Buffer;
1151
+ deserialize(value: Buffer): string;
1152
+ }], readonly ["initiatorAuth", {
1153
+ serialize: (value: `cb_${string}`) => Buffer;
1154
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1155
+ }], readonly ["responderAuth", {
1156
+ serialize: (value: `cb_${string}`) => Buffer;
1157
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1158
+ }]];
897
1159
  };
898
1160
  readonly 59: {
899
1161
  readonly 1: readonly [readonly ["tag", {
900
- serialize(value: number): Buffer;
901
- deserialize(value: Buffer): number;
902
- }], readonly ["VSN", {
903
- serialize(value: number): Buffer;
904
- deserialize(value: Buffer): number;
905
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["ttl", {
1162
+ serialize: (value?: Tag.ChannelSnapshotSoloTx | undefined) => Buffer;
1163
+ deserialize: (value: Buffer) => Tag.ChannelSnapshotSoloTx;
1164
+ }], readonly ["version", {
1165
+ serialize: (value?: 1 | undefined) => Buffer;
1166
+ deserialize: (value: Buffer) => 1;
1167
+ }], readonly ["channelId", {
1168
+ serialize: (value: `ch_${string}`) => Buffer;
1169
+ deserialize: (value: Buffer) => `ch_${string}`;
1170
+ }], readonly ["fromId", {
1171
+ serialize: (value: `ak_${string}`) => Buffer;
1172
+ deserialize: (value: Buffer) => `ak_${string}`;
1173
+ }], readonly ["payload", {
1174
+ serialize: (value: `tx_${string}`) => Buffer;
1175
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1176
+ }], readonly ["ttl", {
906
1177
  serialize(value: number): Buffer;
907
1178
  deserialize(value: Buffer): number;
908
1179
  }], readonly ["fee", {
909
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
910
- txType: Tag;
911
- rebuildTx: (params: any) => any;
912
- _computingMinFee?: string | undefined;
1180
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1181
+ rebuildTx: (params: any) => `tx_${string}`;
1182
+ unpackTx: typeof import(".").unpackTx;
1183
+ buildTx: typeof import(".").buildTx;
1184
+ _computingMinFee?: BigNumber | undefined;
1185
+ _pickBiggerFee?: boolean | undefined;
913
1186
  }): string;
914
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
915
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1187
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
916
1188
  deserialize(value: Buffer): string;
917
1189
  }], readonly ["nonce", {
918
1190
  serialize(value: number): Buffer;
@@ -921,71 +1193,116 @@ export declare const TX_SCHEMA: {
921
1193
  };
922
1194
  readonly 570: {
923
1195
  readonly 1: readonly [readonly ["tag", {
924
- serialize(value: number): Buffer;
925
- deserialize(value: Buffer): number;
926
- }], readonly ["VSN", {
927
- serialize(value: number): Buffer;
928
- deserialize(value: Buffer): number;
929
- }], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["to", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
930
- serialize(value: import("./field-types/u-int").Int): Buffer;
1196
+ serialize: (value?: Tag.ChannelOffChainUpdateTransfer | undefined) => Buffer;
1197
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateTransfer;
1198
+ }], readonly ["version", {
1199
+ serialize: (value?: 1 | undefined) => Buffer;
1200
+ deserialize: (value: Buffer) => 1;
1201
+ }], readonly ["from", {
1202
+ serialize: (value: `ak_${string}`) => Buffer;
1203
+ deserialize: (value: Buffer) => `ak_${string}`;
1204
+ }], readonly ["to", {
1205
+ serialize: (value: `ak_${string}`) => Buffer;
1206
+ deserialize: (value: Buffer) => `ak_${string}`;
1207
+ }], readonly ["amount", {
1208
+ serialize(value: import("./constants").Int): Buffer;
931
1209
  deserialize(value: Buffer): string;
932
1210
  }]];
933
1211
  };
934
1212
  readonly 571: {
935
1213
  readonly 1: readonly [readonly ["tag", {
936
- serialize(value: number): Buffer;
937
- deserialize(value: Buffer): number;
938
- }], readonly ["VSN", {
939
- serialize(value: number): Buffer;
940
- deserialize(value: Buffer): number;
941
- }], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
942
- serialize(value: import("./field-types/u-int").Int): Buffer;
1214
+ serialize: (value?: Tag.ChannelOffChainUpdateDeposit | undefined) => Buffer;
1215
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateDeposit;
1216
+ }], readonly ["version", {
1217
+ serialize: (value?: 1 | undefined) => Buffer;
1218
+ deserialize: (value: Buffer) => 1;
1219
+ }], readonly ["from", {
1220
+ serialize: (value: `ak_${string}`) => Buffer;
1221
+ deserialize: (value: Buffer) => `ak_${string}`;
1222
+ }], readonly ["amount", {
1223
+ serialize(value: import("./constants").Int): Buffer;
943
1224
  deserialize(value: Buffer): string;
944
1225
  }]];
945
1226
  };
946
1227
  readonly 572: {
947
1228
  readonly 1: readonly [readonly ["tag", {
948
- serialize(value: number): Buffer;
949
- deserialize(value: Buffer): number;
950
- }], readonly ["VSN", {
951
- serialize(value: number): Buffer;
952
- deserialize(value: Buffer): number;
953
- }], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
954
- serialize(value: import("./field-types/u-int").Int): Buffer;
1229
+ serialize: (value?: Tag.ChannelOffChainUpdateWithdraw | undefined) => Buffer;
1230
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateWithdraw;
1231
+ }], readonly ["version", {
1232
+ serialize: (value?: 1 | undefined) => Buffer;
1233
+ deserialize: (value: Buffer) => 1;
1234
+ }], readonly ["from", {
1235
+ serialize: (value: `ak_${string}`) => Buffer;
1236
+ deserialize: (value: Buffer) => `ak_${string}`;
1237
+ }], readonly ["amount", {
1238
+ serialize(value: import("./constants").Int): Buffer;
955
1239
  deserialize(value: Buffer): string;
956
1240
  }]];
957
1241
  };
958
1242
  readonly 573: {
959
1243
  readonly 1: readonly [readonly ["tag", {
960
- serialize(value: number): Buffer;
961
- deserialize(value: Buffer): number;
962
- }], readonly ["VSN", {
963
- serialize(value: number): Buffer;
964
- deserialize(value: Buffer): number;
965
- }], readonly ["owner", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["deposit", {
966
- serialize(value: import("./field-types/u-int").Int): Buffer;
1244
+ serialize: (value?: Tag.ChannelOffChainUpdateCreateContract | undefined) => Buffer;
1245
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateCreateContract;
1246
+ }], readonly ["version", {
1247
+ serialize: (value?: 1 | undefined) => Buffer;
1248
+ deserialize: (value: Buffer) => 1;
1249
+ }], readonly ["owner", {
1250
+ serialize: (value: `ak_${string}`) => Buffer;
1251
+ deserialize: (value: Buffer) => `ak_${string}`;
1252
+ }], readonly ["ctVersion", {
1253
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
1254
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
1255
+ }): Buffer;
1256
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
1257
+ }], readonly ["code", {
1258
+ serialize: (value: `cb_${string}`) => Buffer;
1259
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1260
+ }], readonly ["deposit", {
1261
+ serialize(value: import("./constants").Int): Buffer;
967
1262
  deserialize(value: Buffer): string;
968
- }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
1263
+ }], readonly ["callData", {
1264
+ serialize: (value: `cb_${string}`) => Buffer;
1265
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1266
+ }]];
969
1267
  };
970
1268
  readonly 574: {
971
1269
  readonly 1: readonly [readonly ["tag", {
972
- serialize(value: number): Buffer;
973
- deserialize(value: Buffer): number;
974
- }], readonly ["VSN", {
975
- serialize(value: number): Buffer;
976
- deserialize(value: Buffer): number;
977
- }], readonly ["caller", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["contract", FIELD_TYPES.id, Encoded.Encoding.ContractAddress], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["amount", {
978
- serialize(value: import("./field-types/u-int").Int): Buffer;
979
- deserialize(value: Buffer): string;
980
- }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["callStack", FIELD_TYPES.callStack], readonly ["gasPrice", {
1270
+ serialize: (value?: Tag.ChannelOffChainUpdateCallContract | undefined) => Buffer;
1271
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateCallContract;
1272
+ }], readonly ["version", {
1273
+ serialize: (value?: 1 | undefined) => Buffer;
1274
+ deserialize: (value: Buffer) => 1;
1275
+ }], readonly ["caller", {
1276
+ serialize: (value: `ak_${string}`) => Buffer;
1277
+ deserialize: (value: Buffer) => `ak_${string}`;
1278
+ }], readonly ["contract", {
1279
+ serialize: (value: `ct_${string}`) => Buffer;
1280
+ deserialize: (value: Buffer) => `ct_${string}`;
1281
+ }], readonly ["abiVersion", {
1282
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
1283
+ tag: Tag;
1284
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
1285
+ }): Buffer;
1286
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
1287
+ }], readonly ["amount", {
1288
+ serialize(value: import("./constants").Int): Buffer;
1289
+ deserialize(value: Buffer): string;
1290
+ }], readonly ["callData", {
1291
+ serialize: (value: `cb_${string}`) => Buffer;
1292
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
1293
+ }], readonly ["callStack", {
1294
+ serialize(buffer: Uint8Array): Buffer;
1295
+ deserialize(buffer: Buffer): Buffer;
1296
+ }], readonly ["gasPrice", {
981
1297
  serializeAettos(value?: string | undefined): string;
982
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
983
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1298
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
984
1299
  deserialize(value: Buffer): string;
985
1300
  }], readonly ["gasLimit", {
986
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
987
- txType: Tag;
1301
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
1302
+ tag: Tag;
988
1303
  rebuildTx: (params: any) => any;
1304
+ unpackTx: typeof import(".").unpackTx;
1305
+ buildTx: typeof import(".").buildTx;
989
1306
  gasMax: number;
990
1307
  _computingGasLimit?: number | undefined;
991
1308
  }): Buffer;
@@ -994,208 +1311,1591 @@ export declare const TX_SCHEMA: {
994
1311
  };
995
1312
  readonly 575: {
996
1313
  readonly 1: readonly [readonly ["tag", {
997
- serialize(value: number): Buffer;
998
- deserialize(value: Buffer): number;
999
- }], readonly ["VSN", {
1000
- serialize(value: number): Buffer;
1001
- deserialize(value: Buffer): number;
1002
- }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["round", {
1003
- serialize(value: number): Buffer;
1004
- deserialize(value: Buffer): number;
1005
- }], readonly ["role", FIELD_TYPES.string], readonly ["pubkey", FIELD_TYPES.id, Encoded.Encoding.AccountAddress]];
1314
+ serialize: (value?: Tag.ChannelClientReconnectTx | undefined) => Buffer;
1315
+ deserialize: (value: Buffer) => Tag.ChannelClientReconnectTx;
1316
+ }], readonly ["version", {
1317
+ serialize: (value?: 1 | undefined) => Buffer;
1318
+ deserialize: (value: Buffer) => 1;
1319
+ }], readonly ["channelId", {
1320
+ serialize: (value: `ch_${string}`) => Buffer;
1321
+ deserialize: (value: Buffer) => `ch_${string}`;
1322
+ }], readonly ["round", {
1323
+ serialize(value: number): Buffer;
1324
+ deserialize(value: Buffer): number;
1325
+ }], readonly ["role", {
1326
+ serialize(string: string): Buffer;
1327
+ deserialize(buffer: Buffer): string;
1328
+ }], readonly ["pubkey", {
1329
+ serialize: (value: `ak_${string}`) => Buffer;
1330
+ deserialize: (value: Buffer) => `ak_${string}`;
1331
+ }]];
1006
1332
  };
1007
1333
  readonly 60: {
1008
1334
  readonly 1: readonly [readonly ["tag", {
1009
- serialize(value: number): Buffer;
1010
- deserialize(value: Buffer): number;
1011
- }], readonly ["VSN", {
1012
- serialize(value: number): Buffer;
1013
- deserialize(value: Buffer): number;
1014
- }], readonly ["accounts", FIELD_TYPES.mptrees], readonly ["calls", FIELD_TYPES.mptrees], readonly ["channels", FIELD_TYPES.mptrees], readonly ["contracts", FIELD_TYPES.mptrees], readonly ["ns", FIELD_TYPES.mptrees], readonly ["oracles", FIELD_TYPES.mptrees]];
1335
+ serialize: (value?: Tag.TreesPoi | undefined) => Buffer;
1336
+ deserialize: (value: Buffer) => Tag.TreesPoi;
1337
+ }], readonly ["version", {
1338
+ serialize: (value?: 1 | undefined) => Buffer;
1339
+ deserialize: (value: Buffer) => 1;
1340
+ }], readonly ["accounts", {
1341
+ serialize: (value: {
1342
+ readonly "__#3@#rootHash": string;
1343
+ "__#3@#isComplete": boolean;
1344
+ readonly isComplete: boolean;
1345
+ readonly "__#3@#nodes": {
1346
+ [key: string]: Buffer[];
1347
+ };
1348
+ readonly "__#3@#encoding": Encoding.AccountAddress;
1349
+ readonly "__#3@#tag": Tag.Account;
1350
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
1351
+ isEqual(tree: any): boolean;
1352
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
1353
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
1354
+ get(key: `ak_${string}`): RawTxObject<(Partial<Pick<{
1355
+ tag: Tag.Account | undefined;
1356
+ }, "tag">> & Omit<{
1357
+ tag: Tag.Account | undefined;
1358
+ }, "tag"> & Partial<Pick<{
1359
+ nonce: number;
1360
+ }, never>> & Omit<{
1361
+ nonce: number;
1362
+ }, never> & Partial<Pick<{
1363
+ balance: import("./constants").Int;
1364
+ }, never>> & Omit<{
1365
+ balance: import("./constants").Int;
1366
+ }, never> & Partial<Pick<{
1367
+ version: 2 | undefined;
1368
+ }, "version">> & Omit<{
1369
+ version: 2 | undefined;
1370
+ }, "version"> & Partial<Pick<{
1371
+ flags: import("./constants").Int;
1372
+ }, never>> & Omit<{
1373
+ flags: import("./constants").Int;
1374
+ }, never> & Partial<Pick<{
1375
+ gaContract: `ct_${string}` | `nm_${string}`;
1376
+ }, never>> & Omit<{
1377
+ gaContract: `ct_${string}` | `nm_${string}`;
1378
+ }, never> & Partial<Pick<{
1379
+ gaAuthFun: `cb_${string}`;
1380
+ }, never>> & Omit<{
1381
+ gaAuthFun: `cb_${string}`;
1382
+ }, never>) | (Partial<Pick<{
1383
+ tag: Tag.Account | undefined;
1384
+ }, "tag">> & Omit<{
1385
+ tag: Tag.Account | undefined;
1386
+ }, "tag"> & Partial<Pick<{
1387
+ nonce: number;
1388
+ }, never>> & Omit<{
1389
+ nonce: number;
1390
+ }, never> & Partial<Pick<{
1391
+ balance: import("./constants").Int;
1392
+ }, never>> & Omit<{
1393
+ balance: import("./constants").Int;
1394
+ }, never> & Partial<Pick<{
1395
+ version: 1 | undefined;
1396
+ }, "version">> & Omit<{
1397
+ version: 1 | undefined;
1398
+ }, "version">)> | undefined;
1399
+ "__#3@#entriesRaw"(): [string, Buffer][];
1400
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<(Partial<Pick<{
1401
+ tag: Tag.Account | undefined;
1402
+ }, "tag">> & Omit<{
1403
+ tag: Tag.Account | undefined;
1404
+ }, "tag"> & Partial<Pick<{
1405
+ nonce: number;
1406
+ }, never>> & Omit<{
1407
+ nonce: number;
1408
+ }, never> & Partial<Pick<{
1409
+ balance: import("./constants").Int;
1410
+ }, never>> & Omit<{
1411
+ balance: import("./constants").Int;
1412
+ }, never> & Partial<Pick<{
1413
+ version: 2 | undefined;
1414
+ }, "version">> & Omit<{
1415
+ version: 2 | undefined;
1416
+ }, "version"> & Partial<Pick<{
1417
+ flags: import("./constants").Int;
1418
+ }, never>> & Omit<{
1419
+ flags: import("./constants").Int;
1420
+ }, never> & Partial<Pick<{
1421
+ gaContract: `ct_${string}` | `nm_${string}`;
1422
+ }, never>> & Omit<{
1423
+ gaContract: `ct_${string}` | `nm_${string}`;
1424
+ }, never> & Partial<Pick<{
1425
+ gaAuthFun: `cb_${string}`;
1426
+ }, never>> & Omit<{
1427
+ gaAuthFun: `cb_${string}`;
1428
+ }, never>) | (Partial<Pick<{
1429
+ tag: Tag.Account | undefined;
1430
+ }, "tag">> & Omit<{
1431
+ tag: Tag.Account | undefined;
1432
+ }, "tag"> & Partial<Pick<{
1433
+ nonce: number;
1434
+ }, never>> & Omit<{
1435
+ nonce: number;
1436
+ }, never> & Partial<Pick<{
1437
+ balance: import("./constants").Int;
1438
+ }, never>> & Omit<{
1439
+ balance: import("./constants").Int;
1440
+ }, never> & Partial<Pick<{
1441
+ version: 1 | undefined;
1442
+ }, "version">> & Omit<{
1443
+ version: 1 | undefined;
1444
+ }, "version">)>>;
1445
+ }[], params: unknown) => [Buffer, [Buffer, Buffer[]][]][];
1446
+ deserialize: (value: [Buffer, [Buffer, Buffer[]][]][], params: unknown) => {
1447
+ readonly "__#3@#rootHash": string;
1448
+ "__#3@#isComplete": boolean;
1449
+ readonly isComplete: boolean;
1450
+ readonly "__#3@#nodes": {
1451
+ [key: string]: Buffer[];
1452
+ };
1453
+ readonly "__#3@#encoding": Encoding.AccountAddress;
1454
+ readonly "__#3@#tag": Tag.Account;
1455
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
1456
+ isEqual(tree: any): boolean;
1457
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
1458
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
1459
+ get(key: `ak_${string}`): RawTxObject<(Partial<Pick<{
1460
+ tag: Tag.Account | undefined;
1461
+ }, "tag">> & Omit<{
1462
+ tag: Tag.Account | undefined;
1463
+ }, "tag"> & Partial<Pick<{
1464
+ nonce: number;
1465
+ }, never>> & Omit<{
1466
+ nonce: number;
1467
+ }, never> & Partial<Pick<{
1468
+ balance: import("./constants").Int;
1469
+ }, never>> & Omit<{
1470
+ balance: import("./constants").Int;
1471
+ }, never> & Partial<Pick<{
1472
+ version: 2 | undefined;
1473
+ }, "version">> & Omit<{
1474
+ version: 2 | undefined;
1475
+ }, "version"> & Partial<Pick<{
1476
+ flags: import("./constants").Int;
1477
+ }, never>> & Omit<{
1478
+ flags: import("./constants").Int;
1479
+ }, never> & Partial<Pick<{
1480
+ gaContract: `ct_${string}` | `nm_${string}`;
1481
+ }, never>> & Omit<{
1482
+ gaContract: `ct_${string}` | `nm_${string}`;
1483
+ }, never> & Partial<Pick<{
1484
+ gaAuthFun: `cb_${string}`;
1485
+ }, never>> & Omit<{
1486
+ gaAuthFun: `cb_${string}`;
1487
+ }, never>) | (Partial<Pick<{
1488
+ tag: Tag.Account | undefined;
1489
+ }, "tag">> & Omit<{
1490
+ tag: Tag.Account | undefined;
1491
+ }, "tag"> & Partial<Pick<{
1492
+ nonce: number;
1493
+ }, never>> & Omit<{
1494
+ nonce: number;
1495
+ }, never> & Partial<Pick<{
1496
+ balance: import("./constants").Int;
1497
+ }, never>> & Omit<{
1498
+ balance: import("./constants").Int;
1499
+ }, never> & Partial<Pick<{
1500
+ version: 1 | undefined;
1501
+ }, "version">> & Omit<{
1502
+ version: 1 | undefined;
1503
+ }, "version">)> | undefined;
1504
+ "__#3@#entriesRaw"(): [string, Buffer][];
1505
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<(Partial<Pick<{
1506
+ tag: Tag.Account | undefined;
1507
+ }, "tag">> & Omit<{
1508
+ tag: Tag.Account | undefined;
1509
+ }, "tag"> & Partial<Pick<{
1510
+ nonce: number;
1511
+ }, never>> & Omit<{
1512
+ nonce: number;
1513
+ }, never> & Partial<Pick<{
1514
+ balance: import("./constants").Int;
1515
+ }, never>> & Omit<{
1516
+ balance: import("./constants").Int;
1517
+ }, never> & Partial<Pick<{
1518
+ version: 2 | undefined;
1519
+ }, "version">> & Omit<{
1520
+ version: 2 | undefined;
1521
+ }, "version"> & Partial<Pick<{
1522
+ flags: import("./constants").Int;
1523
+ }, never>> & Omit<{
1524
+ flags: import("./constants").Int;
1525
+ }, never> & Partial<Pick<{
1526
+ gaContract: `ct_${string}` | `nm_${string}`;
1527
+ }, never>> & Omit<{
1528
+ gaContract: `ct_${string}` | `nm_${string}`;
1529
+ }, never> & Partial<Pick<{
1530
+ gaAuthFun: `cb_${string}`;
1531
+ }, never>> & Omit<{
1532
+ gaAuthFun: `cb_${string}`;
1533
+ }, never>) | (Partial<Pick<{
1534
+ tag: Tag.Account | undefined;
1535
+ }, "tag">> & Omit<{
1536
+ tag: Tag.Account | undefined;
1537
+ }, "tag"> & Partial<Pick<{
1538
+ nonce: number;
1539
+ }, never>> & Omit<{
1540
+ nonce: number;
1541
+ }, never> & Partial<Pick<{
1542
+ balance: import("./constants").Int;
1543
+ }, never>> & Omit<{
1544
+ balance: import("./constants").Int;
1545
+ }, never> & Partial<Pick<{
1546
+ version: 1 | undefined;
1547
+ }, "version">> & Omit<{
1548
+ version: 1 | undefined;
1549
+ }, "version">)>>;
1550
+ }[];
1551
+ }], readonly ["calls", {
1552
+ serialize: (value: {
1553
+ readonly "__#3@#rootHash": string;
1554
+ "__#3@#isComplete": boolean;
1555
+ readonly isComplete: boolean;
1556
+ readonly "__#3@#nodes": {
1557
+ [key: string]: Buffer[];
1558
+ };
1559
+ readonly "__#3@#encoding": Encoding.Bytearray;
1560
+ readonly "__#3@#tag": Tag.ContractCall;
1561
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
1562
+ isEqual(tree: any): boolean;
1563
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
1564
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
1565
+ get(key: `ba_${string}`): RawTxObject<Partial<Pick<{
1566
+ version: 1 | undefined;
1567
+ }, "version">> & Omit<{
1568
+ version: 1 | undefined;
1569
+ }, "version"> & Partial<Pick<{
1570
+ gasPrice: import("./constants").Int | undefined;
1571
+ }, "gasPrice">> & Omit<{
1572
+ gasPrice: import("./constants").Int | undefined;
1573
+ }, "gasPrice"> & Partial<Pick<{
1574
+ callerId: `ak_${string}`;
1575
+ }, never>> & Omit<{
1576
+ callerId: `ak_${string}`;
1577
+ }, never> & Partial<Pick<{
1578
+ tag: Tag.ContractCall | undefined;
1579
+ }, "tag">> & Omit<{
1580
+ tag: Tag.ContractCall | undefined;
1581
+ }, "tag"> & Partial<Pick<{
1582
+ callerNonce: number;
1583
+ }, never>> & Omit<{
1584
+ callerNonce: number;
1585
+ }, never> & Partial<Pick<{
1586
+ height: number;
1587
+ }, never>> & Omit<{
1588
+ height: number;
1589
+ }, never> & Partial<Pick<{
1590
+ contractId: `ct_${string}`;
1591
+ }, never>> & Omit<{
1592
+ contractId: `ct_${string}`;
1593
+ }, never> & Partial<Pick<{
1594
+ gasUsed: number;
1595
+ }, never>> & Omit<{
1596
+ gasUsed: number;
1597
+ }, never> & Partial<Pick<{
1598
+ returnValue: `cb_${string}`;
1599
+ }, never>> & Omit<{
1600
+ returnValue: `cb_${string}`;
1601
+ }, never> & Partial<Pick<{
1602
+ returnType: CallReturnType;
1603
+ }, never>> & Omit<{
1604
+ returnType: CallReturnType;
1605
+ }, never> & Partial<Pick<{
1606
+ log: Uint8Array;
1607
+ }, never>> & Omit<{
1608
+ log: Uint8Array;
1609
+ }, never>> | undefined;
1610
+ "__#3@#entriesRaw"(): [string, Buffer][];
1611
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
1612
+ version: 1 | undefined;
1613
+ }, "version">> & Omit<{
1614
+ version: 1 | undefined;
1615
+ }, "version"> & Partial<Pick<{
1616
+ gasPrice: import("./constants").Int | undefined;
1617
+ }, "gasPrice">> & Omit<{
1618
+ gasPrice: import("./constants").Int | undefined;
1619
+ }, "gasPrice"> & Partial<Pick<{
1620
+ callerId: `ak_${string}`;
1621
+ }, never>> & Omit<{
1622
+ callerId: `ak_${string}`;
1623
+ }, never> & Partial<Pick<{
1624
+ tag: Tag.ContractCall | undefined;
1625
+ }, "tag">> & Omit<{
1626
+ tag: Tag.ContractCall | undefined;
1627
+ }, "tag"> & Partial<Pick<{
1628
+ callerNonce: number;
1629
+ }, never>> & Omit<{
1630
+ callerNonce: number;
1631
+ }, never> & Partial<Pick<{
1632
+ height: number;
1633
+ }, never>> & Omit<{
1634
+ height: number;
1635
+ }, never> & Partial<Pick<{
1636
+ contractId: `ct_${string}`;
1637
+ }, never>> & Omit<{
1638
+ contractId: `ct_${string}`;
1639
+ }, never> & Partial<Pick<{
1640
+ gasUsed: number;
1641
+ }, never>> & Omit<{
1642
+ gasUsed: number;
1643
+ }, never> & Partial<Pick<{
1644
+ returnValue: `cb_${string}`;
1645
+ }, never>> & Omit<{
1646
+ returnValue: `cb_${string}`;
1647
+ }, never> & Partial<Pick<{
1648
+ returnType: CallReturnType;
1649
+ }, never>> & Omit<{
1650
+ returnType: CallReturnType;
1651
+ }, never> & Partial<Pick<{
1652
+ log: Uint8Array;
1653
+ }, never>> & Omit<{
1654
+ log: Uint8Array;
1655
+ }, never>>>;
1656
+ }[], params: unknown) => [Buffer, [Buffer, Buffer[]][]][];
1657
+ deserialize: (value: [Buffer, [Buffer, Buffer[]][]][], params: unknown) => {
1658
+ readonly "__#3@#rootHash": string;
1659
+ "__#3@#isComplete": boolean;
1660
+ readonly isComplete: boolean;
1661
+ readonly "__#3@#nodes": {
1662
+ [key: string]: Buffer[];
1663
+ };
1664
+ readonly "__#3@#encoding": Encoding.Bytearray;
1665
+ readonly "__#3@#tag": Tag.ContractCall;
1666
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
1667
+ isEqual(tree: any): boolean;
1668
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
1669
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
1670
+ get(key: `ba_${string}`): RawTxObject<Partial<Pick<{
1671
+ version: 1 | undefined;
1672
+ }, "version">> & Omit<{
1673
+ version: 1 | undefined;
1674
+ }, "version"> & Partial<Pick<{
1675
+ gasPrice: import("./constants").Int | undefined;
1676
+ }, "gasPrice">> & Omit<{
1677
+ gasPrice: import("./constants").Int | undefined;
1678
+ }, "gasPrice"> & Partial<Pick<{
1679
+ callerId: `ak_${string}`;
1680
+ }, never>> & Omit<{
1681
+ callerId: `ak_${string}`;
1682
+ }, never> & Partial<Pick<{
1683
+ tag: Tag.ContractCall | undefined;
1684
+ }, "tag">> & Omit<{
1685
+ tag: Tag.ContractCall | undefined;
1686
+ }, "tag"> & Partial<Pick<{
1687
+ callerNonce: number;
1688
+ }, never>> & Omit<{
1689
+ callerNonce: number;
1690
+ }, never> & Partial<Pick<{
1691
+ height: number;
1692
+ }, never>> & Omit<{
1693
+ height: number;
1694
+ }, never> & Partial<Pick<{
1695
+ contractId: `ct_${string}`;
1696
+ }, never>> & Omit<{
1697
+ contractId: `ct_${string}`;
1698
+ }, never> & Partial<Pick<{
1699
+ gasUsed: number;
1700
+ }, never>> & Omit<{
1701
+ gasUsed: number;
1702
+ }, never> & Partial<Pick<{
1703
+ returnValue: `cb_${string}`;
1704
+ }, never>> & Omit<{
1705
+ returnValue: `cb_${string}`;
1706
+ }, never> & Partial<Pick<{
1707
+ returnType: CallReturnType;
1708
+ }, never>> & Omit<{
1709
+ returnType: CallReturnType;
1710
+ }, never> & Partial<Pick<{
1711
+ log: Uint8Array;
1712
+ }, never>> & Omit<{
1713
+ log: Uint8Array;
1714
+ }, never>> | undefined;
1715
+ "__#3@#entriesRaw"(): [string, Buffer][];
1716
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
1717
+ version: 1 | undefined;
1718
+ }, "version">> & Omit<{
1719
+ version: 1 | undefined;
1720
+ }, "version"> & Partial<Pick<{
1721
+ gasPrice: import("./constants").Int | undefined;
1722
+ }, "gasPrice">> & Omit<{
1723
+ gasPrice: import("./constants").Int | undefined;
1724
+ }, "gasPrice"> & Partial<Pick<{
1725
+ callerId: `ak_${string}`;
1726
+ }, never>> & Omit<{
1727
+ callerId: `ak_${string}`;
1728
+ }, never> & Partial<Pick<{
1729
+ tag: Tag.ContractCall | undefined;
1730
+ }, "tag">> & Omit<{
1731
+ tag: Tag.ContractCall | undefined;
1732
+ }, "tag"> & Partial<Pick<{
1733
+ callerNonce: number;
1734
+ }, never>> & Omit<{
1735
+ callerNonce: number;
1736
+ }, never> & Partial<Pick<{
1737
+ height: number;
1738
+ }, never>> & Omit<{
1739
+ height: number;
1740
+ }, never> & Partial<Pick<{
1741
+ contractId: `ct_${string}`;
1742
+ }, never>> & Omit<{
1743
+ contractId: `ct_${string}`;
1744
+ }, never> & Partial<Pick<{
1745
+ gasUsed: number;
1746
+ }, never>> & Omit<{
1747
+ gasUsed: number;
1748
+ }, never> & Partial<Pick<{
1749
+ returnValue: `cb_${string}`;
1750
+ }, never>> & Omit<{
1751
+ returnValue: `cb_${string}`;
1752
+ }, never> & Partial<Pick<{
1753
+ returnType: CallReturnType;
1754
+ }, never>> & Omit<{
1755
+ returnType: CallReturnType;
1756
+ }, never> & Partial<Pick<{
1757
+ log: Uint8Array;
1758
+ }, never>> & Omit<{
1759
+ log: Uint8Array;
1760
+ }, never>>>;
1761
+ }[];
1762
+ }], readonly ["channels", {
1763
+ serialize: (value: {
1764
+ readonly "__#3@#rootHash": string;
1765
+ "__#3@#isComplete": boolean;
1766
+ readonly isComplete: boolean;
1767
+ readonly "__#3@#nodes": {
1768
+ [key: string]: Buffer[];
1769
+ };
1770
+ readonly "__#3@#encoding": Encoding.Channel;
1771
+ readonly "__#3@#tag": Tag.Channel;
1772
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
1773
+ isEqual(tree: any): boolean;
1774
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
1775
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
1776
+ get(key: `ch_${string}`): RawTxObject<Partial<Pick<{
1777
+ initiator: `ak_${string}`;
1778
+ }, never>> & Omit<{
1779
+ initiator: `ak_${string}`;
1780
+ }, never> & Partial<Pick<{
1781
+ initiatorAmount: import("./constants").Int;
1782
+ }, never>> & Omit<{
1783
+ initiatorAmount: import("./constants").Int;
1784
+ }, never> & Partial<Pick<{
1785
+ responder: `ak_${string}`;
1786
+ }, never>> & Omit<{
1787
+ responder: `ak_${string}`;
1788
+ }, never> & Partial<Pick<{
1789
+ responderAmount: import("./constants").Int;
1790
+ }, never>> & Omit<{
1791
+ responderAmount: import("./constants").Int;
1792
+ }, never> & Partial<Pick<{
1793
+ channelReserve: import("./constants").Int;
1794
+ }, never>> & Omit<{
1795
+ channelReserve: import("./constants").Int;
1796
+ }, never> & Partial<Pick<{
1797
+ lockPeriod: import("./constants").Int;
1798
+ }, never>> & Omit<{
1799
+ lockPeriod: import("./constants").Int;
1800
+ }, never> & Partial<Pick<{
1801
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1802
+ }, never>> & Omit<{
1803
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1804
+ }, never> & Partial<Pick<{
1805
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1806
+ }, never>> & Omit<{
1807
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1808
+ }, never> & Partial<Pick<{
1809
+ stateHash: `st_${string}`;
1810
+ }, never>> & Omit<{
1811
+ stateHash: `st_${string}`;
1812
+ }, never> & Partial<Pick<{
1813
+ round: number;
1814
+ }, never>> & Omit<{
1815
+ round: number;
1816
+ }, never> & Partial<Pick<{
1817
+ tag: Tag.Channel | undefined;
1818
+ }, "tag">> & Omit<{
1819
+ tag: Tag.Channel | undefined;
1820
+ }, "tag"> & Partial<Pick<{
1821
+ version: 3 | undefined;
1822
+ }, "version">> & Omit<{
1823
+ version: 3 | undefined;
1824
+ }, "version"> & Partial<Pick<{
1825
+ channelAmount: import("./constants").Int;
1826
+ }, never>> & Omit<{
1827
+ channelAmount: import("./constants").Int;
1828
+ }, never> & Partial<Pick<{
1829
+ soloRound: import("./constants").Int;
1830
+ }, never>> & Omit<{
1831
+ soloRound: import("./constants").Int;
1832
+ }, never> & Partial<Pick<{
1833
+ lockedUntil: import("./constants").Int;
1834
+ }, never>> & Omit<{
1835
+ lockedUntil: import("./constants").Int;
1836
+ }, never> & Partial<Pick<{
1837
+ initiatorAuth: `cb_${string}`;
1838
+ }, never>> & Omit<{
1839
+ initiatorAuth: `cb_${string}`;
1840
+ }, never> & Partial<Pick<{
1841
+ responderAuth: `cb_${string}`;
1842
+ }, never>> & Omit<{
1843
+ responderAuth: `cb_${string}`;
1844
+ }, never>> | undefined;
1845
+ "__#3@#entriesRaw"(): [string, Buffer][];
1846
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
1847
+ initiator: `ak_${string}`;
1848
+ }, never>> & Omit<{
1849
+ initiator: `ak_${string}`;
1850
+ }, never> & Partial<Pick<{
1851
+ initiatorAmount: import("./constants").Int;
1852
+ }, never>> & Omit<{
1853
+ initiatorAmount: import("./constants").Int;
1854
+ }, never> & Partial<Pick<{
1855
+ responder: `ak_${string}`;
1856
+ }, never>> & Omit<{
1857
+ responder: `ak_${string}`;
1858
+ }, never> & Partial<Pick<{
1859
+ responderAmount: import("./constants").Int;
1860
+ }, never>> & Omit<{
1861
+ responderAmount: import("./constants").Int;
1862
+ }, never> & Partial<Pick<{
1863
+ channelReserve: import("./constants").Int;
1864
+ }, never>> & Omit<{
1865
+ channelReserve: import("./constants").Int;
1866
+ }, never> & Partial<Pick<{
1867
+ lockPeriod: import("./constants").Int;
1868
+ }, never>> & Omit<{
1869
+ lockPeriod: import("./constants").Int;
1870
+ }, never> & Partial<Pick<{
1871
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1872
+ }, never>> & Omit<{
1873
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1874
+ }, never> & Partial<Pick<{
1875
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1876
+ }, never>> & Omit<{
1877
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1878
+ }, never> & Partial<Pick<{
1879
+ stateHash: `st_${string}`;
1880
+ }, never>> & Omit<{
1881
+ stateHash: `st_${string}`;
1882
+ }, never> & Partial<Pick<{
1883
+ round: number;
1884
+ }, never>> & Omit<{
1885
+ round: number;
1886
+ }, never> & Partial<Pick<{
1887
+ tag: Tag.Channel | undefined;
1888
+ }, "tag">> & Omit<{
1889
+ tag: Tag.Channel | undefined;
1890
+ }, "tag"> & Partial<Pick<{
1891
+ version: 3 | undefined;
1892
+ }, "version">> & Omit<{
1893
+ version: 3 | undefined;
1894
+ }, "version"> & Partial<Pick<{
1895
+ channelAmount: import("./constants").Int;
1896
+ }, never>> & Omit<{
1897
+ channelAmount: import("./constants").Int;
1898
+ }, never> & Partial<Pick<{
1899
+ soloRound: import("./constants").Int;
1900
+ }, never>> & Omit<{
1901
+ soloRound: import("./constants").Int;
1902
+ }, never> & Partial<Pick<{
1903
+ lockedUntil: import("./constants").Int;
1904
+ }, never>> & Omit<{
1905
+ lockedUntil: import("./constants").Int;
1906
+ }, never> & Partial<Pick<{
1907
+ initiatorAuth: `cb_${string}`;
1908
+ }, never>> & Omit<{
1909
+ initiatorAuth: `cb_${string}`;
1910
+ }, never> & Partial<Pick<{
1911
+ responderAuth: `cb_${string}`;
1912
+ }, never>> & Omit<{
1913
+ responderAuth: `cb_${string}`;
1914
+ }, never>>>;
1915
+ }[], params: unknown) => [Buffer, [Buffer, Buffer[]][]][];
1916
+ deserialize: (value: [Buffer, [Buffer, Buffer[]][]][], params: unknown) => {
1917
+ readonly "__#3@#rootHash": string;
1918
+ "__#3@#isComplete": boolean;
1919
+ readonly isComplete: boolean;
1920
+ readonly "__#3@#nodes": {
1921
+ [key: string]: Buffer[];
1922
+ };
1923
+ readonly "__#3@#encoding": Encoding.Channel;
1924
+ readonly "__#3@#tag": Tag.Channel;
1925
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
1926
+ isEqual(tree: any): boolean;
1927
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
1928
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
1929
+ get(key: `ch_${string}`): RawTxObject<Partial<Pick<{
1930
+ initiator: `ak_${string}`;
1931
+ }, never>> & Omit<{
1932
+ initiator: `ak_${string}`;
1933
+ }, never> & Partial<Pick<{
1934
+ initiatorAmount: import("./constants").Int;
1935
+ }, never>> & Omit<{
1936
+ initiatorAmount: import("./constants").Int;
1937
+ }, never> & Partial<Pick<{
1938
+ responder: `ak_${string}`;
1939
+ }, never>> & Omit<{
1940
+ responder: `ak_${string}`;
1941
+ }, never> & Partial<Pick<{
1942
+ responderAmount: import("./constants").Int;
1943
+ }, never>> & Omit<{
1944
+ responderAmount: import("./constants").Int;
1945
+ }, never> & Partial<Pick<{
1946
+ channelReserve: import("./constants").Int;
1947
+ }, never>> & Omit<{
1948
+ channelReserve: import("./constants").Int;
1949
+ }, never> & Partial<Pick<{
1950
+ lockPeriod: import("./constants").Int;
1951
+ }, never>> & Omit<{
1952
+ lockPeriod: import("./constants").Int;
1953
+ }, never> & Partial<Pick<{
1954
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1955
+ }, never>> & Omit<{
1956
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1957
+ }, never> & Partial<Pick<{
1958
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1959
+ }, never>> & Omit<{
1960
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1961
+ }, never> & Partial<Pick<{
1962
+ stateHash: `st_${string}`;
1963
+ }, never>> & Omit<{
1964
+ stateHash: `st_${string}`;
1965
+ }, never> & Partial<Pick<{
1966
+ round: number;
1967
+ }, never>> & Omit<{
1968
+ round: number;
1969
+ }, never> & Partial<Pick<{
1970
+ tag: Tag.Channel | undefined;
1971
+ }, "tag">> & Omit<{
1972
+ tag: Tag.Channel | undefined;
1973
+ }, "tag"> & Partial<Pick<{
1974
+ version: 3 | undefined;
1975
+ }, "version">> & Omit<{
1976
+ version: 3 | undefined;
1977
+ }, "version"> & Partial<Pick<{
1978
+ channelAmount: import("./constants").Int;
1979
+ }, never>> & Omit<{
1980
+ channelAmount: import("./constants").Int;
1981
+ }, never> & Partial<Pick<{
1982
+ soloRound: import("./constants").Int;
1983
+ }, never>> & Omit<{
1984
+ soloRound: import("./constants").Int;
1985
+ }, never> & Partial<Pick<{
1986
+ lockedUntil: import("./constants").Int;
1987
+ }, never>> & Omit<{
1988
+ lockedUntil: import("./constants").Int;
1989
+ }, never> & Partial<Pick<{
1990
+ initiatorAuth: `cb_${string}`;
1991
+ }, never>> & Omit<{
1992
+ initiatorAuth: `cb_${string}`;
1993
+ }, never> & Partial<Pick<{
1994
+ responderAuth: `cb_${string}`;
1995
+ }, never>> & Omit<{
1996
+ responderAuth: `cb_${string}`;
1997
+ }, never>> | undefined;
1998
+ "__#3@#entriesRaw"(): [string, Buffer][];
1999
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
2000
+ initiator: `ak_${string}`;
2001
+ }, never>> & Omit<{
2002
+ initiator: `ak_${string}`;
2003
+ }, never> & Partial<Pick<{
2004
+ initiatorAmount: import("./constants").Int;
2005
+ }, never>> & Omit<{
2006
+ initiatorAmount: import("./constants").Int;
2007
+ }, never> & Partial<Pick<{
2008
+ responder: `ak_${string}`;
2009
+ }, never>> & Omit<{
2010
+ responder: `ak_${string}`;
2011
+ }, never> & Partial<Pick<{
2012
+ responderAmount: import("./constants").Int;
2013
+ }, never>> & Omit<{
2014
+ responderAmount: import("./constants").Int;
2015
+ }, never> & Partial<Pick<{
2016
+ channelReserve: import("./constants").Int;
2017
+ }, never>> & Omit<{
2018
+ channelReserve: import("./constants").Int;
2019
+ }, never> & Partial<Pick<{
2020
+ lockPeriod: import("./constants").Int;
2021
+ }, never>> & Omit<{
2022
+ lockPeriod: import("./constants").Int;
2023
+ }, never> & Partial<Pick<{
2024
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2025
+ }, never>> & Omit<{
2026
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2027
+ }, never> & Partial<Pick<{
2028
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2029
+ }, never>> & Omit<{
2030
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2031
+ }, never> & Partial<Pick<{
2032
+ stateHash: `st_${string}`;
2033
+ }, never>> & Omit<{
2034
+ stateHash: `st_${string}`;
2035
+ }, never> & Partial<Pick<{
2036
+ round: number;
2037
+ }, never>> & Omit<{
2038
+ round: number;
2039
+ }, never> & Partial<Pick<{
2040
+ tag: Tag.Channel | undefined;
2041
+ }, "tag">> & Omit<{
2042
+ tag: Tag.Channel | undefined;
2043
+ }, "tag"> & Partial<Pick<{
2044
+ version: 3 | undefined;
2045
+ }, "version">> & Omit<{
2046
+ version: 3 | undefined;
2047
+ }, "version"> & Partial<Pick<{
2048
+ channelAmount: import("./constants").Int;
2049
+ }, never>> & Omit<{
2050
+ channelAmount: import("./constants").Int;
2051
+ }, never> & Partial<Pick<{
2052
+ soloRound: import("./constants").Int;
2053
+ }, never>> & Omit<{
2054
+ soloRound: import("./constants").Int;
2055
+ }, never> & Partial<Pick<{
2056
+ lockedUntil: import("./constants").Int;
2057
+ }, never>> & Omit<{
2058
+ lockedUntil: import("./constants").Int;
2059
+ }, never> & Partial<Pick<{
2060
+ initiatorAuth: `cb_${string}`;
2061
+ }, never>> & Omit<{
2062
+ initiatorAuth: `cb_${string}`;
2063
+ }, never> & Partial<Pick<{
2064
+ responderAuth: `cb_${string}`;
2065
+ }, never>> & Omit<{
2066
+ responderAuth: `cb_${string}`;
2067
+ }, never>>>;
2068
+ }[];
2069
+ }], readonly ["contracts", {
2070
+ serialize: (value: {
2071
+ readonly "__#3@#rootHash": string;
2072
+ "__#3@#isComplete": boolean;
2073
+ readonly isComplete: boolean;
2074
+ readonly "__#3@#nodes": {
2075
+ [key: string]: Buffer[];
2076
+ };
2077
+ readonly "__#3@#encoding": Encoding.ContractAddress;
2078
+ readonly "__#3@#tag": Tag.Contract;
2079
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2080
+ isEqual(tree: any): boolean;
2081
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
2082
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2083
+ get(key: `ct_${string}`): RawTxObject<Partial<Pick<{
2084
+ version: 1 | undefined;
2085
+ }, "version">> & Omit<{
2086
+ version: 1 | undefined;
2087
+ }, "version"> & Partial<Pick<{
2088
+ tag: Tag.Contract | undefined;
2089
+ }, "tag">> & Omit<{
2090
+ tag: Tag.Contract | undefined;
2091
+ }, "tag"> & Partial<Pick<{
2092
+ owner: `ak_${string}`;
2093
+ }, never>> & Omit<{
2094
+ owner: `ak_${string}`;
2095
+ }, never> & Partial<Pick<{
2096
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2097
+ }, "ctVersion">> & Omit<{
2098
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2099
+ }, "ctVersion"> & Partial<Pick<{
2100
+ code: `cb_${string}`;
2101
+ }, never>> & Omit<{
2102
+ code: `cb_${string}`;
2103
+ }, never> & Partial<Pick<{
2104
+ log: `cb_${string}`;
2105
+ }, never>> & Omit<{
2106
+ log: `cb_${string}`;
2107
+ }, never> & Partial<Pick<{
2108
+ active: boolean;
2109
+ }, never>> & Omit<{
2110
+ active: boolean;
2111
+ }, never> & Partial<Pick<{
2112
+ referers: `ak_${string}`[];
2113
+ }, never>> & Omit<{
2114
+ referers: `ak_${string}`[];
2115
+ }, never> & Partial<Pick<{
2116
+ deposit: import("./constants").Int | undefined;
2117
+ }, "deposit">> & Omit<{
2118
+ deposit: import("./constants").Int | undefined;
2119
+ }, "deposit">> | undefined;
2120
+ "__#3@#entriesRaw"(): [string, Buffer][];
2121
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
2122
+ version: 1 | undefined;
2123
+ }, "version">> & Omit<{
2124
+ version: 1 | undefined;
2125
+ }, "version"> & Partial<Pick<{
2126
+ tag: Tag.Contract | undefined;
2127
+ }, "tag">> & Omit<{
2128
+ tag: Tag.Contract | undefined;
2129
+ }, "tag"> & Partial<Pick<{
2130
+ owner: `ak_${string}`;
2131
+ }, never>> & Omit<{
2132
+ owner: `ak_${string}`;
2133
+ }, never> & Partial<Pick<{
2134
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2135
+ }, "ctVersion">> & Omit<{
2136
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2137
+ }, "ctVersion"> & Partial<Pick<{
2138
+ code: `cb_${string}`;
2139
+ }, never>> & Omit<{
2140
+ code: `cb_${string}`;
2141
+ }, never> & Partial<Pick<{
2142
+ log: `cb_${string}`;
2143
+ }, never>> & Omit<{
2144
+ log: `cb_${string}`;
2145
+ }, never> & Partial<Pick<{
2146
+ active: boolean;
2147
+ }, never>> & Omit<{
2148
+ active: boolean;
2149
+ }, never> & Partial<Pick<{
2150
+ referers: `ak_${string}`[];
2151
+ }, never>> & Omit<{
2152
+ referers: `ak_${string}`[];
2153
+ }, never> & Partial<Pick<{
2154
+ deposit: import("./constants").Int | undefined;
2155
+ }, "deposit">> & Omit<{
2156
+ deposit: import("./constants").Int | undefined;
2157
+ }, "deposit">>>;
2158
+ }[], params: unknown) => [Buffer, [Buffer, Buffer[]][]][];
2159
+ deserialize: (value: [Buffer, [Buffer, Buffer[]][]][], params: unknown) => {
2160
+ readonly "__#3@#rootHash": string;
2161
+ "__#3@#isComplete": boolean;
2162
+ readonly isComplete: boolean;
2163
+ readonly "__#3@#nodes": {
2164
+ [key: string]: Buffer[];
2165
+ };
2166
+ readonly "__#3@#encoding": Encoding.ContractAddress;
2167
+ readonly "__#3@#tag": Tag.Contract;
2168
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2169
+ isEqual(tree: any): boolean;
2170
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
2171
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2172
+ get(key: `ct_${string}`): RawTxObject<Partial<Pick<{
2173
+ version: 1 | undefined;
2174
+ }, "version">> & Omit<{
2175
+ version: 1 | undefined;
2176
+ }, "version"> & Partial<Pick<{
2177
+ tag: Tag.Contract | undefined;
2178
+ }, "tag">> & Omit<{
2179
+ tag: Tag.Contract | undefined;
2180
+ }, "tag"> & Partial<Pick<{
2181
+ owner: `ak_${string}`;
2182
+ }, never>> & Omit<{
2183
+ owner: `ak_${string}`;
2184
+ }, never> & Partial<Pick<{
2185
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2186
+ }, "ctVersion">> & Omit<{
2187
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2188
+ }, "ctVersion"> & Partial<Pick<{
2189
+ code: `cb_${string}`;
2190
+ }, never>> & Omit<{
2191
+ code: `cb_${string}`;
2192
+ }, never> & Partial<Pick<{
2193
+ log: `cb_${string}`;
2194
+ }, never>> & Omit<{
2195
+ log: `cb_${string}`;
2196
+ }, never> & Partial<Pick<{
2197
+ active: boolean;
2198
+ }, never>> & Omit<{
2199
+ active: boolean;
2200
+ }, never> & Partial<Pick<{
2201
+ referers: `ak_${string}`[];
2202
+ }, never>> & Omit<{
2203
+ referers: `ak_${string}`[];
2204
+ }, never> & Partial<Pick<{
2205
+ deposit: import("./constants").Int | undefined;
2206
+ }, "deposit">> & Omit<{
2207
+ deposit: import("./constants").Int | undefined;
2208
+ }, "deposit">> | undefined;
2209
+ "__#3@#entriesRaw"(): [string, Buffer][];
2210
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
2211
+ version: 1 | undefined;
2212
+ }, "version">> & Omit<{
2213
+ version: 1 | undefined;
2214
+ }, "version"> & Partial<Pick<{
2215
+ tag: Tag.Contract | undefined;
2216
+ }, "tag">> & Omit<{
2217
+ tag: Tag.Contract | undefined;
2218
+ }, "tag"> & Partial<Pick<{
2219
+ owner: `ak_${string}`;
2220
+ }, never>> & Omit<{
2221
+ owner: `ak_${string}`;
2222
+ }, never> & Partial<Pick<{
2223
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2224
+ }, "ctVersion">> & Omit<{
2225
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
2226
+ }, "ctVersion"> & Partial<Pick<{
2227
+ code: `cb_${string}`;
2228
+ }, never>> & Omit<{
2229
+ code: `cb_${string}`;
2230
+ }, never> & Partial<Pick<{
2231
+ log: `cb_${string}`;
2232
+ }, never>> & Omit<{
2233
+ log: `cb_${string}`;
2234
+ }, never> & Partial<Pick<{
2235
+ active: boolean;
2236
+ }, never>> & Omit<{
2237
+ active: boolean;
2238
+ }, never> & Partial<Pick<{
2239
+ referers: `ak_${string}`[];
2240
+ }, never>> & Omit<{
2241
+ referers: `ak_${string}`[];
2242
+ }, never> & Partial<Pick<{
2243
+ deposit: import("./constants").Int | undefined;
2244
+ }, "deposit">> & Omit<{
2245
+ deposit: import("./constants").Int | undefined;
2246
+ }, "deposit">>>;
2247
+ }[];
2248
+ }], readonly ["ns", {
2249
+ serialize: (value: {
2250
+ readonly "__#3@#rootHash": string;
2251
+ "__#3@#isComplete": boolean;
2252
+ readonly isComplete: boolean;
2253
+ readonly "__#3@#nodes": {
2254
+ [key: string]: Buffer[];
2255
+ };
2256
+ readonly "__#3@#encoding": Encoding.Name;
2257
+ readonly "__#3@#tag": Tag.Name;
2258
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2259
+ isEqual(tree: any): boolean;
2260
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
2261
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2262
+ get(key: `nm_${string}`): RawTxObject<Partial<Pick<{
2263
+ version: 1 | undefined;
2264
+ }, "version">> & Omit<{
2265
+ version: 1 | undefined;
2266
+ }, "version"> & Partial<Pick<{
2267
+ accountId: `ak_${string}`;
2268
+ }, never>> & Omit<{
2269
+ accountId: `ak_${string}`;
2270
+ }, never> & Partial<Pick<{
2271
+ tag: Tag.Name | undefined;
2272
+ }, "tag">> & Omit<{
2273
+ tag: Tag.Name | undefined;
2274
+ }, "tag"> & Partial<Pick<{
2275
+ nameTtl: number;
2276
+ }, never>> & Omit<{
2277
+ nameTtl: number;
2278
+ }, never> & Partial<Pick<{
2279
+ status: Uint8Array;
2280
+ }, never>> & Omit<{
2281
+ status: Uint8Array;
2282
+ }, never> & Partial<Pick<{
2283
+ clientTtl: number;
2284
+ }, never>> & Omit<{
2285
+ clientTtl: number;
2286
+ }, never> & Partial<Pick<{
2287
+ pointers: (import("../../apis/node").NamePointer & {
2288
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2289
+ })[];
2290
+ }, never>> & Omit<{
2291
+ pointers: (import("../../apis/node").NamePointer & {
2292
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2293
+ })[];
2294
+ }, never>> | undefined;
2295
+ "__#3@#entriesRaw"(): [string, Buffer][];
2296
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
2297
+ version: 1 | undefined;
2298
+ }, "version">> & Omit<{
2299
+ version: 1 | undefined;
2300
+ }, "version"> & Partial<Pick<{
2301
+ accountId: `ak_${string}`;
2302
+ }, never>> & Omit<{
2303
+ accountId: `ak_${string}`;
2304
+ }, never> & Partial<Pick<{
2305
+ tag: Tag.Name | undefined;
2306
+ }, "tag">> & Omit<{
2307
+ tag: Tag.Name | undefined;
2308
+ }, "tag"> & Partial<Pick<{
2309
+ nameTtl: number;
2310
+ }, never>> & Omit<{
2311
+ nameTtl: number;
2312
+ }, never> & Partial<Pick<{
2313
+ status: Uint8Array;
2314
+ }, never>> & Omit<{
2315
+ status: Uint8Array;
2316
+ }, never> & Partial<Pick<{
2317
+ clientTtl: number;
2318
+ }, never>> & Omit<{
2319
+ clientTtl: number;
2320
+ }, never> & Partial<Pick<{
2321
+ pointers: (import("../../apis/node").NamePointer & {
2322
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2323
+ })[];
2324
+ }, never>> & Omit<{
2325
+ pointers: (import("../../apis/node").NamePointer & {
2326
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2327
+ })[];
2328
+ }, never>>>;
2329
+ }[], params: unknown) => [Buffer, [Buffer, Buffer[]][]][];
2330
+ deserialize: (value: [Buffer, [Buffer, Buffer[]][]][], params: unknown) => {
2331
+ readonly "__#3@#rootHash": string;
2332
+ "__#3@#isComplete": boolean;
2333
+ readonly isComplete: boolean;
2334
+ readonly "__#3@#nodes": {
2335
+ [key: string]: Buffer[];
2336
+ };
2337
+ readonly "__#3@#encoding": Encoding.Name;
2338
+ readonly "__#3@#tag": Tag.Name;
2339
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2340
+ isEqual(tree: any): boolean;
2341
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
2342
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2343
+ get(key: `nm_${string}`): RawTxObject<Partial<Pick<{
2344
+ version: 1 | undefined;
2345
+ }, "version">> & Omit<{
2346
+ version: 1 | undefined;
2347
+ }, "version"> & Partial<Pick<{
2348
+ accountId: `ak_${string}`;
2349
+ }, never>> & Omit<{
2350
+ accountId: `ak_${string}`;
2351
+ }, never> & Partial<Pick<{
2352
+ tag: Tag.Name | undefined;
2353
+ }, "tag">> & Omit<{
2354
+ tag: Tag.Name | undefined;
2355
+ }, "tag"> & Partial<Pick<{
2356
+ nameTtl: number;
2357
+ }, never>> & Omit<{
2358
+ nameTtl: number;
2359
+ }, never> & Partial<Pick<{
2360
+ status: Uint8Array;
2361
+ }, never>> & Omit<{
2362
+ status: Uint8Array;
2363
+ }, never> & Partial<Pick<{
2364
+ clientTtl: number;
2365
+ }, never>> & Omit<{
2366
+ clientTtl: number;
2367
+ }, never> & Partial<Pick<{
2368
+ pointers: (import("../../apis/node").NamePointer & {
2369
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2370
+ })[];
2371
+ }, never>> & Omit<{
2372
+ pointers: (import("../../apis/node").NamePointer & {
2373
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2374
+ })[];
2375
+ }, never>> | undefined;
2376
+ "__#3@#entriesRaw"(): [string, Buffer][];
2377
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
2378
+ version: 1 | undefined;
2379
+ }, "version">> & Omit<{
2380
+ version: 1 | undefined;
2381
+ }, "version"> & Partial<Pick<{
2382
+ accountId: `ak_${string}`;
2383
+ }, never>> & Omit<{
2384
+ accountId: `ak_${string}`;
2385
+ }, never> & Partial<Pick<{
2386
+ tag: Tag.Name | undefined;
2387
+ }, "tag">> & Omit<{
2388
+ tag: Tag.Name | undefined;
2389
+ }, "tag"> & Partial<Pick<{
2390
+ nameTtl: number;
2391
+ }, never>> & Omit<{
2392
+ nameTtl: number;
2393
+ }, never> & Partial<Pick<{
2394
+ status: Uint8Array;
2395
+ }, never>> & Omit<{
2396
+ status: Uint8Array;
2397
+ }, never> & Partial<Pick<{
2398
+ clientTtl: number;
2399
+ }, never>> & Omit<{
2400
+ clientTtl: number;
2401
+ }, never> & Partial<Pick<{
2402
+ pointers: (import("../../apis/node").NamePointer & {
2403
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2404
+ })[];
2405
+ }, never>> & Omit<{
2406
+ pointers: (import("../../apis/node").NamePointer & {
2407
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
2408
+ })[];
2409
+ }, never>>>;
2410
+ }[];
2411
+ }], readonly ["oracles", {
2412
+ serialize: (value: {
2413
+ readonly "__#3@#rootHash": string;
2414
+ "__#3@#isComplete": boolean;
2415
+ readonly isComplete: boolean;
2416
+ readonly "__#3@#nodes": {
2417
+ [key: string]: Buffer[];
2418
+ };
2419
+ readonly "__#3@#encoding": Encoding.OracleAddress;
2420
+ readonly "__#3@#tag": Tag.Oracle;
2421
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2422
+ isEqual(tree: any): boolean;
2423
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
2424
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2425
+ get(key: `ok_${string}`): RawTxObject<Partial<Pick<{
2426
+ version: 1 | undefined;
2427
+ }, "version">> & Omit<{
2428
+ version: 1 | undefined;
2429
+ }, "version"> & Partial<Pick<{
2430
+ accountId: `ak_${string}`;
2431
+ }, never>> & Omit<{
2432
+ accountId: `ak_${string}`;
2433
+ }, never> & Partial<Pick<{
2434
+ abiVersion: import("./constants").AbiVersion | undefined;
2435
+ }, "abiVersion">> & Omit<{
2436
+ abiVersion: import("./constants").AbiVersion | undefined;
2437
+ }, "abiVersion"> & Partial<Pick<{
2438
+ tag: Tag.Oracle | undefined;
2439
+ }, "tag">> & Omit<{
2440
+ tag: Tag.Oracle | undefined;
2441
+ }, "tag"> & Partial<Pick<{
2442
+ queryFormat: string;
2443
+ }, never>> & Omit<{
2444
+ queryFormat: string;
2445
+ }, never> & Partial<Pick<{
2446
+ responseFormat: string;
2447
+ }, never>> & Omit<{
2448
+ responseFormat: string;
2449
+ }, never> & Partial<Pick<{
2450
+ queryFee: import("./constants").Int | undefined;
2451
+ }, "queryFee">> & Omit<{
2452
+ queryFee: import("./constants").Int | undefined;
2453
+ }, "queryFee"> & Partial<Pick<{
2454
+ oracleTtlValue: number;
2455
+ }, never>> & Omit<{
2456
+ oracleTtlValue: number;
2457
+ }, never>> | undefined;
2458
+ "__#3@#entriesRaw"(): [string, Buffer][];
2459
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
2460
+ version: 1 | undefined;
2461
+ }, "version">> & Omit<{
2462
+ version: 1 | undefined;
2463
+ }, "version"> & Partial<Pick<{
2464
+ accountId: `ak_${string}`;
2465
+ }, never>> & Omit<{
2466
+ accountId: `ak_${string}`;
2467
+ }, never> & Partial<Pick<{
2468
+ abiVersion: import("./constants").AbiVersion | undefined;
2469
+ }, "abiVersion">> & Omit<{
2470
+ abiVersion: import("./constants").AbiVersion | undefined;
2471
+ }, "abiVersion"> & Partial<Pick<{
2472
+ tag: Tag.Oracle | undefined;
2473
+ }, "tag">> & Omit<{
2474
+ tag: Tag.Oracle | undefined;
2475
+ }, "tag"> & Partial<Pick<{
2476
+ queryFormat: string;
2477
+ }, never>> & Omit<{
2478
+ queryFormat: string;
2479
+ }, never> & Partial<Pick<{
2480
+ responseFormat: string;
2481
+ }, never>> & Omit<{
2482
+ responseFormat: string;
2483
+ }, never> & Partial<Pick<{
2484
+ queryFee: import("./constants").Int | undefined;
2485
+ }, "queryFee">> & Omit<{
2486
+ queryFee: import("./constants").Int | undefined;
2487
+ }, "queryFee"> & Partial<Pick<{
2488
+ oracleTtlValue: number;
2489
+ }, never>> & Omit<{
2490
+ oracleTtlValue: number;
2491
+ }, never>>>;
2492
+ }[], params: unknown) => [Buffer, [Buffer, Buffer[]][]][];
2493
+ deserialize: (value: [Buffer, [Buffer, Buffer[]][]][], params: unknown) => {
2494
+ readonly "__#3@#rootHash": string;
2495
+ "__#3@#isComplete": boolean;
2496
+ readonly isComplete: boolean;
2497
+ readonly "__#3@#nodes": {
2498
+ [key: string]: Buffer[];
2499
+ };
2500
+ readonly "__#3@#encoding": Encoding.OracleAddress;
2501
+ readonly "__#3@#tag": Tag.Oracle;
2502
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2503
+ isEqual(tree: any): boolean;
2504
+ serialize(): [Buffer, [Buffer, Buffer[]][]];
2505
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2506
+ get(key: `ok_${string}`): RawTxObject<Partial<Pick<{
2507
+ version: 1 | undefined;
2508
+ }, "version">> & Omit<{
2509
+ version: 1 | undefined;
2510
+ }, "version"> & Partial<Pick<{
2511
+ accountId: `ak_${string}`;
2512
+ }, never>> & Omit<{
2513
+ accountId: `ak_${string}`;
2514
+ }, never> & Partial<Pick<{
2515
+ abiVersion: import("./constants").AbiVersion | undefined;
2516
+ }, "abiVersion">> & Omit<{
2517
+ abiVersion: import("./constants").AbiVersion | undefined;
2518
+ }, "abiVersion"> & Partial<Pick<{
2519
+ tag: Tag.Oracle | undefined;
2520
+ }, "tag">> & Omit<{
2521
+ tag: Tag.Oracle | undefined;
2522
+ }, "tag"> & Partial<Pick<{
2523
+ queryFormat: string;
2524
+ }, never>> & Omit<{
2525
+ queryFormat: string;
2526
+ }, never> & Partial<Pick<{
2527
+ responseFormat: string;
2528
+ }, never>> & Omit<{
2529
+ responseFormat: string;
2530
+ }, never> & Partial<Pick<{
2531
+ queryFee: import("./constants").Int | undefined;
2532
+ }, "queryFee">> & Omit<{
2533
+ queryFee: import("./constants").Int | undefined;
2534
+ }, "queryFee"> & Partial<Pick<{
2535
+ oracleTtlValue: number;
2536
+ }, never>> & Omit<{
2537
+ oracleTtlValue: number;
2538
+ }, never>> | undefined;
2539
+ "__#3@#entriesRaw"(): [string, Buffer][];
2540
+ toObject(): Record<`kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`, RawTxObject<Partial<Pick<{
2541
+ version: 1 | undefined;
2542
+ }, "version">> & Omit<{
2543
+ version: 1 | undefined;
2544
+ }, "version"> & Partial<Pick<{
2545
+ accountId: `ak_${string}`;
2546
+ }, never>> & Omit<{
2547
+ accountId: `ak_${string}`;
2548
+ }, never> & Partial<Pick<{
2549
+ abiVersion: import("./constants").AbiVersion | undefined;
2550
+ }, "abiVersion">> & Omit<{
2551
+ abiVersion: import("./constants").AbiVersion | undefined;
2552
+ }, "abiVersion"> & Partial<Pick<{
2553
+ tag: Tag.Oracle | undefined;
2554
+ }, "tag">> & Omit<{
2555
+ tag: Tag.Oracle | undefined;
2556
+ }, "tag"> & Partial<Pick<{
2557
+ queryFormat: string;
2558
+ }, never>> & Omit<{
2559
+ queryFormat: string;
2560
+ }, never> & Partial<Pick<{
2561
+ responseFormat: string;
2562
+ }, never>> & Omit<{
2563
+ responseFormat: string;
2564
+ }, never> & Partial<Pick<{
2565
+ queryFee: import("./constants").Int | undefined;
2566
+ }, "queryFee">> & Omit<{
2567
+ queryFee: import("./constants").Int | undefined;
2568
+ }, "queryFee"> & Partial<Pick<{
2569
+ oracleTtlValue: number;
2570
+ }, never>> & Omit<{
2571
+ oracleTtlValue: number;
2572
+ }, never>>>;
2573
+ }[];
2574
+ }]];
1015
2575
  };
1016
2576
  readonly 62: {
1017
2577
  readonly 1: readonly [readonly ["tag", {
1018
- serialize(value: number): Buffer;
1019
- deserialize(value: Buffer): number;
1020
- }], readonly ["VSN", {
1021
- serialize(value: number): Buffer;
1022
- deserialize(value: Buffer): number;
1023
- }], readonly ["contracts", FIELD_TYPES.rlpBinary], readonly ["calls", FIELD_TYPES.rlpBinary], readonly ["channels", FIELD_TYPES.rlpBinary], readonly ["ns", FIELD_TYPES.rlpBinary], readonly ["oracles", FIELD_TYPES.rlpBinary], readonly ["accounts", FIELD_TYPES.rlpBinary]];
2578
+ serialize: (value?: Tag.StateTrees | undefined) => Buffer;
2579
+ deserialize: (value: Buffer) => Tag.StateTrees;
2580
+ }], readonly ["version", {
2581
+ serialize: (value?: 1 | undefined) => Buffer;
2582
+ deserialize: (value: Buffer) => 1;
2583
+ }], readonly ["contracts", {
2584
+ serialize: (value: any, options: {
2585
+ buildTx: typeof import(".").buildTx;
2586
+ }) => Buffer;
2587
+ deserialize: (value: Buffer, options: {
2588
+ unpackTx: typeof import(".").unpackTx;
2589
+ }) => any;
2590
+ }], readonly ["calls", {
2591
+ serialize: (value: any, options: {
2592
+ buildTx: typeof import(".").buildTx;
2593
+ }) => Buffer;
2594
+ deserialize: (value: Buffer, options: {
2595
+ unpackTx: typeof import(".").unpackTx;
2596
+ }) => any;
2597
+ }], readonly ["channels", {
2598
+ serialize: (value: any, options: {
2599
+ buildTx: typeof import(".").buildTx;
2600
+ }) => Buffer;
2601
+ deserialize: (value: Buffer, options: {
2602
+ unpackTx: typeof import(".").unpackTx;
2603
+ }) => any;
2604
+ }], readonly ["ns", {
2605
+ serialize: (value: any, options: {
2606
+ buildTx: typeof import(".").buildTx;
2607
+ }) => Buffer;
2608
+ deserialize: (value: Buffer, options: {
2609
+ unpackTx: typeof import(".").unpackTx;
2610
+ }) => any;
2611
+ }], readonly ["oracles", {
2612
+ serialize: (value: any, options: {
2613
+ buildTx: typeof import(".").buildTx;
2614
+ }) => Buffer;
2615
+ deserialize: (value: Buffer, options: {
2616
+ unpackTx: typeof import(".").unpackTx;
2617
+ }) => any;
2618
+ }], readonly ["accounts", {
2619
+ serialize: (value: any, options: {
2620
+ buildTx: typeof import(".").buildTx;
2621
+ }) => Buffer;
2622
+ deserialize: (value: Buffer, options: {
2623
+ unpackTx: typeof import(".").unpackTx;
2624
+ }) => any;
2625
+ }]];
1024
2626
  };
1025
2627
  readonly 63: {
1026
2628
  readonly 1: readonly [readonly ["tag", {
1027
- serialize(value: number): Buffer;
1028
- deserialize(value: Buffer): number;
1029
- }], readonly ["VSN", {
1030
- serialize(value: number): Buffer;
1031
- deserialize(value: Buffer): number;
1032
- }], readonly ["values", FIELD_TYPES.rlpBinaries]];
2629
+ serialize: (value?: Tag.Mtree | undefined) => Buffer;
2630
+ deserialize: (value: Buffer) => Tag.Mtree;
2631
+ }], readonly ["version", {
2632
+ serialize: (value?: 1 | undefined) => Buffer;
2633
+ deserialize: (value: Buffer) => 1;
2634
+ }], readonly ["values", {
2635
+ serialize: (value: any[], params: unknown) => Buffer[];
2636
+ deserialize: (value: Buffer[], params: unknown) => any[];
2637
+ }]];
1033
2638
  };
1034
2639
  readonly 64: {
1035
2640
  readonly 1: readonly [readonly ["tag", {
1036
- serialize(value: number): Buffer;
1037
- deserialize(value: Buffer): number;
1038
- }], readonly ["VSN", {
1039
- serialize(value: number): Buffer;
1040
- deserialize(value: Buffer): number;
1041
- }], readonly ["key", FIELD_TYPES.hex], readonly ["value", FIELD_TYPES.rawBinary]];
2641
+ serialize: (value?: Tag.MtreeValue | undefined) => Buffer;
2642
+ deserialize: (value: Buffer) => Tag.MtreeValue;
2643
+ }], readonly ["version", {
2644
+ serialize: (value?: 1 | undefined) => Buffer;
2645
+ deserialize: (value: Buffer) => 1;
2646
+ }], readonly ["key", {
2647
+ serialize(buffer: Uint8Array): Buffer;
2648
+ deserialize(buffer: Buffer): Buffer;
2649
+ }], readonly ["value", {
2650
+ serialize(buffer: Uint8Array): Buffer;
2651
+ deserialize(buffer: Buffer): Buffer;
2652
+ }]];
1042
2653
  };
1043
2654
  readonly 621: {
1044
2655
  readonly 1: readonly [readonly ["tag", {
1045
- serialize(value: number): Buffer;
1046
- deserialize(value: Buffer): number;
1047
- }], readonly ["VSN", {
1048
- serialize(value: number): Buffer;
1049
- deserialize(value: Buffer): number;
1050
- }], readonly ["contracts", FIELD_TYPES.rlpBinary]];
2656
+ serialize: (value?: Tag.ContractsMtree | undefined) => Buffer;
2657
+ deserialize: (value: Buffer) => Tag.ContractsMtree;
2658
+ }], readonly ["version", {
2659
+ serialize: (value?: 1 | undefined) => Buffer;
2660
+ deserialize: (value: Buffer) => 1;
2661
+ }], readonly ["contracts", {
2662
+ serialize: (value: any, options: {
2663
+ buildTx: typeof import(".").buildTx;
2664
+ }) => Buffer;
2665
+ deserialize: (value: Buffer, options: {
2666
+ unpackTx: typeof import(".").unpackTx;
2667
+ }) => any;
2668
+ }]];
1051
2669
  };
1052
2670
  readonly 622: {
1053
2671
  readonly 1: readonly [readonly ["tag", {
1054
- serialize(value: number): Buffer;
1055
- deserialize(value: Buffer): number;
1056
- }], readonly ["VSN", {
1057
- serialize(value: number): Buffer;
1058
- deserialize(value: Buffer): number;
1059
- }], readonly ["calls", FIELD_TYPES.rlpBinary]];
2672
+ serialize: (value?: Tag.CallsMtree | undefined) => Buffer;
2673
+ deserialize: (value: Buffer) => Tag.CallsMtree;
2674
+ }], readonly ["version", {
2675
+ serialize: (value?: 1 | undefined) => Buffer;
2676
+ deserialize: (value: Buffer) => 1;
2677
+ }], readonly ["calls", {
2678
+ serialize: (value: any, options: {
2679
+ buildTx: typeof import(".").buildTx;
2680
+ }) => Buffer;
2681
+ deserialize: (value: Buffer, options: {
2682
+ unpackTx: typeof import(".").unpackTx;
2683
+ }) => any;
2684
+ }]];
1060
2685
  };
1061
2686
  readonly 623: {
1062
2687
  readonly 1: readonly [readonly ["tag", {
1063
- serialize(value: number): Buffer;
1064
- deserialize(value: Buffer): number;
1065
- }], readonly ["VSN", {
1066
- serialize(value: number): Buffer;
1067
- deserialize(value: Buffer): number;
1068
- }], readonly ["channels", FIELD_TYPES.rlpBinary]];
2688
+ serialize: (value?: Tag.ChannelsMtree | undefined) => Buffer;
2689
+ deserialize: (value: Buffer) => Tag.ChannelsMtree;
2690
+ }], readonly ["version", {
2691
+ serialize: (value?: 1 | undefined) => Buffer;
2692
+ deserialize: (value: Buffer) => 1;
2693
+ }], readonly ["channels", {
2694
+ serialize: (value: any, options: {
2695
+ buildTx: typeof import(".").buildTx;
2696
+ }) => Buffer;
2697
+ deserialize: (value: Buffer, options: {
2698
+ unpackTx: typeof import(".").unpackTx;
2699
+ }) => any;
2700
+ }]];
1069
2701
  };
1070
2702
  readonly 624: {
1071
2703
  readonly 1: readonly [readonly ["tag", {
1072
- serialize(value: number): Buffer;
1073
- deserialize(value: Buffer): number;
1074
- }], readonly ["VSN", {
1075
- serialize(value: number): Buffer;
1076
- deserialize(value: Buffer): number;
1077
- }], readonly ["mtree", FIELD_TYPES.rlpBinary]];
2704
+ serialize: (value?: Tag.NameserviceMtree | undefined) => Buffer;
2705
+ deserialize: (value: Buffer) => Tag.NameserviceMtree;
2706
+ }], readonly ["version", {
2707
+ serialize: (value?: 1 | undefined) => Buffer;
2708
+ deserialize: (value: Buffer) => 1;
2709
+ }], readonly ["mtree", {
2710
+ serialize: (value: any, options: {
2711
+ buildTx: typeof import(".").buildTx;
2712
+ }) => Buffer;
2713
+ deserialize: (value: Buffer, options: {
2714
+ unpackTx: typeof import(".").unpackTx;
2715
+ }) => any;
2716
+ }]];
1078
2717
  };
1079
2718
  readonly 625: {
1080
2719
  readonly 1: readonly [readonly ["tag", {
1081
- serialize(value: number): Buffer;
1082
- deserialize(value: Buffer): number;
1083
- }], readonly ["VSN", {
1084
- serialize(value: number): Buffer;
1085
- deserialize(value: Buffer): number;
1086
- }], readonly ["otree", FIELD_TYPES.rlpBinary]];
2720
+ serialize: (value?: Tag.OraclesMtree | undefined) => Buffer;
2721
+ deserialize: (value: Buffer) => Tag.OraclesMtree;
2722
+ }], readonly ["version", {
2723
+ serialize: (value?: 1 | undefined) => Buffer;
2724
+ deserialize: (value: Buffer) => 1;
2725
+ }], readonly ["otree", {
2726
+ serialize: (value: any, options: {
2727
+ buildTx: typeof import(".").buildTx;
2728
+ }) => Buffer;
2729
+ deserialize: (value: Buffer, options: {
2730
+ unpackTx: typeof import(".").unpackTx;
2731
+ }) => any;
2732
+ }]];
1087
2733
  };
1088
2734
  readonly 626: {
1089
2735
  readonly 1: readonly [readonly ["tag", {
1090
- serialize(value: number): Buffer;
1091
- deserialize(value: Buffer): number;
1092
- }], readonly ["VSN", {
1093
- serialize(value: number): Buffer;
1094
- deserialize(value: Buffer): number;
1095
- }], readonly ["accounts", FIELD_TYPES.rlpBinary]];
2736
+ serialize: (value?: Tag.AccountsMtree | undefined) => Buffer;
2737
+ deserialize: (value: Buffer) => Tag.AccountsMtree;
2738
+ }], readonly ["version", {
2739
+ serialize: (value?: 1 | undefined) => Buffer;
2740
+ deserialize: (value: Buffer) => 1;
2741
+ }], readonly ["accounts", {
2742
+ serialize: (value: any, options: {
2743
+ buildTx: typeof import(".").buildTx;
2744
+ }) => Buffer;
2745
+ deserialize: (value: Buffer, options: {
2746
+ unpackTx: typeof import(".").unpackTx;
2747
+ }) => any;
2748
+ }]];
1096
2749
  };
1097
2750
  readonly 80: {
1098
2751
  readonly 1: readonly [readonly ["tag", {
2752
+ serialize: (value?: Tag.GaAttachTx | undefined) => Buffer;
2753
+ deserialize: (value: Buffer) => Tag.GaAttachTx;
2754
+ }], readonly ["version", {
2755
+ serialize: (value?: 1 | undefined) => Buffer;
2756
+ deserialize: (value: Buffer) => 1;
2757
+ }], readonly ["ownerId", {
2758
+ serialize: (value: `ak_${string}`) => Buffer;
2759
+ deserialize: (value: Buffer) => `ak_${string}`;
2760
+ }], readonly ["nonce", {
1099
2761
  serialize(value: number): Buffer;
1100
2762
  deserialize(value: Buffer): number;
1101
- }], readonly ["VSN", {
1102
- serialize(value: number): Buffer;
1103
- deserialize(value: Buffer): number;
1104
- }], readonly ["ownerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
1105
- serialize(value: number): Buffer;
1106
- deserialize(value: Buffer): number;
1107
- }], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["authFun", FIELD_TYPES.rawBinary], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
1108
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1109
- txType: Tag;
1110
- rebuildTx: (params: any) => any;
1111
- _computingMinFee?: string | undefined;
2763
+ }], readonly ["code", {
2764
+ serialize: (value: `cb_${string}`) => Buffer;
2765
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
2766
+ }], readonly ["authFun", {
2767
+ serialize(buffer: Uint8Array): Buffer;
2768
+ deserialize(buffer: Buffer): Buffer;
2769
+ }], readonly ["ctVersion", {
2770
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
2771
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
2772
+ }): Buffer;
2773
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
2774
+ }], readonly ["fee", {
2775
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
2776
+ rebuildTx: (params: any) => `tx_${string}`;
2777
+ unpackTx: typeof import(".").unpackTx;
2778
+ buildTx: typeof import(".").buildTx;
2779
+ _computingMinFee?: BigNumber | undefined;
2780
+ _pickBiggerFee?: boolean | undefined;
1112
2781
  }): string;
1113
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1114
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2782
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1115
2783
  deserialize(value: Buffer): string;
1116
2784
  }], readonly ["ttl", {
1117
2785
  serialize(value: number): Buffer;
1118
2786
  deserialize(value: Buffer): number;
1119
2787
  }], readonly ["gasLimit", {
1120
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
1121
- txType: Tag;
2788
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
2789
+ tag: Tag;
1122
2790
  rebuildTx: (params: any) => any;
2791
+ unpackTx: typeof import(".").unpackTx;
2792
+ buildTx: typeof import(".").buildTx;
1123
2793
  gasMax: number;
1124
2794
  _computingGasLimit?: number | undefined;
1125
2795
  }): Buffer;
1126
2796
  deserialize(value: Buffer): number;
1127
2797
  }], readonly ["gasPrice", {
1128
2798
  serializeAettos(value?: string | undefined): string;
1129
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1130
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2799
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1131
2800
  deserialize(value: Buffer): string;
1132
- }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
2801
+ }], readonly ["callData", {
2802
+ serialize: (value: `cb_${string}`) => Buffer;
2803
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
2804
+ }]];
1133
2805
  };
1134
2806
  readonly 81: {
1135
2807
  readonly 2: readonly [readonly ["tag", {
1136
- serialize(value: number): Buffer;
1137
- deserialize(value: Buffer): number;
1138
- }], readonly ["VSN", {
1139
- serialize(value: number): Buffer;
1140
- deserialize(value: Buffer): number;
1141
- }], readonly ["gaId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["authData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", {
1142
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1143
- txType: Tag;
1144
- rebuildTx: (params: any) => any;
1145
- _computingMinFee?: string | undefined;
2808
+ serialize: (value?: Tag.GaMetaTx | undefined) => Buffer;
2809
+ deserialize: (value: Buffer) => Tag.GaMetaTx;
2810
+ }], readonly ["version", {
2811
+ serialize: (value?: 2 | undefined) => Buffer;
2812
+ deserialize: (value: Buffer) => 2;
2813
+ }], readonly ["gaId", {
2814
+ serialize: (value: `ak_${string}`) => Buffer;
2815
+ deserialize: (value: Buffer) => `ak_${string}`;
2816
+ }], readonly ["authData", {
2817
+ serialize: (value: `cb_${string}`) => Buffer;
2818
+ deserialize: (value: Buffer) => `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`;
2819
+ }], readonly ["abiVersion", {
2820
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
2821
+ tag: Tag;
2822
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
2823
+ }): Buffer;
2824
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
2825
+ }], readonly ["fee", {
2826
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
2827
+ rebuildTx: (params: any) => `tx_${string}`;
2828
+ unpackTx: typeof import(".").unpackTx;
2829
+ buildTx: typeof import(".").buildTx;
2830
+ _computingMinFee?: BigNumber | undefined;
2831
+ _pickBiggerFee?: boolean | undefined;
1146
2832
  }): string;
1147
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1148
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2833
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1149
2834
  deserialize(value: Buffer): string;
1150
2835
  }], readonly ["gasLimit", {
1151
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
1152
- txType: Tag;
2836
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
2837
+ tag: Tag;
1153
2838
  rebuildTx: (params: any) => any;
2839
+ unpackTx: typeof import(".").unpackTx;
2840
+ buildTx: typeof import(".").buildTx;
1154
2841
  gasMax: number;
1155
2842
  _computingGasLimit?: number | undefined;
1156
2843
  }): Buffer;
1157
2844
  deserialize(value: Buffer): number;
1158
2845
  }], readonly ["gasPrice", {
1159
2846
  serializeAettos(value?: string | undefined): string;
1160
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1161
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1162
- deserialize(value: Buffer): string;
1163
- }], readonly ["tx", FIELD_TYPES.rlpBinary]];
2847
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2848
+ deserialize(value: Buffer): string;
2849
+ }], readonly ["tx", {
2850
+ serialize: (value: any, options: {
2851
+ buildTx: typeof import(".").buildTx;
2852
+ }) => Buffer;
2853
+ deserialize: (value: Buffer, options: {
2854
+ unpackTx: typeof import(".").unpackTx;
2855
+ }) => any;
2856
+ }]];
1164
2857
  };
1165
2858
  readonly 82: {
1166
2859
  readonly 1: readonly [readonly ["tag", {
1167
- serialize(value: number): Buffer;
1168
- deserialize(value: Buffer): number;
1169
- }], readonly ["VSN", {
1170
- serialize(value: number): Buffer;
1171
- deserialize(value: Buffer): number;
1172
- }], readonly ["payerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
2860
+ serialize: (value?: Tag.PayingForTx | undefined) => Buffer;
2861
+ deserialize: (value: Buffer) => Tag.PayingForTx;
2862
+ }], readonly ["version", {
2863
+ serialize: (value?: 1 | undefined) => Buffer;
2864
+ deserialize: (value: Buffer) => 1;
2865
+ }], readonly ["payerId", {
2866
+ serialize: (value: `ak_${string}`) => Buffer;
2867
+ deserialize: (value: Buffer) => `ak_${string}`;
2868
+ }], readonly ["nonce", {
1173
2869
  serialize(value: number): Buffer;
1174
2870
  deserialize(value: Buffer): number;
1175
2871
  }], readonly ["fee", {
1176
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1177
- txType: Tag;
1178
- rebuildTx: (params: any) => any;
1179
- _computingMinFee?: string | undefined;
2872
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
2873
+ rebuildTx: (params: any) => `tx_${string}`;
2874
+ unpackTx: typeof import(".").unpackTx;
2875
+ buildTx: typeof import(".").buildTx;
2876
+ _computingMinFee?: BigNumber | undefined;
2877
+ _pickBiggerFee?: boolean | undefined;
1180
2878
  }): string;
1181
- serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1182
- serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1183
- deserialize(value: Buffer): string;
1184
- }], readonly ["tx", FIELD_TYPES.rlpBinary]];
2879
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2880
+ deserialize(value: Buffer): string;
2881
+ }], readonly ["tx", {
2882
+ serialize: (value: any, options: {
2883
+ buildTx: typeof import(".").buildTx;
2884
+ }) => Buffer;
2885
+ deserialize: (value: Buffer, options: {
2886
+ unpackTx: typeof import(".").unpackTx;
2887
+ }) => any;
2888
+ }]];
1185
2889
  };
1186
- readonly 70: {
1187
- readonly 3: readonly [readonly ["tag", {
1188
- serialize(value: number): Buffer;
1189
- deserialize(value: Buffer): number;
1190
- }], readonly ["VSN", {
1191
- serialize(value: number): Buffer;
1192
- deserialize(value: Buffer): number;
1193
- }], readonly ["sourceCodeHash", FIELD_TYPES.rawBinary], readonly ["typeInfo", FIELD_TYPES.sophiaCodeTypeInfo], readonly ["byteCode", FIELD_TYPES.rawBinary], readonly ["compilerVersion", FIELD_TYPES.string], readonly ["payable", FIELD_TYPES.bool]];
2890
+ };
2891
+ type TxTypeSchemasNotCombined = {
2892
+ [tag in Tag]: {
2893
+ [ver in keyof typeof TX_SCHEMA[tag]]: BuildTxArgBySchema<typeof TX_SCHEMA[tag][ver]>;
1194
2894
  };
1195
2895
  };
1196
- export declare type TxTypeSchemas = {
1197
- [key in Tag]: BuildTxArgBySchema<typeof TX_SCHEMA[key][keyof typeof TX_SCHEMA[key]]>;
2896
+ export type TxTypeSchemas = {
2897
+ [key in Tag]: TxTypeSchemasNotCombined[key][keyof TxTypeSchemasNotCombined[key]];
1198
2898
  };
1199
- export declare type TxSchema = TxTypeSchemas[Tag];
1200
- export declare type TxParamsCommon = Partial<UnionToIntersection<TxSchema>>;
2899
+ export type TxSchema = TxTypeSchemas[Tag];
2900
+ export type TxParamsCommon = Partial<UnionToIntersection<TxSchema>>;
1201
2901
  export {};