pshenmic-dpp 1.0.13 → 1.0.15
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.
|
@@ -225,6 +225,7 @@ export class BlockBasedDistributionWASM {
|
|
|
225
225
|
/** @ignore */
|
|
226
226
|
free(): void;
|
|
227
227
|
interval: bigint;
|
|
228
|
+
readonly __type: string;
|
|
228
229
|
function: DistributionFunctionWASM;
|
|
229
230
|
}
|
|
230
231
|
export class ChainAssetLockProofWASM {
|
|
@@ -1037,6 +1038,7 @@ export class EpochBasedDistributionWASM {
|
|
|
1037
1038
|
/** @ignore */
|
|
1038
1039
|
free(): void;
|
|
1039
1040
|
interval: number;
|
|
1041
|
+
readonly __type: string;
|
|
1040
1042
|
function: DistributionFunctionWASM;
|
|
1041
1043
|
}
|
|
1042
1044
|
export class GroupStateTransitionInfoWASM {
|
|
@@ -1856,6 +1858,7 @@ export class TimeBasedDistributionWASM {
|
|
|
1856
1858
|
/** @ignore */
|
|
1857
1859
|
free(): void;
|
|
1858
1860
|
interval: bigint;
|
|
1861
|
+
readonly __type: string;
|
|
1859
1862
|
function: DistributionFunctionWASM;
|
|
1860
1863
|
}
|
|
1861
1864
|
export class TokenBaseTransitionWASM {
|
|
@@ -2244,6 +2247,7 @@ export class TokenDistributionRulesWASM {
|
|
|
2244
2247
|
* @returns {TokenDistributionRulesWASM}
|
|
2245
2248
|
*/
|
|
2246
2249
|
constructor(js_perpetual_distribution: any, perpetual_distribution_rules: ChangeControlRulesWASM, js_pre_programmed_distribution: any, js_new_tokens_destination_identity: any, new_tokens_destination_identity_rules: ChangeControlRulesWASM, minting_allow_choosing_destination: boolean, minting_allow_choosing_destination_rules: ChangeControlRulesWASM, change_direct_purchase_pricing_rules: ChangeControlRulesWASM);
|
|
2250
|
+
readonly __type: string;
|
|
2247
2251
|
get perpetualDistribution(): TokenPerpetualDistributionWASM | undefined;
|
|
2248
2252
|
set perpetualDistribution(value: any);
|
|
2249
2253
|
perpetualDistributionRules: ChangeControlRulesWASM;
|
|
@@ -2320,6 +2324,7 @@ export class TokenMarketplaceRulesWASM {
|
|
|
2320
2324
|
* @returns {TokenMarketplaceRulesWASM}
|
|
2321
2325
|
*/
|
|
2322
2326
|
constructor(trade_mode: TokenTradeModeWASM, trade_mode_change_rules: ChangeControlRulesWASM);
|
|
2327
|
+
readonly __type: string;
|
|
2323
2328
|
tradeMode: TokenTradeModeWASM;
|
|
2324
2329
|
tradeModeChangeRules: ChangeControlRulesWASM;
|
|
2325
2330
|
}
|
|
@@ -3328,6 +3333,7 @@ export interface InitOutput {
|
|
|
3328
3333
|
readonly tokendistributionrecipientwasm_getType: (a: number, b: number) => void;
|
|
3329
3334
|
readonly tokendistributionrecipientwasm_getValue: (a: number) => number;
|
|
3330
3335
|
readonly __wbg_tokendistributionruleswasm_free: (a: number, b: number) => void;
|
|
3336
|
+
readonly tokendistributionruleswasm_type_name: (a: number, b: number) => void;
|
|
3331
3337
|
readonly tokendistributionruleswasm_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
3332
3338
|
readonly tokendistributionruleswasm_get_perpetual_distribution: (a: number) => number;
|
|
3333
3339
|
readonly tokendistributionruleswasm_get_perpetual_distribution_rules: (a: number) => number;
|
|
@@ -3417,6 +3423,7 @@ export interface InitOutput {
|
|
|
3417
3423
|
readonly tokenconfigurationlocalizationwasm_set_plural_form: (a: number, b: number, c: number) => void;
|
|
3418
3424
|
readonly tokenconfigurationlocalizationwasm_set_singular_form: (a: number, b: number, c: number) => void;
|
|
3419
3425
|
readonly tokenconfigurationlocalizationwasm_toJSON: (a: number, b: number) => void;
|
|
3426
|
+
readonly tokenmarketplaceruleswasm_type_name: (a: number, b: number) => void;
|
|
3420
3427
|
readonly tokenmarketplaceruleswasm_new: (a: number, b: number) => number;
|
|
3421
3428
|
readonly tokenmarketplaceruleswasm_trade_mode: (a: number) => number;
|
|
3422
3429
|
readonly tokenmarketplaceruleswasm_trade_mode_change_rules: (a: number) => number;
|
|
@@ -3445,8 +3452,11 @@ export interface InitOutput {
|
|
|
3445
3452
|
readonly __wbg_set_blockbaseddistributionwasm_interval: (a: number, b: bigint) => void;
|
|
3446
3453
|
readonly __wbg_get_epochbaseddistributionwasm_interval: (a: number) => number;
|
|
3447
3454
|
readonly __wbg_set_epochbaseddistributionwasm_interval: (a: number, b: number) => void;
|
|
3455
|
+
readonly blockbaseddistributionwasm_type_name: (a: number, b: number) => void;
|
|
3448
3456
|
readonly blockbaseddistributionwasm_get_function: (a: number) => number;
|
|
3449
3457
|
readonly blockbaseddistributionwasm_set_function: (a: number, b: number) => void;
|
|
3458
|
+
readonly timebaseddistributionwasm_type_name: (a: number, b: number) => void;
|
|
3459
|
+
readonly epochbaseddistributionwasm_type_name: (a: number, b: number) => void;
|
|
3450
3460
|
readonly __wbg_tokentrademodewasm_free: (a: number, b: number) => void;
|
|
3451
3461
|
readonly tokentrademodewasm_type_name: (a: number, b: number) => void;
|
|
3452
3462
|
readonly tokentrademodewasm_NotTradeable: () => number;
|
|
@@ -3572,9 +3582,9 @@ export interface InitOutput {
|
|
|
3572
3582
|
readonly __wbg_tokenmarketplaceruleswasm_free: (a: number, b: number) => void;
|
|
3573
3583
|
readonly __wbg_timebaseddistributionwasm_free: (a: number, b: number) => void;
|
|
3574
3584
|
readonly epochbaseddistributionwasm_set_function: (a: number, b: number) => void;
|
|
3575
|
-
readonly epochbaseddistributionwasm_get_function: (a: number) => number;
|
|
3576
3585
|
readonly __wbg_epochbaseddistributionwasm_free: (a: number, b: number) => void;
|
|
3577
3586
|
readonly timebaseddistributionwasm_set_function: (a: number, b: number) => void;
|
|
3587
|
+
readonly epochbaseddistributionwasm_get_function: (a: number) => number;
|
|
3578
3588
|
readonly timebaseddistributionwasm_get_function: (a: number) => number;
|
|
3579
3589
|
readonly __wbg_statetransitionwasm_free: (a: number, b: number) => void;
|
|
3580
3590
|
readonly statetransitionwasm_type_name: (a: number, b: number) => void;
|
|
@@ -210,7 +210,7 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
function _assertClass(instance, klass) {
|
|
213
|
-
if (!(instance
|
|
213
|
+
if (!(instance?.__type === klass.name)) {
|
|
214
214
|
throw new Error(`expected instance of ${klass.name}`);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
@@ -1293,6 +1293,25 @@ export class BlockBasedDistributionWASM {
|
|
|
1293
1293
|
set interval(arg0) {
|
|
1294
1294
|
wasm.__wbg_set_blockbaseddistributionwasm_interval(this.__wbg_ptr, arg0);
|
|
1295
1295
|
}
|
|
1296
|
+
/**
|
|
1297
|
+
* @returns {string}
|
|
1298
|
+
*/
|
|
1299
|
+
get __type() {
|
|
1300
|
+
let deferred1_0;
|
|
1301
|
+
let deferred1_1;
|
|
1302
|
+
try {
|
|
1303
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1304
|
+
wasm.blockbaseddistributionwasm_type_name(retptr, this.__wbg_ptr);
|
|
1305
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1306
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1307
|
+
deferred1_0 = r0;
|
|
1308
|
+
deferred1_1 = r1;
|
|
1309
|
+
return getStringFromWasm0(r0, r1);
|
|
1310
|
+
} finally {
|
|
1311
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1312
|
+
wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1296
1315
|
/**
|
|
1297
1316
|
* @returns {DistributionFunctionWASM}
|
|
1298
1317
|
*/
|
|
@@ -6240,6 +6259,25 @@ export class EpochBasedDistributionWASM {
|
|
|
6240
6259
|
set interval(arg0) {
|
|
6241
6260
|
wasm.__wbg_set_epochbaseddistributionwasm_interval(this.__wbg_ptr, arg0);
|
|
6242
6261
|
}
|
|
6262
|
+
/**
|
|
6263
|
+
* @returns {string}
|
|
6264
|
+
*/
|
|
6265
|
+
get __type() {
|
|
6266
|
+
let deferred1_0;
|
|
6267
|
+
let deferred1_1;
|
|
6268
|
+
try {
|
|
6269
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6270
|
+
wasm.epochbaseddistributionwasm_type_name(retptr, this.__wbg_ptr);
|
|
6271
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6272
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6273
|
+
deferred1_0 = r0;
|
|
6274
|
+
deferred1_1 = r1;
|
|
6275
|
+
return getStringFromWasm0(r0, r1);
|
|
6276
|
+
} finally {
|
|
6277
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6278
|
+
wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
|
|
6279
|
+
}
|
|
6280
|
+
}
|
|
6243
6281
|
/**
|
|
6244
6282
|
* @returns {DistributionFunctionWASM}
|
|
6245
6283
|
*/
|
|
@@ -11933,6 +11971,25 @@ export class TimeBasedDistributionWASM {
|
|
|
11933
11971
|
set interval(arg0) {
|
|
11934
11972
|
wasm.__wbg_set_blockbaseddistributionwasm_interval(this.__wbg_ptr, arg0);
|
|
11935
11973
|
}
|
|
11974
|
+
/**
|
|
11975
|
+
* @returns {string}
|
|
11976
|
+
*/
|
|
11977
|
+
get __type() {
|
|
11978
|
+
let deferred1_0;
|
|
11979
|
+
let deferred1_1;
|
|
11980
|
+
try {
|
|
11981
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11982
|
+
wasm.timebaseddistributionwasm_type_name(retptr, this.__wbg_ptr);
|
|
11983
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11984
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
11985
|
+
deferred1_0 = r0;
|
|
11986
|
+
deferred1_1 = r1;
|
|
11987
|
+
return getStringFromWasm0(r0, r1);
|
|
11988
|
+
} finally {
|
|
11989
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11990
|
+
wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
|
|
11991
|
+
}
|
|
11992
|
+
}
|
|
11936
11993
|
/**
|
|
11937
11994
|
* @returns {DistributionFunctionWASM}
|
|
11938
11995
|
*/
|
|
@@ -13912,6 +13969,25 @@ export class TokenDistributionRulesWASM {
|
|
|
13912
13969
|
const ptr = this.__destroy_into_raw();
|
|
13913
13970
|
wasm.__wbg_tokendistributionruleswasm_free(ptr, 0);
|
|
13914
13971
|
}
|
|
13972
|
+
/**
|
|
13973
|
+
* @returns {string}
|
|
13974
|
+
*/
|
|
13975
|
+
get __type() {
|
|
13976
|
+
let deferred1_0;
|
|
13977
|
+
let deferred1_1;
|
|
13978
|
+
try {
|
|
13979
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13980
|
+
wasm.tokendistributionruleswasm_type_name(retptr, this.__wbg_ptr);
|
|
13981
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13982
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13983
|
+
deferred1_0 = r0;
|
|
13984
|
+
deferred1_1 = r1;
|
|
13985
|
+
return getStringFromWasm0(r0, r1);
|
|
13986
|
+
} finally {
|
|
13987
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13988
|
+
wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
|
|
13989
|
+
}
|
|
13990
|
+
}
|
|
13915
13991
|
/**
|
|
13916
13992
|
* @param {any} js_perpetual_distribution
|
|
13917
13993
|
* @param {ChangeControlRulesWASM} perpetual_distribution_rules
|
|
@@ -14525,6 +14601,25 @@ export class TokenMarketplaceRulesWASM {
|
|
|
14525
14601
|
const ptr = this.__destroy_into_raw();
|
|
14526
14602
|
wasm.__wbg_tokenmarketplaceruleswasm_free(ptr, 0);
|
|
14527
14603
|
}
|
|
14604
|
+
/**
|
|
14605
|
+
* @returns {string}
|
|
14606
|
+
*/
|
|
14607
|
+
get __type() {
|
|
14608
|
+
let deferred1_0;
|
|
14609
|
+
let deferred1_1;
|
|
14610
|
+
try {
|
|
14611
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
14612
|
+
wasm.tokenmarketplaceruleswasm_type_name(retptr, this.__wbg_ptr);
|
|
14613
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
14614
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
14615
|
+
deferred1_0 = r0;
|
|
14616
|
+
deferred1_1 = r1;
|
|
14617
|
+
return getStringFromWasm0(r0, r1);
|
|
14618
|
+
} finally {
|
|
14619
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
14620
|
+
wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
|
|
14621
|
+
}
|
|
14622
|
+
}
|
|
14528
14623
|
/**
|
|
14529
14624
|
* @param {TokenTradeModeWASM} trade_mode
|
|
14530
14625
|
* @param {ChangeControlRulesWASM} trade_mode_change_rules
|