pshenmic-dpp 1.1.1 → 1.1.2-dev.2
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.
|
@@ -654,8 +654,11 @@ export class DataContractWASM {
|
|
|
654
654
|
set tokens(value: any);
|
|
655
655
|
version: number;
|
|
656
656
|
static readonly __struct: string;
|
|
657
|
+
keywords: string[];
|
|
657
658
|
get ownerId(): IdentifierWASM;
|
|
658
659
|
set ownerId(value: any);
|
|
660
|
+
get description(): string | undefined;
|
|
661
|
+
set description(value: string | null | undefined);
|
|
659
662
|
get id(): IdentifierWASM;
|
|
660
663
|
set id(value: any);
|
|
661
664
|
readonly __type: string;
|
|
@@ -1470,6 +1473,12 @@ export class IdentityPublicKeyInCreationWASM {
|
|
|
1470
1473
|
/** @ignore */
|
|
1471
1474
|
free(): void;
|
|
1472
1475
|
[Symbol.dispose](): void;
|
|
1476
|
+
/**
|
|
1477
|
+
* @param {PrivateKeyWASM} private_key
|
|
1478
|
+
* @param {any} js_network
|
|
1479
|
+
* @returns {boolean}
|
|
1480
|
+
*/
|
|
1481
|
+
validatePrivateKey(private_key: PrivateKeyWASM, js_network: any): boolean;
|
|
1473
1482
|
/** @returns {IdentityPublicKeyWASM} */
|
|
1474
1483
|
toIdentityPublicKey(): IdentityPublicKeyWASM;
|
|
1475
1484
|
/**
|
|
@@ -1527,6 +1536,12 @@ export class IdentityPublicKeyWASM {
|
|
|
1527
1536
|
* @returns {boolean}
|
|
1528
1537
|
*/
|
|
1529
1538
|
validatePrivateKey(js_private_key_bytes: Uint8Array, js_network: any): boolean;
|
|
1539
|
+
/**
|
|
1540
|
+
* @param {PrivateKeyWASM} private_key
|
|
1541
|
+
* @param {any} js_network
|
|
1542
|
+
* @returns {boolean}
|
|
1543
|
+
*/
|
|
1544
|
+
validatePrivateKeyBytes(private_key: PrivateKeyWASM, js_network: any): boolean;
|
|
1530
1545
|
/**
|
|
1531
1546
|
* @param {number} id
|
|
1532
1547
|
* @param {any} js_purpose
|
|
@@ -1541,13 +1556,13 @@ export class IdentityPublicKeyWASM {
|
|
|
1541
1556
|
constructor(id: number, js_purpose: any, js_security_level: any, js_key_type: any, read_only: boolean, binary_data: string, disabled_at: bigint | null | undefined, js_contract_bounds: any);
|
|
1542
1557
|
/** @returns {string} */
|
|
1543
1558
|
hex(): string;
|
|
1544
|
-
/** @returns {Uint8Array<ArrayBufferLike>} */
|
|
1545
|
-
bytes(): Uint8Array;
|
|
1546
1559
|
/**
|
|
1547
1560
|
* @param {string} hex
|
|
1548
1561
|
* @returns {IdentityPublicKeyWASM}
|
|
1549
1562
|
*/
|
|
1550
1563
|
static fromHex(hex: string): IdentityPublicKeyWASM;
|
|
1564
|
+
/** @returns {Uint8Array<ArrayBufferLike>} */
|
|
1565
|
+
bytes(): Uint8Array;
|
|
1551
1566
|
/** @returns {boolean} */
|
|
1552
1567
|
isMaster(): boolean;
|
|
1553
1568
|
/** @returns {string} */
|
|
@@ -1953,6 +1968,11 @@ export class PrivateKeyWASM {
|
|
|
1953
1968
|
getPublicKey(): PublicKeyWASM;
|
|
1954
1969
|
/** @returns {string} */
|
|
1955
1970
|
getPublicKeyHash(): string;
|
|
1971
|
+
/**
|
|
1972
|
+
* @param {Uint8Array<ArrayBufferLike>} data
|
|
1973
|
+
* @returns {Uint8Array<ArrayBufferLike>}
|
|
1974
|
+
*/
|
|
1975
|
+
sign(data: Uint8Array): Uint8Array;
|
|
1956
1976
|
/** @returns {string} */
|
|
1957
1977
|
hex(): string;
|
|
1958
1978
|
/** @returns {string} */
|
|
@@ -1970,6 +1990,11 @@ export class PrivateKeyWASM {
|
|
|
1970
1990
|
static fromWIF(wif: string): PrivateKeyWASM;
|
|
1971
1991
|
/** @returns {Uint8Array<ArrayBufferLike>} */
|
|
1972
1992
|
bytes(): Uint8Array;
|
|
1993
|
+
/**
|
|
1994
|
+
* @param {Uint8Array<ArrayBufferLike>} data_hash
|
|
1995
|
+
* @returns {Uint8Array<ArrayBufferLike>}
|
|
1996
|
+
*/
|
|
1997
|
+
signHash(data_hash: Uint8Array): Uint8Array;
|
|
1973
1998
|
static readonly __struct: string;
|
|
1974
1999
|
readonly __type: string;
|
|
1975
2000
|
}
|
|
@@ -3330,19 +3355,19 @@ export interface InitOutput {
|
|
|
3330
3355
|
readonly verifyTotalCreditsProof: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3331
3356
|
readonly verifyVotePollVoteStateProof: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
3332
3357
|
readonly __wbg_verifiedidentitynoncewasm_free: (a: number, b: number) => void;
|
|
3333
|
-
readonly __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
|
|
3334
|
-
readonly __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
|
|
3335
3358
|
readonly __wbg_verifiedtokentotalsupplywasm_free: (a: number, b: number) => void;
|
|
3359
|
+
readonly __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
|
|
3360
|
+
readonly __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
|
|
3336
3361
|
readonly __wbg_verifiedidentitybyuniquekeyhashwasm_free: (a: number, b: number) => void;
|
|
3337
3362
|
readonly __wbg_verifiedtokensbalancesforidentitywasm_free: (a: number, b: number) => void;
|
|
3338
3363
|
readonly verifiedtokensbalancesforidentitywasm_root_hash: (a: number) => number;
|
|
3339
3364
|
readonly verifiedtokensbalancesforidentitywasm_balances: (a: number) => number;
|
|
3340
|
-
readonly verifiedidentitynoncewasm_root_hash: (a: number) => number;
|
|
3341
|
-
readonly verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
|
|
3342
3365
|
readonly verifiedidentitybyuniquekeyhashwasm_root_hash: (a: number) => number;
|
|
3343
3366
|
readonly verifiedidentitybyuniquekeyhashwasm_identity: (a: number) => number;
|
|
3344
3367
|
readonly verifiedidentitycontractnoncewasm_root_hash: (a: number) => number;
|
|
3345
3368
|
readonly verifiedidentitycontractnoncewasm_contract_nonce: (a: number, b: number) => void;
|
|
3369
|
+
readonly verifiedidentitynoncewasm_root_hash: (a: number) => number;
|
|
3370
|
+
readonly verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
|
|
3346
3371
|
readonly __wbg_partialidentitywasm_free: (a: number, b: number) => void;
|
|
3347
3372
|
readonly partialidentitywasm_balance: (a: number, b: number) => void;
|
|
3348
3373
|
readonly partialidentitywasm_id: (a: number) => number;
|
|
@@ -3414,7 +3439,6 @@ export interface InitOutput {
|
|
|
3414
3439
|
readonly __wbg_identitycreatetransitionwasm_free: (a: number, b: number) => void;
|
|
3415
3440
|
readonly __wbg_identitycredittransferwasm_free: (a: number, b: number) => void;
|
|
3416
3441
|
readonly __wbg_identitycreditwithdrawaltransitionwasm_free: (a: number, b: number) => void;
|
|
3417
|
-
readonly __wbg_identitypublickeyincreationwasm_free: (a: number, b: number) => void;
|
|
3418
3442
|
readonly __wbg_identitytopuptransitionwasm_free: (a: number, b: number) => void;
|
|
3419
3443
|
readonly __wbg_identityupdatetransitionwasm_free: (a: number, b: number) => void;
|
|
3420
3444
|
readonly identitycreatetransitionwasm_bytes: (a: number, b: number) => void;
|
|
@@ -3496,27 +3520,6 @@ export interface InitOutput {
|
|
|
3496
3520
|
readonly identitycreditwithdrawaltransitionwasm_struct_name: (a: number) => void;
|
|
3497
3521
|
readonly identitycreditwithdrawaltransitionwasm_toStateTransition: (a: number) => number;
|
|
3498
3522
|
readonly identitycreditwithdrawaltransitionwasm_type_name: (a: number, b: number) => void;
|
|
3499
|
-
readonly identitypublickeyincreationwasm_getHash: (a: number, b: number) => void;
|
|
3500
|
-
readonly identitypublickeyincreationwasm_get_contract_bounds: (a: number) => number;
|
|
3501
|
-
readonly identitypublickeyincreationwasm_get_data: (a: number, b: number) => void;
|
|
3502
|
-
readonly identitypublickeyincreationwasm_get_key_id: (a: number) => number;
|
|
3503
|
-
readonly identitypublickeyincreationwasm_get_key_type: (a: number, b: number) => void;
|
|
3504
|
-
readonly identitypublickeyincreationwasm_get_purpose: (a: number, b: number) => void;
|
|
3505
|
-
readonly identitypublickeyincreationwasm_get_read_only: (a: number) => number;
|
|
3506
|
-
readonly identitypublickeyincreationwasm_get_security_level: (a: number, b: number) => void;
|
|
3507
|
-
readonly identitypublickeyincreationwasm_get_signature: (a: number, b: number) => void;
|
|
3508
|
-
readonly identitypublickeyincreationwasm_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3509
|
-
readonly identitypublickeyincreationwasm_set_contract_bounds: (a: number, b: number, c: number) => void;
|
|
3510
|
-
readonly identitypublickeyincreationwasm_set_data: (a: number, b: number, c: number) => void;
|
|
3511
|
-
readonly identitypublickeyincreationwasm_set_key_id: (a: number, b: number) => void;
|
|
3512
|
-
readonly identitypublickeyincreationwasm_set_key_type: (a: number, b: number, c: number) => void;
|
|
3513
|
-
readonly identitypublickeyincreationwasm_set_purpose: (a: number, b: number, c: number) => void;
|
|
3514
|
-
readonly identitypublickeyincreationwasm_set_read_only: (a: number, b: number) => void;
|
|
3515
|
-
readonly identitypublickeyincreationwasm_set_security_level: (a: number, b: number, c: number) => void;
|
|
3516
|
-
readonly identitypublickeyincreationwasm_set_signature: (a: number, b: number, c: number) => void;
|
|
3517
|
-
readonly identitypublickeyincreationwasm_struct_name: (a: number) => void;
|
|
3518
|
-
readonly identitypublickeyincreationwasm_toIdentityPublicKey: (a: number, b: number) => void;
|
|
3519
|
-
readonly identitypublickeyincreationwasm_type_name: (a: number, b: number) => void;
|
|
3520
3523
|
readonly identitytopuptransitionwasm_base64: (a: number, b: number) => void;
|
|
3521
3524
|
readonly identitytopuptransitionwasm_bytes: (a: number, b: number) => void;
|
|
3522
3525
|
readonly identitytopuptransitionwasm_fromBase64: (a: number, b: number, c: number) => void;
|
|
@@ -4042,20 +4045,20 @@ export interface InitOutput {
|
|
|
4042
4045
|
readonly tokenunfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4043
4046
|
readonly tokenfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4044
4047
|
readonly documentupdatepricetransitionwasm_new: (a: number, b: number, c: bigint, d: bigint, e: number) => void;
|
|
4045
|
-
readonly __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4046
4048
|
readonly __wbg_tokenemergencyactiontransitionwasm_free: (a: number, b: number) => void;
|
|
4047
|
-
readonly __wbg_tokenunfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4048
|
-
readonly __wbg_documentdeletetransitionwasm_free: (a: number, b: number) => void;
|
|
4049
4049
|
readonly __wbg_documentupdatepricetransitionwasm_free: (a: number, b: number) => void;
|
|
4050
|
-
readonly
|
|
4051
|
-
readonly
|
|
4052
|
-
readonly
|
|
4050
|
+
readonly __wbg_documentdeletetransitionwasm_free: (a: number, b: number) => void;
|
|
4051
|
+
readonly __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4052
|
+
readonly __wbg_tokenunfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
4053
4053
|
readonly documentupdatepricetransitionwasm_get_price: (a: number) => bigint;
|
|
4054
4054
|
readonly documentupdatepricetransitionwasm_get_base: (a: number) => number;
|
|
4055
|
-
readonly
|
|
4056
|
-
readonly
|
|
4057
|
-
readonly
|
|
4055
|
+
readonly tokenemergencyactiontransitionwasm_get_base: (a: number) => number;
|
|
4056
|
+
readonly tokenunfreezetransitionwasm_get_base: (a: number) => number;
|
|
4057
|
+
readonly tokenfreezetransitionwasm_get_base: (a: number) => number;
|
|
4058
4058
|
readonly tokenunfreezetransitionwasm_set_base: (a: number, b: number) => void;
|
|
4059
|
+
readonly tokenfreezetransitionwasm_set_base: (a: number, b: number) => void;
|
|
4060
|
+
readonly tokenemergencyactiontransitionwasm_set_base: (a: number, b: number) => void;
|
|
4061
|
+
readonly documentupdatepricetransitionwasm_set_price: (a: number, b: bigint) => void;
|
|
4059
4062
|
readonly __wbg_privateencryptednotewasm_free: (a: number, b: number) => void;
|
|
4060
4063
|
readonly privateencryptednotewasm_derivation_encryption_key_index: (a: number) => number;
|
|
4061
4064
|
readonly privateencryptednotewasm_new: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -4179,16 +4182,20 @@ export interface InitOutput {
|
|
|
4179
4182
|
readonly datacontractwasm_generateId: (a: number, b: number, c: bigint) => void;
|
|
4180
4183
|
readonly datacontractwasm_getConfig: (a: number, b: number) => void;
|
|
4181
4184
|
readonly datacontractwasm_getSchemas: (a: number, b: number) => void;
|
|
4185
|
+
readonly datacontractwasm_get_description: (a: number, b: number) => void;
|
|
4182
4186
|
readonly datacontractwasm_get_groups: (a: number, b: number) => void;
|
|
4183
4187
|
readonly datacontractwasm_get_id: (a: number) => number;
|
|
4188
|
+
readonly datacontractwasm_get_keywords: (a: number, b: number) => void;
|
|
4184
4189
|
readonly datacontractwasm_get_owner_id: (a: number) => number;
|
|
4185
4190
|
readonly datacontractwasm_get_tokens: (a: number, b: number) => void;
|
|
4186
4191
|
readonly datacontractwasm_get_version: (a: number) => number;
|
|
4187
4192
|
readonly datacontractwasm_hex: (a: number, b: number, c: number) => void;
|
|
4188
4193
|
readonly datacontractwasm_setConfig: (a: number, b: number, c: number, d: number) => void;
|
|
4189
4194
|
readonly datacontractwasm_setSchemas: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
4195
|
+
readonly datacontractwasm_set_description: (a: number, b: number, c: number) => void;
|
|
4190
4196
|
readonly datacontractwasm_set_groups: (a: number, b: number, c: number) => void;
|
|
4191
4197
|
readonly datacontractwasm_set_id: (a: number, b: number, c: number) => void;
|
|
4198
|
+
readonly datacontractwasm_set_keywords: (a: number, b: number, c: number) => void;
|
|
4192
4199
|
readonly datacontractwasm_set_owner_id: (a: number, b: number, c: number) => void;
|
|
4193
4200
|
readonly datacontractwasm_set_tokens: (a: number, b: number, c: number) => void;
|
|
4194
4201
|
readonly datacontractwasm_set_version: (a: number, b: number) => void;
|
|
@@ -4556,30 +4563,30 @@ export interface InitOutput {
|
|
|
4556
4563
|
readonly statetransitionwasm_struct_name: (a: number) => void;
|
|
4557
4564
|
readonly statetransitionwasm_type_name: (a: number, b: number) => void;
|
|
4558
4565
|
readonly statetransitionwasm_verifyPublicKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4559
|
-
readonly
|
|
4560
|
-
readonly privatekeywasm_WIF: (a: number, b: number) => void;
|
|
4561
|
-
readonly privatekeywasm_bytes: (a: number, b: number) => void;
|
|
4562
|
-
readonly privatekeywasm_fromBytes: (a: number, b: number, c: number, d: number) => void;
|
|
4563
|
-
readonly privatekeywasm_fromHex: (a: number, b: number, c: number, d: number) => void;
|
|
4564
|
-
readonly privatekeywasm_fromWIF: (a: number, b: number, c: number) => void;
|
|
4565
|
-
readonly privatekeywasm_getPublicKey: (a: number) => number;
|
|
4566
|
-
readonly privatekeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4567
|
-
readonly privatekeywasm_hex: (a: number, b: number) => void;
|
|
4568
|
-
readonly privatekeywasm_struct_name: (a: number) => void;
|
|
4569
|
-
readonly privatekeywasm_type_name: (a: number, b: number) => void;
|
|
4570
|
-
readonly __wbg_publickeywasm_free: (a: number, b: number) => void;
|
|
4571
|
-
readonly publickeywasm_bytes: (a: number, b: number) => void;
|
|
4572
|
-
readonly publickeywasm_compressed: (a: number) => number;
|
|
4573
|
-
readonly publickeywasm_fromBytes: (a: number, b: number, c: number) => void;
|
|
4574
|
-
readonly publickeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4575
|
-
readonly publickeywasm_hash160: (a: number, b: number) => void;
|
|
4576
|
-
readonly publickeywasm_inner: (a: number, b: number) => void;
|
|
4577
|
-
readonly publickeywasm_new: (a: number, b: number, c: number, d: number) => void;
|
|
4578
|
-
readonly publickeywasm_set_compressed: (a: number, b: number) => void;
|
|
4579
|
-
readonly publickeywasm_set_inner: (a: number, b: number, c: number, d: number) => void;
|
|
4580
|
-
readonly publickeywasm_struct_name: (a: number) => void;
|
|
4581
|
-
readonly publickeywasm_type_name: (a: number, b: number) => void;
|
|
4566
|
+
readonly __wbg_identitypublickeyincreationwasm_free: (a: number, b: number) => void;
|
|
4582
4567
|
readonly __wbg_identitypublickeywasm_free: (a: number, b: number) => void;
|
|
4568
|
+
readonly identitypublickeyincreationwasm_getHash: (a: number, b: number) => void;
|
|
4569
|
+
readonly identitypublickeyincreationwasm_get_contract_bounds: (a: number) => number;
|
|
4570
|
+
readonly identitypublickeyincreationwasm_get_data: (a: number, b: number) => void;
|
|
4571
|
+
readonly identitypublickeyincreationwasm_get_key_id: (a: number) => number;
|
|
4572
|
+
readonly identitypublickeyincreationwasm_get_key_type: (a: number, b: number) => void;
|
|
4573
|
+
readonly identitypublickeyincreationwasm_get_purpose: (a: number, b: number) => void;
|
|
4574
|
+
readonly identitypublickeyincreationwasm_get_read_only: (a: number) => number;
|
|
4575
|
+
readonly identitypublickeyincreationwasm_get_security_level: (a: number, b: number) => void;
|
|
4576
|
+
readonly identitypublickeyincreationwasm_get_signature: (a: number, b: number) => void;
|
|
4577
|
+
readonly identitypublickeyincreationwasm_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
4578
|
+
readonly identitypublickeyincreationwasm_set_contract_bounds: (a: number, b: number, c: number) => void;
|
|
4579
|
+
readonly identitypublickeyincreationwasm_set_data: (a: number, b: number, c: number) => void;
|
|
4580
|
+
readonly identitypublickeyincreationwasm_set_key_id: (a: number, b: number) => void;
|
|
4581
|
+
readonly identitypublickeyincreationwasm_set_key_type: (a: number, b: number, c: number) => void;
|
|
4582
|
+
readonly identitypublickeyincreationwasm_set_purpose: (a: number, b: number, c: number) => void;
|
|
4583
|
+
readonly identitypublickeyincreationwasm_set_read_only: (a: number, b: number) => void;
|
|
4584
|
+
readonly identitypublickeyincreationwasm_set_security_level: (a: number, b: number, c: number) => void;
|
|
4585
|
+
readonly identitypublickeyincreationwasm_set_signature: (a: number, b: number, c: number) => void;
|
|
4586
|
+
readonly identitypublickeyincreationwasm_struct_name: (a: number) => void;
|
|
4587
|
+
readonly identitypublickeyincreationwasm_toIdentityPublicKey: (a: number, b: number) => void;
|
|
4588
|
+
readonly identitypublickeyincreationwasm_type_name: (a: number, b: number) => void;
|
|
4589
|
+
readonly identitypublickeyincreationwasm_validatePrivateKey: (a: number, b: number, c: number, d: number) => void;
|
|
4583
4590
|
readonly identitypublickeywasm_base64: (a: number, b: number) => void;
|
|
4584
4591
|
readonly identitypublickeywasm_bytes: (a: number, b: number) => void;
|
|
4585
4592
|
readonly identitypublickeywasm_fromBase64: (a: number, b: number, c: number) => void;
|
|
@@ -4611,9 +4618,35 @@ export interface InitOutput {
|
|
|
4611
4618
|
readonly identitypublickeywasm_struct_name: (a: number) => void;
|
|
4612
4619
|
readonly identitypublickeywasm_type_name: (a: number, b: number) => void;
|
|
4613
4620
|
readonly identitypublickeywasm_validatePrivateKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4621
|
+
readonly identitypublickeywasm_validatePrivateKeyBytes: (a: number, b: number, c: number, d: number) => void;
|
|
4614
4622
|
readonly identitypublickeywasm_set_key_type_number: (a: number, b: number, c: number) => void;
|
|
4615
4623
|
readonly identitypublickeywasm_set_purpose_number: (a: number, b: number, c: number) => void;
|
|
4616
4624
|
readonly identitypublickeywasm_set_security_level_number: (a: number, b: number, c: number) => void;
|
|
4625
|
+
readonly __wbg_privatekeywasm_free: (a: number, b: number) => void;
|
|
4626
|
+
readonly privatekeywasm_WIF: (a: number, b: number) => void;
|
|
4627
|
+
readonly privatekeywasm_bytes: (a: number, b: number) => void;
|
|
4628
|
+
readonly privatekeywasm_fromBytes: (a: number, b: number, c: number, d: number) => void;
|
|
4629
|
+
readonly privatekeywasm_fromHex: (a: number, b: number, c: number, d: number) => void;
|
|
4630
|
+
readonly privatekeywasm_fromWIF: (a: number, b: number, c: number) => void;
|
|
4631
|
+
readonly privatekeywasm_getPublicKey: (a: number) => number;
|
|
4632
|
+
readonly privatekeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4633
|
+
readonly privatekeywasm_hex: (a: number, b: number) => void;
|
|
4634
|
+
readonly privatekeywasm_sign: (a: number, b: number, c: number, d: number) => void;
|
|
4635
|
+
readonly privatekeywasm_signHash: (a: number, b: number, c: number, d: number) => void;
|
|
4636
|
+
readonly privatekeywasm_struct_name: (a: number) => void;
|
|
4637
|
+
readonly privatekeywasm_type_name: (a: number, b: number) => void;
|
|
4638
|
+
readonly __wbg_publickeywasm_free: (a: number, b: number) => void;
|
|
4639
|
+
readonly publickeywasm_bytes: (a: number, b: number) => void;
|
|
4640
|
+
readonly publickeywasm_compressed: (a: number) => number;
|
|
4641
|
+
readonly publickeywasm_fromBytes: (a: number, b: number, c: number) => void;
|
|
4642
|
+
readonly publickeywasm_getPublicKeyHash: (a: number, b: number) => void;
|
|
4643
|
+
readonly publickeywasm_hash160: (a: number, b: number) => void;
|
|
4644
|
+
readonly publickeywasm_inner: (a: number, b: number) => void;
|
|
4645
|
+
readonly publickeywasm_new: (a: number, b: number, c: number, d: number) => void;
|
|
4646
|
+
readonly publickeywasm_set_compressed: (a: number, b: number) => void;
|
|
4647
|
+
readonly publickeywasm_set_inner: (a: number, b: number, c: number, d: number) => void;
|
|
4648
|
+
readonly publickeywasm_struct_name: (a: number) => void;
|
|
4649
|
+
readonly publickeywasm_type_name: (a: number, b: number) => void;
|
|
4617
4650
|
readonly __wbg_contractboundswasm_free: (a: number, b: number) => void;
|
|
4618
4651
|
readonly contractboundswasm_SingleContract: (a: number, b: number) => void;
|
|
4619
4652
|
readonly contractboundswasm_SingleContractDocumentType: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -4069,6 +4069,22 @@ export class DataContractWASM {
|
|
|
4069
4069
|
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
|
+
/**
|
|
4073
|
+
* @returns {string[]}
|
|
4074
|
+
*/
|
|
4075
|
+
get keywords() {
|
|
4076
|
+
try {
|
|
4077
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4078
|
+
wasm.datacontractwasm_get_keywords(retptr, this.__wbg_ptr);
|
|
4079
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4080
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4081
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
4082
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
4083
|
+
return v1;
|
|
4084
|
+
} finally {
|
|
4085
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
4072
4088
|
/**
|
|
4073
4089
|
* @returns {IdentifierWASM}
|
|
4074
4090
|
*/
|
|
@@ -4076,6 +4092,14 @@ export class DataContractWASM {
|
|
|
4076
4092
|
const ret = wasm.datacontractwasm_get_owner_id(this.__wbg_ptr);
|
|
4077
4093
|
return IdentifierWASM.__wrap(ret);
|
|
4078
4094
|
}
|
|
4095
|
+
/**
|
|
4096
|
+
* @param {string[]} keywords
|
|
4097
|
+
*/
|
|
4098
|
+
set keywords(keywords) {
|
|
4099
|
+
const ptr0 = passArrayJsValueToWasm0(keywords, wasm.__wbindgen_export2);
|
|
4100
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4101
|
+
wasm.datacontractwasm_set_keywords(this.__wbg_ptr, ptr0, len0);
|
|
4102
|
+
}
|
|
4079
4103
|
/**
|
|
4080
4104
|
* @param {any} js_owner_id
|
|
4081
4105
|
*/
|
|
@@ -4123,6 +4147,33 @@ export class DataContractWASM {
|
|
|
4123
4147
|
heap[stack_pointer++] = undefined;
|
|
4124
4148
|
}
|
|
4125
4149
|
}
|
|
4150
|
+
/**
|
|
4151
|
+
* @returns {string | undefined}
|
|
4152
|
+
*/
|
|
4153
|
+
get description() {
|
|
4154
|
+
try {
|
|
4155
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4156
|
+
wasm.datacontractwasm_get_description(retptr, this.__wbg_ptr);
|
|
4157
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4158
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4159
|
+
let v1;
|
|
4160
|
+
if (r0 !== 0) {
|
|
4161
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
4162
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
4163
|
+
}
|
|
4164
|
+
return v1;
|
|
4165
|
+
} finally {
|
|
4166
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
/**
|
|
4170
|
+
* @param {string | null} [description]
|
|
4171
|
+
*/
|
|
4172
|
+
set description(description) {
|
|
4173
|
+
var ptr0 = isLikeNone(description) ? 0 : passStringToWasm0(description, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
|
|
4174
|
+
var len0 = WASM_VECTOR_LEN;
|
|
4175
|
+
wasm.datacontractwasm_set_description(this.__wbg_ptr, ptr0, len0);
|
|
4176
|
+
}
|
|
4126
4177
|
/**
|
|
4127
4178
|
* @returns {IdentifierWASM}
|
|
4128
4179
|
*/
|
|
@@ -10005,6 +10056,27 @@ export class IdentityPublicKeyInCreationWASM {
|
|
|
10005
10056
|
heap[stack_pointer++] = undefined;
|
|
10006
10057
|
}
|
|
10007
10058
|
}
|
|
10059
|
+
/**
|
|
10060
|
+
* @param {PrivateKeyWASM} private_key
|
|
10061
|
+
* @param {any} js_network
|
|
10062
|
+
* @returns {boolean}
|
|
10063
|
+
*/
|
|
10064
|
+
validatePrivateKey(private_key, js_network) {
|
|
10065
|
+
try {
|
|
10066
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10067
|
+
_assertClass(private_key, PrivateKeyWASM);
|
|
10068
|
+
wasm.identitypublickeyincreationwasm_validatePrivateKey(retptr, this.__wbg_ptr, private_key.__wbg_ptr, addHeapObject(js_network));
|
|
10069
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10070
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10071
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10072
|
+
if (r2) {
|
|
10073
|
+
throw takeObject(r1);
|
|
10074
|
+
}
|
|
10075
|
+
return r0 !== 0;
|
|
10076
|
+
} finally {
|
|
10077
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10078
|
+
}
|
|
10079
|
+
}
|
|
10008
10080
|
/**
|
|
10009
10081
|
* @returns {IdentityPublicKeyWASM}
|
|
10010
10082
|
*/
|
|
@@ -10500,6 +10572,27 @@ export class IdentityPublicKeyWASM {
|
|
|
10500
10572
|
heap[stack_pointer++] = undefined;
|
|
10501
10573
|
}
|
|
10502
10574
|
}
|
|
10575
|
+
/**
|
|
10576
|
+
* @param {PrivateKeyWASM} private_key
|
|
10577
|
+
* @param {any} js_network
|
|
10578
|
+
* @returns {boolean}
|
|
10579
|
+
*/
|
|
10580
|
+
validatePrivateKeyBytes(private_key, js_network) {
|
|
10581
|
+
try {
|
|
10582
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10583
|
+
_assertClass(private_key, PrivateKeyWASM);
|
|
10584
|
+
wasm.identitypublickeywasm_validatePrivateKeyBytes(retptr, this.__wbg_ptr, private_key.__wbg_ptr, addHeapObject(js_network));
|
|
10585
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10586
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10587
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10588
|
+
if (r2) {
|
|
10589
|
+
throw takeObject(r1);
|
|
10590
|
+
}
|
|
10591
|
+
return r0 !== 0;
|
|
10592
|
+
} finally {
|
|
10593
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10594
|
+
}
|
|
10595
|
+
}
|
|
10503
10596
|
/**
|
|
10504
10597
|
* @param {number} id
|
|
10505
10598
|
* @param {any} js_purpose
|
|
@@ -10560,27 +10653,6 @@ export class IdentityPublicKeyWASM {
|
|
|
10560
10653
|
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
10561
10654
|
}
|
|
10562
10655
|
}
|
|
10563
|
-
/**
|
|
10564
|
-
* @returns {Uint8Array}
|
|
10565
|
-
*/
|
|
10566
|
-
bytes() {
|
|
10567
|
-
try {
|
|
10568
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10569
|
-
wasm.identitypublickeywasm_bytes(retptr, this.__wbg_ptr);
|
|
10570
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10571
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10572
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10573
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
10574
|
-
if (r3) {
|
|
10575
|
-
throw takeObject(r2);
|
|
10576
|
-
}
|
|
10577
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
10578
|
-
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
10579
|
-
return v1;
|
|
10580
|
-
} finally {
|
|
10581
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10582
|
-
}
|
|
10583
|
-
}
|
|
10584
10656
|
/**
|
|
10585
10657
|
* @param {string} hex
|
|
10586
10658
|
* @returns {IdentityPublicKeyWASM}
|
|
@@ -10639,6 +10711,27 @@ export class IdentityPublicKeyWASM {
|
|
|
10639
10711
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10640
10712
|
}
|
|
10641
10713
|
}
|
|
10714
|
+
/**
|
|
10715
|
+
* @returns {Uint8Array}
|
|
10716
|
+
*/
|
|
10717
|
+
bytes() {
|
|
10718
|
+
try {
|
|
10719
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10720
|
+
wasm.identitypublickeywasm_bytes(retptr, this.__wbg_ptr);
|
|
10721
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10722
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10723
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10724
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
10725
|
+
if (r3) {
|
|
10726
|
+
throw takeObject(r2);
|
|
10727
|
+
}
|
|
10728
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
10729
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
10730
|
+
return v1;
|
|
10731
|
+
} finally {
|
|
10732
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10642
10735
|
/**
|
|
10643
10736
|
* @returns {boolean}
|
|
10644
10737
|
*/
|
|
@@ -13458,6 +13551,30 @@ export class PrivateKeyWASM {
|
|
|
13458
13551
|
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
13459
13552
|
}
|
|
13460
13553
|
}
|
|
13554
|
+
/**
|
|
13555
|
+
* @param {Uint8Array} data
|
|
13556
|
+
* @returns {Uint8Array}
|
|
13557
|
+
*/
|
|
13558
|
+
sign(data) {
|
|
13559
|
+
try {
|
|
13560
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13561
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export2);
|
|
13562
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13563
|
+
wasm.privatekeywasm_sign(retptr, this.__wbg_ptr, ptr0, len0);
|
|
13564
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13565
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13566
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13567
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
13568
|
+
if (r3) {
|
|
13569
|
+
throw takeObject(r2);
|
|
13570
|
+
}
|
|
13571
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
13572
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
13573
|
+
return v2;
|
|
13574
|
+
} finally {
|
|
13575
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13576
|
+
}
|
|
13577
|
+
}
|
|
13461
13578
|
/**
|
|
13462
13579
|
* @returns {string}
|
|
13463
13580
|
*/
|
|
@@ -13556,6 +13673,30 @@ export class PrivateKeyWASM {
|
|
|
13556
13673
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13557
13674
|
}
|
|
13558
13675
|
}
|
|
13676
|
+
/**
|
|
13677
|
+
* @param {Uint8Array} data_hash
|
|
13678
|
+
* @returns {Uint8Array}
|
|
13679
|
+
*/
|
|
13680
|
+
signHash(data_hash) {
|
|
13681
|
+
try {
|
|
13682
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13683
|
+
const ptr0 = passArray8ToWasm0(data_hash, wasm.__wbindgen_export2);
|
|
13684
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13685
|
+
wasm.privatekeywasm_signHash(retptr, this.__wbg_ptr, ptr0, len0);
|
|
13686
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13687
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13688
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13689
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
13690
|
+
if (r3) {
|
|
13691
|
+
throw takeObject(r2);
|
|
13692
|
+
}
|
|
13693
|
+
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
13694
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
13695
|
+
return v2;
|
|
13696
|
+
} finally {
|
|
13697
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13698
|
+
}
|
|
13699
|
+
}
|
|
13559
13700
|
/**
|
|
13560
13701
|
* @returns {string}
|
|
13561
13702
|
*/
|