@kaleidorg/rgb-lib-wasm 1.0.0-ks.2 → 1.0.0-ks.4
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/README.md +5 -0
- package/package.json +1 -1
- package/rgb_lib_wasm_bindings.js +5 -5
- package/rgb_lib_wasm_bindings_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -92,6 +92,7 @@ const walletData = {
|
|
|
92
92
|
masterFingerprint: keys.masterFingerprint,
|
|
93
93
|
vanillaKeychain: null,
|
|
94
94
|
supportedSchemas: ['Nia', 'Ifa'],
|
|
95
|
+
allowRecklessSchemas: false,
|
|
95
96
|
};
|
|
96
97
|
|
|
97
98
|
// create() restores state from IndexedDB if available
|
|
@@ -101,6 +102,10 @@ const wallet = await WasmWallet.create(JSON.stringify(walletData));
|
|
|
101
102
|
await wallet.flush();
|
|
102
103
|
```
|
|
103
104
|
|
|
105
|
+
On `Mainnet`, a wallet that supports `Ifa` or `Bfa` fails with `Cannot use <schema> schema on mainnet`.
|
|
106
|
+
Set `allowRecklessSchemas: true` to allow it. The wallet then logs a warning.
|
|
107
|
+
The field is optional and defaults to `false`. Other networks allow every schema.
|
|
108
|
+
|
|
104
109
|
### Persistence ordering
|
|
105
110
|
|
|
106
111
|
`WasmWallet.create()` and Rust `Wallet::restore()` finish IndexedDB restoration
|
package/package.json
CHANGED
package/rgb_lib_wasm_bindings.js
CHANGED
|
@@ -1918,27 +1918,27 @@ function __wbg_get_imports() {
|
|
|
1918
1918
|
return ret;
|
|
1919
1919
|
},
|
|
1920
1920
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1921
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1921
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3483, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1922
1922
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8b361fd53fbac195___convert__closures_____invoke___wasm_bindgen_8b361fd53fbac195___JsValue__core_d941ad8722425d2e___result__Result_____wasm_bindgen_8b361fd53fbac195___JsError___true_);
|
|
1923
1923
|
return ret;
|
|
1924
1924
|
},
|
|
1925
1925
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1926
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1926
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1744, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1927
1927
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8b361fd53fbac195___convert__closures_____invoke___web_sys_5460071c308c7bd5___features__gen_Event__Event______true_);
|
|
1928
1928
|
return ret;
|
|
1929
1929
|
},
|
|
1930
1930
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1931
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1931
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 1610, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1932
1932
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8b361fd53fbac195___convert__closures_____invoke___web_sys_5460071c308c7bd5___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_);
|
|
1933
1933
|
return ret;
|
|
1934
1934
|
},
|
|
1935
1935
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1936
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1936
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1966, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1937
1937
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8b361fd53fbac195___convert__closures_____invoke_______true_);
|
|
1938
1938
|
return ret;
|
|
1939
1939
|
},
|
|
1940
1940
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1941
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1941
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3434, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1942
1942
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_8b361fd53fbac195___convert__closures_____invoke_______true__1_);
|
|
1943
1943
|
return ret;
|
|
1944
1944
|
},
|
|
Binary file
|