@alephium/web3 0.2.0-test.0 → 0.2.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.
- package/.eslintignore +2 -2
- package/README.md +2 -135
- package/dist/alephium-web3.min.js +1 -1
- package/dist/alephium-web3.min.js.LICENSE.txt +0 -17
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/api/api-alephium.d.ts +152 -24
- package/dist/src/api/api-alephium.js +163 -82
- package/dist/src/api/api-explorer.d.ts +192 -49
- package/dist/src/api/api-explorer.js +195 -34
- package/dist/src/api/index.d.ts +40 -5
- package/dist/src/api/index.js +115 -7
- package/dist/src/api/types.d.ts +23 -0
- package/dist/src/api/types.js +235 -0
- package/dist/src/api/utils.d.ts +6 -0
- package/dist/{scripts/rename-gitignore.js → src/api/utils.js} +11 -6
- package/dist/src/contract/contract.d.ts +127 -80
- package/dist/src/contract/contract.js +425 -467
- package/dist/src/contract/events.d.ts +4 -4
- package/dist/src/contract/events.js +2 -1
- package/dist/src/contract/index.js +5 -1
- package/dist/src/contract/ralph.d.ts +5 -4
- package/dist/src/contract/ralph.js +27 -1
- package/dist/src/global.d.ts +7 -0
- package/dist/src/global.js +54 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +23 -1
- package/dist/src/signer/index.d.ts +0 -1
- package/dist/src/signer/index.js +5 -2
- package/dist/src/signer/signer.d.ts +59 -60
- package/dist/src/signer/signer.js +99 -69
- package/dist/src/transaction/index.d.ts +0 -1
- package/dist/src/transaction/index.js +5 -2
- package/dist/src/transaction/status.d.ts +2 -1
- package/dist/src/transaction/status.js +2 -1
- package/dist/src/utils/bs58.d.ts +1 -0
- package/dist/src/utils/bs58.js +13 -1
- package/dist/src/utils/index.d.ts +0 -1
- package/dist/src/utils/index.js +5 -2
- package/dist/src/utils/subscription.d.ts +0 -3
- package/dist/src/utils/subscription.js +0 -1
- package/dist/src/utils/utils.d.ts +6 -11
- package/dist/src/utils/utils.js +22 -26
- package/jest-config.json +11 -0
- package/package.json +11 -47
- package/src/api/api-alephium.ts +219 -33
- package/src/api/api-explorer.ts +275 -52
- package/src/api/index.ts +140 -6
- package/src/api/types.ts +229 -0
- package/{scripts/rename-gitignore.js → src/api/utils.ts} +7 -6
- package/src/contract/contract.ts +663 -581
- package/src/contract/events.ts +8 -7
- package/src/contract/ralph.ts +29 -4
- package/src/global.ts +56 -0
- package/src/index.ts +7 -0
- package/src/signer/index.ts +0 -1
- package/src/signer/signer.ts +165 -134
- package/src/transaction/index.ts +0 -1
- package/src/transaction/status.ts +6 -3
- package/src/utils/bs58.ts +11 -0
- package/src/utils/index.ts +0 -1
- package/src/utils/subscription.ts +1 -5
- package/src/utils/utils.ts +15 -23
- package/webpack.config.js +3 -0
- package/.eslintrc.json +0 -21
- package/LICENSE +0 -165
- package/contracts/add/add.ral +0 -16
- package/contracts/greeter/greeter.ral +0 -7
- package/contracts/greeter/greeter_interface.ral +0 -3
- package/contracts/greeter_main.ral +0 -9
- package/contracts/main.ral +0 -6
- package/contracts/sub/sub.ral +0 -9
- package/dev/user.conf +0 -29
- package/dist/scripts/create-project.d.ts +0 -2
- package/dist/scripts/create-project.js +0 -124
- package/dist/scripts/rename-gitignore.d.ts +0 -1
- package/dist/scripts/start-devnet.d.ts +0 -1
- package/dist/scripts/start-devnet.js +0 -131
- package/dist/scripts/stop-devnet.d.ts +0 -1
- package/dist/scripts/stop-devnet.js +0 -32
- package/dist/src/signer/node-wallet.d.ts +0 -13
- package/dist/src/signer/node-wallet.js +0 -60
- package/dist/src/test/index.d.ts +0 -7
- package/dist/src/test/index.js +0 -41
- package/dist/src/test/privatekey-wallet.d.ts +0 -12
- package/dist/src/test/privatekey-wallet.js +0 -68
- package/dist/src/transaction/sign-verify.d.ts +0 -2
- package/dist/src/transaction/sign-verify.js +0 -58
- package/dist/src/utils/password-crypto.d.ts +0 -2
- package/dist/src/utils/password-crypto.js +0 -69
- package/gitignore +0 -10
- package/scripts/create-project.ts +0 -136
- package/scripts/start-devnet.js +0 -141
- package/scripts/stop-devnet.js +0 -32
- package/src/contract/ralph.test.ts +0 -178
- package/src/fixtures/address.json +0 -36
- package/src/fixtures/balance.json +0 -9
- package/src/fixtures/self-clique.json +0 -19
- package/src/fixtures/transaction.json +0 -13
- package/src/fixtures/transactions.json +0 -179
- package/src/signer/fixtures/genesis.json +0 -26
- package/src/signer/fixtures/wallets.json +0 -26
- package/src/signer/node-wallet.ts +0 -74
- package/src/test/index.ts +0 -32
- package/src/test/privatekey-wallet.ts +0 -58
- package/src/transaction/sign-verify.test.ts +0 -50
- package/src/transaction/sign-verify.ts +0 -39
- package/src/utils/address.test.ts +0 -47
- package/src/utils/djb2.test.ts +0 -35
- package/src/utils/password-crypto.test.ts +0 -27
- package/src/utils/password-crypto.ts +0 -77
- package/src/utils/utils.test.ts +0 -161
- package/templates/base/README.md +0 -34
- package/templates/base/package.json +0 -35
- package/templates/base/src/greeter.ts +0 -41
- package/templates/base/tsconfig.json +0 -19
- package/templates/react/README.md +0 -34
- package/templates/react/config-overrides.js +0 -18
- package/templates/react/package.json +0 -66
- package/templates/react/src/App.tsx +0 -42
- package/templates/react/src/artifacts/greeter.ral.json +0 -26
- package/templates/react/src/artifacts/greeter_main.ral.json +0 -22
- package/templates/shared/.eslintrc.json +0 -12
- package/templates/shared/scripts/header.js +0 -0
- package/test/contract.test.ts +0 -178
- package/test/events.test.ts +0 -138
- package/test/transaction.test.ts +0 -72
|
@@ -12,6 +12,23 @@ export interface AddressInfo {
|
|
|
12
12
|
/** @format int32 */
|
|
13
13
|
txNumber: number;
|
|
14
14
|
}
|
|
15
|
+
export interface AssetOutput {
|
|
16
|
+
/** @format int32 */
|
|
17
|
+
hint: number;
|
|
18
|
+
/** @format 32-byte-hash */
|
|
19
|
+
key: string;
|
|
20
|
+
/** @format uint256 */
|
|
21
|
+
attoAlphAmount: string;
|
|
22
|
+
address: string;
|
|
23
|
+
tokens?: Token[];
|
|
24
|
+
/** @format int64 */
|
|
25
|
+
lockTime?: number;
|
|
26
|
+
/** @format hex-string */
|
|
27
|
+
message?: string;
|
|
28
|
+
/** @format 32-byte-hash */
|
|
29
|
+
spent?: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
15
32
|
export interface BadRequest {
|
|
16
33
|
detail: string;
|
|
17
34
|
}
|
|
@@ -47,6 +64,19 @@ export interface ConfirmedTransaction {
|
|
|
47
64
|
gasPrice: string;
|
|
48
65
|
type: string;
|
|
49
66
|
}
|
|
67
|
+
export interface ContractOutput {
|
|
68
|
+
/** @format int32 */
|
|
69
|
+
hint: number;
|
|
70
|
+
/** @format 32-byte-hash */
|
|
71
|
+
key: string;
|
|
72
|
+
/** @format uint256 */
|
|
73
|
+
attoAlphAmount: string;
|
|
74
|
+
address: string;
|
|
75
|
+
tokens?: Token[];
|
|
76
|
+
/** @format 32-byte-hash */
|
|
77
|
+
spent?: string;
|
|
78
|
+
type: string;
|
|
79
|
+
}
|
|
50
80
|
export interface ExplorerInfo {
|
|
51
81
|
releaseVersion: string;
|
|
52
82
|
commit: string;
|
|
@@ -59,12 +89,12 @@ export interface Hashrate {
|
|
|
59
89
|
}
|
|
60
90
|
export interface Input {
|
|
61
91
|
outputRef: OutputRef;
|
|
92
|
+
/** @format hex-string */
|
|
62
93
|
unlockScript?: string;
|
|
63
|
-
|
|
64
|
-
txHashRef: string;
|
|
65
|
-
address: string;
|
|
94
|
+
address?: string;
|
|
66
95
|
/** @format uint256 */
|
|
67
|
-
|
|
96
|
+
attoAlphAmount?: string;
|
|
97
|
+
tokens?: Token[];
|
|
68
98
|
}
|
|
69
99
|
export interface InternalServerError {
|
|
70
100
|
detail: string;
|
|
@@ -74,23 +104,15 @@ export interface ListBlocks {
|
|
|
74
104
|
total: number;
|
|
75
105
|
blocks?: BlockEntryLite[];
|
|
76
106
|
}
|
|
107
|
+
export interface LogbackValue {
|
|
108
|
+
name: string;
|
|
109
|
+
level: string;
|
|
110
|
+
}
|
|
77
111
|
export interface NotFound {
|
|
78
112
|
detail: string;
|
|
79
113
|
resource: string;
|
|
80
114
|
}
|
|
81
|
-
export
|
|
82
|
-
/** @format int32 */
|
|
83
|
-
hint: number;
|
|
84
|
-
/** @format 32-byte-hash */
|
|
85
|
-
key: string;
|
|
86
|
-
/** @format uint256 */
|
|
87
|
-
amount: string;
|
|
88
|
-
address: string;
|
|
89
|
-
/** @format int64 */
|
|
90
|
-
lockTime?: number;
|
|
91
|
-
/** @format 32-byte-hash */
|
|
92
|
-
spent?: string;
|
|
93
|
-
}
|
|
115
|
+
export declare type Output = AssetOutput | ContractOutput;
|
|
94
116
|
export interface OutputRef {
|
|
95
117
|
/** @format int32 */
|
|
96
118
|
hint: number;
|
|
@@ -139,6 +161,12 @@ export interface TimedCount {
|
|
|
139
161
|
/** @format int64 */
|
|
140
162
|
totalCountAllChains: number;
|
|
141
163
|
}
|
|
164
|
+
export interface Token {
|
|
165
|
+
/** @format 32-byte-hash */
|
|
166
|
+
id: string;
|
|
167
|
+
/** @format uint256 */
|
|
168
|
+
amount: string;
|
|
169
|
+
}
|
|
142
170
|
export interface TokenSupply {
|
|
143
171
|
/** @format int64 */
|
|
144
172
|
timestamp: number;
|
|
@@ -168,17 +196,6 @@ export interface Transaction {
|
|
|
168
196
|
gasPrice: string;
|
|
169
197
|
}
|
|
170
198
|
export declare type TransactionLike = ConfirmedTransaction | UnconfirmedTransaction;
|
|
171
|
-
export interface UInput {
|
|
172
|
-
outputRef: OutputRef;
|
|
173
|
-
unlockScript?: string;
|
|
174
|
-
}
|
|
175
|
-
export interface UOutput {
|
|
176
|
-
/** @format uint256 */
|
|
177
|
-
amount: string;
|
|
178
|
-
address: string;
|
|
179
|
-
/** @format int64 */
|
|
180
|
-
lockTime?: number;
|
|
181
|
-
}
|
|
182
199
|
export interface Unauthorized {
|
|
183
200
|
detail: string;
|
|
184
201
|
}
|
|
@@ -189,12 +206,14 @@ export interface UnconfirmedTransaction {
|
|
|
189
206
|
chainFrom: number;
|
|
190
207
|
/** @format int32 */
|
|
191
208
|
chainTo: number;
|
|
192
|
-
inputs?:
|
|
193
|
-
outputs?:
|
|
209
|
+
inputs?: Input[];
|
|
210
|
+
outputs?: Output[];
|
|
194
211
|
/** @format int32 */
|
|
195
212
|
gasAmount: number;
|
|
196
213
|
/** @format uint256 */
|
|
197
214
|
gasPrice: string;
|
|
215
|
+
/** @format int64 */
|
|
216
|
+
lastSeen: number;
|
|
198
217
|
type: string;
|
|
199
218
|
}
|
|
200
219
|
import 'cross-fetch/polyfill';
|
|
@@ -269,16 +288,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
269
288
|
* @request GET:/blocks
|
|
270
289
|
*/
|
|
271
290
|
getBlocks: (query?: {
|
|
272
|
-
page?: number
|
|
273
|
-
limit?: number
|
|
274
|
-
reverse?: boolean
|
|
275
|
-
}
|
|
291
|
+
page?: number;
|
|
292
|
+
limit?: number;
|
|
293
|
+
reverse?: boolean;
|
|
294
|
+
}, params?: RequestParams) => Promise<ListBlocks>;
|
|
276
295
|
/**
|
|
277
296
|
* @description Get a block with hash
|
|
278
297
|
*
|
|
279
298
|
* @tags Blocks
|
|
280
299
|
* @name GetBlocksBlockHash
|
|
281
|
-
* @request GET:/blocks/{
|
|
300
|
+
* @request GET:/blocks/{block_hash}
|
|
282
301
|
*/
|
|
283
302
|
getBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<BlockEntryLite>;
|
|
284
303
|
/**
|
|
@@ -286,13 +305,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
286
305
|
*
|
|
287
306
|
* @tags Blocks
|
|
288
307
|
* @name GetBlocksBlockHashTransactions
|
|
289
|
-
* @request GET:/blocks/{
|
|
308
|
+
* @request GET:/blocks/{block_hash}/transactions
|
|
290
309
|
*/
|
|
291
310
|
getBlocksBlockHashTransactions: (blockHash: string, query?: {
|
|
292
|
-
page?: number
|
|
293
|
-
limit?: number
|
|
294
|
-
reverse?: boolean
|
|
295
|
-
}
|
|
311
|
+
page?: number;
|
|
312
|
+
limit?: number;
|
|
313
|
+
reverse?: boolean;
|
|
314
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
296
315
|
};
|
|
297
316
|
transactions: {
|
|
298
317
|
/**
|
|
@@ -300,9 +319,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
300
319
|
*
|
|
301
320
|
* @tags Transactions
|
|
302
321
|
* @name GetTransactionsTransactionHash
|
|
303
|
-
* @request GET:/transactions/{
|
|
322
|
+
* @request GET:/transactions/{transaction_hash}
|
|
304
323
|
*/
|
|
305
324
|
getTransactionsTransactionHash: (transactionHash: string, params?: RequestParams) => Promise<ConfirmedTransaction | UnconfirmedTransaction>;
|
|
325
|
+
/**
|
|
326
|
+
* @description Get a transaction from a output reference key
|
|
327
|
+
*
|
|
328
|
+
* @tags Transactions
|
|
329
|
+
* @name GetTransactionsByOutputRefKeyOutputRefKey
|
|
330
|
+
* @request GET:/transactions/by/output-ref-key/{output_ref_key}
|
|
331
|
+
*/
|
|
332
|
+
getTransactionsByOutputRefKeyOutputRefKey: (outputRefKey: string, params?: RequestParams) => Promise<Transaction>;
|
|
306
333
|
};
|
|
307
334
|
addresses: {
|
|
308
335
|
/**
|
|
@@ -321,10 +348,24 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
321
348
|
* @request GET:/addresses/{address}/transactions
|
|
322
349
|
*/
|
|
323
350
|
getAddressesAddressTransactions: (address: string, query?: {
|
|
324
|
-
page?: number
|
|
325
|
-
limit?: number
|
|
326
|
-
reverse?: boolean
|
|
327
|
-
}
|
|
351
|
+
page?: number;
|
|
352
|
+
limit?: number;
|
|
353
|
+
reverse?: boolean;
|
|
354
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
355
|
+
/**
|
|
356
|
+
* @description List transactions of a given address within a time-range
|
|
357
|
+
*
|
|
358
|
+
* @tags Addresses
|
|
359
|
+
* @name GetAddressesAddressTimerangedTransactions
|
|
360
|
+
* @request GET:/addresses/{address}/timeranged-transactions
|
|
361
|
+
*/
|
|
362
|
+
getAddressesAddressTimerangedTransactions: (address: string, query: {
|
|
363
|
+
fromTs: number;
|
|
364
|
+
toTs: number;
|
|
365
|
+
page?: number;
|
|
366
|
+
limit?: number;
|
|
367
|
+
reverse?: boolean;
|
|
368
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
328
369
|
/**
|
|
329
370
|
* @description Get total transactions of a given address
|
|
330
371
|
*
|
|
@@ -333,6 +374,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
333
374
|
* @request GET:/addresses/{address}/total-transactions
|
|
334
375
|
*/
|
|
335
376
|
getAddressesAddressTotalTransactions: (address: string, params?: RequestParams) => Promise<number>;
|
|
377
|
+
/**
|
|
378
|
+
* @description List unconfirmed transactions of a given address
|
|
379
|
+
*
|
|
380
|
+
* @tags Addresses
|
|
381
|
+
* @name GetAddressesAddressUnconfirmedTransactions
|
|
382
|
+
* @request GET:/addresses/{address}/unconfirmed-transactions
|
|
383
|
+
*/
|
|
384
|
+
getAddressesAddressUnconfirmedTransactions: (address: string, params?: RequestParams) => Promise<TransactionLike[]>;
|
|
336
385
|
/**
|
|
337
386
|
* @description Get address balance
|
|
338
387
|
*
|
|
@@ -341,6 +390,44 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
341
390
|
* @request GET:/addresses/{address}/balance
|
|
342
391
|
*/
|
|
343
392
|
getAddressesAddressBalance: (address: string, params?: RequestParams) => Promise<AddressBalance>;
|
|
393
|
+
/**
|
|
394
|
+
* @description List address tokens
|
|
395
|
+
*
|
|
396
|
+
* @tags Addresses
|
|
397
|
+
* @name GetAddressesAddressTokens
|
|
398
|
+
* @request GET:/addresses/{address}/tokens
|
|
399
|
+
*/
|
|
400
|
+
getAddressesAddressTokens: (address: string, params?: RequestParams) => Promise<string[]>;
|
|
401
|
+
/**
|
|
402
|
+
* @description List address tokens
|
|
403
|
+
*
|
|
404
|
+
* @tags Addresses
|
|
405
|
+
* @name GetAddressesAddressTokensTokenIdTransactions
|
|
406
|
+
* @request GET:/addresses/{address}/tokens/{token_id}/transactions
|
|
407
|
+
*/
|
|
408
|
+
getAddressesAddressTokensTokenIdTransactions: (address: string, tokenId: string, query?: {
|
|
409
|
+
page?: number;
|
|
410
|
+
limit?: number;
|
|
411
|
+
reverse?: boolean;
|
|
412
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
413
|
+
/**
|
|
414
|
+
* @description Get address balance of given token
|
|
415
|
+
*
|
|
416
|
+
* @tags Addresses
|
|
417
|
+
* @name GetAddressesAddressTokensTokenIdBalance
|
|
418
|
+
* @request GET:/addresses/{address}/tokens/{token_id}/balance
|
|
419
|
+
*/
|
|
420
|
+
getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params?: RequestParams) => Promise<AddressBalance>;
|
|
421
|
+
};
|
|
422
|
+
addressesActive: {
|
|
423
|
+
/**
|
|
424
|
+
* @description Are the addresses active (at least 1 transaction)
|
|
425
|
+
*
|
|
426
|
+
* @tags Addresses
|
|
427
|
+
* @name PostAddressesActive
|
|
428
|
+
* @request POST:/addresses-active
|
|
429
|
+
*/
|
|
430
|
+
postAddressesActive: (data?: string[], params?: RequestParams) => Promise<boolean[]>;
|
|
344
431
|
};
|
|
345
432
|
infos: {
|
|
346
433
|
/**
|
|
@@ -367,10 +454,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
367
454
|
* @request GET:/infos/supply
|
|
368
455
|
*/
|
|
369
456
|
getInfosSupply: (query?: {
|
|
370
|
-
page?: number
|
|
371
|
-
limit?: number
|
|
372
|
-
reverse?: boolean
|
|
373
|
-
}
|
|
457
|
+
page?: number;
|
|
458
|
+
limit?: number;
|
|
459
|
+
reverse?: boolean;
|
|
460
|
+
}, params?: RequestParams) => Promise<TokenSupply[]>;
|
|
374
461
|
/**
|
|
375
462
|
* @description Get the ALPH total supply
|
|
376
463
|
*
|
|
@@ -420,6 +507,46 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
420
507
|
*/
|
|
421
508
|
getInfosAverageBlockTimes: (params?: RequestParams) => Promise<PerChainDuration[]>;
|
|
422
509
|
};
|
|
510
|
+
unconfirmedTransactions: {
|
|
511
|
+
/**
|
|
512
|
+
* @description list unconfirmed transactions
|
|
513
|
+
*
|
|
514
|
+
* @tags Transactions
|
|
515
|
+
* @name GetUnconfirmedTransactions
|
|
516
|
+
* @request GET:/unconfirmed-transactions
|
|
517
|
+
*/
|
|
518
|
+
getUnconfirmedTransactions: (query?: {
|
|
519
|
+
page?: number;
|
|
520
|
+
limit?: number;
|
|
521
|
+
reverse?: boolean;
|
|
522
|
+
}, params?: RequestParams) => Promise<TransactionLike[]>;
|
|
523
|
+
};
|
|
524
|
+
tokens: {
|
|
525
|
+
/**
|
|
526
|
+
* @description List tokens
|
|
527
|
+
*
|
|
528
|
+
* @tags Tokens
|
|
529
|
+
* @name GetTokens
|
|
530
|
+
* @request GET:/tokens
|
|
531
|
+
*/
|
|
532
|
+
getTokens: (query?: {
|
|
533
|
+
page?: number;
|
|
534
|
+
limit?: number;
|
|
535
|
+
reverse?: boolean;
|
|
536
|
+
}, params?: RequestParams) => Promise<string[]>;
|
|
537
|
+
/**
|
|
538
|
+
* @description List token transactions
|
|
539
|
+
*
|
|
540
|
+
* @tags Tokens
|
|
541
|
+
* @name GetTokensTokenIdTransactions
|
|
542
|
+
* @request GET:/tokens/{token_id}/transactions
|
|
543
|
+
*/
|
|
544
|
+
getTokensTokenIdTransactions: (tokenId: string, query?: {
|
|
545
|
+
page?: number;
|
|
546
|
+
limit?: number;
|
|
547
|
+
reverse?: boolean;
|
|
548
|
+
}, params?: RequestParams) => Promise<Transaction[]>;
|
|
549
|
+
};
|
|
423
550
|
charts: {
|
|
424
551
|
/**
|
|
425
552
|
* @description `interval-type` query param: hourly, daily
|
|
@@ -470,6 +597,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
470
597
|
* @request PUT:/utils/sanity-check
|
|
471
598
|
*/
|
|
472
599
|
putUtilsSanityCheck: (params?: RequestParams) => Promise<void>;
|
|
600
|
+
/**
|
|
601
|
+
* @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
|
|
602
|
+
*
|
|
603
|
+
* @tags Utils
|
|
604
|
+
* @name PutUtilsUpdateGlobalLoglevel
|
|
605
|
+
* @request PUT:/utils/update-global-loglevel
|
|
606
|
+
*/
|
|
607
|
+
putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params?: RequestParams) => Promise<void>;
|
|
608
|
+
/**
|
|
609
|
+
* @description Update logback values
|
|
610
|
+
*
|
|
611
|
+
* @tags Utils
|
|
612
|
+
* @name PutUtilsUpdateLogConfig
|
|
613
|
+
* @request PUT:/utils/update-log-config
|
|
614
|
+
*/
|
|
615
|
+
putUtilsUpdateLogConfig: (data?: LogbackValue[], params?: RequestParams) => Promise<void>;
|
|
473
616
|
};
|
|
474
617
|
}
|
|
475
618
|
export {};
|