pshenmic-dpp 1.0.17 → 1.0.19

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.
@@ -2210,6 +2210,12 @@ export class TokenConfigurationWASM {
2210
2210
  * @returns {TokenConfigurationWASM}
2211
2211
  */
2212
2212
  constructor(conventions: TokenConfigurationConventionWASM, conventions_change_rules: ChangeControlRulesWASM, base_supply: bigint, max_supply: bigint | null | undefined, keeps_history: TokenKeepsHistoryRulesWASM, start_as_paused: boolean, allow_transfer_to_frozen_balance: boolean, max_supply_change_rules: ChangeControlRulesWASM, distribution_rules: TokenDistributionRulesWASM, marketplace_rules: TokenMarketplaceRulesWASM, manual_minting_rules: ChangeControlRulesWASM, manual_burning_rules: ChangeControlRulesWASM, freeze_rules: ChangeControlRulesWASM, unfreeze_rules: ChangeControlRulesWASM, destroy_frozen_funds_rules: ChangeControlRulesWASM, emergency_action_rules: ChangeControlRulesWASM, main_control_group: number | null | undefined, main_control_group_can_be_modified: AuthorizedActionTakersWASM, description?: string | null);
2213
+ /**
2214
+ * @param {any} js_contract_id
2215
+ * @param {number} token_pos
2216
+ * @returns {IdentifierWASM}
2217
+ */
2218
+ static calculateTokenId(js_contract_id: any, token_pos: number): IdentifierWASM;
2213
2219
  readonly __type: string;
2214
2220
  static readonly __struct: string;
2215
2221
  conventions: TokenConfigurationConventionWASM;
@@ -3647,6 +3653,7 @@ export interface InitOutput {
3647
3653
  readonly tokenconfigurationwasm_set_main_control_group: (a: number, b: number) => void;
3648
3654
  readonly tokenconfigurationwasm_set_main_control_group_can_be_modified: (a: number, b: number) => void;
3649
3655
  readonly tokenconfigurationwasm_set_description: (a: number, b: number, c: number) => void;
3656
+ readonly tokenconfigurationwasm_calculateTokenId: (a: number, b: number, c: number) => void;
3650
3657
  readonly __wbg_set_distributionpolynomialwasm_a: (a: number, b: bigint) => void;
3651
3658
  readonly __wbg_set_distributionpolynomialwasm_d: (a: number, b: bigint) => void;
3652
3659
  readonly __wbg_set_distributionpolynomialwasm_m: (a: number, b: bigint) => void;
@@ -14636,6 +14636,27 @@ export class TokenConfigurationWASM {
14636
14636
  var len0 = WASM_VECTOR_LEN;
14637
14637
  wasm.tokenconfigurationwasm_set_description(this.__wbg_ptr, ptr0, len0);
14638
14638
  }
14639
+ /**
14640
+ * @param {any} js_contract_id
14641
+ * @param {number} token_pos
14642
+ * @returns {IdentifierWASM}
14643
+ */
14644
+ static calculateTokenId(js_contract_id, token_pos) {
14645
+ try {
14646
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
14647
+ wasm.tokenconfigurationwasm_calculateTokenId(retptr, addBorrowedObject(js_contract_id), token_pos);
14648
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
14649
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
14650
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
14651
+ if (r2) {
14652
+ throw takeObject(r1);
14653
+ }
14654
+ return IdentifierWASM.__wrap(r0);
14655
+ } finally {
14656
+ wasm.__wbindgen_add_to_stack_pointer(16);
14657
+ heap[stack_pointer++] = undefined;
14658
+ }
14659
+ }
14639
14660
  }
14640
14661
 
14641
14662
  const TokenDestroyFrozenFundsTransitionWASMFinalization = (typeof FinalizationRegistry === 'undefined')