pshenmic-dpp 1.1.2-dev.1 → 1.1.2-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.
@@ -757,6 +757,35 @@ export function verifySignatureDigest(sign_digest, signature, pubkey_bytes) {
757
757
  }
758
758
  }
759
759
 
760
+ /**
761
+ * @param {Uint8Array} proof
762
+ * @param {StateTransitionWASM} state_transition
763
+ * @param {BlockInfoWASM} block_info
764
+ * @param {any} js_known_contracts_array
765
+ * @param {any} js_platform_version
766
+ * @returns {VerifiedStateTransitionResultWASM}
767
+ */
768
+ export function verifyStateTransitionResult(proof, state_transition, block_info, js_known_contracts_array, js_platform_version) {
769
+ try {
770
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
771
+ _assertClass(state_transition, StateTransitionWASM);
772
+ _assertClass(block_info, BlockInfoWASM);
773
+ wasm.verifyStateTransitionResult(retptr, addBorrowedObject(proof), state_transition.__wbg_ptr, block_info.__wbg_ptr, addBorrowedObject(js_known_contracts_array), addBorrowedObject(js_platform_version));
774
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
775
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
776
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
777
+ if (r2) {
778
+ throw takeObject(r1);
779
+ }
780
+ return VerifiedStateTransitionResultWASM.__wrap(r0);
781
+ } finally {
782
+ wasm.__wbindgen_add_to_stack_pointer(16);
783
+ heap[stack_pointer++] = undefined;
784
+ heap[stack_pointer++] = undefined;
785
+ heap[stack_pointer++] = undefined;
786
+ }
787
+ }
788
+
760
789
  let cachedUint32ArrayMemory0 = null;
761
790
 
762
791
  function getUint32ArrayMemory0() {
@@ -811,6 +840,13 @@ export const GasFeesPaidByWASM = Object.freeze({
811
840
  ContractOwner: 1, "1": "ContractOwner",
812
841
  PreferContractOwner: 2, "2": "PreferContractOwner",
813
842
  });
843
+ /**
844
+ * @enum {0 | 1}
845
+ */
846
+ export const GroupActionStatusWASM = Object.freeze({
847
+ ActionActive: 0, "0": "ActionActive",
848
+ ActionClosed: 1, "1": "ActionClosed",
849
+ });
814
850
  /**
815
851
  * @enum {0 | 1 | 2 | 3 | 4}
816
852
  */
@@ -2062,6 +2098,137 @@ export class BlockBasedDistributionWASM {
2062
2098
  }
2063
2099
  if (Symbol.dispose) BlockBasedDistributionWASM.prototype[Symbol.dispose] = BlockBasedDistributionWASM.prototype.free;
2064
2100
 
2101
+ const BlockInfoWASMFinalization = (typeof FinalizationRegistry === 'undefined')
2102
+ ? { register: () => {}, unregister: () => {} }
2103
+ : new FinalizationRegistry(ptr => wasm.__wbg_blockinfowasm_free(ptr >>> 0, 1));
2104
+
2105
+ export class BlockInfoWASM {
2106
+
2107
+ __destroy_into_raw() {
2108
+ const ptr = this.__wbg_ptr;
2109
+ this.__wbg_ptr = 0;
2110
+ BlockInfoWASMFinalization.unregister(this);
2111
+ return ptr;
2112
+ }
2113
+
2114
+ /** @ignore */
2115
+ /** */
2116
+ free() {
2117
+ const ptr = this.__destroy_into_raw();
2118
+ wasm.__wbg_blockinfowasm_free(ptr, 0);
2119
+ }
2120
+ /**
2121
+ * @param {bigint} height
2122
+ */
2123
+ set height(height) {
2124
+ wasm.blockinfowasm_set_height(this.__wbg_ptr, height);
2125
+ }
2126
+ /**
2127
+ * @returns {number}
2128
+ */
2129
+ get coreHeight() {
2130
+ const ret = wasm.blockinfowasm_core_height(this.__wbg_ptr);
2131
+ return ret >>> 0;
2132
+ }
2133
+ /**
2134
+ * @returns {number}
2135
+ */
2136
+ get epochIndex() {
2137
+ const ret = wasm.blockinfowasm_epoch_index(this.__wbg_ptr);
2138
+ return ret;
2139
+ }
2140
+ /**
2141
+ * @param {bigint} time_ms
2142
+ */
2143
+ set timeMs(time_ms) {
2144
+ wasm.blockinfowasm_set_time_ms(this.__wbg_ptr, time_ms);
2145
+ }
2146
+ /**
2147
+ * @param {Uint8Array} epoch_key
2148
+ */
2149
+ set epochKey(epoch_key) {
2150
+ try {
2151
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2152
+ const ptr0 = passArray8ToWasm0(epoch_key, wasm.__wbindgen_export2);
2153
+ const len0 = WASM_VECTOR_LEN;
2154
+ wasm.blockinfowasm_set_epoch_key(retptr, this.__wbg_ptr, ptr0, len0);
2155
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2156
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2157
+ if (r1) {
2158
+ throw takeObject(r0);
2159
+ }
2160
+ } finally {
2161
+ wasm.__wbindgen_add_to_stack_pointer(16);
2162
+ }
2163
+ }
2164
+ /**
2165
+ * @param {number} core_height
2166
+ */
2167
+ set coreHeight(core_height) {
2168
+ wasm.blockinfowasm_set_core_height(this.__wbg_ptr, core_height);
2169
+ }
2170
+ /**
2171
+ * @param {number} epoch_index
2172
+ */
2173
+ set epochIndex(epoch_index) {
2174
+ wasm.blockinfowasm_set_epoch_index(this.__wbg_ptr, epoch_index);
2175
+ }
2176
+ /**
2177
+ * @param {bigint} timestamp
2178
+ * @param {bigint} height
2179
+ * @param {number} core_block_height
2180
+ * @param {number | null} [js_epoch_index]
2181
+ */
2182
+ constructor(timestamp, height, core_block_height, js_epoch_index) {
2183
+ try {
2184
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2185
+ wasm.blockinfowasm_new(retptr, timestamp, height, core_block_height, isLikeNone(js_epoch_index) ? 0xFFFFFF : js_epoch_index);
2186
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2187
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2188
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
2189
+ if (r2) {
2190
+ throw takeObject(r1);
2191
+ }
2192
+ this.__wbg_ptr = r0 >>> 0;
2193
+ BlockInfoWASMFinalization.register(this, this.__wbg_ptr, this);
2194
+ return this;
2195
+ } finally {
2196
+ wasm.__wbindgen_add_to_stack_pointer(16);
2197
+ }
2198
+ }
2199
+ /**
2200
+ * @returns {bigint}
2201
+ */
2202
+ get height() {
2203
+ const ret = wasm.blockinfowasm_height(this.__wbg_ptr);
2204
+ return BigInt.asUintN(64, ret);
2205
+ }
2206
+ /**
2207
+ * @returns {bigint}
2208
+ */
2209
+ get timeMs() {
2210
+ const ret = wasm.blockinfowasm_time_ms(this.__wbg_ptr);
2211
+ return BigInt.asUintN(64, ret);
2212
+ }
2213
+ /**
2214
+ * @returns {Uint8Array}
2215
+ */
2216
+ get epochKey() {
2217
+ try {
2218
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2219
+ wasm.blockinfowasm_epoch_key(retptr, this.__wbg_ptr);
2220
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2221
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2222
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2223
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
2224
+ return v1;
2225
+ } finally {
2226
+ wasm.__wbindgen_add_to_stack_pointer(16);
2227
+ }
2228
+ }
2229
+ }
2230
+ if (Symbol.dispose) BlockInfoWASM.prototype[Symbol.dispose] = BlockInfoWASM.prototype.free;
2231
+
2065
2232
  const ChainAssetLockProofWASMFinalization = (typeof FinalizationRegistry === 'undefined')
2066
2233
  ? { register: () => {}, unregister: () => {} }
2067
2234
  : new FinalizationRegistry(ptr => wasm.__wbg_chainassetlockproofwasm_free(ptr >>> 0, 1));
@@ -10056,6 +10223,27 @@ export class IdentityPublicKeyInCreationWASM {
10056
10223
  heap[stack_pointer++] = undefined;
10057
10224
  }
10058
10225
  }
10226
+ /**
10227
+ * @param {PrivateKeyWASM} private_key
10228
+ * @param {any} js_network
10229
+ * @returns {boolean}
10230
+ */
10231
+ validatePrivateKey(private_key, js_network) {
10232
+ try {
10233
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10234
+ _assertClass(private_key, PrivateKeyWASM);
10235
+ wasm.identitypublickeyincreationwasm_validatePrivateKey(retptr, this.__wbg_ptr, private_key.__wbg_ptr, addHeapObject(js_network));
10236
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10237
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10238
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
10239
+ if (r2) {
10240
+ throw takeObject(r1);
10241
+ }
10242
+ return r0 !== 0;
10243
+ } finally {
10244
+ wasm.__wbindgen_add_to_stack_pointer(16);
10245
+ }
10246
+ }
10059
10247
  /**
10060
10248
  * @returns {IdentityPublicKeyWASM}
10061
10249
  */
@@ -10551,6 +10739,27 @@ export class IdentityPublicKeyWASM {
10551
10739
  heap[stack_pointer++] = undefined;
10552
10740
  }
10553
10741
  }
10742
+ /**
10743
+ * @param {PrivateKeyWASM} private_key
10744
+ * @param {any} js_network
10745
+ * @returns {boolean}
10746
+ */
10747
+ validatePrivateKeyBytes(private_key, js_network) {
10748
+ try {
10749
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10750
+ _assertClass(private_key, PrivateKeyWASM);
10751
+ wasm.identitypublickeywasm_validatePrivateKeyBytes(retptr, this.__wbg_ptr, private_key.__wbg_ptr, addHeapObject(js_network));
10752
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10753
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10754
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
10755
+ if (r2) {
10756
+ throw takeObject(r1);
10757
+ }
10758
+ return r0 !== 0;
10759
+ } finally {
10760
+ wasm.__wbindgen_add_to_stack_pointer(16);
10761
+ }
10762
+ }
10554
10763
  /**
10555
10764
  * @param {number} id
10556
10765
  * @param {any} js_purpose
@@ -10611,27 +10820,6 @@ export class IdentityPublicKeyWASM {
10611
10820
  wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
10612
10821
  }
10613
10822
  }
10614
- /**
10615
- * @returns {Uint8Array}
10616
- */
10617
- bytes() {
10618
- try {
10619
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10620
- wasm.identitypublickeywasm_bytes(retptr, this.__wbg_ptr);
10621
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10622
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10623
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
10624
- var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
10625
- if (r3) {
10626
- throw takeObject(r2);
10627
- }
10628
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
10629
- wasm.__wbindgen_export4(r0, r1 * 1, 1);
10630
- return v1;
10631
- } finally {
10632
- wasm.__wbindgen_add_to_stack_pointer(16);
10633
- }
10634
- }
10635
10823
  /**
10636
10824
  * @param {string} hex
10637
10825
  * @returns {IdentityPublicKeyWASM}
@@ -10690,6 +10878,27 @@ export class IdentityPublicKeyWASM {
10690
10878
  wasm.__wbindgen_add_to_stack_pointer(16);
10691
10879
  }
10692
10880
  }
10881
+ /**
10882
+ * @returns {Uint8Array}
10883
+ */
10884
+ bytes() {
10885
+ try {
10886
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10887
+ wasm.identitypublickeywasm_bytes(retptr, this.__wbg_ptr);
10888
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
10889
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
10890
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
10891
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
10892
+ if (r3) {
10893
+ throw takeObject(r2);
10894
+ }
10895
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
10896
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
10897
+ return v1;
10898
+ } finally {
10899
+ wasm.__wbindgen_add_to_stack_pointer(16);
10900
+ }
10901
+ }
10693
10902
  /**
10694
10903
  * @returns {boolean}
10695
10904
  */
@@ -10746,6 +10955,49 @@ export class IdentityPublicKeyWASM {
10746
10955
  }
10747
10956
  if (Symbol.dispose) IdentityPublicKeyWASM.prototype[Symbol.dispose] = IdentityPublicKeyWASM.prototype.free;
10748
10957
 
10958
+ const IdentityTokenInfoWASMFinalization = (typeof FinalizationRegistry === 'undefined')
10959
+ ? { register: () => {}, unregister: () => {} }
10960
+ : new FinalizationRegistry(ptr => wasm.__wbg_identitytokeninfowasm_free(ptr >>> 0, 1));
10961
+
10962
+ export class IdentityTokenInfoWASM {
10963
+
10964
+ static __wrap(ptr) {
10965
+ ptr = ptr >>> 0;
10966
+ const obj = Object.create(IdentityTokenInfoWASM.prototype);
10967
+ obj.__wbg_ptr = ptr;
10968
+ IdentityTokenInfoWASMFinalization.register(obj, obj.__wbg_ptr, obj);
10969
+ return obj;
10970
+ }
10971
+
10972
+ __destroy_into_raw() {
10973
+ const ptr = this.__wbg_ptr;
10974
+ this.__wbg_ptr = 0;
10975
+ IdentityTokenInfoWASMFinalization.unregister(this);
10976
+ return ptr;
10977
+ }
10978
+
10979
+ /** @ignore */
10980
+ /** */
10981
+ free() {
10982
+ const ptr = this.__destroy_into_raw();
10983
+ wasm.__wbg_identitytokeninfowasm_free(ptr, 0);
10984
+ }
10985
+ /**
10986
+ * @param {boolean} frozen
10987
+ */
10988
+ set frozen(frozen) {
10989
+ wasm.identitytokeninfowasm_set_frozen(this.__wbg_ptr, frozen);
10990
+ }
10991
+ /**
10992
+ * @returns {boolean}
10993
+ */
10994
+ get frozen() {
10995
+ const ret = wasm.identitytokeninfowasm_frozen(this.__wbg_ptr);
10996
+ return ret !== 0;
10997
+ }
10998
+ }
10999
+ if (Symbol.dispose) IdentityTokenInfoWASM.prototype[Symbol.dispose] = IdentityTokenInfoWASM.prototype.free;
11000
+
10749
11001
  const IdentityTopUpTransitionWASMFinalization = (typeof FinalizationRegistry === 'undefined')
10750
11002
  ? { register: () => {}, unregister: () => {} }
10751
11003
  : new FinalizationRegistry(ptr => wasm.__wbg_identitytopuptransitionwasm_free(ptr >>> 0, 1));
@@ -13509,6 +13761,30 @@ export class PrivateKeyWASM {
13509
13761
  wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
13510
13762
  }
13511
13763
  }
13764
+ /**
13765
+ * @param {Uint8Array} data
13766
+ * @returns {Uint8Array}
13767
+ */
13768
+ sign(data) {
13769
+ try {
13770
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
13771
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export2);
13772
+ const len0 = WASM_VECTOR_LEN;
13773
+ wasm.privatekeywasm_sign(retptr, this.__wbg_ptr, ptr0, len0);
13774
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
13775
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
13776
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
13777
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
13778
+ if (r3) {
13779
+ throw takeObject(r2);
13780
+ }
13781
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
13782
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
13783
+ return v2;
13784
+ } finally {
13785
+ wasm.__wbindgen_add_to_stack_pointer(16);
13786
+ }
13787
+ }
13512
13788
  /**
13513
13789
  * @returns {string}
13514
13790
  */
@@ -13607,6 +13883,30 @@ export class PrivateKeyWASM {
13607
13883
  wasm.__wbindgen_add_to_stack_pointer(16);
13608
13884
  }
13609
13885
  }
13886
+ /**
13887
+ * @param {Uint8Array} data_hash
13888
+ * @returns {Uint8Array}
13889
+ */
13890
+ signHash(data_hash) {
13891
+ try {
13892
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
13893
+ const ptr0 = passArray8ToWasm0(data_hash, wasm.__wbindgen_export2);
13894
+ const len0 = WASM_VECTOR_LEN;
13895
+ wasm.privatekeywasm_signHash(retptr, this.__wbg_ptr, ptr0, len0);
13896
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
13897
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
13898
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
13899
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
13900
+ if (r3) {
13901
+ throw takeObject(r2);
13902
+ }
13903
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
13904
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
13905
+ return v2;
13906
+ } finally {
13907
+ wasm.__wbindgen_add_to_stack_pointer(16);
13908
+ }
13909
+ }
13610
13910
  /**
13611
13911
  * @returns {string}
13612
13912
  */
@@ -18784,6 +19084,49 @@ export class TokenSetPriceForDirectPurchaseTransitionWASM {
18784
19084
  }
18785
19085
  if (Symbol.dispose) TokenSetPriceForDirectPurchaseTransitionWASM.prototype[Symbol.dispose] = TokenSetPriceForDirectPurchaseTransitionWASM.prototype.free;
18786
19086
 
19087
+ const TokenStatusWASMFinalization = (typeof FinalizationRegistry === 'undefined')
19088
+ ? { register: () => {}, unregister: () => {} }
19089
+ : new FinalizationRegistry(ptr => wasm.__wbg_tokenstatuswasm_free(ptr >>> 0, 1));
19090
+
19091
+ export class TokenStatusWASM {
19092
+
19093
+ static __wrap(ptr) {
19094
+ ptr = ptr >>> 0;
19095
+ const obj = Object.create(TokenStatusWASM.prototype);
19096
+ obj.__wbg_ptr = ptr;
19097
+ TokenStatusWASMFinalization.register(obj, obj.__wbg_ptr, obj);
19098
+ return obj;
19099
+ }
19100
+
19101
+ __destroy_into_raw() {
19102
+ const ptr = this.__wbg_ptr;
19103
+ this.__wbg_ptr = 0;
19104
+ TokenStatusWASMFinalization.unregister(this);
19105
+ return ptr;
19106
+ }
19107
+
19108
+ /** @ignore */
19109
+ /** */
19110
+ free() {
19111
+ const ptr = this.__destroy_into_raw();
19112
+ wasm.__wbg_tokenstatuswasm_free(ptr, 0);
19113
+ }
19114
+ /**
19115
+ * @param {boolean} paused
19116
+ */
19117
+ set paused(paused) {
19118
+ wasm.tokenstatuswasm_set_paused(this.__wbg_ptr, paused);
19119
+ }
19120
+ /**
19121
+ * @returns {boolean}
19122
+ */
19123
+ get paused() {
19124
+ const ret = wasm.identitytokeninfowasm_frozen(this.__wbg_ptr);
19125
+ return ret !== 0;
19126
+ }
19127
+ }
19128
+ if (Symbol.dispose) TokenStatusWASM.prototype[Symbol.dispose] = TokenStatusWASM.prototype.free;
19129
+
18787
19130
  const TokenTradeModeWASMFinalization = (typeof FinalizationRegistry === 'undefined')
18788
19131
  ? { register: () => {}, unregister: () => {} }
18789
19132
  : new FinalizationRegistry(ptr => wasm.__wbg_tokentrademodewasm_free(ptr >>> 0, 1));
@@ -20963,6 +21306,99 @@ export class VerifiedIdentityNonceWASM {
20963
21306
  }
20964
21307
  if (Symbol.dispose) VerifiedIdentityNonceWASM.prototype[Symbol.dispose] = VerifiedIdentityNonceWASM.prototype.free;
20965
21308
 
21309
+ const VerifiedStateTransitionResultWASMFinalization = (typeof FinalizationRegistry === 'undefined')
21310
+ ? { register: () => {}, unregister: () => {} }
21311
+ : new FinalizationRegistry(ptr => wasm.__wbg_verifiedstatetransitionresultwasm_free(ptr >>> 0, 1));
21312
+
21313
+ export class VerifiedStateTransitionResultWASM {
21314
+
21315
+ static __wrap(ptr) {
21316
+ ptr = ptr >>> 0;
21317
+ const obj = Object.create(VerifiedStateTransitionResultWASM.prototype);
21318
+ obj.__wbg_ptr = ptr;
21319
+ VerifiedStateTransitionResultWASMFinalization.register(obj, obj.__wbg_ptr, obj);
21320
+ return obj;
21321
+ }
21322
+
21323
+ __destroy_into_raw() {
21324
+ const ptr = this.__wbg_ptr;
21325
+ this.__wbg_ptr = 0;
21326
+ VerifiedStateTransitionResultWASMFinalization.unregister(this);
21327
+ return ptr;
21328
+ }
21329
+
21330
+ /** @ignore */
21331
+ /** */
21332
+ free() {
21333
+ const ptr = this.__destroy_into_raw();
21334
+ wasm.__wbg_verifiedstatetransitionresultwasm_free(ptr, 0);
21335
+ }
21336
+ /**
21337
+ * @returns {string}
21338
+ */
21339
+ static get __struct() {
21340
+ let deferred1_0;
21341
+ let deferred1_1;
21342
+ try {
21343
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
21344
+ wasm.verifiedstatetransitionresultwasm_struct_name(retptr);
21345
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
21346
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
21347
+ deferred1_0 = r0;
21348
+ deferred1_1 = r1;
21349
+ return getStringFromWasm0(r0, r1);
21350
+ } finally {
21351
+ wasm.__wbindgen_add_to_stack_pointer(16);
21352
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
21353
+ }
21354
+ }
21355
+ /**
21356
+ * @returns {any}
21357
+ */
21358
+ get result() {
21359
+ try {
21360
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
21361
+ wasm.verifiedstatetransitionresultwasm_result(retptr, this.__wbg_ptr);
21362
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
21363
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
21364
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
21365
+ if (r2) {
21366
+ throw takeObject(r1);
21367
+ }
21368
+ return takeObject(r0);
21369
+ } finally {
21370
+ wasm.__wbindgen_add_to_stack_pointer(16);
21371
+ }
21372
+ }
21373
+ /**
21374
+ * @returns {Uint8Array}
21375
+ */
21376
+ get rootHash() {
21377
+ const ret = wasm.verifiedstatetransitionresultwasm_root_hash(this.__wbg_ptr);
21378
+ return takeObject(ret);
21379
+ }
21380
+ /**
21381
+ * @returns {string}
21382
+ */
21383
+ get __type() {
21384
+ let deferred1_0;
21385
+ let deferred1_1;
21386
+ try {
21387
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
21388
+ wasm.verifiedstatetransitionresultwasm_type_name(retptr, this.__wbg_ptr);
21389
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
21390
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
21391
+ deferred1_0 = r0;
21392
+ deferred1_1 = r1;
21393
+ return getStringFromWasm0(r0, r1);
21394
+ } finally {
21395
+ wasm.__wbindgen_add_to_stack_pointer(16);
21396
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
21397
+ }
21398
+ }
21399
+ }
21400
+ if (Symbol.dispose) VerifiedStateTransitionResultWASM.prototype[Symbol.dispose] = VerifiedStateTransitionResultWASM.prototype.free;
21401
+
20966
21402
  const VerifiedTokenBalancesForIdentitiesWASMFinalization = (typeof FinalizationRegistry === 'undefined')
20967
21403
  ? { register: () => {}, unregister: () => {} }
20968
21404
  : new FinalizationRegistry(ptr => wasm.__wbg_verifiedtokenbalancesforidentitieswasm_free(ptr >>> 0, 1));
@@ -22179,6 +22615,10 @@ function __wbg_get_imports() {
22179
22615
  const ret = getObject(arg0).crypto;
22180
22616
  return addHeapObject(ret);
22181
22617
  };
22618
+ imports.wbg.__wbg_datacontractwasm_new = function(arg0) {
22619
+ const ret = DataContractWASM.__wrap(arg0);
22620
+ return addHeapObject(ret);
22621
+ };
22182
22622
  imports.wbg.__wbg_distributionexponentialwasm_new = function(arg0) {
22183
22623
  const ret = DistributionExponentialWASM.__wrap(arg0);
22184
22624
  return addHeapObject(ret);
@@ -22270,6 +22710,14 @@ function __wbg_get_imports() {
22270
22710
  const ret = IdentityPublicKeyWASM.__wrap(arg0);
22271
22711
  return addHeapObject(ret);
22272
22712
  };
22713
+ imports.wbg.__wbg_identitytokeninfowasm_new = function(arg0) {
22714
+ const ret = IdentityTokenInfoWASM.__wrap(arg0);
22715
+ return addHeapObject(ret);
22716
+ };
22717
+ imports.wbg.__wbg_identitywasm_new = function(arg0) {
22718
+ const ret = IdentityWASM.__wrap(arg0);
22719
+ return addHeapObject(ret);
22720
+ };
22273
22721
  imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
22274
22722
  let result;
22275
22723
  try {
@@ -22366,6 +22814,10 @@ function __wbg_get_imports() {
22366
22814
  const ret = OutPointWASM.__wrap(arg0);
22367
22815
  return addHeapObject(ret);
22368
22816
  };
22817
+ imports.wbg.__wbg_partialidentitywasm_new = function(arg0) {
22818
+ const ret = PartialIdentityWASM.__wrap(arg0);
22819
+ return addHeapObject(ret);
22820
+ };
22369
22821
  imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
22370
22822
  const ret = getObject(arg0).process;
22371
22823
  return addHeapObject(ret);
@@ -22500,6 +22952,10 @@ function __wbg_get_imports() {
22500
22952
  const ret = TokenSetPriceForDirectPurchaseTransitionWASM.__wrap(arg0);
22501
22953
  return addHeapObject(ret);
22502
22954
  };
22955
+ imports.wbg.__wbg_tokenstatuswasm_new = function(arg0) {
22956
+ const ret = TokenStatusWASM.__wrap(arg0);
22957
+ return addHeapObject(ret);
22958
+ };
22503
22959
  imports.wbg.__wbg_tokentrademodewasm_new = function(arg0) {
22504
22960
  const ret = TokenTradeModeWASM.__wrap(arg0);
22505
22961
  return addHeapObject(ret);
@@ -22532,6 +22988,10 @@ function __wbg_get_imports() {
22532
22988
  const ret = getObject(arg0).versions;
22533
22989
  return addHeapObject(ret);
22534
22990
  };
22991
+ imports.wbg.__wbg_votewasm_new = function(arg0) {
22992
+ const ret = VoteWASM.__wrap(arg0);
22993
+ return addHeapObject(ret);
22994
+ };
22535
22995
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
22536
22996
  // Cast intrinsic for `Ref(String) -> Externref`.
22537
22997
  const ret = getStringFromWasm0(arg0, arg1);