@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,150 +31,45 @@ 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 [
75
- VM_VERSIONS.FATE_2
76
- ];
77
- readonly abiVersion: readonly [
78
- ABI_VERSIONS.FATE
79
- ];
80
- };
81
- readonly 43: {
82
- readonly vmVersion: readonly [
83
- ];
84
- readonly abiVersion: readonly [
85
- ABI_VERSIONS.FATE,
86
- ABI_VERSIONS.SOPHIA
87
- ];
88
- };
89
- readonly 22: {
90
- readonly vmVersion: readonly [
91
- ];
92
- readonly abiVersion: readonly [
93
- ABI_VERSIONS.NO_ABI,
94
- ABI_VERSIONS.SOPHIA
95
- ];
96
- };
97
- };
98
- };
99
- type PrefixType<Prefix> = Prefix extends Encoding ? Encoded.Generic<Prefix> : Prefix extends readonly Encoding[] ? Encoded.Generic<Prefix[number]> : Encoded.Generic<any>;
100
- /**
101
- * @category transaction builder
102
- */
103
- export interface CtVersion {
104
- vmVersion: VM_VERSIONS;
105
- abiVersion: ABI_VERSIONS;
106
- }
107
- /**
108
- * @category transaction builder
109
- */
110
- export declare enum FIELD_TYPES {
111
- string = 0,
112
- binary = 1,
113
- bool = 2,
114
- hex = 3,
115
- rlpBinary = 4,
116
- rlpBinaries = 5,
117
- rawBinary = 6,
118
- signatures = 7,
119
- offChainUpdates = 8,
120
- callStack = 9,
121
- proofOfInclusion = 10,
122
- mptrees = 11,
123
- ctVersion = 12,
124
- sophiaCodeTypeInfo = 13,
125
- payload = 14,
126
- stateTree = 15
127
- }
128
- interface BuildFieldTypes<Prefix extends undefined | Encoding | readonly Encoding[]> {
129
- [FIELD_TYPES.string]: string;
130
- [FIELD_TYPES.binary]: PrefixType<Prefix>;
131
- [FIELD_TYPES.bool]: Boolean;
132
- [FIELD_TYPES.hex]: string;
133
- [FIELD_TYPES.rlpBinary]: any;
134
- [FIELD_TYPES.rlpBinaries]: any[];
135
- [FIELD_TYPES.rawBinary]: Uint8Array;
136
- [FIELD_TYPES.signatures]: Uint8Array[];
137
- [FIELD_TYPES.offChainUpdates]: any;
138
- [FIELD_TYPES.callStack]: any;
139
- [FIELD_TYPES.proofOfInclusion]: any;
140
- [FIELD_TYPES.mptrees]: MPTree[];
141
- [FIELD_TYPES.ctVersion]: CtVersion;
142
- [FIELD_TYPES.sophiaCodeTypeInfo]: any;
143
- [FIELD_TYPES.payload]: string | undefined;
144
- [FIELD_TYPES.stateTree]: any;
145
- }
146
41
  type TxElem = readonly [
147
42
  string,
148
- FIELD_TYPES | Field
149
- ] | readonly [
150
- string,
151
- FIELD_TYPES,
152
- Encoding | readonly Encoding[]
43
+ Field
153
44
  ];
154
- 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;
45
+ type BuildTxArgBySchemaType<Type extends Field> = Parameters<Type['serialize']>[0];
155
46
  type NullablePartial<T, NK extends keyof T = {
156
47
  [K in keyof T]: undefined extends T[K] ? K : never;
157
48
  }[keyof T]> = Partial<Pick<T, NK>> & Omit<T, NK>;
158
49
  type BuildTxArgBySchema<SchemaLine> = UnionToIntersection<SchemaLine extends ReadonlyArray<infer Elem> ? Elem extends TxElem ? NullablePartial<{
159
- [k in Elem[0]]: BuildTxArgBySchemaType<Elem[1], Elem[2]>;
50
+ [k in Elem[0]]: BuildTxArgBySchemaType<Elem[1]>;
160
51
  }> : never : never>;
161
52
  export type RawTxObject<Tx extends TxSchema> = {
162
53
  [k in keyof Tx]-?: Tx[k] extends BigNumber ? string : Tx[k];
163
54
  };
55
+ /**
56
+ * @see {@link https://github.com/aeternity/protocol/blob/c007deeac4a01e401238412801ac7084ac72d60e/serializations.md#accounts-version-1-basic-accounts}
57
+ */
164
58
  export declare const TX_SCHEMA: {
165
59
  readonly 10: {
166
60
  readonly 1: readonly [
167
61
  readonly [
168
62
  "tag",
169
63
  {
170
- serialize(value: number): Buffer;
171
- deserialize(value: Buffer): number;
64
+ serialize: (value?: Tag.Account | undefined) => Buffer;
65
+ deserialize: (value: Buffer) => Tag.Account;
172
66
  }
173
67
  ],
174
68
  readonly [
175
- "VSN",
69
+ "version",
176
70
  {
177
- serialize(value: number): Buffer;
178
- deserialize(value: Buffer): number;
71
+ serialize: (value?: 1 | undefined) => Buffer;
72
+ deserialize: (value: Buffer) => 1;
179
73
  }
180
74
  ],
181
75
  readonly [
@@ -188,7 +82,7 @@ export declare const TX_SCHEMA: {
188
82
  readonly [
189
83
  "balance",
190
84
  {
191
- serialize(value: import("./field-types/u-int").Int): Buffer;
85
+ serialize(value: import("./constants").Int): Buffer;
192
86
  deserialize(value: Buffer): string;
193
87
  }
194
88
  ]
@@ -197,21 +91,21 @@ export declare const TX_SCHEMA: {
197
91
  readonly [
198
92
  "tag",
199
93
  {
200
- serialize(value: number): Buffer;
201
- deserialize(value: Buffer): number;
94
+ serialize: (value?: Tag.Account | undefined) => Buffer;
95
+ deserialize: (value: Buffer) => Tag.Account;
202
96
  }
203
97
  ],
204
98
  readonly [
205
- "VSN",
99
+ "version",
206
100
  {
207
- serialize(value: number): Buffer;
208
- deserialize(value: Buffer): number;
101
+ serialize: (value?: 2 | undefined) => Buffer;
102
+ deserialize: (value: Buffer) => 2;
209
103
  }
210
104
  ],
211
105
  readonly [
212
106
  "flags",
213
107
  {
214
- serialize(value: import("./field-types/u-int").Int): Buffer;
108
+ serialize(value: import("./constants").Int): Buffer;
215
109
  deserialize(value: Buffer): string;
216
110
  }
217
111
  ],
@@ -225,7 +119,7 @@ export declare const TX_SCHEMA: {
225
119
  readonly [
226
120
  "balance",
227
121
  {
228
- serialize(value: import("./field-types/u-int").Int): Buffer;
122
+ serialize(value: import("./constants").Int): Buffer;
229
123
  deserialize(value: Buffer): string;
230
124
  }
231
125
  ],
@@ -238,8 +132,10 @@ export declare const TX_SCHEMA: {
238
132
  ],
239
133
  readonly [
240
134
  "gaAuthFun",
241
- FIELD_TYPES.binary,
242
- Encoded.Encoding.ContractBytearray
135
+ {
136
+ serialize: (value: `cb_${string}`) => Buffer;
137
+ 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}`;
138
+ }
243
139
  ]
244
140
  ];
245
141
  };
@@ -248,24 +144,34 @@ export declare const TX_SCHEMA: {
248
144
  readonly [
249
145
  "tag",
250
146
  {
251
- serialize(value: number): Buffer;
252
- deserialize(value: Buffer): number;
147
+ serialize: (value?: Tag.SignedTx | undefined) => Buffer;
148
+ deserialize: (value: Buffer) => Tag.SignedTx;
253
149
  }
254
150
  ],
255
151
  readonly [
256
- "VSN",
152
+ "version",
257
153
  {
258
- serialize(value: number): Buffer;
259
- deserialize(value: Buffer): number;
154
+ serialize: (value?: 1 | undefined) => Buffer;
155
+ deserialize: (value: Buffer) => 1;
260
156
  }
261
157
  ],
262
158
  readonly [
263
159
  "signatures",
264
- FIELD_TYPES.signatures
160
+ {
161
+ serialize: (value: Uint8Array[], params: unknown) => Buffer[];
162
+ deserialize: (value: Buffer[], params: unknown) => Buffer[];
163
+ }
265
164
  ],
266
165
  readonly [
267
166
  "encodedTx",
268
- FIELD_TYPES.rlpBinary
167
+ {
168
+ serialize: (value: any, options: {
169
+ buildTx: typeof import(".").buildTx;
170
+ }) => Buffer;
171
+ deserialize: (value: Buffer, options: {
172
+ unpackTx: typeof import(".").unpackTx;
173
+ }) => any;
174
+ }
269
175
  ]
270
176
  ];
271
177
  };
@@ -274,15 +180,15 @@ export declare const TX_SCHEMA: {
274
180
  readonly [
275
181
  "tag",
276
182
  {
277
- serialize(value: number): Buffer;
278
- deserialize(value: Buffer): number;
183
+ serialize: (value?: Tag.SpendTx | undefined) => Buffer;
184
+ deserialize: (value: Buffer) => Tag.SpendTx;
279
185
  }
280
186
  ],
281
187
  readonly [
282
- "VSN",
188
+ "version",
283
189
  {
284
- serialize(value: number): Buffer;
285
- deserialize(value: Buffer): number;
190
+ serialize: (value?: 1 | undefined) => Buffer;
191
+ deserialize: (value: Buffer) => 1;
286
192
  }
287
193
  ],
288
194
  readonly [
@@ -303,19 +209,21 @@ export declare const TX_SCHEMA: {
303
209
  "amount",
304
210
  {
305
211
  serializeAettos(value: string | undefined): string;
306
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
212
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
307
213
  deserialize(value: Buffer): string;
308
214
  }
309
215
  ],
310
216
  readonly [
311
217
  "fee",
312
218
  {
313
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
314
- txType: Tag;
315
- rebuildTx: (params: any) => any;
316
- _computingMinFee?: string | undefined;
219
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
220
+ rebuildTx: (params: any) => `tx_${string}`;
221
+ unpackTx: typeof import(".").unpackTx;
222
+ buildTx: typeof import(".").buildTx;
223
+ _computingMinFee?: BigNumber | undefined;
224
+ _pickBiggerFee?: boolean | undefined;
317
225
  }): string;
318
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
226
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
319
227
  deserialize(value: Buffer): string;
320
228
  }
321
229
  ],
@@ -335,26 +243,89 @@ export declare const TX_SCHEMA: {
335
243
  ],
336
244
  readonly [
337
245
  "payload",
338
- FIELD_TYPES.payload
246
+ {
247
+ serialize: (value?: `ba_${string}` | undefined) => Buffer;
248
+ 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}`;
249
+ }
339
250
  ]
340
251
  ];
341
252
  };
342
- readonly 33: {
253
+ readonly 30: {
343
254
  readonly 1: readonly [
344
255
  readonly [
345
256
  "tag",
257
+ {
258
+ serialize: (value?: Tag.Name | undefined) => Buffer;
259
+ deserialize: (value: Buffer) => Tag.Name;
260
+ }
261
+ ],
262
+ readonly [
263
+ "version",
264
+ {
265
+ serialize: (value?: 1 | undefined) => Buffer;
266
+ deserialize: (value: Buffer) => 1;
267
+ }
268
+ ],
269
+ readonly [
270
+ "accountId",
271
+ {
272
+ serialize: (value: `ak_${string}`) => Buffer;
273
+ deserialize: (value: Buffer) => `ak_${string}`;
274
+ }
275
+ ],
276
+ readonly [
277
+ "nameTtl",
346
278
  {
347
279
  serialize(value: number): Buffer;
348
280
  deserialize(value: Buffer): number;
349
281
  }
350
282
  ],
351
283
  readonly [
352
- "VSN",
284
+ "status",
285
+ {
286
+ serialize(buffer: Uint8Array): Buffer;
287
+ deserialize(buffer: Buffer): Buffer;
288
+ }
289
+ ],
290
+ readonly [
291
+ "clientTtl",
353
292
  {
354
293
  serialize(value: number): Buffer;
355
294
  deserialize(value: Buffer): number;
356
295
  }
357
296
  ],
297
+ readonly [
298
+ "pointers",
299
+ {
300
+ serialize(pointers: (import("../../apis/node").NamePointer & {
301
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
302
+ })[]): Buffer[][];
303
+ deserialize(pointers: [
304
+ key: Buffer,
305
+ id: Buffer
306
+ ][]): (import("../../apis/node").NamePointer & {
307
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
308
+ })[];
309
+ }
310
+ ]
311
+ ];
312
+ };
313
+ readonly 33: {
314
+ readonly 1: readonly [
315
+ readonly [
316
+ "tag",
317
+ {
318
+ serialize: (value?: Tag.NamePreclaimTx | undefined) => Buffer;
319
+ deserialize: (value: Buffer) => Tag.NamePreclaimTx;
320
+ }
321
+ ],
322
+ readonly [
323
+ "version",
324
+ {
325
+ serialize: (value?: 1 | undefined) => Buffer;
326
+ deserialize: (value: Buffer) => 1;
327
+ }
328
+ ],
358
329
  readonly [
359
330
  "accountId",
360
331
  {
@@ -379,12 +350,14 @@ export declare const TX_SCHEMA: {
379
350
  readonly [
380
351
  "fee",
381
352
  {
382
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
383
- txType: Tag;
384
- rebuildTx: (params: any) => any;
385
- _computingMinFee?: string | undefined;
353
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
354
+ rebuildTx: (params: any) => `tx_${string}`;
355
+ unpackTx: typeof import(".").unpackTx;
356
+ buildTx: typeof import(".").buildTx;
357
+ _computingMinFee?: BigNumber | undefined;
358
+ _pickBiggerFee?: boolean | undefined;
386
359
  }): string;
387
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
360
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
388
361
  deserialize(value: Buffer): string;
389
362
  }
390
363
  ],
@@ -402,15 +375,15 @@ export declare const TX_SCHEMA: {
402
375
  readonly [
403
376
  "tag",
404
377
  {
405
- serialize(value: number): Buffer;
406
- deserialize(value: Buffer): number;
378
+ serialize: (value?: Tag.NameClaimTx | undefined) => Buffer;
379
+ deserialize: (value: Buffer) => Tag.NameClaimTx;
407
380
  }
408
381
  ],
409
382
  readonly [
410
- "VSN",
383
+ "version",
411
384
  {
412
- serialize(value: number): Buffer;
413
- deserialize(value: Buffer): number;
385
+ serialize: (value?: 2 | undefined) => Buffer;
386
+ deserialize: (value: Buffer) => 2;
414
387
  }
415
388
  ],
416
389
  readonly [
@@ -437,7 +410,7 @@ export declare const TX_SCHEMA: {
437
410
  readonly [
438
411
  "nameSalt",
439
412
  {
440
- serialize(value: import("./field-types/u-int").Int): Buffer;
413
+ serialize(value: import("./constants").Int): Buffer;
441
414
  deserialize(value: Buffer): string;
442
415
  }
443
416
  ],
@@ -447,7 +420,7 @@ export declare const TX_SCHEMA: {
447
420
  serializeAettos(_value: string | undefined, txFields: {
448
421
  name: `${string}.chain`;
449
422
  }): string;
450
- serialize(value: import("./field-types/u-int").Int | undefined, txFields: {
423
+ serialize(value: import("./constants").Int | undefined, txFields: {
451
424
  name: `${string}.chain`;
452
425
  } & import("./field-types/coin-amount").Options): Buffer;
453
426
  deserialize(value: Buffer): string;
@@ -456,12 +429,14 @@ export declare const TX_SCHEMA: {
456
429
  readonly [
457
430
  "fee",
458
431
  {
459
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
460
- txType: Tag;
461
- rebuildTx: (params: any) => any;
462
- _computingMinFee?: string | undefined;
432
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
433
+ rebuildTx: (params: any) => `tx_${string}`;
434
+ unpackTx: typeof import(".").unpackTx;
435
+ buildTx: typeof import(".").buildTx;
436
+ _computingMinFee?: BigNumber | undefined;
437
+ _pickBiggerFee?: boolean | undefined;
463
438
  }): string;
464
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
439
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
465
440
  deserialize(value: Buffer): string;
466
441
  }
467
442
  ],
@@ -479,15 +454,15 @@ export declare const TX_SCHEMA: {
479
454
  readonly [
480
455
  "tag",
481
456
  {
482
- serialize(value: number): Buffer;
483
- deserialize(value: Buffer): number;
457
+ serialize: (value?: Tag.NameUpdateTx | undefined) => Buffer;
458
+ deserialize: (value: Buffer) => Tag.NameUpdateTx;
484
459
  }
485
460
  ],
486
461
  readonly [
487
- "VSN",
462
+ "version",
488
463
  {
489
- serialize(value: number): Buffer;
490
- deserialize(value: Buffer): number;
464
+ serialize: (value?: 1 | undefined) => Buffer;
465
+ deserialize: (value: Buffer) => 1;
491
466
  }
492
467
  ],
493
468
  readonly [
@@ -507,7 +482,7 @@ export declare const TX_SCHEMA: {
507
482
  readonly [
508
483
  "nameId",
509
484
  {
510
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
485
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
511
486
  deserialize: (value: Buffer) => `nm_${string}`;
512
487
  }
513
488
  ],
@@ -542,12 +517,14 @@ export declare const TX_SCHEMA: {
542
517
  readonly [
543
518
  "fee",
544
519
  {
545
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
546
- txType: Tag;
547
- rebuildTx: (params: any) => any;
548
- _computingMinFee?: string | undefined;
520
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
521
+ rebuildTx: (params: any) => `tx_${string}`;
522
+ unpackTx: typeof import(".").unpackTx;
523
+ buildTx: typeof import(".").buildTx;
524
+ _computingMinFee?: BigNumber | undefined;
525
+ _pickBiggerFee?: boolean | undefined;
549
526
  }): string;
550
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
527
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
551
528
  deserialize(value: Buffer): string;
552
529
  }
553
530
  ],
@@ -565,15 +542,15 @@ export declare const TX_SCHEMA: {
565
542
  readonly [
566
543
  "tag",
567
544
  {
568
- serialize(value: number): Buffer;
569
- deserialize(value: Buffer): number;
545
+ serialize: (value?: Tag.NameTransferTx | undefined) => Buffer;
546
+ deserialize: (value: Buffer) => Tag.NameTransferTx;
570
547
  }
571
548
  ],
572
549
  readonly [
573
- "VSN",
550
+ "version",
574
551
  {
575
- serialize(value: number): Buffer;
576
- deserialize(value: Buffer): number;
552
+ serialize: (value?: 1 | undefined) => Buffer;
553
+ deserialize: (value: Buffer) => 1;
577
554
  }
578
555
  ],
579
556
  readonly [
@@ -593,7 +570,7 @@ export declare const TX_SCHEMA: {
593
570
  readonly [
594
571
  "nameId",
595
572
  {
596
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
573
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
597
574
  deserialize: (value: Buffer) => `nm_${string}`;
598
575
  }
599
576
  ],
@@ -607,12 +584,14 @@ export declare const TX_SCHEMA: {
607
584
  readonly [
608
585
  "fee",
609
586
  {
610
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
611
- txType: Tag;
612
- rebuildTx: (params: any) => any;
613
- _computingMinFee?: string | undefined;
587
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
588
+ rebuildTx: (params: any) => `tx_${string}`;
589
+ unpackTx: typeof import(".").unpackTx;
590
+ buildTx: typeof import(".").buildTx;
591
+ _computingMinFee?: BigNumber | undefined;
592
+ _pickBiggerFee?: boolean | undefined;
614
593
  }): string;
615
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
594
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
616
595
  deserialize(value: Buffer): string;
617
596
  }
618
597
  ],
@@ -630,15 +609,15 @@ export declare const TX_SCHEMA: {
630
609
  readonly [
631
610
  "tag",
632
611
  {
633
- serialize(value: number): Buffer;
634
- deserialize(value: Buffer): number;
612
+ serialize: (value?: Tag.NameRevokeTx | undefined) => Buffer;
613
+ deserialize: (value: Buffer) => Tag.NameRevokeTx;
635
614
  }
636
615
  ],
637
616
  readonly [
638
- "VSN",
617
+ "version",
639
618
  {
640
- serialize(value: number): Buffer;
641
- deserialize(value: Buffer): number;
619
+ serialize: (value?: 1 | undefined) => Buffer;
620
+ deserialize: (value: Buffer) => 1;
642
621
  }
643
622
  ],
644
623
  readonly [
@@ -658,19 +637,21 @@ export declare const TX_SCHEMA: {
658
637
  readonly [
659
638
  "nameId",
660
639
  {
661
- serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
640
+ serialize(value: `${string}.chain` | `nm_${string}`): Buffer;
662
641
  deserialize: (value: Buffer) => `nm_${string}`;
663
642
  }
664
643
  ],
665
644
  readonly [
666
645
  "fee",
667
646
  {
668
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
669
- txType: Tag;
670
- rebuildTx: (params: any) => any;
671
- _computingMinFee?: string | undefined;
647
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
648
+ rebuildTx: (params: any) => `tx_${string}`;
649
+ unpackTx: typeof import(".").unpackTx;
650
+ buildTx: typeof import(".").buildTx;
651
+ _computingMinFee?: BigNumber | undefined;
652
+ _pickBiggerFee?: boolean | undefined;
672
653
  }): string;
673
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
654
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
674
655
  deserialize(value: Buffer): string;
675
656
  }
676
657
  ],
@@ -688,15 +669,15 @@ export declare const TX_SCHEMA: {
688
669
  readonly [
689
670
  "tag",
690
671
  {
691
- serialize(value: number): Buffer;
692
- deserialize(value: Buffer): number;
672
+ serialize: (value?: Tag.Contract | undefined) => Buffer;
673
+ deserialize: (value: Buffer) => Tag.Contract;
693
674
  }
694
675
  ],
695
676
  readonly [
696
- "VSN",
677
+ "version",
697
678
  {
698
- serialize(value: number): Buffer;
699
- deserialize(value: Buffer): number;
679
+ serialize: (value?: 1 | undefined) => Buffer;
680
+ deserialize: (value: Buffer) => 1;
700
681
  }
701
682
  ],
702
683
  readonly [
@@ -708,33 +689,45 @@ export declare const TX_SCHEMA: {
708
689
  ],
709
690
  readonly [
710
691
  "ctVersion",
711
- FIELD_TYPES.ctVersion
692
+ {
693
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
694
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
695
+ }): Buffer;
696
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
697
+ }
712
698
  ],
713
699
  readonly [
714
700
  "code",
715
- FIELD_TYPES.binary,
716
- Encoded.Encoding.ContractBytearray
701
+ {
702
+ serialize: (value: `cb_${string}`) => Buffer;
703
+ 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}`;
704
+ }
717
705
  ],
718
706
  readonly [
719
707
  "log",
720
- FIELD_TYPES.binary,
721
- Encoded.Encoding.ContractBytearray
708
+ {
709
+ serialize: (value: `cb_${string}`) => Buffer;
710
+ 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}`;
711
+ }
722
712
  ],
723
713
  readonly [
724
714
  "active",
725
- FIELD_TYPES.bool
715
+ {
716
+ serialize(value: boolean): Buffer;
717
+ deserialize(buffer: Buffer): boolean;
718
+ }
726
719
  ],
727
720
  readonly [
728
721
  "referers",
729
722
  {
730
- serialize: (value: `ak_${string}`[]) => Buffer[];
731
- deserialize: (value: Buffer[]) => `ak_${string}`[];
723
+ serialize: (value: `ak_${string}`[], params: unknown) => Buffer[];
724
+ deserialize: (value: Buffer[], params: unknown) => `ak_${string}`[];
732
725
  }
733
726
  ],
734
727
  readonly [
735
728
  "deposit",
736
729
  {
737
- serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
730
+ serialize(value: import("./constants").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
738
731
  serializeAettos(value: string | undefined): string;
739
732
  deserialize(value: Buffer): string;
740
733
  }
@@ -746,15 +739,15 @@ export declare const TX_SCHEMA: {
746
739
  readonly [
747
740
  "tag",
748
741
  {
749
- serialize(value: number): Buffer;
750
- deserialize(value: Buffer): number;
742
+ serialize: (value?: Tag.ContractCreateTx | undefined) => Buffer;
743
+ deserialize: (value: Buffer) => Tag.ContractCreateTx;
751
744
  }
752
745
  ],
753
746
  readonly [
754
- "VSN",
747
+ "version",
755
748
  {
756
- serialize(value: number): Buffer;
757
- deserialize(value: Buffer): number;
749
+ serialize: (value?: 1 | undefined) => Buffer;
750
+ deserialize: (value: Buffer) => 1;
758
751
  }
759
752
  ],
760
753
  readonly [
@@ -773,22 +766,31 @@ export declare const TX_SCHEMA: {
773
766
  ],
774
767
  readonly [
775
768
  "code",
776
- FIELD_TYPES.binary,
777
- Encoded.Encoding.ContractBytearray
769
+ {
770
+ serialize: (value: `cb_${string}`) => Buffer;
771
+ 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}`;
772
+ }
778
773
  ],
779
774
  readonly [
780
775
  "ctVersion",
781
- FIELD_TYPES.ctVersion
776
+ {
777
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
778
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
779
+ }): Buffer;
780
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
781
+ }
782
782
  ],
783
783
  readonly [
784
784
  "fee",
785
785
  {
786
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
787
- txType: Tag;
788
- rebuildTx: (params: any) => any;
789
- _computingMinFee?: string | undefined;
786
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
787
+ rebuildTx: (params: any) => `tx_${string}`;
788
+ unpackTx: typeof import(".").unpackTx;
789
+ buildTx: typeof import(".").buildTx;
790
+ _computingMinFee?: BigNumber | undefined;
791
+ _pickBiggerFee?: boolean | undefined;
790
792
  }): string;
791
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
793
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
792
794
  deserialize(value: Buffer): string;
793
795
  }
794
796
  ],
@@ -802,7 +804,7 @@ export declare const TX_SCHEMA: {
802
804
  readonly [
803
805
  "deposit",
804
806
  {
805
- serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
807
+ serialize(value: import("./constants").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
806
808
  serializeAettos(value: string | undefined): string;
807
809
  deserialize(value: Buffer): string;
808
810
  }
@@ -811,16 +813,18 @@ export declare const TX_SCHEMA: {
811
813
  "amount",
812
814
  {
813
815
  serializeAettos(value: string | undefined): string;
814
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
816
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
815
817
  deserialize(value: Buffer): string;
816
818
  }
817
819
  ],
818
820
  readonly [
819
821
  "gasLimit",
820
822
  {
821
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
822
- txType: Tag;
823
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
824
+ tag: Tag;
823
825
  rebuildTx: (params: any) => any;
826
+ unpackTx: typeof import(".").unpackTx;
827
+ buildTx: typeof import(".").buildTx;
824
828
  gasMax: number;
825
829
  _computingGasLimit?: number | undefined;
826
830
  }): Buffer;
@@ -831,14 +835,16 @@ export declare const TX_SCHEMA: {
831
835
  "gasPrice",
832
836
  {
833
837
  serializeAettos(value?: string | undefined): string;
834
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
838
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
835
839
  deserialize(value: Buffer): string;
836
840
  }
837
841
  ],
838
842
  readonly [
839
843
  "callData",
840
- FIELD_TYPES.binary,
841
- Encoded.Encoding.ContractBytearray
844
+ {
845
+ serialize: (value: `cb_${string}`) => Buffer;
846
+ 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}`;
847
+ }
842
848
  ]
843
849
  ];
844
850
  };
@@ -847,15 +853,15 @@ export declare const TX_SCHEMA: {
847
853
  readonly [
848
854
  "tag",
849
855
  {
850
- serialize(value: number): Buffer;
851
- deserialize(value: Buffer): number;
856
+ serialize: (value?: Tag.ContractCallTx | undefined) => Buffer;
857
+ deserialize: (value: Buffer) => Tag.ContractCallTx;
852
858
  }
853
859
  ],
854
860
  readonly [
855
- "VSN",
861
+ "version",
856
862
  {
857
- serialize(value: number): Buffer;
858
- deserialize(value: Buffer): number;
863
+ serialize: (value?: 1 | undefined) => Buffer;
864
+ deserialize: (value: Buffer) => 1;
859
865
  }
860
866
  ],
861
867
  readonly [
@@ -882,19 +888,24 @@ export declare const TX_SCHEMA: {
882
888
  readonly [
883
889
  "abiVersion",
884
890
  {
885
- serialize: (value: ABI_VERSIONS) => Buffer;
886
- deserialize: (value: Buffer) => ABI_VERSIONS;
891
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
892
+ tag: Tag;
893
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
894
+ }): Buffer;
895
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
887
896
  }
888
897
  ],
889
898
  readonly [
890
899
  "fee",
891
900
  {
892
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
893
- txType: Tag;
894
- rebuildTx: (params: any) => any;
895
- _computingMinFee?: string | undefined;
901
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
902
+ rebuildTx: (params: any) => `tx_${string}`;
903
+ unpackTx: typeof import(".").unpackTx;
904
+ buildTx: typeof import(".").buildTx;
905
+ _computingMinFee?: BigNumber | undefined;
906
+ _pickBiggerFee?: boolean | undefined;
896
907
  }): string;
897
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
908
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
898
909
  deserialize(value: Buffer): string;
899
910
  }
900
911
  ],
@@ -909,16 +920,18 @@ export declare const TX_SCHEMA: {
909
920
  "amount",
910
921
  {
911
922
  serializeAettos(value: string | undefined): string;
912
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
923
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
913
924
  deserialize(value: Buffer): string;
914
925
  }
915
926
  ],
916
927
  readonly [
917
928
  "gasLimit",
918
929
  {
919
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
920
- txType: Tag;
930
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
931
+ tag: Tag;
921
932
  rebuildTx: (params: any) => any;
933
+ unpackTx: typeof import(".").unpackTx;
934
+ buildTx: typeof import(".").buildTx;
922
935
  gasMax: number;
923
936
  _computingGasLimit?: number | undefined;
924
937
  }): Buffer;
@@ -929,14 +942,16 @@ export declare const TX_SCHEMA: {
929
942
  "gasPrice",
930
943
  {
931
944
  serializeAettos(value?: string | undefined): string;
932
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
945
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
933
946
  deserialize(value: Buffer): string;
934
947
  }
935
948
  ],
936
949
  readonly [
937
950
  "callData",
938
- FIELD_TYPES.binary,
939
- Encoded.Encoding.ContractBytearray
951
+ {
952
+ serialize: (value: `cb_${string}`) => Buffer;
953
+ 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}`;
954
+ }
940
955
  ]
941
956
  ];
942
957
  };
@@ -945,15 +960,15 @@ export declare const TX_SCHEMA: {
945
960
  readonly [
946
961
  "tag",
947
962
  {
948
- serialize(value: number): Buffer;
949
- deserialize(value: Buffer): number;
963
+ serialize: (value?: Tag.ContractCall | undefined) => Buffer;
964
+ deserialize: (value: Buffer) => Tag.ContractCall;
950
965
  }
951
966
  ],
952
967
  readonly [
953
- "VSN",
968
+ "version",
954
969
  {
955
- serialize(value: number): Buffer;
956
- deserialize(value: Buffer): number;
970
+ serialize: (value?: 1 | undefined) => Buffer;
971
+ deserialize: (value: Buffer) => 1;
957
972
  }
958
973
  ],
959
974
  readonly [
@@ -988,7 +1003,7 @@ export declare const TX_SCHEMA: {
988
1003
  "gasPrice",
989
1004
  {
990
1005
  serializeAettos(value?: string | undefined): string;
991
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1006
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
992
1007
  deserialize(value: Buffer): string;
993
1008
  }
994
1009
  ],
@@ -1001,8 +1016,10 @@ export declare const TX_SCHEMA: {
1001
1016
  ],
1002
1017
  readonly [
1003
1018
  "returnValue",
1004
- FIELD_TYPES.binary,
1005
- Encoded.Encoding.ContractBytearray
1019
+ {
1020
+ serialize: (value: `cb_${string}`) => Buffer;
1021
+ 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}`;
1022
+ }
1006
1023
  ],
1007
1024
  readonly [
1008
1025
  "returnType",
@@ -1013,26 +1030,93 @@ export declare const TX_SCHEMA: {
1013
1030
  ],
1014
1031
  readonly [
1015
1032
  "log",
1016
- FIELD_TYPES.rawBinary
1033
+ {
1034
+ serialize(buffer: Uint8Array): Buffer;
1035
+ deserialize(buffer: Buffer): Buffer;
1036
+ }
1017
1037
  ]
1018
1038
  ];
1019
1039
  };
1020
- readonly 22: {
1040
+ readonly 20: {
1021
1041
  readonly 1: readonly [
1022
1042
  readonly [
1023
1043
  "tag",
1024
1044
  {
1025
- serialize(value: number): Buffer;
1026
- deserialize(value: Buffer): number;
1045
+ serialize: (value?: Tag.Oracle | undefined) => Buffer;
1046
+ deserialize: (value: Buffer) => Tag.Oracle;
1047
+ }
1048
+ ],
1049
+ readonly [
1050
+ "version",
1051
+ {
1052
+ serialize: (value?: 1 | undefined) => Buffer;
1053
+ deserialize: (value: Buffer) => 1;
1054
+ }
1055
+ ],
1056
+ readonly [
1057
+ "accountId",
1058
+ {
1059
+ serialize: (value: `ak_${string}`) => Buffer;
1060
+ deserialize: (value: Buffer) => `ak_${string}`;
1027
1061
  }
1028
1062
  ],
1029
1063
  readonly [
1030
- "VSN",
1064
+ "queryFormat",
1065
+ {
1066
+ serialize(string: string): Buffer;
1067
+ deserialize(buffer: Buffer): string;
1068
+ }
1069
+ ],
1070
+ readonly [
1071
+ "responseFormat",
1072
+ {
1073
+ serialize(string: string): Buffer;
1074
+ deserialize(buffer: Buffer): string;
1075
+ }
1076
+ ],
1077
+ readonly [
1078
+ "queryFee",
1079
+ {
1080
+ serializeAettos(value: string | undefined): string;
1081
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1082
+ deserialize(value: Buffer): string;
1083
+ }
1084
+ ],
1085
+ readonly [
1086
+ "oracleTtlValue",
1031
1087
  {
1032
1088
  serialize(value: number): Buffer;
1033
1089
  deserialize(value: Buffer): number;
1034
1090
  }
1035
1091
  ],
1092
+ readonly [
1093
+ "abiVersion",
1094
+ {
1095
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
1096
+ tag: Tag;
1097
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
1098
+ }): Buffer;
1099
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
1100
+ }
1101
+ ]
1102
+ ];
1103
+ };
1104
+ readonly 22: {
1105
+ readonly 1: readonly [
1106
+ readonly [
1107
+ "tag",
1108
+ {
1109
+ serialize: (value?: Tag.OracleRegisterTx | undefined) => Buffer;
1110
+ deserialize: (value: Buffer) => Tag.OracleRegisterTx;
1111
+ }
1112
+ ],
1113
+ readonly [
1114
+ "version",
1115
+ {
1116
+ serialize: (value?: 1 | undefined) => Buffer;
1117
+ deserialize: (value: Buffer) => 1;
1118
+ }
1119
+ ],
1036
1120
  readonly [
1037
1121
  "accountId",
1038
1122
  {
@@ -1049,17 +1133,23 @@ export declare const TX_SCHEMA: {
1049
1133
  ],
1050
1134
  readonly [
1051
1135
  "queryFormat",
1052
- FIELD_TYPES.string
1136
+ {
1137
+ serialize(string: string): Buffer;
1138
+ deserialize(buffer: Buffer): string;
1139
+ }
1053
1140
  ],
1054
1141
  readonly [
1055
1142
  "responseFormat",
1056
- FIELD_TYPES.string
1143
+ {
1144
+ serialize(string: string): Buffer;
1145
+ deserialize(buffer: Buffer): string;
1146
+ }
1057
1147
  ],
1058
1148
  readonly [
1059
1149
  "queryFee",
1060
1150
  {
1061
1151
  serializeAettos(value: string | undefined): string;
1062
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1152
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1063
1153
  deserialize(value: Buffer): string;
1064
1154
  }
1065
1155
  ],
@@ -1080,12 +1170,14 @@ export declare const TX_SCHEMA: {
1080
1170
  readonly [
1081
1171
  "fee",
1082
1172
  {
1083
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1084
- txType: Tag;
1085
- rebuildTx: (params: any) => any;
1086
- _computingMinFee?: string | undefined;
1173
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1174
+ rebuildTx: (params: any) => `tx_${string}`;
1175
+ unpackTx: typeof import(".").unpackTx;
1176
+ buildTx: typeof import(".").buildTx;
1177
+ _computingMinFee?: BigNumber | undefined;
1178
+ _pickBiggerFee?: boolean | undefined;
1087
1179
  }): string;
1088
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1180
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1089
1181
  deserialize(value: Buffer): string;
1090
1182
  }
1091
1183
  ],
@@ -1099,8 +1191,11 @@ export declare const TX_SCHEMA: {
1099
1191
  readonly [
1100
1192
  "abiVersion",
1101
1193
  {
1102
- serialize: (value: ABI_VERSIONS) => Buffer;
1103
- deserialize: (value: Buffer) => ABI_VERSIONS;
1194
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
1195
+ tag: Tag;
1196
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
1197
+ }): Buffer;
1198
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
1104
1199
  }
1105
1200
  ]
1106
1201
  ];
@@ -1110,15 +1205,15 @@ export declare const TX_SCHEMA: {
1110
1205
  readonly [
1111
1206
  "tag",
1112
1207
  {
1113
- serialize(value: number): Buffer;
1114
- deserialize(value: Buffer): number;
1208
+ serialize: (value?: Tag.OracleExtendTx | undefined) => Buffer;
1209
+ deserialize: (value: Buffer) => Tag.OracleExtendTx;
1115
1210
  }
1116
1211
  ],
1117
1212
  readonly [
1118
- "VSN",
1213
+ "version",
1119
1214
  {
1120
- serialize(value: number): Buffer;
1121
- deserialize(value: Buffer): number;
1215
+ serialize: (value?: 1 | undefined) => Buffer;
1216
+ deserialize: (value: Buffer) => 1;
1122
1217
  }
1123
1218
  ],
1124
1219
  readonly [
@@ -1152,12 +1247,14 @@ export declare const TX_SCHEMA: {
1152
1247
  readonly [
1153
1248
  "fee",
1154
1249
  {
1155
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1156
- txType: Tag;
1157
- rebuildTx: (params: any) => any;
1158
- _computingMinFee?: string | undefined;
1250
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1251
+ rebuildTx: (params: any) => `tx_${string}`;
1252
+ unpackTx: typeof import(".").unpackTx;
1253
+ buildTx: typeof import(".").buildTx;
1254
+ _computingMinFee?: BigNumber | undefined;
1255
+ _pickBiggerFee?: boolean | undefined;
1159
1256
  }): string;
1160
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1257
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1161
1258
  deserialize(value: Buffer): string;
1162
1259
  }
1163
1260
  ],
@@ -1175,15 +1272,15 @@ export declare const TX_SCHEMA: {
1175
1272
  readonly [
1176
1273
  "tag",
1177
1274
  {
1178
- serialize(value: number): Buffer;
1179
- deserialize(value: Buffer): number;
1275
+ serialize: (value?: Tag.OracleQueryTx | undefined) => Buffer;
1276
+ deserialize: (value: Buffer) => Tag.OracleQueryTx;
1180
1277
  }
1181
1278
  ],
1182
1279
  readonly [
1183
- "VSN",
1280
+ "version",
1184
1281
  {
1185
- serialize(value: number): Buffer;
1186
- deserialize(value: Buffer): number;
1282
+ serialize: (value?: 1 | undefined) => Buffer;
1283
+ deserialize: (value: Buffer) => 1;
1187
1284
  }
1188
1285
  ],
1189
1286
  readonly [
@@ -1209,13 +1306,16 @@ export declare const TX_SCHEMA: {
1209
1306
  ],
1210
1307
  readonly [
1211
1308
  "query",
1212
- FIELD_TYPES.string
1309
+ {
1310
+ serialize(string: string): Buffer;
1311
+ deserialize(buffer: Buffer): string;
1312
+ }
1213
1313
  ],
1214
1314
  readonly [
1215
1315
  "queryFee",
1216
1316
  {
1217
1317
  serializeAettos(value: string | undefined): string;
1218
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1318
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1219
1319
  deserialize(value: Buffer): string;
1220
1320
  }
1221
1321
  ],
@@ -1250,12 +1350,14 @@ export declare const TX_SCHEMA: {
1250
1350
  readonly [
1251
1351
  "fee",
1252
1352
  {
1253
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1254
- txType: Tag;
1255
- rebuildTx: (params: any) => any;
1256
- _computingMinFee?: string | undefined;
1353
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1354
+ rebuildTx: (params: any) => `tx_${string}`;
1355
+ unpackTx: typeof import(".").unpackTx;
1356
+ buildTx: typeof import(".").buildTx;
1357
+ _computingMinFee?: BigNumber | undefined;
1358
+ _pickBiggerFee?: boolean | undefined;
1257
1359
  }): string;
1258
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1360
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1259
1361
  deserialize(value: Buffer): string;
1260
1362
  }
1261
1363
  ],
@@ -1273,15 +1375,15 @@ export declare const TX_SCHEMA: {
1273
1375
  readonly [
1274
1376
  "tag",
1275
1377
  {
1276
- serialize(value: number): Buffer;
1277
- deserialize(value: Buffer): number;
1378
+ serialize: (value?: Tag.OracleResponseTx | undefined) => Buffer;
1379
+ deserialize: (value: Buffer) => Tag.OracleResponseTx;
1278
1380
  }
1279
1381
  ],
1280
1382
  readonly [
1281
- "VSN",
1383
+ "version",
1282
1384
  {
1283
- serialize(value: number): Buffer;
1284
- deserialize(value: Buffer): number;
1385
+ serialize: (value?: 1 | undefined) => Buffer;
1386
+ deserialize: (value: Buffer) => 1;
1285
1387
  }
1286
1388
  ],
1287
1389
  readonly [
@@ -1300,12 +1402,17 @@ export declare const TX_SCHEMA: {
1300
1402
  ],
1301
1403
  readonly [
1302
1404
  "queryId",
1303
- FIELD_TYPES.binary,
1304
- Encoded.Encoding.OracleQueryId
1405
+ {
1406
+ serialize: (value: `oq_${string}`) => Buffer;
1407
+ 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}`;
1408
+ }
1305
1409
  ],
1306
1410
  readonly [
1307
1411
  "response",
1308
- FIELD_TYPES.string
1412
+ {
1413
+ serialize(string: string): Buffer;
1414
+ deserialize(buffer: Buffer): string;
1415
+ }
1309
1416
  ],
1310
1417
  readonly [
1311
1418
  "responseTtlType",
@@ -1324,12 +1431,14 @@ export declare const TX_SCHEMA: {
1324
1431
  readonly [
1325
1432
  "fee",
1326
1433
  {
1327
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1328
- txType: Tag;
1329
- rebuildTx: (params: any) => any;
1330
- _computingMinFee?: string | undefined;
1434
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1435
+ rebuildTx: (params: any) => `tx_${string}`;
1436
+ unpackTx: typeof import(".").unpackTx;
1437
+ buildTx: typeof import(".").buildTx;
1438
+ _computingMinFee?: BigNumber | undefined;
1439
+ _pickBiggerFee?: boolean | undefined;
1331
1440
  }): string;
1332
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1441
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1333
1442
  deserialize(value: Buffer): string;
1334
1443
  }
1335
1444
  ],
@@ -1347,15 +1456,15 @@ export declare const TX_SCHEMA: {
1347
1456
  readonly [
1348
1457
  "tag",
1349
1458
  {
1350
- serialize(value: number): Buffer;
1351
- deserialize(value: Buffer): number;
1459
+ serialize: (value?: Tag.ChannelCreateTx | undefined) => Buffer;
1460
+ deserialize: (value: Buffer) => Tag.ChannelCreateTx;
1352
1461
  }
1353
1462
  ],
1354
1463
  readonly [
1355
- "VSN",
1464
+ "version",
1356
1465
  {
1357
- serialize(value: number): Buffer;
1358
- deserialize(value: Buffer): number;
1466
+ serialize: (value?: 2 | undefined) => Buffer;
1467
+ deserialize: (value: Buffer) => 2;
1359
1468
  }
1360
1469
  ],
1361
1470
  readonly [
@@ -1368,7 +1477,7 @@ export declare const TX_SCHEMA: {
1368
1477
  readonly [
1369
1478
  "initiatorAmount",
1370
1479
  {
1371
- serialize(value: import("./field-types/u-int").Int): Buffer;
1480
+ serialize(value: import("./constants").Int): Buffer;
1372
1481
  deserialize(value: Buffer): string;
1373
1482
  }
1374
1483
  ],
@@ -1382,21 +1491,21 @@ export declare const TX_SCHEMA: {
1382
1491
  readonly [
1383
1492
  "responderAmount",
1384
1493
  {
1385
- serialize(value: import("./field-types/u-int").Int): Buffer;
1494
+ serialize(value: import("./constants").Int): Buffer;
1386
1495
  deserialize(value: Buffer): string;
1387
1496
  }
1388
1497
  ],
1389
1498
  readonly [
1390
1499
  "channelReserve",
1391
1500
  {
1392
- serialize(value: import("./field-types/u-int").Int): Buffer;
1501
+ serialize(value: import("./constants").Int): Buffer;
1393
1502
  deserialize(value: Buffer): string;
1394
1503
  }
1395
1504
  ],
1396
1505
  readonly [
1397
1506
  "lockPeriod",
1398
1507
  {
1399
- serialize(value: import("./field-types/u-int").Int): Buffer;
1508
+ serialize(value: import("./constants").Int): Buffer;
1400
1509
  deserialize(value: Buffer): string;
1401
1510
  }
1402
1511
  ],
@@ -1410,27 +1519,37 @@ export declare const TX_SCHEMA: {
1410
1519
  readonly [
1411
1520
  "fee",
1412
1521
  {
1413
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1414
- txType: Tag;
1415
- rebuildTx: (params: any) => any;
1416
- _computingMinFee?: string | undefined;
1522
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1523
+ rebuildTx: (params: any) => `tx_${string}`;
1524
+ unpackTx: typeof import(".").unpackTx;
1525
+ buildTx: typeof import(".").buildTx;
1526
+ _computingMinFee?: BigNumber | undefined;
1527
+ _pickBiggerFee?: boolean | undefined;
1417
1528
  }): string;
1418
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1529
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1419
1530
  deserialize(value: Buffer): string;
1420
1531
  }
1421
1532
  ],
1422
1533
  readonly [
1423
1534
  "initiatorDelegateIds",
1424
- FIELD_TYPES.string
1535
+ {
1536
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
1537
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1538
+ }
1425
1539
  ],
1426
1540
  readonly [
1427
1541
  "responderDelegateIds",
1428
- FIELD_TYPES.string
1542
+ {
1543
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
1544
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
1545
+ }
1429
1546
  ],
1430
1547
  readonly [
1431
1548
  "stateHash",
1432
- FIELD_TYPES.binary,
1433
- Encoded.Encoding.State
1549
+ {
1550
+ serialize: (value: `st_${string}`) => Buffer;
1551
+ 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}`;
1552
+ }
1434
1553
  ],
1435
1554
  readonly [
1436
1555
  "nonce",
@@ -1446,15 +1565,15 @@ export declare const TX_SCHEMA: {
1446
1565
  readonly [
1447
1566
  "tag",
1448
1567
  {
1449
- serialize(value: number): Buffer;
1450
- deserialize(value: Buffer): number;
1568
+ serialize: (value?: Tag.ChannelCloseMutualTx | undefined) => Buffer;
1569
+ deserialize: (value: Buffer) => Tag.ChannelCloseMutualTx;
1451
1570
  }
1452
1571
  ],
1453
1572
  readonly [
1454
- "VSN",
1573
+ "version",
1455
1574
  {
1456
- serialize(value: number): Buffer;
1457
- deserialize(value: Buffer): number;
1575
+ serialize: (value?: 1 | undefined) => Buffer;
1576
+ deserialize: (value: Buffer) => 1;
1458
1577
  }
1459
1578
  ],
1460
1579
  readonly [
@@ -1474,14 +1593,14 @@ export declare const TX_SCHEMA: {
1474
1593
  readonly [
1475
1594
  "initiatorAmountFinal",
1476
1595
  {
1477
- serialize(value: import("./field-types/u-int").Int): Buffer;
1596
+ serialize(value: import("./constants").Int): Buffer;
1478
1597
  deserialize(value: Buffer): string;
1479
1598
  }
1480
1599
  ],
1481
1600
  readonly [
1482
1601
  "responderAmountFinal",
1483
1602
  {
1484
- serialize(value: import("./field-types/u-int").Int): Buffer;
1603
+ serialize(value: import("./constants").Int): Buffer;
1485
1604
  deserialize(value: Buffer): string;
1486
1605
  }
1487
1606
  ],
@@ -1495,12 +1614,14 @@ export declare const TX_SCHEMA: {
1495
1614
  readonly [
1496
1615
  "fee",
1497
1616
  {
1498
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1499
- txType: Tag;
1500
- rebuildTx: (params: any) => any;
1501
- _computingMinFee?: string | undefined;
1617
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1618
+ rebuildTx: (params: any) => `tx_${string}`;
1619
+ unpackTx: typeof import(".").unpackTx;
1620
+ buildTx: typeof import(".").buildTx;
1621
+ _computingMinFee?: BigNumber | undefined;
1622
+ _pickBiggerFee?: boolean | undefined;
1502
1623
  }): string;
1503
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1624
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1504
1625
  deserialize(value: Buffer): string;
1505
1626
  }
1506
1627
  ],
@@ -1518,15 +1639,15 @@ export declare const TX_SCHEMA: {
1518
1639
  readonly [
1519
1640
  "tag",
1520
1641
  {
1521
- serialize(value: number): Buffer;
1522
- deserialize(value: Buffer): number;
1642
+ serialize: (value?: Tag.ChannelCloseSoloTx | undefined) => Buffer;
1643
+ deserialize: (value: Buffer) => Tag.ChannelCloseSoloTx;
1523
1644
  }
1524
1645
  ],
1525
1646
  readonly [
1526
- "VSN",
1647
+ "version",
1527
1648
  {
1528
- serialize(value: number): Buffer;
1529
- deserialize(value: Buffer): number;
1649
+ serialize: (value?: 1 | undefined) => Buffer;
1650
+ deserialize: (value: Buffer) => 1;
1530
1651
  }
1531
1652
  ],
1532
1653
  readonly [
@@ -1545,13 +1666,21 @@ export declare const TX_SCHEMA: {
1545
1666
  ],
1546
1667
  readonly [
1547
1668
  "payload",
1548
- FIELD_TYPES.binary,
1549
- Encoded.Encoding.Transaction
1669
+ {
1670
+ serialize: (value: `tx_${string}`) => Buffer;
1671
+ 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}`;
1672
+ }
1550
1673
  ],
1551
1674
  readonly [
1552
1675
  "poi",
1553
- FIELD_TYPES.binary,
1554
- Encoded.Encoding.Poi
1676
+ {
1677
+ serialize: (value: any, options: {
1678
+ buildTx: typeof import(".").buildTx;
1679
+ }) => Buffer;
1680
+ deserialize: (value: Buffer, options: {
1681
+ unpackTx: typeof import(".").unpackTx;
1682
+ }) => any;
1683
+ }
1555
1684
  ],
1556
1685
  readonly [
1557
1686
  "ttl",
@@ -1563,12 +1692,14 @@ export declare const TX_SCHEMA: {
1563
1692
  readonly [
1564
1693
  "fee",
1565
1694
  {
1566
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1567
- txType: Tag;
1568
- rebuildTx: (params: any) => any;
1569
- _computingMinFee?: string | undefined;
1695
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1696
+ rebuildTx: (params: any) => `tx_${string}`;
1697
+ unpackTx: typeof import(".").unpackTx;
1698
+ buildTx: typeof import(".").buildTx;
1699
+ _computingMinFee?: BigNumber | undefined;
1700
+ _pickBiggerFee?: boolean | undefined;
1570
1701
  }): string;
1571
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1702
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1572
1703
  deserialize(value: Buffer): string;
1573
1704
  }
1574
1705
  ],
@@ -1586,15 +1717,15 @@ export declare const TX_SCHEMA: {
1586
1717
  readonly [
1587
1718
  "tag",
1588
1719
  {
1589
- serialize(value: number): Buffer;
1590
- deserialize(value: Buffer): number;
1720
+ serialize: (value?: Tag.ChannelSlashTx | undefined) => Buffer;
1721
+ deserialize: (value: Buffer) => Tag.ChannelSlashTx;
1591
1722
  }
1592
1723
  ],
1593
1724
  readonly [
1594
- "VSN",
1725
+ "version",
1595
1726
  {
1596
- serialize(value: number): Buffer;
1597
- deserialize(value: Buffer): number;
1727
+ serialize: (value?: 1 | undefined) => Buffer;
1728
+ deserialize: (value: Buffer) => 1;
1598
1729
  }
1599
1730
  ],
1600
1731
  readonly [
@@ -1613,13 +1744,21 @@ export declare const TX_SCHEMA: {
1613
1744
  ],
1614
1745
  readonly [
1615
1746
  "payload",
1616
- FIELD_TYPES.binary,
1617
- Encoded.Encoding.Transaction
1747
+ {
1748
+ serialize: (value: `tx_${string}`) => Buffer;
1749
+ 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}`;
1750
+ }
1618
1751
  ],
1619
1752
  readonly [
1620
1753
  "poi",
1621
- FIELD_TYPES.binary,
1622
- Encoded.Encoding.Poi
1754
+ {
1755
+ serialize: (value: any, options: {
1756
+ buildTx: typeof import(".").buildTx;
1757
+ }) => Buffer;
1758
+ deserialize: (value: Buffer, options: {
1759
+ unpackTx: typeof import(".").unpackTx;
1760
+ }) => any;
1761
+ }
1623
1762
  ],
1624
1763
  readonly [
1625
1764
  "ttl",
@@ -1631,12 +1770,14 @@ export declare const TX_SCHEMA: {
1631
1770
  readonly [
1632
1771
  "fee",
1633
1772
  {
1634
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1635
- txType: Tag;
1636
- rebuildTx: (params: any) => any;
1637
- _computingMinFee?: string | undefined;
1773
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1774
+ rebuildTx: (params: any) => `tx_${string}`;
1775
+ unpackTx: typeof import(".").unpackTx;
1776
+ buildTx: typeof import(".").buildTx;
1777
+ _computingMinFee?: BigNumber | undefined;
1778
+ _pickBiggerFee?: boolean | undefined;
1638
1779
  }): string;
1639
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1780
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1640
1781
  deserialize(value: Buffer): string;
1641
1782
  }
1642
1783
  ],
@@ -1654,15 +1795,15 @@ export declare const TX_SCHEMA: {
1654
1795
  readonly [
1655
1796
  "tag",
1656
1797
  {
1657
- serialize(value: number): Buffer;
1658
- deserialize(value: Buffer): number;
1798
+ serialize: (value?: Tag.ChannelDepositTx | undefined) => Buffer;
1799
+ deserialize: (value: Buffer) => Tag.ChannelDepositTx;
1659
1800
  }
1660
1801
  ],
1661
1802
  readonly [
1662
- "VSN",
1803
+ "version",
1663
1804
  {
1664
- serialize(value: number): Buffer;
1665
- deserialize(value: Buffer): number;
1805
+ serialize: (value?: 1 | undefined) => Buffer;
1806
+ deserialize: (value: Buffer) => 1;
1666
1807
  }
1667
1808
  ],
1668
1809
  readonly [
@@ -1682,7 +1823,7 @@ export declare const TX_SCHEMA: {
1682
1823
  readonly [
1683
1824
  "amount",
1684
1825
  {
1685
- serialize(value: import("./field-types/u-int").Int): Buffer;
1826
+ serialize(value: import("./constants").Int): Buffer;
1686
1827
  deserialize(value: Buffer): string;
1687
1828
  }
1688
1829
  ],
@@ -1696,19 +1837,23 @@ export declare const TX_SCHEMA: {
1696
1837
  readonly [
1697
1838
  "fee",
1698
1839
  {
1699
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1700
- txType: Tag;
1701
- rebuildTx: (params: any) => any;
1702
- _computingMinFee?: string | undefined;
1840
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1841
+ rebuildTx: (params: any) => `tx_${string}`;
1842
+ unpackTx: typeof import(".").unpackTx;
1843
+ buildTx: typeof import(".").buildTx;
1844
+ _computingMinFee?: BigNumber | undefined;
1845
+ _pickBiggerFee?: boolean | undefined;
1703
1846
  }): string;
1704
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1847
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1705
1848
  deserialize(value: Buffer): string;
1706
1849
  }
1707
1850
  ],
1708
1851
  readonly [
1709
1852
  "stateHash",
1710
- FIELD_TYPES.binary,
1711
- Encoded.Encoding.State
1853
+ {
1854
+ serialize: (value: `st_${string}`) => Buffer;
1855
+ 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}`;
1856
+ }
1712
1857
  ],
1713
1858
  readonly [
1714
1859
  "round",
@@ -1731,15 +1876,15 @@ export declare const TX_SCHEMA: {
1731
1876
  readonly [
1732
1877
  "tag",
1733
1878
  {
1734
- serialize(value: number): Buffer;
1735
- deserialize(value: Buffer): number;
1879
+ serialize: (value?: Tag.ChannelWithdrawTx | undefined) => Buffer;
1880
+ deserialize: (value: Buffer) => Tag.ChannelWithdrawTx;
1736
1881
  }
1737
1882
  ],
1738
1883
  readonly [
1739
- "VSN",
1884
+ "version",
1740
1885
  {
1741
- serialize(value: number): Buffer;
1742
- deserialize(value: Buffer): number;
1886
+ serialize: (value?: 1 | undefined) => Buffer;
1887
+ deserialize: (value: Buffer) => 1;
1743
1888
  }
1744
1889
  ],
1745
1890
  readonly [
@@ -1759,7 +1904,7 @@ export declare const TX_SCHEMA: {
1759
1904
  readonly [
1760
1905
  "amount",
1761
1906
  {
1762
- serialize(value: import("./field-types/u-int").Int): Buffer;
1907
+ serialize(value: import("./constants").Int): Buffer;
1763
1908
  deserialize(value: Buffer): string;
1764
1909
  }
1765
1910
  ],
@@ -1773,19 +1918,23 @@ export declare const TX_SCHEMA: {
1773
1918
  readonly [
1774
1919
  "fee",
1775
1920
  {
1776
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1777
- txType: Tag;
1778
- rebuildTx: (params: any) => any;
1779
- _computingMinFee?: string | undefined;
1921
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
1922
+ rebuildTx: (params: any) => `tx_${string}`;
1923
+ unpackTx: typeof import(".").unpackTx;
1924
+ buildTx: typeof import(".").buildTx;
1925
+ _computingMinFee?: BigNumber | undefined;
1926
+ _pickBiggerFee?: boolean | undefined;
1780
1927
  }): string;
1781
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1928
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1782
1929
  deserialize(value: Buffer): string;
1783
1930
  }
1784
1931
  ],
1785
1932
  readonly [
1786
1933
  "stateHash",
1787
- FIELD_TYPES.binary,
1788
- Encoded.Encoding.State
1934
+ {
1935
+ serialize: (value: `st_${string}`) => Buffer;
1936
+ 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}`;
1937
+ }
1789
1938
  ],
1790
1939
  readonly [
1791
1940
  "round",
@@ -1808,15 +1957,15 @@ export declare const TX_SCHEMA: {
1808
1957
  readonly [
1809
1958
  "tag",
1810
1959
  {
1811
- serialize(value: number): Buffer;
1812
- deserialize(value: Buffer): number;
1960
+ serialize: (value?: Tag.ChannelSettleTx | undefined) => Buffer;
1961
+ deserialize: (value: Buffer) => Tag.ChannelSettleTx;
1813
1962
  }
1814
1963
  ],
1815
1964
  readonly [
1816
- "VSN",
1965
+ "version",
1817
1966
  {
1818
- serialize(value: number): Buffer;
1819
- deserialize(value: Buffer): number;
1967
+ serialize: (value?: 1 | undefined) => Buffer;
1968
+ deserialize: (value: Buffer) => 1;
1820
1969
  }
1821
1970
  ],
1822
1971
  readonly [
@@ -1836,14 +1985,14 @@ export declare const TX_SCHEMA: {
1836
1985
  readonly [
1837
1986
  "initiatorAmountFinal",
1838
1987
  {
1839
- serialize(value: import("./field-types/u-int").Int): Buffer;
1988
+ serialize(value: import("./constants").Int): Buffer;
1840
1989
  deserialize(value: Buffer): string;
1841
1990
  }
1842
1991
  ],
1843
1992
  readonly [
1844
1993
  "responderAmountFinal",
1845
1994
  {
1846
- serialize(value: import("./field-types/u-int").Int): Buffer;
1995
+ serialize(value: import("./constants").Int): Buffer;
1847
1996
  deserialize(value: Buffer): string;
1848
1997
  }
1849
1998
  ],
@@ -1857,12 +2006,14 @@ export declare const TX_SCHEMA: {
1857
2006
  readonly [
1858
2007
  "fee",
1859
2008
  {
1860
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1861
- txType: Tag;
1862
- rebuildTx: (params: any) => any;
1863
- _computingMinFee?: string | undefined;
2009
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
2010
+ rebuildTx: (params: any) => `tx_${string}`;
2011
+ unpackTx: typeof import(".").unpackTx;
2012
+ buildTx: typeof import(".").buildTx;
2013
+ _computingMinFee?: BigNumber | undefined;
2014
+ _pickBiggerFee?: boolean | undefined;
1864
2015
  }): string;
1865
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2016
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1866
2017
  deserialize(value: Buffer): string;
1867
2018
  }
1868
2019
  ],
@@ -1880,15 +2031,15 @@ export declare const TX_SCHEMA: {
1880
2031
  readonly [
1881
2032
  "tag",
1882
2033
  {
1883
- serialize(value: number): Buffer;
1884
- deserialize(value: Buffer): number;
2034
+ serialize: (value?: Tag.ChannelForceProgressTx | undefined) => Buffer;
2035
+ deserialize: (value: Buffer) => Tag.ChannelForceProgressTx;
1885
2036
  }
1886
2037
  ],
1887
2038
  readonly [
1888
- "VSN",
2039
+ "version",
1889
2040
  {
1890
- serialize(value: number): Buffer;
1891
- deserialize(value: Buffer): number;
2041
+ serialize: (value?: 1 | undefined) => Buffer;
2042
+ deserialize: (value: Buffer) => 1;
1892
2043
  }
1893
2044
  ],
1894
2045
  readonly [
@@ -1907,8 +2058,10 @@ export declare const TX_SCHEMA: {
1907
2058
  ],
1908
2059
  readonly [
1909
2060
  "payload",
1910
- FIELD_TYPES.binary,
1911
- Encoded.Encoding.Transaction
2061
+ {
2062
+ serialize: (value: `tx_${string}`) => Buffer;
2063
+ 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}`;
2064
+ }
1912
2065
  ],
1913
2066
  readonly [
1914
2067
  "round",
@@ -1919,17 +2072,24 @@ export declare const TX_SCHEMA: {
1919
2072
  ],
1920
2073
  readonly [
1921
2074
  "update",
1922
- FIELD_TYPES.binary,
1923
- Encoded.Encoding.ContractBytearray
2075
+ {
2076
+ serialize: (value: `cb_${string}`) => Buffer;
2077
+ 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}`;
2078
+ }
1924
2079
  ],
1925
2080
  readonly [
1926
2081
  "stateHash",
1927
- FIELD_TYPES.binary,
1928
- Encoded.Encoding.State
2082
+ {
2083
+ serialize: (value: `st_${string}`) => Buffer;
2084
+ 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}`;
2085
+ }
1929
2086
  ],
1930
2087
  readonly [
1931
2088
  "offChainTrees",
1932
- FIELD_TYPES.stateTree
2089
+ {
2090
+ serialize: (value: `ss_${string}`) => Buffer;
2091
+ 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}`;
2092
+ }
1933
2093
  ],
1934
2094
  readonly [
1935
2095
  "ttl",
@@ -1941,12 +2101,14 @@ export declare const TX_SCHEMA: {
1941
2101
  readonly [
1942
2102
  "fee",
1943
2103
  {
1944
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1945
- txType: Tag;
1946
- rebuildTx: (params: any) => any;
1947
- _computingMinFee?: string | undefined;
2104
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
2105
+ rebuildTx: (params: any) => `tx_${string}`;
2106
+ unpackTx: typeof import(".").unpackTx;
2107
+ buildTx: typeof import(".").buildTx;
2108
+ _computingMinFee?: BigNumber | undefined;
2109
+ _pickBiggerFee?: boolean | undefined;
1948
2110
  }): string;
1949
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2111
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1950
2112
  deserialize(value: Buffer): string;
1951
2113
  }
1952
2114
  ],
@@ -1964,15 +2126,15 @@ export declare const TX_SCHEMA: {
1964
2126
  readonly [
1965
2127
  "tag",
1966
2128
  {
1967
- serialize(value: number): Buffer;
1968
- deserialize(value: Buffer): number;
2129
+ serialize: (value?: Tag.ChannelOffChainTx | undefined) => Buffer;
2130
+ deserialize: (value: Buffer) => Tag.ChannelOffChainTx;
1969
2131
  }
1970
2132
  ],
1971
2133
  readonly [
1972
- "VSN",
2134
+ "version",
1973
2135
  {
1974
- serialize(value: number): Buffer;
1975
- deserialize(value: Buffer): number;
2136
+ serialize: (value?: 2 | undefined) => Buffer;
2137
+ deserialize: (value: Buffer) => 2;
1976
2138
  }
1977
2139
  ],
1978
2140
  readonly [
@@ -1991,8 +2153,10 @@ export declare const TX_SCHEMA: {
1991
2153
  ],
1992
2154
  readonly [
1993
2155
  "stateHash",
1994
- FIELD_TYPES.binary,
1995
- Encoded.Encoding.State
2156
+ {
2157
+ serialize: (value: `st_${string}`) => Buffer;
2158
+ 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}`;
2159
+ }
1996
2160
  ]
1997
2161
  ];
1998
2162
  };
@@ -2001,15 +2165,15 @@ export declare const TX_SCHEMA: {
2001
2165
  readonly [
2002
2166
  "tag",
2003
2167
  {
2004
- serialize(value: number): Buffer;
2005
- deserialize(value: Buffer): number;
2168
+ serialize: (value?: Tag.Channel | undefined) => Buffer;
2169
+ deserialize: (value: Buffer) => Tag.Channel;
2006
2170
  }
2007
2171
  ],
2008
2172
  readonly [
2009
- "VSN",
2173
+ "version",
2010
2174
  {
2011
- serialize(value: number): Buffer;
2012
- deserialize(value: Buffer): number;
2175
+ serialize: (value?: 3 | undefined) => Buffer;
2176
+ deserialize: (value: Buffer) => 3;
2013
2177
  }
2014
2178
  ],
2015
2179
  readonly [
@@ -2029,48 +2193,51 @@ export declare const TX_SCHEMA: {
2029
2193
  readonly [
2030
2194
  "channelAmount",
2031
2195
  {
2032
- serialize(value: import("./field-types/u-int").Int): Buffer;
2196
+ serialize(value: import("./constants").Int): Buffer;
2033
2197
  deserialize(value: Buffer): string;
2034
2198
  }
2035
2199
  ],
2036
2200
  readonly [
2037
2201
  "initiatorAmount",
2038
2202
  {
2039
- serialize(value: import("./field-types/u-int").Int): Buffer;
2203
+ serialize(value: import("./constants").Int): Buffer;
2040
2204
  deserialize(value: Buffer): string;
2041
2205
  }
2042
2206
  ],
2043
2207
  readonly [
2044
2208
  "responderAmount",
2045
2209
  {
2046
- serialize(value: import("./field-types/u-int").Int): Buffer;
2210
+ serialize(value: import("./constants").Int): Buffer;
2047
2211
  deserialize(value: Buffer): string;
2048
2212
  }
2049
2213
  ],
2050
2214
  readonly [
2051
2215
  "channelReserve",
2052
2216
  {
2053
- serialize(value: import("./field-types/u-int").Int): Buffer;
2217
+ serialize(value: import("./constants").Int): Buffer;
2054
2218
  deserialize(value: Buffer): string;
2055
2219
  }
2056
2220
  ],
2057
2221
  readonly [
2058
2222
  "initiatorDelegateIds",
2059
2223
  {
2060
- serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[]) => Buffer[];
2061
- deserialize: (value: Buffer[]) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2224
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
2225
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2062
2226
  }
2063
2227
  ],
2064
2228
  readonly [
2065
2229
  "responderDelegateIds",
2066
2230
  {
2067
- serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[]) => Buffer[];
2068
- deserialize: (value: Buffer[]) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2231
+ serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[], params: unknown) => Buffer[];
2232
+ deserialize: (value: Buffer[], params: unknown) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
2069
2233
  }
2070
2234
  ],
2071
2235
  readonly [
2072
2236
  "stateHash",
2073
- FIELD_TYPES.hex
2237
+ {
2238
+ serialize: (value: `st_${string}`) => Buffer;
2239
+ 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}`;
2240
+ }
2074
2241
  ],
2075
2242
  readonly [
2076
2243
  "round",
@@ -2082,33 +2249,37 @@ export declare const TX_SCHEMA: {
2082
2249
  readonly [
2083
2250
  "soloRound",
2084
2251
  {
2085
- serialize(value: import("./field-types/u-int").Int): Buffer;
2252
+ serialize(value: import("./constants").Int): Buffer;
2086
2253
  deserialize(value: Buffer): string;
2087
2254
  }
2088
2255
  ],
2089
2256
  readonly [
2090
2257
  "lockPeriod",
2091
2258
  {
2092
- serialize(value: import("./field-types/u-int").Int): Buffer;
2259
+ serialize(value: import("./constants").Int): Buffer;
2093
2260
  deserialize(value: Buffer): string;
2094
2261
  }
2095
2262
  ],
2096
2263
  readonly [
2097
2264
  "lockedUntil",
2098
2265
  {
2099
- serialize(value: import("./field-types/u-int").Int): Buffer;
2266
+ serialize(value: import("./constants").Int): Buffer;
2100
2267
  deserialize(value: Buffer): string;
2101
2268
  }
2102
2269
  ],
2103
2270
  readonly [
2104
2271
  "initiatorAuth",
2105
- FIELD_TYPES.binary,
2106
- Encoded.Encoding.ContractBytearray
2272
+ {
2273
+ serialize: (value: `cb_${string}`) => Buffer;
2274
+ 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}`;
2275
+ }
2107
2276
  ],
2108
2277
  readonly [
2109
2278
  "responderAuth",
2110
- FIELD_TYPES.binary,
2111
- Encoded.Encoding.ContractBytearray
2279
+ {
2280
+ serialize: (value: `cb_${string}`) => Buffer;
2281
+ 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}`;
2282
+ }
2112
2283
  ]
2113
2284
  ];
2114
2285
  };
@@ -2117,15 +2288,15 @@ export declare const TX_SCHEMA: {
2117
2288
  readonly [
2118
2289
  "tag",
2119
2290
  {
2120
- serialize(value: number): Buffer;
2121
- deserialize(value: Buffer): number;
2291
+ serialize: (value?: Tag.ChannelSnapshotSoloTx | undefined) => Buffer;
2292
+ deserialize: (value: Buffer) => Tag.ChannelSnapshotSoloTx;
2122
2293
  }
2123
2294
  ],
2124
2295
  readonly [
2125
- "VSN",
2296
+ "version",
2126
2297
  {
2127
- serialize(value: number): Buffer;
2128
- deserialize(value: Buffer): number;
2298
+ serialize: (value?: 1 | undefined) => Buffer;
2299
+ deserialize: (value: Buffer) => 1;
2129
2300
  }
2130
2301
  ],
2131
2302
  readonly [
@@ -2144,8 +2315,10 @@ export declare const TX_SCHEMA: {
2144
2315
  ],
2145
2316
  readonly [
2146
2317
  "payload",
2147
- FIELD_TYPES.binary,
2148
- Encoded.Encoding.Transaction
2318
+ {
2319
+ serialize: (value: `tx_${string}`) => Buffer;
2320
+ 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}`;
2321
+ }
2149
2322
  ],
2150
2323
  readonly [
2151
2324
  "ttl",
@@ -2157,12 +2330,14 @@ export declare const TX_SCHEMA: {
2157
2330
  readonly [
2158
2331
  "fee",
2159
2332
  {
2160
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
2161
- txType: Tag;
2162
- rebuildTx: (params: any) => any;
2163
- _computingMinFee?: string | undefined;
2333
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
2334
+ rebuildTx: (params: any) => `tx_${string}`;
2335
+ unpackTx: typeof import(".").unpackTx;
2336
+ buildTx: typeof import(".").buildTx;
2337
+ _computingMinFee?: BigNumber | undefined;
2338
+ _pickBiggerFee?: boolean | undefined;
2164
2339
  }): string;
2165
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2340
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2166
2341
  deserialize(value: Buffer): string;
2167
2342
  }
2168
2343
  ],
@@ -2180,15 +2355,15 @@ export declare const TX_SCHEMA: {
2180
2355
  readonly [
2181
2356
  "tag",
2182
2357
  {
2183
- serialize(value: number): Buffer;
2184
- deserialize(value: Buffer): number;
2358
+ serialize: (value?: Tag.ChannelOffChainUpdateTransfer | undefined) => Buffer;
2359
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateTransfer;
2185
2360
  }
2186
2361
  ],
2187
2362
  readonly [
2188
- "VSN",
2363
+ "version",
2189
2364
  {
2190
- serialize(value: number): Buffer;
2191
- deserialize(value: Buffer): number;
2365
+ serialize: (value?: 1 | undefined) => Buffer;
2366
+ deserialize: (value: Buffer) => 1;
2192
2367
  }
2193
2368
  ],
2194
2369
  readonly [
@@ -2208,7 +2383,7 @@ export declare const TX_SCHEMA: {
2208
2383
  readonly [
2209
2384
  "amount",
2210
2385
  {
2211
- serialize(value: import("./field-types/u-int").Int): Buffer;
2386
+ serialize(value: import("./constants").Int): Buffer;
2212
2387
  deserialize(value: Buffer): string;
2213
2388
  }
2214
2389
  ]
@@ -2219,15 +2394,15 @@ export declare const TX_SCHEMA: {
2219
2394
  readonly [
2220
2395
  "tag",
2221
2396
  {
2222
- serialize(value: number): Buffer;
2223
- deserialize(value: Buffer): number;
2397
+ serialize: (value?: Tag.ChannelOffChainUpdateDeposit | undefined) => Buffer;
2398
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateDeposit;
2224
2399
  }
2225
2400
  ],
2226
2401
  readonly [
2227
- "VSN",
2402
+ "version",
2228
2403
  {
2229
- serialize(value: number): Buffer;
2230
- deserialize(value: Buffer): number;
2404
+ serialize: (value?: 1 | undefined) => Buffer;
2405
+ deserialize: (value: Buffer) => 1;
2231
2406
  }
2232
2407
  ],
2233
2408
  readonly [
@@ -2240,7 +2415,7 @@ export declare const TX_SCHEMA: {
2240
2415
  readonly [
2241
2416
  "amount",
2242
2417
  {
2243
- serialize(value: import("./field-types/u-int").Int): Buffer;
2418
+ serialize(value: import("./constants").Int): Buffer;
2244
2419
  deserialize(value: Buffer): string;
2245
2420
  }
2246
2421
  ]
@@ -2251,15 +2426,15 @@ export declare const TX_SCHEMA: {
2251
2426
  readonly [
2252
2427
  "tag",
2253
2428
  {
2254
- serialize(value: number): Buffer;
2255
- deserialize(value: Buffer): number;
2429
+ serialize: (value?: Tag.ChannelOffChainUpdateWithdraw | undefined) => Buffer;
2430
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateWithdraw;
2256
2431
  }
2257
2432
  ],
2258
2433
  readonly [
2259
- "VSN",
2434
+ "version",
2260
2435
  {
2261
- serialize(value: number): Buffer;
2262
- deserialize(value: Buffer): number;
2436
+ serialize: (value?: 1 | undefined) => Buffer;
2437
+ deserialize: (value: Buffer) => 1;
2263
2438
  }
2264
2439
  ],
2265
2440
  readonly [
@@ -2272,7 +2447,7 @@ export declare const TX_SCHEMA: {
2272
2447
  readonly [
2273
2448
  "amount",
2274
2449
  {
2275
- serialize(value: import("./field-types/u-int").Int): Buffer;
2450
+ serialize(value: import("./constants").Int): Buffer;
2276
2451
  deserialize(value: Buffer): string;
2277
2452
  }
2278
2453
  ]
@@ -2283,15 +2458,15 @@ export declare const TX_SCHEMA: {
2283
2458
  readonly [
2284
2459
  "tag",
2285
2460
  {
2286
- serialize(value: number): Buffer;
2287
- deserialize(value: Buffer): number;
2461
+ serialize: (value?: Tag.ChannelOffChainUpdateCreateContract | undefined) => Buffer;
2462
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateCreateContract;
2288
2463
  }
2289
2464
  ],
2290
2465
  readonly [
2291
- "VSN",
2466
+ "version",
2292
2467
  {
2293
- serialize(value: number): Buffer;
2294
- deserialize(value: Buffer): number;
2468
+ serialize: (value?: 1 | undefined) => Buffer;
2469
+ deserialize: (value: Buffer) => 1;
2295
2470
  }
2296
2471
  ],
2297
2472
  readonly [
@@ -2303,24 +2478,33 @@ export declare const TX_SCHEMA: {
2303
2478
  ],
2304
2479
  readonly [
2305
2480
  "ctVersion",
2306
- FIELD_TYPES.ctVersion
2481
+ {
2482
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
2483
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
2484
+ }): Buffer;
2485
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
2486
+ }
2307
2487
  ],
2308
2488
  readonly [
2309
2489
  "code",
2310
- FIELD_TYPES.binary,
2311
- Encoded.Encoding.ContractBytearray
2490
+ {
2491
+ serialize: (value: `cb_${string}`) => Buffer;
2492
+ 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}`;
2493
+ }
2312
2494
  ],
2313
2495
  readonly [
2314
2496
  "deposit",
2315
2497
  {
2316
- serialize(value: import("./field-types/u-int").Int): Buffer;
2498
+ serialize(value: import("./constants").Int): Buffer;
2317
2499
  deserialize(value: Buffer): string;
2318
2500
  }
2319
2501
  ],
2320
2502
  readonly [
2321
2503
  "callData",
2322
- FIELD_TYPES.binary,
2323
- Encoded.Encoding.ContractBytearray
2504
+ {
2505
+ serialize: (value: `cb_${string}`) => Buffer;
2506
+ 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}`;
2507
+ }
2324
2508
  ]
2325
2509
  ];
2326
2510
  };
@@ -2329,15 +2513,15 @@ export declare const TX_SCHEMA: {
2329
2513
  readonly [
2330
2514
  "tag",
2331
2515
  {
2332
- serialize(value: number): Buffer;
2333
- deserialize(value: Buffer): number;
2516
+ serialize: (value?: Tag.ChannelOffChainUpdateCallContract | undefined) => Buffer;
2517
+ deserialize: (value: Buffer) => Tag.ChannelOffChainUpdateCallContract;
2334
2518
  }
2335
2519
  ],
2336
2520
  readonly [
2337
- "VSN",
2521
+ "version",
2338
2522
  {
2339
- serialize(value: number): Buffer;
2340
- deserialize(value: Buffer): number;
2523
+ serialize: (value?: 1 | undefined) => Buffer;
2524
+ deserialize: (value: Buffer) => 1;
2341
2525
  }
2342
2526
  ],
2343
2527
  readonly [
@@ -2357,40 +2541,50 @@ export declare const TX_SCHEMA: {
2357
2541
  readonly [
2358
2542
  "abiVersion",
2359
2543
  {
2360
- serialize: (value: ABI_VERSIONS) => Buffer;
2361
- deserialize: (value: Buffer) => ABI_VERSIONS;
2544
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
2545
+ tag: Tag;
2546
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
2547
+ }): Buffer;
2548
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
2362
2549
  }
2363
2550
  ],
2364
2551
  readonly [
2365
2552
  "amount",
2366
2553
  {
2367
- serialize(value: import("./field-types/u-int").Int): Buffer;
2554
+ serialize(value: import("./constants").Int): Buffer;
2368
2555
  deserialize(value: Buffer): string;
2369
2556
  }
2370
2557
  ],
2371
2558
  readonly [
2372
2559
  "callData",
2373
- FIELD_TYPES.binary,
2374
- Encoded.Encoding.ContractBytearray
2560
+ {
2561
+ serialize: (value: `cb_${string}`) => Buffer;
2562
+ 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}`;
2563
+ }
2375
2564
  ],
2376
2565
  readonly [
2377
2566
  "callStack",
2378
- FIELD_TYPES.callStack
2567
+ {
2568
+ serialize(buffer: Uint8Array): Buffer;
2569
+ deserialize(buffer: Buffer): Buffer;
2570
+ }
2379
2571
  ],
2380
2572
  readonly [
2381
2573
  "gasPrice",
2382
2574
  {
2383
2575
  serializeAettos(value?: string | undefined): string;
2384
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2576
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2385
2577
  deserialize(value: Buffer): string;
2386
2578
  }
2387
2579
  ],
2388
2580
  readonly [
2389
2581
  "gasLimit",
2390
2582
  {
2391
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
2392
- txType: Tag;
2583
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
2584
+ tag: Tag;
2393
2585
  rebuildTx: (params: any) => any;
2586
+ unpackTx: typeof import(".").unpackTx;
2587
+ buildTx: typeof import(".").buildTx;
2394
2588
  gasMax: number;
2395
2589
  _computingGasLimit?: number | undefined;
2396
2590
  }): Buffer;
@@ -2404,15 +2598,15 @@ export declare const TX_SCHEMA: {
2404
2598
  readonly [
2405
2599
  "tag",
2406
2600
  {
2407
- serialize(value: number): Buffer;
2408
- deserialize(value: Buffer): number;
2601
+ serialize: (value?: Tag.ChannelClientReconnectTx | undefined) => Buffer;
2602
+ deserialize: (value: Buffer) => Tag.ChannelClientReconnectTx;
2409
2603
  }
2410
2604
  ],
2411
2605
  readonly [
2412
- "VSN",
2606
+ "version",
2413
2607
  {
2414
- serialize(value: number): Buffer;
2415
- deserialize(value: Buffer): number;
2608
+ serialize: (value?: 1 | undefined) => Buffer;
2609
+ deserialize: (value: Buffer) => 1;
2416
2610
  }
2417
2611
  ],
2418
2612
  readonly [
@@ -2431,7 +2625,10 @@ export declare const TX_SCHEMA: {
2431
2625
  ],
2432
2626
  readonly [
2433
2627
  "role",
2434
- FIELD_TYPES.string
2628
+ {
2629
+ serialize(string: string): Buffer;
2630
+ deserialize(buffer: Buffer): string;
2631
+ }
2435
2632
  ],
2436
2633
  readonly [
2437
2634
  "pubkey",
@@ -2447,40 +2644,1454 @@ export declare const TX_SCHEMA: {
2447
2644
  readonly [
2448
2645
  "tag",
2449
2646
  {
2450
- serialize(value: number): Buffer;
2451
- deserialize(value: Buffer): number;
2647
+ serialize: (value?: Tag.TreesPoi | undefined) => Buffer;
2648
+ deserialize: (value: Buffer) => Tag.TreesPoi;
2452
2649
  }
2453
2650
  ],
2454
2651
  readonly [
2455
- "VSN",
2652
+ "version",
2456
2653
  {
2457
- serialize(value: number): Buffer;
2458
- deserialize(value: Buffer): number;
2654
+ serialize: (value?: 1 | undefined) => Buffer;
2655
+ deserialize: (value: Buffer) => 1;
2459
2656
  }
2460
2657
  ],
2461
2658
  readonly [
2462
2659
  "accounts",
2463
- FIELD_TYPES.mptrees
2660
+ {
2661
+ serialize: (value: {
2662
+ readonly "__#3@#rootHash": string;
2663
+ "__#3@#isComplete": boolean;
2664
+ readonly isComplete: boolean;
2665
+ readonly "__#3@#nodes": {
2666
+ [key: string]: Buffer[];
2667
+ };
2668
+ readonly "__#3@#encoding": Encoding.AccountAddress;
2669
+ readonly "__#3@#tag": Tag.Account;
2670
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2671
+ isEqual(tree: any): boolean;
2672
+ serialize(): [
2673
+ Buffer,
2674
+ [
2675
+ Buffer,
2676
+ Buffer[]
2677
+ ][]
2678
+ ];
2679
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2680
+ get(key: `ak_${string}`): RawTxObject<(Partial<Pick<{
2681
+ tag: Tag.Account | undefined;
2682
+ }, "tag">> & Omit<{
2683
+ tag: Tag.Account | undefined;
2684
+ }, "tag"> & Partial<Pick<{
2685
+ nonce: number;
2686
+ }, never>> & Omit<{
2687
+ nonce: number;
2688
+ }, never> & Partial<Pick<{
2689
+ balance: import("./constants").Int;
2690
+ }, never>> & Omit<{
2691
+ balance: import("./constants").Int;
2692
+ }, never> & Partial<Pick<{
2693
+ version: 2 | undefined;
2694
+ }, "version">> & Omit<{
2695
+ version: 2 | undefined;
2696
+ }, "version"> & Partial<Pick<{
2697
+ flags: import("./constants").Int;
2698
+ }, never>> & Omit<{
2699
+ flags: import("./constants").Int;
2700
+ }, never> & Partial<Pick<{
2701
+ gaContract: `ct_${string}` | `nm_${string}`;
2702
+ }, never>> & Omit<{
2703
+ gaContract: `ct_${string}` | `nm_${string}`;
2704
+ }, never> & Partial<Pick<{
2705
+ gaAuthFun: `cb_${string}`;
2706
+ }, never>> & Omit<{
2707
+ gaAuthFun: `cb_${string}`;
2708
+ }, never>) | (Partial<Pick<{
2709
+ tag: Tag.Account | undefined;
2710
+ }, "tag">> & Omit<{
2711
+ tag: Tag.Account | undefined;
2712
+ }, "tag"> & Partial<Pick<{
2713
+ nonce: number;
2714
+ }, never>> & Omit<{
2715
+ nonce: number;
2716
+ }, never> & Partial<Pick<{
2717
+ balance: import("./constants").Int;
2718
+ }, never>> & Omit<{
2719
+ balance: import("./constants").Int;
2720
+ }, never> & Partial<Pick<{
2721
+ version: 1 | undefined;
2722
+ }, "version">> & Omit<{
2723
+ version: 1 | undefined;
2724
+ }, "version">)> | undefined;
2725
+ "__#3@#entriesRaw"(): [
2726
+ string,
2727
+ Buffer
2728
+ ][];
2729
+ 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<{
2730
+ tag: Tag.Account | undefined;
2731
+ }, "tag">> & Omit<{
2732
+ tag: Tag.Account | undefined;
2733
+ }, "tag"> & Partial<Pick<{
2734
+ nonce: number;
2735
+ }, never>> & Omit<{
2736
+ nonce: number;
2737
+ }, never> & Partial<Pick<{
2738
+ balance: import("./constants").Int;
2739
+ }, never>> & Omit<{
2740
+ balance: import("./constants").Int;
2741
+ }, never> & Partial<Pick<{
2742
+ version: 2 | undefined;
2743
+ }, "version">> & Omit<{
2744
+ version: 2 | undefined;
2745
+ }, "version"> & Partial<Pick<{
2746
+ flags: import("./constants").Int;
2747
+ }, never>> & Omit<{
2748
+ flags: import("./constants").Int;
2749
+ }, never> & Partial<Pick<{
2750
+ gaContract: `ct_${string}` | `nm_${string}`;
2751
+ }, never>> & Omit<{
2752
+ gaContract: `ct_${string}` | `nm_${string}`;
2753
+ }, never> & Partial<Pick<{
2754
+ gaAuthFun: `cb_${string}`;
2755
+ }, never>> & Omit<{
2756
+ gaAuthFun: `cb_${string}`;
2757
+ }, never>) | (Partial<Pick<{
2758
+ tag: Tag.Account | undefined;
2759
+ }, "tag">> & Omit<{
2760
+ tag: Tag.Account | undefined;
2761
+ }, "tag"> & Partial<Pick<{
2762
+ nonce: number;
2763
+ }, never>> & Omit<{
2764
+ nonce: number;
2765
+ }, never> & Partial<Pick<{
2766
+ balance: import("./constants").Int;
2767
+ }, never>> & Omit<{
2768
+ balance: import("./constants").Int;
2769
+ }, never> & Partial<Pick<{
2770
+ version: 1 | undefined;
2771
+ }, "version">> & Omit<{
2772
+ version: 1 | undefined;
2773
+ }, "version">)>>;
2774
+ }[], params: unknown) => [
2775
+ Buffer,
2776
+ [
2777
+ Buffer,
2778
+ Buffer[]
2779
+ ][]
2780
+ ][];
2781
+ deserialize: (value: [
2782
+ Buffer,
2783
+ [
2784
+ Buffer,
2785
+ Buffer[]
2786
+ ][]
2787
+ ][], params: unknown) => {
2788
+ readonly "__#3@#rootHash": string;
2789
+ "__#3@#isComplete": boolean;
2790
+ readonly isComplete: boolean;
2791
+ readonly "__#3@#nodes": {
2792
+ [key: string]: Buffer[];
2793
+ };
2794
+ readonly "__#3@#encoding": Encoding.AccountAddress;
2795
+ readonly "__#3@#tag": Tag.Account;
2796
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2797
+ isEqual(tree: any): boolean;
2798
+ serialize(): [
2799
+ Buffer,
2800
+ [
2801
+ Buffer,
2802
+ Buffer[]
2803
+ ][]
2804
+ ];
2805
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2806
+ get(key: `ak_${string}`): RawTxObject<(Partial<Pick<{
2807
+ tag: Tag.Account | undefined;
2808
+ }, "tag">> & Omit<{
2809
+ tag: Tag.Account | undefined;
2810
+ }, "tag"> & Partial<Pick<{
2811
+ nonce: number;
2812
+ }, never>> & Omit<{
2813
+ nonce: number;
2814
+ }, never> & Partial<Pick<{
2815
+ balance: import("./constants").Int;
2816
+ }, never>> & Omit<{
2817
+ balance: import("./constants").Int;
2818
+ }, never> & Partial<Pick<{
2819
+ version: 2 | undefined;
2820
+ }, "version">> & Omit<{
2821
+ version: 2 | undefined;
2822
+ }, "version"> & Partial<Pick<{
2823
+ flags: import("./constants").Int;
2824
+ }, never>> & Omit<{
2825
+ flags: import("./constants").Int;
2826
+ }, never> & Partial<Pick<{
2827
+ gaContract: `ct_${string}` | `nm_${string}`;
2828
+ }, never>> & Omit<{
2829
+ gaContract: `ct_${string}` | `nm_${string}`;
2830
+ }, never> & Partial<Pick<{
2831
+ gaAuthFun: `cb_${string}`;
2832
+ }, never>> & Omit<{
2833
+ gaAuthFun: `cb_${string}`;
2834
+ }, never>) | (Partial<Pick<{
2835
+ tag: Tag.Account | undefined;
2836
+ }, "tag">> & Omit<{
2837
+ tag: Tag.Account | undefined;
2838
+ }, "tag"> & Partial<Pick<{
2839
+ nonce: number;
2840
+ }, never>> & Omit<{
2841
+ nonce: number;
2842
+ }, never> & Partial<Pick<{
2843
+ balance: import("./constants").Int;
2844
+ }, never>> & Omit<{
2845
+ balance: import("./constants").Int;
2846
+ }, never> & Partial<Pick<{
2847
+ version: 1 | undefined;
2848
+ }, "version">> & Omit<{
2849
+ version: 1 | undefined;
2850
+ }, "version">)> | undefined;
2851
+ "__#3@#entriesRaw"(): [
2852
+ string,
2853
+ Buffer
2854
+ ][];
2855
+ 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<{
2856
+ tag: Tag.Account | undefined;
2857
+ }, "tag">> & Omit<{
2858
+ tag: Tag.Account | undefined;
2859
+ }, "tag"> & Partial<Pick<{
2860
+ nonce: number;
2861
+ }, never>> & Omit<{
2862
+ nonce: number;
2863
+ }, never> & Partial<Pick<{
2864
+ balance: import("./constants").Int;
2865
+ }, never>> & Omit<{
2866
+ balance: import("./constants").Int;
2867
+ }, never> & Partial<Pick<{
2868
+ version: 2 | undefined;
2869
+ }, "version">> & Omit<{
2870
+ version: 2 | undefined;
2871
+ }, "version"> & Partial<Pick<{
2872
+ flags: import("./constants").Int;
2873
+ }, never>> & Omit<{
2874
+ flags: import("./constants").Int;
2875
+ }, never> & Partial<Pick<{
2876
+ gaContract: `ct_${string}` | `nm_${string}`;
2877
+ }, never>> & Omit<{
2878
+ gaContract: `ct_${string}` | `nm_${string}`;
2879
+ }, never> & Partial<Pick<{
2880
+ gaAuthFun: `cb_${string}`;
2881
+ }, never>> & Omit<{
2882
+ gaAuthFun: `cb_${string}`;
2883
+ }, never>) | (Partial<Pick<{
2884
+ tag: Tag.Account | undefined;
2885
+ }, "tag">> & Omit<{
2886
+ tag: Tag.Account | undefined;
2887
+ }, "tag"> & Partial<Pick<{
2888
+ nonce: number;
2889
+ }, never>> & Omit<{
2890
+ nonce: number;
2891
+ }, never> & Partial<Pick<{
2892
+ balance: import("./constants").Int;
2893
+ }, never>> & Omit<{
2894
+ balance: import("./constants").Int;
2895
+ }, never> & Partial<Pick<{
2896
+ version: 1 | undefined;
2897
+ }, "version">> & Omit<{
2898
+ version: 1 | undefined;
2899
+ }, "version">)>>;
2900
+ }[];
2901
+ }
2464
2902
  ],
2465
2903
  readonly [
2466
2904
  "calls",
2467
- FIELD_TYPES.mptrees
2905
+ {
2906
+ serialize: (value: {
2907
+ readonly "__#3@#rootHash": string;
2908
+ "__#3@#isComplete": boolean;
2909
+ readonly isComplete: boolean;
2910
+ readonly "__#3@#nodes": {
2911
+ [key: string]: Buffer[];
2912
+ };
2913
+ readonly "__#3@#encoding": Encoding.Bytearray;
2914
+ readonly "__#3@#tag": Tag.ContractCall;
2915
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
2916
+ isEqual(tree: any): boolean;
2917
+ serialize(): [
2918
+ Buffer,
2919
+ [
2920
+ Buffer,
2921
+ Buffer[]
2922
+ ][]
2923
+ ];
2924
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
2925
+ get(key: `ba_${string}`): RawTxObject<Partial<Pick<{
2926
+ version: 1 | undefined;
2927
+ }, "version">> & Omit<{
2928
+ version: 1 | undefined;
2929
+ }, "version"> & Partial<Pick<{
2930
+ gasPrice: import("./constants").Int | undefined;
2931
+ }, "gasPrice">> & Omit<{
2932
+ gasPrice: import("./constants").Int | undefined;
2933
+ }, "gasPrice"> & Partial<Pick<{
2934
+ callerId: `ak_${string}`;
2935
+ }, never>> & Omit<{
2936
+ callerId: `ak_${string}`;
2937
+ }, never> & Partial<Pick<{
2938
+ tag: Tag.ContractCall | undefined;
2939
+ }, "tag">> & Omit<{
2940
+ tag: Tag.ContractCall | undefined;
2941
+ }, "tag"> & Partial<Pick<{
2942
+ callerNonce: number;
2943
+ }, never>> & Omit<{
2944
+ callerNonce: number;
2945
+ }, never> & Partial<Pick<{
2946
+ height: number;
2947
+ }, never>> & Omit<{
2948
+ height: number;
2949
+ }, never> & Partial<Pick<{
2950
+ contractId: `ct_${string}`;
2951
+ }, never>> & Omit<{
2952
+ contractId: `ct_${string}`;
2953
+ }, never> & Partial<Pick<{
2954
+ gasUsed: number;
2955
+ }, never>> & Omit<{
2956
+ gasUsed: number;
2957
+ }, never> & Partial<Pick<{
2958
+ returnValue: `cb_${string}`;
2959
+ }, never>> & Omit<{
2960
+ returnValue: `cb_${string}`;
2961
+ }, never> & Partial<Pick<{
2962
+ returnType: CallReturnType;
2963
+ }, never>> & Omit<{
2964
+ returnType: CallReturnType;
2965
+ }, never> & Partial<Pick<{
2966
+ log: Uint8Array;
2967
+ }, never>> & Omit<{
2968
+ log: Uint8Array;
2969
+ }, never>> | undefined;
2970
+ "__#3@#entriesRaw"(): [
2971
+ string,
2972
+ Buffer
2973
+ ][];
2974
+ 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<{
2975
+ version: 1 | undefined;
2976
+ }, "version">> & Omit<{
2977
+ version: 1 | undefined;
2978
+ }, "version"> & Partial<Pick<{
2979
+ gasPrice: import("./constants").Int | undefined;
2980
+ }, "gasPrice">> & Omit<{
2981
+ gasPrice: import("./constants").Int | undefined;
2982
+ }, "gasPrice"> & Partial<Pick<{
2983
+ callerId: `ak_${string}`;
2984
+ }, never>> & Omit<{
2985
+ callerId: `ak_${string}`;
2986
+ }, never> & Partial<Pick<{
2987
+ tag: Tag.ContractCall | undefined;
2988
+ }, "tag">> & Omit<{
2989
+ tag: Tag.ContractCall | undefined;
2990
+ }, "tag"> & Partial<Pick<{
2991
+ callerNonce: number;
2992
+ }, never>> & Omit<{
2993
+ callerNonce: number;
2994
+ }, never> & Partial<Pick<{
2995
+ height: number;
2996
+ }, never>> & Omit<{
2997
+ height: number;
2998
+ }, never> & Partial<Pick<{
2999
+ contractId: `ct_${string}`;
3000
+ }, never>> & Omit<{
3001
+ contractId: `ct_${string}`;
3002
+ }, never> & Partial<Pick<{
3003
+ gasUsed: number;
3004
+ }, never>> & Omit<{
3005
+ gasUsed: number;
3006
+ }, never> & Partial<Pick<{
3007
+ returnValue: `cb_${string}`;
3008
+ }, never>> & Omit<{
3009
+ returnValue: `cb_${string}`;
3010
+ }, never> & Partial<Pick<{
3011
+ returnType: CallReturnType;
3012
+ }, never>> & Omit<{
3013
+ returnType: CallReturnType;
3014
+ }, never> & Partial<Pick<{
3015
+ log: Uint8Array;
3016
+ }, never>> & Omit<{
3017
+ log: Uint8Array;
3018
+ }, never>>>;
3019
+ }[], params: unknown) => [
3020
+ Buffer,
3021
+ [
3022
+ Buffer,
3023
+ Buffer[]
3024
+ ][]
3025
+ ][];
3026
+ deserialize: (value: [
3027
+ Buffer,
3028
+ [
3029
+ Buffer,
3030
+ Buffer[]
3031
+ ][]
3032
+ ][], params: unknown) => {
3033
+ readonly "__#3@#rootHash": string;
3034
+ "__#3@#isComplete": boolean;
3035
+ readonly isComplete: boolean;
3036
+ readonly "__#3@#nodes": {
3037
+ [key: string]: Buffer[];
3038
+ };
3039
+ readonly "__#3@#encoding": Encoding.Bytearray;
3040
+ readonly "__#3@#tag": Tag.ContractCall;
3041
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3042
+ isEqual(tree: any): boolean;
3043
+ serialize(): [
3044
+ Buffer,
3045
+ [
3046
+ Buffer,
3047
+ Buffer[]
3048
+ ][]
3049
+ ];
3050
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3051
+ get(key: `ba_${string}`): RawTxObject<Partial<Pick<{
3052
+ version: 1 | undefined;
3053
+ }, "version">> & Omit<{
3054
+ version: 1 | undefined;
3055
+ }, "version"> & Partial<Pick<{
3056
+ gasPrice: import("./constants").Int | undefined;
3057
+ }, "gasPrice">> & Omit<{
3058
+ gasPrice: import("./constants").Int | undefined;
3059
+ }, "gasPrice"> & Partial<Pick<{
3060
+ callerId: `ak_${string}`;
3061
+ }, never>> & Omit<{
3062
+ callerId: `ak_${string}`;
3063
+ }, never> & Partial<Pick<{
3064
+ tag: Tag.ContractCall | undefined;
3065
+ }, "tag">> & Omit<{
3066
+ tag: Tag.ContractCall | undefined;
3067
+ }, "tag"> & Partial<Pick<{
3068
+ callerNonce: number;
3069
+ }, never>> & Omit<{
3070
+ callerNonce: number;
3071
+ }, never> & Partial<Pick<{
3072
+ height: number;
3073
+ }, never>> & Omit<{
3074
+ height: number;
3075
+ }, never> & Partial<Pick<{
3076
+ contractId: `ct_${string}`;
3077
+ }, never>> & Omit<{
3078
+ contractId: `ct_${string}`;
3079
+ }, never> & Partial<Pick<{
3080
+ gasUsed: number;
3081
+ }, never>> & Omit<{
3082
+ gasUsed: number;
3083
+ }, never> & Partial<Pick<{
3084
+ returnValue: `cb_${string}`;
3085
+ }, never>> & Omit<{
3086
+ returnValue: `cb_${string}`;
3087
+ }, never> & Partial<Pick<{
3088
+ returnType: CallReturnType;
3089
+ }, never>> & Omit<{
3090
+ returnType: CallReturnType;
3091
+ }, never> & Partial<Pick<{
3092
+ log: Uint8Array;
3093
+ }, never>> & Omit<{
3094
+ log: Uint8Array;
3095
+ }, never>> | undefined;
3096
+ "__#3@#entriesRaw"(): [
3097
+ string,
3098
+ Buffer
3099
+ ][];
3100
+ 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<{
3101
+ version: 1 | undefined;
3102
+ }, "version">> & Omit<{
3103
+ version: 1 | undefined;
3104
+ }, "version"> & Partial<Pick<{
3105
+ gasPrice: import("./constants").Int | undefined;
3106
+ }, "gasPrice">> & Omit<{
3107
+ gasPrice: import("./constants").Int | undefined;
3108
+ }, "gasPrice"> & Partial<Pick<{
3109
+ callerId: `ak_${string}`;
3110
+ }, never>> & Omit<{
3111
+ callerId: `ak_${string}`;
3112
+ }, never> & Partial<Pick<{
3113
+ tag: Tag.ContractCall | undefined;
3114
+ }, "tag">> & Omit<{
3115
+ tag: Tag.ContractCall | undefined;
3116
+ }, "tag"> & Partial<Pick<{
3117
+ callerNonce: number;
3118
+ }, never>> & Omit<{
3119
+ callerNonce: number;
3120
+ }, never> & Partial<Pick<{
3121
+ height: number;
3122
+ }, never>> & Omit<{
3123
+ height: number;
3124
+ }, never> & Partial<Pick<{
3125
+ contractId: `ct_${string}`;
3126
+ }, never>> & Omit<{
3127
+ contractId: `ct_${string}`;
3128
+ }, never> & Partial<Pick<{
3129
+ gasUsed: number;
3130
+ }, never>> & Omit<{
3131
+ gasUsed: number;
3132
+ }, never> & Partial<Pick<{
3133
+ returnValue: `cb_${string}`;
3134
+ }, never>> & Omit<{
3135
+ returnValue: `cb_${string}`;
3136
+ }, never> & Partial<Pick<{
3137
+ returnType: CallReturnType;
3138
+ }, never>> & Omit<{
3139
+ returnType: CallReturnType;
3140
+ }, never> & Partial<Pick<{
3141
+ log: Uint8Array;
3142
+ }, never>> & Omit<{
3143
+ log: Uint8Array;
3144
+ }, never>>>;
3145
+ }[];
3146
+ }
2468
3147
  ],
2469
3148
  readonly [
2470
3149
  "channels",
2471
- FIELD_TYPES.mptrees
3150
+ {
3151
+ serialize: (value: {
3152
+ readonly "__#3@#rootHash": string;
3153
+ "__#3@#isComplete": boolean;
3154
+ readonly isComplete: boolean;
3155
+ readonly "__#3@#nodes": {
3156
+ [key: string]: Buffer[];
3157
+ };
3158
+ readonly "__#3@#encoding": Encoding.Channel;
3159
+ readonly "__#3@#tag": Tag.Channel;
3160
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3161
+ isEqual(tree: any): boolean;
3162
+ serialize(): [
3163
+ Buffer,
3164
+ [
3165
+ Buffer,
3166
+ Buffer[]
3167
+ ][]
3168
+ ];
3169
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3170
+ get(key: `ch_${string}`): RawTxObject<Partial<Pick<{
3171
+ initiator: `ak_${string}`;
3172
+ }, never>> & Omit<{
3173
+ initiator: `ak_${string}`;
3174
+ }, never> & Partial<Pick<{
3175
+ initiatorAmount: import("./constants").Int;
3176
+ }, never>> & Omit<{
3177
+ initiatorAmount: import("./constants").Int;
3178
+ }, never> & Partial<Pick<{
3179
+ responder: `ak_${string}`;
3180
+ }, never>> & Omit<{
3181
+ responder: `ak_${string}`;
3182
+ }, never> & Partial<Pick<{
3183
+ responderAmount: import("./constants").Int;
3184
+ }, never>> & Omit<{
3185
+ responderAmount: import("./constants").Int;
3186
+ }, never> & Partial<Pick<{
3187
+ channelReserve: import("./constants").Int;
3188
+ }, never>> & Omit<{
3189
+ channelReserve: import("./constants").Int;
3190
+ }, never> & Partial<Pick<{
3191
+ lockPeriod: import("./constants").Int;
3192
+ }, never>> & Omit<{
3193
+ lockPeriod: import("./constants").Int;
3194
+ }, never> & Partial<Pick<{
3195
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3196
+ }, never>> & Omit<{
3197
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3198
+ }, never> & Partial<Pick<{
3199
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3200
+ }, never>> & Omit<{
3201
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3202
+ }, never> & Partial<Pick<{
3203
+ stateHash: `st_${string}`;
3204
+ }, never>> & Omit<{
3205
+ stateHash: `st_${string}`;
3206
+ }, never> & Partial<Pick<{
3207
+ round: number;
3208
+ }, never>> & Omit<{
3209
+ round: number;
3210
+ }, never> & Partial<Pick<{
3211
+ tag: Tag.Channel | undefined;
3212
+ }, "tag">> & Omit<{
3213
+ tag: Tag.Channel | undefined;
3214
+ }, "tag"> & Partial<Pick<{
3215
+ version: 3 | undefined;
3216
+ }, "version">> & Omit<{
3217
+ version: 3 | undefined;
3218
+ }, "version"> & Partial<Pick<{
3219
+ channelAmount: import("./constants").Int;
3220
+ }, never>> & Omit<{
3221
+ channelAmount: import("./constants").Int;
3222
+ }, never> & Partial<Pick<{
3223
+ soloRound: import("./constants").Int;
3224
+ }, never>> & Omit<{
3225
+ soloRound: import("./constants").Int;
3226
+ }, never> & Partial<Pick<{
3227
+ lockedUntil: import("./constants").Int;
3228
+ }, never>> & Omit<{
3229
+ lockedUntil: import("./constants").Int;
3230
+ }, never> & Partial<Pick<{
3231
+ initiatorAuth: `cb_${string}`;
3232
+ }, never>> & Omit<{
3233
+ initiatorAuth: `cb_${string}`;
3234
+ }, never> & Partial<Pick<{
3235
+ responderAuth: `cb_${string}`;
3236
+ }, never>> & Omit<{
3237
+ responderAuth: `cb_${string}`;
3238
+ }, never>> | undefined;
3239
+ "__#3@#entriesRaw"(): [
3240
+ string,
3241
+ Buffer
3242
+ ][];
3243
+ 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<{
3244
+ initiator: `ak_${string}`;
3245
+ }, never>> & Omit<{
3246
+ initiator: `ak_${string}`;
3247
+ }, never> & Partial<Pick<{
3248
+ initiatorAmount: import("./constants").Int;
3249
+ }, never>> & Omit<{
3250
+ initiatorAmount: import("./constants").Int;
3251
+ }, never> & Partial<Pick<{
3252
+ responder: `ak_${string}`;
3253
+ }, never>> & Omit<{
3254
+ responder: `ak_${string}`;
3255
+ }, never> & Partial<Pick<{
3256
+ responderAmount: import("./constants").Int;
3257
+ }, never>> & Omit<{
3258
+ responderAmount: import("./constants").Int;
3259
+ }, never> & Partial<Pick<{
3260
+ channelReserve: import("./constants").Int;
3261
+ }, never>> & Omit<{
3262
+ channelReserve: import("./constants").Int;
3263
+ }, never> & Partial<Pick<{
3264
+ lockPeriod: import("./constants").Int;
3265
+ }, never>> & Omit<{
3266
+ lockPeriod: import("./constants").Int;
3267
+ }, never> & Partial<Pick<{
3268
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3269
+ }, never>> & Omit<{
3270
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3271
+ }, never> & Partial<Pick<{
3272
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3273
+ }, never>> & Omit<{
3274
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3275
+ }, never> & Partial<Pick<{
3276
+ stateHash: `st_${string}`;
3277
+ }, never>> & Omit<{
3278
+ stateHash: `st_${string}`;
3279
+ }, never> & Partial<Pick<{
3280
+ round: number;
3281
+ }, never>> & Omit<{
3282
+ round: number;
3283
+ }, never> & Partial<Pick<{
3284
+ tag: Tag.Channel | undefined;
3285
+ }, "tag">> & Omit<{
3286
+ tag: Tag.Channel | undefined;
3287
+ }, "tag"> & Partial<Pick<{
3288
+ version: 3 | undefined;
3289
+ }, "version">> & Omit<{
3290
+ version: 3 | undefined;
3291
+ }, "version"> & Partial<Pick<{
3292
+ channelAmount: import("./constants").Int;
3293
+ }, never>> & Omit<{
3294
+ channelAmount: import("./constants").Int;
3295
+ }, never> & Partial<Pick<{
3296
+ soloRound: import("./constants").Int;
3297
+ }, never>> & Omit<{
3298
+ soloRound: import("./constants").Int;
3299
+ }, never> & Partial<Pick<{
3300
+ lockedUntil: import("./constants").Int;
3301
+ }, never>> & Omit<{
3302
+ lockedUntil: import("./constants").Int;
3303
+ }, never> & Partial<Pick<{
3304
+ initiatorAuth: `cb_${string}`;
3305
+ }, never>> & Omit<{
3306
+ initiatorAuth: `cb_${string}`;
3307
+ }, never> & Partial<Pick<{
3308
+ responderAuth: `cb_${string}`;
3309
+ }, never>> & Omit<{
3310
+ responderAuth: `cb_${string}`;
3311
+ }, never>>>;
3312
+ }[], params: unknown) => [
3313
+ Buffer,
3314
+ [
3315
+ Buffer,
3316
+ Buffer[]
3317
+ ][]
3318
+ ][];
3319
+ deserialize: (value: [
3320
+ Buffer,
3321
+ [
3322
+ Buffer,
3323
+ Buffer[]
3324
+ ][]
3325
+ ][], params: unknown) => {
3326
+ readonly "__#3@#rootHash": string;
3327
+ "__#3@#isComplete": boolean;
3328
+ readonly isComplete: boolean;
3329
+ readonly "__#3@#nodes": {
3330
+ [key: string]: Buffer[];
3331
+ };
3332
+ readonly "__#3@#encoding": Encoding.Channel;
3333
+ readonly "__#3@#tag": Tag.Channel;
3334
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3335
+ isEqual(tree: any): boolean;
3336
+ serialize(): [
3337
+ Buffer,
3338
+ [
3339
+ Buffer,
3340
+ Buffer[]
3341
+ ][]
3342
+ ];
3343
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3344
+ get(key: `ch_${string}`): RawTxObject<Partial<Pick<{
3345
+ initiator: `ak_${string}`;
3346
+ }, never>> & Omit<{
3347
+ initiator: `ak_${string}`;
3348
+ }, never> & Partial<Pick<{
3349
+ initiatorAmount: import("./constants").Int;
3350
+ }, never>> & Omit<{
3351
+ initiatorAmount: import("./constants").Int;
3352
+ }, never> & Partial<Pick<{
3353
+ responder: `ak_${string}`;
3354
+ }, never>> & Omit<{
3355
+ responder: `ak_${string}`;
3356
+ }, never> & Partial<Pick<{
3357
+ responderAmount: import("./constants").Int;
3358
+ }, never>> & Omit<{
3359
+ responderAmount: import("./constants").Int;
3360
+ }, never> & Partial<Pick<{
3361
+ channelReserve: import("./constants").Int;
3362
+ }, never>> & Omit<{
3363
+ channelReserve: import("./constants").Int;
3364
+ }, never> & Partial<Pick<{
3365
+ lockPeriod: import("./constants").Int;
3366
+ }, never>> & Omit<{
3367
+ lockPeriod: import("./constants").Int;
3368
+ }, never> & Partial<Pick<{
3369
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3370
+ }, never>> & Omit<{
3371
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3372
+ }, never> & Partial<Pick<{
3373
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3374
+ }, never>> & Omit<{
3375
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3376
+ }, never> & Partial<Pick<{
3377
+ stateHash: `st_${string}`;
3378
+ }, never>> & Omit<{
3379
+ stateHash: `st_${string}`;
3380
+ }, never> & Partial<Pick<{
3381
+ round: number;
3382
+ }, never>> & Omit<{
3383
+ round: number;
3384
+ }, never> & Partial<Pick<{
3385
+ tag: Tag.Channel | undefined;
3386
+ }, "tag">> & Omit<{
3387
+ tag: Tag.Channel | undefined;
3388
+ }, "tag"> & Partial<Pick<{
3389
+ version: 3 | undefined;
3390
+ }, "version">> & Omit<{
3391
+ version: 3 | undefined;
3392
+ }, "version"> & Partial<Pick<{
3393
+ channelAmount: import("./constants").Int;
3394
+ }, never>> & Omit<{
3395
+ channelAmount: import("./constants").Int;
3396
+ }, never> & Partial<Pick<{
3397
+ soloRound: import("./constants").Int;
3398
+ }, never>> & Omit<{
3399
+ soloRound: import("./constants").Int;
3400
+ }, never> & Partial<Pick<{
3401
+ lockedUntil: import("./constants").Int;
3402
+ }, never>> & Omit<{
3403
+ lockedUntil: import("./constants").Int;
3404
+ }, never> & Partial<Pick<{
3405
+ initiatorAuth: `cb_${string}`;
3406
+ }, never>> & Omit<{
3407
+ initiatorAuth: `cb_${string}`;
3408
+ }, never> & Partial<Pick<{
3409
+ responderAuth: `cb_${string}`;
3410
+ }, never>> & Omit<{
3411
+ responderAuth: `cb_${string}`;
3412
+ }, never>> | undefined;
3413
+ "__#3@#entriesRaw"(): [
3414
+ string,
3415
+ Buffer
3416
+ ][];
3417
+ 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<{
3418
+ initiator: `ak_${string}`;
3419
+ }, never>> & Omit<{
3420
+ initiator: `ak_${string}`;
3421
+ }, never> & Partial<Pick<{
3422
+ initiatorAmount: import("./constants").Int;
3423
+ }, never>> & Omit<{
3424
+ initiatorAmount: import("./constants").Int;
3425
+ }, never> & Partial<Pick<{
3426
+ responder: `ak_${string}`;
3427
+ }, never>> & Omit<{
3428
+ responder: `ak_${string}`;
3429
+ }, never> & Partial<Pick<{
3430
+ responderAmount: import("./constants").Int;
3431
+ }, never>> & Omit<{
3432
+ responderAmount: import("./constants").Int;
3433
+ }, never> & Partial<Pick<{
3434
+ channelReserve: import("./constants").Int;
3435
+ }, never>> & Omit<{
3436
+ channelReserve: import("./constants").Int;
3437
+ }, never> & Partial<Pick<{
3438
+ lockPeriod: import("./constants").Int;
3439
+ }, never>> & Omit<{
3440
+ lockPeriod: import("./constants").Int;
3441
+ }, never> & Partial<Pick<{
3442
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3443
+ }, never>> & Omit<{
3444
+ initiatorDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3445
+ }, never> & Partial<Pick<{
3446
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3447
+ }, never>> & Omit<{
3448
+ responderDelegateIds: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
3449
+ }, never> & Partial<Pick<{
3450
+ stateHash: `st_${string}`;
3451
+ }, never>> & Omit<{
3452
+ stateHash: `st_${string}`;
3453
+ }, never> & Partial<Pick<{
3454
+ round: number;
3455
+ }, never>> & Omit<{
3456
+ round: number;
3457
+ }, never> & Partial<Pick<{
3458
+ tag: Tag.Channel | undefined;
3459
+ }, "tag">> & Omit<{
3460
+ tag: Tag.Channel | undefined;
3461
+ }, "tag"> & Partial<Pick<{
3462
+ version: 3 | undefined;
3463
+ }, "version">> & Omit<{
3464
+ version: 3 | undefined;
3465
+ }, "version"> & Partial<Pick<{
3466
+ channelAmount: import("./constants").Int;
3467
+ }, never>> & Omit<{
3468
+ channelAmount: import("./constants").Int;
3469
+ }, never> & Partial<Pick<{
3470
+ soloRound: import("./constants").Int;
3471
+ }, never>> & Omit<{
3472
+ soloRound: import("./constants").Int;
3473
+ }, never> & Partial<Pick<{
3474
+ lockedUntil: import("./constants").Int;
3475
+ }, never>> & Omit<{
3476
+ lockedUntil: import("./constants").Int;
3477
+ }, never> & Partial<Pick<{
3478
+ initiatorAuth: `cb_${string}`;
3479
+ }, never>> & Omit<{
3480
+ initiatorAuth: `cb_${string}`;
3481
+ }, never> & Partial<Pick<{
3482
+ responderAuth: `cb_${string}`;
3483
+ }, never>> & Omit<{
3484
+ responderAuth: `cb_${string}`;
3485
+ }, never>>>;
3486
+ }[];
3487
+ }
2472
3488
  ],
2473
3489
  readonly [
2474
3490
  "contracts",
2475
- FIELD_TYPES.mptrees
3491
+ {
3492
+ serialize: (value: {
3493
+ readonly "__#3@#rootHash": string;
3494
+ "__#3@#isComplete": boolean;
3495
+ readonly isComplete: boolean;
3496
+ readonly "__#3@#nodes": {
3497
+ [key: string]: Buffer[];
3498
+ };
3499
+ readonly "__#3@#encoding": Encoding.ContractAddress;
3500
+ readonly "__#3@#tag": Tag.Contract;
3501
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3502
+ isEqual(tree: any): boolean;
3503
+ serialize(): [
3504
+ Buffer,
3505
+ [
3506
+ Buffer,
3507
+ Buffer[]
3508
+ ][]
3509
+ ];
3510
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3511
+ get(key: `ct_${string}`): RawTxObject<Partial<Pick<{
3512
+ version: 1 | undefined;
3513
+ }, "version">> & Omit<{
3514
+ version: 1 | undefined;
3515
+ }, "version"> & Partial<Pick<{
3516
+ tag: Tag.Contract | undefined;
3517
+ }, "tag">> & Omit<{
3518
+ tag: Tag.Contract | undefined;
3519
+ }, "tag"> & Partial<Pick<{
3520
+ owner: `ak_${string}`;
3521
+ }, never>> & Omit<{
3522
+ owner: `ak_${string}`;
3523
+ }, never> & Partial<Pick<{
3524
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3525
+ }, "ctVersion">> & Omit<{
3526
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3527
+ }, "ctVersion"> & Partial<Pick<{
3528
+ code: `cb_${string}`;
3529
+ }, never>> & Omit<{
3530
+ code: `cb_${string}`;
3531
+ }, never> & Partial<Pick<{
3532
+ log: `cb_${string}`;
3533
+ }, never>> & Omit<{
3534
+ log: `cb_${string}`;
3535
+ }, never> & Partial<Pick<{
3536
+ active: boolean;
3537
+ }, never>> & Omit<{
3538
+ active: boolean;
3539
+ }, never> & Partial<Pick<{
3540
+ referers: `ak_${string}`[];
3541
+ }, never>> & Omit<{
3542
+ referers: `ak_${string}`[];
3543
+ }, never> & Partial<Pick<{
3544
+ deposit: import("./constants").Int | undefined;
3545
+ }, "deposit">> & Omit<{
3546
+ deposit: import("./constants").Int | undefined;
3547
+ }, "deposit">> | undefined;
3548
+ "__#3@#entriesRaw"(): [
3549
+ string,
3550
+ Buffer
3551
+ ][];
3552
+ 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<{
3553
+ version: 1 | undefined;
3554
+ }, "version">> & Omit<{
3555
+ version: 1 | undefined;
3556
+ }, "version"> & Partial<Pick<{
3557
+ tag: Tag.Contract | undefined;
3558
+ }, "tag">> & Omit<{
3559
+ tag: Tag.Contract | undefined;
3560
+ }, "tag"> & Partial<Pick<{
3561
+ owner: `ak_${string}`;
3562
+ }, never>> & Omit<{
3563
+ owner: `ak_${string}`;
3564
+ }, never> & Partial<Pick<{
3565
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3566
+ }, "ctVersion">> & Omit<{
3567
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3568
+ }, "ctVersion"> & Partial<Pick<{
3569
+ code: `cb_${string}`;
3570
+ }, never>> & Omit<{
3571
+ code: `cb_${string}`;
3572
+ }, never> & Partial<Pick<{
3573
+ log: `cb_${string}`;
3574
+ }, never>> & Omit<{
3575
+ log: `cb_${string}`;
3576
+ }, never> & Partial<Pick<{
3577
+ active: boolean;
3578
+ }, never>> & Omit<{
3579
+ active: boolean;
3580
+ }, never> & Partial<Pick<{
3581
+ referers: `ak_${string}`[];
3582
+ }, never>> & Omit<{
3583
+ referers: `ak_${string}`[];
3584
+ }, never> & Partial<Pick<{
3585
+ deposit: import("./constants").Int | undefined;
3586
+ }, "deposit">> & Omit<{
3587
+ deposit: import("./constants").Int | undefined;
3588
+ }, "deposit">>>;
3589
+ }[], params: unknown) => [
3590
+ Buffer,
3591
+ [
3592
+ Buffer,
3593
+ Buffer[]
3594
+ ][]
3595
+ ][];
3596
+ deserialize: (value: [
3597
+ Buffer,
3598
+ [
3599
+ Buffer,
3600
+ Buffer[]
3601
+ ][]
3602
+ ][], params: unknown) => {
3603
+ readonly "__#3@#rootHash": string;
3604
+ "__#3@#isComplete": boolean;
3605
+ readonly isComplete: boolean;
3606
+ readonly "__#3@#nodes": {
3607
+ [key: string]: Buffer[];
3608
+ };
3609
+ readonly "__#3@#encoding": Encoding.ContractAddress;
3610
+ readonly "__#3@#tag": Tag.Contract;
3611
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3612
+ isEqual(tree: any): boolean;
3613
+ serialize(): [
3614
+ Buffer,
3615
+ [
3616
+ Buffer,
3617
+ Buffer[]
3618
+ ][]
3619
+ ];
3620
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3621
+ get(key: `ct_${string}`): RawTxObject<Partial<Pick<{
3622
+ version: 1 | undefined;
3623
+ }, "version">> & Omit<{
3624
+ version: 1 | undefined;
3625
+ }, "version"> & Partial<Pick<{
3626
+ tag: Tag.Contract | undefined;
3627
+ }, "tag">> & Omit<{
3628
+ tag: Tag.Contract | undefined;
3629
+ }, "tag"> & Partial<Pick<{
3630
+ owner: `ak_${string}`;
3631
+ }, never>> & Omit<{
3632
+ owner: `ak_${string}`;
3633
+ }, never> & Partial<Pick<{
3634
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3635
+ }, "ctVersion">> & Omit<{
3636
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3637
+ }, "ctVersion"> & Partial<Pick<{
3638
+ code: `cb_${string}`;
3639
+ }, never>> & Omit<{
3640
+ code: `cb_${string}`;
3641
+ }, never> & Partial<Pick<{
3642
+ log: `cb_${string}`;
3643
+ }, never>> & Omit<{
3644
+ log: `cb_${string}`;
3645
+ }, never> & Partial<Pick<{
3646
+ active: boolean;
3647
+ }, never>> & Omit<{
3648
+ active: boolean;
3649
+ }, never> & Partial<Pick<{
3650
+ referers: `ak_${string}`[];
3651
+ }, never>> & Omit<{
3652
+ referers: `ak_${string}`[];
3653
+ }, never> & Partial<Pick<{
3654
+ deposit: import("./constants").Int | undefined;
3655
+ }, "deposit">> & Omit<{
3656
+ deposit: import("./constants").Int | undefined;
3657
+ }, "deposit">> | undefined;
3658
+ "__#3@#entriesRaw"(): [
3659
+ string,
3660
+ Buffer
3661
+ ][];
3662
+ 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<{
3663
+ version: 1 | undefined;
3664
+ }, "version">> & Omit<{
3665
+ version: 1 | undefined;
3666
+ }, "version"> & Partial<Pick<{
3667
+ tag: Tag.Contract | undefined;
3668
+ }, "tag">> & Omit<{
3669
+ tag: Tag.Contract | undefined;
3670
+ }, "tag"> & Partial<Pick<{
3671
+ owner: `ak_${string}`;
3672
+ }, never>> & Omit<{
3673
+ owner: `ak_${string}`;
3674
+ }, never> & Partial<Pick<{
3675
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3676
+ }, "ctVersion">> & Omit<{
3677
+ ctVersion: import("./field-types/ct-version").CtVersion | undefined;
3678
+ }, "ctVersion"> & Partial<Pick<{
3679
+ code: `cb_${string}`;
3680
+ }, never>> & Omit<{
3681
+ code: `cb_${string}`;
3682
+ }, never> & Partial<Pick<{
3683
+ log: `cb_${string}`;
3684
+ }, never>> & Omit<{
3685
+ log: `cb_${string}`;
3686
+ }, never> & Partial<Pick<{
3687
+ active: boolean;
3688
+ }, never>> & Omit<{
3689
+ active: boolean;
3690
+ }, never> & Partial<Pick<{
3691
+ referers: `ak_${string}`[];
3692
+ }, never>> & Omit<{
3693
+ referers: `ak_${string}`[];
3694
+ }, never> & Partial<Pick<{
3695
+ deposit: import("./constants").Int | undefined;
3696
+ }, "deposit">> & Omit<{
3697
+ deposit: import("./constants").Int | undefined;
3698
+ }, "deposit">>>;
3699
+ }[];
3700
+ }
2476
3701
  ],
2477
3702
  readonly [
2478
3703
  "ns",
2479
- FIELD_TYPES.mptrees
3704
+ {
3705
+ serialize: (value: {
3706
+ readonly "__#3@#rootHash": string;
3707
+ "__#3@#isComplete": boolean;
3708
+ readonly isComplete: boolean;
3709
+ readonly "__#3@#nodes": {
3710
+ [key: string]: Buffer[];
3711
+ };
3712
+ readonly "__#3@#encoding": Encoding.Name;
3713
+ readonly "__#3@#tag": Tag.Name;
3714
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3715
+ isEqual(tree: any): boolean;
3716
+ serialize(): [
3717
+ Buffer,
3718
+ [
3719
+ Buffer,
3720
+ Buffer[]
3721
+ ][]
3722
+ ];
3723
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3724
+ get(key: `nm_${string}`): RawTxObject<Partial<Pick<{
3725
+ version: 1 | undefined;
3726
+ }, "version">> & Omit<{
3727
+ version: 1 | undefined;
3728
+ }, "version"> & Partial<Pick<{
3729
+ accountId: `ak_${string}`;
3730
+ }, never>> & Omit<{
3731
+ accountId: `ak_${string}`;
3732
+ }, never> & Partial<Pick<{
3733
+ tag: Tag.Name | undefined;
3734
+ }, "tag">> & Omit<{
3735
+ tag: Tag.Name | undefined;
3736
+ }, "tag"> & Partial<Pick<{
3737
+ nameTtl: number;
3738
+ }, never>> & Omit<{
3739
+ nameTtl: number;
3740
+ }, never> & Partial<Pick<{
3741
+ status: Uint8Array;
3742
+ }, never>> & Omit<{
3743
+ status: Uint8Array;
3744
+ }, never> & Partial<Pick<{
3745
+ clientTtl: number;
3746
+ }, never>> & Omit<{
3747
+ clientTtl: number;
3748
+ }, never> & Partial<Pick<{
3749
+ pointers: (import("../../apis/node").NamePointer & {
3750
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3751
+ })[];
3752
+ }, never>> & Omit<{
3753
+ pointers: (import("../../apis/node").NamePointer & {
3754
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3755
+ })[];
3756
+ }, never>> | undefined;
3757
+ "__#3@#entriesRaw"(): [
3758
+ string,
3759
+ Buffer
3760
+ ][];
3761
+ 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<{
3762
+ version: 1 | undefined;
3763
+ }, "version">> & Omit<{
3764
+ version: 1 | undefined;
3765
+ }, "version"> & Partial<Pick<{
3766
+ accountId: `ak_${string}`;
3767
+ }, never>> & Omit<{
3768
+ accountId: `ak_${string}`;
3769
+ }, never> & Partial<Pick<{
3770
+ tag: Tag.Name | undefined;
3771
+ }, "tag">> & Omit<{
3772
+ tag: Tag.Name | undefined;
3773
+ }, "tag"> & Partial<Pick<{
3774
+ nameTtl: number;
3775
+ }, never>> & Omit<{
3776
+ nameTtl: number;
3777
+ }, never> & Partial<Pick<{
3778
+ status: Uint8Array;
3779
+ }, never>> & Omit<{
3780
+ status: Uint8Array;
3781
+ }, never> & Partial<Pick<{
3782
+ clientTtl: number;
3783
+ }, never>> & Omit<{
3784
+ clientTtl: number;
3785
+ }, never> & Partial<Pick<{
3786
+ pointers: (import("../../apis/node").NamePointer & {
3787
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3788
+ })[];
3789
+ }, never>> & Omit<{
3790
+ pointers: (import("../../apis/node").NamePointer & {
3791
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3792
+ })[];
3793
+ }, never>>>;
3794
+ }[], params: unknown) => [
3795
+ Buffer,
3796
+ [
3797
+ Buffer,
3798
+ Buffer[]
3799
+ ][]
3800
+ ][];
3801
+ deserialize: (value: [
3802
+ Buffer,
3803
+ [
3804
+ Buffer,
3805
+ Buffer[]
3806
+ ][]
3807
+ ][], params: unknown) => {
3808
+ readonly "__#3@#rootHash": string;
3809
+ "__#3@#isComplete": boolean;
3810
+ readonly isComplete: boolean;
3811
+ readonly "__#3@#nodes": {
3812
+ [key: string]: Buffer[];
3813
+ };
3814
+ readonly "__#3@#encoding": Encoding.Name;
3815
+ readonly "__#3@#tag": Tag.Name;
3816
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3817
+ isEqual(tree: any): boolean;
3818
+ serialize(): [
3819
+ Buffer,
3820
+ [
3821
+ Buffer,
3822
+ Buffer[]
3823
+ ][]
3824
+ ];
3825
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3826
+ get(key: `nm_${string}`): RawTxObject<Partial<Pick<{
3827
+ version: 1 | undefined;
3828
+ }, "version">> & Omit<{
3829
+ version: 1 | undefined;
3830
+ }, "version"> & Partial<Pick<{
3831
+ accountId: `ak_${string}`;
3832
+ }, never>> & Omit<{
3833
+ accountId: `ak_${string}`;
3834
+ }, never> & Partial<Pick<{
3835
+ tag: Tag.Name | undefined;
3836
+ }, "tag">> & Omit<{
3837
+ tag: Tag.Name | undefined;
3838
+ }, "tag"> & Partial<Pick<{
3839
+ nameTtl: number;
3840
+ }, never>> & Omit<{
3841
+ nameTtl: number;
3842
+ }, never> & Partial<Pick<{
3843
+ status: Uint8Array;
3844
+ }, never>> & Omit<{
3845
+ status: Uint8Array;
3846
+ }, never> & Partial<Pick<{
3847
+ clientTtl: number;
3848
+ }, never>> & Omit<{
3849
+ clientTtl: number;
3850
+ }, never> & Partial<Pick<{
3851
+ pointers: (import("../../apis/node").NamePointer & {
3852
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3853
+ })[];
3854
+ }, never>> & Omit<{
3855
+ pointers: (import("../../apis/node").NamePointer & {
3856
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3857
+ })[];
3858
+ }, never>> | undefined;
3859
+ "__#3@#entriesRaw"(): [
3860
+ string,
3861
+ Buffer
3862
+ ][];
3863
+ 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<{
3864
+ version: 1 | undefined;
3865
+ }, "version">> & Omit<{
3866
+ version: 1 | undefined;
3867
+ }, "version"> & Partial<Pick<{
3868
+ accountId: `ak_${string}`;
3869
+ }, never>> & Omit<{
3870
+ accountId: `ak_${string}`;
3871
+ }, never> & Partial<Pick<{
3872
+ tag: Tag.Name | undefined;
3873
+ }, "tag">> & Omit<{
3874
+ tag: Tag.Name | undefined;
3875
+ }, "tag"> & Partial<Pick<{
3876
+ nameTtl: number;
3877
+ }, never>> & Omit<{
3878
+ nameTtl: number;
3879
+ }, never> & Partial<Pick<{
3880
+ status: Uint8Array;
3881
+ }, never>> & Omit<{
3882
+ status: Uint8Array;
3883
+ }, never> & Partial<Pick<{
3884
+ clientTtl: number;
3885
+ }, never>> & Omit<{
3886
+ clientTtl: number;
3887
+ }, never> & Partial<Pick<{
3888
+ pointers: (import("../../apis/node").NamePointer & {
3889
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3890
+ })[];
3891
+ }, never>> & Omit<{
3892
+ pointers: (import("../../apis/node").NamePointer & {
3893
+ id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
3894
+ })[];
3895
+ }, never>>>;
3896
+ }[];
3897
+ }
2480
3898
  ],
2481
3899
  readonly [
2482
3900
  "oracles",
2483
- FIELD_TYPES.mptrees
3901
+ {
3902
+ serialize: (value: {
3903
+ readonly "__#3@#rootHash": string;
3904
+ "__#3@#isComplete": boolean;
3905
+ readonly isComplete: boolean;
3906
+ readonly "__#3@#nodes": {
3907
+ [key: string]: Buffer[];
3908
+ };
3909
+ readonly "__#3@#encoding": Encoding.OracleAddress;
3910
+ readonly "__#3@#tag": Tag.Oracle;
3911
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
3912
+ isEqual(tree: any): boolean;
3913
+ serialize(): [
3914
+ Buffer,
3915
+ [
3916
+ Buffer,
3917
+ Buffer[]
3918
+ ][]
3919
+ ];
3920
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
3921
+ get(key: `ok_${string}`): RawTxObject<Partial<Pick<{
3922
+ version: 1 | undefined;
3923
+ }, "version">> & Omit<{
3924
+ version: 1 | undefined;
3925
+ }, "version"> & Partial<Pick<{
3926
+ accountId: `ak_${string}`;
3927
+ }, never>> & Omit<{
3928
+ accountId: `ak_${string}`;
3929
+ }, never> & Partial<Pick<{
3930
+ abiVersion: import("./constants").AbiVersion | undefined;
3931
+ }, "abiVersion">> & Omit<{
3932
+ abiVersion: import("./constants").AbiVersion | undefined;
3933
+ }, "abiVersion"> & Partial<Pick<{
3934
+ tag: Tag.Oracle | undefined;
3935
+ }, "tag">> & Omit<{
3936
+ tag: Tag.Oracle | undefined;
3937
+ }, "tag"> & Partial<Pick<{
3938
+ queryFormat: string;
3939
+ }, never>> & Omit<{
3940
+ queryFormat: string;
3941
+ }, never> & Partial<Pick<{
3942
+ responseFormat: string;
3943
+ }, never>> & Omit<{
3944
+ responseFormat: string;
3945
+ }, never> & Partial<Pick<{
3946
+ queryFee: import("./constants").Int | undefined;
3947
+ }, "queryFee">> & Omit<{
3948
+ queryFee: import("./constants").Int | undefined;
3949
+ }, "queryFee"> & Partial<Pick<{
3950
+ oracleTtlValue: number;
3951
+ }, never>> & Omit<{
3952
+ oracleTtlValue: number;
3953
+ }, never>> | undefined;
3954
+ "__#3@#entriesRaw"(): [
3955
+ string,
3956
+ Buffer
3957
+ ][];
3958
+ 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<{
3959
+ version: 1 | undefined;
3960
+ }, "version">> & Omit<{
3961
+ version: 1 | undefined;
3962
+ }, "version"> & Partial<Pick<{
3963
+ accountId: `ak_${string}`;
3964
+ }, never>> & Omit<{
3965
+ accountId: `ak_${string}`;
3966
+ }, never> & Partial<Pick<{
3967
+ abiVersion: import("./constants").AbiVersion | undefined;
3968
+ }, "abiVersion">> & Omit<{
3969
+ abiVersion: import("./constants").AbiVersion | undefined;
3970
+ }, "abiVersion"> & Partial<Pick<{
3971
+ tag: Tag.Oracle | undefined;
3972
+ }, "tag">> & Omit<{
3973
+ tag: Tag.Oracle | undefined;
3974
+ }, "tag"> & Partial<Pick<{
3975
+ queryFormat: string;
3976
+ }, never>> & Omit<{
3977
+ queryFormat: string;
3978
+ }, never> & Partial<Pick<{
3979
+ responseFormat: string;
3980
+ }, never>> & Omit<{
3981
+ responseFormat: string;
3982
+ }, never> & Partial<Pick<{
3983
+ queryFee: import("./constants").Int | undefined;
3984
+ }, "queryFee">> & Omit<{
3985
+ queryFee: import("./constants").Int | undefined;
3986
+ }, "queryFee"> & Partial<Pick<{
3987
+ oracleTtlValue: number;
3988
+ }, never>> & Omit<{
3989
+ oracleTtlValue: number;
3990
+ }, never>>>;
3991
+ }[], params: unknown) => [
3992
+ Buffer,
3993
+ [
3994
+ Buffer,
3995
+ Buffer[]
3996
+ ][]
3997
+ ][];
3998
+ deserialize: (value: [
3999
+ Buffer,
4000
+ [
4001
+ Buffer,
4002
+ Buffer[]
4003
+ ][]
4004
+ ][], params: unknown) => {
4005
+ readonly "__#3@#rootHash": string;
4006
+ "__#3@#isComplete": boolean;
4007
+ readonly isComplete: boolean;
4008
+ readonly "__#3@#nodes": {
4009
+ [key: string]: Buffer[];
4010
+ };
4011
+ readonly "__#3@#encoding": Encoding.OracleAddress;
4012
+ readonly "__#3@#tag": Tag.Oracle;
4013
+ readonly "__#3@#unpackTx": typeof import(".").unpackTx;
4014
+ isEqual(tree: any): boolean;
4015
+ serialize(): [
4016
+ Buffer,
4017
+ [
4018
+ Buffer,
4019
+ Buffer[]
4020
+ ][]
4021
+ ];
4022
+ "__#3@#getRaw"(_key: string): Buffer | undefined;
4023
+ get(key: `ok_${string}`): RawTxObject<Partial<Pick<{
4024
+ version: 1 | undefined;
4025
+ }, "version">> & Omit<{
4026
+ version: 1 | undefined;
4027
+ }, "version"> & Partial<Pick<{
4028
+ accountId: `ak_${string}`;
4029
+ }, never>> & Omit<{
4030
+ accountId: `ak_${string}`;
4031
+ }, never> & Partial<Pick<{
4032
+ abiVersion: import("./constants").AbiVersion | undefined;
4033
+ }, "abiVersion">> & Omit<{
4034
+ abiVersion: import("./constants").AbiVersion | undefined;
4035
+ }, "abiVersion"> & Partial<Pick<{
4036
+ tag: Tag.Oracle | undefined;
4037
+ }, "tag">> & Omit<{
4038
+ tag: Tag.Oracle | undefined;
4039
+ }, "tag"> & Partial<Pick<{
4040
+ queryFormat: string;
4041
+ }, never>> & Omit<{
4042
+ queryFormat: string;
4043
+ }, never> & Partial<Pick<{
4044
+ responseFormat: string;
4045
+ }, never>> & Omit<{
4046
+ responseFormat: string;
4047
+ }, never> & Partial<Pick<{
4048
+ queryFee: import("./constants").Int | undefined;
4049
+ }, "queryFee">> & Omit<{
4050
+ queryFee: import("./constants").Int | undefined;
4051
+ }, "queryFee"> & Partial<Pick<{
4052
+ oracleTtlValue: number;
4053
+ }, never>> & Omit<{
4054
+ oracleTtlValue: number;
4055
+ }, never>> | undefined;
4056
+ "__#3@#entriesRaw"(): [
4057
+ string,
4058
+ Buffer
4059
+ ][];
4060
+ 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<{
4061
+ version: 1 | undefined;
4062
+ }, "version">> & Omit<{
4063
+ version: 1 | undefined;
4064
+ }, "version"> & Partial<Pick<{
4065
+ accountId: `ak_${string}`;
4066
+ }, never>> & Omit<{
4067
+ accountId: `ak_${string}`;
4068
+ }, never> & Partial<Pick<{
4069
+ abiVersion: import("./constants").AbiVersion | undefined;
4070
+ }, "abiVersion">> & Omit<{
4071
+ abiVersion: import("./constants").AbiVersion | undefined;
4072
+ }, "abiVersion"> & Partial<Pick<{
4073
+ tag: Tag.Oracle | undefined;
4074
+ }, "tag">> & Omit<{
4075
+ tag: Tag.Oracle | undefined;
4076
+ }, "tag"> & Partial<Pick<{
4077
+ queryFormat: string;
4078
+ }, never>> & Omit<{
4079
+ queryFormat: string;
4080
+ }, never> & Partial<Pick<{
4081
+ responseFormat: string;
4082
+ }, never>> & Omit<{
4083
+ responseFormat: string;
4084
+ }, never> & Partial<Pick<{
4085
+ queryFee: import("./constants").Int | undefined;
4086
+ }, "queryFee">> & Omit<{
4087
+ queryFee: import("./constants").Int | undefined;
4088
+ }, "queryFee"> & Partial<Pick<{
4089
+ oracleTtlValue: number;
4090
+ }, never>> & Omit<{
4091
+ oracleTtlValue: number;
4092
+ }, never>>>;
4093
+ }[];
4094
+ }
2484
4095
  ]
2485
4096
  ];
2486
4097
  };
@@ -2489,40 +4100,82 @@ export declare const TX_SCHEMA: {
2489
4100
  readonly [
2490
4101
  "tag",
2491
4102
  {
2492
- serialize(value: number): Buffer;
2493
- deserialize(value: Buffer): number;
4103
+ serialize: (value?: Tag.StateTrees | undefined) => Buffer;
4104
+ deserialize: (value: Buffer) => Tag.StateTrees;
2494
4105
  }
2495
4106
  ],
2496
4107
  readonly [
2497
- "VSN",
4108
+ "version",
2498
4109
  {
2499
- serialize(value: number): Buffer;
2500
- deserialize(value: Buffer): number;
4110
+ serialize: (value?: 1 | undefined) => Buffer;
4111
+ deserialize: (value: Buffer) => 1;
2501
4112
  }
2502
4113
  ],
2503
4114
  readonly [
2504
4115
  "contracts",
2505
- FIELD_TYPES.rlpBinary
4116
+ {
4117
+ serialize: (value: any, options: {
4118
+ buildTx: typeof import(".").buildTx;
4119
+ }) => Buffer;
4120
+ deserialize: (value: Buffer, options: {
4121
+ unpackTx: typeof import(".").unpackTx;
4122
+ }) => any;
4123
+ }
2506
4124
  ],
2507
4125
  readonly [
2508
4126
  "calls",
2509
- FIELD_TYPES.rlpBinary
4127
+ {
4128
+ serialize: (value: any, options: {
4129
+ buildTx: typeof import(".").buildTx;
4130
+ }) => Buffer;
4131
+ deserialize: (value: Buffer, options: {
4132
+ unpackTx: typeof import(".").unpackTx;
4133
+ }) => any;
4134
+ }
2510
4135
  ],
2511
4136
  readonly [
2512
4137
  "channels",
2513
- FIELD_TYPES.rlpBinary
4138
+ {
4139
+ serialize: (value: any, options: {
4140
+ buildTx: typeof import(".").buildTx;
4141
+ }) => Buffer;
4142
+ deserialize: (value: Buffer, options: {
4143
+ unpackTx: typeof import(".").unpackTx;
4144
+ }) => any;
4145
+ }
2514
4146
  ],
2515
4147
  readonly [
2516
4148
  "ns",
2517
- FIELD_TYPES.rlpBinary
4149
+ {
4150
+ serialize: (value: any, options: {
4151
+ buildTx: typeof import(".").buildTx;
4152
+ }) => Buffer;
4153
+ deserialize: (value: Buffer, options: {
4154
+ unpackTx: typeof import(".").unpackTx;
4155
+ }) => any;
4156
+ }
2518
4157
  ],
2519
4158
  readonly [
2520
4159
  "oracles",
2521
- FIELD_TYPES.rlpBinary
4160
+ {
4161
+ serialize: (value: any, options: {
4162
+ buildTx: typeof import(".").buildTx;
4163
+ }) => Buffer;
4164
+ deserialize: (value: Buffer, options: {
4165
+ unpackTx: typeof import(".").unpackTx;
4166
+ }) => any;
4167
+ }
2522
4168
  ],
2523
4169
  readonly [
2524
4170
  "accounts",
2525
- FIELD_TYPES.rlpBinary
4171
+ {
4172
+ serialize: (value: any, options: {
4173
+ buildTx: typeof import(".").buildTx;
4174
+ }) => Buffer;
4175
+ deserialize: (value: Buffer, options: {
4176
+ unpackTx: typeof import(".").unpackTx;
4177
+ }) => any;
4178
+ }
2526
4179
  ]
2527
4180
  ];
2528
4181
  };
@@ -2531,20 +4184,23 @@ export declare const TX_SCHEMA: {
2531
4184
  readonly [
2532
4185
  "tag",
2533
4186
  {
2534
- serialize(value: number): Buffer;
2535
- deserialize(value: Buffer): number;
4187
+ serialize: (value?: Tag.Mtree | undefined) => Buffer;
4188
+ deserialize: (value: Buffer) => Tag.Mtree;
2536
4189
  }
2537
4190
  ],
2538
4191
  readonly [
2539
- "VSN",
4192
+ "version",
2540
4193
  {
2541
- serialize(value: number): Buffer;
2542
- deserialize(value: Buffer): number;
4194
+ serialize: (value?: 1 | undefined) => Buffer;
4195
+ deserialize: (value: Buffer) => 1;
2543
4196
  }
2544
4197
  ],
2545
4198
  readonly [
2546
4199
  "values",
2547
- FIELD_TYPES.rlpBinaries
4200
+ {
4201
+ serialize: (value: any[], params: unknown) => Buffer[];
4202
+ deserialize: (value: Buffer[], params: unknown) => any[];
4203
+ }
2548
4204
  ]
2549
4205
  ];
2550
4206
  };
@@ -2553,24 +4209,30 @@ export declare const TX_SCHEMA: {
2553
4209
  readonly [
2554
4210
  "tag",
2555
4211
  {
2556
- serialize(value: number): Buffer;
2557
- deserialize(value: Buffer): number;
4212
+ serialize: (value?: Tag.MtreeValue | undefined) => Buffer;
4213
+ deserialize: (value: Buffer) => Tag.MtreeValue;
2558
4214
  }
2559
4215
  ],
2560
4216
  readonly [
2561
- "VSN",
4217
+ "version",
2562
4218
  {
2563
- serialize(value: number): Buffer;
2564
- deserialize(value: Buffer): number;
4219
+ serialize: (value?: 1 | undefined) => Buffer;
4220
+ deserialize: (value: Buffer) => 1;
2565
4221
  }
2566
4222
  ],
2567
4223
  readonly [
2568
4224
  "key",
2569
- FIELD_TYPES.hex
4225
+ {
4226
+ serialize(buffer: Uint8Array): Buffer;
4227
+ deserialize(buffer: Buffer): Buffer;
4228
+ }
2570
4229
  ],
2571
4230
  readonly [
2572
4231
  "value",
2573
- FIELD_TYPES.rawBinary
4232
+ {
4233
+ serialize(buffer: Uint8Array): Buffer;
4234
+ deserialize(buffer: Buffer): Buffer;
4235
+ }
2574
4236
  ]
2575
4237
  ];
2576
4238
  };
@@ -2579,20 +4241,27 @@ export declare const TX_SCHEMA: {
2579
4241
  readonly [
2580
4242
  "tag",
2581
4243
  {
2582
- serialize(value: number): Buffer;
2583
- deserialize(value: Buffer): number;
4244
+ serialize: (value?: Tag.ContractsMtree | undefined) => Buffer;
4245
+ deserialize: (value: Buffer) => Tag.ContractsMtree;
2584
4246
  }
2585
4247
  ],
2586
4248
  readonly [
2587
- "VSN",
4249
+ "version",
2588
4250
  {
2589
- serialize(value: number): Buffer;
2590
- deserialize(value: Buffer): number;
4251
+ serialize: (value?: 1 | undefined) => Buffer;
4252
+ deserialize: (value: Buffer) => 1;
2591
4253
  }
2592
4254
  ],
2593
4255
  readonly [
2594
4256
  "contracts",
2595
- FIELD_TYPES.rlpBinary
4257
+ {
4258
+ serialize: (value: any, options: {
4259
+ buildTx: typeof import(".").buildTx;
4260
+ }) => Buffer;
4261
+ deserialize: (value: Buffer, options: {
4262
+ unpackTx: typeof import(".").unpackTx;
4263
+ }) => any;
4264
+ }
2596
4265
  ]
2597
4266
  ];
2598
4267
  };
@@ -2601,20 +4270,27 @@ export declare const TX_SCHEMA: {
2601
4270
  readonly [
2602
4271
  "tag",
2603
4272
  {
2604
- serialize(value: number): Buffer;
2605
- deserialize(value: Buffer): number;
4273
+ serialize: (value?: Tag.CallsMtree | undefined) => Buffer;
4274
+ deserialize: (value: Buffer) => Tag.CallsMtree;
2606
4275
  }
2607
4276
  ],
2608
4277
  readonly [
2609
- "VSN",
4278
+ "version",
2610
4279
  {
2611
- serialize(value: number): Buffer;
2612
- deserialize(value: Buffer): number;
4280
+ serialize: (value?: 1 | undefined) => Buffer;
4281
+ deserialize: (value: Buffer) => 1;
2613
4282
  }
2614
4283
  ],
2615
4284
  readonly [
2616
4285
  "calls",
2617
- FIELD_TYPES.rlpBinary
4286
+ {
4287
+ serialize: (value: any, options: {
4288
+ buildTx: typeof import(".").buildTx;
4289
+ }) => Buffer;
4290
+ deserialize: (value: Buffer, options: {
4291
+ unpackTx: typeof import(".").unpackTx;
4292
+ }) => any;
4293
+ }
2618
4294
  ]
2619
4295
  ];
2620
4296
  };
@@ -2623,20 +4299,27 @@ export declare const TX_SCHEMA: {
2623
4299
  readonly [
2624
4300
  "tag",
2625
4301
  {
2626
- serialize(value: number): Buffer;
2627
- deserialize(value: Buffer): number;
4302
+ serialize: (value?: Tag.ChannelsMtree | undefined) => Buffer;
4303
+ deserialize: (value: Buffer) => Tag.ChannelsMtree;
2628
4304
  }
2629
4305
  ],
2630
4306
  readonly [
2631
- "VSN",
4307
+ "version",
2632
4308
  {
2633
- serialize(value: number): Buffer;
2634
- deserialize(value: Buffer): number;
4309
+ serialize: (value?: 1 | undefined) => Buffer;
4310
+ deserialize: (value: Buffer) => 1;
2635
4311
  }
2636
4312
  ],
2637
4313
  readonly [
2638
4314
  "channels",
2639
- FIELD_TYPES.rlpBinary
4315
+ {
4316
+ serialize: (value: any, options: {
4317
+ buildTx: typeof import(".").buildTx;
4318
+ }) => Buffer;
4319
+ deserialize: (value: Buffer, options: {
4320
+ unpackTx: typeof import(".").unpackTx;
4321
+ }) => any;
4322
+ }
2640
4323
  ]
2641
4324
  ];
2642
4325
  };
@@ -2645,20 +4328,27 @@ export declare const TX_SCHEMA: {
2645
4328
  readonly [
2646
4329
  "tag",
2647
4330
  {
2648
- serialize(value: number): Buffer;
2649
- deserialize(value: Buffer): number;
4331
+ serialize: (value?: Tag.NameserviceMtree | undefined) => Buffer;
4332
+ deserialize: (value: Buffer) => Tag.NameserviceMtree;
2650
4333
  }
2651
4334
  ],
2652
4335
  readonly [
2653
- "VSN",
4336
+ "version",
2654
4337
  {
2655
- serialize(value: number): Buffer;
2656
- deserialize(value: Buffer): number;
4338
+ serialize: (value?: 1 | undefined) => Buffer;
4339
+ deserialize: (value: Buffer) => 1;
2657
4340
  }
2658
4341
  ],
2659
4342
  readonly [
2660
4343
  "mtree",
2661
- FIELD_TYPES.rlpBinary
4344
+ {
4345
+ serialize: (value: any, options: {
4346
+ buildTx: typeof import(".").buildTx;
4347
+ }) => Buffer;
4348
+ deserialize: (value: Buffer, options: {
4349
+ unpackTx: typeof import(".").unpackTx;
4350
+ }) => any;
4351
+ }
2662
4352
  ]
2663
4353
  ];
2664
4354
  };
@@ -2667,20 +4357,27 @@ export declare const TX_SCHEMA: {
2667
4357
  readonly [
2668
4358
  "tag",
2669
4359
  {
2670
- serialize(value: number): Buffer;
2671
- deserialize(value: Buffer): number;
4360
+ serialize: (value?: Tag.OraclesMtree | undefined) => Buffer;
4361
+ deserialize: (value: Buffer) => Tag.OraclesMtree;
2672
4362
  }
2673
4363
  ],
2674
4364
  readonly [
2675
- "VSN",
4365
+ "version",
2676
4366
  {
2677
- serialize(value: number): Buffer;
2678
- deserialize(value: Buffer): number;
4367
+ serialize: (value?: 1 | undefined) => Buffer;
4368
+ deserialize: (value: Buffer) => 1;
2679
4369
  }
2680
4370
  ],
2681
4371
  readonly [
2682
4372
  "otree",
2683
- FIELD_TYPES.rlpBinary
4373
+ {
4374
+ serialize: (value: any, options: {
4375
+ buildTx: typeof import(".").buildTx;
4376
+ }) => Buffer;
4377
+ deserialize: (value: Buffer, options: {
4378
+ unpackTx: typeof import(".").unpackTx;
4379
+ }) => any;
4380
+ }
2684
4381
  ]
2685
4382
  ];
2686
4383
  };
@@ -2689,20 +4386,27 @@ export declare const TX_SCHEMA: {
2689
4386
  readonly [
2690
4387
  "tag",
2691
4388
  {
2692
- serialize(value: number): Buffer;
2693
- deserialize(value: Buffer): number;
4389
+ serialize: (value?: Tag.AccountsMtree | undefined) => Buffer;
4390
+ deserialize: (value: Buffer) => Tag.AccountsMtree;
2694
4391
  }
2695
4392
  ],
2696
4393
  readonly [
2697
- "VSN",
4394
+ "version",
2698
4395
  {
2699
- serialize(value: number): Buffer;
2700
- deserialize(value: Buffer): number;
4396
+ serialize: (value?: 1 | undefined) => Buffer;
4397
+ deserialize: (value: Buffer) => 1;
2701
4398
  }
2702
4399
  ],
2703
4400
  readonly [
2704
4401
  "accounts",
2705
- FIELD_TYPES.rlpBinary
4402
+ {
4403
+ serialize: (value: any, options: {
4404
+ buildTx: typeof import(".").buildTx;
4405
+ }) => Buffer;
4406
+ deserialize: (value: Buffer, options: {
4407
+ unpackTx: typeof import(".").unpackTx;
4408
+ }) => any;
4409
+ }
2706
4410
  ]
2707
4411
  ];
2708
4412
  };
@@ -2711,15 +4415,15 @@ export declare const TX_SCHEMA: {
2711
4415
  readonly [
2712
4416
  "tag",
2713
4417
  {
2714
- serialize(value: number): Buffer;
2715
- deserialize(value: Buffer): number;
4418
+ serialize: (value?: Tag.GaAttachTx | undefined) => Buffer;
4419
+ deserialize: (value: Buffer) => Tag.GaAttachTx;
2716
4420
  }
2717
4421
  ],
2718
4422
  readonly [
2719
- "VSN",
4423
+ "version",
2720
4424
  {
2721
- serialize(value: number): Buffer;
2722
- deserialize(value: Buffer): number;
4425
+ serialize: (value?: 1 | undefined) => Buffer;
4426
+ deserialize: (value: Buffer) => 1;
2723
4427
  }
2724
4428
  ],
2725
4429
  readonly [
@@ -2738,26 +4442,38 @@ export declare const TX_SCHEMA: {
2738
4442
  ],
2739
4443
  readonly [
2740
4444
  "code",
2741
- FIELD_TYPES.binary,
2742
- Encoded.Encoding.ContractBytearray
4445
+ {
4446
+ serialize: (value: `cb_${string}`) => Buffer;
4447
+ 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}`;
4448
+ }
2743
4449
  ],
2744
4450
  readonly [
2745
4451
  "authFun",
2746
- FIELD_TYPES.rawBinary
4452
+ {
4453
+ serialize(buffer: Uint8Array): Buffer;
4454
+ deserialize(buffer: Buffer): Buffer;
4455
+ }
2747
4456
  ],
2748
4457
  readonly [
2749
4458
  "ctVersion",
2750
- FIELD_TYPES.ctVersion
4459
+ {
4460
+ serialize(value: import("./field-types/ct-version").CtVersion | undefined, { consensusProtocolVersion }: {
4461
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
4462
+ }): Buffer;
4463
+ deserialize(buffer: Buffer): import("./field-types/ct-version").CtVersion;
4464
+ }
2751
4465
  ],
2752
4466
  readonly [
2753
4467
  "fee",
2754
4468
  {
2755
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
2756
- txType: Tag;
2757
- rebuildTx: (params: any) => any;
2758
- _computingMinFee?: string | undefined;
4469
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
4470
+ rebuildTx: (params: any) => `tx_${string}`;
4471
+ unpackTx: typeof import(".").unpackTx;
4472
+ buildTx: typeof import(".").buildTx;
4473
+ _computingMinFee?: BigNumber | undefined;
4474
+ _pickBiggerFee?: boolean | undefined;
2759
4475
  }): string;
2760
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
4476
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2761
4477
  deserialize(value: Buffer): string;
2762
4478
  }
2763
4479
  ],
@@ -2771,9 +4487,11 @@ export declare const TX_SCHEMA: {
2771
4487
  readonly [
2772
4488
  "gasLimit",
2773
4489
  {
2774
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
2775
- txType: Tag;
4490
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
4491
+ tag: Tag;
2776
4492
  rebuildTx: (params: any) => any;
4493
+ unpackTx: typeof import(".").unpackTx;
4494
+ buildTx: typeof import(".").buildTx;
2777
4495
  gasMax: number;
2778
4496
  _computingGasLimit?: number | undefined;
2779
4497
  }): Buffer;
@@ -2784,14 +4502,16 @@ export declare const TX_SCHEMA: {
2784
4502
  "gasPrice",
2785
4503
  {
2786
4504
  serializeAettos(value?: string | undefined): string;
2787
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
4505
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2788
4506
  deserialize(value: Buffer): string;
2789
4507
  }
2790
4508
  ],
2791
4509
  readonly [
2792
4510
  "callData",
2793
- FIELD_TYPES.binary,
2794
- Encoded.Encoding.ContractBytearray
4511
+ {
4512
+ serialize: (value: `cb_${string}`) => Buffer;
4513
+ 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}`;
4514
+ }
2795
4515
  ]
2796
4516
  ];
2797
4517
  };
@@ -2800,15 +4520,15 @@ export declare const TX_SCHEMA: {
2800
4520
  readonly [
2801
4521
  "tag",
2802
4522
  {
2803
- serialize(value: number): Buffer;
2804
- deserialize(value: Buffer): number;
4523
+ serialize: (value?: Tag.GaMetaTx | undefined) => Buffer;
4524
+ deserialize: (value: Buffer) => Tag.GaMetaTx;
2805
4525
  }
2806
4526
  ],
2807
4527
  readonly [
2808
- "VSN",
4528
+ "version",
2809
4529
  {
2810
- serialize(value: number): Buffer;
2811
- deserialize(value: Buffer): number;
4530
+ serialize: (value?: 2 | undefined) => Buffer;
4531
+ deserialize: (value: Buffer) => 2;
2812
4532
  }
2813
4533
  ],
2814
4534
  readonly [
@@ -2820,34 +4540,43 @@ export declare const TX_SCHEMA: {
2820
4540
  ],
2821
4541
  readonly [
2822
4542
  "authData",
2823
- FIELD_TYPES.binary,
2824
- Encoded.Encoding.ContractBytearray
4543
+ {
4544
+ serialize: (value: `cb_${string}`) => Buffer;
4545
+ 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}`;
4546
+ }
2825
4547
  ],
2826
4548
  readonly [
2827
4549
  "abiVersion",
2828
4550
  {
2829
- serialize: (value: ABI_VERSIONS) => Buffer;
2830
- deserialize: (value: Buffer) => ABI_VERSIONS;
4551
+ serialize(value: import("./constants").AbiVersion | undefined, { tag, consensusProtocolVersion }: {
4552
+ tag: Tag;
4553
+ consensusProtocolVersion: import("./constants").ConsensusProtocolVersion;
4554
+ }): Buffer;
4555
+ deserialize(buffer: Buffer): import("./constants").AbiVersion;
2831
4556
  }
2832
4557
  ],
2833
4558
  readonly [
2834
4559
  "fee",
2835
4560
  {
2836
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
2837
- txType: Tag;
2838
- rebuildTx: (params: any) => any;
2839
- _computingMinFee?: string | undefined;
4561
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
4562
+ rebuildTx: (params: any) => `tx_${string}`;
4563
+ unpackTx: typeof import(".").unpackTx;
4564
+ buildTx: typeof import(".").buildTx;
4565
+ _computingMinFee?: BigNumber | undefined;
4566
+ _pickBiggerFee?: boolean | undefined;
2840
4567
  }): string;
2841
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
4568
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2842
4569
  deserialize(value: Buffer): string;
2843
4570
  }
2844
4571
  ],
2845
4572
  readonly [
2846
4573
  "gasLimit",
2847
4574
  {
2848
- serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
2849
- txType: Tag;
4575
+ serialize(_value: number | undefined, { tag, rebuildTx, unpackTx, buildTx, gasMax, _computingGasLimit, }: {
4576
+ tag: Tag;
2850
4577
  rebuildTx: (params: any) => any;
4578
+ unpackTx: typeof import(".").unpackTx;
4579
+ buildTx: typeof import(".").buildTx;
2851
4580
  gasMax: number;
2852
4581
  _computingGasLimit?: number | undefined;
2853
4582
  }): Buffer;
@@ -2858,13 +4587,20 @@ export declare const TX_SCHEMA: {
2858
4587
  "gasPrice",
2859
4588
  {
2860
4589
  serializeAettos(value?: string | undefined): string;
2861
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
4590
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2862
4591
  deserialize(value: Buffer): string;
2863
4592
  }
2864
4593
  ],
2865
4594
  readonly [
2866
4595
  "tx",
2867
- FIELD_TYPES.rlpBinary
4596
+ {
4597
+ serialize: (value: any, options: {
4598
+ buildTx: typeof import(".").buildTx;
4599
+ }) => Buffer;
4600
+ deserialize: (value: Buffer, options: {
4601
+ unpackTx: typeof import(".").unpackTx;
4602
+ }) => any;
4603
+ }
2868
4604
  ]
2869
4605
  ];
2870
4606
  };
@@ -2873,15 +4609,15 @@ export declare const TX_SCHEMA: {
2873
4609
  readonly [
2874
4610
  "tag",
2875
4611
  {
2876
- serialize(value: number): Buffer;
2877
- deserialize(value: Buffer): number;
4612
+ serialize: (value?: Tag.PayingForTx | undefined) => Buffer;
4613
+ deserialize: (value: Buffer) => Tag.PayingForTx;
2878
4614
  }
2879
4615
  ],
2880
4616
  readonly [
2881
- "VSN",
4617
+ "version",
2882
4618
  {
2883
- serialize(value: number): Buffer;
2884
- deserialize(value: Buffer): number;
4619
+ serialize: (value?: 1 | undefined) => Buffer;
4620
+ deserialize: (value: Buffer) => 1;
2885
4621
  }
2886
4622
  ],
2887
4623
  readonly [
@@ -2901,62 +4637,38 @@ export declare const TX_SCHEMA: {
2901
4637
  readonly [
2902
4638
  "fee",
2903
4639
  {
2904
- serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
2905
- txType: Tag;
2906
- rebuildTx: (params: any) => any;
2907
- _computingMinFee?: string | undefined;
4640
+ serializeAettos(_value: string | undefined, { rebuildTx, unpackTx, buildTx, _computingMinFee, _pickBiggerFee, }: {
4641
+ rebuildTx: (params: any) => `tx_${string}`;
4642
+ unpackTx: typeof import(".").unpackTx;
4643
+ buildTx: typeof import(".").buildTx;
4644
+ _computingMinFee?: BigNumber | undefined;
4645
+ _pickBiggerFee?: boolean | undefined;
2908
4646
  }): string;
2909
- serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
4647
+ serialize(value: import("./constants").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
2910
4648
  deserialize(value: Buffer): string;
2911
4649
  }
2912
4650
  ],
2913
4651
  readonly [
2914
4652
  "tx",
2915
- FIELD_TYPES.rlpBinary
2916
- ]
2917
- ];
2918
- };
2919
- readonly 70: {
2920
- readonly 3: readonly [
2921
- readonly [
2922
- "tag",
2923
4653
  {
2924
- serialize(value: number): Buffer;
2925
- deserialize(value: Buffer): number;
4654
+ serialize: (value: any, options: {
4655
+ buildTx: typeof import(".").buildTx;
4656
+ }) => Buffer;
4657
+ deserialize: (value: Buffer, options: {
4658
+ unpackTx: typeof import(".").unpackTx;
4659
+ }) => any;
2926
4660
  }
2927
- ],
2928
- readonly [
2929
- "VSN",
2930
- {
2931
- serialize(value: number): Buffer;
2932
- deserialize(value: Buffer): number;
2933
- }
2934
- ],
2935
- readonly [
2936
- "sourceCodeHash",
2937
- FIELD_TYPES.rawBinary
2938
- ],
2939
- readonly [
2940
- "typeInfo",
2941
- FIELD_TYPES.sophiaCodeTypeInfo
2942
- ],
2943
- readonly [
2944
- "byteCode",
2945
- FIELD_TYPES.rawBinary
2946
- ],
2947
- readonly [
2948
- "compilerVersion",
2949
- FIELD_TYPES.string
2950
- ],
2951
- readonly [
2952
- "payable",
2953
- FIELD_TYPES.bool
2954
4661
  ]
2955
4662
  ];
2956
4663
  };
2957
4664
  };
4665
+ type TxTypeSchemasNotCombined = {
4666
+ [tag in Tag]: {
4667
+ [ver in keyof typeof TX_SCHEMA[tag]]: BuildTxArgBySchema<typeof TX_SCHEMA[tag][ver]>;
4668
+ };
4669
+ };
2958
4670
  export type TxTypeSchemas = {
2959
- [key in Tag]: BuildTxArgBySchema<typeof TX_SCHEMA[key][keyof typeof TX_SCHEMA[key]]>;
4671
+ [key in Tag]: TxTypeSchemasNotCombined[key][keyof TxTypeSchemasNotCombined[key]];
2960
4672
  };
2961
4673
  export type TxSchema = TxTypeSchemas[Tag];
2962
4674
  export type TxParamsCommon = Partial<UnionToIntersection<TxSchema>>;