@waves/node-api-js 1.2.10 → 1.3.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +2 -2
  2. package/cjs/api-node/activation/index.d.ts +21 -21
  3. package/cjs/api-node/activation/index.js +19 -19
  4. package/cjs/api-node/addresses/index.d.ts +81 -81
  5. package/cjs/api-node/addresses/index.js +173 -173
  6. package/cjs/api-node/addresses/index.js.map +1 -1
  7. package/cjs/api-node/alias/index.d.ts +6 -6
  8. package/cjs/api-node/alias/index.js +21 -21
  9. package/cjs/api-node/assets/index.d.ts +79 -79
  10. package/cjs/api-node/assets/index.js +171 -171
  11. package/cjs/api-node/blocks/index.d.ts +143 -131
  12. package/cjs/api-node/blocks/index.js +209 -209
  13. package/cjs/api-node/consensus/index.d.ts +39 -39
  14. package/cjs/api-node/consensus/index.js +36 -36
  15. package/cjs/api-node/debug/index.d.ts +189 -189
  16. package/cjs/api-node/debug/index.js +244 -244
  17. package/cjs/api-node/eth/index.d.ts +3 -3
  18. package/cjs/api-node/eth/index.js +14 -14
  19. package/cjs/api-node/leasing/index.d.ts +22 -22
  20. package/cjs/api-node/leasing/index.js +41 -41
  21. package/cjs/api-node/node/index.d.ts +11 -11
  22. package/cjs/api-node/node/index.js +19 -19
  23. package/cjs/api-node/peers/index.d.ts +46 -46
  24. package/cjs/api-node/peers/index.js +59 -59
  25. package/cjs/api-node/rewards/index.d.ts +21 -21
  26. package/cjs/api-node/rewards/index.js +20 -20
  27. package/cjs/api-node/transactions/index.d.ts +73 -73
  28. package/cjs/api-node/transactions/index.js +192 -192
  29. package/cjs/api-node/utils/index.d.ts +110 -99
  30. package/cjs/api-node/utils/index.js +210 -192
  31. package/cjs/api-node/utils/index.js.map +1 -1
  32. package/cjs/api-node/wallet/index.d.ts +5 -5
  33. package/cjs/api-node/wallet/index.js +6 -6
  34. package/cjs/constants.d.ts +40 -40
  35. package/cjs/constants.js +42 -42
  36. package/cjs/create.d.ts +1238 -1240
  37. package/cjs/create.js +115 -118
  38. package/cjs/create.js.map +1 -1
  39. package/cjs/index.d.ts +9 -9
  40. package/cjs/index.js +17 -17
  41. package/cjs/interface.d.ts +44 -44
  42. package/cjs/interface.js +9 -9
  43. package/cjs/tools/adresses/availableSponsoredBalances.d.ts +7 -7
  44. package/cjs/tools/adresses/availableSponsoredBalances.js +29 -29
  45. package/cjs/tools/adresses/ethAddress2waves.d.ts +1 -1
  46. package/cjs/tools/adresses/ethAddress2waves.js +46 -46
  47. package/cjs/tools/adresses/getAssetIdListByTx.d.ts +2 -2
  48. package/cjs/tools/adresses/getAssetIdListByTx.js +47 -47
  49. package/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -3
  50. package/cjs/tools/adresses/getAssetsByTransaction.js +13 -13
  51. package/cjs/tools/adresses/getTransactionsWithAssets.d.ts +6 -6
  52. package/cjs/tools/adresses/getTransactionsWithAssets.js +12 -12
  53. package/cjs/tools/adresses/watch.d.ts +24 -24
  54. package/cjs/tools/adresses/watch.js +167 -167
  55. package/cjs/tools/adresses/wavesAddress2eth.d.ts +1 -1
  56. package/cjs/tools/adresses/wavesAddress2eth.js +9 -9
  57. package/cjs/tools/assets/wavesAsset2eth.d.ts +1 -1
  58. package/cjs/tools/assets/wavesAsset2eth.js +9 -9
  59. package/cjs/tools/blocks/detectInterval.d.ts +1 -1
  60. package/cjs/tools/blocks/detectInterval.js +11 -11
  61. package/cjs/tools/blocks/getNetworkByte.d.ts +1 -1
  62. package/cjs/tools/blocks/getNetworkByte.js +53 -53
  63. package/cjs/tools/blocks/getNetworkCode.d.ts +1 -1
  64. package/cjs/tools/blocks/getNetworkCode.js +10 -10
  65. package/cjs/tools/blocks/waitHeight.d.ts +3 -3
  66. package/cjs/tools/blocks/waitHeight.js +64 -64
  67. package/cjs/tools/parse.d.ts +1 -1
  68. package/cjs/tools/parse.js +7 -7
  69. package/cjs/tools/query.d.ts +4 -4
  70. package/cjs/tools/query.js +40 -40
  71. package/cjs/tools/request.d.ts +64 -64
  72. package/cjs/tools/request.js +41 -41
  73. package/cjs/tools/resolve.d.ts +1 -1
  74. package/cjs/tools/resolve.js +6 -6
  75. package/cjs/tools/stringify.d.ts +1 -1
  76. package/cjs/tools/stringify.js +20 -20
  77. package/cjs/tools/transactions/broadcast.d.ts +14 -14
  78. package/cjs/tools/transactions/broadcast.js +59 -59
  79. package/cjs/tools/transactions/ethTxId2waves.d.ts +1 -1
  80. package/cjs/tools/transactions/ethTxId2waves.js +10 -10
  81. package/cjs/tools/transactions/wait.d.ts +10 -10
  82. package/cjs/tools/transactions/wait.js +41 -41
  83. package/cjs/tools/utils.d.ts +32 -32
  84. package/cjs/tools/utils.js +117 -117
  85. package/dist/node-api.js +2368 -2402
  86. package/dist/node-api.min.js +2 -2
  87. package/es/api-node/activation/index.d.ts +21 -21
  88. package/es/api-node/activation/index.js +12 -12
  89. package/es/api-node/addresses/index.d.ts +81 -81
  90. package/es/api-node/addresses/index.js +110 -110
  91. package/es/api-node/addresses/index.js.map +1 -1
  92. package/es/api-node/alias/index.d.ts +6 -6
  93. package/es/api-node/alias/index.js +13 -13
  94. package/es/api-node/assets/index.d.ts +79 -79
  95. package/es/api-node/assets/index.js +102 -102
  96. package/es/api-node/blocks/index.d.ts +143 -131
  97. package/es/api-node/blocks/index.js +178 -178
  98. package/es/api-node/consensus/index.d.ts +39 -39
  99. package/es/api-node/consensus/index.js +26 -26
  100. package/es/api-node/debug/index.d.ts +189 -189
  101. package/es/api-node/debug/index.js +200 -200
  102. package/es/api-node/eth/index.d.ts +3 -3
  103. package/es/api-node/eth/index.js +7 -7
  104. package/es/api-node/leasing/index.d.ts +22 -22
  105. package/es/api-node/leasing/index.js +21 -21
  106. package/es/api-node/node/index.d.ts +11 -11
  107. package/es/api-node/node/index.js +9 -9
  108. package/es/api-node/peers/index.d.ts +46 -46
  109. package/es/api-node/peers/index.js +45 -45
  110. package/es/api-node/rewards/index.d.ts +21 -21
  111. package/es/api-node/rewards/index.js +12 -12
  112. package/es/api-node/transactions/index.d.ts +73 -73
  113. package/es/api-node/transactions/index.js +136 -136
  114. package/es/api-node/utils/index.d.ts +110 -99
  115. package/es/api-node/utils/index.js +192 -175
  116. package/es/api-node/utils/index.js.map +1 -1
  117. package/es/api-node/wallet/index.d.ts +5 -5
  118. package/es/api-node/wallet/index.js +6 -6
  119. package/es/constants.d.ts +40 -40
  120. package/es/constants.js +39 -39
  121. package/es/create.d.ts +1238 -1240
  122. package/es/create.js +89 -92
  123. package/es/create.js.map +1 -1
  124. package/es/index.d.ts +9 -9
  125. package/es/index.js +8 -8
  126. package/es/interface.d.ts +44 -44
  127. package/es/interface.js +2 -2
  128. package/es/tools/adresses/availableSponsoredBalances.d.ts +7 -7
  129. package/es/tools/adresses/availableSponsoredBalances.js +26 -26
  130. package/es/tools/adresses/ethAddress2waves.d.ts +1 -1
  131. package/es/tools/adresses/ethAddress2waves.js +30 -30
  132. package/es/tools/adresses/getAssetIdListByTx.d.ts +2 -2
  133. package/es/tools/adresses/getAssetIdListByTx.js +23 -23
  134. package/es/tools/adresses/getAssetsByTransaction.d.ts +3 -3
  135. package/es/tools/adresses/getAssetsByTransaction.js +7 -7
  136. package/es/tools/adresses/getTransactionsWithAssets.d.ts +6 -6
  137. package/es/tools/adresses/getTransactionsWithAssets.js +6 -6
  138. package/es/tools/adresses/watch.d.ts +24 -24
  139. package/es/tools/adresses/watch.js +133 -133
  140. package/es/tools/adresses/wavesAddress2eth.d.ts +1 -1
  141. package/es/tools/adresses/wavesAddress2eth.js +6 -6
  142. package/es/tools/assets/wavesAsset2eth.d.ts +1 -1
  143. package/es/tools/assets/wavesAsset2eth.js +6 -6
  144. package/es/tools/blocks/detectInterval.d.ts +1 -1
  145. package/es/tools/blocks/detectInterval.js +8 -8
  146. package/es/tools/blocks/getNetworkByte.d.ts +1 -1
  147. package/es/tools/blocks/getNetworkByte.js +50 -50
  148. package/es/tools/blocks/getNetworkCode.d.ts +1 -1
  149. package/es/tools/blocks/getNetworkCode.js +4 -4
  150. package/es/tools/blocks/waitHeight.d.ts +3 -3
  151. package/es/tools/blocks/waitHeight.js +35 -35
  152. package/es/tools/parse.d.ts +1 -1
  153. package/es/tools/parse.js +4 -4
  154. package/es/tools/query.d.ts +4 -4
  155. package/es/tools/query.js +11 -11
  156. package/es/tools/request.d.ts +64 -64
  157. package/es/tools/request.js +21 -21
  158. package/es/tools/resolve.d.ts +1 -1
  159. package/es/tools/resolve.js +3 -3
  160. package/es/tools/stringify.d.ts +1 -1
  161. package/es/tools/stringify.js +17 -17
  162. package/es/tools/transactions/broadcast.d.ts +14 -14
  163. package/es/tools/transactions/broadcast.js +42 -42
  164. package/es/tools/transactions/ethTxId2waves.d.ts +1 -1
  165. package/es/tools/transactions/ethTxId2waves.js +7 -7
  166. package/es/tools/transactions/wait.d.ts +10 -10
  167. package/es/tools/transactions/wait.js +38 -38
  168. package/es/tools/utils.d.ts +32 -32
  169. package/es/tools/utils.js +72 -72
  170. package/package.json +66 -66
  171. package/cjs/tools/transactions/transactions.d.ts +0 -0
  172. package/cjs/tools/transactions/transactions.js +0 -2
  173. package/cjs/tools/transactions/transactions.js.map +0 -1
  174. package/dist/0.node-api.js +0 -467
  175. package/dist/node-api.min.js.LICENSE.txt +0 -17
  176. package/dist/node_fs-node_path.node-api.js +0 -23
  177. package/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +0 -599
  178. package/es/tools/transactions/transactions.d.ts +0 -0
  179. package/es/tools/transactions/transactions.js +0 -2
  180. package/es/tools/transactions/transactions.js.map +0 -1
@@ -1,99 +1,110 @@
1
- import { Transaction, WithApiMixin } from '@waves/ts-types';
2
- import { TLong } from '../../interface';
3
- /**
4
- * GET /utils/seed
5
- * Generate random seed
6
- */
7
- export declare function fetchSeed(base: string, length?: number): Promise<{
8
- seed: string;
9
- }>;
10
- /**
11
- * POST /utils/script/compileCode
12
- * Compiles string code to base64 script representation
13
- */
14
- export declare function fetchCompileCode(base: string, body: string): Promise<ICompileCode>;
15
- /**
16
- * POST /utils/script/compileWithImports
17
- * Compiles string code with imports to base64 script representation
18
- */
19
- export declare function fetchCompileWithImports(base: string, body: ICompileWithImportsBody): Promise<ICompileCode>;
20
- /**
21
- * POST /utils/script/estimate
22
- * Estimates compiled code in Base64 representation
23
- */
24
- export declare function fetchEstimate(base: string, body: string): Promise<IEstimate>;
25
- /**
26
- * POST /utils/transactionSerialize
27
- * Serialize transaction
28
- */
29
- export declare function fetchTransactionSerialize(base: string, body: Transaction<TLong> & WithApiMixin): Promise<ITransactionSerialize>;
30
- /**
31
- * POST /utils/hash/secure
32
- * Return SecureCryptographicHash of specified message
33
- */
34
- export declare function fetchHashSecure(base: string, body: string): Promise<IHashSecure>;
35
- /**
36
- * POST /utils/hash/fast
37
- * Return FastCryptographicHash of specified message
38
- */
39
- export declare function fetchHashFast(base: string, body: string): Promise<IHashSecure>;
40
- /**
41
- * POST /utils/script/meta
42
- * Account's script meta
43
- */
44
- export declare function fetchScriptMeta(base: string, body: string): Promise<IScriptMeta>;
45
- /**
46
- * POST /utils/script/decompile
47
- * Decompiles base64 script representation to string code
48
- */
49
- export declare function fetchScriptDecompile(base: string, body: string): Promise<IScriptDecompile>;
50
- /**
51
- * POST /utils/sign/{privateKey}
52
- * Return FastCryptographicHash of specified message
53
- */
54
- export declare function fetchSignPrivateKey(base: string, privateKey: string, body: string): Promise<ISignPrivateKey>;
55
- /**
56
- * GET /utils/time
57
- * Current Node time (UTC)
58
- */
59
- export declare function fetchNodeTime(base: string): Promise<INodeTime>;
60
- interface IScriptMeta {
61
- version?: string;
62
- callableFuncTypes?: Array<Record<string, Record<string, 'Int' | 'String' | 'Binary'>>>;
63
- }
64
- interface IScriptDecompile {
65
- STDLIB_VERSION: number;
66
- CONTENT_TYPE: string;
67
- script: string;
68
- SCRIPT_TYPE?: string;
69
- }
70
- export interface ICompileCode {
71
- script: string;
72
- complexity: number;
73
- callableComplexities: Record<string, number>;
74
- verifierComplexity: number;
75
- extraFee: TLong;
76
- }
77
- export interface IEstimate extends ICompileCode {
78
- scriptText: string;
79
- }
80
- interface ICompileWithImportsBody {
81
- script: string;
82
- imports: object;
83
- }
84
- interface IHashSecure {
85
- message: string;
86
- hash: string;
87
- }
88
- interface ITransactionSerialize {
89
- bytes: Array<number>;
90
- }
91
- interface ISignPrivateKey {
92
- message: string;
93
- signature: string;
94
- }
95
- interface INodeTime {
96
- system: number;
97
- NTP: number;
98
- }
99
- export {};
1
+ import { Transaction, WithApiMixin } from '@waves/ts-types';
2
+ import { TLong } from '../../interface';
3
+ /**
4
+ * GET /utils/seed
5
+ * Generate random seed
6
+ */
7
+ export declare function fetchSeed(base: string, length?: number): Promise<{
8
+ seed: string;
9
+ }>;
10
+ /**
11
+ * POST /utils/script/compileCode
12
+ * Compiles string code to base64 script representation
13
+ */
14
+ export declare function fetchCompileCode(base: string, body: string): Promise<ICompileCode>;
15
+ /**
16
+ * POST /utils/script/compileWithImports
17
+ * Compiles string code with imports to base64 script representation
18
+ */
19
+ export declare function fetchCompileWithImports(base: string, body: ICompileWithImportsBody): Promise<ICompileCode>;
20
+ /**
21
+ * POST /utils/script/estimate
22
+ * Estimates compiled code in Base64 representation
23
+ */
24
+ export declare function fetchEstimate(base: string, body: string): Promise<IEstimate>;
25
+ /**
26
+ * POST /utils/script/evaluate
27
+ * Evaluates the provided expression, taking into account the deployed dApp contract
28
+ */
29
+ export declare function fetchEvaluate(base: string, address: string, expr: string): Promise<IEvaluate>;
30
+ /**
31
+ * POST /utils/transactionSerialize
32
+ * Serialize transaction
33
+ */
34
+ export declare function fetchTransactionSerialize(base: string, body: Transaction<TLong> & WithApiMixin): Promise<ITransactionSerialize>;
35
+ /**
36
+ * POST /utils/hash/secure
37
+ * Return SecureCryptographicHash of specified message
38
+ */
39
+ export declare function fetchHashSecure(base: string, body: string): Promise<IHashSecure>;
40
+ /**
41
+ * POST /utils/hash/fast
42
+ * Return FastCryptographicHash of specified message
43
+ */
44
+ export declare function fetchHashFast(base: string, body: string): Promise<IHashSecure>;
45
+ /**
46
+ * POST /utils/script/meta
47
+ * Account's script meta
48
+ */
49
+ export declare function fetchScriptMeta(base: string, body: string): Promise<IScriptMeta>;
50
+ /**
51
+ * POST /utils/script/decompile
52
+ * Decompiles base64 script representation to string code
53
+ */
54
+ export declare function fetchScriptDecompile(base: string, body: string): Promise<IScriptDecompile>;
55
+ /**
56
+ * POST /utils/sign/{privateKey}
57
+ * Return FastCryptographicHash of specified message
58
+ */
59
+ export declare function fetchSignPrivateKey(base: string, privateKey: string, body: string): Promise<ISignPrivateKey>;
60
+ /**
61
+ * GET /utils/time
62
+ * Current Node time (UTC)
63
+ */
64
+ export declare function fetchNodeTime(base: string): Promise<INodeTime>;
65
+ interface IScriptMeta {
66
+ version?: string;
67
+ callableFuncTypes?: Array<Record<string, Record<string, 'Int' | 'String' | 'Binary'>>>;
68
+ }
69
+ interface IScriptDecompile {
70
+ STDLIB_VERSION: number;
71
+ CONTENT_TYPE: string;
72
+ script: string;
73
+ SCRIPT_TYPE?: string;
74
+ }
75
+ export interface ICompileCode {
76
+ script: string;
77
+ complexity: number;
78
+ callableComplexities: Record<string, number>;
79
+ verifierComplexity: number;
80
+ extraFee: TLong;
81
+ }
82
+ export interface IEstimate extends ICompileCode {
83
+ scriptText: string;
84
+ }
85
+ export interface IEvaluate {
86
+ address: string;
87
+ expr: string;
88
+ result: object;
89
+ complexity: number;
90
+ }
91
+ interface ICompileWithImportsBody {
92
+ script: string;
93
+ imports: object;
94
+ }
95
+ interface IHashSecure {
96
+ message: string;
97
+ hash: string;
98
+ }
99
+ interface ITransactionSerialize {
100
+ bytes: Array<number>;
101
+ }
102
+ interface ISignPrivateKey {
103
+ message: string;
104
+ signature: string;
105
+ }
106
+ interface INodeTime {
107
+ system: number;
108
+ NTP: number;
109
+ }
110
+ export {};
@@ -1,176 +1,193 @@
1
- import request from '../../tools/request';
2
- import stringify from '../../tools/stringify';
3
- /**
4
- * GET /utils/seed
5
- * Generate random seed
6
- */
7
- export function fetchSeed(base, length) {
8
- return request({
9
- base,
10
- url: `/utils/seed${length ? `/${length}` : ''}`
11
- });
12
- }
13
- /**
14
- * POST /utils/script/compileCode
15
- * Compiles string code to base64 script representation
16
- */
17
- export function fetchCompileCode(base, body) {
18
- return request({
19
- base,
20
- url: '/utils/script/compileCode',
21
- options: {
22
- method: 'POST',
23
- body,
24
- headers: {
25
- 'Content-Type': 'application/json'
26
- }
27
- }
28
- });
29
- }
30
- /**
31
- * POST /utils/script/compileWithImports
32
- * Compiles string code with imports to base64 script representation
33
- */
34
- export function fetchCompileWithImports(base, body) {
35
- return request({
36
- base,
37
- url: '/utils/script/compileWithImports',
38
- options: {
39
- method: 'POST',
40
- body: stringify(body),
41
- headers: {
42
- 'Content-Type': 'application/json'
43
- }
44
- }
45
- });
46
- }
47
- /**
48
- * POST /utils/script/estimate
49
- * Estimates compiled code in Base64 representation
50
- */
51
- export function fetchEstimate(base, body) {
52
- return request({
53
- base,
54
- url: '/utils/script/estimate',
55
- options: {
56
- method: 'POST',
57
- body,
58
- headers: {
59
- 'Content-Type': 'application/json'
60
- }
61
- }
62
- });
63
- }
64
- /**
65
- * POST /utils/transactionSerialize
66
- * Serialize transaction
67
- */
68
- export function fetchTransactionSerialize(base, body) {
69
- return request({
70
- base,
71
- url: '/utils/transactionSerialize',
72
- options: {
73
- method: 'POST',
74
- body: stringify(body),
75
- headers: {
76
- 'Content-Type': 'application/json'
77
- }
78
- }
79
- });
80
- }
81
- /**
82
- * POST /utils/hash/secure
83
- * Return SecureCryptographicHash of specified message
84
- */
85
- export function fetchHashSecure(base, body) {
86
- return request({
87
- base,
88
- url: '/utils/hash/secure',
89
- options: {
90
- method: 'POST',
91
- body,
92
- headers: {
93
- 'Content-Type': 'application/json'
94
- }
95
- }
96
- });
97
- }
98
- /**
99
- * POST /utils/hash/fast
100
- * Return FastCryptographicHash of specified message
101
- */
102
- export function fetchHashFast(base, body) {
103
- return request({
104
- base,
105
- url: '/utils/hash/fast',
106
- options: {
107
- method: 'POST',
108
- body,
109
- headers: {
110
- 'Content-Type': 'application/json'
111
- }
112
- }
113
- });
114
- }
115
- /**
116
- * POST /utils/script/meta
117
- * Account's script meta
118
- */
119
- export function fetchScriptMeta(base, body) {
120
- return request({
121
- base,
122
- url: '/utils/script/meta',
123
- options: {
124
- method: 'POST',
125
- body,
126
- headers: {
127
- 'Content-Type': 'application/json'
128
- }
129
- }
130
- });
131
- }
132
- /**
133
- * POST /utils/script/decompile
134
- * Decompiles base64 script representation to string code
135
- */
136
- export function fetchScriptDecompile(base, body) {
137
- return request({
138
- base,
139
- url: '/utils/script/decompile',
140
- options: {
141
- method: 'POST',
142
- body,
143
- headers: {
144
- 'Content-Type': 'application/json'
145
- }
146
- }
147
- });
148
- }
149
- /**
150
- * POST /utils/sign/{privateKey}
151
- * Return FastCryptographicHash of specified message
152
- */
153
- export function fetchSignPrivateKey(base, privateKey, body) {
154
- return request({
155
- base,
156
- url: `/utils/sign/${privateKey}`,
157
- options: {
158
- method: 'POST',
159
- body,
160
- headers: {
161
- 'Content-Type': 'application/json'
162
- }
163
- }
164
- });
165
- }
166
- /**
167
- * GET /utils/time
168
- * Current Node time (UTC)
169
- */
170
- export function fetchNodeTime(base) {
171
- return request({
172
- base,
173
- url: '/utils/time'
174
- });
175
- }
1
+ import request from '../../tools/request';
2
+ import stringify from '../../tools/stringify';
3
+ /**
4
+ * GET /utils/seed
5
+ * Generate random seed
6
+ */
7
+ export function fetchSeed(base, length) {
8
+ return request({
9
+ base,
10
+ url: `/utils/seed${length ? `/${length}` : ''}`
11
+ });
12
+ }
13
+ /**
14
+ * POST /utils/script/compileCode
15
+ * Compiles string code to base64 script representation
16
+ */
17
+ export function fetchCompileCode(base, body) {
18
+ return request({
19
+ base,
20
+ url: '/utils/script/compileCode',
21
+ options: {
22
+ method: 'POST',
23
+ body,
24
+ headers: {
25
+ 'Content-Type': 'application/json'
26
+ }
27
+ }
28
+ });
29
+ }
30
+ /**
31
+ * POST /utils/script/compileWithImports
32
+ * Compiles string code with imports to base64 script representation
33
+ */
34
+ export function fetchCompileWithImports(base, body) {
35
+ return request({
36
+ base,
37
+ url: '/utils/script/compileWithImports',
38
+ options: {
39
+ method: 'POST',
40
+ body: stringify(body),
41
+ headers: {
42
+ 'Content-Type': 'application/json'
43
+ }
44
+ }
45
+ });
46
+ }
47
+ /**
48
+ * POST /utils/script/estimate
49
+ * Estimates compiled code in Base64 representation
50
+ */
51
+ export function fetchEstimate(base, body) {
52
+ return request({
53
+ base,
54
+ url: '/utils/script/estimate',
55
+ options: {
56
+ method: 'POST',
57
+ body,
58
+ headers: {
59
+ 'Content-Type': 'application/json'
60
+ }
61
+ }
62
+ });
63
+ }
64
+ /**
65
+ * POST /utils/script/evaluate
66
+ * Evaluates the provided expression, taking into account the deployed dApp contract
67
+ */
68
+ export function fetchEvaluate(base, address, expr) {
69
+ return request({
70
+ base,
71
+ url: `/utils/script/evaluate/${address}`,
72
+ options: {
73
+ method: 'POST',
74
+ body: JSON.stringify({ expr }),
75
+ headers: {
76
+ 'Content-Type': 'application/json'
77
+ }
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * POST /utils/transactionSerialize
83
+ * Serialize transaction
84
+ */
85
+ export function fetchTransactionSerialize(base, body) {
86
+ return request({
87
+ base,
88
+ url: '/utils/transactionSerialize',
89
+ options: {
90
+ method: 'POST',
91
+ body: stringify(body),
92
+ headers: {
93
+ 'Content-Type': 'application/json'
94
+ }
95
+ }
96
+ });
97
+ }
98
+ /**
99
+ * POST /utils/hash/secure
100
+ * Return SecureCryptographicHash of specified message
101
+ */
102
+ export function fetchHashSecure(base, body) {
103
+ return request({
104
+ base,
105
+ url: '/utils/hash/secure',
106
+ options: {
107
+ method: 'POST',
108
+ body,
109
+ headers: {
110
+ 'Content-Type': 'application/json'
111
+ }
112
+ }
113
+ });
114
+ }
115
+ /**
116
+ * POST /utils/hash/fast
117
+ * Return FastCryptographicHash of specified message
118
+ */
119
+ export function fetchHashFast(base, body) {
120
+ return request({
121
+ base,
122
+ url: '/utils/hash/fast',
123
+ options: {
124
+ method: 'POST',
125
+ body,
126
+ headers: {
127
+ 'Content-Type': 'application/json'
128
+ }
129
+ }
130
+ });
131
+ }
132
+ /**
133
+ * POST /utils/script/meta
134
+ * Account's script meta
135
+ */
136
+ export function fetchScriptMeta(base, body) {
137
+ return request({
138
+ base,
139
+ url: '/utils/script/meta',
140
+ options: {
141
+ method: 'POST',
142
+ body,
143
+ headers: {
144
+ 'Content-Type': 'application/json'
145
+ }
146
+ }
147
+ });
148
+ }
149
+ /**
150
+ * POST /utils/script/decompile
151
+ * Decompiles base64 script representation to string code
152
+ */
153
+ export function fetchScriptDecompile(base, body) {
154
+ return request({
155
+ base,
156
+ url: '/utils/script/decompile',
157
+ options: {
158
+ method: 'POST',
159
+ body,
160
+ headers: {
161
+ 'Content-Type': 'application/json'
162
+ }
163
+ }
164
+ });
165
+ }
166
+ /**
167
+ * POST /utils/sign/{privateKey}
168
+ * Return FastCryptographicHash of specified message
169
+ */
170
+ export function fetchSignPrivateKey(base, privateKey, body) {
171
+ return request({
172
+ base,
173
+ url: `/utils/sign/${privateKey}`,
174
+ options: {
175
+ method: 'POST',
176
+ body,
177
+ headers: {
178
+ 'Content-Type': 'application/json'
179
+ }
180
+ }
181
+ });
182
+ }
183
+ /**
184
+ * GET /utils/time
185
+ * Current Node time (UTC)
186
+ */
187
+ export function fetchNodeTime(base) {
188
+ return request({
189
+ base,
190
+ url: '/utils/time'
191
+ });
192
+ }
176
193
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-node/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAI9C;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,MAAe;IACnD,OAAO,OAAO,CAAC;QACX,IAAI;QACJ,GAAG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Seed
6
- */
1
+ "use strict";
2
+ /**
3
+ * TODO
4
+ * GET /wallet/seed
5
+ * Seed
6
+ */
7
7
  //# sourceMappingURL=index.js.map