pshenmic-dpp 1.0.21-rc.1 → 1.0.21
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.
|
@@ -294,6 +294,18 @@ export class ChangeControlRulesWASM {
|
|
|
294
294
|
changingAdminActionTakersToNoOneAllowed: boolean;
|
|
295
295
|
selfChangingAdminActionTakersAllowed: boolean;
|
|
296
296
|
}
|
|
297
|
+
export class ConsensusErrorWASM {
|
|
298
|
+
/** @returns {ConsensusErrorWASM} */
|
|
299
|
+
private constructor();
|
|
300
|
+
/** @ignore */
|
|
301
|
+
free(): void;
|
|
302
|
+
/**
|
|
303
|
+
* @param {Uint8Array<ArrayBufferLike>} error
|
|
304
|
+
* @returns {ConsensusErrorWASM}
|
|
305
|
+
*/
|
|
306
|
+
static deserialize(error: Uint8Array): ConsensusErrorWASM;
|
|
307
|
+
readonly message: string;
|
|
308
|
+
}
|
|
297
309
|
export class ContractBoundsWASM {
|
|
298
310
|
/** @returns {ContractBoundsWASM} */
|
|
299
311
|
private constructor();
|
|
@@ -1890,10 +1902,11 @@ export class StateTransitionWASM {
|
|
|
1890
1902
|
sign(private_key: PrivateKeyWASM, public_key: IdentityPublicKeyWASM): Uint8Array;
|
|
1891
1903
|
/**
|
|
1892
1904
|
* @param {PrivateKeyWASM} private_key
|
|
1905
|
+
* @param {number} key_id
|
|
1893
1906
|
* @param {any} js_key_type
|
|
1894
1907
|
* @returns {Uint8Array<ArrayBufferLike>}
|
|
1895
1908
|
*/
|
|
1896
|
-
signByPrivateKey(private_key: PrivateKeyWASM, js_key_type: any): Uint8Array;
|
|
1909
|
+
signByPrivateKey(private_key: PrivateKeyWASM, key_id: number, js_key_type: any): Uint8Array;
|
|
1897
1910
|
/**
|
|
1898
1911
|
* @param {IdentityPublicKeyWASM} public_key
|
|
1899
1912
|
* @param {boolean} js_allow_signing_with_any_security_level
|
|
@@ -3035,6 +3048,9 @@ export interface InitOutput {
|
|
|
3035
3048
|
readonly __wbg_datacontractupdatetransitionwasm_free: (a: number, b: number) => void;
|
|
3036
3049
|
readonly datacontractupdatetransitionwasm_get_identity_nonce: (a: number) => bigint;
|
|
3037
3050
|
readonly datacontractupdatetransitionwasm_get_feature_version: (a: number) => number;
|
|
3051
|
+
readonly __wbg_consensuserrorwasm_free: (a: number, b: number) => void;
|
|
3052
|
+
readonly consensuserrorwasm_deserialize: (a: number, b: number, c: number) => void;
|
|
3053
|
+
readonly consensuserrorwasm_message: (a: number, b: number) => void;
|
|
3038
3054
|
readonly __wbg_batchedtransitionwasm_free: (a: number, b: number) => void;
|
|
3039
3055
|
readonly batchedtransitionwasm_type_name: (a: number, b: number) => void;
|
|
3040
3056
|
readonly batchedtransitionwasm_struct_name: (a: number) => void;
|
|
@@ -3795,7 +3811,7 @@ export interface InitOutput {
|
|
|
3795
3811
|
readonly statetransitionwasm_type_name: (a: number, b: number) => void;
|
|
3796
3812
|
readonly statetransitionwasm_struct_name: (a: number) => void;
|
|
3797
3813
|
readonly statetransitionwasm_sign: (a: number, b: number, c: number, d: number) => void;
|
|
3798
|
-
readonly statetransitionwasm_signByPrivateKey: (a: number, b: number, c: number, d: number) => void;
|
|
3814
|
+
readonly statetransitionwasm_signByPrivateKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3799
3815
|
readonly statetransitionwasm_verifyPublicKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3800
3816
|
readonly statetransitionwasm_bytes: (a: number, b: number) => void;
|
|
3801
3817
|
readonly statetransitionwasm_hex: (a: number, b: number) => void;
|
|
@@ -1831,6 +1831,75 @@ export class ChangeControlRulesWASM {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
|
|
1834
|
+
const ConsensusErrorWASMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1835
|
+
? { register: () => {}, unregister: () => {} }
|
|
1836
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_consensuserrorwasm_free(ptr >>> 0, 1));
|
|
1837
|
+
|
|
1838
|
+
export class ConsensusErrorWASM {
|
|
1839
|
+
|
|
1840
|
+
static __wrap(ptr) {
|
|
1841
|
+
ptr = ptr >>> 0;
|
|
1842
|
+
const obj = Object.create(ConsensusErrorWASM.prototype);
|
|
1843
|
+
obj.__wbg_ptr = ptr;
|
|
1844
|
+
ConsensusErrorWASMFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1845
|
+
return obj;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
__destroy_into_raw() {
|
|
1849
|
+
const ptr = this.__wbg_ptr;
|
|
1850
|
+
this.__wbg_ptr = 0;
|
|
1851
|
+
ConsensusErrorWASMFinalization.unregister(this);
|
|
1852
|
+
return ptr;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
/** @ignore */
|
|
1856
|
+
/** */
|
|
1857
|
+
free() {
|
|
1858
|
+
const ptr = this.__destroy_into_raw();
|
|
1859
|
+
wasm.__wbg_consensuserrorwasm_free(ptr, 0);
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* @param {Uint8Array} error
|
|
1863
|
+
* @returns {ConsensusErrorWASM}
|
|
1864
|
+
*/
|
|
1865
|
+
static deserialize(error) {
|
|
1866
|
+
try {
|
|
1867
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1868
|
+
const ptr0 = passArray8ToWasm0(error, wasm.__wbindgen_export_1);
|
|
1869
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1870
|
+
wasm.consensuserrorwasm_deserialize(retptr, ptr0, len0);
|
|
1871
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1872
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1873
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1874
|
+
if (r2) {
|
|
1875
|
+
throw takeObject(r1);
|
|
1876
|
+
}
|
|
1877
|
+
return ConsensusErrorWASM.__wrap(r0);
|
|
1878
|
+
} finally {
|
|
1879
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* @returns {string}
|
|
1884
|
+
*/
|
|
1885
|
+
get message() {
|
|
1886
|
+
let deferred1_0;
|
|
1887
|
+
let deferred1_1;
|
|
1888
|
+
try {
|
|
1889
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1890
|
+
wasm.consensuserrorwasm_message(retptr, this.__wbg_ptr);
|
|
1891
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1892
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1893
|
+
deferred1_0 = r0;
|
|
1894
|
+
deferred1_1 = r1;
|
|
1895
|
+
return getStringFromWasm0(r0, r1);
|
|
1896
|
+
} finally {
|
|
1897
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1898
|
+
wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1834
1903
|
const ContractBoundsWASMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1835
1904
|
? { register: () => {}, unregister: () => {} }
|
|
1836
1905
|
: new FinalizationRegistry(ptr => wasm.__wbg_contractboundswasm_free(ptr >>> 0, 1));
|
|
@@ -12823,14 +12892,15 @@ export class StateTransitionWASM {
|
|
|
12823
12892
|
}
|
|
12824
12893
|
/**
|
|
12825
12894
|
* @param {PrivateKeyWASM} private_key
|
|
12895
|
+
* @param {number} key_id
|
|
12826
12896
|
* @param {any} js_key_type
|
|
12827
12897
|
* @returns {Uint8Array}
|
|
12828
12898
|
*/
|
|
12829
|
-
signByPrivateKey(private_key, js_key_type) {
|
|
12899
|
+
signByPrivateKey(private_key, key_id, js_key_type) {
|
|
12830
12900
|
try {
|
|
12831
12901
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12832
12902
|
_assertClass(private_key, PrivateKeyWASM);
|
|
12833
|
-
wasm.statetransitionwasm_signByPrivateKey(retptr, this.__wbg_ptr, private_key.__wbg_ptr, addHeapObject(js_key_type));
|
|
12903
|
+
wasm.statetransitionwasm_signByPrivateKey(retptr, this.__wbg_ptr, private_key.__wbg_ptr, key_id, addHeapObject(js_key_type));
|
|
12834
12904
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
12835
12905
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
12836
12906
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|