@dashevo/wasm-dpp2 3.0.0-dev.9 → 3.0.0-rc.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.
- package/dist/dpp.compressed.js +1 -1
- package/dist/dpp.d.ts +1166 -1062
- package/dist/dpp.js +1 -1
- package/dist/raw/wasm_dpp2.d.ts +1166 -1062
- package/dist/raw/wasm_dpp2.js +304 -72
- package/dist/raw/wasm_dpp2.no_url.js +304 -72
- package/dist/raw/wasm_dpp2_bg.wasm +0 -0
- package/dist/raw/wasm_dpp2_bg.wasm.d.ts +1075 -1061
- package/package.json +1 -1
package/dist/raw/wasm_dpp2.js
CHANGED
|
@@ -184,6 +184,35 @@ function debugString(val) {
|
|
|
184
184
|
return className;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
function takeFromExternrefTable0(idx) {
|
|
188
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
189
|
+
wasm.__externref_table_dealloc(idx);
|
|
190
|
+
return value;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Test helper: Convert a JsValue to a JSON-compatible JsValue.
|
|
194
|
+
*
|
|
195
|
+
* This function is exposed for testing purposes to validate the Map normalization
|
|
196
|
+
* and BigInt handling logic in unit tests. It calls `js_value_to_json` internally
|
|
197
|
+
* and converts the result back to a JsValue.
|
|
198
|
+
*
|
|
199
|
+
* # Example (JavaScript)
|
|
200
|
+
* ```javascript
|
|
201
|
+
* const map = new Map([['key', 'value']]);
|
|
202
|
+
* const json = testJsValueToJson(map);
|
|
203
|
+
* console.log(json); // { key: 'value' }
|
|
204
|
+
* ```
|
|
205
|
+
* @param {any} value
|
|
206
|
+
* @returns {any}
|
|
207
|
+
*/
|
|
208
|
+
export function testJsValueToJson(value) {
|
|
209
|
+
const ret = wasm.testJsValueToJson(value);
|
|
210
|
+
if (ret[2]) {
|
|
211
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
212
|
+
}
|
|
213
|
+
return takeFromExternrefTable0(ret[0]);
|
|
214
|
+
}
|
|
215
|
+
|
|
187
216
|
function passArray8ToWasm0(arg, malloc) {
|
|
188
217
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
189
218
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -191,12 +220,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
191
220
|
return ptr;
|
|
192
221
|
}
|
|
193
222
|
|
|
194
|
-
function takeFromExternrefTable0(idx) {
|
|
195
|
-
const value = wasm.__wbindgen_export_2.get(idx);
|
|
196
|
-
wasm.__externref_table_dealloc(idx);
|
|
197
|
-
return value;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
223
|
function _assertClass(instance, klass) {
|
|
201
224
|
if (!(instance instanceof klass)) {
|
|
202
225
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -234,6 +257,10 @@ function passArray32ToWasm0(arg, malloc) {
|
|
|
234
257
|
WASM_VECTOR_LEN = arg.length;
|
|
235
258
|
return ptr;
|
|
236
259
|
}
|
|
260
|
+
function __wbg_adapter_1538(arg0, arg1, arg2, arg3) {
|
|
261
|
+
wasm.closure1353_externref_shim(arg0, arg1, arg2, arg3);
|
|
262
|
+
}
|
|
263
|
+
|
|
237
264
|
/**
|
|
238
265
|
* @enum {0 | 1}
|
|
239
266
|
*/
|
|
@@ -7327,6 +7354,135 @@ export class GroupStateTransitionInfo {
|
|
|
7327
7354
|
}
|
|
7328
7355
|
}
|
|
7329
7356
|
|
|
7357
|
+
const GroupStateTransitionInfoStatusFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7358
|
+
? { register: () => {}, unregister: () => {} }
|
|
7359
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_groupstatetransitioninfostatus_free(ptr >>> 0, 1));
|
|
7360
|
+
/**
|
|
7361
|
+
* Wrapper for GroupStateTransitionInfoStatus enum.
|
|
7362
|
+
*
|
|
7363
|
+
* This represents the group action context for a state transition:
|
|
7364
|
+
* - Proposer: The identity proposing a new group action
|
|
7365
|
+
* - OtherSigner: The identity signing/voting on an existing group action
|
|
7366
|
+
*/
|
|
7367
|
+
export class GroupStateTransitionInfoStatus {
|
|
7368
|
+
|
|
7369
|
+
static __wrap(ptr) {
|
|
7370
|
+
ptr = ptr >>> 0;
|
|
7371
|
+
const obj = Object.create(GroupStateTransitionInfoStatus.prototype);
|
|
7372
|
+
obj.__wbg_ptr = ptr;
|
|
7373
|
+
GroupStateTransitionInfoStatusFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
7374
|
+
return obj;
|
|
7375
|
+
}
|
|
7376
|
+
|
|
7377
|
+
__destroy_into_raw() {
|
|
7378
|
+
const ptr = this.__wbg_ptr;
|
|
7379
|
+
this.__wbg_ptr = 0;
|
|
7380
|
+
GroupStateTransitionInfoStatusFinalization.unregister(this);
|
|
7381
|
+
return ptr;
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
free() {
|
|
7385
|
+
const ptr = this.__destroy_into_raw();
|
|
7386
|
+
wasm.__wbg_groupstatetransitioninfostatus_free(ptr, 0);
|
|
7387
|
+
}
|
|
7388
|
+
/**
|
|
7389
|
+
* Check if this is a proposer status.
|
|
7390
|
+
* @returns {boolean}
|
|
7391
|
+
*/
|
|
7392
|
+
get isProposer() {
|
|
7393
|
+
const ret = wasm.groupstatetransitioninfostatus_is_proposer(this.__wbg_ptr);
|
|
7394
|
+
return ret !== 0;
|
|
7395
|
+
}
|
|
7396
|
+
/**
|
|
7397
|
+
* @returns {string}
|
|
7398
|
+
*/
|
|
7399
|
+
static get __struct() {
|
|
7400
|
+
let deferred1_0;
|
|
7401
|
+
let deferred1_1;
|
|
7402
|
+
try {
|
|
7403
|
+
const ret = wasm.groupstatetransitioninfostatus_struct_name();
|
|
7404
|
+
deferred1_0 = ret[0];
|
|
7405
|
+
deferred1_1 = ret[1];
|
|
7406
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
7407
|
+
} finally {
|
|
7408
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
7409
|
+
}
|
|
7410
|
+
}
|
|
7411
|
+
/**
|
|
7412
|
+
* Create a new other signer status for voting on an existing group action.
|
|
7413
|
+
*
|
|
7414
|
+
* Use this when the identity is signing/voting on an action proposed by someone else.
|
|
7415
|
+
*
|
|
7416
|
+
* @param groupContractPosition - The position of the group in the contract
|
|
7417
|
+
* @param actionId - The ID of the action being voted on
|
|
7418
|
+
* @returns GroupStateTransitionInfoStatus for an other signer
|
|
7419
|
+
* @param {number} group_contract_position
|
|
7420
|
+
* @param {Identifier | Uint8Array | string} action_id
|
|
7421
|
+
* @returns {GroupStateTransitionInfoStatus}
|
|
7422
|
+
*/
|
|
7423
|
+
static otherSigner(group_contract_position, action_id) {
|
|
7424
|
+
const ret = wasm.groupstatetransitioninfostatus_otherSigner(group_contract_position, action_id);
|
|
7425
|
+
if (ret[2]) {
|
|
7426
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
7427
|
+
}
|
|
7428
|
+
return GroupStateTransitionInfoStatus.__wrap(ret[0]);
|
|
7429
|
+
}
|
|
7430
|
+
/**
|
|
7431
|
+
* Get the group contract position.
|
|
7432
|
+
* @returns {number}
|
|
7433
|
+
*/
|
|
7434
|
+
get groupContractPosition() {
|
|
7435
|
+
const ret = wasm.groupstatetransitioninfostatus_group_contract_position(this.__wbg_ptr);
|
|
7436
|
+
return ret;
|
|
7437
|
+
}
|
|
7438
|
+
/**
|
|
7439
|
+
* Convert to GroupStateTransitionInfo.
|
|
7440
|
+
* @returns {GroupStateTransitionInfo}
|
|
7441
|
+
*/
|
|
7442
|
+
toInfo() {
|
|
7443
|
+
const ret = wasm.groupstatetransitioninfostatus_toInfo(this.__wbg_ptr);
|
|
7444
|
+
return GroupStateTransitionInfo.__wrap(ret);
|
|
7445
|
+
}
|
|
7446
|
+
/**
|
|
7447
|
+
* Create a new proposer status for initiating a group action.
|
|
7448
|
+
*
|
|
7449
|
+
* Use this when the identity is proposing a new group action.
|
|
7450
|
+
*
|
|
7451
|
+
* @param groupContractPosition - The position of the group in the contract
|
|
7452
|
+
* @returns GroupStateTransitionInfoStatus for a proposer
|
|
7453
|
+
* @param {number} group_contract_position
|
|
7454
|
+
* @returns {GroupStateTransitionInfoStatus}
|
|
7455
|
+
*/
|
|
7456
|
+
static proposer(group_contract_position) {
|
|
7457
|
+
const ret = wasm.groupstatetransitioninfostatus_proposer(group_contract_position);
|
|
7458
|
+
return GroupStateTransitionInfoStatus.__wrap(ret);
|
|
7459
|
+
}
|
|
7460
|
+
/**
|
|
7461
|
+
* Get the action ID (only available for other signer status).
|
|
7462
|
+
* Returns null for proposer status.
|
|
7463
|
+
* @returns {Identifier | undefined}
|
|
7464
|
+
*/
|
|
7465
|
+
get actionId() {
|
|
7466
|
+
const ret = wasm.groupstatetransitioninfostatus_action_id(this.__wbg_ptr);
|
|
7467
|
+
return ret === 0 ? undefined : Identifier.__wrap(ret);
|
|
7468
|
+
}
|
|
7469
|
+
/**
|
|
7470
|
+
* @returns {string}
|
|
7471
|
+
*/
|
|
7472
|
+
get __type() {
|
|
7473
|
+
let deferred1_0;
|
|
7474
|
+
let deferred1_1;
|
|
7475
|
+
try {
|
|
7476
|
+
const ret = wasm.groupstatetransitioninfostatus_type_name(this.__wbg_ptr);
|
|
7477
|
+
deferred1_0 = ret[0];
|
|
7478
|
+
deferred1_1 = ret[1];
|
|
7479
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
7480
|
+
} finally {
|
|
7481
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
7482
|
+
}
|
|
7483
|
+
}
|
|
7484
|
+
}
|
|
7485
|
+
|
|
7330
7486
|
const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7331
7487
|
? { register: () => {}, unregister: () => {} }
|
|
7332
7488
|
: new FinalizationRegistry(ptr => wasm.__wbg_identifier_free(ptr >>> 0, 1));
|
|
@@ -9147,7 +9303,7 @@ export class IdentityPublicKey {
|
|
|
9147
9303
|
}
|
|
9148
9304
|
/**
|
|
9149
9305
|
* @param {Uint8Array} js_private_key_bytes
|
|
9150
|
-
* @param {
|
|
9306
|
+
* @param {NetworkLike} network
|
|
9151
9307
|
* @returns {boolean}
|
|
9152
9308
|
*/
|
|
9153
9309
|
validatePrivateKey(js_private_key_bytes, network) {
|
|
@@ -9654,8 +9810,8 @@ const IdentitySignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
9654
9810
|
/**
|
|
9655
9811
|
* A signer for identity-based state transitions.
|
|
9656
9812
|
*
|
|
9657
|
-
*
|
|
9658
|
-
* and
|
|
9813
|
+
* Private keys are stored by their public key hash (20 bytes).
|
|
9814
|
+
* Both ECDSA_HASH160 and ECDSA_SECP256K1 keys are looked up by hash160.
|
|
9659
9815
|
*/
|
|
9660
9816
|
export class IdentitySigner {
|
|
9661
9817
|
|
|
@@ -9711,8 +9867,7 @@ export class IdentitySigner {
|
|
|
9711
9867
|
/**
|
|
9712
9868
|
* Adds a private key to the signer.
|
|
9713
9869
|
*
|
|
9714
|
-
* The
|
|
9715
|
-
* Hash160(compressed_public_key) where Hash160 = RIPEMD160(SHA256(x)).
|
|
9870
|
+
* The key is stored by public key hash (20 bytes): Hash160(compressed_public_key)
|
|
9716
9871
|
*
|
|
9717
9872
|
* @param privateKey - The PrivateKey object
|
|
9718
9873
|
* @param {PrivateKey} private_key
|
|
@@ -9732,6 +9887,21 @@ export class IdentitySigner {
|
|
|
9732
9887
|
const ret = wasm.identitysigner_key_count(this.__wbg_ptr);
|
|
9733
9888
|
return ret >>> 0;
|
|
9734
9889
|
}
|
|
9890
|
+
/**
|
|
9891
|
+
* @returns {string}
|
|
9892
|
+
*/
|
|
9893
|
+
get __type() {
|
|
9894
|
+
let deferred1_0;
|
|
9895
|
+
let deferred1_1;
|
|
9896
|
+
try {
|
|
9897
|
+
const ret = wasm.identitysigner_type_name(this.__wbg_ptr);
|
|
9898
|
+
deferred1_0 = ret[0];
|
|
9899
|
+
deferred1_1 = ret[1];
|
|
9900
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
9901
|
+
} finally {
|
|
9902
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
9903
|
+
}
|
|
9904
|
+
}
|
|
9735
9905
|
}
|
|
9736
9906
|
|
|
9737
9907
|
const IdentityTokenInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -11355,29 +11525,25 @@ export class PlatformAddress {
|
|
|
11355
11525
|
}
|
|
11356
11526
|
/**
|
|
11357
11527
|
* Returns the bech32m-encoded address string for the specified network.
|
|
11358
|
-
*
|
|
11359
|
-
* @param network - "mainnet", "testnet", "devnet", or "regtest"
|
|
11360
|
-
* @param {string} network
|
|
11528
|
+
* @param {NetworkLike} network
|
|
11361
11529
|
* @returns {string}
|
|
11362
11530
|
*/
|
|
11363
11531
|
toBech32m(network) {
|
|
11364
|
-
let
|
|
11365
|
-
let
|
|
11366
|
-
try {
|
|
11367
|
-
const
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
var ptr2 = ret[0];
|
|
11371
|
-
var len2 = ret[1];
|
|
11532
|
+
let deferred2_0;
|
|
11533
|
+
let deferred2_1;
|
|
11534
|
+
try {
|
|
11535
|
+
const ret = wasm.platformaddress_toBech32m(this.__wbg_ptr, network);
|
|
11536
|
+
var ptr1 = ret[0];
|
|
11537
|
+
var len1 = ret[1];
|
|
11372
11538
|
if (ret[3]) {
|
|
11373
|
-
|
|
11539
|
+
ptr1 = 0; len1 = 0;
|
|
11374
11540
|
throw takeFromExternrefTable0(ret[2]);
|
|
11375
11541
|
}
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
-
return getStringFromWasm0(
|
|
11542
|
+
deferred2_0 = ptr1;
|
|
11543
|
+
deferred2_1 = len1;
|
|
11544
|
+
return getStringFromWasm0(ptr1, len1);
|
|
11379
11545
|
} finally {
|
|
11380
|
-
wasm.__wbindgen_free(
|
|
11546
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
11381
11547
|
}
|
|
11382
11548
|
}
|
|
11383
11549
|
/**
|
|
@@ -11750,7 +11916,7 @@ export class PlatformAddressSigner {
|
|
|
11750
11916
|
* Creates a new empty PlatformAddressSigner.
|
|
11751
11917
|
*/
|
|
11752
11918
|
constructor() {
|
|
11753
|
-
const ret = wasm.
|
|
11919
|
+
const ret = wasm.platformaddresssigner_new();
|
|
11754
11920
|
this.__wbg_ptr = ret >>> 0;
|
|
11755
11921
|
PlatformAddressSignerFinalization.register(this, this.__wbg_ptr, this);
|
|
11756
11922
|
return this;
|
|
@@ -11793,6 +11959,22 @@ export class PlatformAddressSigner {
|
|
|
11793
11959
|
const ret = wasm.platformaddresssigner_key_count(this.__wbg_ptr);
|
|
11794
11960
|
return ret >>> 0;
|
|
11795
11961
|
}
|
|
11962
|
+
/**
|
|
11963
|
+
* Returns the type name for WASM object identification (instance getter).
|
|
11964
|
+
* @returns {string}
|
|
11965
|
+
*/
|
|
11966
|
+
get __type() {
|
|
11967
|
+
let deferred1_0;
|
|
11968
|
+
let deferred1_1;
|
|
11969
|
+
try {
|
|
11970
|
+
const ret = wasm.platformaddresssigner_type_name(this.__wbg_ptr);
|
|
11971
|
+
deferred1_0 = ret[0];
|
|
11972
|
+
deferred1_1 = ret[1];
|
|
11973
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
11974
|
+
} finally {
|
|
11975
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
11976
|
+
}
|
|
11977
|
+
}
|
|
11796
11978
|
}
|
|
11797
11979
|
|
|
11798
11980
|
const PrefundedVotingBalanceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -12158,6 +12340,25 @@ export class PrivateKey {
|
|
|
12158
12340
|
}
|
|
12159
12341
|
}
|
|
12160
12342
|
|
|
12343
|
+
const ProTxHashFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
12344
|
+
? { register: () => {}, unregister: () => {} }
|
|
12345
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_protxhash_free(ptr >>> 0, 1));
|
|
12346
|
+
|
|
12347
|
+
export class ProTxHash {
|
|
12348
|
+
|
|
12349
|
+
__destroy_into_raw() {
|
|
12350
|
+
const ptr = this.__wbg_ptr;
|
|
12351
|
+
this.__wbg_ptr = 0;
|
|
12352
|
+
ProTxHashFinalization.unregister(this);
|
|
12353
|
+
return ptr;
|
|
12354
|
+
}
|
|
12355
|
+
|
|
12356
|
+
free() {
|
|
12357
|
+
const ptr = this.__destroy_into_raw();
|
|
12358
|
+
wasm.__wbg_protxhash_free(ptr, 0);
|
|
12359
|
+
}
|
|
12360
|
+
}
|
|
12361
|
+
|
|
12161
12362
|
const PublicKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
12162
12363
|
? { register: () => {}, unregister: () => {} }
|
|
12163
12364
|
: new FinalizationRegistry(ptr => wasm.__wbg_publickey_free(ptr >>> 0, 1));
|
|
@@ -12512,7 +12713,7 @@ export class ResourceVoteChoice {
|
|
|
12512
12713
|
* @returns {ResourceVoteChoice}
|
|
12513
12714
|
*/
|
|
12514
12715
|
static Abstain() {
|
|
12515
|
-
const ret = wasm.
|
|
12716
|
+
const ret = wasm.authorizedactiontakers_ContractOwner();
|
|
12516
12717
|
return ResourceVoteChoice.__wrap(ret);
|
|
12517
12718
|
}
|
|
12518
12719
|
/**
|
|
@@ -14143,6 +14344,21 @@ export class TokenConfigurationChangeItem {
|
|
|
14143
14344
|
const ptr = this.__destroy_into_raw();
|
|
14144
14345
|
wasm.__wbg_tokenconfigurationchangeitem_free(ptr, 0);
|
|
14145
14346
|
}
|
|
14347
|
+
/**
|
|
14348
|
+
* @param {number | null} [group_contract_position]
|
|
14349
|
+
* @returns {TokenConfigurationChangeItem}
|
|
14350
|
+
*/
|
|
14351
|
+
static MainControlGroupItem(group_contract_position) {
|
|
14352
|
+
const ret = wasm.tokenconfigurationchangeitem_MainControlGroupItem(isLikeNone(group_contract_position) ? 0xFFFFFF : group_contract_position);
|
|
14353
|
+
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14354
|
+
}
|
|
14355
|
+
/**
|
|
14356
|
+
* @returns {TokenConfigurationChangeItem}
|
|
14357
|
+
*/
|
|
14358
|
+
static noChangeItem() {
|
|
14359
|
+
const ret = wasm.tokenconfigurationchangeitem_noChangeItem();
|
|
14360
|
+
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14361
|
+
}
|
|
14146
14362
|
/**
|
|
14147
14363
|
* @param {bigint | null} [supply]
|
|
14148
14364
|
* @returns {TokenConfigurationChangeItem}
|
|
@@ -14322,101 +14538,94 @@ export class TokenConfigurationChangeItem {
|
|
|
14322
14538
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14323
14539
|
}
|
|
14324
14540
|
/**
|
|
14325
|
-
* @param {
|
|
14541
|
+
* @param {Identifier | Uint8Array | string} js_identity_id
|
|
14326
14542
|
* @returns {TokenConfigurationChangeItem}
|
|
14327
14543
|
*/
|
|
14328
|
-
static
|
|
14329
|
-
const ret = wasm.
|
|
14330
|
-
|
|
14544
|
+
static NewTokensDestinationIdentityItem(js_identity_id) {
|
|
14545
|
+
const ret = wasm.tokenconfigurationchangeitem_NewTokensDestinationIdentityItem(js_identity_id);
|
|
14546
|
+
if (ret[2]) {
|
|
14547
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14548
|
+
}
|
|
14549
|
+
return TokenConfigurationChangeItem.__wrap(ret[0]);
|
|
14331
14550
|
}
|
|
14332
14551
|
/**
|
|
14333
14552
|
* @param {AuthorizedActionTakers} action_taker
|
|
14334
14553
|
* @returns {TokenConfigurationChangeItem}
|
|
14335
14554
|
*/
|
|
14336
|
-
static
|
|
14555
|
+
static NewTokensDestinationIdentityAdminGroupItem(action_taker) {
|
|
14337
14556
|
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14338
|
-
const ret = wasm.
|
|
14557
|
+
const ret = wasm.tokenconfigurationchangeitem_NewTokensDestinationIdentityAdminGroupItem(action_taker.__wbg_ptr);
|
|
14339
14558
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14340
14559
|
}
|
|
14341
14560
|
/**
|
|
14342
14561
|
* @param {AuthorizedActionTakers} action_taker
|
|
14343
14562
|
* @returns {TokenConfigurationChangeItem}
|
|
14344
14563
|
*/
|
|
14345
|
-
static
|
|
14564
|
+
static NewTokensDestinationIdentityControlGroupItem(action_taker) {
|
|
14346
14565
|
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14347
|
-
const ret = wasm.
|
|
14566
|
+
const ret = wasm.tokenconfigurationchangeitem_NewTokensDestinationIdentityControlGroupItem(action_taker.__wbg_ptr);
|
|
14348
14567
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14349
14568
|
}
|
|
14350
14569
|
/**
|
|
14351
|
-
* @param {
|
|
14570
|
+
* @param {boolean} flag
|
|
14352
14571
|
* @returns {TokenConfigurationChangeItem}
|
|
14353
14572
|
*/
|
|
14354
|
-
static
|
|
14355
|
-
|
|
14356
|
-
const ret = wasm.tokenconfigurationchangeitem_FreezeItem(action_taker.__wbg_ptr);
|
|
14573
|
+
static MintingAllowChoosingDestinationItem(flag) {
|
|
14574
|
+
const ret = wasm.tokenconfigurationchangeitem_MintingAllowChoosingDestinationItem(flag);
|
|
14357
14575
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14358
14576
|
}
|
|
14359
14577
|
/**
|
|
14360
14578
|
* @param {AuthorizedActionTakers} action_taker
|
|
14361
14579
|
* @returns {TokenConfigurationChangeItem}
|
|
14362
14580
|
*/
|
|
14363
|
-
static
|
|
14581
|
+
static MintingAllowChoosingDestinationAdminGroupItem(action_taker) {
|
|
14364
14582
|
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14365
|
-
const ret = wasm.
|
|
14583
|
+
const ret = wasm.tokenconfigurationchangeitem_MintingAllowChoosingDestinationAdminGroupItem(action_taker.__wbg_ptr);
|
|
14366
14584
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14367
14585
|
}
|
|
14368
14586
|
/**
|
|
14369
14587
|
* @param {AuthorizedActionTakers} action_taker
|
|
14370
14588
|
* @returns {TokenConfigurationChangeItem}
|
|
14371
14589
|
*/
|
|
14372
|
-
static
|
|
14590
|
+
static MintingAllowChoosingDestinationControlGroupItem(action_taker) {
|
|
14373
14591
|
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14374
|
-
const ret = wasm.
|
|
14592
|
+
const ret = wasm.tokenconfigurationchangeitem_MintingAllowChoosingDestinationControlGroupItem(action_taker.__wbg_ptr);
|
|
14375
14593
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14376
14594
|
}
|
|
14377
14595
|
/**
|
|
14378
14596
|
* @param {AuthorizedActionTakers} action_taker
|
|
14379
14597
|
* @returns {TokenConfigurationChangeItem}
|
|
14380
14598
|
*/
|
|
14381
|
-
static
|
|
14599
|
+
static FreezeItem(action_taker) {
|
|
14382
14600
|
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14383
|
-
const ret = wasm.
|
|
14601
|
+
const ret = wasm.tokenconfigurationchangeitem_FreezeItem(action_taker.__wbg_ptr);
|
|
14384
14602
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14385
14603
|
}
|
|
14386
|
-
/**
|
|
14387
|
-
* @param {Identifier | Uint8Array | string} js_identity_id
|
|
14388
|
-
* @returns {TokenConfigurationChangeItem}
|
|
14389
|
-
*/
|
|
14390
|
-
static NewTokensDestinationIdentityItem(js_identity_id) {
|
|
14391
|
-
const ret = wasm.tokenconfigurationchangeitem_NewTokensDestinationIdentityItem(js_identity_id);
|
|
14392
|
-
if (ret[2]) {
|
|
14393
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
14394
|
-
}
|
|
14395
|
-
return TokenConfigurationChangeItem.__wrap(ret[0]);
|
|
14396
|
-
}
|
|
14397
14604
|
/**
|
|
14398
14605
|
* @param {AuthorizedActionTakers} action_taker
|
|
14399
14606
|
* @returns {TokenConfigurationChangeItem}
|
|
14400
14607
|
*/
|
|
14401
|
-
static
|
|
14608
|
+
static FreezeAdminGroupItem(action_taker) {
|
|
14402
14609
|
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14403
|
-
const ret = wasm.
|
|
14610
|
+
const ret = wasm.tokenconfigurationchangeitem_FreezeAdminGroupItem(action_taker.__wbg_ptr);
|
|
14404
14611
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14405
14612
|
}
|
|
14406
14613
|
/**
|
|
14407
14614
|
* @param {AuthorizedActionTakers} action_taker
|
|
14408
14615
|
* @returns {TokenConfigurationChangeItem}
|
|
14409
14616
|
*/
|
|
14410
|
-
static
|
|
14617
|
+
static UnfreezeItem(action_taker) {
|
|
14411
14618
|
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14412
|
-
const ret = wasm.
|
|
14619
|
+
const ret = wasm.tokenconfigurationchangeitem_UnfreezeItem(action_taker.__wbg_ptr);
|
|
14413
14620
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14414
14621
|
}
|
|
14415
14622
|
/**
|
|
14623
|
+
* @param {AuthorizedActionTakers} action_taker
|
|
14416
14624
|
* @returns {TokenConfigurationChangeItem}
|
|
14417
14625
|
*/
|
|
14418
|
-
static
|
|
14419
|
-
|
|
14626
|
+
static UnfreezeAdminGroupItem(action_taker) {
|
|
14627
|
+
_assertClass(action_taker, AuthorizedActionTakers);
|
|
14628
|
+
const ret = wasm.tokenconfigurationchangeitem_UnfreezeAdminGroupItem(action_taker.__wbg_ptr);
|
|
14420
14629
|
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14421
14630
|
}
|
|
14422
14631
|
/**
|
|
@@ -14471,14 +14680,6 @@ export class TokenConfigurationChangeItem {
|
|
|
14471
14680
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14472
14681
|
}
|
|
14473
14682
|
}
|
|
14474
|
-
/**
|
|
14475
|
-
* @param {number | null} [group_contract_position]
|
|
14476
|
-
* @returns {TokenConfigurationChangeItem}
|
|
14477
|
-
*/
|
|
14478
|
-
static MainControlGroupItem(group_contract_position) {
|
|
14479
|
-
const ret = wasm.tokenconfigurationchangeitem_MainControlGroupItem(isLikeNone(group_contract_position) ? 0xFFFFFF : group_contract_position);
|
|
14480
|
-
return TokenConfigurationChangeItem.__wrap(ret);
|
|
14481
|
-
}
|
|
14482
14683
|
}
|
|
14483
14684
|
|
|
14484
14685
|
const TokenConfigurationConventionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -17786,6 +17987,23 @@ function __wbg_get_imports() {
|
|
|
17786
17987
|
const ret = EpochBasedDistribution.__wrap(arg0);
|
|
17787
17988
|
return ret;
|
|
17788
17989
|
};
|
|
17990
|
+
imports.wbg.__wbg_forEach_d3693088122c0e7b = function(arg0, arg1, arg2) {
|
|
17991
|
+
try {
|
|
17992
|
+
var state0 = {a: arg1, b: arg2};
|
|
17993
|
+
var cb0 = (arg0, arg1) => {
|
|
17994
|
+
const a = state0.a;
|
|
17995
|
+
state0.a = 0;
|
|
17996
|
+
try {
|
|
17997
|
+
return __wbg_adapter_1538(a, state0.b, arg0, arg1);
|
|
17998
|
+
} finally {
|
|
17999
|
+
state0.a = a;
|
|
18000
|
+
}
|
|
18001
|
+
};
|
|
18002
|
+
arg0.forEach(cb0);
|
|
18003
|
+
} finally {
|
|
18004
|
+
state0.a = state0.b = 0;
|
|
18005
|
+
}
|
|
18006
|
+
};
|
|
17789
18007
|
imports.wbg.__wbg_from_237b1ad767238d8b = function(arg0) {
|
|
17790
18008
|
const ret = Array.from(arg0);
|
|
17791
18009
|
return ret;
|
|
@@ -17841,6 +18059,16 @@ function __wbg_get_imports() {
|
|
|
17841
18059
|
const ret = result;
|
|
17842
18060
|
return ret;
|
|
17843
18061
|
};
|
|
18062
|
+
imports.wbg.__wbg_instanceof_Map_dd89a82d76d1b25f = function(arg0) {
|
|
18063
|
+
let result;
|
|
18064
|
+
try {
|
|
18065
|
+
result = arg0 instanceof Map;
|
|
18066
|
+
} catch (_) {
|
|
18067
|
+
result = false;
|
|
18068
|
+
}
|
|
18069
|
+
const ret = result;
|
|
18070
|
+
return ret;
|
|
18071
|
+
};
|
|
17844
18072
|
imports.wbg.__wbg_instanceof_Uint8Array_91f3c5adee7e6672 = function(arg0) {
|
|
17845
18073
|
let result;
|
|
17846
18074
|
try {
|
|
@@ -17998,6 +18226,10 @@ function __wbg_get_imports() {
|
|
|
17998
18226
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
17999
18227
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
18000
18228
|
};
|
|
18229
|
+
imports.wbg.__wbg_toString_349e2a4aa036ef9c = function() { return handleError(function (arg0, arg1) {
|
|
18230
|
+
const ret = arg0.toString(arg1);
|
|
18231
|
+
return ret;
|
|
18232
|
+
}, arguments) };
|
|
18001
18233
|
imports.wbg.__wbg_toString_83737cbd5ac9f7a7 = function() { return handleError(function (arg0, arg1) {
|
|
18002
18234
|
const ret = arg0.toString(arg1);
|
|
18003
18235
|
return ret;
|