@stacks/clarinet-sdk-wasm 3.14.0 → 3.15.0
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/clarinet_sdk.d.ts +1 -1
- package/clarinet_sdk.js +162 -154
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
|
@@ -185,7 +185,7 @@ export class SDK {
|
|
|
185
185
|
getLastContractCallTrace(): string | undefined;
|
|
186
186
|
getMapEntry(contract: string, map_name: string, map_key: Uint8Array): string;
|
|
187
187
|
initEmptySession(remote_data_settings: any): Promise<void>;
|
|
188
|
-
initSession(cwd: string, manifest_path: string): Promise<void>;
|
|
188
|
+
initSession(cwd: string, manifest_path: string, api_base_url: any): Promise<void>;
|
|
189
189
|
mineBlock(js_txs: Array<any>): any;
|
|
190
190
|
mineEmptyBlock(): number;
|
|
191
191
|
mineEmptyBlocks(count?: number | null): number;
|
package/clarinet_sdk.js
CHANGED
|
@@ -432,14 +432,15 @@ class SDK {
|
|
|
432
432
|
/**
|
|
433
433
|
* @param {string} cwd
|
|
434
434
|
* @param {string} manifest_path
|
|
435
|
+
* @param {any} api_base_url
|
|
435
436
|
* @returns {Promise<void>}
|
|
436
437
|
*/
|
|
437
|
-
initSession(cwd, manifest_path) {
|
|
438
|
+
initSession(cwd, manifest_path, api_base_url) {
|
|
438
439
|
const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
439
440
|
const len0 = WASM_VECTOR_LEN;
|
|
440
441
|
const ptr1 = passStringToWasm0(manifest_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
441
442
|
const len1 = WASM_VECTOR_LEN;
|
|
442
|
-
const ret = wasm.sdk_initSession(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
443
|
+
const ret = wasm.sdk_initSession(this.__wbg_ptr, ptr0, len0, ptr1, len1, api_base_url);
|
|
443
444
|
return ret;
|
|
444
445
|
}
|
|
445
446
|
/**
|
|
@@ -616,7 +617,7 @@ class SDK {
|
|
|
616
617
|
* @returns {number}
|
|
617
618
|
*/
|
|
618
619
|
get stacksBlockHeight() {
|
|
619
|
-
const ret = wasm.
|
|
620
|
+
const ret = wasm.sdk_stacksBlockHeight(this.__wbg_ptr);
|
|
620
621
|
return ret >>> 0;
|
|
621
622
|
}
|
|
622
623
|
/**
|
|
@@ -865,7 +866,7 @@ class TransactionRes {
|
|
|
865
866
|
set events(arg0) {
|
|
866
867
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
867
868
|
const len0 = WASM_VECTOR_LEN;
|
|
868
|
-
wasm.
|
|
869
|
+
wasm.__wbg_set_transactionres_events(this.__wbg_ptr, ptr0, len0);
|
|
869
870
|
}
|
|
870
871
|
/**
|
|
871
872
|
* @param {string | null} [arg0]
|
|
@@ -881,7 +882,7 @@ class TransactionRes {
|
|
|
881
882
|
set result(arg0) {
|
|
882
883
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
883
884
|
const len0 = WASM_VECTOR_LEN;
|
|
884
|
-
wasm.
|
|
885
|
+
wasm.__wbg_set_transactionres_result(this.__wbg_ptr, ptr0, len0);
|
|
885
886
|
}
|
|
886
887
|
}
|
|
887
888
|
if (Symbol.dispose) TransactionRes.prototype[Symbol.dispose] = TransactionRes.prototype.free;
|
|
@@ -935,65 +936,65 @@ exports.TxArgs = TxArgs;
|
|
|
935
936
|
function __wbg_get_imports() {
|
|
936
937
|
const import0 = {
|
|
937
938
|
__proto__: null,
|
|
938
|
-
|
|
939
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
939
940
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
940
941
|
return ret;
|
|
941
942
|
},
|
|
942
|
-
|
|
943
|
+
__wbg_Number_a5a435bd7bbec835: function(arg0) {
|
|
943
944
|
const ret = Number(arg0);
|
|
944
945
|
return ret;
|
|
945
946
|
},
|
|
946
|
-
|
|
947
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
947
948
|
const ret = String(arg1);
|
|
948
949
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
949
950
|
const len1 = WASM_VECTOR_LEN;
|
|
950
951
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
951
952
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
952
953
|
},
|
|
953
|
-
|
|
954
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
954
955
|
const v = arg0;
|
|
955
956
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
956
957
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
957
958
|
},
|
|
958
|
-
|
|
959
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
959
960
|
const ret = debugString(arg1);
|
|
960
961
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
961
962
|
const len1 = WASM_VECTOR_LEN;
|
|
962
963
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
963
964
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
964
965
|
},
|
|
965
|
-
|
|
966
|
+
__wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
|
|
966
967
|
const ret = arg0 in arg1;
|
|
967
968
|
return ret;
|
|
968
969
|
},
|
|
969
|
-
|
|
970
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
970
971
|
const ret = typeof(arg0) === 'function';
|
|
971
972
|
return ret;
|
|
972
973
|
},
|
|
973
|
-
|
|
974
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
974
975
|
const val = arg0;
|
|
975
976
|
const ret = typeof(val) === 'object' && val !== null;
|
|
976
977
|
return ret;
|
|
977
978
|
},
|
|
978
|
-
|
|
979
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
979
980
|
const ret = typeof(arg0) === 'string';
|
|
980
981
|
return ret;
|
|
981
982
|
},
|
|
982
|
-
|
|
983
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
983
984
|
const ret = arg0 === undefined;
|
|
984
985
|
return ret;
|
|
985
986
|
},
|
|
986
|
-
|
|
987
|
+
__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
|
|
987
988
|
const ret = arg0 == arg1;
|
|
988
989
|
return ret;
|
|
989
990
|
},
|
|
990
|
-
|
|
991
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
991
992
|
const obj = arg1;
|
|
992
993
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
993
994
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
994
995
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
995
996
|
},
|
|
996
|
-
|
|
997
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
997
998
|
const obj = arg1;
|
|
998
999
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
999
1000
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1001,54 +1002,57 @@ function __wbg_get_imports() {
|
|
|
1001
1002
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1002
1003
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1003
1004
|
},
|
|
1004
|
-
|
|
1005
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
1005
1006
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1006
1007
|
},
|
|
1007
|
-
|
|
1008
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
1008
1009
|
arg0._wbg_cb_unref();
|
|
1009
1010
|
},
|
|
1010
|
-
|
|
1011
|
+
__wbg_abort_5ef96933660780b7: function(arg0) {
|
|
1011
1012
|
arg0.abort();
|
|
1012
1013
|
},
|
|
1013
|
-
|
|
1014
|
+
__wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
|
|
1014
1015
|
arg0.abort(arg1);
|
|
1015
1016
|
},
|
|
1016
|
-
|
|
1017
|
+
__wbg_append_608dfb635ee8998f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1017
1018
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1018
1019
|
}, arguments); },
|
|
1019
|
-
|
|
1020
|
+
__wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
|
|
1020
1021
|
const ret = arg0.arrayBuffer();
|
|
1021
1022
|
return ret;
|
|
1022
1023
|
}, arguments); },
|
|
1023
|
-
|
|
1024
|
-
const ret = arg0.call(arg1);
|
|
1025
|
-
return ret;
|
|
1026
|
-
}, arguments); },
|
|
1027
|
-
__wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1024
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1028
1025
|
const ret = arg0.call(arg1, arg2);
|
|
1029
1026
|
return ret;
|
|
1030
1027
|
}, arguments); },
|
|
1031
|
-
|
|
1028
|
+
__wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1032
1029
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1033
1030
|
return ret;
|
|
1034
1031
|
}, arguments); },
|
|
1035
|
-
|
|
1032
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
1033
|
+
const ret = arg0.call(arg1);
|
|
1034
|
+
return ret;
|
|
1035
|
+
}, arguments); },
|
|
1036
|
+
__wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
|
|
1036
1037
|
const ret = clearTimeout(arg0);
|
|
1037
1038
|
return ret;
|
|
1038
1039
|
},
|
|
1039
|
-
|
|
1040
|
+
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
1040
1041
|
const ret = arg0.crypto;
|
|
1041
1042
|
return ret;
|
|
1042
1043
|
},
|
|
1043
|
-
|
|
1044
|
+
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
1044
1045
|
const ret = arg0.done;
|
|
1045
1046
|
return ret;
|
|
1046
1047
|
},
|
|
1047
|
-
|
|
1048
|
+
__wbg_entries_e8a20ff8c9757101: function(arg0) {
|
|
1048
1049
|
const ret = Object.entries(arg0);
|
|
1049
1050
|
return ret;
|
|
1050
1051
|
},
|
|
1051
|
-
|
|
1052
|
+
__wbg_error_8d9a8e04cd1d3588: function(arg0) {
|
|
1053
|
+
console.error(arg0);
|
|
1054
|
+
},
|
|
1055
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
1052
1056
|
let deferred0_0;
|
|
1053
1057
|
let deferred0_1;
|
|
1054
1058
|
try {
|
|
@@ -1059,60 +1063,65 @@ function __wbg_get_imports() {
|
|
|
1059
1063
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1060
1064
|
}
|
|
1061
1065
|
},
|
|
1062
|
-
|
|
1063
|
-
console.error(arg0);
|
|
1064
|
-
},
|
|
1065
|
-
__wbg_execSync_10128c6982d1966e: function(arg0, arg1, arg2) {
|
|
1066
|
+
__wbg_execSync_fd3989e645e3bfbc: function(arg0, arg1, arg2) {
|
|
1066
1067
|
const ret = execSync(getStringFromWasm0(arg1, arg2));
|
|
1067
1068
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
1068
1069
|
const len1 = WASM_VECTOR_LEN;
|
|
1069
1070
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1070
1071
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1071
1072
|
},
|
|
1072
|
-
|
|
1073
|
+
__wbg_existsSync_e3fe7d86e29b592d: function(arg0, arg1) {
|
|
1073
1074
|
const ret = existsSync(getStringFromWasm0(arg0, arg1));
|
|
1074
1075
|
return ret;
|
|
1075
1076
|
},
|
|
1076
|
-
|
|
1077
|
-
const ret = fetch(
|
|
1077
|
+
__wbg_fetch_5550a88cf343aaa9: function(arg0, arg1) {
|
|
1078
|
+
const ret = arg0.fetch(arg1);
|
|
1078
1079
|
return ret;
|
|
1079
1080
|
},
|
|
1080
|
-
|
|
1081
|
-
const ret =
|
|
1081
|
+
__wbg_fetch_9dad4fe911207b37: function(arg0) {
|
|
1082
|
+
const ret = fetch(arg0);
|
|
1082
1083
|
return ret;
|
|
1083
1084
|
},
|
|
1084
|
-
|
|
1085
|
+
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1085
1086
|
arg0.getRandomValues(arg1);
|
|
1086
1087
|
}, arguments); },
|
|
1087
|
-
|
|
1088
|
+
__wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
|
|
1088
1089
|
const ret = arg0.getTime();
|
|
1089
1090
|
return ret;
|
|
1090
1091
|
},
|
|
1091
|
-
|
|
1092
|
+
__wbg_getTimezoneOffset_639bcf2dde21158b: function(arg0) {
|
|
1092
1093
|
const ret = arg0.getTimezoneOffset();
|
|
1093
1094
|
return ret;
|
|
1094
1095
|
},
|
|
1095
|
-
|
|
1096
|
-
const ret = arg0
|
|
1096
|
+
__wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
|
|
1097
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1097
1098
|
return ret;
|
|
1098
|
-
},
|
|
1099
|
-
|
|
1099
|
+
}, arguments); },
|
|
1100
|
+
__wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
|
|
1100
1101
|
const ret = Reflect.get(arg0, arg1);
|
|
1101
1102
|
return ret;
|
|
1102
1103
|
}, arguments); },
|
|
1103
|
-
|
|
1104
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
1105
|
+
const ret = arg0[arg1 >>> 0];
|
|
1106
|
+
return ret;
|
|
1107
|
+
},
|
|
1108
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
1109
|
+
const ret = arg0[arg1 >>> 0];
|
|
1110
|
+
return ret;
|
|
1111
|
+
},
|
|
1112
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
1104
1113
|
const ret = arg0[arg1];
|
|
1105
1114
|
return ret;
|
|
1106
1115
|
},
|
|
1107
|
-
|
|
1116
|
+
__wbg_has_926ef2ff40b308cf: function() { return handleError(function (arg0, arg1) {
|
|
1108
1117
|
const ret = Reflect.has(arg0, arg1);
|
|
1109
1118
|
return ret;
|
|
1110
1119
|
}, arguments); },
|
|
1111
|
-
|
|
1120
|
+
__wbg_headers_eb2234545f9ff993: function(arg0) {
|
|
1112
1121
|
const ret = arg0.headers;
|
|
1113
1122
|
return ret;
|
|
1114
1123
|
},
|
|
1115
|
-
|
|
1124
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
1116
1125
|
let result;
|
|
1117
1126
|
try {
|
|
1118
1127
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1122,7 +1131,7 @@ function __wbg_get_imports() {
|
|
|
1122
1131
|
const ret = result;
|
|
1123
1132
|
return ret;
|
|
1124
1133
|
},
|
|
1125
|
-
|
|
1134
|
+
__wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
|
|
1126
1135
|
let result;
|
|
1127
1136
|
try {
|
|
1128
1137
|
result = arg0 instanceof Response;
|
|
@@ -1132,7 +1141,7 @@ function __wbg_get_imports() {
|
|
|
1132
1141
|
const ret = result;
|
|
1133
1142
|
return ret;
|
|
1134
1143
|
},
|
|
1135
|
-
|
|
1144
|
+
__wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
|
|
1136
1145
|
let result;
|
|
1137
1146
|
try {
|
|
1138
1147
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1142,64 +1151,80 @@ function __wbg_get_imports() {
|
|
|
1142
1151
|
const ret = result;
|
|
1143
1152
|
return ret;
|
|
1144
1153
|
},
|
|
1145
|
-
|
|
1154
|
+
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
1146
1155
|
const ret = Number.isSafeInteger(arg0);
|
|
1147
1156
|
return ret;
|
|
1148
1157
|
},
|
|
1149
|
-
|
|
1158
|
+
__wbg_iterator_d8f549ec8fb061b1: function() {
|
|
1150
1159
|
const ret = Symbol.iterator;
|
|
1151
1160
|
return ret;
|
|
1152
1161
|
},
|
|
1153
|
-
|
|
1162
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
1154
1163
|
const ret = arg0.length;
|
|
1155
1164
|
return ret;
|
|
1156
1165
|
},
|
|
1157
|
-
|
|
1166
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
1158
1167
|
const ret = arg0.length;
|
|
1159
1168
|
return ret;
|
|
1160
1169
|
},
|
|
1161
|
-
|
|
1170
|
+
__wbg_log_524eedafa26daa59: function(arg0) {
|
|
1162
1171
|
console.log(arg0);
|
|
1163
1172
|
},
|
|
1164
|
-
|
|
1173
|
+
__wbg_mkdirSync_6511bdbab1721771: function(arg0, arg1, arg2) {
|
|
1165
1174
|
mkdirSync(getStringFromWasm0(arg0, arg1), arg2);
|
|
1166
1175
|
},
|
|
1167
|
-
|
|
1176
|
+
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1168
1177
|
const ret = arg0.msCrypto;
|
|
1169
1178
|
return ret;
|
|
1170
1179
|
},
|
|
1171
|
-
|
|
1180
|
+
__wbg_new_0837727332ac86ba: function() { return handleError(function () {
|
|
1181
|
+
const ret = new Headers();
|
|
1182
|
+
return ret;
|
|
1183
|
+
}, arguments); },
|
|
1184
|
+
__wbg_new_0_1dcafdf5e786e876: function() {
|
|
1172
1185
|
const ret = new Date();
|
|
1173
1186
|
return ret;
|
|
1174
1187
|
},
|
|
1175
|
-
|
|
1176
|
-
const ret = new
|
|
1188
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
1189
|
+
const ret = new Error();
|
|
1177
1190
|
return ret;
|
|
1178
1191
|
},
|
|
1179
|
-
|
|
1180
|
-
const ret = new
|
|
1192
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
1193
|
+
const ret = new Map();
|
|
1194
|
+
return ret;
|
|
1195
|
+
},
|
|
1196
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1197
|
+
const ret = new Uint8Array(arg0);
|
|
1181
1198
|
return ret;
|
|
1182
1199
|
},
|
|
1183
|
-
|
|
1200
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
1184
1201
|
const ret = new Array();
|
|
1185
1202
|
return ret;
|
|
1186
1203
|
},
|
|
1187
|
-
|
|
1188
|
-
const ret = new
|
|
1204
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
1205
|
+
const ret = new Object();
|
|
1206
|
+
return ret;
|
|
1207
|
+
},
|
|
1208
|
+
__wbg_new_c518c60af666645b: function() { return handleError(function () {
|
|
1209
|
+
const ret = new AbortController();
|
|
1189
1210
|
return ret;
|
|
1190
1211
|
}, arguments); },
|
|
1191
|
-
|
|
1192
|
-
const ret = new
|
|
1212
|
+
__wbg_new_fd94ca5c9639abd2: function(arg0) {
|
|
1213
|
+
const ret = new Date(arg0);
|
|
1214
|
+
return ret;
|
|
1215
|
+
},
|
|
1216
|
+
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
1217
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1193
1218
|
return ret;
|
|
1194
1219
|
},
|
|
1195
|
-
|
|
1220
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
1196
1221
|
try {
|
|
1197
1222
|
var state0 = {a: arg0, b: arg1};
|
|
1198
1223
|
var cb0 = (arg0, arg1) => {
|
|
1199
1224
|
const a = state0.a;
|
|
1200
1225
|
state0.a = 0;
|
|
1201
1226
|
try {
|
|
1202
|
-
return
|
|
1227
|
+
return wasm_bindgen__convert__closures_____invoke__h25a379a23ebc35a0(a, state0.b, arg0, arg1);
|
|
1203
1228
|
} finally {
|
|
1204
1229
|
state0.a = a;
|
|
1205
1230
|
}
|
|
@@ -1210,194 +1235,174 @@ function __wbg_get_imports() {
|
|
|
1210
1235
|
state0.a = state0.b = 0;
|
|
1211
1236
|
}
|
|
1212
1237
|
},
|
|
1213
|
-
|
|
1214
|
-
const ret = new AbortController();
|
|
1215
|
-
return ret;
|
|
1216
|
-
}, arguments); },
|
|
1217
|
-
__wbg_new_dca287b076112a51: function() {
|
|
1218
|
-
const ret = new Map();
|
|
1219
|
-
return ret;
|
|
1220
|
-
},
|
|
1221
|
-
__wbg_new_dd2b680c8bf6ae29: function(arg0) {
|
|
1222
|
-
const ret = new Uint8Array(arg0);
|
|
1223
|
-
return ret;
|
|
1224
|
-
},
|
|
1225
|
-
__wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
|
|
1226
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1227
|
-
return ret;
|
|
1228
|
-
},
|
|
1229
|
-
__wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
|
|
1230
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1231
|
-
return ret;
|
|
1232
|
-
},
|
|
1233
|
-
__wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
|
|
1238
|
+
__wbg_new_with_length_825018a1616e9e55: function(arg0) {
|
|
1234
1239
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1235
1240
|
return ret;
|
|
1236
1241
|
},
|
|
1237
|
-
|
|
1242
|
+
__wbg_new_with_str_and_init_b4b54d1a819bc724: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1238
1243
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1239
1244
|
return ret;
|
|
1240
1245
|
}, arguments); },
|
|
1241
|
-
|
|
1246
|
+
__wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
|
|
1242
1247
|
const ret = arg0.next();
|
|
1243
1248
|
return ret;
|
|
1244
1249
|
}, arguments); },
|
|
1245
|
-
|
|
1250
|
+
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1246
1251
|
const ret = arg0.next;
|
|
1247
1252
|
return ret;
|
|
1248
1253
|
},
|
|
1249
|
-
|
|
1254
|
+
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1250
1255
|
const ret = arg0.node;
|
|
1251
1256
|
return ret;
|
|
1252
1257
|
},
|
|
1253
|
-
|
|
1258
|
+
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
1254
1259
|
const ret = arg0.process;
|
|
1255
1260
|
return ret;
|
|
1256
1261
|
},
|
|
1257
|
-
|
|
1262
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
1258
1263
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1259
1264
|
},
|
|
1260
|
-
|
|
1265
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
1261
1266
|
const ret = arg0.queueMicrotask;
|
|
1262
1267
|
return ret;
|
|
1263
1268
|
},
|
|
1264
|
-
|
|
1269
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1265
1270
|
queueMicrotask(arg0);
|
|
1266
1271
|
},
|
|
1267
|
-
|
|
1272
|
+
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1268
1273
|
arg0.randomFillSync(arg1);
|
|
1269
1274
|
}, arguments); },
|
|
1270
|
-
|
|
1275
|
+
__wbg_readFileSync_59e680c4ed2a5387: function(arg0, arg1, arg2) {
|
|
1271
1276
|
const ret = readFileSync(getStringFromWasm0(arg1, arg2));
|
|
1272
1277
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
1273
1278
|
const len1 = WASM_VECTOR_LEN;
|
|
1274
1279
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1275
1280
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1276
1281
|
},
|
|
1277
|
-
|
|
1282
|
+
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1278
1283
|
const ret = module.require;
|
|
1279
1284
|
return ret;
|
|
1280
1285
|
}, arguments); },
|
|
1281
|
-
|
|
1286
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
1282
1287
|
const ret = Promise.resolve(arg0);
|
|
1283
1288
|
return ret;
|
|
1284
1289
|
},
|
|
1285
|
-
|
|
1290
|
+
__wbg_setTimeout_f757f00851f76c42: function(arg0, arg1) {
|
|
1286
1291
|
const ret = setTimeout(arg0, arg1);
|
|
1287
1292
|
return ret;
|
|
1288
1293
|
},
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
return ret;
|
|
1294
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
1295
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1292
1296
|
},
|
|
1293
|
-
|
|
1297
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1294
1298
|
arg0[arg1] = arg2;
|
|
1295
1299
|
},
|
|
1296
|
-
|
|
1300
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1297
1301
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1298
1302
|
return ret;
|
|
1299
1303
|
}, arguments); },
|
|
1300
|
-
|
|
1304
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1305
|
+
const ret = arg0.set(arg1, arg2);
|
|
1306
|
+
return ret;
|
|
1307
|
+
},
|
|
1308
|
+
__wbg_set_body_a3d856b097dfda04: function(arg0, arg1) {
|
|
1301
1309
|
arg0.body = arg1;
|
|
1302
1310
|
},
|
|
1303
|
-
|
|
1311
|
+
__wbg_set_cache_ec7e430c6056ebda: function(arg0, arg1) {
|
|
1304
1312
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1305
1313
|
},
|
|
1306
|
-
|
|
1314
|
+
__wbg_set_credentials_ed63183445882c65: function(arg0, arg1) {
|
|
1307
1315
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1308
1316
|
},
|
|
1309
|
-
|
|
1310
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1311
|
-
},
|
|
1312
|
-
__wbg_set_headers_cfc5f4b2c1f20549: function(arg0, arg1) {
|
|
1317
|
+
__wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
|
|
1313
1318
|
arg0.headers = arg1;
|
|
1314
1319
|
},
|
|
1315
|
-
|
|
1320
|
+
__wbg_set_method_8c015e8bcafd7be1: function(arg0, arg1, arg2) {
|
|
1316
1321
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1317
1322
|
},
|
|
1318
|
-
|
|
1323
|
+
__wbg_set_mode_5a87f2c809cf37c2: function(arg0, arg1) {
|
|
1319
1324
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1320
1325
|
},
|
|
1321
|
-
|
|
1326
|
+
__wbg_set_signal_0cebecb698f25d21: function(arg0, arg1) {
|
|
1322
1327
|
arg0.signal = arg1;
|
|
1323
1328
|
},
|
|
1324
|
-
|
|
1329
|
+
__wbg_signal_166e1da31adcac18: function(arg0) {
|
|
1325
1330
|
const ret = arg0.signal;
|
|
1326
1331
|
return ret;
|
|
1327
1332
|
},
|
|
1328
|
-
|
|
1333
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
1329
1334
|
const ret = arg1.stack;
|
|
1330
1335
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1331
1336
|
const len1 = WASM_VECTOR_LEN;
|
|
1332
1337
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1333
1338
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1334
1339
|
},
|
|
1335
|
-
|
|
1340
|
+
__wbg_static_accessor_ENV_caba528387e9689a: function() {
|
|
1336
1341
|
const ret = env;
|
|
1337
1342
|
return ret;
|
|
1338
1343
|
},
|
|
1339
|
-
|
|
1344
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1340
1345
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1341
1346
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1342
1347
|
},
|
|
1343
|
-
|
|
1348
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
1344
1349
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1345
1350
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1346
1351
|
},
|
|
1347
|
-
|
|
1352
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
1348
1353
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1349
1354
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1350
1355
|
},
|
|
1351
|
-
|
|
1356
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
1352
1357
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1353
1358
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1354
1359
|
},
|
|
1355
|
-
|
|
1360
|
+
__wbg_status_318629ab93a22955: function(arg0) {
|
|
1356
1361
|
const ret = arg0.status;
|
|
1357
1362
|
return ret;
|
|
1358
1363
|
},
|
|
1359
|
-
|
|
1364
|
+
__wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
|
|
1360
1365
|
const ret = JSON.stringify(arg0);
|
|
1361
1366
|
return ret;
|
|
1362
1367
|
}, arguments); },
|
|
1363
|
-
|
|
1368
|
+
__wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
|
|
1364
1369
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1365
1370
|
return ret;
|
|
1366
1371
|
},
|
|
1367
|
-
|
|
1368
|
-
const ret = arg0.then(arg1
|
|
1372
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
1373
|
+
const ret = arg0.then(arg1);
|
|
1369
1374
|
return ret;
|
|
1370
1375
|
},
|
|
1371
|
-
|
|
1372
|
-
const ret = arg0.then(arg1);
|
|
1376
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
1377
|
+
const ret = arg0.then(arg1, arg2);
|
|
1373
1378
|
return ret;
|
|
1374
1379
|
},
|
|
1375
|
-
|
|
1380
|
+
__wbg_url_7fefc1820fba4e0c: function(arg0, arg1) {
|
|
1376
1381
|
const ret = arg1.url;
|
|
1377
1382
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1378
1383
|
const len1 = WASM_VECTOR_LEN;
|
|
1379
1384
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1380
1385
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1381
1386
|
},
|
|
1382
|
-
|
|
1387
|
+
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
1383
1388
|
const ret = arg0.value;
|
|
1384
1389
|
return ret;
|
|
1385
1390
|
},
|
|
1386
|
-
|
|
1391
|
+
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
1387
1392
|
const ret = arg0.versions;
|
|
1388
1393
|
return ret;
|
|
1389
1394
|
},
|
|
1390
|
-
|
|
1395
|
+
__wbg_writeFileSync_ad205592b13096d6: function(arg0, arg1, arg2, arg3) {
|
|
1391
1396
|
writeFileSync(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
|
|
1392
1397
|
},
|
|
1393
1398
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1394
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1395
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1399
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 342, function: Function { arguments: [], shim_idx: 343, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1400
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h7d8011f30cbcfa12, wasm_bindgen__convert__closures_____invoke__h31bbc7d5fd38eb84);
|
|
1396
1401
|
return ret;
|
|
1397
1402
|
},
|
|
1398
1403
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1399
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1400
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1404
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 550, function: Function { arguments: [Externref], shim_idx: 551, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1405
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h57d8283d53613a40, wasm_bindgen__convert__closures_____invoke__hc51f11d2f85e779d);
|
|
1401
1406
|
return ret;
|
|
1402
1407
|
},
|
|
1403
1408
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1446,16 +1451,19 @@ function __wbg_get_imports() {
|
|
|
1446
1451
|
};
|
|
1447
1452
|
}
|
|
1448
1453
|
|
|
1449
|
-
function
|
|
1450
|
-
wasm.
|
|
1454
|
+
function wasm_bindgen__convert__closures_____invoke__h31bbc7d5fd38eb84(arg0, arg1) {
|
|
1455
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h31bbc7d5fd38eb84(arg0, arg1);
|
|
1451
1456
|
}
|
|
1452
1457
|
|
|
1453
|
-
function
|
|
1454
|
-
wasm.
|
|
1458
|
+
function wasm_bindgen__convert__closures_____invoke__hc51f11d2f85e779d(arg0, arg1, arg2) {
|
|
1459
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hc51f11d2f85e779d(arg0, arg1, arg2);
|
|
1460
|
+
if (ret[1]) {
|
|
1461
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1462
|
+
}
|
|
1455
1463
|
}
|
|
1456
1464
|
|
|
1457
|
-
function
|
|
1458
|
-
wasm.
|
|
1465
|
+
function wasm_bindgen__convert__closures_____invoke__h25a379a23ebc35a0(arg0, arg1, arg2, arg3) {
|
|
1466
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h25a379a23ebc35a0(arg0, arg1, arg2, arg3);
|
|
1459
1467
|
}
|
|
1460
1468
|
|
|
1461
1469
|
|
|
@@ -1726,5 +1734,5 @@ let WASM_VECTOR_LEN = 0;
|
|
|
1726
1734
|
const wasmPath = `${__dirname}/clarinet_sdk_bg.wasm`;
|
|
1727
1735
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1728
1736
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1729
|
-
|
|
1737
|
+
let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
1730
1738
|
wasm.__wbindgen_start();
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|