pshenmic-dpp 1.0.11 → 1.0.13-rc.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.
- package/dist/wasm/pshenmic_dpp.d.ts +10 -18
- package/dist/wasm/pshenmic_dpp.js +12 -12
- package/dist/wasm/pshenmic_dpp_bg.js +1 -1
- package/dist/wasm/pshenmic_dpp_bg.wasm.d.ts +6 -6
- package/package.json +4 -3
- package/tests/{BatchTransition.spec.js → BatchTransition.spec.cjs} +1 -1
- package/tests/{DataContract.spec.js → DataContract.spec.cjs} +1 -1
- package/tests/{DataContractCreateStateTransition.spec.js → DataContractCreateStateTransition.spec.cjs} +1 -1
- package/tests/{DataContractUpdateStateTransition.spec.js → DataContractUpdateStateTransition.spec.cjs} +1 -1
- package/tests/{Document.spec.js → Document.spec.cjs} +1 -1
- package/tests/{DocumentTransition.spec.js → DocumentTransition.spec.cjs} +1 -1
- package/tests/{DocumentsTransitions.spec.js → DocumentsTransitions.spec.cjs} +1 -1
- package/tests/{Identity.spec.js → Identity.spec.cjs} +7 -7
- package/tests/{TokenBaseTransition.spec.js → TokenBaseTransition.spec.cjs} +1 -1
- package/tests/{TokensTransitions.spec.js → TokensTransitions.spec.cjs} +1 -1
- package/tests/mocks/DataContract/index.js +6 -6
- package/tests/mocks/Document/index.js +13 -11
- package/tests/mocks/Identity/index.js +12 -6
- package/tests/mocks/Locks/index.js +2 -5
- package/tests/mocks/PrivateKey/index.js +5 -5
- package/tests/mocks/PublicKey/index.js +12 -13
- package/tests/mocks/TokenConfiguration/index.js +4 -6
- package/tests/utils/hex.js +11 -12
- /package/tests/{AssetLockProof.spec.js → AssetLockProof.spec.cjs} +0 -0
- /package/tests/{AuthorizedActionTakers.spec.js → AuthorizedActionTakers.spec.cjs} +0 -0
- /package/tests/{ChainLockProof.spec.js → ChainLockProof.spec.cjs} +0 -0
- /package/tests/{ChangeControlRules.spec.js → ChangeControlRules.spec.cjs} +0 -0
- /package/tests/{CoreScript.spec.js → CoreScript.spec.cjs} +0 -0
- /package/tests/{DistributionFunction.spec.js → DistributionFunction.spec.cjs} +0 -0
- /package/tests/{Identifier.spec.js → Identifier.spec.cjs} +0 -0
- /package/tests/{IdentityCreateTransition.spec.js → IdentityCreateTransition.spec.cjs} +0 -0
- /package/tests/{IdentityCreditTransferTransition.spec.js → IdentityCreditTransferTransition.spec.cjs} +0 -0
- /package/tests/{IdentityCreditWithdrawalTransition.spec.js → IdentityCreditWithdrawalTransition.spec.cjs} +0 -0
- /package/tests/{IdentityPublicKey.spec.js → IdentityPublicKey.spec.cjs} +0 -0
- /package/tests/{IdentityTopUpTransition.spec.js → IdentityTopUpTransition.spec.cjs} +0 -0
- /package/tests/{IdentityUpdateTransition.spec.js → IdentityUpdateTransition.spec.cjs} +0 -0
- /package/tests/{InstantLockProof.spec.js → InstantLockProof.spec.cjs} +0 -0
- /package/tests/{OutPoint.spec.js → OutPoint.spec.cjs} +0 -0
- /package/tests/{PrivateKey.spec.js → PrivateKey.spec.cjs} +0 -0
- /package/tests/{PublicKeyInCreation.spec.js → PublicKeyInCreation.spec.cjs} +0 -0
- /package/tests/{RewardDistributionType.spec.js → RewardDistributionType.spec.cjs} +0 -0
- /package/tests/{TokenConfiguration.spec.js → TokenConfiguration.spec.cjs} +0 -0
- /package/tests/{TokenConfigurationConvention.spec.js → TokenConfigurationConvention.spec.cjs} +0 -0
- /package/tests/{TokenConfigurationLocalization.spec.js → TokenConfigurationLocalization.spec.cjs} +0 -0
- /package/tests/{TokenDistributionRecipient.spec.js → TokenDistributionRecipient.spec.cjs} +0 -0
- /package/tests/{TokenDistributionRules.spec.js → TokenDistributionRules.spec.cjs} +0 -0
- /package/tests/{TokenKeepsHistoryRules.spec.js → TokenKeepsHistoryRules.spec.cjs} +0 -0
- /package/tests/{TokenPerpetualDistribution.spec.js → TokenPerpetualDistribution.spec.cjs} +0 -0
- /package/tests/{TokenPreProgrammedDistribution.spec.js → TokenPreProgrammedDistribution.spec.cjs} +0 -0
- /package/tests/{TxOut.spec.js → TxOut.spec.cjs} +0 -0
|
@@ -1497,20 +1497,8 @@ export class IdentityWASM {
|
|
|
1497
1497
|
* @returns {IdentityWASM}
|
|
1498
1498
|
*/
|
|
1499
1499
|
constructor(js_identifier: any);
|
|
1500
|
-
/** @param {any} js_identifier */
|
|
1501
|
-
setId(js_identifier: any): void;
|
|
1502
|
-
/** @param {bigint} balance */
|
|
1503
|
-
setBalance(balance: bigint): void;
|
|
1504
|
-
/** @param {bigint} revision */
|
|
1505
|
-
setRevision(revision: bigint): void;
|
|
1506
1500
|
/** @param {IdentityPublicKeyWASM} public_key */
|
|
1507
1501
|
addPublicKey(public_key: IdentityPublicKeyWASM): void;
|
|
1508
|
-
/** @returns {IdentifierWASM} */
|
|
1509
|
-
getId(): IdentifierWASM;
|
|
1510
|
-
/** @returns {bigint} */
|
|
1511
|
-
getBalance(): bigint;
|
|
1512
|
-
/** @returns {bigint} */
|
|
1513
|
-
getRevision(): bigint;
|
|
1514
1502
|
/**
|
|
1515
1503
|
* @param {number} key_id
|
|
1516
1504
|
* @returns {IdentityPublicKeyWASM}
|
|
@@ -1540,6 +1528,10 @@ export class IdentityWASM {
|
|
|
1540
1528
|
*/
|
|
1541
1529
|
static fromBytes(bytes: Uint8Array): IdentityWASM;
|
|
1542
1530
|
readonly __type: string;
|
|
1531
|
+
get id(): IdentifierWASM;
|
|
1532
|
+
set id(value: any);
|
|
1533
|
+
balance: bigint;
|
|
1534
|
+
revision: bigint;
|
|
1543
1535
|
}
|
|
1544
1536
|
export class InstantAssetLockProofWASM {
|
|
1545
1537
|
/** @ignore */
|
|
@@ -2834,13 +2826,13 @@ export interface InitOutput {
|
|
|
2834
2826
|
readonly __wbg_identitywasm_free: (a: number, b: number) => void;
|
|
2835
2827
|
readonly identitywasm_type_name: (a: number, b: number) => void;
|
|
2836
2828
|
readonly identitywasm_new: (a: number, b: number) => void;
|
|
2837
|
-
readonly
|
|
2838
|
-
readonly
|
|
2839
|
-
readonly
|
|
2829
|
+
readonly identitywasm_set_id: (a: number, b: number, c: number) => void;
|
|
2830
|
+
readonly identitywasm_set_balance: (a: number, b: bigint) => void;
|
|
2831
|
+
readonly identitywasm_set_revision: (a: number, b: bigint) => void;
|
|
2840
2832
|
readonly identitywasm_addPublicKey: (a: number, b: number) => void;
|
|
2841
|
-
readonly
|
|
2842
|
-
readonly
|
|
2843
|
-
readonly
|
|
2833
|
+
readonly identitywasm_get_id: (a: number) => number;
|
|
2834
|
+
readonly identitywasm_get_balance: (a: number) => bigint;
|
|
2835
|
+
readonly identitywasm_get_revision: (a: number) => bigint;
|
|
2844
2836
|
readonly identitywasm_getPublicKeyById: (a: number, b: number) => number;
|
|
2845
2837
|
readonly identitywasm_getPublicKeys: (a: number, b: number) => void;
|
|
2846
2838
|
readonly identitywasm_fromHex: (a: number, b: number, c: number) => void;
|
|
@@ -9620,10 +9620,10 @@ export class IdentityWASM {
|
|
|
9620
9620
|
/**
|
|
9621
9621
|
* @param {any} js_identifier
|
|
9622
9622
|
*/
|
|
9623
|
-
|
|
9623
|
+
set id(js_identifier) {
|
|
9624
9624
|
try {
|
|
9625
9625
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9626
|
-
wasm.
|
|
9626
|
+
wasm.identitywasm_set_id(retptr, this.__wbg_ptr, addBorrowedObject(js_identifier));
|
|
9627
9627
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
9628
9628
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
9629
9629
|
if (r1) {
|
|
@@ -9637,14 +9637,14 @@ export class IdentityWASM {
|
|
|
9637
9637
|
/**
|
|
9638
9638
|
* @param {bigint} balance
|
|
9639
9639
|
*/
|
|
9640
|
-
|
|
9641
|
-
wasm.
|
|
9640
|
+
set balance(balance) {
|
|
9641
|
+
wasm.identitywasm_set_balance(this.__wbg_ptr, balance);
|
|
9642
9642
|
}
|
|
9643
9643
|
/**
|
|
9644
9644
|
* @param {bigint} revision
|
|
9645
9645
|
*/
|
|
9646
|
-
|
|
9647
|
-
wasm.
|
|
9646
|
+
set revision(revision) {
|
|
9647
|
+
wasm.identitywasm_set_revision(this.__wbg_ptr, revision);
|
|
9648
9648
|
}
|
|
9649
9649
|
/**
|
|
9650
9650
|
* @param {IdentityPublicKeyWASM} public_key
|
|
@@ -9656,22 +9656,22 @@ export class IdentityWASM {
|
|
|
9656
9656
|
/**
|
|
9657
9657
|
* @returns {IdentifierWASM}
|
|
9658
9658
|
*/
|
|
9659
|
-
|
|
9660
|
-
const ret = wasm.
|
|
9659
|
+
get id() {
|
|
9660
|
+
const ret = wasm.identitywasm_get_id(this.__wbg_ptr);
|
|
9661
9661
|
return IdentifierWASM.__wrap(ret);
|
|
9662
9662
|
}
|
|
9663
9663
|
/**
|
|
9664
9664
|
* @returns {bigint}
|
|
9665
9665
|
*/
|
|
9666
|
-
|
|
9667
|
-
const ret = wasm.
|
|
9666
|
+
get balance() {
|
|
9667
|
+
const ret = wasm.identitywasm_get_balance(this.__wbg_ptr);
|
|
9668
9668
|
return BigInt.asUintN(64, ret);
|
|
9669
9669
|
}
|
|
9670
9670
|
/**
|
|
9671
9671
|
* @returns {bigint}
|
|
9672
9672
|
*/
|
|
9673
|
-
|
|
9674
|
-
const ret = wasm.
|
|
9673
|
+
get revision() {
|
|
9674
|
+
const ret = wasm.identitywasm_get_revision(this.__wbg_ptr);
|
|
9675
9675
|
return BigInt.asUintN(64, ret);
|
|
9676
9676
|
}
|
|
9677
9677
|
/**
|