@aeternity/aepp-sdk 12.0.0 → 12.1.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 (283) hide show
  1. package/dist/aepp-sdk.browser-script.js +1 -1
  2. package/dist/aepp-sdk.browser-script.js.LICENSE.txt +0 -15
  3. package/dist/aepp-sdk.browser-script.js.map +1 -1
  4. package/dist/aepp-sdk.browser.js +2 -1
  5. package/dist/aepp-sdk.browser.js.LICENSE.txt +1 -0
  6. package/dist/aepp-sdk.browser.js.map +1 -1
  7. package/dist/aepp-sdk.js +20764 -1
  8. package/dist/aepp-sdk.js.map +1 -1
  9. package/es/AeSdk.d.ts +7 -7
  10. package/es/AeSdk.mjs.map +1 -1
  11. package/es/AeSdkAepp.d.ts +4 -3
  12. package/es/AeSdkAepp.mjs +2 -1
  13. package/es/AeSdkAepp.mjs.map +1 -1
  14. package/es/AeSdkBase.d.ts +22 -21
  15. package/es/AeSdkBase.mjs +25 -21
  16. package/es/AeSdkBase.mjs.map +1 -1
  17. package/es/AeSdkWallet.d.ts +4 -3
  18. package/es/AeSdkWallet.mjs +5 -1
  19. package/es/AeSdkWallet.mjs.map +1 -1
  20. package/es/Node.d.ts +7 -10
  21. package/es/Node.mjs +63 -57
  22. package/es/Node.mjs.map +1 -1
  23. package/es/account/Base.d.ts +7 -4
  24. package/es/account/Base.mjs +3 -3
  25. package/es/account/Base.mjs.map +1 -1
  26. package/es/account/Memory.d.ts +5 -4
  27. package/es/account/Memory.mjs +24 -2
  28. package/es/account/Memory.mjs.map +1 -1
  29. package/es/account/Rpc.d.ts +6 -6
  30. package/es/account/Rpc.mjs +3 -2
  31. package/es/account/Rpc.mjs.map +1 -1
  32. package/es/aens.d.ts +27 -14
  33. package/es/aens.mjs +27 -21
  34. package/es/aens.mjs.map +1 -1
  35. package/es/aepp-wallet-communication/connection/Browser.d.ts +2 -1
  36. package/es/aepp-wallet-communication/connection/Browser.mjs +5 -2
  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 +1 -0
  40. package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
  41. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +1 -0
  42. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +5 -1
  43. package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
  44. package/es/aepp-wallet-communication/connection-proxy.d.ts +1 -0
  45. package/es/aepp-wallet-communication/connection-proxy.mjs +1 -0
  46. package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
  47. package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +1 -0
  48. package/es/aepp-wallet-communication/rpc/RpcClient.mjs +5 -5
  49. package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
  50. package/es/aepp-wallet-communication/rpc/types.d.ts +8 -8
  51. package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
  52. package/es/aepp-wallet-communication/schema.d.ts +17 -2
  53. package/es/aepp-wallet-communication/schema.mjs +54 -17
  54. package/es/aepp-wallet-communication/schema.mjs.map +1 -1
  55. package/es/aepp-wallet-communication/wallet-detector.d.ts +2 -1
  56. package/es/aepp-wallet-communication/wallet-detector.mjs +2 -3
  57. package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
  58. package/es/apis/node/models/index.d.ts +6 -2
  59. package/es/apis/node/models/index.mjs.map +1 -1
  60. package/es/apis/node/models/mappers.mjs +4 -2
  61. package/es/apis/node/models/mappers.mjs.map +1 -1
  62. package/es/chain.d.ts +92 -64
  63. package/es/chain.mjs +190 -154
  64. package/es/chain.mjs.map +1 -1
  65. package/es/channel/handlers.d.ts +3 -3
  66. package/es/channel/handlers.mjs +42 -44
  67. package/es/channel/handlers.mjs.map +1 -1
  68. package/es/channel/index.d.ts +43 -52
  69. package/es/channel/index.mjs +46 -49
  70. package/es/channel/index.mjs.map +1 -1
  71. package/es/channel/internal.d.ts +16 -15
  72. package/es/channel/internal.mjs +67 -62
  73. package/es/channel/internal.mjs.map +1 -1
  74. package/es/contract/Compiler.d.ts +1 -0
  75. package/es/contract/Compiler.mjs +5 -4
  76. package/es/contract/Compiler.mjs.map +1 -1
  77. package/es/contract/aci.d.ts +17 -15
  78. package/es/contract/aci.mjs +58 -45
  79. package/es/contract/aci.mjs.map +1 -1
  80. package/es/contract/ga.d.ts +16 -15
  81. package/es/contract/ga.mjs +12 -7
  82. package/es/contract/ga.mjs.map +1 -1
  83. package/es/contract/methods.d.ts +9 -6
  84. package/es/contract/methods.mjs +9 -6
  85. package/es/contract/methods.mjs.map +1 -1
  86. package/es/deprecated/index.d.ts +143 -0
  87. package/es/deprecated/index.mjs +162 -0
  88. package/es/deprecated/index.mjs.map +1 -0
  89. package/es/deprecated/methods.d.ts +18 -0
  90. package/es/deprecated/methods.mjs +26 -0
  91. package/es/deprecated/methods.mjs.map +1 -0
  92. package/es/index.d.ts +4 -1
  93. package/es/index.mjs +4 -1
  94. package/es/index.mjs.map +1 -1
  95. package/es/oracle.d.ts +69 -62
  96. package/es/oracle.mjs +121 -103
  97. package/es/oracle.mjs.map +1 -1
  98. package/es/spend.d.ts +16 -15
  99. package/es/spend.mjs +19 -30
  100. package/es/spend.mjs.map +1 -1
  101. package/es/tx/builder/address.d.ts +25 -0
  102. package/es/tx/builder/address.mjs +45 -0
  103. package/es/tx/builder/address.mjs.map +1 -0
  104. package/es/tx/builder/constants.d.ts +55 -26
  105. package/es/tx/builder/constants.mjs +60 -38
  106. package/es/tx/builder/constants.mjs.map +1 -1
  107. package/es/tx/builder/field-types/coin-amount.d.ts +13 -0
  108. package/es/tx/builder/field-types/coin-amount.mjs +26 -0
  109. package/es/tx/builder/field-types/coin-amount.mjs.map +1 -0
  110. package/es/tx/builder/field-types/deposit.d.ts +15 -0
  111. package/es/tx/builder/field-types/deposit.mjs +19 -0
  112. package/es/tx/builder/field-types/deposit.mjs.map +1 -0
  113. package/es/tx/builder/field-types/fee.d.ts +25 -0
  114. package/es/tx/{min-fee.mjs → builder/field-types/fee.mjs} +62 -60
  115. package/es/tx/builder/field-types/fee.mjs.map +1 -0
  116. package/es/tx/builder/field-types/field.d.ts +6 -0
  117. package/es/tx/builder/field-types/field.mjs +15 -0
  118. package/es/tx/builder/field-types/field.mjs.map +1 -0
  119. package/es/tx/builder/field-types/gas-limit.d.ts +12 -0
  120. package/es/tx/builder/field-types/gas-limit.mjs +33 -0
  121. package/es/tx/builder/field-types/gas-limit.mjs.map +1 -0
  122. package/es/tx/builder/field-types/gas-price.d.ts +8 -0
  123. package/es/tx/builder/field-types/gas-price.mjs +18 -0
  124. package/es/tx/builder/field-types/gas-price.mjs.map +1 -0
  125. package/es/tx/builder/field-types/index.d.ts +70 -0
  126. package/es/tx/builder/field-types/index.mjs +25 -0
  127. package/es/tx/builder/field-types/index.mjs.map +1 -0
  128. package/es/tx/builder/field-types/name-fee.d.ts +20 -0
  129. package/es/tx/builder/field-types/name-fee.mjs +24 -0
  130. package/es/tx/builder/field-types/name-fee.mjs.map +1 -0
  131. package/es/tx/builder/field-types/name-id.d.ts +14 -0
  132. package/es/tx/builder/field-types/name-id.mjs +19 -0
  133. package/es/tx/builder/field-types/name-id.mjs.map +1 -0
  134. package/es/tx/builder/field-types/name.d.ts +13 -0
  135. package/es/tx/builder/field-types/name.mjs +18 -0
  136. package/es/tx/builder/field-types/name.mjs.map +1 -0
  137. package/es/tx/builder/field-types/short-u-int.d.ts +6 -0
  138. package/es/tx/builder/field-types/short-u-int.mjs +12 -0
  139. package/es/tx/builder/field-types/short-u-int.mjs.map +1 -0
  140. package/es/tx/builder/field-types/u-int.d.ts +8 -0
  141. package/es/tx/builder/field-types/u-int.mjs +14 -0
  142. package/es/tx/builder/field-types/u-int.mjs.map +1 -0
  143. package/es/tx/builder/helpers.d.ts +27 -33
  144. package/es/tx/builder/helpers.mjs +41 -47
  145. package/es/tx/builder/helpers.mjs.map +1 -1
  146. package/es/tx/builder/index.d.ts +25 -12
  147. package/es/tx/builder/index.mjs +74 -83
  148. package/es/tx/builder/index.mjs.map +1 -1
  149. package/es/tx/builder/schema.d.ts +995 -144
  150. package/es/tx/builder/schema.mjs +121 -170
  151. package/es/tx/builder/schema.mjs.map +1 -1
  152. package/es/tx/index.d.ts +28 -27
  153. package/es/tx/index.mjs +97 -117
  154. package/es/tx/index.mjs.map +1 -1
  155. package/es/tx/validator.d.ts +4 -3
  156. package/es/tx/validator.mjs +79 -92
  157. package/es/tx/validator.mjs.map +1 -1
  158. package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +1 -1
  159. package/es/typings/@aeternity__uuid/index.d.mjs.map +1 -1
  160. package/es/typings/bip32-path/index.d.mjs.map +1 -1
  161. package/es/typings/blakejs/index.d.mjs.map +1 -1
  162. package/es/typings/sha-js/index.d.mjs +2 -0
  163. package/es/typings/sha-js/index.d.mjs.map +1 -0
  164. package/es/typings/tweetnacl-auth/index.d.mjs.map +1 -1
  165. package/es/utils/amount-formatter.d.ts +9 -9
  166. package/es/utils/amount-formatter.mjs +17 -17
  167. package/es/utils/amount-formatter.mjs.map +1 -1
  168. package/es/utils/autorest.mjs +7 -7
  169. package/es/utils/autorest.mjs.map +1 -1
  170. package/es/utils/bignumber.mjs +2 -1
  171. package/es/utils/bignumber.mjs.map +1 -1
  172. package/es/utils/bytes.mjs +1 -1
  173. package/es/utils/bytes.mjs.map +1 -1
  174. package/es/utils/crypto.d.ts +8 -23
  175. package/es/utils/crypto.mjs +15 -41
  176. package/es/utils/crypto.mjs.map +1 -1
  177. package/es/utils/encoder-types.d.ts +61 -0
  178. package/es/utils/encoder-types.mjs +36 -0
  179. package/es/utils/encoder-types.mjs.map +1 -0
  180. package/es/utils/encoder.d.ts +6 -7
  181. package/es/utils/encoder.mjs +42 -26
  182. package/es/utils/encoder.mjs.map +1 -1
  183. package/es/utils/errors.d.ts +1 -11
  184. package/es/utils/errors.mjs +4 -20
  185. package/es/utils/errors.mjs.map +1 -1
  186. package/es/utils/hd-wallet.d.ts +18 -2
  187. package/es/utils/hd-wallet.mjs +64 -34
  188. package/es/utils/hd-wallet.mjs.map +1 -1
  189. package/es/utils/json-big.mjs +2 -2
  190. package/es/utils/json-big.mjs.map +1 -1
  191. package/es/utils/keystore.mjs +4 -2
  192. package/es/utils/keystore.mjs.map +1 -1
  193. package/es/utils/mptree.d.ts +2 -2
  194. package/es/utils/mptree.mjs +11 -6
  195. package/es/utils/mptree.mjs.map +1 -1
  196. package/es/utils/other.d.ts +8 -2
  197. package/es/utils/other.mjs +15 -3
  198. package/es/utils/other.mjs.map +1 -1
  199. package/es/utils/semver-satisfies.d.ts +1 -1
  200. package/es/utils/semver-satisfies.mjs +2 -2
  201. package/es/utils/semver-satisfies.mjs.map +1 -1
  202. package/es/utils/string.mjs.map +1 -1
  203. package/package.json +35 -33
  204. package/src/AeSdk.ts +30 -27
  205. package/src/AeSdkAepp.ts +93 -84
  206. package/src/AeSdkBase.ts +148 -130
  207. package/src/AeSdkWallet.ts +172 -156
  208. package/src/Node.ts +108 -102
  209. package/src/account/Base.ts +42 -32
  210. package/src/account/Memory.ts +45 -30
  211. package/src/account/Rpc.ts +32 -30
  212. package/src/aens.ts +124 -108
  213. package/src/aepp-wallet-communication/connection/Browser.ts +18 -15
  214. package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +22 -21
  215. package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +63 -52
  216. package/src/aepp-wallet-communication/connection-proxy.ts +8 -7
  217. package/src/aepp-wallet-communication/rpc/RpcClient.ts +67 -61
  218. package/src/aepp-wallet-communication/rpc/types.ts +32 -32
  219. package/src/aepp-wallet-communication/schema.ts +117 -74
  220. package/src/aepp-wallet-communication/wallet-detector.ts +29 -28
  221. package/src/apis/node/code-model-v4.yaml +54 -20
  222. package/src/apis/node/models/index.ts +6 -2
  223. package/src/apis/node/models/mappers.ts +4 -2
  224. package/src/chain.ts +286 -228
  225. package/src/channel/handlers.ts +424 -372
  226. package/src/channel/index.ts +285 -251
  227. package/src/channel/internal.ts +248 -232
  228. package/src/contract/Compiler.ts +22 -21
  229. package/src/contract/aci.ts +267 -258
  230. package/src/contract/ga.ts +93 -72
  231. package/src/contract/methods.ts +32 -27
  232. package/src/deprecated/index.ts +170 -0
  233. package/src/deprecated/methods.ts +25 -0
  234. package/src/index.ts +37 -32
  235. package/src/oracle.ts +211 -189
  236. package/src/spend.ts +82 -70
  237. package/src/tx/builder/address.ts +50 -0
  238. package/src/tx/builder/constants.ts +82 -52
  239. package/src/tx/builder/field-types/coin-amount.ts +27 -0
  240. package/src/tx/builder/field-types/deposit.ts +21 -0
  241. package/src/tx/builder/field-types/fee.ts +143 -0
  242. package/src/tx/builder/field-types/field.ts +9 -0
  243. package/src/tx/builder/field-types/gas-limit.ts +41 -0
  244. package/src/tx/builder/field-types/gas-price.ts +16 -0
  245. package/src/tx/builder/field-types/index.ts +45 -0
  246. package/src/tx/builder/field-types/name-fee.ts +32 -0
  247. package/src/tx/builder/field-types/name-id.ts +20 -0
  248. package/src/tx/builder/field-types/name.ts +18 -0
  249. package/src/tx/builder/field-types/short-u-int.ts +11 -0
  250. package/src/tx/builder/field-types/u-int.ts +16 -0
  251. package/src/tx/builder/helpers.ts +112 -117
  252. package/src/tx/builder/index.ts +203 -197
  253. package/src/tx/builder/schema.ts +421 -465
  254. package/src/tx/index.ts +128 -135
  255. package/src/tx/validator.ts +165 -161
  256. package/src/typings/@aeternity__argon2-browser/index.d.ts +1 -1
  257. package/src/typings/@aeternity__uuid/index.d.ts +3 -1
  258. package/src/typings/bip32-path/index.d.ts +6 -6
  259. package/src/typings/blakejs/index.d.ts +4 -32
  260. package/src/typings/sha-js/index.d.ts +5 -0
  261. package/src/typings/tweetnacl-auth/index.d.ts +2 -2
  262. package/src/utils/amount-formatter.ts +41 -41
  263. package/src/utils/autorest.ts +57 -54
  264. package/src/utils/bignumber.ts +7 -6
  265. package/src/utils/bytes.ts +19 -19
  266. package/src/utils/crypto.ts +82 -94
  267. package/src/utils/encoder-types.ts +63 -0
  268. package/src/utils/encoder.ts +104 -56
  269. package/src/utils/errors.ts +246 -264
  270. package/src/utils/hd-wallet.ts +114 -82
  271. package/src/utils/json-big.ts +16 -15
  272. package/src/utils/keystore.ts +65 -62
  273. package/src/utils/mptree.ts +59 -56
  274. package/src/utils/other.ts +26 -18
  275. package/src/utils/semver-satisfies.ts +15 -11
  276. package/src/utils/string.ts +10 -10
  277. package/es/tx/builder/field-types.d.ts +0 -62
  278. package/es/tx/builder/field-types.mjs +0 -126
  279. package/es/tx/builder/field-types.mjs.map +0 -1
  280. package/es/tx/min-fee.d.ts +0 -20
  281. package/es/tx/min-fee.mjs.map +0 -1
  282. package/src/tx/builder/field-types.ts +0 -111
  283. package/src/tx/min-fee.ts +0 -136
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * Transaction Schema for TxBuilder
3
3
  */
4
+ /// <reference types="node" />
4
5
  import BigNumber from 'bignumber.js';
5
- import { Name, NameId, NameFee, Deposit, Field, GasPrice } from './field-types';
6
- import { EncodedData, EncodingType } from '../../utils/encoder';
7
- import { Pointer } from './helpers';
6
+ import { Tag } from './constants';
7
+ import { Field } from './field-types';
8
+ import { Encoded, Encoding } from '../../utils/encoder';
8
9
  import MPTree from '../../utils/mptree';
9
- export * from './constants';
10
+ import { NamePointer } from '../../apis/node';
10
11
  export declare enum ORACLE_TTL_TYPES {
11
12
  delta = 0,
12
13
  block = 1
@@ -26,7 +27,6 @@ export declare const RESPONSE_TTL: {
26
27
  value: number;
27
28
  };
28
29
  export declare const AMOUNT = 0;
29
- export declare const GAS_MAX: number;
30
30
  export declare const MAX_AUTH_FUN_GAS = 50000;
31
31
  export declare const DRY_RUN_ACCOUNT: {
32
32
  readonly pub: "ak_11111111111111111111111111111111273Yts";
@@ -34,63 +34,11 @@ export declare const DRY_RUN_ACCOUNT: {
34
34
  };
35
35
  export declare type TxField = [
36
36
  name: string,
37
- type: FIELD_TYPES | typeof Field,
38
- prefix?: EncodingType | EncodingType[]
37
+ type: FIELD_TYPES | Field,
38
+ prefix?: Encoding | Encoding[]
39
39
  ];
40
40
  /**
41
- * Enum with transaction types
42
- * @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/serializations.md#binary-serialization}
43
- */
44
- export declare enum TX_TYPE {
45
- account = 10,
46
- signed = 11,
47
- spend = 12,
48
- oracleRegister = 22,
49
- oracleQuery = 23,
50
- oracleResponse = 24,
51
- oracleExtend = 25,
52
- nameClaim = 32,
53
- namePreClaim = 33,
54
- nameUpdate = 34,
55
- nameRevoke = 35,
56
- nameTransfer = 36,
57
- contract = 40,
58
- contractCallResult = 41,
59
- contractCreate = 42,
60
- contractCall = 43,
61
- channelCreate = 50,
62
- channelDeposit = 51,
63
- channelWithdraw = 52,
64
- channelCloseMutual = 53,
65
- channelCloseSolo = 54,
66
- channelSlash = 55,
67
- channelSettle = 56,
68
- channelOffChain = 57,
69
- channel = 58,
70
- channelSnapshotSolo = 59,
71
- proofOfInclusion = 60,
72
- stateTrees = 62,
73
- merklePatriciaTree = 63,
74
- merklePatriciaTreeValue = 64,
75
- sophiaByteCode = 70,
76
- gaAttach = 80,
77
- gaMeta = 81,
78
- payingFor = 82,
79
- channelForceProgress = 521,
80
- channelOffChainUpdateTransfer = 570,
81
- channelOffChainUpdateDeposit = 571,
82
- channelOffChainUpdateWithdrawal = 572,
83
- channelOffChainCreateContract = 573,
84
- channelOffChainCallContract = 574,
85
- channelReconnect = 575,
86
- contractsTree = 621,
87
- contractCallsTree = 622,
88
- channelsTree = 623,
89
- nameserviceTree = 624,
90
- oraclesTree = 625,
91
- accountsTree = 626
92
- }
93
- /**
41
+ * @category transaction builder
94
42
  * @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
95
43
  */
96
44
  export declare enum VM_VERSIONS {
@@ -103,6 +51,7 @@ export declare enum VM_VERSIONS {
103
51
  FATE_2 = 7
104
52
  }
105
53
  /**
54
+ * @category transaction builder
106
55
  * @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
107
56
  */
108
57
  export declare enum ABI_VERSIONS {
@@ -110,6 +59,9 @@ export declare enum ABI_VERSIONS {
110
59
  SOPHIA = 1,
111
60
  FATE = 3
112
61
  }
62
+ /**
63
+ * @category transaction builder
64
+ */
113
65
  export declare enum PROTOCOL_VERSIONS {
114
66
  IRIS = 5
115
67
  }
@@ -129,44 +81,44 @@ export declare const PROTOCOL_VM_ABI: {
129
81
  };
130
82
  };
131
83
  };
132
- declare type PrefixType<Prefix> = Prefix extends EncodingType ? EncodedData<Prefix> : Prefix extends readonly EncodingType[] ? EncodedData<Prefix[number]> : EncodedData<any>;
84
+ declare type PrefixType<Prefix> = Prefix extends Encoding ? Encoded.Generic<Prefix> : Prefix extends readonly Encoding[] ? Encoded.Generic<Prefix[number]> : Encoded.Generic<any>;
85
+ /**
86
+ * @category transaction builder
87
+ */
133
88
  export interface CtVersion {
134
89
  vmVersion: VM_VERSIONS;
135
90
  abiVersion: ABI_VERSIONS;
136
91
  }
92
+ /**
93
+ * @category transaction builder
94
+ */
137
95
  export declare enum FIELD_TYPES {
138
- int = 0,
139
- shortInt = 1,
140
- amount = 2,
141
- id = 3,
142
- ids = 4,
143
- string = 5,
144
- binary = 6,
145
- bool = 7,
146
- hex = 8,
147
- rlpBinary = 9,
148
- rlpBinaries = 10,
149
- rawBinary = 11,
150
- signatures = 12,
151
- pointers = 13,
152
- offChainUpdates = 14,
153
- callStack = 15,
154
- proofOfInclusion = 16,
155
- mptrees = 17,
156
- callReturnType = 18,
157
- ctVersion = 19,
158
- abiVersion = 20,
159
- ttlType = 21,
160
- sophiaCodeTypeInfo = 22,
161
- payload = 23,
162
- stateTree = 24
96
+ id = 0,
97
+ ids = 1,
98
+ string = 2,
99
+ binary = 3,
100
+ bool = 4,
101
+ hex = 5,
102
+ rlpBinary = 6,
103
+ rlpBinaries = 7,
104
+ rawBinary = 8,
105
+ signatures = 9,
106
+ pointers = 10,
107
+ offChainUpdates = 11,
108
+ callStack = 12,
109
+ proofOfInclusion = 13,
110
+ mptrees = 14,
111
+ callReturnType = 15,
112
+ ctVersion = 16,
113
+ abiVersion = 17,
114
+ ttlType = 18,
115
+ sophiaCodeTypeInfo = 19,
116
+ payload = 20,
117
+ stateTree = 21
163
118
  }
164
- interface BuildFieldTypes<Prefix extends undefined | EncodingType | readonly EncodingType[]> {
165
- [FIELD_TYPES.int]: number | string | BigNumber;
166
- [FIELD_TYPES.shortInt]: number;
167
- [FIELD_TYPES.amount]: number | string | BigNumber;
119
+ interface BuildFieldTypes<Prefix extends undefined | Encoding | readonly Encoding[]> {
168
120
  [FIELD_TYPES.id]: PrefixType<Prefix>;
169
- [FIELD_TYPES.ids]: Array<EncodedData<Prefix extends EncodingType[] ? Prefix : any>>;
121
+ [FIELD_TYPES.ids]: Array<Encoded.Generic<Prefix extends Encoding[] ? Prefix : any>>;
170
122
  [FIELD_TYPES.string]: string;
171
123
  [FIELD_TYPES.binary]: PrefixType<Prefix>;
172
124
  [FIELD_TYPES.bool]: Boolean;
@@ -175,7 +127,7 @@ interface BuildFieldTypes<Prefix extends undefined | EncodingType | readonly Enc
175
127
  [FIELD_TYPES.rlpBinaries]: any[];
176
128
  [FIELD_TYPES.rawBinary]: Uint8Array;
177
129
  [FIELD_TYPES.signatures]: Uint8Array[];
178
- [FIELD_TYPES.pointers]: Pointer[];
130
+ [FIELD_TYPES.pointers]: NamePointer[];
179
131
  [FIELD_TYPES.offChainUpdates]: any;
180
132
  [FIELD_TYPES.callStack]: any;
181
133
  [FIELD_TYPES.proofOfInclusion]: any;
@@ -189,8 +141,8 @@ interface BuildFieldTypes<Prefix extends undefined | EncodingType | readonly Enc
189
141
  [FIELD_TYPES.stateTree]: any;
190
142
  }
191
143
  declare type UnionToIntersection<Union> = (Union extends any ? (k: Union) => void : never) extends ((k: infer Intersection) => void) ? Intersection : never;
192
- declare type TxElem = readonly [string, FIELD_TYPES | Field] | readonly [string, FIELD_TYPES, EncodingType | readonly EncodingType[]];
193
- declare type BuildTxArgBySchemaType<Type extends FIELD_TYPES | Field, Prefix extends undefined | EncodingType | readonly EncodingType[]> = Type extends typeof Field ? Parameters<Type['serialize']>[0] : Type extends FIELD_TYPES ? BuildFieldTypes<Prefix>[Type] : never;
144
+ declare type TxElem = readonly [string, FIELD_TYPES | Field] | readonly [string, FIELD_TYPES, Encoding | readonly Encoding[]];
145
+ declare type BuildTxArgBySchemaType<Type extends FIELD_TYPES | Field, Prefix extends undefined | Encoding | readonly Encoding[]> = Type extends Field ? Parameters<Type['serialize']>[0] : Type extends FIELD_TYPES ? BuildFieldTypes<Prefix>[Type] : never;
194
146
  declare type NullablePartial<T, NK extends keyof T = {
195
147
  [K in keyof T]: undefined extends T[K] ? K : never;
196
148
  }[keyof T]> = Partial<Pick<T, NK>> & Omit<T, NK>;
@@ -198,153 +150,1052 @@ declare type BuildTxArgBySchema<SchemaLine> = UnionToIntersection<SchemaLine ext
198
150
  [k in Elem[0]]: BuildTxArgBySchemaType<Elem[1], Elem[2]>;
199
151
  }> : never : never>;
200
152
  export declare type RawTxObject<Tx extends TxSchema> = {
201
- [k in keyof Tx]: Tx[k] extends BigNumber ? string : Tx[k];
153
+ [k in keyof Tx]-?: Tx[k] extends BigNumber ? string : Tx[k];
202
154
  };
203
155
  export declare const TX_SCHEMA: {
204
156
  readonly 10: {
205
- readonly 2: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["flags", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["balance", FIELD_TYPES.int], readonly ["gaContract", FIELD_TYPES.id, readonly ["ct", "nm"]], readonly ["gaAuthFun", FIELD_TYPES.binary, "cb"]];
157
+ readonly 1: readonly [readonly ["tag", {
158
+ serialize(value: number): Buffer;
159
+ deserialize(value: Buffer): number;
160
+ }], readonly ["VSN", {
161
+ serialize(value: number): Buffer;
162
+ deserialize(value: Buffer): number;
163
+ }], readonly ["nonce", {
164
+ serialize(value: number): Buffer;
165
+ deserialize(value: Buffer): number;
166
+ }], readonly ["balance", {
167
+ serialize(value: import("./field-types/u-int").Int): Buffer;
168
+ deserialize(value: Buffer): string;
169
+ }]];
170
+ readonly 2: readonly [readonly ["tag", {
171
+ serialize(value: number): Buffer;
172
+ deserialize(value: Buffer): number;
173
+ }], readonly ["VSN", {
174
+ serialize(value: number): Buffer;
175
+ deserialize(value: Buffer): number;
176
+ }], readonly ["flags", {
177
+ serialize(value: import("./field-types/u-int").Int): Buffer;
178
+ deserialize(value: Buffer): string;
179
+ }], readonly ["nonce", {
180
+ serialize(value: number): Buffer;
181
+ deserialize(value: Buffer): number;
182
+ }], readonly ["balance", {
183
+ serialize(value: import("./field-types/u-int").Int): Buffer;
184
+ deserialize(value: Buffer): string;
185
+ }], readonly ["gaContract", FIELD_TYPES.id, readonly [Encoded.Encoding.ContractAddress, Encoded.Encoding.Name]], readonly ["gaAuthFun", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
206
186
  };
207
187
  readonly 11: {
208
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["signatures", FIELD_TYPES.signatures], readonly ["encodedTx", FIELD_TYPES.rlpBinary]];
188
+ readonly 1: readonly [readonly ["tag", {
189
+ serialize(value: number): Buffer;
190
+ deserialize(value: Buffer): number;
191
+ }], readonly ["VSN", {
192
+ serialize(value: number): Buffer;
193
+ deserialize(value: Buffer): number;
194
+ }], readonly ["signatures", FIELD_TYPES.signatures], readonly ["encodedTx", FIELD_TYPES.rlpBinary]];
209
195
  };
210
196
  readonly 12: {
211
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["senderId", FIELD_TYPES.id, "ak"], readonly ["recipientId", FIELD_TYPES.id, readonly ["ak", "nm"]], readonly ["amount", FIELD_TYPES.amount], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["payload", FIELD_TYPES.payload]];
197
+ readonly 1: readonly [readonly ["tag", {
198
+ serialize(value: number): Buffer;
199
+ deserialize(value: Buffer): number;
200
+ }], readonly ["VSN", {
201
+ serialize(value: number): Buffer;
202
+ deserialize(value: Buffer): number;
203
+ }], readonly ["senderId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["recipientId", FIELD_TYPES.id, readonly [Encoded.Encoding.AccountAddress, Encoded.Encoding.Name]], readonly ["amount", {
204
+ serializeAettos(value: string | undefined): string;
205
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
206
+ serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
207
+ deserialize(value: Buffer): string;
208
+ }], readonly ["fee", {
209
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
210
+ txType: Tag;
211
+ rebuildTx: (params: any) => any;
212
+ _computingMinFee?: string | undefined;
213
+ }): string;
214
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
215
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
216
+ deserialize(value: Buffer): string;
217
+ }], readonly ["ttl", {
218
+ serialize(value: number): Buffer;
219
+ deserialize(value: Buffer): number;
220
+ }], readonly ["nonce", {
221
+ serialize(value: number): Buffer;
222
+ deserialize(value: Buffer): number;
223
+ }], readonly ["payload", FIELD_TYPES.payload]];
212
224
  };
213
225
  readonly 33: {
214
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["accountId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["commitmentId", FIELD_TYPES.id, "cm"], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
226
+ readonly 1: readonly [readonly ["tag", {
227
+ serialize(value: number): Buffer;
228
+ deserialize(value: Buffer): number;
229
+ }], readonly ["VSN", {
230
+ serialize(value: number): Buffer;
231
+ deserialize(value: Buffer): number;
232
+ }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
233
+ serialize(value: number): Buffer;
234
+ deserialize(value: Buffer): number;
235
+ }], readonly ["commitmentId", FIELD_TYPES.id, Encoded.Encoding.Commitment], readonly ["fee", {
236
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
237
+ txType: Tag;
238
+ rebuildTx: (params: any) => any;
239
+ _computingMinFee?: string | undefined;
240
+ }): string;
241
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
242
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
243
+ deserialize(value: Buffer): string;
244
+ }], readonly ["ttl", {
245
+ serialize(value: number): Buffer;
246
+ deserialize(value: Buffer): number;
247
+ }]];
215
248
  };
216
249
  readonly 32: {
217
- readonly 2: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["accountId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["name", typeof Name], readonly ["nameSalt", FIELD_TYPES.int], readonly ["nameFee", typeof NameFee], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
250
+ readonly 2: readonly [readonly ["tag", {
251
+ serialize(value: number): Buffer;
252
+ deserialize(value: Buffer): number;
253
+ }], readonly ["VSN", {
254
+ serialize(value: number): Buffer;
255
+ deserialize(value: Buffer): number;
256
+ }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
257
+ serialize(value: number): Buffer;
258
+ deserialize(value: Buffer): number;
259
+ }], readonly ["name", {
260
+ serialize(value: `${string}.chain`): Buffer;
261
+ deserialize(value: Buffer): `${string}.chain`;
262
+ }], readonly ["nameSalt", {
263
+ serialize(value: import("./field-types/u-int").Int): Buffer;
264
+ deserialize(value: Buffer): string;
265
+ }], readonly ["nameFee", {
266
+ serializeAettos(_value: string | undefined, txFields: {
267
+ name: `${string}.chain`;
268
+ }): string;
269
+ serialize(value: import("./field-types/u-int").Int | undefined, txFields: {
270
+ name: `${string}.chain`;
271
+ } & import("./field-types/coin-amount").Options): Buffer;
272
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
273
+ deserialize(value: Buffer): string;
274
+ }], readonly ["fee", {
275
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
276
+ txType: Tag;
277
+ rebuildTx: (params: any) => any;
278
+ _computingMinFee?: string | undefined;
279
+ }): string;
280
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
281
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
282
+ deserialize(value: Buffer): string;
283
+ }], readonly ["ttl", {
284
+ serialize(value: number): Buffer;
285
+ deserialize(value: Buffer): number;
286
+ }]];
218
287
  };
219
288
  readonly 34: {
220
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["accountId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["nameId", typeof NameId], readonly ["nameTtl", FIELD_TYPES.int], readonly ["pointers", FIELD_TYPES.pointers], readonly ["clientTtl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
289
+ readonly 1: readonly [readonly ["tag", {
290
+ serialize(value: number): Buffer;
291
+ deserialize(value: Buffer): number;
292
+ }], readonly ["VSN", {
293
+ serialize(value: number): Buffer;
294
+ deserialize(value: Buffer): number;
295
+ }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
296
+ serialize(value: number): Buffer;
297
+ deserialize(value: Buffer): number;
298
+ }], readonly ["nameId", {
299
+ serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
300
+ deserialize(value: Buffer): `nm_${string}`;
301
+ }], readonly ["nameTtl", {
302
+ serialize(value: import("./field-types/u-int").Int): Buffer;
303
+ deserialize(value: Buffer): string;
304
+ }], readonly ["pointers", FIELD_TYPES.pointers], readonly ["clientTtl", {
305
+ serialize(value: number): Buffer;
306
+ deserialize(value: Buffer): number;
307
+ }], readonly ["fee", {
308
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
309
+ txType: Tag;
310
+ rebuildTx: (params: any) => any;
311
+ _computingMinFee?: string | undefined;
312
+ }): string;
313
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
314
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
315
+ deserialize(value: Buffer): string;
316
+ }], readonly ["ttl", {
317
+ serialize(value: number): Buffer;
318
+ deserialize(value: Buffer): number;
319
+ }]];
221
320
  };
222
321
  readonly 36: {
223
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["accountId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["nameId", typeof NameId], readonly ["recipientId", FIELD_TYPES.id, readonly ["ak", "nm"]], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
322
+ readonly 1: readonly [readonly ["tag", {
323
+ serialize(value: number): Buffer;
324
+ deserialize(value: Buffer): number;
325
+ }], readonly ["VSN", {
326
+ serialize(value: number): Buffer;
327
+ deserialize(value: Buffer): number;
328
+ }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
329
+ serialize(value: number): Buffer;
330
+ deserialize(value: Buffer): number;
331
+ }], readonly ["nameId", {
332
+ serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
333
+ deserialize(value: Buffer): `nm_${string}`;
334
+ }], readonly ["recipientId", FIELD_TYPES.id, readonly [Encoded.Encoding.AccountAddress, Encoded.Encoding.Name]], readonly ["fee", {
335
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
336
+ txType: Tag;
337
+ rebuildTx: (params: any) => any;
338
+ _computingMinFee?: string | undefined;
339
+ }): string;
340
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
341
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
342
+ deserialize(value: Buffer): string;
343
+ }], readonly ["ttl", {
344
+ serialize(value: number): Buffer;
345
+ deserialize(value: Buffer): number;
346
+ }]];
224
347
  };
225
348
  readonly 35: {
226
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["accountId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["nameId", typeof NameId], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
349
+ readonly 1: readonly [readonly ["tag", {
350
+ serialize(value: number): Buffer;
351
+ deserialize(value: Buffer): number;
352
+ }], readonly ["VSN", {
353
+ serialize(value: number): Buffer;
354
+ deserialize(value: Buffer): number;
355
+ }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
356
+ serialize(value: number): Buffer;
357
+ deserialize(value: Buffer): number;
358
+ }], readonly ["nameId", {
359
+ serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
360
+ deserialize(value: Buffer): `nm_${string}`;
361
+ }], readonly ["fee", {
362
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
363
+ txType: Tag;
364
+ rebuildTx: (params: any) => any;
365
+ _computingMinFee?: string | undefined;
366
+ }): string;
367
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
368
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
369
+ deserialize(value: Buffer): string;
370
+ }], readonly ["ttl", {
371
+ serialize(value: number): Buffer;
372
+ deserialize(value: Buffer): number;
373
+ }]];
227
374
  };
228
375
  readonly 40: {
229
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["owner", FIELD_TYPES.id, "ak"], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, "cb"], readonly ["log", FIELD_TYPES.binary, "cb"], readonly ["active", FIELD_TYPES.bool], readonly ["referers", FIELD_TYPES.ids, "ak"], readonly ["deposit", typeof Deposit]];
376
+ readonly 1: readonly [readonly ["tag", {
377
+ serialize(value: number): Buffer;
378
+ deserialize(value: Buffer): number;
379
+ }], readonly ["VSN", {
380
+ serialize(value: number): Buffer;
381
+ deserialize(value: Buffer): number;
382
+ }], readonly ["owner", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["log", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["active", FIELD_TYPES.bool], readonly ["referers", FIELD_TYPES.ids, Encoded.Encoding.AccountAddress], readonly ["deposit", {
383
+ serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
384
+ serializeAettos(value: string | undefined): string;
385
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
386
+ deserialize(value: Buffer): string;
387
+ }]];
230
388
  };
231
389
  readonly 42: {
232
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["ownerId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["code", FIELD_TYPES.binary, "cb"], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["deposit", typeof Deposit], readonly ["amount", FIELD_TYPES.amount], readonly ["gasLimit", FIELD_TYPES.shortInt], readonly ["gasPrice", typeof GasPrice], readonly ["callData", FIELD_TYPES.binary, "cb"]];
390
+ readonly 1: readonly [readonly ["tag", {
391
+ serialize(value: number): Buffer;
392
+ deserialize(value: Buffer): number;
393
+ }], readonly ["VSN", {
394
+ serialize(value: number): Buffer;
395
+ deserialize(value: Buffer): number;
396
+ }], readonly ["ownerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
397
+ serialize(value: number): Buffer;
398
+ deserialize(value: Buffer): number;
399
+ }], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
400
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
401
+ txType: Tag;
402
+ rebuildTx: (params: any) => any;
403
+ _computingMinFee?: string | undefined;
404
+ }): string;
405
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
406
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
407
+ deserialize(value: Buffer): string;
408
+ }], readonly ["ttl", {
409
+ serialize(value: number): Buffer;
410
+ deserialize(value: Buffer): number;
411
+ }], readonly ["deposit", {
412
+ serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
413
+ serializeAettos(value: string | undefined): string;
414
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
415
+ deserialize(value: Buffer): string;
416
+ }], readonly ["amount", {
417
+ serializeAettos(value: string | undefined): string;
418
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
419
+ serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
420
+ deserialize(value: Buffer): string;
421
+ }], readonly ["gasLimit", {
422
+ serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
423
+ txType: Tag;
424
+ rebuildTx: (params: any) => any;
425
+ gasMax: number;
426
+ _computingGasLimit?: number | undefined;
427
+ }): Buffer;
428
+ deserialize(value: Buffer): number;
429
+ }], readonly ["gasPrice", {
430
+ serializeAettos(value?: string | undefined): string;
431
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
432
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
433
+ deserialize(value: Buffer): string;
434
+ }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
233
435
  };
234
436
  readonly 43: {
235
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["callerId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["contractId", FIELD_TYPES.id, readonly ["ct", "nm"]], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["amount", FIELD_TYPES.amount], readonly ["gasLimit", FIELD_TYPES.shortInt], readonly ["gasPrice", typeof GasPrice], readonly ["callData", FIELD_TYPES.binary, "cb"]];
437
+ readonly 1: readonly [readonly ["tag", {
438
+ serialize(value: number): Buffer;
439
+ deserialize(value: Buffer): number;
440
+ }], readonly ["VSN", {
441
+ serialize(value: number): Buffer;
442
+ deserialize(value: Buffer): number;
443
+ }], readonly ["callerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
444
+ serialize(value: number): Buffer;
445
+ deserialize(value: Buffer): number;
446
+ }], readonly ["contractId", FIELD_TYPES.id, readonly [Encoded.Encoding.ContractAddress, Encoded.Encoding.Name]], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", {
447
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
448
+ txType: Tag;
449
+ rebuildTx: (params: any) => any;
450
+ _computingMinFee?: string | undefined;
451
+ }): string;
452
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
453
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
454
+ deserialize(value: Buffer): string;
455
+ }], readonly ["ttl", {
456
+ serialize(value: number): Buffer;
457
+ deserialize(value: Buffer): number;
458
+ }], readonly ["amount", {
459
+ serializeAettos(value: string | undefined): string;
460
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
461
+ serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
462
+ deserialize(value: Buffer): string;
463
+ }], readonly ["gasLimit", {
464
+ serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
465
+ txType: Tag;
466
+ rebuildTx: (params: any) => any;
467
+ gasMax: number;
468
+ _computingGasLimit?: number | undefined;
469
+ }): Buffer;
470
+ deserialize(value: Buffer): number;
471
+ }], readonly ["gasPrice", {
472
+ serializeAettos(value?: string | undefined): string;
473
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
474
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
475
+ deserialize(value: Buffer): string;
476
+ }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
236
477
  };
237
478
  readonly 41: {
238
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["callerId", FIELD_TYPES.id, "ak"], readonly ["callerNonce", FIELD_TYPES.shortInt], readonly ["height", FIELD_TYPES.shortInt], readonly ["contractId", FIELD_TYPES.id, "ct"], readonly ["gasPrice", typeof GasPrice], readonly ["gasUsed", FIELD_TYPES.shortInt], readonly ["returnValue", FIELD_TYPES.binary, "cb"], readonly ["returnType", FIELD_TYPES.callReturnType], readonly ["log", FIELD_TYPES.rawBinary]];
479
+ readonly 1: readonly [readonly ["tag", {
480
+ serialize(value: number): Buffer;
481
+ deserialize(value: Buffer): number;
482
+ }], readonly ["VSN", {
483
+ serialize(value: number): Buffer;
484
+ deserialize(value: Buffer): number;
485
+ }], readonly ["callerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["callerNonce", {
486
+ serialize(value: number): Buffer;
487
+ deserialize(value: Buffer): number;
488
+ }], readonly ["height", {
489
+ serialize(value: number): Buffer;
490
+ deserialize(value: Buffer): number;
491
+ }], readonly ["contractId", FIELD_TYPES.id, Encoded.Encoding.ContractAddress], readonly ["gasPrice", {
492
+ serializeAettos(value?: string | undefined): string;
493
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
494
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
495
+ deserialize(value: Buffer): string;
496
+ }], readonly ["gasUsed", {
497
+ serialize(value: number): Buffer;
498
+ deserialize(value: Buffer): number;
499
+ }], readonly ["returnValue", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["returnType", FIELD_TYPES.callReturnType], readonly ["log", FIELD_TYPES.rawBinary]];
239
500
  };
240
501
  readonly 22: {
241
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["accountId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["queryFormat", FIELD_TYPES.string], readonly ["responseFormat", FIELD_TYPES.string], readonly ["queryFee", FIELD_TYPES.amount], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["abiVersion", FIELD_TYPES.abiVersion]];
502
+ readonly 1: readonly [readonly ["tag", {
503
+ serialize(value: number): Buffer;
504
+ deserialize(value: Buffer): number;
505
+ }], readonly ["VSN", {
506
+ serialize(value: number): Buffer;
507
+ deserialize(value: Buffer): number;
508
+ }], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
509
+ serialize(value: number): Buffer;
510
+ deserialize(value: Buffer): number;
511
+ }], readonly ["queryFormat", FIELD_TYPES.string], readonly ["responseFormat", FIELD_TYPES.string], readonly ["queryFee", {
512
+ serializeAettos(value: string | undefined): string;
513
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
514
+ serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
515
+ deserialize(value: Buffer): string;
516
+ }], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", {
517
+ serialize(value: number): Buffer;
518
+ deserialize(value: Buffer): number;
519
+ }], readonly ["fee", {
520
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
521
+ txType: Tag;
522
+ rebuildTx: (params: any) => any;
523
+ _computingMinFee?: string | undefined;
524
+ }): string;
525
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
526
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
527
+ deserialize(value: Buffer): string;
528
+ }], readonly ["ttl", {
529
+ serialize(value: number): Buffer;
530
+ deserialize(value: Buffer): number;
531
+ }], readonly ["abiVersion", FIELD_TYPES.abiVersion]];
242
532
  };
243
533
  readonly 25: {
244
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["oracleId", FIELD_TYPES.id, readonly ["ok", "nm"]], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
534
+ readonly 1: readonly [readonly ["tag", {
535
+ serialize(value: number): Buffer;
536
+ deserialize(value: Buffer): number;
537
+ }], readonly ["VSN", {
538
+ serialize(value: number): Buffer;
539
+ deserialize(value: Buffer): number;
540
+ }], readonly ["oracleId", FIELD_TYPES.id, readonly [Encoded.Encoding.OracleAddress, Encoded.Encoding.Name]], readonly ["nonce", {
541
+ serialize(value: number): Buffer;
542
+ deserialize(value: Buffer): number;
543
+ }], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", {
544
+ serialize(value: number): Buffer;
545
+ deserialize(value: Buffer): number;
546
+ }], readonly ["fee", {
547
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
548
+ txType: Tag;
549
+ rebuildTx: (params: any) => any;
550
+ _computingMinFee?: string | undefined;
551
+ }): string;
552
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
553
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
554
+ deserialize(value: Buffer): string;
555
+ }], readonly ["ttl", {
556
+ serialize(value: number): Buffer;
557
+ deserialize(value: Buffer): number;
558
+ }]];
245
559
  };
246
560
  readonly 23: {
247
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["senderId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["oracleId", FIELD_TYPES.id, readonly ["ok", "nm"]], readonly ["query", FIELD_TYPES.string], readonly ["queryFee", FIELD_TYPES.amount], readonly ["queryTtlType", FIELD_TYPES.ttlType], readonly ["queryTtlValue", FIELD_TYPES.shortInt], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
561
+ readonly 1: readonly [readonly ["tag", {
562
+ serialize(value: number): Buffer;
563
+ deserialize(value: Buffer): number;
564
+ }], readonly ["VSN", {
565
+ serialize(value: number): Buffer;
566
+ deserialize(value: Buffer): number;
567
+ }], readonly ["senderId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
568
+ serialize(value: number): Buffer;
569
+ deserialize(value: Buffer): number;
570
+ }], readonly ["oracleId", FIELD_TYPES.id, readonly [Encoded.Encoding.OracleAddress, Encoded.Encoding.Name]], readonly ["query", FIELD_TYPES.string], readonly ["queryFee", {
571
+ serializeAettos(value: string | undefined): string;
572
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
573
+ serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
574
+ deserialize(value: Buffer): string;
575
+ }], readonly ["queryTtlType", FIELD_TYPES.ttlType], readonly ["queryTtlValue", {
576
+ serialize(value: number): Buffer;
577
+ deserialize(value: Buffer): number;
578
+ }], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", {
579
+ serialize(value: number): Buffer;
580
+ deserialize(value: Buffer): number;
581
+ }], readonly ["fee", {
582
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
583
+ txType: Tag;
584
+ rebuildTx: (params: any) => any;
585
+ _computingMinFee?: string | undefined;
586
+ }): string;
587
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
588
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
589
+ deserialize(value: Buffer): string;
590
+ }], readonly ["ttl", {
591
+ serialize(value: number): Buffer;
592
+ deserialize(value: Buffer): number;
593
+ }]];
248
594
  };
249
595
  readonly 24: {
250
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["oracleId", FIELD_TYPES.id, "ok"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["queryId", FIELD_TYPES.binary, "oq"], readonly ["response", FIELD_TYPES.string], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt]];
596
+ readonly 1: readonly [readonly ["tag", {
597
+ serialize(value: number): Buffer;
598
+ deserialize(value: Buffer): number;
599
+ }], readonly ["VSN", {
600
+ serialize(value: number): Buffer;
601
+ deserialize(value: Buffer): number;
602
+ }], readonly ["oracleId", FIELD_TYPES.id, Encoded.Encoding.OracleAddress], readonly ["nonce", {
603
+ serialize(value: number): Buffer;
604
+ deserialize(value: Buffer): number;
605
+ }], readonly ["queryId", FIELD_TYPES.binary, Encoded.Encoding.OracleQueryId], readonly ["response", FIELD_TYPES.string], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", {
606
+ serialize(value: number): Buffer;
607
+ deserialize(value: Buffer): number;
608
+ }], readonly ["fee", {
609
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
610
+ txType: Tag;
611
+ rebuildTx: (params: any) => any;
612
+ _computingMinFee?: string | undefined;
613
+ }): string;
614
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
615
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
616
+ deserialize(value: Buffer): string;
617
+ }], readonly ["ttl", {
618
+ serialize(value: number): Buffer;
619
+ deserialize(value: Buffer): number;
620
+ }]];
251
621
  };
252
622
  readonly 50: {
253
- readonly 2: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["initiator", FIELD_TYPES.id, "ak"], readonly ["initiatorAmount", FIELD_TYPES.int], readonly ["responder", FIELD_TYPES.id, "ak"], readonly ["responderAmount", FIELD_TYPES.int], readonly ["channelReserve", FIELD_TYPES.int], readonly ["lockPeriod", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["initiatorDelegateIds", FIELD_TYPES.string], readonly ["responderDelegateIds", FIELD_TYPES.string], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["nonce", FIELD_TYPES.shortInt]];
623
+ readonly 2: readonly [readonly ["tag", {
624
+ serialize(value: number): Buffer;
625
+ deserialize(value: Buffer): number;
626
+ }], readonly ["VSN", {
627
+ serialize(value: number): Buffer;
628
+ deserialize(value: Buffer): number;
629
+ }], readonly ["initiator", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmount", {
630
+ serialize(value: import("./field-types/u-int").Int): Buffer;
631
+ deserialize(value: Buffer): string;
632
+ }], readonly ["responder", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["responderAmount", {
633
+ serialize(value: import("./field-types/u-int").Int): Buffer;
634
+ deserialize(value: Buffer): string;
635
+ }], readonly ["channelReserve", {
636
+ serialize(value: import("./field-types/u-int").Int): Buffer;
637
+ deserialize(value: Buffer): string;
638
+ }], readonly ["lockPeriod", {
639
+ serialize(value: import("./field-types/u-int").Int): Buffer;
640
+ deserialize(value: Buffer): string;
641
+ }], readonly ["ttl", {
642
+ serialize(value: number): Buffer;
643
+ deserialize(value: Buffer): number;
644
+ }], readonly ["fee", {
645
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
646
+ txType: Tag;
647
+ rebuildTx: (params: any) => any;
648
+ _computingMinFee?: string | undefined;
649
+ }): string;
650
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
651
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
652
+ deserialize(value: Buffer): string;
653
+ }], readonly ["initiatorDelegateIds", FIELD_TYPES.string], readonly ["responderDelegateIds", FIELD_TYPES.string], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["nonce", {
654
+ serialize(value: number): Buffer;
655
+ deserialize(value: Buffer): number;
656
+ }]];
254
657
  };
255
658
  readonly 53: {
256
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["fromId", FIELD_TYPES.id, "ak"], readonly ["initiatorAmountFinal", FIELD_TYPES.int], readonly ["responderAmountFinal", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
659
+ readonly 1: readonly [readonly ["tag", {
660
+ serialize(value: number): Buffer;
661
+ deserialize(value: Buffer): number;
662
+ }], readonly ["VSN", {
663
+ serialize(value: number): Buffer;
664
+ deserialize(value: Buffer): number;
665
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmountFinal", {
666
+ serialize(value: import("./field-types/u-int").Int): Buffer;
667
+ deserialize(value: Buffer): string;
668
+ }], readonly ["responderAmountFinal", {
669
+ serialize(value: import("./field-types/u-int").Int): Buffer;
670
+ deserialize(value: Buffer): string;
671
+ }], readonly ["ttl", {
672
+ serialize(value: number): Buffer;
673
+ deserialize(value: Buffer): number;
674
+ }], readonly ["fee", {
675
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
676
+ txType: Tag;
677
+ rebuildTx: (params: any) => any;
678
+ _computingMinFee?: string | undefined;
679
+ }): string;
680
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
681
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
682
+ deserialize(value: Buffer): string;
683
+ }], readonly ["nonce", {
684
+ serialize(value: number): Buffer;
685
+ deserialize(value: Buffer): number;
686
+ }]];
257
687
  };
258
688
  readonly 54: {
259
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["fromId", FIELD_TYPES.id, "ak"], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
689
+ readonly 1: readonly [readonly ["tag", {
690
+ serialize(value: number): Buffer;
691
+ deserialize(value: Buffer): number;
692
+ }], readonly ["VSN", {
693
+ serialize(value: number): Buffer;
694
+ deserialize(value: Buffer): number;
695
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", {
696
+ serialize(value: number): Buffer;
697
+ deserialize(value: Buffer): number;
698
+ }], readonly ["fee", {
699
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
700
+ txType: Tag;
701
+ rebuildTx: (params: any) => any;
702
+ _computingMinFee?: string | undefined;
703
+ }): string;
704
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
705
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
706
+ deserialize(value: Buffer): string;
707
+ }], readonly ["nonce", {
708
+ serialize(value: number): Buffer;
709
+ deserialize(value: Buffer): number;
710
+ }]];
260
711
  };
261
712
  readonly 55: {
262
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["fromId", FIELD_TYPES.id, "ak"], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
713
+ readonly 1: readonly [readonly ["tag", {
714
+ serialize(value: number): Buffer;
715
+ deserialize(value: Buffer): number;
716
+ }], readonly ["VSN", {
717
+ serialize(value: number): Buffer;
718
+ deserialize(value: Buffer): number;
719
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", {
720
+ serialize(value: number): Buffer;
721
+ deserialize(value: Buffer): number;
722
+ }], readonly ["fee", {
723
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
724
+ txType: Tag;
725
+ rebuildTx: (params: any) => any;
726
+ _computingMinFee?: string | undefined;
727
+ }): string;
728
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
729
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
730
+ deserialize(value: Buffer): string;
731
+ }], readonly ["nonce", {
732
+ serialize(value: number): Buffer;
733
+ deserialize(value: Buffer): number;
734
+ }]];
263
735
  };
264
736
  readonly 51: {
265
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["fromId", FIELD_TYPES.id, "ak"], readonly ["amount", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
737
+ readonly 1: readonly [readonly ["tag", {
738
+ serialize(value: number): Buffer;
739
+ deserialize(value: Buffer): number;
740
+ }], readonly ["VSN", {
741
+ serialize(value: number): Buffer;
742
+ deserialize(value: Buffer): number;
743
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
744
+ serialize(value: import("./field-types/u-int").Int): Buffer;
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
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
757
+ deserialize(value: Buffer): string;
758
+ }], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", {
759
+ serialize(value: number): Buffer;
760
+ deserialize(value: Buffer): number;
761
+ }], readonly ["nonce", {
762
+ serialize(value: number): Buffer;
763
+ deserialize(value: Buffer): number;
764
+ }]];
266
765
  };
267
766
  readonly 52: {
268
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["toId", FIELD_TYPES.id, "ak"], readonly ["amount", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
767
+ readonly 1: readonly [readonly ["tag", {
768
+ serialize(value: number): Buffer;
769
+ deserialize(value: Buffer): number;
770
+ }], readonly ["VSN", {
771
+ serialize(value: number): Buffer;
772
+ deserialize(value: Buffer): number;
773
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["toId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
774
+ serialize(value: import("./field-types/u-int").Int): Buffer;
775
+ deserialize(value: Buffer): string;
776
+ }], readonly ["ttl", {
777
+ serialize(value: number): Buffer;
778
+ deserialize(value: Buffer): number;
779
+ }], readonly ["fee", {
780
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
781
+ txType: Tag;
782
+ rebuildTx: (params: any) => any;
783
+ _computingMinFee?: string | undefined;
784
+ }): string;
785
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
786
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
787
+ deserialize(value: Buffer): string;
788
+ }], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", {
789
+ serialize(value: number): Buffer;
790
+ deserialize(value: Buffer): number;
791
+ }], readonly ["nonce", {
792
+ serialize(value: number): Buffer;
793
+ deserialize(value: Buffer): number;
794
+ }]];
269
795
  };
270
796
  readonly 56: {
271
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["fromId", FIELD_TYPES.id, "ak"], readonly ["initiatorAmountFinal", FIELD_TYPES.int], readonly ["responderAmountFinal", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
797
+ readonly 1: readonly [readonly ["tag", {
798
+ serialize(value: number): Buffer;
799
+ deserialize(value: Buffer): number;
800
+ }], readonly ["VSN", {
801
+ serialize(value: number): Buffer;
802
+ deserialize(value: Buffer): number;
803
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmountFinal", {
804
+ serialize(value: import("./field-types/u-int").Int): Buffer;
805
+ deserialize(value: Buffer): string;
806
+ }], readonly ["responderAmountFinal", {
807
+ serialize(value: import("./field-types/u-int").Int): Buffer;
808
+ deserialize(value: Buffer): string;
809
+ }], readonly ["ttl", {
810
+ serialize(value: number): Buffer;
811
+ deserialize(value: Buffer): number;
812
+ }], readonly ["fee", {
813
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
814
+ txType: Tag;
815
+ rebuildTx: (params: any) => any;
816
+ _computingMinFee?: string | undefined;
817
+ }): string;
818
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
819
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
820
+ deserialize(value: Buffer): string;
821
+ }], readonly ["nonce", {
822
+ serialize(value: number): Buffer;
823
+ deserialize(value: Buffer): number;
824
+ }]];
272
825
  };
273
826
  readonly 521: {
274
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["fromId", FIELD_TYPES.id, "ak"], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["round", FIELD_TYPES.int], readonly ["update", FIELD_TYPES.binary, "cb"], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["offChainTrees", FIELD_TYPES.stateTree], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
827
+ readonly 1: readonly [readonly ["tag", {
828
+ serialize(value: number): Buffer;
829
+ deserialize(value: Buffer): number;
830
+ }], readonly ["VSN", {
831
+ serialize(value: number): Buffer;
832
+ deserialize(value: Buffer): number;
833
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["round", {
834
+ serialize(value: number): Buffer;
835
+ deserialize(value: Buffer): number;
836
+ }], readonly ["update", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["offChainTrees", FIELD_TYPES.stateTree], readonly ["ttl", {
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
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
847
+ deserialize(value: Buffer): string;
848
+ }], readonly ["nonce", {
849
+ serialize(value: number): Buffer;
850
+ deserialize(value: Buffer): number;
851
+ }]];
275
852
  };
276
853
  readonly 57: {
277
- readonly 2: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["round", FIELD_TYPES.int], readonly ["stateHash", FIELD_TYPES.binary, "st"]];
854
+ readonly 2: readonly [readonly ["tag", {
855
+ serialize(value: number): Buffer;
856
+ deserialize(value: Buffer): number;
857
+ }], readonly ["VSN", {
858
+ serialize(value: number): Buffer;
859
+ deserialize(value: Buffer): number;
860
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["round", {
861
+ serialize(value: number): Buffer;
862
+ deserialize(value: Buffer): number;
863
+ }], readonly ["stateHash", FIELD_TYPES.binary, "st"]];
278
864
  };
279
865
  readonly 58: {
280
- readonly 3: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["initiator", FIELD_TYPES.id, "ak"], readonly ["responder", FIELD_TYPES.id, "ak"], readonly ["channelAmount", FIELD_TYPES.int], readonly ["initiatorAmount", FIELD_TYPES.int], readonly ["responderAmount", FIELD_TYPES.int], readonly ["channelReserve", FIELD_TYPES.int], readonly ["initiatorDelegateIds", FIELD_TYPES.ids], readonly ["responderDelegateIds", FIELD_TYPES.ids], readonly ["stateHash", FIELD_TYPES.hex], readonly ["round", FIELD_TYPES.int], readonly ["soloRound", FIELD_TYPES.int], readonly ["lockPeriod", FIELD_TYPES.int], readonly ["lockedUntil", FIELD_TYPES.int], readonly ["initiatorAuth", FIELD_TYPES.binary, "cb"], readonly ["responderAuth", FIELD_TYPES.binary, "cb"]];
866
+ readonly 3: readonly [readonly ["tag", {
867
+ serialize(value: number): Buffer;
868
+ deserialize(value: Buffer): number;
869
+ }], readonly ["VSN", {
870
+ serialize(value: number): Buffer;
871
+ deserialize(value: Buffer): number;
872
+ }], readonly ["initiator", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["responder", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["channelAmount", {
873
+ serialize(value: import("./field-types/u-int").Int): Buffer;
874
+ deserialize(value: Buffer): string;
875
+ }], readonly ["initiatorAmount", {
876
+ serialize(value: import("./field-types/u-int").Int): Buffer;
877
+ deserialize(value: Buffer): string;
878
+ }], readonly ["responderAmount", {
879
+ serialize(value: import("./field-types/u-int").Int): Buffer;
880
+ deserialize(value: Buffer): string;
881
+ }], readonly ["channelReserve", {
882
+ serialize(value: import("./field-types/u-int").Int): Buffer;
883
+ deserialize(value: Buffer): string;
884
+ }], readonly ["initiatorDelegateIds", FIELD_TYPES.ids], readonly ["responderDelegateIds", FIELD_TYPES.ids], readonly ["stateHash", FIELD_TYPES.hex], readonly ["round", {
885
+ serialize(value: number): Buffer;
886
+ deserialize(value: Buffer): number;
887
+ }], readonly ["soloRound", {
888
+ serialize(value: import("./field-types/u-int").Int): Buffer;
889
+ deserialize(value: Buffer): string;
890
+ }], readonly ["lockPeriod", {
891
+ serialize(value: import("./field-types/u-int").Int): Buffer;
892
+ deserialize(value: Buffer): string;
893
+ }], readonly ["lockedUntil", {
894
+ serialize(value: import("./field-types/u-int").Int): Buffer;
895
+ deserialize(value: Buffer): string;
896
+ }], readonly ["initiatorAuth", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["responderAuth", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
281
897
  };
282
898
  readonly 59: {
283
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["fromId", FIELD_TYPES.id, "ak"], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["nonce", FIELD_TYPES.shortInt]];
899
+ readonly 1: readonly [readonly ["tag", {
900
+ serialize(value: number): Buffer;
901
+ deserialize(value: Buffer): number;
902
+ }], readonly ["VSN", {
903
+ serialize(value: number): Buffer;
904
+ deserialize(value: Buffer): number;
905
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["ttl", {
906
+ serialize(value: number): Buffer;
907
+ deserialize(value: Buffer): number;
908
+ }], readonly ["fee", {
909
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
910
+ txType: Tag;
911
+ rebuildTx: (params: any) => any;
912
+ _computingMinFee?: string | undefined;
913
+ }): string;
914
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
915
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
916
+ deserialize(value: Buffer): string;
917
+ }], readonly ["nonce", {
918
+ serialize(value: number): Buffer;
919
+ deserialize(value: Buffer): number;
920
+ }]];
284
921
  };
285
922
  readonly 570: {
286
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["from", FIELD_TYPES.id, "ak"], readonly ["to", FIELD_TYPES.id, "ak"], readonly ["amount", FIELD_TYPES.int]];
923
+ readonly 1: readonly [readonly ["tag", {
924
+ serialize(value: number): Buffer;
925
+ deserialize(value: Buffer): number;
926
+ }], readonly ["VSN", {
927
+ serialize(value: number): Buffer;
928
+ deserialize(value: Buffer): number;
929
+ }], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["to", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
930
+ serialize(value: import("./field-types/u-int").Int): Buffer;
931
+ deserialize(value: Buffer): string;
932
+ }]];
287
933
  };
288
934
  readonly 571: {
289
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["from", FIELD_TYPES.id, "ak"], readonly ["amount", FIELD_TYPES.int]];
935
+ readonly 1: readonly [readonly ["tag", {
936
+ serialize(value: number): Buffer;
937
+ deserialize(value: Buffer): number;
938
+ }], readonly ["VSN", {
939
+ serialize(value: number): Buffer;
940
+ deserialize(value: Buffer): number;
941
+ }], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
942
+ serialize(value: import("./field-types/u-int").Int): Buffer;
943
+ deserialize(value: Buffer): string;
944
+ }]];
290
945
  };
291
946
  readonly 572: {
292
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["from", FIELD_TYPES.id, "ak"], readonly ["amount", FIELD_TYPES.int]];
947
+ readonly 1: readonly [readonly ["tag", {
948
+ serialize(value: number): Buffer;
949
+ deserialize(value: Buffer): number;
950
+ }], readonly ["VSN", {
951
+ serialize(value: number): Buffer;
952
+ deserialize(value: Buffer): number;
953
+ }], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
954
+ serialize(value: import("./field-types/u-int").Int): Buffer;
955
+ deserialize(value: Buffer): string;
956
+ }]];
293
957
  };
294
958
  readonly 573: {
295
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["owner", FIELD_TYPES.id, "ak"], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, "cb"], readonly ["deposit", FIELD_TYPES.int], readonly ["callData", FIELD_TYPES.binary, "cb"]];
959
+ readonly 1: readonly [readonly ["tag", {
960
+ serialize(value: number): Buffer;
961
+ deserialize(value: Buffer): number;
962
+ }], readonly ["VSN", {
963
+ serialize(value: number): Buffer;
964
+ deserialize(value: Buffer): number;
965
+ }], readonly ["owner", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["deposit", {
966
+ serialize(value: import("./field-types/u-int").Int): Buffer;
967
+ deserialize(value: Buffer): string;
968
+ }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
296
969
  };
297
970
  readonly 574: {
298
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["caller", FIELD_TYPES.id, "ak"], readonly ["contract", FIELD_TYPES.id, "ct"], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["amount", FIELD_TYPES.int], readonly ["callData", FIELD_TYPES.binary, "cb"], readonly ["callStack", FIELD_TYPES.callStack], readonly ["gasPrice", typeof GasPrice], readonly ["gasLimit", FIELD_TYPES.shortInt]];
971
+ readonly 1: readonly [readonly ["tag", {
972
+ serialize(value: number): Buffer;
973
+ deserialize(value: Buffer): number;
974
+ }], readonly ["VSN", {
975
+ serialize(value: number): Buffer;
976
+ deserialize(value: Buffer): number;
977
+ }], readonly ["caller", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["contract", FIELD_TYPES.id, Encoded.Encoding.ContractAddress], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["amount", {
978
+ serialize(value: import("./field-types/u-int").Int): Buffer;
979
+ deserialize(value: Buffer): string;
980
+ }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["callStack", FIELD_TYPES.callStack], readonly ["gasPrice", {
981
+ serializeAettos(value?: string | undefined): string;
982
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
983
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
984
+ deserialize(value: Buffer): string;
985
+ }], readonly ["gasLimit", {
986
+ serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
987
+ txType: Tag;
988
+ rebuildTx: (params: any) => any;
989
+ gasMax: number;
990
+ _computingGasLimit?: number | undefined;
991
+ }): Buffer;
992
+ deserialize(value: Buffer): number;
993
+ }]];
299
994
  };
300
995
  readonly 575: {
301
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channelId", FIELD_TYPES.id, "ch"], readonly ["round", FIELD_TYPES.int], readonly ["role", FIELD_TYPES.string], readonly ["pubkey", FIELD_TYPES.id, "ak"]];
996
+ readonly 1: readonly [readonly ["tag", {
997
+ serialize(value: number): Buffer;
998
+ deserialize(value: Buffer): number;
999
+ }], readonly ["VSN", {
1000
+ serialize(value: number): Buffer;
1001
+ deserialize(value: Buffer): number;
1002
+ }], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["round", {
1003
+ serialize(value: number): Buffer;
1004
+ deserialize(value: Buffer): number;
1005
+ }], readonly ["role", FIELD_TYPES.string], readonly ["pubkey", FIELD_TYPES.id, Encoded.Encoding.AccountAddress]];
302
1006
  };
303
1007
  readonly 60: {
304
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], 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]];
1008
+ readonly 1: readonly [readonly ["tag", {
1009
+ serialize(value: number): Buffer;
1010
+ deserialize(value: Buffer): number;
1011
+ }], readonly ["VSN", {
1012
+ serialize(value: number): Buffer;
1013
+ deserialize(value: Buffer): number;
1014
+ }], readonly ["accounts", FIELD_TYPES.mptrees], readonly ["calls", FIELD_TYPES.mptrees], readonly ["channels", FIELD_TYPES.mptrees], readonly ["contracts", FIELD_TYPES.mptrees], readonly ["ns", FIELD_TYPES.mptrees], readonly ["oracles", FIELD_TYPES.mptrees]];
305
1015
  };
306
1016
  readonly 62: {
307
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], 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]];
1017
+ readonly 1: readonly [readonly ["tag", {
1018
+ serialize(value: number): Buffer;
1019
+ deserialize(value: Buffer): number;
1020
+ }], readonly ["VSN", {
1021
+ serialize(value: number): Buffer;
1022
+ deserialize(value: Buffer): number;
1023
+ }], readonly ["contracts", FIELD_TYPES.rlpBinary], readonly ["calls", FIELD_TYPES.rlpBinary], readonly ["channels", FIELD_TYPES.rlpBinary], readonly ["ns", FIELD_TYPES.rlpBinary], readonly ["oracles", FIELD_TYPES.rlpBinary], readonly ["accounts", FIELD_TYPES.rlpBinary]];
308
1024
  };
309
1025
  readonly 63: {
310
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["values", FIELD_TYPES.rlpBinaries]];
1026
+ readonly 1: readonly [readonly ["tag", {
1027
+ serialize(value: number): Buffer;
1028
+ deserialize(value: Buffer): number;
1029
+ }], readonly ["VSN", {
1030
+ serialize(value: number): Buffer;
1031
+ deserialize(value: Buffer): number;
1032
+ }], readonly ["values", FIELD_TYPES.rlpBinaries]];
311
1033
  };
312
1034
  readonly 64: {
313
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["key", FIELD_TYPES.hex], readonly ["value", FIELD_TYPES.rawBinary]];
1035
+ readonly 1: readonly [readonly ["tag", {
1036
+ serialize(value: number): Buffer;
1037
+ deserialize(value: Buffer): number;
1038
+ }], readonly ["VSN", {
1039
+ serialize(value: number): Buffer;
1040
+ deserialize(value: Buffer): number;
1041
+ }], readonly ["key", FIELD_TYPES.hex], readonly ["value", FIELD_TYPES.rawBinary]];
314
1042
  };
315
1043
  readonly 621: {
316
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["contracts", FIELD_TYPES.rlpBinary]];
1044
+ readonly 1: readonly [readonly ["tag", {
1045
+ serialize(value: number): Buffer;
1046
+ deserialize(value: Buffer): number;
1047
+ }], readonly ["VSN", {
1048
+ serialize(value: number): Buffer;
1049
+ deserialize(value: Buffer): number;
1050
+ }], readonly ["contracts", FIELD_TYPES.rlpBinary]];
317
1051
  };
318
1052
  readonly 622: {
319
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["calls", FIELD_TYPES.rlpBinary]];
1053
+ readonly 1: readonly [readonly ["tag", {
1054
+ serialize(value: number): Buffer;
1055
+ deserialize(value: Buffer): number;
1056
+ }], readonly ["VSN", {
1057
+ serialize(value: number): Buffer;
1058
+ deserialize(value: Buffer): number;
1059
+ }], readonly ["calls", FIELD_TYPES.rlpBinary]];
320
1060
  };
321
1061
  readonly 623: {
322
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["channels", FIELD_TYPES.rlpBinary]];
1062
+ readonly 1: readonly [readonly ["tag", {
1063
+ serialize(value: number): Buffer;
1064
+ deserialize(value: Buffer): number;
1065
+ }], readonly ["VSN", {
1066
+ serialize(value: number): Buffer;
1067
+ deserialize(value: Buffer): number;
1068
+ }], readonly ["channels", FIELD_TYPES.rlpBinary]];
323
1069
  };
324
1070
  readonly 624: {
325
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["mtree", FIELD_TYPES.rlpBinary]];
1071
+ readonly 1: readonly [readonly ["tag", {
1072
+ serialize(value: number): Buffer;
1073
+ deserialize(value: Buffer): number;
1074
+ }], readonly ["VSN", {
1075
+ serialize(value: number): Buffer;
1076
+ deserialize(value: Buffer): number;
1077
+ }], readonly ["mtree", FIELD_TYPES.rlpBinary]];
326
1078
  };
327
1079
  readonly 625: {
328
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["otree", FIELD_TYPES.rlpBinary]];
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 ["otree", FIELD_TYPES.rlpBinary]];
329
1087
  };
330
1088
  readonly 626: {
331
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["accounts", FIELD_TYPES.rlpBinary]];
1089
+ readonly 1: readonly [readonly ["tag", {
1090
+ serialize(value: number): Buffer;
1091
+ deserialize(value: Buffer): number;
1092
+ }], readonly ["VSN", {
1093
+ serialize(value: number): Buffer;
1094
+ deserialize(value: Buffer): number;
1095
+ }], readonly ["accounts", FIELD_TYPES.rlpBinary]];
332
1096
  };
333
1097
  readonly 80: {
334
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["ownerId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["code", FIELD_TYPES.binary, "cb"], readonly ["authFun", FIELD_TYPES.rawBinary], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", FIELD_TYPES.int], readonly ["ttl", FIELD_TYPES.shortInt], readonly ["gasLimit", FIELD_TYPES.shortInt], readonly ["gasPrice", typeof GasPrice], readonly ["callData", FIELD_TYPES.binary, "cb"]];
1098
+ readonly 1: readonly [readonly ["tag", {
1099
+ serialize(value: number): Buffer;
1100
+ deserialize(value: Buffer): number;
1101
+ }], readonly ["VSN", {
1102
+ serialize(value: number): Buffer;
1103
+ deserialize(value: Buffer): number;
1104
+ }], readonly ["ownerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
1105
+ serialize(value: number): Buffer;
1106
+ deserialize(value: Buffer): number;
1107
+ }], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["authFun", FIELD_TYPES.rawBinary], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
1108
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1109
+ txType: Tag;
1110
+ rebuildTx: (params: any) => any;
1111
+ _computingMinFee?: string | undefined;
1112
+ }): string;
1113
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1114
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1115
+ deserialize(value: Buffer): string;
1116
+ }], readonly ["ttl", {
1117
+ serialize(value: number): Buffer;
1118
+ deserialize(value: Buffer): number;
1119
+ }], readonly ["gasLimit", {
1120
+ serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
1121
+ txType: Tag;
1122
+ rebuildTx: (params: any) => any;
1123
+ gasMax: number;
1124
+ _computingGasLimit?: number | undefined;
1125
+ }): Buffer;
1126
+ deserialize(value: Buffer): number;
1127
+ }], readonly ["gasPrice", {
1128
+ serializeAettos(value?: string | undefined): string;
1129
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1130
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1131
+ deserialize(value: Buffer): string;
1132
+ }], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
335
1133
  };
336
1134
  readonly 81: {
337
- readonly 2: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["gaId", FIELD_TYPES.id, "ak"], readonly ["authData", FIELD_TYPES.binary, "cb"], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", FIELD_TYPES.int], readonly ["gasLimit", FIELD_TYPES.shortInt], readonly ["gasPrice", typeof GasPrice], readonly ["tx", FIELD_TYPES.rlpBinary]];
1135
+ readonly 2: readonly [readonly ["tag", {
1136
+ serialize(value: number): Buffer;
1137
+ deserialize(value: Buffer): number;
1138
+ }], readonly ["VSN", {
1139
+ serialize(value: number): Buffer;
1140
+ deserialize(value: Buffer): number;
1141
+ }], readonly ["gaId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["authData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", {
1142
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1143
+ txType: Tag;
1144
+ rebuildTx: (params: any) => any;
1145
+ _computingMinFee?: string | undefined;
1146
+ }): string;
1147
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1148
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1149
+ deserialize(value: Buffer): string;
1150
+ }], readonly ["gasLimit", {
1151
+ serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
1152
+ txType: Tag;
1153
+ rebuildTx: (params: any) => any;
1154
+ gasMax: number;
1155
+ _computingGasLimit?: number | undefined;
1156
+ }): Buffer;
1157
+ deserialize(value: Buffer): number;
1158
+ }], readonly ["gasPrice", {
1159
+ serializeAettos(value?: string | undefined): string;
1160
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1161
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1162
+ deserialize(value: Buffer): string;
1163
+ }], readonly ["tx", FIELD_TYPES.rlpBinary]];
338
1164
  };
339
1165
  readonly 82: {
340
- readonly 1: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], readonly ["payerId", FIELD_TYPES.id, "ak"], readonly ["nonce", FIELD_TYPES.shortInt], readonly ["fee", FIELD_TYPES.int], readonly ["tx", FIELD_TYPES.rlpBinary]];
1166
+ readonly 1: readonly [readonly ["tag", {
1167
+ serialize(value: number): Buffer;
1168
+ deserialize(value: Buffer): number;
1169
+ }], readonly ["VSN", {
1170
+ serialize(value: number): Buffer;
1171
+ deserialize(value: Buffer): number;
1172
+ }], readonly ["payerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
1173
+ serialize(value: number): Buffer;
1174
+ deserialize(value: Buffer): number;
1175
+ }], readonly ["fee", {
1176
+ serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
1177
+ txType: Tag;
1178
+ rebuildTx: (params: any) => any;
1179
+ _computingMinFee?: string | undefined;
1180
+ }): string;
1181
+ serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
1182
+ serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
1183
+ deserialize(value: Buffer): string;
1184
+ }], readonly ["tx", FIELD_TYPES.rlpBinary]];
341
1185
  };
342
1186
  readonly 70: {
343
- readonly 3: readonly [readonly ["tag", FIELD_TYPES.shortInt], readonly ["VSN", FIELD_TYPES.shortInt], 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]];
1187
+ readonly 3: readonly [readonly ["tag", {
1188
+ serialize(value: number): Buffer;
1189
+ deserialize(value: Buffer): number;
1190
+ }], readonly ["VSN", {
1191
+ serialize(value: number): Buffer;
1192
+ deserialize(value: Buffer): number;
1193
+ }], readonly ["sourceCodeHash", FIELD_TYPES.rawBinary], readonly ["typeInfo", FIELD_TYPES.sophiaCodeTypeInfo], readonly ["byteCode", FIELD_TYPES.rawBinary], readonly ["compilerVersion", FIELD_TYPES.string], readonly ["payable", FIELD_TYPES.bool]];
344
1194
  };
345
1195
  };
346
1196
  export declare type TxTypeSchemas = {
347
- [key in TX_TYPE]: BuildTxArgBySchema<typeof TX_SCHEMA[key][keyof typeof TX_SCHEMA[key]]>;
1197
+ [key in Tag]: BuildTxArgBySchema<typeof TX_SCHEMA[key][keyof typeof TX_SCHEMA[key]]>;
348
1198
  };
349
- export declare type TxSchema = TxTypeSchemas[TX_TYPE];
1199
+ export declare type TxSchema = TxTypeSchemas[Tag];
350
1200
  export declare type TxParamsCommon = Partial<UnionToIntersection<TxSchema>>;
1201
+ export {};