bitmask-core 0.6.2 → 0.6.3-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/LICENSE-APACHE +176 -0
- package/LICENSE-MIT +25 -0
- package/bitmask_core.d.ts +6 -0
- package/bitmask_core_bg.js +182 -40
- package/bitmask_core_bg.wasm +0 -0
- package/package.json +4 -2
package/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
package/LICENSE-MIT
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Copyright (c) 2022 DIBA Global, Inc.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any
|
|
4
|
+
person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the
|
|
6
|
+
Software without restriction, including without
|
|
7
|
+
limitation the rights to use, copy, modify, merge,
|
|
8
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software
|
|
10
|
+
is furnished to do so, subject to the following
|
|
11
|
+
conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice
|
|
14
|
+
shall be included in all copies or substantial portions
|
|
15
|
+
of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
18
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
19
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
20
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
21
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
23
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
24
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
25
|
+
DEALINGS IN THE SOFTWARE.
|
package/bitmask_core.d.ts
CHANGED
|
@@ -41,6 +41,12 @@ export function transfer_asset(nostr_hex_sk: string, request: any): Promise<any>
|
|
|
41
41
|
* @param {any} request
|
|
42
42
|
* @returns {Promise<any>}
|
|
43
43
|
*/
|
|
44
|
+
export function full_transfer_asset(nostr_hex_sk: string, request: any): Promise<any>;
|
|
45
|
+
/**
|
|
46
|
+
* @param {string} nostr_hex_sk
|
|
47
|
+
* @param {any} request
|
|
48
|
+
* @returns {Promise<any>}
|
|
49
|
+
*/
|
|
44
50
|
export function accept_transfer(nostr_hex_sk: string, request: any): Promise<any>;
|
|
45
51
|
/**
|
|
46
52
|
* @param {string} nostr_hex_sk
|
package/bitmask_core_bg.js
CHANGED
|
@@ -230,7 +230,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
230
230
|
|
|
231
231
|
return real;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
234
234
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae52e2144aa84ab8(arg0, arg1, addHeapObject(arg2));
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -306,6 +306,18 @@ export function transfer_asset(nostr_hex_sk, request) {
|
|
|
306
306
|
return takeObject(ret);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
/**
|
|
310
|
+
* @param {string} nostr_hex_sk
|
|
311
|
+
* @param {any} request
|
|
312
|
+
* @returns {Promise<any>}
|
|
313
|
+
*/
|
|
314
|
+
export function full_transfer_asset(nostr_hex_sk, request) {
|
|
315
|
+
const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
316
|
+
const len0 = WASM_VECTOR_LEN;
|
|
317
|
+
const ret = wasm.full_transfer_asset(ptr0, len0, addHeapObject(request));
|
|
318
|
+
return takeObject(ret);
|
|
319
|
+
}
|
|
320
|
+
|
|
309
321
|
/**
|
|
310
322
|
* @param {string} nostr_hex_sk
|
|
311
323
|
* @param {any} request
|
|
@@ -1025,7 +1037,7 @@ function handleError(f, args) {
|
|
|
1025
1037
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
1026
1038
|
}
|
|
1027
1039
|
}
|
|
1028
|
-
function
|
|
1040
|
+
function __wbg_adapter_235(arg0, arg1, arg2, arg3) {
|
|
1029
1041
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2e83059155d101bd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1030
1042
|
}
|
|
1031
1043
|
|
|
@@ -1033,6 +1045,12 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
|
1033
1045
|
takeObject(arg0);
|
|
1034
1046
|
};
|
|
1035
1047
|
|
|
1048
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
1049
|
+
const v = getObject(arg0);
|
|
1050
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1051
|
+
return ret;
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1036
1054
|
export function __wbindgen_cb_drop(arg0) {
|
|
1037
1055
|
const obj = takeObject(arg0).original;
|
|
1038
1056
|
if (obj.cnt-- == 1) {
|
|
@@ -1043,19 +1061,23 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1043
1061
|
return ret;
|
|
1044
1062
|
};
|
|
1045
1063
|
|
|
1064
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
1065
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1066
|
+
return addHeapObject(ret);
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1046
1069
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
1047
1070
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1048
1071
|
return addHeapObject(ret);
|
|
1049
1072
|
};
|
|
1050
1073
|
|
|
1051
|
-
export function
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1054
|
-
return ret;
|
|
1074
|
+
export function __wbindgen_number_new(arg0) {
|
|
1075
|
+
const ret = arg0;
|
|
1076
|
+
return addHeapObject(ret);
|
|
1055
1077
|
};
|
|
1056
1078
|
|
|
1057
|
-
export function
|
|
1058
|
-
const ret =
|
|
1079
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
1080
|
+
const ret = getObject(arg0);
|
|
1059
1081
|
return addHeapObject(ret);
|
|
1060
1082
|
};
|
|
1061
1083
|
|
|
@@ -1068,11 +1090,9 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
|
1068
1090
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1069
1091
|
};
|
|
1070
1092
|
|
|
1071
|
-
export function
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1074
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
1075
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
1093
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
1094
|
+
const ret = getObject(arg0) === undefined;
|
|
1095
|
+
return ret;
|
|
1076
1096
|
};
|
|
1077
1097
|
|
|
1078
1098
|
export function __wbindgen_is_string(arg0) {
|
|
@@ -1080,17 +1100,19 @@ export function __wbindgen_is_string(arg0) {
|
|
|
1080
1100
|
return ret;
|
|
1081
1101
|
};
|
|
1082
1102
|
|
|
1103
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
|
1104
|
+
const obj = getObject(arg1);
|
|
1105
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1106
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
1107
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1083
1110
|
export function __wbindgen_is_object(arg0) {
|
|
1084
1111
|
const val = getObject(arg0);
|
|
1085
1112
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1086
1113
|
return ret;
|
|
1087
1114
|
};
|
|
1088
1115
|
|
|
1089
|
-
export function __wbindgen_is_undefined(arg0) {
|
|
1090
|
-
const ret = getObject(arg0) === undefined;
|
|
1091
|
-
return ret;
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
1116
|
export function __wbindgen_in(arg0, arg1) {
|
|
1095
1117
|
const ret = getObject(arg0) in getObject(arg1);
|
|
1096
1118
|
return ret;
|
|
@@ -1101,33 +1123,18 @@ export function __wbindgen_is_bigint(arg0) {
|
|
|
1101
1123
|
return ret;
|
|
1102
1124
|
};
|
|
1103
1125
|
|
|
1104
|
-
export function __wbindgen_bigint_from_i64(arg0) {
|
|
1105
|
-
const ret = arg0;
|
|
1106
|
-
return addHeapObject(ret);
|
|
1107
|
-
};
|
|
1108
|
-
|
|
1109
|
-
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
1110
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
1111
|
-
return ret;
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
1126
|
export function __wbindgen_bigint_from_u64(arg0) {
|
|
1115
1127
|
const ret = BigInt.asUintN(64, arg0);
|
|
1116
1128
|
return addHeapObject(ret);
|
|
1117
1129
|
};
|
|
1118
1130
|
|
|
1119
|
-
export function
|
|
1120
|
-
const ret = getObject(arg0)
|
|
1131
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
1132
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
1121
1133
|
return ret;
|
|
1122
1134
|
};
|
|
1123
1135
|
|
|
1124
|
-
export function
|
|
1125
|
-
const ret =
|
|
1126
|
-
return addHeapObject(ret);
|
|
1127
|
-
};
|
|
1128
|
-
|
|
1129
|
-
export function __wbg_getwithrefkey_5e6d9547403deab8(arg0, arg1) {
|
|
1130
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
1136
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
|
1137
|
+
const ret = arg0;
|
|
1131
1138
|
return addHeapObject(ret);
|
|
1132
1139
|
};
|
|
1133
1140
|
|
|
@@ -1156,6 +1163,24 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
|
1156
1163
|
}
|
|
1157
1164
|
};
|
|
1158
1165
|
|
|
1166
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
1167
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
1168
|
+
return ret;
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
export function __wbg_String_88810dfeb4021902(arg0, arg1) {
|
|
1172
|
+
const ret = String(getObject(arg1));
|
|
1173
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1174
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1175
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1176
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1179
|
+
export function __wbg_getwithrefkey_5e6d9547403deab8(arg0, arg1) {
|
|
1180
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
1181
|
+
return addHeapObject(ret);
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1159
1184
|
export function __wbg_debug_783a3d4910bc24c7(arg0, arg1) {
|
|
1160
1185
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
1161
1186
|
wasm.__wbindgen_free(arg0, arg1 * 4);
|
|
@@ -1185,6 +1210,22 @@ export function __wbg_fetch_57429b87be3dcc33(arg0) {
|
|
|
1185
1210
|
return addHeapObject(ret);
|
|
1186
1211
|
};
|
|
1187
1212
|
|
|
1213
|
+
export function __wbg_instanceof_Window_9029196b662bc42a(arg0) {
|
|
1214
|
+
let result;
|
|
1215
|
+
try {
|
|
1216
|
+
result = getObject(arg0) instanceof Window;
|
|
1217
|
+
} catch {
|
|
1218
|
+
result = false;
|
|
1219
|
+
}
|
|
1220
|
+
const ret = result;
|
|
1221
|
+
return ret;
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
export function __wbg_fetch_336b6f0cb426b46e(arg0, arg1) {
|
|
1225
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1226
|
+
return addHeapObject(ret);
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1188
1229
|
export function __wbg_new_1eead62f64ca15ce() { return handleError(function () {
|
|
1189
1230
|
const ret = new Headers();
|
|
1190
1231
|
return addHeapObject(ret);
|
|
@@ -1194,6 +1235,23 @@ export function __wbg_append_fda9e3432e3e88da() { return handleError(function (a
|
|
|
1194
1235
|
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1195
1236
|
}, arguments) };
|
|
1196
1237
|
|
|
1238
|
+
export function __wbg_set_b34caba58723c454() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1239
|
+
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1240
|
+
}, arguments) };
|
|
1241
|
+
|
|
1242
|
+
export function __wbg_url_fda63503ced387ff(arg0, arg1) {
|
|
1243
|
+
const ret = getObject(arg1).url;
|
|
1244
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1245
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1246
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1247
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
export function __wbg_newwithstr_3d9bc779603a93c7() { return handleError(function (arg0, arg1) {
|
|
1251
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1));
|
|
1252
|
+
return addHeapObject(ret);
|
|
1253
|
+
}, arguments) };
|
|
1254
|
+
|
|
1197
1255
|
export function __wbg_newwithstrandinit_cad5cd6038c7ff5d() { return handleError(function (arg0, arg1, arg2) {
|
|
1198
1256
|
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1199
1257
|
return addHeapObject(ret);
|
|
@@ -1238,11 +1296,39 @@ export function __wbg_text_a667ac1770538491() { return handleError(function (arg
|
|
|
1238
1296
|
return addHeapObject(ret);
|
|
1239
1297
|
}, arguments) };
|
|
1240
1298
|
|
|
1299
|
+
export function __wbg_instanceof_WorkerGlobalScope_d9d741da0fb130ce(arg0) {
|
|
1300
|
+
let result;
|
|
1301
|
+
try {
|
|
1302
|
+
result = getObject(arg0) instanceof WorkerGlobalScope;
|
|
1303
|
+
} catch {
|
|
1304
|
+
result = false;
|
|
1305
|
+
}
|
|
1306
|
+
const ret = result;
|
|
1307
|
+
return ret;
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1241
1310
|
export function __wbg_fetch_8eaf01857a5bb21f(arg0, arg1) {
|
|
1242
1311
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1243
1312
|
return addHeapObject(ret);
|
|
1244
1313
|
};
|
|
1245
1314
|
|
|
1315
|
+
export function __wbg_search_2ff3bb9114e0ca34(arg0, arg1) {
|
|
1316
|
+
const ret = getObject(arg1).search;
|
|
1317
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1318
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1319
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1320
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
export function __wbg_setsearch_16b87f04ea0e6b80(arg0, arg1, arg2) {
|
|
1324
|
+
getObject(arg0).search = getStringFromWasm0(arg1, arg2);
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
export function __wbg_new_a76f6bcb38f791ea() { return handleError(function (arg0, arg1) {
|
|
1328
|
+
const ret = new URL(getStringFromWasm0(arg0, arg1));
|
|
1329
|
+
return addHeapObject(ret);
|
|
1330
|
+
}, arguments) };
|
|
1331
|
+
|
|
1246
1332
|
export function __wbg_signal_4bd18fb489af2d4c(arg0) {
|
|
1247
1333
|
const ret = getObject(arg0).signal;
|
|
1248
1334
|
return addHeapObject(ret);
|
|
@@ -1257,6 +1343,11 @@ export function __wbg_abort_654b796176d117aa(arg0) {
|
|
|
1257
1343
|
getObject(arg0).abort();
|
|
1258
1344
|
};
|
|
1259
1345
|
|
|
1346
|
+
export function __wbg_new_2a98b9c4a51bdc04() { return handleError(function () {
|
|
1347
|
+
const ret = new URLSearchParams();
|
|
1348
|
+
return addHeapObject(ret);
|
|
1349
|
+
}, arguments) };
|
|
1350
|
+
|
|
1260
1351
|
export function __wbg_getRandomValues_37fa2ca9e4e07fab() { return handleError(function (arg0, arg1) {
|
|
1261
1352
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1262
1353
|
}, arguments) };
|
|
@@ -1310,6 +1401,11 @@ export function __wbg_length_fff51ee6522a1a18(arg0) {
|
|
|
1310
1401
|
return ret;
|
|
1311
1402
|
};
|
|
1312
1403
|
|
|
1404
|
+
export function __wbg_new_898a68150f225f2e() {
|
|
1405
|
+
const ret = new Array();
|
|
1406
|
+
return addHeapObject(ret);
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1313
1409
|
export function __wbg_newnoargs_581967eacc0e2604(arg0, arg1) {
|
|
1314
1410
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1315
1411
|
return addHeapObject(ret);
|
|
@@ -1380,6 +1476,11 @@ export function __wbg_isArray_4c24b343cb13cfb1(arg0) {
|
|
|
1380
1476
|
return ret;
|
|
1381
1477
|
};
|
|
1382
1478
|
|
|
1479
|
+
export function __wbg_push_ca1c26067ef907ac(arg0, arg1) {
|
|
1480
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
1481
|
+
return ret;
|
|
1482
|
+
};
|
|
1483
|
+
|
|
1383
1484
|
export function __wbg_instanceof_ArrayBuffer_39ac22089b74fddb(arg0) {
|
|
1384
1485
|
let result;
|
|
1385
1486
|
try {
|
|
@@ -1391,6 +1492,32 @@ export function __wbg_instanceof_ArrayBuffer_39ac22089b74fddb(arg0) {
|
|
|
1391
1492
|
return ret;
|
|
1392
1493
|
};
|
|
1393
1494
|
|
|
1495
|
+
export function __wbg_instanceof_Error_ab19e20608ea43c7(arg0) {
|
|
1496
|
+
let result;
|
|
1497
|
+
try {
|
|
1498
|
+
result = getObject(arg0) instanceof Error;
|
|
1499
|
+
} catch {
|
|
1500
|
+
result = false;
|
|
1501
|
+
}
|
|
1502
|
+
const ret = result;
|
|
1503
|
+
return ret;
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
export function __wbg_message_48bacc5ea57d74ee(arg0) {
|
|
1507
|
+
const ret = getObject(arg0).message;
|
|
1508
|
+
return addHeapObject(ret);
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
export function __wbg_name_8f734cbbd6194153(arg0) {
|
|
1512
|
+
const ret = getObject(arg0).name;
|
|
1513
|
+
return addHeapObject(ret);
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1516
|
+
export function __wbg_toString_1c056108b87ba68b(arg0) {
|
|
1517
|
+
const ret = getObject(arg0).toString();
|
|
1518
|
+
return addHeapObject(ret);
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1394
1521
|
export function __wbg_call_01734de55d61e11d() { return handleError(function (arg0, arg1, arg2) {
|
|
1395
1522
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1396
1523
|
return addHeapObject(ret);
|
|
@@ -1426,6 +1553,11 @@ export function __wbg_entries_e51f29c7bba0c054(arg0) {
|
|
|
1426
1553
|
return addHeapObject(ret);
|
|
1427
1554
|
};
|
|
1428
1555
|
|
|
1556
|
+
export function __wbg_toString_a8e343996af880e9(arg0) {
|
|
1557
|
+
const ret = getObject(arg0).toString();
|
|
1558
|
+
return addHeapObject(ret);
|
|
1559
|
+
};
|
|
1560
|
+
|
|
1429
1561
|
export function __wbg_new_43f1b47c28813cbd(arg0, arg1) {
|
|
1430
1562
|
try {
|
|
1431
1563
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1433,7 +1565,7 @@ export function __wbg_new_43f1b47c28813cbd(arg0, arg1) {
|
|
|
1433
1565
|
const a = state0.a;
|
|
1434
1566
|
state0.a = 0;
|
|
1435
1567
|
try {
|
|
1436
|
-
return
|
|
1568
|
+
return __wbg_adapter_235(a, state0.b, arg0, arg1);
|
|
1437
1569
|
} finally {
|
|
1438
1570
|
state0.a = a;
|
|
1439
1571
|
}
|
|
@@ -1445,6 +1577,16 @@ export function __wbg_new_43f1b47c28813cbd(arg0, arg1) {
|
|
|
1445
1577
|
}
|
|
1446
1578
|
};
|
|
1447
1579
|
|
|
1580
|
+
export function __wbg_allSettled_e945c53ea7068386(arg0) {
|
|
1581
|
+
const ret = Promise.allSettled(getObject(arg0));
|
|
1582
|
+
return addHeapObject(ret);
|
|
1583
|
+
};
|
|
1584
|
+
|
|
1585
|
+
export function __wbg_any_a5faf414e37ed588(arg0) {
|
|
1586
|
+
const ret = Promise.any(getObject(arg0));
|
|
1587
|
+
return addHeapObject(ret);
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1448
1590
|
export function __wbg_resolve_53698b95aaf7fcf8(arg0) {
|
|
1449
1591
|
const ret = Promise.resolve(getObject(arg0));
|
|
1450
1592
|
return addHeapObject(ret);
|
|
@@ -1544,8 +1686,8 @@ export function __wbindgen_memory() {
|
|
|
1544
1686
|
return addHeapObject(ret);
|
|
1545
1687
|
};
|
|
1546
1688
|
|
|
1547
|
-
export function
|
|
1548
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1689
|
+
export function __wbindgen_closure_wrapper12327(arg0, arg1, arg2) {
|
|
1690
|
+
const ret = makeMutClosure(arg0, arg1, 2658, __wbg_adapter_48);
|
|
1549
1691
|
return addHeapObject(ret);
|
|
1550
1692
|
};
|
|
1551
1693
|
|
package/bitmask_core_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"Francisco Calderón <francisco@diba.io>"
|
|
7
7
|
],
|
|
8
8
|
"description": "Core functionality for the BitMask wallet",
|
|
9
|
-
"version": "0.6.2",
|
|
9
|
+
"version": "0.6.3-rc.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"bitmask_core_bg.wasm",
|
|
17
17
|
"bitmask_core.js",
|
|
18
18
|
"bitmask_core_bg.js",
|
|
19
|
-
"bitmask_core.d.ts"
|
|
19
|
+
"bitmask_core.d.ts",
|
|
20
|
+
"LICENSE-APACHE",
|
|
21
|
+
"LICENSE-MIT"
|
|
20
22
|
],
|
|
21
23
|
"module": "bitmask_core.js",
|
|
22
24
|
"homepage": "https://bitmask.app",
|