@dashevo/wasm-dpp 0.25.0-dev.5 → 0.25.0-dev.6
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/dist/wasm/wasm_dpp.d.ts +34 -34
- package/dist/wasm/wasm_dpp.js +8 -8
- package/dist/wasm/wasm_dpp_bg.js +1 -1
- package/lib/wasm/wasm_dpp.d.ts +34 -34
- package/package.json +3 -3
package/lib/wasm/wasm_dpp.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
+
* @param {Uint8Array} bytes
|
|
5
|
+
* @returns {any}
|
|
6
|
+
*/
|
|
7
|
+
export function deserializeConsensusError(bytes: Uint8Array): any;
|
|
8
|
+
/**
|
|
4
9
|
* @param {Array<any>} operations
|
|
5
10
|
* @param {any} identity_id
|
|
6
11
|
* @returns {FeeResult}
|
|
7
12
|
*/
|
|
8
13
|
export function calculateStateTransitionFeeFromOperations(operations: Array<any>, identity_id: any): FeeResult;
|
|
9
14
|
/**
|
|
10
|
-
* @param {Uint8Array} bytes
|
|
11
|
-
* @returns {any}
|
|
12
|
-
*/
|
|
13
|
-
export function deserializeConsensusError(bytes: Uint8Array): any;
|
|
14
|
-
/**
|
|
15
15
|
* @returns {any}
|
|
16
16
|
*/
|
|
17
17
|
export function generateTemporaryEcdsaPrivateKey(): any;
|
|
@@ -213,6 +213,14 @@ export function validateDataContractCreateTransitionState(state_repository: any,
|
|
|
213
213
|
export function validateDataContractCreateTransitionBasic(raw_parameters: any): Promise<ValidationResult>;
|
|
214
214
|
/**
|
|
215
215
|
*/
|
|
216
|
+
export enum KeySecurityLevel {
|
|
217
|
+
MASTER = 0,
|
|
218
|
+
CRITICAL = 1,
|
|
219
|
+
HIGH = 2,
|
|
220
|
+
MEDIUM = 3,
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
*/
|
|
216
224
|
export enum KeyPurpose {
|
|
217
225
|
/**
|
|
218
226
|
* at least one authentication key must be registered for all security levels
|
|
@@ -241,14 +249,6 @@ export enum KeyPurpose {
|
|
|
241
249
|
}
|
|
242
250
|
/**
|
|
243
251
|
*/
|
|
244
|
-
export enum KeySecurityLevel {
|
|
245
|
-
MASTER = 0,
|
|
246
|
-
CRITICAL = 1,
|
|
247
|
-
HIGH = 2,
|
|
248
|
-
MEDIUM = 3,
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
*/
|
|
252
252
|
export enum KeyType {
|
|
253
253
|
ECDSA_SECP256K1 = 0,
|
|
254
254
|
BLS12_381 = 1,
|
|
@@ -5368,6 +5368,10 @@ export interface InitOutput {
|
|
|
5368
5368
|
readonly invalidjsonschemareferror_getCode: (a: number) => number;
|
|
5369
5369
|
readonly invalidjsonschemareferror_message: (a: number, b: number) => void;
|
|
5370
5370
|
readonly invalidjsonschemareferror_serialize: (a: number, b: number) => void;
|
|
5371
|
+
readonly serializedobjectparsingerror_getParsingError: (a: number, b: number) => void;
|
|
5372
|
+
readonly serializedobjectparsingerror_getCode: (a: number) => number;
|
|
5373
|
+
readonly serializedobjectparsingerror_message: (a: number, b: number) => void;
|
|
5374
|
+
readonly serializedobjectparsingerror_serialize: (a: number, b: number) => void;
|
|
5371
5375
|
readonly __wbg_identityassetlocktransactionisnotfounderror_free: (a: number) => void;
|
|
5372
5376
|
readonly identityassetlocktransactionisnotfounderror_getTransactionId: (a: number) => number;
|
|
5373
5377
|
readonly identityassetlocktransactionisnotfounderror_getCode: (a: number) => number;
|
|
@@ -5415,6 +5419,7 @@ export interface InitOutput {
|
|
|
5415
5419
|
readonly publickeyisdisablederror_getCode: (a: number) => number;
|
|
5416
5420
|
readonly publickeyisdisablederror_message: (a: number, b: number) => void;
|
|
5417
5421
|
readonly publickeyisdisablederror_serialize: (a: number, b: number) => void;
|
|
5422
|
+
readonly deserializeConsensusError: (a: number, b: number, c: number) => void;
|
|
5418
5423
|
readonly identitypublickeyisdisablederror_getPublicKeyIndex: (a: number) => number;
|
|
5419
5424
|
readonly identitypublickeyisdisablederror_getCode: (a: number) => number;
|
|
5420
5425
|
readonly identitypublickeyisdisablederror_message: (a: number, b: number) => void;
|
|
@@ -5429,10 +5434,6 @@ export interface InitOutput {
|
|
|
5429
5434
|
readonly maxidentitypublickeylimitreachederror_serialize: (a: number, b: number) => void;
|
|
5430
5435
|
readonly __wbg_missingidentitypublickeyidserror_free: (a: number) => void;
|
|
5431
5436
|
readonly missingidentitypublickeyidserror_getDuplicatedIds: (a: number) => number;
|
|
5432
|
-
readonly valueerror_getMessage: (a: number, b: number) => void;
|
|
5433
|
-
readonly valueerror_getCode: (a: number) => number;
|
|
5434
|
-
readonly valueerror_message: (a: number, b: number) => void;
|
|
5435
|
-
readonly valueerror_serialize: (a: number, b: number) => void;
|
|
5436
5437
|
readonly __wbg_publickeysvalidator_free: (a: number) => void;
|
|
5437
5438
|
readonly publickeysvalidator_new: (a: number, b: number) => void;
|
|
5438
5439
|
readonly publickeysvalidator_validateKeys: (a: number, b: number, c: number) => void;
|
|
@@ -5509,9 +5510,9 @@ export interface InitOutput {
|
|
|
5509
5510
|
readonly __wbg_identitypublickeyisdisablederror_free: (a: number) => void;
|
|
5510
5511
|
readonly __wbg_invalididentitypublickeyiderror_free: (a: number) => void;
|
|
5511
5512
|
readonly __wbg_maxidentitypublickeylimitreachederror_free: (a: number) => void;
|
|
5513
|
+
readonly __wbg_serializedobjectparsingerror_free: (a: number) => void;
|
|
5512
5514
|
readonly __wbg_invalidjsonschemareferror_free: (a: number) => void;
|
|
5513
5515
|
readonly __wbg_jsonschemacompilationerror_free: (a: number) => void;
|
|
5514
|
-
readonly __wbg_valueerror_free: (a: number) => void;
|
|
5515
5516
|
readonly __wbg_invalidinitialrevisionerror_free: (a: number) => void;
|
|
5516
5517
|
readonly invalidinitialrevisionerror_new: (a: number) => number;
|
|
5517
5518
|
readonly invalidinitialrevisionerror_getDocument: (a: number) => number;
|
|
@@ -5550,7 +5551,6 @@ export interface InitOutput {
|
|
|
5550
5551
|
readonly jsonschemaerror_toString: (a: number, b: number) => void;
|
|
5551
5552
|
readonly jsonschemaerror_message: (a: number, b: number) => void;
|
|
5552
5553
|
readonly jsonschemaerror_serialize: (a: number, b: number) => void;
|
|
5553
|
-
readonly deserializeConsensusError: (a: number, b: number, c: number) => void;
|
|
5554
5554
|
readonly __wbg_documenttimestampwindowviolationerror_free: (a: number) => void;
|
|
5555
5555
|
readonly documenttimestampwindowviolationerror_getDocumentId: (a: number) => number;
|
|
5556
5556
|
readonly documenttimestampwindowviolationerror_getTimestampName: (a: number, b: number) => void;
|
|
@@ -6161,6 +6161,7 @@ export interface InitOutput {
|
|
|
6161
6161
|
readonly __wbg_refunds_free: (a: number) => void;
|
|
6162
6162
|
readonly refunds_credits_per_epoch: (a: number) => number;
|
|
6163
6163
|
readonly refunds_toObject: (a: number, b: number) => void;
|
|
6164
|
+
readonly __wbg_operation_free: (a: number) => void;
|
|
6164
6165
|
readonly __wbg_statetransitionkeysignaturevalidator_free: (a: number) => void;
|
|
6165
6166
|
readonly statetransitionkeysignaturevalidator_new: (a: number) => number;
|
|
6166
6167
|
readonly statetransitionkeysignaturevalidator_validate: (a: number, b: number, c: number) => number;
|
|
@@ -6361,7 +6362,15 @@ export interface InitOutput {
|
|
|
6361
6362
|
readonly identitycreatetransitionstatevalidator_new: (a: number) => number;
|
|
6362
6363
|
readonly identitycreatetransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
|
|
6363
6364
|
readonly identitytopuptransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
|
|
6364
|
-
readonly
|
|
6365
|
+
readonly __wbg_statetransitionfacade_free: (a: number) => void;
|
|
6366
|
+
readonly statetransitionfacade_createFromObject: (a: number, b: number, c: number) => number;
|
|
6367
|
+
readonly statetransitionfacade_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
|
|
6368
|
+
readonly statetransitionfacade_validate: (a: number, b: number, c: number, d: number) => number;
|
|
6369
|
+
readonly statetransitionfacade_validateBasic: (a: number, b: number, c: number) => number;
|
|
6370
|
+
readonly statetransitionfacade_validateSignature: (a: number, b: number, c: number) => number;
|
|
6371
|
+
readonly statetransitionfacade_validateFee: (a: number, b: number, c: number) => number;
|
|
6372
|
+
readonly statetransitionfacade_validateState: (a: number, b: number, c: number) => number;
|
|
6373
|
+
readonly statetransitionfacade_apply: (a: number, b: number) => number;
|
|
6365
6374
|
readonly __wbg_identitytopuptransitionstatevalidator_free: (a: number) => void;
|
|
6366
6375
|
readonly identitypublickeyisreadonlyerror_getPublicKeyIndex: (a: number) => number;
|
|
6367
6376
|
readonly identitytopuptransitionstatevalidator_new: (a: number) => number;
|
|
@@ -6419,15 +6428,6 @@ export interface InitOutput {
|
|
|
6419
6428
|
readonly duplicatedidentitypublickeystateerror_getCode: (a: number) => number;
|
|
6420
6429
|
readonly duplicatedidentitypublickeystateerror_message: (a: number, b: number) => void;
|
|
6421
6430
|
readonly duplicatedidentitypublickeystateerror_serialize: (a: number, b: number) => void;
|
|
6422
|
-
readonly __wbg_statetransitionfacade_free: (a: number) => void;
|
|
6423
|
-
readonly statetransitionfacade_createFromObject: (a: number, b: number, c: number) => number;
|
|
6424
|
-
readonly statetransitionfacade_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
|
|
6425
|
-
readonly statetransitionfacade_validate: (a: number, b: number, c: number, d: number) => number;
|
|
6426
|
-
readonly statetransitionfacade_validateBasic: (a: number, b: number, c: number) => number;
|
|
6427
|
-
readonly statetransitionfacade_validateSignature: (a: number, b: number, c: number) => number;
|
|
6428
|
-
readonly statetransitionfacade_validateFee: (a: number, b: number, c: number) => number;
|
|
6429
|
-
readonly statetransitionfacade_validateState: (a: number, b: number, c: number) => number;
|
|
6430
|
-
readonly statetransitionfacade_apply: (a: number, b: number) => number;
|
|
6431
6431
|
readonly __wbg_precalculatedoperation_free: (a: number) => void;
|
|
6432
6432
|
readonly precalculatedoperation_new: (a: number, b: number, c: number, d: number) => void;
|
|
6433
6433
|
readonly precalculatedoperation_fromFee: (a: number) => number;
|
|
@@ -6518,10 +6518,6 @@ export interface InitOutput {
|
|
|
6518
6518
|
readonly documenttransition_fromTransitionCreate: (a: number) => number;
|
|
6519
6519
|
readonly documenttransition_fromTransitionReplace: (a: number) => number;
|
|
6520
6520
|
readonly documenttransition_fromTransitionDelete: (a: number) => number;
|
|
6521
|
-
readonly serializedobjectparsingerror_getParsingError: (a: number, b: number) => void;
|
|
6522
|
-
readonly serializedobjectparsingerror_getCode: (a: number) => number;
|
|
6523
|
-
readonly serializedobjectparsingerror_message: (a: number, b: number) => void;
|
|
6524
|
-
readonly serializedobjectparsingerror_serialize: (a: number, b: number) => void;
|
|
6525
6521
|
readonly __wbg_datacontractnotpresenterror_free: (a: number) => void;
|
|
6526
6522
|
readonly datacontractnotpresenterror_getDataContractId: (a: number) => number;
|
|
6527
6523
|
readonly datacontractnotpresenterror_getCode: (a: number) => number;
|
|
@@ -6559,6 +6555,10 @@ export interface InitOutput {
|
|
|
6559
6555
|
readonly identityalreadyexistserror_getCode: (a: number) => number;
|
|
6560
6556
|
readonly identityalreadyexistserror_message: (a: number, b: number) => void;
|
|
6561
6557
|
readonly identityalreadyexistserror_serialize: (a: number, b: number) => void;
|
|
6558
|
+
readonly valueerror_getMessage: (a: number, b: number) => void;
|
|
6559
|
+
readonly valueerror_getCode: (a: number) => number;
|
|
6560
|
+
readonly valueerror_message: (a: number, b: number) => void;
|
|
6561
|
+
readonly valueerror_serialize: (a: number, b: number) => void;
|
|
6562
6562
|
readonly __wbg_identityfacade_free: (a: number) => void;
|
|
6563
6563
|
readonly identityfacade_create: (a: number, b: number, c: number, d: number) => void;
|
|
6564
6564
|
readonly identityfacade_createFromObject: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -6599,7 +6599,7 @@ export interface InitOutput {
|
|
|
6599
6599
|
readonly __wbg_documentnotfounderror_free: (a: number) => void;
|
|
6600
6600
|
readonly __wbg_documenttimestampsmismatcherror_free: (a: number) => void;
|
|
6601
6601
|
readonly __wbg_identityalreadyexistserror_free: (a: number) => void;
|
|
6602
|
-
readonly
|
|
6602
|
+
readonly __wbg_valueerror_free: (a: number) => void;
|
|
6603
6603
|
readonly rustsecp256k1_v0_6_1_context_create: (a: number) => number;
|
|
6604
6604
|
readonly rustsecp256k1_v0_6_1_context_destroy: (a: number) => void;
|
|
6605
6605
|
readonly rustsecp256k1_v0_6_1_default_illegal_callback_fn: (a: number, b: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/wasm-dpp",
|
|
3
|
-
"version": "0.25.0-dev.
|
|
3
|
+
"version": "0.25.0-dev.6",
|
|
4
4
|
"description": "The JavaScript implementation of the Dash Platform Protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@babel/core": "^7.15.5",
|
|
45
45
|
"@babel/preset-env": "^7.15.4",
|
|
46
46
|
"@dashevo/dashcore-lib": "~0.20.3",
|
|
47
|
-
"@dashevo/dpns-contract": "0.25.0-dev.
|
|
48
|
-
"@dashevo/dpp": "0.25.0-dev.
|
|
47
|
+
"@dashevo/dpns-contract": "0.25.0-dev.6",
|
|
48
|
+
"@dashevo/dpp": "0.25.0-dev.6",
|
|
49
49
|
"@dashevo/wasm-re2": "~1.0.2",
|
|
50
50
|
"@types/bs58": "^4.0.1",
|
|
51
51
|
"@types/node": "^14.6.0",
|