@aeternity/aepp-sdk 13.0.0-alpha.0 → 13.0.0-beta.0

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