pshenmic-dpp 1.1.0-dev.1 → 1.1.0-dev.3
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/index.d.ts +1 -0
- package/dist/wasm/pshenmic_dpp.d.ts +53 -36
- package/dist/wasm/pshenmic_dpp.js +233 -94
- package/dist/wasm/pshenmic_dpp_bg.js +1 -1
- package/dist/wasm/pshenmic_dpp_bg.wasm.d.ts +42 -36
- package/dist/wasm/snippets/pshenmic_dpp_utils-23ab7381b198778d/stringify.js +7 -0
- package/package.json +1 -1
package/dist/wasm/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export function verifyEpochsInfoProof(proof: Uint8Array, current_epoch: number,
|
|
|
15
15
|
export function verifyTotalCreditsProof(proof: Uint8Array, core_subsidy_halving_interval: number, activation_core_height: number, current_core_height: number, js_platform_version: any): VerifiedTotalCreditsWASM;
|
|
16
16
|
export function verifyTokenBalancesForIdentitiesProof(proof: Uint8Array, js_token_id: any, is_proof_subset: boolean, js_identities: any, js_platform_version: any): VerifiedTokenBalancesForIdentitiesWASM;
|
|
17
17
|
export function verifyTokenContractInfoProof(proof: Uint8Array, js_token_id: any, verify_subset_of_proof: boolean, js_platform_version: any): VerifiedTokenContractInfoWASM;
|
|
18
|
+
export function verifyTokenDirectPurchasePrices(proof: Uint8Array, js_token_ids: any, verify_subset_of_proof: boolean, js_platform_version: any): VerifiedTokenDirectPurchasePrices;
|
|
18
19
|
export function verifyTokenTotalSupplyProof(proof: Uint8Array, js_token_id: any, verify_subset_of_proof: boolean, js_platform_version: any): VerifiedTokenTotalSupplyWASM;
|
|
19
20
|
export function verifyTokensBalancesForIdentityProof(proof: Uint8Array, js_token_ids: any, js_identity_id: any, verify_subset_of_proof: boolean, js_platform_version: any): VerifiedTokensBalancesForIdentityWASM;
|
|
20
21
|
export enum ActionGoalWASM {
|
|
@@ -2976,6 +2977,16 @@ export class VerifiedTokenContractInfoWASM {
|
|
|
2976
2977
|
readonly rootHash: Uint8Array;
|
|
2977
2978
|
readonly contractInfo: TokenContractInfoWASM | undefined;
|
|
2978
2979
|
}
|
|
2980
|
+
export class VerifiedTokenDirectPurchasePrices {
|
|
2981
|
+
/** @returns {VerifiedTokenDirectPurchasePrices} */
|
|
2982
|
+
private constructor();
|
|
2983
|
+
/** @ignore */
|
|
2984
|
+
free(): void;
|
|
2985
|
+
readonly __type: string;
|
|
2986
|
+
static readonly __struct: string;
|
|
2987
|
+
readonly rootHash: Uint8Array;
|
|
2988
|
+
readonly prices: Array<any> | undefined;
|
|
2989
|
+
}
|
|
2979
2990
|
export class VerifiedTokenTotalSupplyWASM {
|
|
2980
2991
|
/** @returns {VerifiedTokenTotalSupplyWASM} */
|
|
2981
2992
|
private constructor();
|
|
@@ -3177,6 +3188,12 @@ export interface InitOutput {
|
|
|
3177
3188
|
readonly verifiedtokencontractinfowasm_root_hash: (a: number) => number;
|
|
3178
3189
|
readonly verifiedtokencontractinfowasm_get_contract_info: (a: number) => number;
|
|
3179
3190
|
readonly verifyTokenContractInfoProof: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3191
|
+
readonly __wbg_verifiedtokendirectpurchaseprices_free: (a: number, b: number) => void;
|
|
3192
|
+
readonly verifiedtokendirectpurchaseprices_type_name: (a: number, b: number) => void;
|
|
3193
|
+
readonly verifiedtokendirectpurchaseprices_struct_name: (a: number) => void;
|
|
3194
|
+
readonly verifiedtokendirectpurchaseprices_root_hash: (a: number) => number;
|
|
3195
|
+
readonly verifiedtokendirectpurchaseprices_prices: (a: number, b: number) => void;
|
|
3196
|
+
readonly verifyTokenDirectPurchasePrices: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3180
3197
|
readonly __wbg_totalsingletokenbalancewasm_free: (a: number, b: number) => void;
|
|
3181
3198
|
readonly totalsingletokenbalancewasm_type_name: (a: number, b: number) => void;
|
|
3182
3199
|
readonly totalsingletokenbalancewasm_struct_name: (a: number) => void;
|
|
@@ -3190,20 +3207,20 @@ export interface InitOutput {
|
|
|
3190
3207
|
readonly verifiedtokensbalancesforidentitywasm_type_name: (a: number, b: number) => void;
|
|
3191
3208
|
readonly verifiedtokensbalancesforidentitywasm_struct_name: (a: number) => void;
|
|
3192
3209
|
readonly verifyTokensBalancesForIdentityProof: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3193
|
-
readonly
|
|
3210
|
+
readonly __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
|
|
3194
3211
|
readonly __wbg_verifiedidentitynoncewasm_free: (a: number, b: number) => void;
|
|
3212
|
+
readonly __wbg_verifiedtokentotalsupplywasm_free: (a: number, b: number) => void;
|
|
3195
3213
|
readonly __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
|
|
3196
|
-
readonly __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
|
|
3197
3214
|
readonly __wbg_verifiedtokensbalancesforidentitywasm_free: (a: number, b: number) => void;
|
|
3198
3215
|
readonly __wbg_verifiedidentitybyuniquekeyhashwasm_free: (a: number, b: number) => void;
|
|
3199
|
-
readonly verifiedidentitycontractnoncewasm_contract_nonce: (a: number, b: number) => void;
|
|
3200
|
-
readonly verifiedidentitycontractnoncewasm_root_hash: (a: number) => number;
|
|
3201
3216
|
readonly verifiedtokensbalancesforidentitywasm_balances: (a: number) => number;
|
|
3202
3217
|
readonly verifiedtokensbalancesforidentitywasm_root_hash: (a: number) => number;
|
|
3203
|
-
readonly verifiedidentitybyuniquekeyhashwasm_identity: (a: number) => number;
|
|
3204
|
-
readonly verifiedidentitybyuniquekeyhashwasm_root_hash: (a: number) => number;
|
|
3205
3218
|
readonly verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
|
|
3206
3219
|
readonly verifiedidentitynoncewasm_root_hash: (a: number) => number;
|
|
3220
|
+
readonly verifiedidentitybyuniquekeyhashwasm_identity: (a: number) => number;
|
|
3221
|
+
readonly verifiedidentitybyuniquekeyhashwasm_root_hash: (a: number) => number;
|
|
3222
|
+
readonly verifiedidentitycontractnoncewasm_contract_nonce: (a: number, b: number) => void;
|
|
3223
|
+
readonly verifiedidentitycontractnoncewasm_root_hash: (a: number) => number;
|
|
3207
3224
|
readonly __wbg_partialidentitywasm_free: (a: number, b: number) => void;
|
|
3208
3225
|
readonly partialidentitywasm_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number) => void;
|
|
3209
3226
|
readonly partialidentitywasm_id: (a: number) => number;
|
|
@@ -3903,16 +3920,16 @@ export interface InitOutput {
|
|
|
3903
3920
|
readonly tokenpaymentinfowasm_set_minimum_token_cost: (a: number, b: number, c: bigint) => void;
|
|
3904
3921
|
readonly tokenfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3905
3922
|
readonly tokenunfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3906
|
-
readonly __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
3907
|
-
readonly __wbg_tokenemergencyactiontransitionwasm_free: (a: number, b: number) => void;
|
|
3908
3923
|
readonly __wbg_tokenunfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
3909
3924
|
readonly __wbg_documentupdatepricetransitionwasm_free: (a: number, b: number) => void;
|
|
3910
3925
|
readonly __wbg_documentdeletetransitionwasm_free: (a: number, b: number) => void;
|
|
3926
|
+
readonly __wbg_tokenemergencyactiontransitionwasm_free: (a: number, b: number) => void;
|
|
3927
|
+
readonly __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
|
|
3928
|
+
readonly tokenunfreezetransitionwasm_get_base: (a: number) => number;
|
|
3929
|
+
readonly tokenemergencyactiontransitionwasm_get_base: (a: number) => number;
|
|
3911
3930
|
readonly tokenfreezetransitionwasm_get_base: (a: number) => number;
|
|
3912
3931
|
readonly documentupdatepricetransitionwasm_get_price: (a: number) => bigint;
|
|
3913
3932
|
readonly documentupdatepricetransitionwasm_get_base: (a: number) => number;
|
|
3914
|
-
readonly tokenunfreezetransitionwasm_get_base: (a: number) => number;
|
|
3915
|
-
readonly tokenemergencyactiontransitionwasm_get_base: (a: number) => number;
|
|
3916
3933
|
readonly documentupdatepricetransitionwasm_set_price: (a: number, b: bigint) => void;
|
|
3917
3934
|
readonly tokenunfreezetransitionwasm_set_base: (a: number, b: number) => void;
|
|
3918
3935
|
readonly tokenemergencyactiontransitionwasm_set_base: (a: number, b: number) => void;
|
|
@@ -4323,23 +4340,22 @@ export interface InitOutput {
|
|
|
4323
4340
|
readonly __wbg_set_distributioninvertedlogarithmicwasm_o: (a: number, b: bigint) => void;
|
|
4324
4341
|
readonly __wbg_set_distributioninvertedlogarithmicwasm_b: (a: number, b: bigint) => void;
|
|
4325
4342
|
readonly __wbg_set_timebaseddistributionwasm_interval: (a: number, b: bigint) => void;
|
|
4343
|
+
readonly __wbg_set_distributionlogarithmicwasm_startMoment: (a: number, b: number, c: bigint) => void;
|
|
4326
4344
|
readonly __wbg_set_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number, c: bigint) => void;
|
|
4327
4345
|
readonly __wbg_set_distributionlinearwasm_startStep: (a: number, b: number, c: bigint) => void;
|
|
4346
|
+
readonly __wbg_set_distributionrandomwasm_min: (a: number, b: bigint) => void;
|
|
4347
|
+
readonly __wbg_get_distributionrandomwasm_min: (a: number) => bigint;
|
|
4328
4348
|
readonly __wbg_set_distributioninvertedlogarithmicwasm_startMoment: (a: number, b: number, c: bigint) => void;
|
|
4329
|
-
readonly __wbg_distributioninvertedlogarithmicwasm_free: (a: number, b: number) => void;
|
|
4330
4349
|
readonly __wbg_set_distributionpolynomialwasm_startMoment: (a: number, b: number, c: bigint) => void;
|
|
4331
|
-
readonly
|
|
4332
|
-
readonly
|
|
4333
|
-
readonly
|
|
4334
|
-
readonly
|
|
4335
|
-
readonly
|
|
4336
|
-
readonly
|
|
4337
|
-
readonly
|
|
4338
|
-
readonly
|
|
4339
|
-
readonly
|
|
4340
|
-
readonly __wbg_get_distributionlinearwasm_a: (a: number) => bigint;
|
|
4341
|
-
readonly __wbg_get_distributionstepdecreasingamountwasm_minValue: (a: number, b: number) => void;
|
|
4342
|
-
readonly __wbg_get_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number) => void;
|
|
4350
|
+
readonly __wbg_get_distributionpolynomialwasm_maxValue: (a: number, b: number) => void;
|
|
4351
|
+
readonly __wbg_get_distributionpolynomialwasm_minValue: (a: number, b: number) => void;
|
|
4352
|
+
readonly __wbg_get_distributionpolynomialwasm_b: (a: number) => bigint;
|
|
4353
|
+
readonly __wbg_get_distributionpolynomialwasm_startMoment: (a: number, b: number) => void;
|
|
4354
|
+
readonly __wbg_get_distributionpolynomialwasm_o: (a: number) => bigint;
|
|
4355
|
+
readonly __wbg_get_distributionpolynomialwasm_n: (a: number) => bigint;
|
|
4356
|
+
readonly __wbg_get_distributionpolynomialwasm_m: (a: number) => bigint;
|
|
4357
|
+
readonly __wbg_get_distributionpolynomialwasm_d: (a: number) => bigint;
|
|
4358
|
+
readonly __wbg_get_distributionpolynomialwasm_a: (a: number) => bigint;
|
|
4343
4359
|
readonly __wbg_get_timebaseddistributionwasm_interval: (a: number) => bigint;
|
|
4344
4360
|
readonly __wbg_get_distributionlogarithmicwasm_maxValue: (a: number, b: number) => void;
|
|
4345
4361
|
readonly __wbg_get_distributionlogarithmicwasm_minValue: (a: number, b: number) => void;
|
|
@@ -4350,15 +4366,12 @@ export interface InitOutput {
|
|
|
4350
4366
|
readonly __wbg_get_distributionlogarithmicwasm_m: (a: number) => bigint;
|
|
4351
4367
|
readonly __wbg_get_distributionlogarithmicwasm_d: (a: number) => bigint;
|
|
4352
4368
|
readonly __wbg_get_distributionlogarithmicwasm_a: (a: number) => bigint;
|
|
4353
|
-
readonly
|
|
4354
|
-
readonly
|
|
4355
|
-
readonly
|
|
4356
|
-
readonly
|
|
4357
|
-
readonly
|
|
4358
|
-
readonly
|
|
4359
|
-
readonly __wbg_get_distributionpolynomialwasm_m: (a: number) => bigint;
|
|
4360
|
-
readonly __wbg_get_distributionpolynomialwasm_d: (a: number) => bigint;
|
|
4361
|
-
readonly __wbg_get_distributionpolynomialwasm_a: (a: number) => bigint;
|
|
4369
|
+
readonly __wbg_get_distributionlinearwasm_maxValue: (a: number, b: number) => void;
|
|
4370
|
+
readonly __wbg_get_distributionlinearwasm_minValue: (a: number, b: number) => void;
|
|
4371
|
+
readonly __wbg_get_distributionlinearwasm_startingAmount: (a: number) => bigint;
|
|
4372
|
+
readonly __wbg_get_distributionlinearwasm_startStep: (a: number, b: number) => void;
|
|
4373
|
+
readonly __wbg_get_distributionlinearwasm_d: (a: number) => bigint;
|
|
4374
|
+
readonly __wbg_get_distributionlinearwasm_a: (a: number) => bigint;
|
|
4362
4375
|
readonly __wbg_get_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number) => void;
|
|
4363
4376
|
readonly __wbg_get_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number) => void;
|
|
4364
4377
|
readonly __wbg_get_distributioninvertedlogarithmicwasm_b: (a: number) => bigint;
|
|
@@ -4368,23 +4381,27 @@ export interface InitOutput {
|
|
|
4368
4381
|
readonly __wbg_get_distributioninvertedlogarithmicwasm_m: (a: number) => bigint;
|
|
4369
4382
|
readonly __wbg_get_distributioninvertedlogarithmicwasm_d: (a: number) => bigint;
|
|
4370
4383
|
readonly __wbg_get_distributioninvertedlogarithmicwasm_a: (a: number) => bigint;
|
|
4384
|
+
readonly __wbg_get_distributionstepdecreasingamountwasm_minValue: (a: number, b: number) => void;
|
|
4385
|
+
readonly __wbg_get_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number) => void;
|
|
4371
4386
|
readonly __wbg_set_distributionlinearwasm_maxValue: (a: number, b: number, c: bigint) => void;
|
|
4372
4387
|
readonly __wbg_set_distributionlinearwasm_minValue: (a: number, b: number, c: bigint) => void;
|
|
4388
|
+
readonly __wbg_set_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
|
|
4389
|
+
readonly __wbg_set_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number, c: bigint) => void;
|
|
4373
4390
|
readonly __wbg_set_distributionstepdecreasingamountwasm_minValue: (a: number, b: number, c: bigint) => void;
|
|
4374
4391
|
readonly __wbg_set_distributionpolynomialwasm_maxValue: (a: number, b: number, c: bigint) => void;
|
|
4375
4392
|
readonly __wbg_set_distributionpolynomialwasm_minValue: (a: number, b: number, c: bigint) => void;
|
|
4376
|
-
readonly __wbg_set_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
|
|
4377
|
-
readonly __wbg_set_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number, c: bigint) => void;
|
|
4378
4393
|
readonly __wbg_set_distributionlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
|
|
4379
4394
|
readonly __wbg_set_distributionlogarithmicwasm_minValue: (a: number, b: number, c: bigint) => void;
|
|
4380
|
-
readonly
|
|
4395
|
+
readonly __wbg_distributionpolynomialwasm_free: (a: number, b: number) => void;
|
|
4396
|
+
readonly __wbg_distributioninvertedlogarithmicwasm_free: (a: number, b: number) => void;
|
|
4397
|
+
readonly __wbg_distributionlogarithmicwasm_free: (a: number, b: number) => void;
|
|
4381
4398
|
readonly __wbg_tokenmarketplaceruleswasm_free: (a: number, b: number) => void;
|
|
4382
4399
|
readonly __wbg_timebaseddistributionwasm_free: (a: number, b: number) => void;
|
|
4383
4400
|
readonly epochbaseddistributionwasm_set_function: (a: number, b: number) => void;
|
|
4384
4401
|
readonly __wbg_epochbaseddistributionwasm_free: (a: number, b: number) => void;
|
|
4385
|
-
readonly timebaseddistributionwasm_set_function: (a: number, b: number) => void;
|
|
4386
4402
|
readonly timebaseddistributionwasm_get_function: (a: number) => number;
|
|
4387
4403
|
readonly epochbaseddistributionwasm_get_function: (a: number) => number;
|
|
4404
|
+
readonly timebaseddistributionwasm_set_function: (a: number, b: number) => void;
|
|
4388
4405
|
readonly __wbg_statetransitionwasm_free: (a: number, b: number) => void;
|
|
4389
4406
|
readonly statetransitionwasm_type_name: (a: number, b: number) => void;
|
|
4390
4407
|
readonly statetransitionwasm_struct_name: (a: number) => void;
|