@dashevo/wasm-dpp2 4.0.0 → 4.1.0-beta.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/dpp.compressed.js +1 -1
- package/dist/dpp.d.ts +2124 -1931
- package/dist/dpp.js +1 -1
- package/dist/raw/wasm_dpp2.d.ts +2124 -1931
- package/dist/raw/wasm_dpp2.js +375 -47
- package/dist/raw/wasm_dpp2.no_url.js +375 -47
- package/dist/raw/wasm_dpp2_bg.wasm +0 -0
- package/dist/raw/wasm_dpp2_bg.wasm.d.ts +1800 -1772
- package/package.json +1 -1
package/dist/raw/wasm_dpp2.js
CHANGED
|
@@ -1008,6 +1008,28 @@ export class AddressWitness {
|
|
|
1008
1008
|
const ptr = this.__destroy_into_raw();
|
|
1009
1009
|
wasm.__wbg_addresswitness_free(ptr, 0);
|
|
1010
1010
|
}
|
|
1011
|
+
/**
|
|
1012
|
+
* @param {AddressWitnessJSON} js
|
|
1013
|
+
* @returns {AddressWitness}
|
|
1014
|
+
*/
|
|
1015
|
+
static fromJSON(js) {
|
|
1016
|
+
const ret = wasm.addresswitness_fromJSON(js);
|
|
1017
|
+
if (ret[2]) {
|
|
1018
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1019
|
+
}
|
|
1020
|
+
return AddressWitness.__wrap(ret[0]);
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* @param {AddressWitnessObject} obj
|
|
1024
|
+
* @returns {AddressWitness}
|
|
1025
|
+
*/
|
|
1026
|
+
static fromObject(obj) {
|
|
1027
|
+
const ret = wasm.addresswitness_fromObject(obj);
|
|
1028
|
+
if (ret[2]) {
|
|
1029
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1030
|
+
}
|
|
1031
|
+
return AddressWitness.__wrap(ret[0]);
|
|
1032
|
+
}
|
|
1011
1033
|
/**
|
|
1012
1034
|
* Returns true if this is a P2PKH witness.
|
|
1013
1035
|
* @returns {boolean}
|
|
@@ -1128,6 +1150,26 @@ export class AddressWitness {
|
|
|
1128
1150
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1129
1151
|
}
|
|
1130
1152
|
}
|
|
1153
|
+
/**
|
|
1154
|
+
* @returns {AddressWitnessJSON}
|
|
1155
|
+
*/
|
|
1156
|
+
toJSON() {
|
|
1157
|
+
const ret = wasm.addresswitness_toJSON(this.__wbg_ptr);
|
|
1158
|
+
if (ret[2]) {
|
|
1159
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1160
|
+
}
|
|
1161
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* @returns {AddressWitnessObject}
|
|
1165
|
+
*/
|
|
1166
|
+
toObject() {
|
|
1167
|
+
const ret = wasm.addresswitness_toObject(this.__wbg_ptr);
|
|
1168
|
+
if (ret[2]) {
|
|
1169
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1170
|
+
}
|
|
1171
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1172
|
+
}
|
|
1131
1173
|
/**
|
|
1132
1174
|
* @returns {string}
|
|
1133
1175
|
*/
|
|
@@ -1280,7 +1322,7 @@ export class AssetLockProof {
|
|
|
1280
1322
|
}
|
|
1281
1323
|
/**
|
|
1282
1324
|
* Returns the lock type as a lowercase wire-shape string ("instant" or
|
|
1283
|
-
* "chain") — matching the
|
|
1325
|
+
* "chain") — matching the `$type` discriminator emitted by `toObject()` /
|
|
1284
1326
|
* `toJSON()`.
|
|
1285
1327
|
* @returns {string}
|
|
1286
1328
|
*/
|
|
@@ -1602,22 +1644,22 @@ export class BatchTransition {
|
|
|
1602
1644
|
return BatchTransition.__wrap(ret[0]);
|
|
1603
1645
|
}
|
|
1604
1646
|
/**
|
|
1605
|
-
* @param {BatchTransitionJSON}
|
|
1647
|
+
* @param {BatchTransitionJSON} js
|
|
1606
1648
|
* @returns {BatchTransition}
|
|
1607
1649
|
*/
|
|
1608
|
-
static fromJSON(
|
|
1609
|
-
const ret = wasm.batchtransition_fromJSON(
|
|
1650
|
+
static fromJSON(js) {
|
|
1651
|
+
const ret = wasm.batchtransition_fromJSON(js);
|
|
1610
1652
|
if (ret[2]) {
|
|
1611
1653
|
throw takeFromExternrefTable0(ret[1]);
|
|
1612
1654
|
}
|
|
1613
1655
|
return BatchTransition.__wrap(ret[0]);
|
|
1614
1656
|
}
|
|
1615
1657
|
/**
|
|
1616
|
-
* @param {BatchTransitionObject}
|
|
1658
|
+
* @param {BatchTransitionObject} obj
|
|
1617
1659
|
* @returns {BatchTransition}
|
|
1618
1660
|
*/
|
|
1619
|
-
static fromObject(
|
|
1620
|
-
const ret = wasm.batchtransition_fromObject(
|
|
1661
|
+
static fromObject(obj) {
|
|
1662
|
+
const ret = wasm.batchtransition_fromObject(obj);
|
|
1621
1663
|
if (ret[2]) {
|
|
1622
1664
|
throw takeFromExternrefTable0(ret[1]);
|
|
1623
1665
|
}
|
|
@@ -5322,27 +5364,27 @@ export class Document {
|
|
|
5322
5364
|
return Document.__wrap(ret[0]);
|
|
5323
5365
|
}
|
|
5324
5366
|
/**
|
|
5325
|
-
* Create a Document from a JSON object.
|
|
5367
|
+
* Create a Document from a JSON object (canonical-tagged shape).
|
|
5326
5368
|
* JSON format has identifiers as base58 strings.
|
|
5327
5369
|
* @param {DocumentJSON} value
|
|
5328
|
-
* @param {PlatformVersionLike}
|
|
5370
|
+
* @param {PlatformVersionLike} _platform_version
|
|
5329
5371
|
* @returns {Document}
|
|
5330
5372
|
*/
|
|
5331
|
-
static fromJSON(value,
|
|
5332
|
-
const ret = wasm.document_fromJSON(value,
|
|
5373
|
+
static fromJSON(value, _platform_version) {
|
|
5374
|
+
const ret = wasm.document_fromJSON(value, _platform_version);
|
|
5333
5375
|
if (ret[2]) {
|
|
5334
5376
|
throw takeFromExternrefTable0(ret[1]);
|
|
5335
5377
|
}
|
|
5336
5378
|
return Document.__wrap(ret[0]);
|
|
5337
5379
|
}
|
|
5338
5380
|
/**
|
|
5339
|
-
* Create a Document from a JS object.
|
|
5381
|
+
* Create a Document from a JS object (canonical-tagged shape).
|
|
5340
5382
|
* @param {DocumentObject} value
|
|
5341
|
-
* @param {PlatformVersionLike}
|
|
5383
|
+
* @param {PlatformVersionLike} _platform_version
|
|
5342
5384
|
* @returns {Document}
|
|
5343
5385
|
*/
|
|
5344
|
-
static fromObject(value,
|
|
5345
|
-
const ret = wasm.document_fromObject(value,
|
|
5386
|
+
static fromObject(value, _platform_version) {
|
|
5387
|
+
const ret = wasm.document_fromObject(value, _platform_version);
|
|
5346
5388
|
if (ret[2]) {
|
|
5347
5389
|
throw takeFromExternrefTable0(ret[1]);
|
|
5348
5390
|
}
|
|
@@ -5594,11 +5636,11 @@ export class Document {
|
|
|
5594
5636
|
}
|
|
5595
5637
|
/**
|
|
5596
5638
|
* Convert to a JSON-compatible JS object with binary fields as strings.
|
|
5597
|
-
* @param {PlatformVersionLike}
|
|
5639
|
+
* @param {PlatformVersionLike} _platform_version
|
|
5598
5640
|
* @returns {DocumentJSON}
|
|
5599
5641
|
*/
|
|
5600
|
-
toJSON(
|
|
5601
|
-
const ret = wasm.document_toJSON(this.__wbg_ptr,
|
|
5642
|
+
toJSON(_platform_version) {
|
|
5643
|
+
const ret = wasm.document_toJSON(this.__wbg_ptr, _platform_version);
|
|
5602
5644
|
if (ret[2]) {
|
|
5603
5645
|
throw takeFromExternrefTable0(ret[1]);
|
|
5604
5646
|
}
|
|
@@ -5606,6 +5648,12 @@ export class Document {
|
|
|
5606
5648
|
}
|
|
5607
5649
|
/**
|
|
5608
5650
|
* Convert to a JS object with binary fields as Uint8Array.
|
|
5651
|
+
*
|
|
5652
|
+
* Wire shape (Phase D step 8 slice B):
|
|
5653
|
+
* - `$formatVersion: "0"` — canonical Document version tag
|
|
5654
|
+
* - `$dataContractId`, `$type`, `$entropy` — wasm-side metadata
|
|
5655
|
+
* - V0 Document fields (`$id`, `$ownerId`, `$revision`, …) flat
|
|
5656
|
+
* alongside user-defined properties
|
|
5609
5657
|
* @returns {DocumentObject}
|
|
5610
5658
|
*/
|
|
5611
5659
|
toObject() {
|
|
@@ -7060,7 +7108,7 @@ if (Symbol.dispose) ExtendedEpochInfo.prototype[Symbol.dispose] = ExtendedEpochI
|
|
|
7060
7108
|
* should be reduced to cover the transaction fee.
|
|
7061
7109
|
*
|
|
7062
7110
|
* `#[serde(transparent)]` delegates to the inner `AddressFundsFeeStrategyStep`'s
|
|
7063
|
-
* custom serde, which produces the `{ type, index }` adjacent shape used by
|
|
7111
|
+
* custom serde, which produces the `{ $type, index }` adjacent shape used by
|
|
7064
7112
|
* every wasm-sdk consumer that round-trips a `Vec<FeeStrategyStepWasm>`.
|
|
7065
7113
|
*/
|
|
7066
7114
|
export class FeeStrategyStep {
|
|
@@ -7476,22 +7524,22 @@ export class Group {
|
|
|
7476
7524
|
return this;
|
|
7477
7525
|
}
|
|
7478
7526
|
/**
|
|
7479
|
-
* @param {GroupJSON}
|
|
7527
|
+
* @param {GroupJSON} js
|
|
7480
7528
|
* @returns {Group}
|
|
7481
7529
|
*/
|
|
7482
|
-
static fromJSON(
|
|
7483
|
-
const ret = wasm.group_fromJSON(
|
|
7530
|
+
static fromJSON(js) {
|
|
7531
|
+
const ret = wasm.group_fromJSON(js);
|
|
7484
7532
|
if (ret[2]) {
|
|
7485
7533
|
throw takeFromExternrefTable0(ret[1]);
|
|
7486
7534
|
}
|
|
7487
7535
|
return Group.__wrap(ret[0]);
|
|
7488
7536
|
}
|
|
7489
7537
|
/**
|
|
7490
|
-
* @param {GroupObject}
|
|
7538
|
+
* @param {GroupObject} obj
|
|
7491
7539
|
* @returns {Group}
|
|
7492
7540
|
*/
|
|
7493
|
-
static fromObject(
|
|
7494
|
-
const ret = wasm.group_fromObject(
|
|
7541
|
+
static fromObject(obj) {
|
|
7542
|
+
const ret = wasm.group_fromObject(obj);
|
|
7495
7543
|
if (ret[2]) {
|
|
7496
7544
|
throw takeFromExternrefTable0(ret[1]);
|
|
7497
7545
|
}
|
|
@@ -8382,6 +8430,11 @@ export class Identity {
|
|
|
8382
8430
|
return Identity.__wrap(ret[0]);
|
|
8383
8431
|
}
|
|
8384
8432
|
/**
|
|
8433
|
+
* `fromObject` keeps the manual path because the wasm API dispatches on
|
|
8434
|
+
* the `platform_version` arg (via `try_from_platform_versioned`) rather
|
|
8435
|
+
* than the value's embedded `$formatVersion` tag — explicit version
|
|
8436
|
+
* coupling is the wasm SDK convention. The canonical
|
|
8437
|
+
* `ValueConvertible::from_object` would dispatch on the tag.
|
|
8385
8438
|
* @param {IdentityObject} value
|
|
8386
8439
|
* @param {PlatformVersionLike} platform_version
|
|
8387
8440
|
* @returns {Identity}
|
|
@@ -8850,6 +8903,227 @@ export class IdentityCreateFromAddressesTransition {
|
|
|
8850
8903
|
}
|
|
8851
8904
|
if (Symbol.dispose) IdentityCreateFromAddressesTransition.prototype[Symbol.dispose] = IdentityCreateFromAddressesTransition.prototype.free;
|
|
8852
8905
|
|
|
8906
|
+
export class IdentityCreateFromShieldedPoolTransition {
|
|
8907
|
+
static __wrap(ptr) {
|
|
8908
|
+
ptr = ptr >>> 0;
|
|
8909
|
+
const obj = Object.create(IdentityCreateFromShieldedPoolTransition.prototype);
|
|
8910
|
+
obj.__wbg_ptr = ptr;
|
|
8911
|
+
IdentityCreateFromShieldedPoolTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
8912
|
+
return obj;
|
|
8913
|
+
}
|
|
8914
|
+
__destroy_into_raw() {
|
|
8915
|
+
const ptr = this.__wbg_ptr;
|
|
8916
|
+
this.__wbg_ptr = 0;
|
|
8917
|
+
IdentityCreateFromShieldedPoolTransitionFinalization.unregister(this);
|
|
8918
|
+
return ptr;
|
|
8919
|
+
}
|
|
8920
|
+
free() {
|
|
8921
|
+
const ptr = this.__destroy_into_raw();
|
|
8922
|
+
wasm.__wbg_identitycreatefromshieldedpooltransition_free(ptr, 0);
|
|
8923
|
+
}
|
|
8924
|
+
/**
|
|
8925
|
+
* Returns the serialized Orchard actions.
|
|
8926
|
+
* @returns {SerializedOrchardAction[]}
|
|
8927
|
+
*/
|
|
8928
|
+
get actions() {
|
|
8929
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_actions(this.__wbg_ptr);
|
|
8930
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
8931
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
8932
|
+
return v1;
|
|
8933
|
+
}
|
|
8934
|
+
/**
|
|
8935
|
+
* Returns the anchor (32-byte Merkle root).
|
|
8936
|
+
* @returns {Uint8Array}
|
|
8937
|
+
*/
|
|
8938
|
+
get anchor() {
|
|
8939
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_anchor(this.__wbg_ptr);
|
|
8940
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
8941
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
8942
|
+
return v1;
|
|
8943
|
+
}
|
|
8944
|
+
/**
|
|
8945
|
+
* Returns the RedPallas binding signature (64 bytes).
|
|
8946
|
+
* @returns {Uint8Array}
|
|
8947
|
+
*/
|
|
8948
|
+
get bindingSignature() {
|
|
8949
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_binding_signature(this.__wbg_ptr);
|
|
8950
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
8951
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
8952
|
+
return v1;
|
|
8953
|
+
}
|
|
8954
|
+
/**
|
|
8955
|
+
* Returns the fixed exit denomination (credits leaving the shielded pool).
|
|
8956
|
+
* @returns {bigint}
|
|
8957
|
+
*/
|
|
8958
|
+
get denomination() {
|
|
8959
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_denomination(this.__wbg_ptr);
|
|
8960
|
+
return BigInt.asUintN(64, ret);
|
|
8961
|
+
}
|
|
8962
|
+
/**
|
|
8963
|
+
* @param {Uint8Array} bytes
|
|
8964
|
+
* @returns {IdentityCreateFromShieldedPoolTransition}
|
|
8965
|
+
*/
|
|
8966
|
+
static fromBytes(bytes) {
|
|
8967
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
8968
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8969
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_fromBytes(ptr0, len0);
|
|
8970
|
+
if (ret[2]) {
|
|
8971
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
8972
|
+
}
|
|
8973
|
+
return IdentityCreateFromShieldedPoolTransition.__wrap(ret[0]);
|
|
8974
|
+
}
|
|
8975
|
+
/**
|
|
8976
|
+
* @param {IdentityCreateFromShieldedPoolTransitionJSON} js
|
|
8977
|
+
* @returns {IdentityCreateFromShieldedPoolTransition}
|
|
8978
|
+
*/
|
|
8979
|
+
static fromJSON(js) {
|
|
8980
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_fromJSON(js);
|
|
8981
|
+
if (ret[2]) {
|
|
8982
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
8983
|
+
}
|
|
8984
|
+
return IdentityCreateFromShieldedPoolTransition.__wrap(ret[0]);
|
|
8985
|
+
}
|
|
8986
|
+
/**
|
|
8987
|
+
* @param {IdentityCreateFromShieldedPoolTransitionObject} obj
|
|
8988
|
+
* @returns {IdentityCreateFromShieldedPoolTransition}
|
|
8989
|
+
*/
|
|
8990
|
+
static fromObject(obj) {
|
|
8991
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_fromObject(obj);
|
|
8992
|
+
if (ret[2]) {
|
|
8993
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
8994
|
+
}
|
|
8995
|
+
return IdentityCreateFromShieldedPoolTransition.__wrap(ret[0]);
|
|
8996
|
+
}
|
|
8997
|
+
/**
|
|
8998
|
+
* @returns {Identifier[]}
|
|
8999
|
+
*/
|
|
9000
|
+
getModifiedDataIds() {
|
|
9001
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_getModifiedDataIds(this.__wbg_ptr);
|
|
9002
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
9003
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
9004
|
+
return v1;
|
|
9005
|
+
}
|
|
9006
|
+
/**
|
|
9007
|
+
* Returns the new identity's id (derived from the spend nullifiers).
|
|
9008
|
+
* @returns {Identifier}
|
|
9009
|
+
*/
|
|
9010
|
+
get identityId() {
|
|
9011
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_identity_id(this.__wbg_ptr);
|
|
9012
|
+
return Identifier.__wrap(ret);
|
|
9013
|
+
}
|
|
9014
|
+
/**
|
|
9015
|
+
* @param {IdentityCreateFromShieldedPoolTransitionOptions} options
|
|
9016
|
+
*/
|
|
9017
|
+
constructor(options) {
|
|
9018
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_new(options);
|
|
9019
|
+
if (ret[2]) {
|
|
9020
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9021
|
+
}
|
|
9022
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
9023
|
+
IdentityCreateFromShieldedPoolTransitionFinalization.register(this, this.__wbg_ptr, this);
|
|
9024
|
+
return this;
|
|
9025
|
+
}
|
|
9026
|
+
/**
|
|
9027
|
+
* Returns the Halo2 proof bytes.
|
|
9028
|
+
* @returns {Uint8Array}
|
|
9029
|
+
*/
|
|
9030
|
+
get proof() {
|
|
9031
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_proof(this.__wbg_ptr);
|
|
9032
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
9033
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
9034
|
+
return v1;
|
|
9035
|
+
}
|
|
9036
|
+
/**
|
|
9037
|
+
* Returns the public keys of the new identity.
|
|
9038
|
+
* @returns {IdentityPublicKeyInCreation[]}
|
|
9039
|
+
*/
|
|
9040
|
+
get publicKeys() {
|
|
9041
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_public_keys(this.__wbg_ptr);
|
|
9042
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
9043
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
9044
|
+
return v1;
|
|
9045
|
+
}
|
|
9046
|
+
/**
|
|
9047
|
+
* Returns the fallback platform address credited if identity creation
|
|
9048
|
+
* fails a stateful check.
|
|
9049
|
+
* @returns {PlatformAddress}
|
|
9050
|
+
*/
|
|
9051
|
+
get sendToAddressOnCreationFailure() {
|
|
9052
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_send_to_address_on_creation_failure(this.__wbg_ptr);
|
|
9053
|
+
return PlatformAddress.__wrap(ret);
|
|
9054
|
+
}
|
|
9055
|
+
/**
|
|
9056
|
+
* @returns {string}
|
|
9057
|
+
*/
|
|
9058
|
+
static get __struct() {
|
|
9059
|
+
let deferred1_0;
|
|
9060
|
+
let deferred1_1;
|
|
9061
|
+
try {
|
|
9062
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_struct_name();
|
|
9063
|
+
deferred1_0 = ret[0];
|
|
9064
|
+
deferred1_1 = ret[1];
|
|
9065
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
9066
|
+
} finally {
|
|
9067
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
9068
|
+
}
|
|
9069
|
+
}
|
|
9070
|
+
/**
|
|
9071
|
+
* @returns {Uint8Array}
|
|
9072
|
+
*/
|
|
9073
|
+
toBytes() {
|
|
9074
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_toBytes(this.__wbg_ptr);
|
|
9075
|
+
if (ret[3]) {
|
|
9076
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
9077
|
+
}
|
|
9078
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
9079
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
9080
|
+
return v1;
|
|
9081
|
+
}
|
|
9082
|
+
/**
|
|
9083
|
+
* @returns {IdentityCreateFromShieldedPoolTransitionJSON}
|
|
9084
|
+
*/
|
|
9085
|
+
toJSON() {
|
|
9086
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_toJSON(this.__wbg_ptr);
|
|
9087
|
+
if (ret[2]) {
|
|
9088
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9089
|
+
}
|
|
9090
|
+
return takeFromExternrefTable0(ret[0]);
|
|
9091
|
+
}
|
|
9092
|
+
/**
|
|
9093
|
+
* @returns {IdentityCreateFromShieldedPoolTransitionObject}
|
|
9094
|
+
*/
|
|
9095
|
+
toObject() {
|
|
9096
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_toObject(this.__wbg_ptr);
|
|
9097
|
+
if (ret[2]) {
|
|
9098
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
9099
|
+
}
|
|
9100
|
+
return takeFromExternrefTable0(ret[0]);
|
|
9101
|
+
}
|
|
9102
|
+
/**
|
|
9103
|
+
* @returns {StateTransition}
|
|
9104
|
+
*/
|
|
9105
|
+
toStateTransition() {
|
|
9106
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_toStateTransition(this.__wbg_ptr);
|
|
9107
|
+
return StateTransition.__wrap(ret);
|
|
9108
|
+
}
|
|
9109
|
+
/**
|
|
9110
|
+
* @returns {string}
|
|
9111
|
+
*/
|
|
9112
|
+
get __type() {
|
|
9113
|
+
let deferred1_0;
|
|
9114
|
+
let deferred1_1;
|
|
9115
|
+
try {
|
|
9116
|
+
const ret = wasm.identitycreatefromshieldedpooltransition_type_name(this.__wbg_ptr);
|
|
9117
|
+
deferred1_0 = ret[0];
|
|
9118
|
+
deferred1_1 = ret[1];
|
|
9119
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
9120
|
+
} finally {
|
|
9121
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
9122
|
+
}
|
|
9123
|
+
}
|
|
9124
|
+
}
|
|
9125
|
+
if (Symbol.dispose) IdentityCreateFromShieldedPoolTransition.prototype[Symbol.dispose] = IdentityCreateFromShieldedPoolTransition.prototype.free;
|
|
9126
|
+
|
|
8853
9127
|
export class IdentityCreateTransition {
|
|
8854
9128
|
static __wrap(ptr) {
|
|
8855
9129
|
ptr = ptr >>> 0;
|
|
@@ -10314,16 +10588,18 @@ export class IdentityPublicKey {
|
|
|
10314
10588
|
return IdentityPublicKey.__wrap(ret[0]);
|
|
10315
10589
|
}
|
|
10316
10590
|
/**
|
|
10317
|
-
* Deserialize from JSON-compatible JS object (
|
|
10591
|
+
* Deserialize from JSON-compatible JS object (canonical wire shape).
|
|
10318
10592
|
*
|
|
10319
|
-
*
|
|
10320
|
-
*
|
|
10593
|
+
* Expects base64 strings for binary fields, base58 strings for
|
|
10594
|
+
* identifiers — the canonical shape produced by `toJSON`.
|
|
10595
|
+
* `platform_version` is accepted for SDK API consistency but not
|
|
10596
|
+
* load-bearing today (canonical tag-driven dispatch handles V0).
|
|
10321
10597
|
* @param {IdentityPublicKeyJSON} value
|
|
10322
|
-
* @param {PlatformVersionLike}
|
|
10598
|
+
* @param {PlatformVersionLike} _platform_version
|
|
10323
10599
|
* @returns {IdentityPublicKey}
|
|
10324
10600
|
*/
|
|
10325
|
-
static fromJSON(value,
|
|
10326
|
-
const ret = wasm.identitypublickey_fromJSON(value,
|
|
10601
|
+
static fromJSON(value, _platform_version) {
|
|
10602
|
+
const ret = wasm.identitypublickey_fromJSON(value, _platform_version);
|
|
10327
10603
|
if (ret[2]) {
|
|
10328
10604
|
throw takeFromExternrefTable0(ret[1]);
|
|
10329
10605
|
}
|
|
@@ -10333,12 +10609,16 @@ export class IdentityPublicKey {
|
|
|
10333
10609
|
* Deserialize from JS object (non-human-readable).
|
|
10334
10610
|
*
|
|
10335
10611
|
* Uses platform_value conversion which properly handles the tagged enum.
|
|
10612
|
+
* `platform_version` is accepted for SDK API consistency but not
|
|
10613
|
+
* load-bearing today — canonical `ValueConvertible::from_object`
|
|
10614
|
+
* dispatches on the value's `$formatVersion` tag, which produces
|
|
10615
|
+
* identical output for the only currently-defined V0.
|
|
10336
10616
|
* @param {IdentityPublicKeyObject} value
|
|
10337
|
-
* @param {PlatformVersionLike}
|
|
10617
|
+
* @param {PlatformVersionLike} _platform_version
|
|
10338
10618
|
* @returns {IdentityPublicKey}
|
|
10339
10619
|
*/
|
|
10340
|
-
static fromObject(value,
|
|
10341
|
-
const ret = wasm.identitypublickey_fromObject(value,
|
|
10620
|
+
static fromObject(value, _platform_version) {
|
|
10621
|
+
const ret = wasm.identitypublickey_fromObject(value, _platform_version);
|
|
10342
10622
|
if (ret[2]) {
|
|
10343
10623
|
throw takeFromExternrefTable0(ret[1]);
|
|
10344
10624
|
}
|
|
@@ -10563,10 +10843,12 @@ export class IdentityPublicKey {
|
|
|
10563
10843
|
return v1;
|
|
10564
10844
|
}
|
|
10565
10845
|
/**
|
|
10566
|
-
* Serialize to JSON-compatible JS object (
|
|
10846
|
+
* Serialize to JSON-compatible JS object (canonical wire shape).
|
|
10567
10847
|
*
|
|
10568
|
-
*
|
|
10569
|
-
*
|
|
10848
|
+
* Binary fields render as base64 strings. Identifier fields render
|
|
10849
|
+
* as base58 strings. This matches the canonical `JsonConvertible`
|
|
10850
|
+
* path used by every other rs-dpp type's JSON conversion in this
|
|
10851
|
+
* SDK — including `IdentityWasm.toJSON`'s embedded public keys.
|
|
10570
10852
|
* @returns {IdentityPublicKeyJSON}
|
|
10571
10853
|
*/
|
|
10572
10854
|
toJSON() {
|
|
@@ -10579,8 +10861,9 @@ export class IdentityPublicKey {
|
|
|
10579
10861
|
/**
|
|
10580
10862
|
* Serialize to JS object (non-human-readable).
|
|
10581
10863
|
*
|
|
10582
|
-
* Uses platform_value conversion which properly handles the tagged enum
|
|
10583
|
-
*
|
|
10864
|
+
* Uses platform_value conversion which properly handles the tagged enum.
|
|
10865
|
+
* `disabledAt: null` is stripped automatically by the
|
|
10866
|
+
* `skip_serializing_if` attribute on the rs-dpp side.
|
|
10584
10867
|
* @returns {IdentityPublicKeyObject}
|
|
10585
10868
|
*/
|
|
10586
10869
|
toObject() {
|
|
@@ -14674,7 +14957,7 @@ export class SharedEncryptedNote {
|
|
|
14674
14957
|
constructor(senderKeyIndex, recipientKeyIndex, value) {
|
|
14675
14958
|
const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_malloc);
|
|
14676
14959
|
const len0 = WASM_VECTOR_LEN;
|
|
14677
|
-
const ret = wasm.
|
|
14960
|
+
const ret = wasm.privateencryptednote_constructor(senderKeyIndex, recipientKeyIndex, ptr0, len0);
|
|
14678
14961
|
this.__wbg_ptr = ret >>> 0;
|
|
14679
14962
|
SharedEncryptedNoteFinalization.register(this, this.__wbg_ptr, this);
|
|
14680
14963
|
return this;
|
|
@@ -17406,22 +17689,22 @@ export class TokenConfigurationLocalization {
|
|
|
17406
17689
|
return this;
|
|
17407
17690
|
}
|
|
17408
17691
|
/**
|
|
17409
|
-
* @param {TokenConfigurationLocalizationJSON}
|
|
17692
|
+
* @param {TokenConfigurationLocalizationJSON} js
|
|
17410
17693
|
* @returns {TokenConfigurationLocalization}
|
|
17411
17694
|
*/
|
|
17412
|
-
static fromJSON(
|
|
17413
|
-
const ret = wasm.tokenconfigurationlocalization_fromJSON(
|
|
17695
|
+
static fromJSON(js) {
|
|
17696
|
+
const ret = wasm.tokenconfigurationlocalization_fromJSON(js);
|
|
17414
17697
|
if (ret[2]) {
|
|
17415
17698
|
throw takeFromExternrefTable0(ret[1]);
|
|
17416
17699
|
}
|
|
17417
17700
|
return TokenConfigurationLocalization.__wrap(ret[0]);
|
|
17418
17701
|
}
|
|
17419
17702
|
/**
|
|
17420
|
-
* @param {TokenConfigurationLocalizationObject}
|
|
17703
|
+
* @param {TokenConfigurationLocalizationObject} obj
|
|
17421
17704
|
* @returns {TokenConfigurationLocalization}
|
|
17422
17705
|
*/
|
|
17423
|
-
static fromObject(
|
|
17424
|
-
const ret = wasm.tokenconfigurationlocalization_fromObject(
|
|
17706
|
+
static fromObject(obj) {
|
|
17707
|
+
const ret = wasm.tokenconfigurationlocalization_fromObject(obj);
|
|
17425
17708
|
if (ret[2]) {
|
|
17426
17709
|
throw takeFromExternrefTable0(ret[1]);
|
|
17427
17710
|
}
|
|
@@ -17886,7 +18169,7 @@ export class TokenDistributionRecipient {
|
|
|
17886
18169
|
* @returns {TokenDistributionRecipient}
|
|
17887
18170
|
*/
|
|
17888
18171
|
static ContractOwner() {
|
|
17889
|
-
const ret = wasm.
|
|
18172
|
+
const ret = wasm.authorizedactiontakers_NoOne();
|
|
17890
18173
|
return TokenDistributionRecipient.__wrap(ret);
|
|
17891
18174
|
}
|
|
17892
18175
|
/**
|
|
@@ -19274,6 +19557,28 @@ export class TokenPricingSchedule {
|
|
|
19274
19557
|
const ret = wasm.tokenpricingschedule_SinglePrice(credits);
|
|
19275
19558
|
return TokenPricingSchedule.__wrap(ret);
|
|
19276
19559
|
}
|
|
19560
|
+
/**
|
|
19561
|
+
* @param {any} js
|
|
19562
|
+
* @returns {TokenPricingSchedule}
|
|
19563
|
+
*/
|
|
19564
|
+
static fromJSON(js) {
|
|
19565
|
+
const ret = wasm.tokenpricingschedule_fromJSON(js);
|
|
19566
|
+
if (ret[2]) {
|
|
19567
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19568
|
+
}
|
|
19569
|
+
return TokenPricingSchedule.__wrap(ret[0]);
|
|
19570
|
+
}
|
|
19571
|
+
/**
|
|
19572
|
+
* @param {any} obj
|
|
19573
|
+
* @returns {TokenPricingSchedule}
|
|
19574
|
+
*/
|
|
19575
|
+
static fromObject(obj) {
|
|
19576
|
+
const ret = wasm.tokenpricingschedule_fromObject(obj);
|
|
19577
|
+
if (ret[2]) {
|
|
19578
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19579
|
+
}
|
|
19580
|
+
return TokenPricingSchedule.__wrap(ret[0]);
|
|
19581
|
+
}
|
|
19277
19582
|
/**
|
|
19278
19583
|
* @returns {string}
|
|
19279
19584
|
*/
|
|
@@ -19304,6 +19609,26 @@ export class TokenPricingSchedule {
|
|
|
19304
19609
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
19305
19610
|
}
|
|
19306
19611
|
}
|
|
19612
|
+
/**
|
|
19613
|
+
* @returns {any}
|
|
19614
|
+
*/
|
|
19615
|
+
toJSON() {
|
|
19616
|
+
const ret = wasm.tokenpricingschedule_toJSON(this.__wbg_ptr);
|
|
19617
|
+
if (ret[2]) {
|
|
19618
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19619
|
+
}
|
|
19620
|
+
return takeFromExternrefTable0(ret[0]);
|
|
19621
|
+
}
|
|
19622
|
+
/**
|
|
19623
|
+
* @returns {any}
|
|
19624
|
+
*/
|
|
19625
|
+
toObject() {
|
|
19626
|
+
const ret = wasm.tokenpricingschedule_toObject(this.__wbg_ptr);
|
|
19627
|
+
if (ret[2]) {
|
|
19628
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
19629
|
+
}
|
|
19630
|
+
return takeFromExternrefTable0(ret[0]);
|
|
19631
|
+
}
|
|
19307
19632
|
/**
|
|
19308
19633
|
* @returns {string}
|
|
19309
19634
|
*/
|
|
@@ -24688,6 +25013,9 @@ const IdentityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
24688
25013
|
const IdentityCreateFromAddressesTransitionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24689
25014
|
? { register: () => {}, unregister: () => {} }
|
|
24690
25015
|
: new FinalizationRegistry(ptr => wasm.__wbg_identitycreatefromaddressestransition_free(ptr >>> 0, 1));
|
|
25016
|
+
const IdentityCreateFromShieldedPoolTransitionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25017
|
+
? { register: () => {}, unregister: () => {} }
|
|
25018
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_identitycreatefromshieldedpooltransition_free(ptr >>> 0, 1));
|
|
24691
25019
|
const IdentityCreateTransitionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
24692
25020
|
? { register: () => {}, unregister: () => {} }
|
|
24693
25021
|
: new FinalizationRegistry(ptr => wasm.__wbg_identitycreatetransition_free(ptr >>> 0, 1));
|