@aeternity/aepp-sdk 13.0.0-alpha.0 → 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 (322) 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 +4206 -1127
  7. package/dist/aepp-sdk.js.map +1 -1
  8. package/es/AeSdkBase.d.ts +3 -3
  9. package/es/AeSdkBase.mjs +4 -0
  10. package/es/AeSdkBase.mjs.map +1 -1
  11. package/es/AeSdkMethods.d.ts +3 -4
  12. package/es/AeSdkMethods.mjs.map +1 -1
  13. package/es/Node.d.ts +4 -3
  14. package/es/Node.mjs +1 -1
  15. package/es/Node.mjs.map +1 -1
  16. package/es/account/Base.d.ts +2 -2
  17. package/es/account/Base.mjs.map +1 -1
  18. package/es/account/Generalized.mjs +5 -3
  19. package/es/account/Generalized.mjs.map +1 -1
  20. package/es/account/Ledger.mjs +2 -1
  21. package/es/account/Ledger.mjs.map +1 -1
  22. package/es/account/Memory.mjs +2 -1
  23. package/es/account/Memory.mjs.map +1 -1
  24. package/es/aens.d.ts +1 -1
  25. package/es/aens.mjs +5 -1
  26. package/es/aens.mjs.map +1 -1
  27. package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -0
  28. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +19 -4
  29. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
  30. package/es/aepp-wallet-communication/rpc/RpcClient.mjs +1 -1
  31. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
  32. package/es/chain.d.ts +9 -1
  33. package/es/chain.mjs +4 -1
  34. package/es/chain.mjs.map +1 -1
  35. package/es/channel/Base.d.ts +6 -1
  36. package/es/channel/Base.mjs +9 -6
  37. package/es/channel/Base.mjs.map +1 -1
  38. package/es/channel/Contract.d.ts +8 -7
  39. package/es/channel/Contract.mjs +1 -1
  40. package/es/channel/Contract.mjs.map +1 -1
  41. package/es/channel/Spend.d.ts +3 -1
  42. package/es/channel/Spend.mjs +4 -2
  43. package/es/channel/Spend.mjs.map +1 -1
  44. package/es/channel/handlers.mjs +11 -9
  45. package/es/channel/handlers.mjs.map +1 -1
  46. package/es/channel/internal.mjs +3 -1
  47. package/es/channel/internal.mjs.map +1 -1
  48. package/es/contract/Contract.d.ts +21 -46
  49. package/es/contract/Contract.mjs +69 -52
  50. package/es/contract/Contract.mjs.map +1 -1
  51. package/es/contract/compiler/Base.d.ts +81 -0
  52. package/es/contract/compiler/Base.mjs +5 -0
  53. package/es/contract/compiler/Base.mjs.map +1 -0
  54. package/es/contract/compiler/Cli.d.ts +23 -0
  55. package/es/contract/compiler/Cli.mjs +155 -0
  56. package/es/contract/compiler/Cli.mjs.map +1 -0
  57. package/es/contract/compiler/Http.d.ts +32 -0
  58. package/es/contract/{CompilerHttp.mjs → compiler/Http.mjs} +64 -9
  59. package/es/contract/compiler/Http.mjs.map +1 -0
  60. package/es/contract/compiler/HttpNode.d.ts +17 -0
  61. package/es/contract/compiler/HttpNode.mjs +26 -0
  62. package/es/contract/compiler/HttpNode.mjs.map +1 -0
  63. package/es/contract/compiler/getFileSystem.d.ts +6 -0
  64. package/es/contract/compiler/getFileSystem.mjs +40 -0
  65. package/es/contract/compiler/getFileSystem.mjs.map +1 -0
  66. package/es/contract/ga.d.ts +5 -4
  67. package/es/contract/ga.mjs +11 -2
  68. package/es/contract/ga.mjs.map +1 -1
  69. package/es/index-browser.d.ts +39 -0
  70. package/es/index-browser.mjs +55 -0
  71. package/es/index-browser.mjs.map +1 -0
  72. package/es/index.d.ts +4 -38
  73. package/es/index.mjs +4 -53
  74. package/es/index.mjs.map +1 -1
  75. package/es/oracle.mjs +1 -1
  76. package/es/oracle.mjs.map +1 -1
  77. package/es/spend.mjs +1 -3
  78. package/es/spend.mjs.map +1 -1
  79. package/es/tx/builder/constants.d.ts +28 -1
  80. package/es/tx/builder/constants.mjs +32 -3
  81. package/es/tx/builder/constants.mjs.map +1 -1
  82. package/es/tx/builder/field-types/abi-version.d.ts +10 -0
  83. package/es/tx/builder/field-types/abi-version.mjs +20 -0
  84. package/es/tx/builder/field-types/abi-version.mjs.map +1 -0
  85. package/es/tx/builder/field-types/address.d.ts +5 -6
  86. package/es/tx/builder/field-types/address.mjs +17 -8
  87. package/es/tx/builder/field-types/address.mjs.map +1 -1
  88. package/es/tx/builder/field-types/array.d.ts +7 -0
  89. package/es/tx/builder/field-types/array.mjs +11 -0
  90. package/es/tx/builder/field-types/array.mjs.map +1 -0
  91. package/es/tx/builder/field-types/boolean.d.ts +6 -0
  92. package/es/tx/builder/field-types/boolean.mjs +13 -0
  93. package/es/tx/builder/field-types/boolean.mjs.map +1 -0
  94. package/es/tx/builder/field-types/coin-amount.d.ts +1 -1
  95. package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
  96. package/es/tx/builder/field-types/ct-version.d.ts +30 -0
  97. package/es/tx/builder/field-types/ct-version.mjs +48 -0
  98. package/es/tx/builder/field-types/ct-version.mjs.map +1 -0
  99. package/es/tx/builder/field-types/deposit.d.ts +1 -1
  100. package/es/tx/builder/field-types/deposit.mjs.map +1 -1
  101. package/es/tx/builder/field-types/encoded.d.ts +6 -0
  102. package/es/tx/builder/field-types/encoded.mjs +21 -0
  103. package/es/tx/builder/field-types/encoded.mjs.map +1 -0
  104. package/es/tx/builder/field-types/entry.d.ts +11 -0
  105. package/es/tx/builder/field-types/entry.mjs +31 -0
  106. package/es/tx/builder/field-types/entry.mjs.map +1 -0
  107. package/es/tx/builder/field-types/enumeration.d.ts +5 -3
  108. package/es/tx/builder/field-types/enumeration.mjs +11 -2
  109. package/es/tx/builder/field-types/enumeration.mjs.map +1 -1
  110. package/es/tx/builder/field-types/fee.d.ts +10 -7
  111. package/es/tx/builder/field-types/fee.mjs +24 -20
  112. package/es/tx/builder/field-types/fee.mjs.map +1 -1
  113. package/es/tx/builder/field-types/gas-limit.d.ts +5 -2
  114. package/es/tx/builder/field-types/gas-limit.mjs +9 -6
  115. package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
  116. package/es/tx/builder/field-types/gas-price.d.ts +1 -1
  117. package/es/tx/builder/field-types/index.d.ts +66 -28
  118. package/es/tx/builder/field-types/index.mjs +30 -12
  119. package/es/tx/builder/field-types/index.mjs.map +1 -1
  120. package/es/tx/builder/field-types/mptree.d.ts +37 -0
  121. package/es/tx/builder/field-types/mptree.mjs +268 -0
  122. package/es/tx/builder/field-types/mptree.mjs.map +1 -0
  123. package/es/tx/builder/field-types/name-fee.d.ts +1 -2
  124. package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
  125. package/es/tx/builder/field-types/name-id.mjs +2 -1
  126. package/es/tx/builder/field-types/name-id.mjs.map +1 -1
  127. package/es/tx/builder/field-types/pointers.mjs +2 -2
  128. package/es/tx/builder/field-types/pointers.mjs.map +1 -1
  129. package/es/tx/builder/field-types/raw.d.ts +6 -0
  130. package/es/tx/builder/field-types/raw.mjs +13 -0
  131. package/es/tx/builder/field-types/raw.mjs.map +1 -0
  132. package/es/tx/builder/field-types/short-u-int-const.d.ts +5 -0
  133. package/es/tx/builder/field-types/short-u-int-const.mjs +16 -0
  134. package/es/tx/builder/field-types/short-u-int-const.mjs.map +1 -0
  135. package/es/tx/builder/field-types/string.d.ts +6 -0
  136. package/es/tx/builder/field-types/string.mjs +10 -0
  137. package/es/tx/builder/field-types/string.mjs.map +1 -0
  138. package/es/tx/builder/field-types/u-int.d.ts +1 -2
  139. package/es/tx/builder/field-types/u-int.mjs.map +1 -1
  140. package/es/tx/builder/index.d.ts +11 -29
  141. package/es/tx/builder/index.mjs +50 -211
  142. package/es/tx/builder/index.mjs.map +1 -1
  143. package/es/tx/builder/schema.d.ts +2111 -571
  144. package/es/tx/builder/schema.mjs +57 -125
  145. package/es/tx/builder/schema.mjs.map +1 -1
  146. package/es/tx/index.d.ts +5 -20
  147. package/es/tx/index.mjs +31 -88
  148. package/es/tx/index.mjs.map +1 -1
  149. package/es/tx/validator.d.ts +3 -5
  150. package/es/tx/validator.mjs +82 -95
  151. package/es/tx/validator.mjs.map +1 -1
  152. package/es/utils/bytes.mjs +1 -1
  153. package/es/utils/bytes.mjs.map +1 -1
  154. package/es/utils/errors.d.ts +3 -8
  155. package/es/utils/errors.mjs +1 -11
  156. package/es/utils/errors.mjs.map +1 -1
  157. package/es/utils/other.d.ts +1 -1
  158. package/package.json +35 -27
  159. package/src/AeSdkBase.ts +6 -3
  160. package/src/AeSdkMethods.ts +3 -4
  161. package/src/Node.ts +6 -3
  162. package/src/account/Base.ts +2 -2
  163. package/src/account/Generalized.ts +2 -2
  164. package/src/account/Ledger.ts +1 -1
  165. package/src/account/Memory.ts +1 -1
  166. package/src/aens.ts +3 -2
  167. package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +18 -7
  168. package/src/aepp-wallet-communication/rpc/RpcClient.ts +2 -2
  169. package/src/chain.ts +5 -3
  170. package/src/channel/Base.ts +13 -5
  171. package/src/channel/Contract.ts +11 -10
  172. package/src/channel/Spend.ts +7 -2
  173. package/src/channel/handlers.ts +10 -9
  174. package/src/channel/internal.ts +1 -1
  175. package/src/contract/Contract.ts +69 -79
  176. package/src/contract/compiler/Base.ts +94 -0
  177. package/src/contract/compiler/Cli.ts +134 -0
  178. package/src/contract/compiler/Http.ts +124 -0
  179. package/src/contract/compiler/HttpNode.ts +26 -0
  180. package/src/contract/compiler/getFileSystem.ts +42 -0
  181. package/src/contract/ga.ts +9 -6
  182. package/src/index-browser.ts +58 -0
  183. package/src/index.ts +4 -56
  184. package/src/oracle.ts +1 -1
  185. package/src/spend.ts +1 -1
  186. package/src/tx/builder/constants.ts +32 -3
  187. package/src/tx/builder/field-types/abi-version.ts +21 -0
  188. package/src/tx/builder/field-types/address.ts +23 -13
  189. package/src/tx/builder/field-types/array.ts +19 -0
  190. package/src/tx/builder/field-types/boolean.ts +9 -0
  191. package/src/tx/builder/field-types/coin-amount.ts +2 -1
  192. package/src/tx/builder/field-types/ct-version.ts +50 -0
  193. package/src/tx/builder/field-types/deposit.ts +1 -1
  194. package/src/tx/builder/field-types/encoded.ts +27 -0
  195. package/src/tx/builder/field-types/entry.ts +31 -0
  196. package/src/tx/builder/field-types/enumeration.ts +15 -4
  197. package/src/tx/builder/field-types/fee.ts +38 -18
  198. package/src/tx/builder/field-types/gas-limit.ts +12 -7
  199. package/src/tx/builder/field-types/index.ts +46 -17
  200. package/src/tx/builder/field-types/mptree.ts +242 -0
  201. package/src/tx/builder/field-types/name-fee.ts +1 -2
  202. package/src/tx/builder/field-types/name-id.ts +1 -1
  203. package/src/tx/builder/field-types/pointers.ts +2 -2
  204. package/src/tx/builder/field-types/raw.ts +9 -0
  205. package/src/tx/builder/field-types/short-u-int-const.ts +20 -0
  206. package/src/tx/builder/field-types/string.ts +11 -0
  207. package/src/tx/builder/field-types/u-int.ts +1 -3
  208. package/src/tx/builder/index.ts +63 -247
  209. package/src/tx/builder/schema.ts +273 -323
  210. package/src/tx/index.ts +37 -104
  211. package/src/tx/validator.ts +72 -95
  212. package/src/utils/bytes.ts +1 -1
  213. package/src/utils/errors.ts +4 -13
  214. package/types-legacy/ts4.2/AeSdkBase.d.ts +3 -3
  215. package/types-legacy/ts4.2/AeSdkMethods.d.ts +3 -4
  216. package/types-legacy/ts4.2/Node.d.ts +3 -3
  217. package/types-legacy/ts4.2/account/Base.d.ts +2 -2
  218. package/types-legacy/ts4.2/aens.d.ts +1 -1
  219. package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -0
  220. package/types-legacy/ts4.2/chain.d.ts +9 -1
  221. package/types-legacy/ts4.2/channel/Base.d.ts +6 -1
  222. package/types-legacy/ts4.2/channel/Contract.d.ts +8 -7
  223. package/types-legacy/ts4.2/channel/Spend.d.ts +3 -1
  224. package/types-legacy/ts4.2/contract/Contract.d.ts +21 -46
  225. package/types-legacy/ts4.2/contract/compiler/Base.d.ts +81 -0
  226. package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +23 -0
  227. package/types-legacy/ts4.2/contract/compiler/Http.d.ts +32 -0
  228. package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +17 -0
  229. package/types-legacy/ts4.2/contract/compiler/getFileSystem.d.ts +6 -0
  230. package/types-legacy/ts4.2/contract/ga.d.ts +5 -4
  231. package/types-legacy/ts4.2/index-browser.d.ts +39 -0
  232. package/types-legacy/ts4.2/index.d.ts +4 -38
  233. package/types-legacy/ts4.2/tx/builder/constants.d.ts +28 -1
  234. package/types-legacy/ts4.2/tx/builder/field-types/abi-version.d.ts +10 -0
  235. package/types-legacy/ts4.2/tx/builder/field-types/address.d.ts +11 -12
  236. package/types-legacy/ts4.2/tx/builder/field-types/array.d.ts +7 -0
  237. package/types-legacy/ts4.2/tx/builder/field-types/boolean.d.ts +6 -0
  238. package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +1 -1
  239. package/types-legacy/ts4.2/tx/builder/field-types/ct-version.d.ts +42 -0
  240. package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +1 -1
  241. package/types-legacy/ts4.2/tx/builder/field-types/encoded.d.ts +6 -0
  242. package/types-legacy/ts4.2/tx/builder/field-types/entry.d.ts +11 -0
  243. package/types-legacy/ts4.2/tx/builder/field-types/enumeration.d.ts +5 -3
  244. package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +10 -7
  245. package/types-legacy/ts4.2/tx/builder/field-types/gas-limit.d.ts +5 -2
  246. package/types-legacy/ts4.2/tx/builder/field-types/gas-price.d.ts +1 -1
  247. package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +72 -28
  248. package/types-legacy/ts4.2/tx/builder/field-types/mptree.d.ts +43 -0
  249. package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +1 -2
  250. package/types-legacy/ts4.2/tx/builder/field-types/raw.d.ts +6 -0
  251. package/types-legacy/ts4.2/tx/builder/field-types/short-u-int-const.d.ts +5 -0
  252. package/types-legacy/ts4.2/tx/builder/field-types/string.d.ts +6 -0
  253. package/types-legacy/ts4.2/tx/builder/field-types/u-int.d.ts +1 -2
  254. package/types-legacy/ts4.2/tx/builder/index.d.ts +11 -29
  255. package/types-legacy/ts4.2/tx/builder/schema.d.ts +2380 -668
  256. package/types-legacy/ts4.2/tx/index.d.ts +5 -20
  257. package/types-legacy/ts4.2/tx/validator.d.ts +3 -5
  258. package/types-legacy/ts4.2/utils/errors.d.ts +3 -8
  259. package/types-legacy/ts4.2/utils/other.d.ts +1 -1
  260. package/types-legacy/ts4.5/AeSdkBase.d.ts +3 -3
  261. package/types-legacy/ts4.5/AeSdkMethods.d.ts +3 -4
  262. package/types-legacy/ts4.5/Node.d.ts +3 -3
  263. package/types-legacy/ts4.5/account/Base.d.ts +2 -2
  264. package/types-legacy/ts4.5/aens.d.ts +1 -1
  265. package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -0
  266. package/types-legacy/ts4.5/chain.d.ts +9 -1
  267. package/types-legacy/ts4.5/channel/Base.d.ts +6 -1
  268. package/types-legacy/ts4.5/channel/Contract.d.ts +8 -7
  269. package/types-legacy/ts4.5/channel/Spend.d.ts +3 -1
  270. package/types-legacy/ts4.5/contract/Contract.d.ts +21 -46
  271. package/types-legacy/ts4.5/contract/compiler/Base.d.ts +81 -0
  272. package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +23 -0
  273. package/types-legacy/ts4.5/contract/compiler/Http.d.ts +32 -0
  274. package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +17 -0
  275. package/types-legacy/ts4.5/contract/compiler/getFileSystem.d.ts +6 -0
  276. package/types-legacy/ts4.5/contract/ga.d.ts +5 -4
  277. package/types-legacy/ts4.5/index-browser.d.ts +39 -0
  278. package/types-legacy/ts4.5/index.d.ts +4 -38
  279. package/types-legacy/ts4.5/tx/builder/constants.d.ts +28 -1
  280. package/types-legacy/ts4.5/tx/builder/field-types/abi-version.d.ts +10 -0
  281. package/types-legacy/ts4.5/tx/builder/field-types/address.d.ts +11 -12
  282. package/types-legacy/ts4.5/tx/builder/field-types/array.d.ts +7 -0
  283. package/types-legacy/ts4.5/tx/builder/field-types/boolean.d.ts +6 -0
  284. package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +1 -1
  285. package/types-legacy/ts4.5/tx/builder/field-types/ct-version.d.ts +42 -0
  286. package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +1 -1
  287. package/types-legacy/ts4.5/tx/builder/field-types/encoded.d.ts +6 -0
  288. package/types-legacy/ts4.5/tx/builder/field-types/entry.d.ts +11 -0
  289. package/types-legacy/ts4.5/tx/builder/field-types/enumeration.d.ts +5 -3
  290. package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +10 -7
  291. package/types-legacy/ts4.5/tx/builder/field-types/gas-limit.d.ts +5 -2
  292. package/types-legacy/ts4.5/tx/builder/field-types/gas-price.d.ts +1 -1
  293. package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +72 -28
  294. package/types-legacy/ts4.5/tx/builder/field-types/mptree.d.ts +43 -0
  295. package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +1 -2
  296. package/types-legacy/ts4.5/tx/builder/field-types/raw.d.ts +6 -0
  297. package/types-legacy/ts4.5/tx/builder/field-types/short-u-int-const.d.ts +5 -0
  298. package/types-legacy/ts4.5/tx/builder/field-types/string.d.ts +6 -0
  299. package/types-legacy/ts4.5/tx/builder/field-types/u-int.d.ts +1 -2
  300. package/types-legacy/ts4.5/tx/builder/index.d.ts +11 -29
  301. package/types-legacy/ts4.5/tx/builder/schema.d.ts +2380 -668
  302. package/types-legacy/ts4.5/tx/index.d.ts +5 -20
  303. package/types-legacy/ts4.5/tx/validator.d.ts +3 -5
  304. package/types-legacy/ts4.5/utils/errors.d.ts +3 -8
  305. package/types-legacy/ts4.5/utils/other.d.ts +1 -1
  306. package/es/contract/CompilerHttp.d.ts +0 -18
  307. package/es/contract/CompilerHttp.mjs.map +0 -1
  308. package/es/tx/builder/field-types/addresses.d.ts +0 -6
  309. package/es/tx/builder/field-types/addresses.mjs +0 -13
  310. package/es/tx/builder/field-types/addresses.mjs.map +0 -1
  311. package/es/utils/mptree.d.ts +0 -26
  312. package/es/utils/mptree.mjs +0 -143
  313. package/es/utils/mptree.mjs.map +0 -1
  314. package/src/contract/CompilerHttp.ts +0 -67
  315. package/src/tx/builder/field-types/addresses.ts +0 -18
  316. package/src/utils/mptree.ts +0 -145
  317. package/types-legacy/ts4.2/contract/CompilerHttp.d.ts +0 -18
  318. package/types-legacy/ts4.2/tx/builder/field-types/addresses.d.ts +0 -6
  319. package/types-legacy/ts4.2/utils/mptree.d.ts +0 -32
  320. package/types-legacy/ts4.5/contract/CompilerHttp.d.ts +0 -18
  321. package/types-legacy/ts4.5/tx/builder/field-types/addresses.d.ts +0 -6
  322. package/types-legacy/ts4.5/utils/mptree.d.ts +0 -32
@@ -5,8 +5,7 @@
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';
8
+ import { Encoding } from '../../utils/encoder';
10
9
  import { UnionToIntersection } from '../../utils/other';
11
10
  export declare enum ORACLE_TTL_TYPES {
12
11
  delta = 0,
@@ -32,167 +31,91 @@ export declare const DRY_RUN_ACCOUNT: {
32
31
  };
33
32
  export type TxField = [
34
33
  name: string,
35
- type: FIELD_TYPES | Field,
36
- prefix?: Encoding | Encoding[]
34
+ type: Field
37
35
  ];
38
- /**
39
- * @category transaction builder
40
- * @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
41
- */
42
- export declare enum VM_VERSIONS {
43
- NO_VM = 0,
44
- SOPHIA = 1,
45
- SOPHIA_IMPROVEMENTS_MINERVA = 3,
46
- SOPHIA_IMPROVEMENTS_FORTUNA = 4,
47
- FATE = 5,
48
- SOPHIA_IMPROVEMENTS_LIMA = 6,
49
- FATE_2 = 7
50
- }
51
- /**
52
- * @category transaction builder
53
- * @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
54
- */
55
- export declare enum ABI_VERSIONS {
56
- NO_ABI = 0,
57
- SOPHIA = 1,
58
- FATE = 3
59
- }
60
36
  export declare enum CallReturnType {
61
37
  Ok = 0,
62
38
  Error = 1,
63
39
  Revert = 2
64
40
  }
65
- /**
66
- * @category transaction builder
67
- */
68
- export declare enum PROTOCOL_VERSIONS {
69
- IRIS = 5
70
- }
71
- export declare const PROTOCOL_VM_ABI: {
72
- readonly 5: {
73
- readonly 42: {
74
- readonly vmVersion: readonly [VM_VERSIONS.FATE_2];
75
- readonly abiVersion: readonly [ABI_VERSIONS.FATE];
76
- };
77
- readonly 43: {
78
- readonly vmVersion: readonly [];
79
- readonly abiVersion: readonly [ABI_VERSIONS.FATE, ABI_VERSIONS.SOPHIA];
80
- };
81
- readonly 22: {
82
- readonly vmVersion: readonly [];
83
- readonly abiVersion: readonly [ABI_VERSIONS.NO_ABI, ABI_VERSIONS.SOPHIA];
84
- };
85
- };
86
- };
87
- type PrefixType<Prefix> = Prefix extends Encoding ? Encoded.Generic<Prefix> : Prefix extends readonly Encoding[] ? Encoded.Generic<Prefix[number]> : Encoded.Generic<any>;
88
- /**
89
- * @category transaction builder
90
- */
91
- export interface CtVersion {
92
- vmVersion: VM_VERSIONS;
93
- abiVersion: ABI_VERSIONS;
94
- }
95
- /**
96
- * @category transaction builder
97
- */
98
- export declare enum FIELD_TYPES {
99
- string = 0,
100
- binary = 1,
101
- bool = 2,
102
- hex = 3,
103
- rlpBinary = 4,
104
- rlpBinaries = 5,
105
- rawBinary = 6,
106
- signatures = 7,
107
- offChainUpdates = 8,
108
- callStack = 9,
109
- proofOfInclusion = 10,
110
- mptrees = 11,
111
- ctVersion = 12,
112
- sophiaCodeTypeInfo = 13,
113
- payload = 14,
114
- stateTree = 15
115
- }
116
- interface BuildFieldTypes<Prefix extends undefined | Encoding | readonly Encoding[]> {
117
- [FIELD_TYPES.string]: string;
118
- [FIELD_TYPES.binary]: PrefixType<Prefix>;
119
- [FIELD_TYPES.bool]: Boolean;
120
- [FIELD_TYPES.hex]: string;
121
- [FIELD_TYPES.rlpBinary]: any;
122
- [FIELD_TYPES.rlpBinaries]: any[];
123
- [FIELD_TYPES.rawBinary]: Uint8Array;
124
- [FIELD_TYPES.signatures]: Uint8Array[];
125
- [FIELD_TYPES.offChainUpdates]: any;
126
- [FIELD_TYPES.callStack]: any;
127
- [FIELD_TYPES.proofOfInclusion]: any;
128
- [FIELD_TYPES.mptrees]: MPTree[];
129
- [FIELD_TYPES.ctVersion]: CtVersion;
130
- [FIELD_TYPES.sophiaCodeTypeInfo]: any;
131
- [FIELD_TYPES.payload]: string | undefined;
132
- [FIELD_TYPES.stateTree]: any;
133
- }
134
- type TxElem = readonly [string, FIELD_TYPES | Field] | readonly [string, FIELD_TYPES, Encoding | readonly Encoding[]];
135
- 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;
41
+ type TxElem = readonly [string, Field];
42
+ type BuildTxArgBySchemaType<Type extends Field> = Parameters<Type['serialize']>[0];
136
43
  type NullablePartial<T, NK extends keyof T = {
137
44
  [K in keyof T]: undefined extends T[K] ? K : never;
138
45
  }[keyof T]> = Partial<Pick<T, NK>> & Omit<T, NK>;
139
46
  type BuildTxArgBySchema<SchemaLine> = UnionToIntersection<SchemaLine extends ReadonlyArray<infer Elem> ? Elem extends TxElem ? NullablePartial<{
140
- [k in Elem[0]]: BuildTxArgBySchemaType<Elem[1], Elem[2]>;
47
+ [k in Elem[0]]: BuildTxArgBySchemaType<Elem[1]>;
141
48
  }> : never : never>;
142
49
  export type RawTxObject<Tx extends TxSchema> = {
143
50
  [k in keyof Tx]-?: Tx[k] extends BigNumber ? string : Tx[k];
144
51
  };
52
+ /**
53
+ * @see {@link https://github.com/aeternity/protocol/blob/c007deeac4a01e401238412801ac7084ac72d60e/serializations.md#accounts-version-1-basic-accounts}
54
+ */
145
55
  export declare const TX_SCHEMA: {
146
56
  readonly 10: {
147
57
  readonly 1: readonly [readonly ["tag", {
148
- serialize(value: number): Buffer;
149
- deserialize(value: Buffer): number;
150
- }], readonly ["VSN", {
151
- serialize(value: number): Buffer;
152
- 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;
153
63
  }], readonly ["nonce", {
154
64
  serialize(value: number): Buffer;
155
65
  deserialize(value: Buffer): number;
156
66
  }], readonly ["balance", {
157
- serialize(value: import("./field-types/u-int").Int): Buffer;
67
+ serialize(value: import("./constants").Int): Buffer;
158
68
  deserialize(value: Buffer): string;
159
69
  }]];
160
70
  readonly 2: readonly [readonly ["tag", {
161
- serialize(value: number): Buffer;
162
- deserialize(value: Buffer): number;
163
- }], readonly ["VSN", {
164
- serialize(value: number): Buffer;
165
- 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;
166
76
  }], readonly ["flags", {
167
- serialize(value: import("./field-types/u-int").Int): Buffer;
77
+ serialize(value: import("./constants").Int): Buffer;
168
78
  deserialize(value: Buffer): string;
169
79
  }], readonly ["nonce", {
170
80
  serialize(value: number): Buffer;
171
81
  deserialize(value: Buffer): number;
172
82
  }], readonly ["balance", {
173
- serialize(value: import("./field-types/u-int").Int): Buffer;
83
+ serialize(value: import("./constants").Int): Buffer;
174
84
  deserialize(value: Buffer): string;
175
85
  }], readonly ["gaContract", {
176
86
  serialize: (value: `ct_${string}` | `nm_${string}`) => Buffer;
177
87
  deserialize: (value: Buffer) => `ct_${string}` | `nm_${string}`;
178
- }], readonly ["gaAuthFun", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
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
+ }]];
179
92
  };
180
93
  readonly 11: {
181
94
  readonly 1: readonly [readonly ["tag", {
182
- serialize(value: number): Buffer;
183
- deserialize(value: Buffer): number;
184
- }], readonly ["VSN", {
185
- serialize(value: number): Buffer;
186
- deserialize(value: Buffer): number;
187
- }], 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
+ }]];
188
111
  };
189
112
  readonly 12: {
190
113
  readonly 1: readonly [readonly ["tag", {
191
- serialize(value: number): Buffer;
192
- deserialize(value: Buffer): number;
193
- }], readonly ["VSN", {
194
- serialize(value: number): Buffer;
195
- deserialize(value: Buffer): number;
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;
196
119
  }], readonly ["senderId", {
197
120
  serialize: (value: `ak_${string}`) => Buffer;
198
121
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -201,15 +124,17 @@ export declare const TX_SCHEMA: {
201
124
  deserialize: (value: Buffer) => `ak_${string}` | `nm_${string}`;
202
125
  }], readonly ["amount", {
203
126
  serializeAettos(value: string | undefined): string;
204
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
127
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
205
128
  deserialize(value: Buffer): string;
206
129
  }], readonly ["fee", {
207
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
208
- txType: Tag;
209
- rebuildTx: (params: any) => any;
210
- _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;
211
136
  }): string;
212
- serialize(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;
213
138
  deserialize(value: Buffer): string;
214
139
  }], readonly ["ttl", {
215
140
  serialize(value: number): Buffer;
@@ -217,15 +142,46 @@ export declare const TX_SCHEMA: {
217
142
  }], readonly ["nonce", {
218
143
  serialize(value: number): Buffer;
219
144
  deserialize(value: Buffer): number;
220
- }], 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
+ }]];
221
149
  };
222
- readonly 33: {
150
+ readonly 30: {
223
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", {
224
161
  serialize(value: number): Buffer;
225
162
  deserialize(value: Buffer): number;
226
- }], readonly ["VSN", {
163
+ }], readonly ["status", {
164
+ serialize(buffer: Uint8Array): Buffer;
165
+ deserialize(buffer: Buffer): Buffer;
166
+ }], readonly ["clientTtl", {
227
167
  serialize(value: number): Buffer;
228
168
  deserialize(value: Buffer): number;
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;
229
185
  }], readonly ["accountId", {
230
186
  serialize: (value: `ak_${string}`) => Buffer;
231
187
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -236,12 +192,14 @@ export declare const TX_SCHEMA: {
236
192
  serialize: (value: `cm_${string}`) => Buffer;
237
193
  deserialize: (value: Buffer) => `cm_${string}`;
238
194
  }], readonly ["fee", {
239
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
240
- txType: Tag;
241
- rebuildTx: (params: any) => any;
242
- _computingMinFee?: string | undefined;
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;
243
201
  }): string;
244
- serialize(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;
245
203
  deserialize(value: Buffer): string;
246
204
  }], readonly ["ttl", {
247
205
  serialize(value: number): Buffer;
@@ -250,11 +208,11 @@ export declare const TX_SCHEMA: {
250
208
  };
251
209
  readonly 32: {
252
210
  readonly 2: readonly [readonly ["tag", {
253
- serialize(value: number): Buffer;
254
- deserialize(value: Buffer): number;
255
- }], readonly ["VSN", {
256
- serialize(value: number): Buffer;
257
- deserialize(value: Buffer): number;
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;
258
216
  }], readonly ["accountId", {
259
217
  serialize: (value: `ak_${string}`) => Buffer;
260
218
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -265,23 +223,25 @@ export declare const TX_SCHEMA: {
265
223
  serialize(value: `${string}.chain`): Buffer;
266
224
  deserialize(value: Buffer): `${string}.chain`;
267
225
  }], readonly ["nameSalt", {
268
- serialize(value: import("./field-types/u-int").Int): Buffer;
226
+ serialize(value: import("./constants").Int): Buffer;
269
227
  deserialize(value: Buffer): string;
270
228
  }], readonly ["nameFee", {
271
229
  serializeAettos(_value: string | undefined, txFields: {
272
230
  name: `${string}.chain`;
273
231
  }): string;
274
- serialize(value: import("./field-types/u-int").Int | undefined, txFields: {
232
+ serialize(value: import("./constants").Int | undefined, txFields: {
275
233
  name: `${string}.chain`;
276
234
  } & import("./field-types/coin-amount").Options): Buffer;
277
235
  deserialize(value: Buffer): string;
278
236
  }], readonly ["fee", {
279
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
280
- txType: Tag;
281
- rebuildTx: (params: any) => any;
282
- _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;
283
243
  }): string;
284
- serialize(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;
285
245
  deserialize(value: Buffer): string;
286
246
  }], readonly ["ttl", {
287
247
  serialize(value: number): Buffer;
@@ -290,11 +250,11 @@ export declare const TX_SCHEMA: {
290
250
  };
291
251
  readonly 34: {
292
252
  readonly 1: readonly [readonly ["tag", {
293
- serialize(value: number): Buffer;
294
- deserialize(value: Buffer): number;
295
- }], readonly ["VSN", {
296
- serialize(value: number): Buffer;
297
- deserialize(value: Buffer): number;
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;
298
258
  }], readonly ["accountId", {
299
259
  serialize: (value: `ak_${string}`) => Buffer;
300
260
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -302,7 +262,7 @@ export declare const TX_SCHEMA: {
302
262
  serialize(value: number): Buffer;
303
263
  deserialize(value: Buffer): number;
304
264
  }], readonly ["nameId", {
305
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
265
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
306
266
  deserialize: (value: Buffer) => `nm_${string}`;
307
267
  }], readonly ["nameTtl", {
308
268
  serialize(value: number): Buffer;
@@ -318,12 +278,14 @@ export declare const TX_SCHEMA: {
318
278
  serialize(value: number): Buffer;
319
279
  deserialize(value: Buffer): number;
320
280
  }], readonly ["fee", {
321
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
322
- txType: Tag;
323
- rebuildTx: (params: any) => any;
324
- _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;
325
287
  }): string;
326
- serialize(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;
327
289
  deserialize(value: Buffer): string;
328
290
  }], readonly ["ttl", {
329
291
  serialize(value: number): Buffer;
@@ -332,11 +294,11 @@ export declare const TX_SCHEMA: {
332
294
  };
333
295
  readonly 36: {
334
296
  readonly 1: readonly [readonly ["tag", {
335
- serialize(value: number): Buffer;
336
- deserialize(value: Buffer): number;
337
- }], readonly ["VSN", {
338
- serialize(value: number): Buffer;
339
- deserialize(value: Buffer): number;
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;
340
302
  }], readonly ["accountId", {
341
303
  serialize: (value: `ak_${string}`) => Buffer;
342
304
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -344,18 +306,20 @@ export declare const TX_SCHEMA: {
344
306
  serialize(value: number): Buffer;
345
307
  deserialize(value: Buffer): number;
346
308
  }], readonly ["nameId", {
347
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
309
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
348
310
  deserialize: (value: Buffer) => `nm_${string}`;
349
311
  }], readonly ["recipientId", {
350
312
  serialize: (value: `ak_${string}` | `nm_${string}`) => Buffer;
351
313
  deserialize: (value: Buffer) => `ak_${string}` | `nm_${string}`;
352
314
  }], readonly ["fee", {
353
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
354
- txType: Tag;
355
- rebuildTx: (params: any) => any;
356
- _computingMinFee?: string | undefined;
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;
357
321
  }): string;
358
- serialize(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;
359
323
  deserialize(value: Buffer): string;
360
324
  }], readonly ["ttl", {
361
325
  serialize(value: number): Buffer;
@@ -364,11 +328,11 @@ export declare const TX_SCHEMA: {
364
328
  };
365
329
  readonly 35: {
366
330
  readonly 1: readonly [readonly ["tag", {
367
- serialize(value: number): Buffer;
368
- deserialize(value: Buffer): number;
369
- }], readonly ["VSN", {
370
- serialize(value: number): Buffer;
371
- deserialize(value: Buffer): number;
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;
372
336
  }], readonly ["accountId", {
373
337
  serialize: (value: `ak_${string}`) => Buffer;
374
338
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -376,15 +340,17 @@ export declare const TX_SCHEMA: {
376
340
  serialize(value: number): Buffer;
377
341
  deserialize(value: Buffer): number;
378
342
  }], readonly ["nameId", {
379
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
343
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
380
344
  deserialize: (value: Buffer) => `nm_${string}`;
381
345
  }], readonly ["fee", {
382
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
383
- txType: Tag;
384
- rebuildTx: (params: any) => any;
385
- _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;
386
352
  }): string;
387
- serialize(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;
388
354
  deserialize(value: Buffer): string;
389
355
  }], readonly ["ttl", {
390
356
  serialize(value: number): Buffer;
@@ -393,76 +359,105 @@ export declare const TX_SCHEMA: {
393
359
  };
394
360
  readonly 40: {
395
361
  readonly 1: readonly [readonly ["tag", {
396
- serialize(value: number): Buffer;
397
- deserialize(value: Buffer): number;
398
- }], readonly ["VSN", {
399
- serialize(value: number): Buffer;
400
- deserialize(value: Buffer): number;
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;
401
367
  }], readonly ["owner", {
402
368
  serialize: (value: `ak_${string}`) => Buffer;
403
369
  deserialize: (value: Buffer) => `ak_${string}`;
404
- }], 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", {
405
- serialize: (value: `ak_${string}`[]) => Buffer[];
406
- 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}`[];
407
387
  }], readonly ["deposit", {
408
- serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
388
+ serialize(value: import("./constants").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
409
389
  serializeAettos(value: string | undefined): string;
410
390
  deserialize(value: Buffer): string;
411
391
  }]];
412
392
  };
413
393
  readonly 42: {
414
394
  readonly 1: readonly [readonly ["tag", {
415
- serialize(value: number): Buffer;
416
- deserialize(value: Buffer): number;
417
- }], readonly ["VSN", {
418
- serialize(value: number): Buffer;
419
- deserialize(value: Buffer): number;
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;
420
400
  }], readonly ["ownerId", {
421
401
  serialize: (value: `ak_${string}`) => Buffer;
422
402
  deserialize: (value: Buffer) => `ak_${string}`;
423
403
  }], readonly ["nonce", {
424
404
  serialize(value: number): Buffer;
425
405
  deserialize(value: Buffer): number;
426
- }], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
427
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
428
- txType: Tag;
429
- rebuildTx: (params: any) => any;
430
- _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;
431
421
  }): string;
432
- serialize(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;
433
423
  deserialize(value: Buffer): string;
434
424
  }], readonly ["ttl", {
435
425
  serialize(value: number): Buffer;
436
426
  deserialize(value: Buffer): number;
437
427
  }], readonly ["deposit", {
438
- 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;
439
429
  serializeAettos(value: string | undefined): string;
440
430
  deserialize(value: Buffer): string;
441
431
  }], readonly ["amount", {
442
432
  serializeAettos(value: string | undefined): string;
443
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
433
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
444
434
  deserialize(value: Buffer): string;
445
435
  }], readonly ["gasLimit", {
446
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
447
- txType: Tag;
436
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
437
+ tag: Tag;
448
438
  rebuildTx: (params: any) => any;
439
+ unpackTx: typeof import(".").unpackTx;
440
+ buildTx: typeof import(".").buildTx;
449
441
  gasMax: number;
450
442
  _computingGasLimit?: number | undefined;
451
443
  }): Buffer;
452
444
  deserialize(value: Buffer): number;
453
445
  }], readonly ["gasPrice", {
454
446
  serializeAettos(value?: string | undefined): string;
455
- serialize(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;
456
448
  deserialize(value: Buffer): string;
457
- }], 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
+ }]];
458
453
  };
459
454
  readonly 43: {
460
455
  readonly 1: readonly [readonly ["tag", {
461
- serialize(value: number): Buffer;
462
- deserialize(value: Buffer): number;
463
- }], readonly ["VSN", {
464
- serialize(value: number): Buffer;
465
- deserialize(value: Buffer): number;
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;
466
461
  }], readonly ["callerId", {
467
462
  serialize: (value: `ak_${string}`) => Buffer;
468
463
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -473,44 +468,54 @@ export declare const TX_SCHEMA: {
473
468
  serialize: (value: `ct_${string}` | `nm_${string}`) => Buffer;
474
469
  deserialize: (value: Buffer) => `ct_${string}` | `nm_${string}`;
475
470
  }], readonly ["abiVersion", {
476
- serialize: (value: ABI_VERSIONS) => Buffer;
477
- deserialize: (value: Buffer) => ABI_VERSIONS;
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;
478
476
  }], readonly ["fee", {
479
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
480
- txType: Tag;
481
- rebuildTx: (params: any) => any;
482
- _computingMinFee?: string | undefined;
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;
483
483
  }): string;
484
- serialize(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;
485
485
  deserialize(value: Buffer): string;
486
486
  }], readonly ["ttl", {
487
487
  serialize(value: number): Buffer;
488
488
  deserialize(value: Buffer): number;
489
489
  }], readonly ["amount", {
490
490
  serializeAettos(value: string | undefined): string;
491
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
491
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
492
492
  deserialize(value: Buffer): string;
493
493
  }], readonly ["gasLimit", {
494
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
495
- txType: Tag;
494
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
495
+ tag: Tag;
496
496
  rebuildTx: (params: any) => any;
497
+ unpackTx: typeof import(".").unpackTx;
498
+ buildTx: typeof import(".").buildTx;
497
499
  gasMax: number;
498
500
  _computingGasLimit?: number | undefined;
499
501
  }): Buffer;
500
502
  deserialize(value: Buffer): number;
501
503
  }], readonly ["gasPrice", {
502
504
  serializeAettos(value?: string | undefined): string;
503
- serialize(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;
504
506
  deserialize(value: Buffer): string;
505
- }], 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
+ }]];
506
511
  };
507
512
  readonly 41: {
508
513
  readonly 1: readonly [readonly ["tag", {
509
- serialize(value: number): Buffer;
510
- deserialize(value: Buffer): number;
511
- }], readonly ["VSN", {
512
- serialize(value: number): Buffer;
513
- deserialize(value: Buffer): number;
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;
514
519
  }], readonly ["callerId", {
515
520
  serialize: (value: `ak_${string}`) => Buffer;
516
521
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -525,32 +530,75 @@ export declare const TX_SCHEMA: {
525
530
  deserialize: (value: Buffer) => `ct_${string}`;
526
531
  }], readonly ["gasPrice", {
527
532
  serializeAettos(value?: string | undefined): string;
528
- serialize(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;
529
534
  deserialize(value: Buffer): string;
530
535
  }], readonly ["gasUsed", {
531
536
  serialize(value: number): Buffer;
532
537
  deserialize(value: Buffer): number;
533
- }], readonly ["returnValue", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["returnType", {
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", {
534
542
  serialize: (value: CallReturnType) => Buffer;
535
543
  deserialize: (value: Buffer) => CallReturnType;
536
- }], readonly ["log", FIELD_TYPES.rawBinary]];
544
+ }], readonly ["log", {
545
+ serialize(buffer: Uint8Array): Buffer;
546
+ deserialize(buffer: Buffer): Buffer;
547
+ }]];
537
548
  };
538
- readonly 22: {
549
+ readonly 20: {
539
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", {
540
570
  serialize(value: number): Buffer;
541
571
  deserialize(value: Buffer): number;
542
- }], readonly ["VSN", {
543
- serialize(value: number): Buffer;
544
- deserialize(value: Buffer): number;
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;
545
587
  }], readonly ["accountId", {
546
588
  serialize: (value: `ak_${string}`) => Buffer;
547
589
  deserialize: (value: Buffer) => `ak_${string}`;
548
590
  }], readonly ["nonce", {
549
591
  serialize(value: number): Buffer;
550
592
  deserialize(value: Buffer): number;
551
- }], 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", {
552
600
  serializeAettos(value: string | undefined): string;
553
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
601
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
554
602
  deserialize(value: Buffer): string;
555
603
  }], readonly ["oracleTtlType", {
556
604
  serialize: (value: ORACLE_TTL_TYPES) => Buffer;
@@ -559,28 +607,33 @@ export declare const TX_SCHEMA: {
559
607
  serialize(value: number): Buffer;
560
608
  deserialize(value: Buffer): number;
561
609
  }], readonly ["fee", {
562
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
563
- txType: Tag;
564
- rebuildTx: (params: any) => any;
565
- _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;
566
616
  }): string;
567
- serialize(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;
568
618
  deserialize(value: Buffer): string;
569
619
  }], readonly ["ttl", {
570
620
  serialize(value: number): Buffer;
571
621
  deserialize(value: Buffer): number;
572
622
  }], readonly ["abiVersion", {
573
- serialize: (value: ABI_VERSIONS) => Buffer;
574
- deserialize: (value: Buffer) => ABI_VERSIONS;
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;
575
628
  }]];
576
629
  };
577
630
  readonly 25: {
578
631
  readonly 1: readonly [readonly ["tag", {
579
- serialize(value: number): Buffer;
580
- deserialize(value: Buffer): number;
581
- }], readonly ["VSN", {
582
- serialize(value: number): Buffer;
583
- deserialize(value: Buffer): number;
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;
584
637
  }], readonly ["oracleId", {
585
638
  serialize: (value: `ok_${string}` | `nm_${string}`) => Buffer;
586
639
  deserialize: (value: Buffer) => `ok_${string}` | `nm_${string}`;
@@ -594,12 +647,14 @@ export declare const TX_SCHEMA: {
594
647
  serialize(value: number): Buffer;
595
648
  deserialize(value: Buffer): number;
596
649
  }], readonly ["fee", {
597
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
598
- txType: Tag;
599
- rebuildTx: (params: any) => any;
600
- _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;
601
656
  }): string;
602
- serialize(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;
603
658
  deserialize(value: Buffer): string;
604
659
  }], readonly ["ttl", {
605
660
  serialize(value: number): Buffer;
@@ -608,11 +663,11 @@ export declare const TX_SCHEMA: {
608
663
  };
609
664
  readonly 23: {
610
665
  readonly 1: readonly [readonly ["tag", {
611
- serialize(value: number): Buffer;
612
- deserialize(value: Buffer): number;
613
- }], readonly ["VSN", {
614
- serialize(value: number): Buffer;
615
- deserialize(value: Buffer): number;
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;
616
671
  }], readonly ["senderId", {
617
672
  serialize: (value: `ak_${string}`) => Buffer;
618
673
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -622,9 +677,12 @@ export declare const TX_SCHEMA: {
622
677
  }], readonly ["oracleId", {
623
678
  serialize: (value: `ok_${string}` | `nm_${string}`) => Buffer;
624
679
  deserialize: (value: Buffer) => `ok_${string}` | `nm_${string}`;
625
- }], readonly ["query", FIELD_TYPES.string], readonly ["queryFee", {
680
+ }], readonly ["query", {
681
+ serialize(string: string): Buffer;
682
+ deserialize(buffer: Buffer): string;
683
+ }], readonly ["queryFee", {
626
684
  serializeAettos(value: string | undefined): string;
627
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
685
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
628
686
  deserialize(value: Buffer): string;
629
687
  }], readonly ["queryTtlType", {
630
688
  serialize: (value: ORACLE_TTL_TYPES) => Buffer;
@@ -639,12 +697,14 @@ export declare const TX_SCHEMA: {
639
697
  serialize(value: number): Buffer;
640
698
  deserialize(value: Buffer): number;
641
699
  }], readonly ["fee", {
642
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
643
- txType: Tag;
644
- rebuildTx: (params: any) => any;
645
- _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;
646
706
  }): string;
647
- serialize(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;
648
708
  deserialize(value: Buffer): string;
649
709
  }], readonly ["ttl", {
650
710
  serialize(value: number): Buffer;
@@ -653,30 +713,38 @@ export declare const TX_SCHEMA: {
653
713
  };
654
714
  readonly 24: {
655
715
  readonly 1: readonly [readonly ["tag", {
656
- serialize(value: number): Buffer;
657
- deserialize(value: Buffer): number;
658
- }], readonly ["VSN", {
659
- serialize(value: number): Buffer;
660
- deserialize(value: Buffer): number;
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;
661
721
  }], readonly ["oracleId", {
662
722
  serialize: (value: `ok_${string}`) => Buffer;
663
723
  deserialize: (value: Buffer) => `ok_${string}`;
664
724
  }], readonly ["nonce", {
665
725
  serialize(value: number): Buffer;
666
726
  deserialize(value: Buffer): number;
667
- }], readonly ["queryId", FIELD_TYPES.binary, Encoded.Encoding.OracleQueryId], readonly ["response", FIELD_TYPES.string], readonly ["responseTtlType", {
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", {
668
734
  serialize: (value: ORACLE_TTL_TYPES) => Buffer;
669
735
  deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
670
736
  }], readonly ["responseTtlValue", {
671
737
  serialize(value: number): Buffer;
672
738
  deserialize(value: Buffer): number;
673
739
  }], readonly ["fee", {
674
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
675
- txType: Tag;
676
- rebuildTx: (params: any) => any;
677
- _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;
678
746
  }): string;
679
- serialize(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;
680
748
  deserialize(value: Buffer): string;
681
749
  }], readonly ["ttl", {
682
750
  serialize(value: number): Buffer;
@@ -685,52 +753,63 @@ export declare const TX_SCHEMA: {
685
753
  };
686
754
  readonly 50: {
687
755
  readonly 2: readonly [readonly ["tag", {
688
- serialize(value: number): Buffer;
689
- deserialize(value: Buffer): number;
690
- }], readonly ["VSN", {
691
- serialize(value: number): Buffer;
692
- deserialize(value: Buffer): number;
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;
693
761
  }], readonly ["initiator", {
694
762
  serialize: (value: `ak_${string}`) => Buffer;
695
763
  deserialize: (value: Buffer) => `ak_${string}`;
696
764
  }], readonly ["initiatorAmount", {
697
- serialize(value: import("./field-types/u-int").Int): Buffer;
765
+ serialize(value: import("./constants").Int): Buffer;
698
766
  deserialize(value: Buffer): string;
699
767
  }], readonly ["responder", {
700
768
  serialize: (value: `ak_${string}`) => Buffer;
701
769
  deserialize: (value: Buffer) => `ak_${string}`;
702
770
  }], readonly ["responderAmount", {
703
- serialize(value: import("./field-types/u-int").Int): Buffer;
771
+ serialize(value: import("./constants").Int): Buffer;
704
772
  deserialize(value: Buffer): string;
705
773
  }], readonly ["channelReserve", {
706
- serialize(value: import("./field-types/u-int").Int): Buffer;
774
+ serialize(value: import("./constants").Int): Buffer;
707
775
  deserialize(value: Buffer): string;
708
776
  }], readonly ["lockPeriod", {
709
- serialize(value: import("./field-types/u-int").Int): Buffer;
777
+ serialize(value: import("./constants").Int): Buffer;
710
778
  deserialize(value: Buffer): string;
711
779
  }], readonly ["ttl", {
712
780
  serialize(value: number): Buffer;
713
781
  deserialize(value: Buffer): number;
714
782
  }], readonly ["fee", {
715
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
716
- txType: Tag;
717
- rebuildTx: (params: any) => any;
718
- _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;
719
789
  }): string;
720
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
790
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
721
791
  deserialize(value: Buffer): string;
722
- }], readonly ["initiatorDelegateIds", FIELD_TYPES.string], readonly ["responderDelegateIds", FIELD_TYPES.string], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], readonly ["nonce", {
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", {
723
802
  serialize(value: number): Buffer;
724
803
  deserialize(value: Buffer): number;
725
804
  }]];
726
805
  };
727
806
  readonly 53: {
728
807
  readonly 1: readonly [readonly ["tag", {
729
- serialize(value: number): Buffer;
730
- deserialize(value: Buffer): number;
731
- }], readonly ["VSN", {
732
- serialize(value: number): Buffer;
733
- deserialize(value: Buffer): number;
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;
734
813
  }], readonly ["channelId", {
735
814
  serialize: (value: `ch_${string}`) => Buffer;
736
815
  deserialize: (value: Buffer) => `ch_${string}`;
@@ -738,21 +817,23 @@ export declare const TX_SCHEMA: {
738
817
  serialize: (value: `ak_${string}`) => Buffer;
739
818
  deserialize: (value: Buffer) => `ak_${string}`;
740
819
  }], readonly ["initiatorAmountFinal", {
741
- serialize(value: import("./field-types/u-int").Int): Buffer;
820
+ serialize(value: import("./constants").Int): Buffer;
742
821
  deserialize(value: Buffer): string;
743
822
  }], readonly ["responderAmountFinal", {
744
- serialize(value: import("./field-types/u-int").Int): Buffer;
823
+ serialize(value: import("./constants").Int): Buffer;
745
824
  deserialize(value: Buffer): string;
746
825
  }], readonly ["ttl", {
747
826
  serialize(value: number): Buffer;
748
827
  deserialize(value: Buffer): number;
749
828
  }], readonly ["fee", {
750
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
751
- txType: Tag;
752
- rebuildTx: (params: any) => any;
753
- _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;
754
835
  }): string;
755
- serialize(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;
756
837
  deserialize(value: Buffer): string;
757
838
  }], readonly ["nonce", {
758
839
  serialize(value: number): Buffer;
@@ -761,27 +842,39 @@ export declare const TX_SCHEMA: {
761
842
  };
762
843
  readonly 54: {
763
844
  readonly 1: readonly [readonly ["tag", {
764
- serialize(value: number): Buffer;
765
- deserialize(value: Buffer): number;
766
- }], readonly ["VSN", {
767
- serialize(value: number): Buffer;
768
- deserialize(value: Buffer): number;
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;
769
850
  }], readonly ["channelId", {
770
851
  serialize: (value: `ch_${string}`) => Buffer;
771
852
  deserialize: (value: Buffer) => `ch_${string}`;
772
853
  }], readonly ["fromId", {
773
854
  serialize: (value: `ak_${string}`) => Buffer;
774
855
  deserialize: (value: Buffer) => `ak_${string}`;
775
- }], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["poi", FIELD_TYPES.binary, Encoded.Encoding.Poi], readonly ["ttl", {
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", {
776
867
  serialize(value: number): Buffer;
777
868
  deserialize(value: Buffer): number;
778
869
  }], readonly ["fee", {
779
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
780
- txType: Tag;
781
- rebuildTx: (params: any) => any;
782
- _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;
783
876
  }): string;
784
- serialize(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;
785
878
  deserialize(value: Buffer): string;
786
879
  }], readonly ["nonce", {
787
880
  serialize(value: number): Buffer;
@@ -790,27 +883,39 @@ export declare const TX_SCHEMA: {
790
883
  };
791
884
  readonly 55: {
792
885
  readonly 1: readonly [readonly ["tag", {
793
- serialize(value: number): Buffer;
794
- deserialize(value: Buffer): number;
795
- }], readonly ["VSN", {
796
- serialize(value: number): Buffer;
797
- deserialize(value: Buffer): number;
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;
798
891
  }], readonly ["channelId", {
799
892
  serialize: (value: `ch_${string}`) => Buffer;
800
893
  deserialize: (value: Buffer) => `ch_${string}`;
801
894
  }], readonly ["fromId", {
802
895
  serialize: (value: `ak_${string}`) => Buffer;
803
896
  deserialize: (value: Buffer) => `ak_${string}`;
804
- }], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["poi", FIELD_TYPES.binary, Encoded.Encoding.Poi], readonly ["ttl", {
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", {
805
908
  serialize(value: number): Buffer;
806
909
  deserialize(value: Buffer): number;
807
910
  }], readonly ["fee", {
808
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
809
- txType: Tag;
810
- rebuildTx: (params: any) => any;
811
- _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;
812
917
  }): string;
813
- serialize(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;
814
919
  deserialize(value: Buffer): string;
815
920
  }], readonly ["nonce", {
816
921
  serialize(value: number): Buffer;
@@ -819,11 +924,11 @@ export declare const TX_SCHEMA: {
819
924
  };
820
925
  readonly 51: {
821
926
  readonly 1: readonly [readonly ["tag", {
822
- serialize(value: number): Buffer;
823
- deserialize(value: Buffer): number;
824
- }], readonly ["VSN", {
825
- serialize(value: number): Buffer;
826
- deserialize(value: Buffer): number;
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;
827
932
  }], readonly ["channelId", {
828
933
  serialize: (value: `ch_${string}`) => Buffer;
829
934
  deserialize: (value: Buffer) => `ch_${string}`;
@@ -831,20 +936,25 @@ export declare const TX_SCHEMA: {
831
936
  serialize: (value: `ak_${string}`) => Buffer;
832
937
  deserialize: (value: Buffer) => `ak_${string}`;
833
938
  }], readonly ["amount", {
834
- serialize(value: import("./field-types/u-int").Int): Buffer;
939
+ serialize(value: import("./constants").Int): Buffer;
835
940
  deserialize(value: Buffer): string;
836
941
  }], readonly ["ttl", {
837
942
  serialize(value: number): Buffer;
838
943
  deserialize(value: Buffer): number;
839
944
  }], readonly ["fee", {
840
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
841
- txType: Tag;
842
- rebuildTx: (params: any) => any;
843
- _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;
844
951
  }): string;
845
- serialize(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;
846
953
  deserialize(value: Buffer): string;
847
- }], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], 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", {
848
958
  serialize(value: number): Buffer;
849
959
  deserialize(value: Buffer): number;
850
960
  }], readonly ["nonce", {
@@ -854,11 +964,11 @@ export declare const TX_SCHEMA: {
854
964
  };
855
965
  readonly 52: {
856
966
  readonly 1: readonly [readonly ["tag", {
857
- serialize(value: number): Buffer;
858
- deserialize(value: Buffer): number;
859
- }], readonly ["VSN", {
860
- serialize(value: number): Buffer;
861
- deserialize(value: Buffer): number;
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;
862
972
  }], readonly ["channelId", {
863
973
  serialize: (value: `ch_${string}`) => Buffer;
864
974
  deserialize: (value: Buffer) => `ch_${string}`;
@@ -866,20 +976,25 @@ export declare const TX_SCHEMA: {
866
976
  serialize: (value: `ak_${string}`) => Buffer;
867
977
  deserialize: (value: Buffer) => `ak_${string}`;
868
978
  }], readonly ["amount", {
869
- serialize(value: import("./field-types/u-int").Int): Buffer;
979
+ serialize(value: import("./constants").Int): Buffer;
870
980
  deserialize(value: Buffer): string;
871
981
  }], readonly ["ttl", {
872
982
  serialize(value: number): Buffer;
873
983
  deserialize(value: Buffer): number;
874
984
  }], readonly ["fee", {
875
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
876
- txType: Tag;
877
- rebuildTx: (params: any) => any;
878
- _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;
879
991
  }): string;
880
- serialize(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;
881
993
  deserialize(value: Buffer): string;
882
- }], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], 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", {
883
998
  serialize(value: number): Buffer;
884
999
  deserialize(value: Buffer): number;
885
1000
  }], readonly ["nonce", {
@@ -889,11 +1004,11 @@ export declare const TX_SCHEMA: {
889
1004
  };
890
1005
  readonly 56: {
891
1006
  readonly 1: readonly [readonly ["tag", {
892
- serialize(value: number): Buffer;
893
- deserialize(value: Buffer): number;
894
- }], readonly ["VSN", {
895
- serialize(value: number): Buffer;
896
- deserialize(value: Buffer): number;
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;
897
1012
  }], readonly ["channelId", {
898
1013
  serialize: (value: `ch_${string}`) => Buffer;
899
1014
  deserialize: (value: Buffer) => `ch_${string}`;
@@ -901,21 +1016,23 @@ export declare const TX_SCHEMA: {
901
1016
  serialize: (value: `ak_${string}`) => Buffer;
902
1017
  deserialize: (value: Buffer) => `ak_${string}`;
903
1018
  }], readonly ["initiatorAmountFinal", {
904
- serialize(value: import("./field-types/u-int").Int): Buffer;
1019
+ serialize(value: import("./constants").Int): Buffer;
905
1020
  deserialize(value: Buffer): string;
906
1021
  }], readonly ["responderAmountFinal", {
907
- serialize(value: import("./field-types/u-int").Int): Buffer;
1022
+ serialize(value: import("./constants").Int): Buffer;
908
1023
  deserialize(value: Buffer): string;
909
1024
  }], readonly ["ttl", {
910
1025
  serialize(value: number): Buffer;
911
1026
  deserialize(value: Buffer): number;
912
1027
  }], readonly ["fee", {
913
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
914
- txType: Tag;
915
- rebuildTx: (params: any) => any;
916
- _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;
917
1034
  }): string;
918
- serialize(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;
919
1036
  deserialize(value: Buffer): string;
920
1037
  }], readonly ["nonce", {
921
1038
  serialize(value: number): Buffer;
@@ -924,30 +1041,44 @@ export declare const TX_SCHEMA: {
924
1041
  };
925
1042
  readonly 521: {
926
1043
  readonly 1: readonly [readonly ["tag", {
927
- serialize(value: number): Buffer;
928
- deserialize(value: Buffer): number;
929
- }], readonly ["VSN", {
930
- serialize(value: number): Buffer;
931
- deserialize(value: Buffer): number;
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;
932
1049
  }], readonly ["channelId", {
933
1050
  serialize: (value: `ch_${string}`) => Buffer;
934
1051
  deserialize: (value: Buffer) => `ch_${string}`;
935
1052
  }], readonly ["fromId", {
936
1053
  serialize: (value: `ak_${string}`) => Buffer;
937
1054
  deserialize: (value: Buffer) => `ak_${string}`;
938
- }], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["round", {
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", {
939
1059
  serialize(value: number): Buffer;
940
1060
  deserialize(value: Buffer): number;
941
- }], readonly ["update", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], readonly ["offChainTrees", FIELD_TYPES.stateTree], readonly ["ttl", {
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", {
942
1071
  serialize(value: number): Buffer;
943
1072
  deserialize(value: Buffer): number;
944
1073
  }], readonly ["fee", {
945
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
946
- txType: Tag;
947
- rebuildTx: (params: any) => any;
948
- _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;
949
1080
  }): string;
950
- serialize(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;
951
1082
  deserialize(value: Buffer): string;
952
1083
  }], readonly ["nonce", {
953
1084
  serialize(value: number): Buffer;
@@ -956,26 +1087,29 @@ export declare const TX_SCHEMA: {
956
1087
  };
957
1088
  readonly 57: {
958
1089
  readonly 2: readonly [readonly ["tag", {
959
- serialize(value: number): Buffer;
960
- deserialize(value: Buffer): number;
961
- }], readonly ["VSN", {
962
- serialize(value: number): Buffer;
963
- deserialize(value: Buffer): number;
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;
964
1095
  }], readonly ["channelId", {
965
1096
  serialize: (value: `ch_${string}`) => Buffer;
966
1097
  deserialize: (value: Buffer) => `ch_${string}`;
967
1098
  }], readonly ["round", {
968
1099
  serialize(value: number): Buffer;
969
1100
  deserialize(value: Buffer): number;
970
- }], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State]];
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
+ }]];
971
1105
  };
972
1106
  readonly 58: {
973
1107
  readonly 3: readonly [readonly ["tag", {
974
- serialize(value: number): Buffer;
975
- deserialize(value: Buffer): number;
976
- }], readonly ["VSN", {
977
- serialize(value: number): Buffer;
978
- deserialize(value: Buffer): number;
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;
979
1113
  }], readonly ["initiator", {
980
1114
  serialize: (value: `ak_${string}`) => Buffer;
981
1115
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -983,60 +1117,74 @@ export declare const TX_SCHEMA: {
983
1117
  serialize: (value: `ak_${string}`) => Buffer;
984
1118
  deserialize: (value: Buffer) => `ak_${string}`;
985
1119
  }], readonly ["channelAmount", {
986
- serialize(value: import("./field-types/u-int").Int): Buffer;
1120
+ serialize(value: import("./constants").Int): Buffer;
987
1121
  deserialize(value: Buffer): string;
988
1122
  }], readonly ["initiatorAmount", {
989
- serialize(value: import("./field-types/u-int").Int): Buffer;
1123
+ serialize(value: import("./constants").Int): Buffer;
990
1124
  deserialize(value: Buffer): string;
991
1125
  }], readonly ["responderAmount", {
992
- serialize(value: import("./field-types/u-int").Int): Buffer;
1126
+ serialize(value: import("./constants").Int): Buffer;
993
1127
  deserialize(value: Buffer): string;
994
1128
  }], readonly ["channelReserve", {
995
- serialize(value: import("./field-types/u-int").Int): Buffer;
1129
+ serialize(value: import("./constants").Int): Buffer;
996
1130
  deserialize(value: Buffer): string;
997
1131
  }], readonly ["initiatorDelegateIds", {
998
- serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[]) => Buffer[];
999
- deserialize: (value: Buffer[]) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
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}`)[];
1000
1134
  }], readonly ["responderDelegateIds", {
1001
- serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[]) => Buffer[];
1002
- deserialize: (value: Buffer[]) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1003
- }], readonly ["stateHash", FIELD_TYPES.hex], readonly ["round", {
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", {
1004
1141
  serialize(value: number): Buffer;
1005
1142
  deserialize(value: Buffer): number;
1006
1143
  }], readonly ["soloRound", {
1007
- serialize(value: import("./field-types/u-int").Int): Buffer;
1144
+ serialize(value: import("./constants").Int): Buffer;
1008
1145
  deserialize(value: Buffer): string;
1009
1146
  }], readonly ["lockPeriod", {
1010
- serialize(value: import("./field-types/u-int").Int): Buffer;
1147
+ serialize(value: import("./constants").Int): Buffer;
1011
1148
  deserialize(value: Buffer): string;
1012
1149
  }], readonly ["lockedUntil", {
1013
- serialize(value: import("./field-types/u-int").Int): Buffer;
1014
- deserialize(value: Buffer): string;
1015
- }], 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
+ }]];
1016
1159
  };
1017
1160
  readonly 59: {
1018
1161
  readonly 1: readonly [readonly ["tag", {
1019
- serialize(value: number): Buffer;
1020
- deserialize(value: Buffer): number;
1021
- }], readonly ["VSN", {
1022
- serialize(value: number): Buffer;
1023
- deserialize(value: Buffer): number;
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;
1024
1167
  }], readonly ["channelId", {
1025
1168
  serialize: (value: `ch_${string}`) => Buffer;
1026
1169
  deserialize: (value: Buffer) => `ch_${string}`;
1027
1170
  }], readonly ["fromId", {
1028
1171
  serialize: (value: `ak_${string}`) => Buffer;
1029
1172
  deserialize: (value: Buffer) => `ak_${string}`;
1030
- }], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["ttl", {
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", {
1031
1177
  serialize(value: number): Buffer;
1032
1178
  deserialize(value: Buffer): number;
1033
1179
  }], readonly ["fee", {
1034
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1035
- txType: Tag;
1036
- rebuildTx: (params: any) => any;
1037
- _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;
1038
1186
  }): string;
1039
- serialize(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;
1040
1188
  deserialize(value: Buffer): string;
1041
1189
  }], readonly ["nonce", {
1042
1190
  serialize(value: number): Buffer;
@@ -1045,11 +1193,11 @@ export declare const TX_SCHEMA: {
1045
1193
  };
1046
1194
  readonly 570: {
1047
1195
  readonly 1: readonly [readonly ["tag", {
1048
- serialize(value: number): Buffer;
1049
- deserialize(value: Buffer): number;
1050
- }], readonly ["VSN", {
1051
- serialize(value: number): Buffer;
1052
- deserialize(value: Buffer): number;
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;
1053
1201
  }], readonly ["from", {
1054
1202
  serialize: (value: `ak_${string}`) => Buffer;
1055
1203
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -1057,62 +1205,73 @@ export declare const TX_SCHEMA: {
1057
1205
  serialize: (value: `ak_${string}`) => Buffer;
1058
1206
  deserialize: (value: Buffer) => `ak_${string}`;
1059
1207
  }], readonly ["amount", {
1060
- serialize(value: import("./field-types/u-int").Int): Buffer;
1208
+ serialize(value: import("./constants").Int): Buffer;
1061
1209
  deserialize(value: Buffer): string;
1062
1210
  }]];
1063
1211
  };
1064
1212
  readonly 571: {
1065
1213
  readonly 1: readonly [readonly ["tag", {
1066
- serialize(value: number): Buffer;
1067
- deserialize(value: Buffer): number;
1068
- }], readonly ["VSN", {
1069
- serialize(value: number): Buffer;
1070
- deserialize(value: Buffer): number;
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;
1071
1219
  }], readonly ["from", {
1072
1220
  serialize: (value: `ak_${string}`) => Buffer;
1073
1221
  deserialize: (value: Buffer) => `ak_${string}`;
1074
1222
  }], readonly ["amount", {
1075
- serialize(value: import("./field-types/u-int").Int): Buffer;
1223
+ serialize(value: import("./constants").Int): Buffer;
1076
1224
  deserialize(value: Buffer): string;
1077
1225
  }]];
1078
1226
  };
1079
1227
  readonly 572: {
1080
1228
  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;
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;
1086
1234
  }], readonly ["from", {
1087
1235
  serialize: (value: `ak_${string}`) => Buffer;
1088
1236
  deserialize: (value: Buffer) => `ak_${string}`;
1089
1237
  }], readonly ["amount", {
1090
- serialize(value: import("./field-types/u-int").Int): Buffer;
1238
+ serialize(value: import("./constants").Int): Buffer;
1091
1239
  deserialize(value: Buffer): string;
1092
1240
  }]];
1093
1241
  };
1094
1242
  readonly 573: {
1095
1243
  readonly 1: readonly [readonly ["tag", {
1096
- serialize(value: number): Buffer;
1097
- deserialize(value: Buffer): number;
1098
- }], readonly ["VSN", {
1099
- serialize(value: number): Buffer;
1100
- deserialize(value: Buffer): number;
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;
1101
1249
  }], readonly ["owner", {
1102
1250
  serialize: (value: `ak_${string}`) => Buffer;
1103
1251
  deserialize: (value: Buffer) => `ak_${string}`;
1104
- }], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["deposit", {
1105
- serialize(value: import("./field-types/u-int").Int): Buffer;
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;
1106
1262
  deserialize(value: Buffer): string;
1107
- }], 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
+ }]];
1108
1267
  };
1109
1268
  readonly 574: {
1110
1269
  readonly 1: readonly [readonly ["tag", {
1111
- serialize(value: number): Buffer;
1112
- deserialize(value: Buffer): number;
1113
- }], readonly ["VSN", {
1114
- serialize(value: number): Buffer;
1115
- deserialize(value: Buffer): number;
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;
1116
1275
  }], readonly ["caller", {
1117
1276
  serialize: (value: `ak_${string}`) => Buffer;
1118
1277
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -1120,19 +1279,30 @@ export declare const TX_SCHEMA: {
1120
1279
  serialize: (value: `ct_${string}`) => Buffer;
1121
1280
  deserialize: (value: Buffer) => `ct_${string}`;
1122
1281
  }], readonly ["abiVersion", {
1123
- serialize: (value: ABI_VERSIONS) => Buffer;
1124
- deserialize: (value: Buffer) => ABI_VERSIONS;
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;
1125
1287
  }], readonly ["amount", {
1126
- serialize(value: import("./field-types/u-int").Int): Buffer;
1127
- deserialize(value: Buffer): string;
1128
- }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["callStack", FIELD_TYPES.callStack], readonly ["gasPrice", {
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", {
1129
1297
  serializeAettos(value?: string | undefined): string;
1130
- serialize(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;
1131
1299
  deserialize(value: Buffer): string;
1132
1300
  }], readonly ["gasLimit", {
1133
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
1134
- txType: Tag;
1301
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
1302
+ tag: Tag;
1135
1303
  rebuildTx: (params: any) => any;
1304
+ unpackTx: typeof import(".").unpackTx;
1305
+ buildTx: typeof import(".").buildTx;
1136
1306
  gasMax: number;
1137
1307
  _computingGasLimit?: number | undefined;
1138
1308
  }): Buffer;
@@ -1141,192 +1311,1557 @@ export declare const TX_SCHEMA: {
1141
1311
  };
1142
1312
  readonly 575: {
1143
1313
  readonly 1: readonly [readonly ["tag", {
1144
- serialize(value: number): Buffer;
1145
- deserialize(value: Buffer): number;
1146
- }], readonly ["VSN", {
1147
- serialize(value: number): Buffer;
1148
- deserialize(value: Buffer): number;
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;
1149
1319
  }], readonly ["channelId", {
1150
1320
  serialize: (value: `ch_${string}`) => Buffer;
1151
1321
  deserialize: (value: Buffer) => `ch_${string}`;
1152
1322
  }], readonly ["round", {
1153
1323
  serialize(value: number): Buffer;
1154
1324
  deserialize(value: Buffer): number;
1155
- }], readonly ["role", FIELD_TYPES.string], readonly ["pubkey", {
1325
+ }], readonly ["role", {
1326
+ serialize(string: string): Buffer;
1327
+ deserialize(buffer: Buffer): string;
1328
+ }], readonly ["pubkey", {
1156
1329
  serialize: (value: `ak_${string}`) => Buffer;
1157
1330
  deserialize: (value: Buffer) => `ak_${string}`;
1158
1331
  }]];
1159
1332
  };
1160
1333
  readonly 60: {
1161
1334
  readonly 1: readonly [readonly ["tag", {
1162
- serialize(value: number): Buffer;
1163
- deserialize(value: Buffer): number;
1164
- }], readonly ["VSN", {
1165
- serialize(value: number): Buffer;
1166
- deserialize(value: Buffer): number;
1167
- }], 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
+ }]];
1168
2575
  };
1169
2576
  readonly 62: {
1170
2577
  readonly 1: readonly [readonly ["tag", {
1171
- serialize(value: number): Buffer;
1172
- deserialize(value: Buffer): number;
1173
- }], readonly ["VSN", {
1174
- serialize(value: number): Buffer;
1175
- deserialize(value: Buffer): number;
1176
- }], 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
+ }]];
1177
2626
  };
1178
2627
  readonly 63: {
1179
2628
  readonly 1: readonly [readonly ["tag", {
1180
- serialize(value: number): Buffer;
1181
- deserialize(value: Buffer): number;
1182
- }], readonly ["VSN", {
1183
- serialize(value: number): Buffer;
1184
- deserialize(value: Buffer): number;
1185
- }], 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
+ }]];
1186
2638
  };
1187
2639
  readonly 64: {
1188
2640
  readonly 1: readonly [readonly ["tag", {
1189
- serialize(value: number): Buffer;
1190
- deserialize(value: Buffer): number;
1191
- }], readonly ["VSN", {
1192
- serialize(value: number): Buffer;
1193
- deserialize(value: Buffer): number;
1194
- }], 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
+ }]];
1195
2653
  };
1196
2654
  readonly 621: {
1197
2655
  readonly 1: readonly [readonly ["tag", {
1198
- serialize(value: number): Buffer;
1199
- deserialize(value: Buffer): number;
1200
- }], readonly ["VSN", {
1201
- serialize(value: number): Buffer;
1202
- deserialize(value: Buffer): number;
1203
- }], 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
+ }]];
1204
2669
  };
1205
2670
  readonly 622: {
1206
2671
  readonly 1: readonly [readonly ["tag", {
1207
- serialize(value: number): Buffer;
1208
- deserialize(value: Buffer): number;
1209
- }], readonly ["VSN", {
1210
- serialize(value: number): Buffer;
1211
- deserialize(value: Buffer): number;
1212
- }], 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
+ }]];
1213
2685
  };
1214
2686
  readonly 623: {
1215
2687
  readonly 1: readonly [readonly ["tag", {
1216
- serialize(value: number): Buffer;
1217
- deserialize(value: Buffer): number;
1218
- }], readonly ["VSN", {
1219
- serialize(value: number): Buffer;
1220
- deserialize(value: Buffer): number;
1221
- }], 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
+ }]];
1222
2701
  };
1223
2702
  readonly 624: {
1224
2703
  readonly 1: readonly [readonly ["tag", {
1225
- serialize(value: number): Buffer;
1226
- deserialize(value: Buffer): number;
1227
- }], readonly ["VSN", {
1228
- serialize(value: number): Buffer;
1229
- deserialize(value: Buffer): number;
1230
- }], 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
+ }]];
1231
2717
  };
1232
2718
  readonly 625: {
1233
2719
  readonly 1: readonly [readonly ["tag", {
1234
- serialize(value: number): Buffer;
1235
- deserialize(value: Buffer): number;
1236
- }], readonly ["VSN", {
1237
- serialize(value: number): Buffer;
1238
- deserialize(value: Buffer): number;
1239
- }], 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
+ }]];
1240
2733
  };
1241
2734
  readonly 626: {
1242
2735
  readonly 1: readonly [readonly ["tag", {
1243
- serialize(value: number): Buffer;
1244
- deserialize(value: Buffer): number;
1245
- }], readonly ["VSN", {
1246
- serialize(value: number): Buffer;
1247
- deserialize(value: Buffer): number;
1248
- }], 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
+ }]];
1249
2749
  };
1250
2750
  readonly 80: {
1251
2751
  readonly 1: readonly [readonly ["tag", {
1252
- serialize(value: number): Buffer;
1253
- deserialize(value: Buffer): number;
1254
- }], readonly ["VSN", {
1255
- serialize(value: number): Buffer;
1256
- deserialize(value: Buffer): number;
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;
1257
2757
  }], readonly ["ownerId", {
1258
2758
  serialize: (value: `ak_${string}`) => Buffer;
1259
2759
  deserialize: (value: Buffer) => `ak_${string}`;
1260
2760
  }], readonly ["nonce", {
1261
2761
  serialize(value: number): Buffer;
1262
2762
  deserialize(value: Buffer): number;
1263
- }], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["authFun", FIELD_TYPES.rawBinary], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
1264
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1265
- txType: Tag;
1266
- rebuildTx: (params: any) => any;
1267
- _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;
1268
2781
  }): string;
1269
- serialize(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;
1270
2783
  deserialize(value: Buffer): string;
1271
2784
  }], readonly ["ttl", {
1272
2785
  serialize(value: number): Buffer;
1273
2786
  deserialize(value: Buffer): number;
1274
2787
  }], readonly ["gasLimit", {
1275
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
1276
- txType: Tag;
2788
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
2789
+ tag: Tag;
1277
2790
  rebuildTx: (params: any) => any;
2791
+ unpackTx: typeof import(".").unpackTx;
2792
+ buildTx: typeof import(".").buildTx;
1278
2793
  gasMax: number;
1279
2794
  _computingGasLimit?: number | undefined;
1280
2795
  }): Buffer;
1281
2796
  deserialize(value: Buffer): number;
1282
2797
  }], readonly ["gasPrice", {
1283
2798
  serializeAettos(value?: string | undefined): string;
1284
- serialize(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;
1285
2800
  deserialize(value: Buffer): string;
1286
- }], 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
+ }]];
1287
2805
  };
1288
2806
  readonly 81: {
1289
2807
  readonly 2: readonly [readonly ["tag", {
1290
- serialize(value: number): Buffer;
1291
- deserialize(value: Buffer): number;
1292
- }], readonly ["VSN", {
1293
- serialize(value: number): Buffer;
1294
- deserialize(value: Buffer): number;
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;
1295
2813
  }], readonly ["gaId", {
1296
2814
  serialize: (value: `ak_${string}`) => Buffer;
1297
2815
  deserialize: (value: Buffer) => `ak_${string}`;
1298
- }], readonly ["authData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["abiVersion", {
1299
- serialize: (value: ABI_VERSIONS) => Buffer;
1300
- deserialize: (value: Buffer) => ABI_VERSIONS;
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;
1301
2825
  }], readonly ["fee", {
1302
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1303
- txType: Tag;
1304
- rebuildTx: (params: any) => any;
1305
- _computingMinFee?: string | undefined;
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;
1306
2832
  }): string;
1307
- serialize(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;
1308
2834
  deserialize(value: Buffer): string;
1309
2835
  }], readonly ["gasLimit", {
1310
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
1311
- txType: Tag;
2836
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
2837
+ tag: Tag;
1312
2838
  rebuildTx: (params: any) => any;
2839
+ unpackTx: typeof import(".").unpackTx;
2840
+ buildTx: typeof import(".").buildTx;
1313
2841
  gasMax: number;
1314
2842
  _computingGasLimit?: number | undefined;
1315
2843
  }): Buffer;
1316
2844
  deserialize(value: Buffer): number;
1317
2845
  }], readonly ["gasPrice", {
1318
2846
  serializeAettos(value?: string | undefined): string;
1319
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1320
- deserialize(value: Buffer): string;
1321
- }], 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
+ }]];
1322
2857
  };
1323
2858
  readonly 82: {
1324
2859
  readonly 1: readonly [readonly ["tag", {
1325
- serialize(value: number): Buffer;
1326
- deserialize(value: Buffer): number;
1327
- }], readonly ["VSN", {
1328
- serialize(value: number): Buffer;
1329
- deserialize(value: Buffer): number;
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;
1330
2865
  }], readonly ["payerId", {
1331
2866
  serialize: (value: `ak_${string}`) => Buffer;
1332
2867
  deserialize: (value: Buffer) => `ak_${string}`;
@@ -1334,27 +2869,32 @@ export declare const TX_SCHEMA: {
1334
2869
  serialize(value: number): Buffer;
1335
2870
  deserialize(value: Buffer): number;
1336
2871
  }], readonly ["fee", {
1337
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1338
- txType: Tag;
1339
- rebuildTx: (params: any) => any;
1340
- _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;
1341
2878
  }): string;
1342
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1343
- deserialize(value: Buffer): string;
1344
- }], 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
+ }]];
1345
2889
  };
1346
- readonly 70: {
1347
- readonly 3: readonly [readonly ["tag", {
1348
- serialize(value: number): Buffer;
1349
- deserialize(value: Buffer): number;
1350
- }], readonly ["VSN", {
1351
- serialize(value: number): Buffer;
1352
- deserialize(value: Buffer): number;
1353
- }], 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]>;
1354
2894
  };
1355
2895
  };
1356
2896
  export type TxTypeSchemas = {
1357
- [key in Tag]: BuildTxArgBySchema<typeof TX_SCHEMA[key][keyof typeof TX_SCHEMA[key]]>;
2897
+ [key in Tag]: TxTypeSchemasNotCombined[key][keyof TxTypeSchemasNotCombined[key]];
1358
2898
  };
1359
2899
  export type TxSchema = TxTypeSchemas[Tag];
1360
2900
  export type TxParamsCommon = Partial<UnionToIntersection<TxSchema>>;