@stacks/clarinet-sdk-wasm-browser 3.14.1 → 3.15.1

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 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;
@@ -305,7 +305,7 @@ export interface InitOutput {
305
305
  readonly sdk_getLastContractCallTrace: (a: number) => [number, number];
306
306
  readonly sdk_getMapEntry: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
307
307
  readonly sdk_initEmptySession: (a: number, b: any) => any;
308
- readonly sdk_initSession: (a: number, b: number, c: number, d: number, e: number) => any;
308
+ readonly sdk_initSession: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
309
309
  readonly sdk_mineBlock: (a: number, b: any) => [number, number, number];
310
310
  readonly sdk_mineEmptyBlock: (a: number) => number;
311
311
  readonly sdk_mineEmptyBlocks: (a: number, b: number) => number;
@@ -328,11 +328,11 @@ export interface InitOutput {
328
328
  readonly sdk_stacksBlockHeight: (a: number) => number;
329
329
  readonly __wbg_set_transactionres_events: (a: number, b: number, c: number) => void;
330
330
  readonly __wbg_set_transactionres_result: (a: number, b: number, c: number) => void;
331
- readonly wasm_bindgen__closure__destroy__h198100926bb093f3: (a: number, b: number) => void;
332
- readonly wasm_bindgen__closure__destroy__h8906009e658726e5: (a: number, b: number) => void;
333
- readonly wasm_bindgen__convert__closures_____invoke__h17062e91c506f269: (a: number, b: number, c: any, d: any) => void;
334
- readonly wasm_bindgen__convert__closures_____invoke__h7e014784d51faeee: (a: number, b: number, c: any) => void;
335
- readonly wasm_bindgen__convert__closures_____invoke__hfefd06e2b02cdfa5: (a: number, b: number) => void;
331
+ readonly wasm_bindgen__closure__destroy__h6b9685713e193de4: (a: number, b: number) => void;
332
+ readonly wasm_bindgen__closure__destroy__h57d8283d53613a40: (a: number, b: number) => void;
333
+ readonly wasm_bindgen__convert__closures_____invoke__hc51f11d2f85e779d: (a: number, b: number, c: any) => [number, number];
334
+ readonly wasm_bindgen__convert__closures_____invoke__h25a379a23ebc35a0: (a: number, b: number, c: any, d: any) => void;
335
+ readonly wasm_bindgen__convert__closures_____invoke__h6b074e69575dac88: (a: number, b: number) => void;
336
336
  readonly __wbindgen_malloc: (a: number, b: number) => number;
337
337
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
338
338
  readonly __wbindgen_exn_store: (a: number) => void;
package/clarinet_sdk.js CHANGED
@@ -426,14 +426,15 @@ export class SDK {
426
426
  /**
427
427
  * @param {string} cwd
428
428
  * @param {string} manifest_path
429
+ * @param {any} api_base_url
429
430
  * @returns {Promise<void>}
430
431
  */
431
- initSession(cwd, manifest_path) {
432
+ initSession(cwd, manifest_path, api_base_url) {
432
433
  const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
433
434
  const len0 = WASM_VECTOR_LEN;
434
435
  const ptr1 = passStringToWasm0(manifest_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
435
436
  const len1 = WASM_VECTOR_LEN;
436
- const ret = wasm.sdk_initSession(this.__wbg_ptr, ptr0, len0, ptr1, len1);
437
+ const ret = wasm.sdk_initSession(this.__wbg_ptr, ptr0, len0, ptr1, len1, api_base_url);
437
438
  return ret;
438
439
  }
439
440
  /**
@@ -610,7 +611,7 @@ export class SDK {
610
611
  * @returns {number}
611
612
  */
612
613
  get stacksBlockHeight() {
613
- const ret = wasm.sdk_blockHeight(this.__wbg_ptr);
614
+ const ret = wasm.sdk_stacksBlockHeight(this.__wbg_ptr);
614
615
  return ret >>> 0;
615
616
  }
616
617
  /**
@@ -856,7 +857,7 @@ export class TransactionRes {
856
857
  set events(arg0) {
857
858
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
858
859
  const len0 = WASM_VECTOR_LEN;
859
- wasm.__wbg_set_sessionreport_costs(this.__wbg_ptr, ptr0, len0);
860
+ wasm.__wbg_set_transactionres_events(this.__wbg_ptr, ptr0, len0);
860
861
  }
861
862
  /**
862
863
  * @param {string | null} [arg0]
@@ -872,7 +873,7 @@ export class TransactionRes {
872
873
  set result(arg0) {
873
874
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
874
875
  const len0 = WASM_VECTOR_LEN;
875
- wasm.__wbg_set_sessionreport_coverage(this.__wbg_ptr, ptr0, len0);
876
+ wasm.__wbg_set_transactionres_result(this.__wbg_ptr, ptr0, len0);
876
877
  }
877
878
  }
878
879
  if (Symbol.dispose) TransactionRes.prototype[Symbol.dispose] = TransactionRes.prototype.free;
@@ -923,65 +924,65 @@ if (Symbol.dispose) TxArgs.prototype[Symbol.dispose] = TxArgs.prototype.free;
923
924
  function __wbg_get_imports() {
924
925
  const import0 = {
925
926
  __proto__: null,
926
- __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
927
+ __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
927
928
  const ret = Error(getStringFromWasm0(arg0, arg1));
928
929
  return ret;
929
930
  },
930
- __wbg_Number_04624de7d0e8332d: function(arg0) {
931
+ __wbg_Number_a5a435bd7bbec835: function(arg0) {
931
932
  const ret = Number(arg0);
932
933
  return ret;
933
934
  },
934
- __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
935
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
935
936
  const ret = String(arg1);
936
937
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
937
938
  const len1 = WASM_VECTOR_LEN;
938
939
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
939
940
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
940
941
  },
941
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
942
+ __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
942
943
  const v = arg0;
943
944
  const ret = typeof(v) === 'boolean' ? v : undefined;
944
945
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
945
946
  },
946
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
947
+ __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
947
948
  const ret = debugString(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
- __wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
954
+ __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
954
955
  const ret = arg0 in arg1;
955
956
  return ret;
956
957
  },
957
- __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
958
+ __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
958
959
  const ret = typeof(arg0) === 'function';
959
960
  return ret;
960
961
  },
961
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
962
+ __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
962
963
  const val = arg0;
963
964
  const ret = typeof(val) === 'object' && val !== null;
964
965
  return ret;
965
966
  },
966
- __wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
967
+ __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
967
968
  const ret = typeof(arg0) === 'string';
968
969
  return ret;
969
970
  },
970
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
971
+ __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
971
972
  const ret = arg0 === undefined;
972
973
  return ret;
973
974
  },
974
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
975
+ __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
975
976
  const ret = arg0 == arg1;
976
977
  return ret;
977
978
  },
978
- __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
979
+ __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
979
980
  const obj = arg1;
980
981
  const ret = typeof(obj) === 'number' ? obj : undefined;
981
982
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
982
983
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
983
984
  },
984
- __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
985
+ __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
985
986
  const obj = arg1;
986
987
  const ret = typeof(obj) === 'string' ? obj : undefined;
987
988
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -989,54 +990,57 @@ function __wbg_get_imports() {
989
990
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
990
991
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
991
992
  },
992
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
993
+ __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
993
994
  throw new Error(getStringFromWasm0(arg0, arg1));
994
995
  },
995
- __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
996
+ __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
996
997
  arg0._wbg_cb_unref();
997
998
  },
998
- __wbg_abort_2f0584e03e8e3950: function(arg0) {
999
+ __wbg_abort_5ef96933660780b7: function(arg0) {
999
1000
  arg0.abort();
1000
1001
  },
1001
- __wbg_abort_d549b92d3c665de1: function(arg0, arg1) {
1002
+ __wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
1002
1003
  arg0.abort(arg1);
1003
1004
  },
1004
- __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1005
+ __wbg_append_608dfb635ee8998f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1005
1006
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1006
1007
  }, arguments); },
1007
- __wbg_arrayBuffer_bb54076166006c39: function() { return handleError(function (arg0) {
1008
+ __wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
1008
1009
  const ret = arg0.arrayBuffer();
1009
1010
  return ret;
1010
1011
  }, arguments); },
1011
- __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
1012
- const ret = arg0.call(arg1);
1013
- return ret;
1014
- }, arguments); },
1015
- __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
1012
+ __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
1016
1013
  const ret = arg0.call(arg1, arg2);
1017
1014
  return ret;
1018
1015
  }, arguments); },
1019
- __wbg_call_812d25f1510c13c8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1016
+ __wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1020
1017
  const ret = arg0.call(arg1, arg2, arg3);
1021
1018
  return ret;
1022
1019
  }, arguments); },
1023
- __wbg_clearTimeout_42d9ccd50822fd3a: function(arg0) {
1020
+ __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
1021
+ const ret = arg0.call(arg1);
1022
+ return ret;
1023
+ }, arguments); },
1024
+ __wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
1024
1025
  const ret = clearTimeout(arg0);
1025
1026
  return ret;
1026
1027
  },
1027
- __wbg_crypto_574e78ad8b13b65f: function(arg0) {
1028
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
1028
1029
  const ret = arg0.crypto;
1029
1030
  return ret;
1030
1031
  },
1031
- __wbg_done_57b39ecd9addfe81: function(arg0) {
1032
+ __wbg_done_08ce71ee07e3bd17: function(arg0) {
1032
1033
  const ret = arg0.done;
1033
1034
  return ret;
1034
1035
  },
1035
- __wbg_entries_58c7934c745daac7: function(arg0) {
1036
+ __wbg_entries_e8a20ff8c9757101: function(arg0) {
1036
1037
  const ret = Object.entries(arg0);
1037
1038
  return ret;
1038
1039
  },
1039
- __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
1040
+ __wbg_error_8d9a8e04cd1d3588: function(arg0) {
1041
+ console.error(arg0);
1042
+ },
1043
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
1040
1044
  let deferred0_0;
1041
1045
  let deferred0_1;
1042
1046
  try {
@@ -1047,49 +1051,50 @@ function __wbg_get_imports() {
1047
1051
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1048
1052
  }
1049
1053
  },
1050
- __wbg_error_9a7fe3f932034cde: function(arg0) {
1051
- console.error(arg0);
1052
- },
1053
- __wbg_fetch_6bbc32f991730587: function(arg0) {
1054
- const ret = fetch(arg0);
1054
+ __wbg_fetch_5550a88cf343aaa9: function(arg0, arg1) {
1055
+ const ret = arg0.fetch(arg1);
1055
1056
  return ret;
1056
1057
  },
1057
- __wbg_fetch_afb6a4b6cacf876d: function(arg0, arg1) {
1058
- const ret = arg0.fetch(arg1);
1058
+ __wbg_fetch_9dad4fe911207b37: function(arg0) {
1059
+ const ret = fetch(arg0);
1059
1060
  return ret;
1060
1061
  },
1061
- __wbg_getRandomValues_b8f5dbd5f3995a9e: function() { return handleError(function (arg0, arg1) {
1062
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
1062
1063
  arg0.getRandomValues(arg1);
1063
1064
  }, arguments); },
1064
- __wbg_getTime_1e3cd1391c5c3995: function(arg0) {
1065
+ __wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
1065
1066
  const ret = arg0.getTime();
1066
1067
  return ret;
1067
1068
  },
1068
- __wbg_getTimezoneOffset_81776d10a4ec18a8: function(arg0) {
1069
+ __wbg_getTimezoneOffset_639bcf2dde21158b: function(arg0) {
1069
1070
  const ret = arg0.getTimezoneOffset();
1070
1071
  return ret;
1071
1072
  },
1072
- __wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
1073
+ __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
1074
+ const ret = Reflect.get(arg0, arg1);
1075
+ return ret;
1076
+ }, arguments); },
1077
+ __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
1073
1078
  const ret = arg0[arg1 >>> 0];
1074
1079
  return ret;
1075
1080
  },
1076
- __wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
1077
- const ret = Reflect.get(arg0, arg1);
1081
+ __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
1082
+ const ret = arg0[arg1 >>> 0];
1078
1083
  return ret;
1079
- }, arguments); },
1080
- __wbg_get_with_ref_key_1dc361bd10053bfe: function(arg0, arg1) {
1084
+ },
1085
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
1081
1086
  const ret = arg0[arg1];
1082
1087
  return ret;
1083
1088
  },
1084
- __wbg_has_d4e53238966c12b6: function() { return handleError(function (arg0, arg1) {
1089
+ __wbg_has_926ef2ff40b308cf: function() { return handleError(function (arg0, arg1) {
1085
1090
  const ret = Reflect.has(arg0, arg1);
1086
1091
  return ret;
1087
1092
  }, arguments); },
1088
- __wbg_headers_59a2938db9f80985: function(arg0) {
1093
+ __wbg_headers_eb2234545f9ff993: function(arg0) {
1089
1094
  const ret = arg0.headers;
1090
1095
  return ret;
1091
1096
  },
1092
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
1097
+ __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
1093
1098
  let result;
1094
1099
  try {
1095
1100
  result = arg0 instanceof ArrayBuffer;
@@ -1099,7 +1104,7 @@ function __wbg_get_imports() {
1099
1104
  const ret = result;
1100
1105
  return ret;
1101
1106
  },
1102
- __wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
1107
+ __wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
1103
1108
  let result;
1104
1109
  try {
1105
1110
  result = arg0 instanceof Response;
@@ -1109,7 +1114,7 @@ function __wbg_get_imports() {
1109
1114
  const ret = result;
1110
1115
  return ret;
1111
1116
  },
1112
- __wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
1117
+ __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
1113
1118
  let result;
1114
1119
  try {
1115
1120
  result = arg0 instanceof Uint8Array;
@@ -1119,65 +1124,81 @@ function __wbg_get_imports() {
1119
1124
  const ret = result;
1120
1125
  return ret;
1121
1126
  },
1122
- __wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
1127
+ __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
1123
1128
  const ret = Number.isSafeInteger(arg0);
1124
1129
  return ret;
1125
1130
  },
1126
- __wbg_iterator_6ff6560ca1568e55: function() {
1131
+ __wbg_iterator_d8f549ec8fb061b1: function() {
1127
1132
  const ret = Symbol.iterator;
1128
1133
  return ret;
1129
1134
  },
1130
- __wbg_length_32ed9a279acd054c: function(arg0) {
1135
+ __wbg_length_b3416cf66a5452c8: function(arg0) {
1131
1136
  const ret = arg0.length;
1132
1137
  return ret;
1133
1138
  },
1134
- __wbg_length_35a7bace40f36eac: function(arg0) {
1139
+ __wbg_length_ea16607d7b61445b: function(arg0) {
1135
1140
  const ret = arg0.length;
1136
1141
  return ret;
1137
1142
  },
1138
- __wbg_log_6b5ca2e6124b2808: function(arg0) {
1143
+ __wbg_log_524eedafa26daa59: function(arg0) {
1139
1144
  console.log(arg0);
1140
1145
  },
1141
- __wbg_msCrypto_a61aeb35a24c1329: function(arg0) {
1146
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
1142
1147
  const ret = arg0.msCrypto;
1143
1148
  return ret;
1144
1149
  },
1145
- __wbg_new_0_73afc35eb544e539: function() {
1150
+ __wbg_new_0837727332ac86ba: function() { return handleError(function () {
1151
+ const ret = new Headers();
1152
+ return ret;
1153
+ }, arguments); },
1154
+ __wbg_new_0_1dcafdf5e786e876: function() {
1146
1155
  const ret = new Date();
1147
1156
  return ret;
1148
1157
  },
1149
- __wbg_new_245cd5c49157e602: function(arg0) {
1150
- const ret = new Date(arg0);
1158
+ __wbg_new_227d7c05414eb861: function() {
1159
+ const ret = new Error();
1151
1160
  return ret;
1152
1161
  },
1153
- __wbg_new_361308b2356cecd0: function() {
1154
- const ret = new Object();
1162
+ __wbg_new_49d5571bd3f0c4d4: function() {
1163
+ const ret = new Map();
1155
1164
  return ret;
1156
1165
  },
1157
- __wbg_new_3eb36ae241fe6f44: function() {
1166
+ __wbg_new_5f486cdf45a04d78: function(arg0) {
1167
+ const ret = new Uint8Array(arg0);
1168
+ return ret;
1169
+ },
1170
+ __wbg_new_a70fbab9066b301f: function() {
1158
1171
  const ret = new Array();
1159
1172
  return ret;
1160
1173
  },
1161
- __wbg_new_64284bd487f9d239: function() { return handleError(function () {
1162
- const ret = new Headers();
1174
+ __wbg_new_ab79df5bd7c26067: function() {
1175
+ const ret = new Object();
1176
+ return ret;
1177
+ },
1178
+ __wbg_new_c518c60af666645b: function() { return handleError(function () {
1179
+ const ret = new AbortController();
1163
1180
  return ret;
1164
1181
  }, arguments); },
1165
- __wbg_new_6812d0d7fb5189d3: function() { return handleError(function () {
1182
+ __wbg_new_cb1d07f18f0aae72: function() { return handleError(function () {
1166
1183
  const ret = new XMLHttpRequest();
1167
1184
  return ret;
1168
1185
  }, arguments); },
1169
- __wbg_new_8a6f238a6ece86ea: function() {
1170
- const ret = new Error();
1186
+ __wbg_new_fd94ca5c9639abd2: function(arg0) {
1187
+ const ret = new Date(arg0);
1171
1188
  return ret;
1172
1189
  },
1173
- __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
1190
+ __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
1191
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1192
+ return ret;
1193
+ },
1194
+ __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
1174
1195
  try {
1175
1196
  var state0 = {a: arg0, b: arg1};
1176
1197
  var cb0 = (arg0, arg1) => {
1177
1198
  const a = state0.a;
1178
1199
  state0.a = 0;
1179
1200
  try {
1180
- return wasm_bindgen__convert__closures_____invoke__h17062e91c506f269(a, state0.b, arg0, arg1);
1201
+ return wasm_bindgen__convert__closures_____invoke__h25a379a23ebc35a0(a, state0.b, arg0, arg1);
1181
1202
  } finally {
1182
1203
  state0.a = a;
1183
1204
  }
@@ -1188,193 +1209,173 @@ function __wbg_get_imports() {
1188
1209
  state0.a = state0.b = 0;
1189
1210
  }
1190
1211
  },
1191
- __wbg_new_b949e7f56150a5d1: function() { return handleError(function () {
1192
- const ret = new AbortController();
1193
- return ret;
1194
- }, arguments); },
1195
- __wbg_new_dca287b076112a51: function() {
1196
- const ret = new Map();
1197
- return ret;
1198
- },
1199
- __wbg_new_dd2b680c8bf6ae29: function(arg0) {
1200
- const ret = new Uint8Array(arg0);
1201
- return ret;
1202
- },
1203
- __wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
1204
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1205
- return ret;
1206
- },
1207
- __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
1208
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1209
- return ret;
1210
- },
1211
- __wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
1212
+ __wbg_new_with_length_825018a1616e9e55: function(arg0) {
1212
1213
  const ret = new Uint8Array(arg0 >>> 0);
1213
1214
  return ret;
1214
1215
  },
1215
- __wbg_new_with_str_and_init_a61cbc6bdef21614: function() { return handleError(function (arg0, arg1, arg2) {
1216
+ __wbg_new_with_str_and_init_b4b54d1a819bc724: function() { return handleError(function (arg0, arg1, arg2) {
1216
1217
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1217
1218
  return ret;
1218
1219
  }, arguments); },
1219
- __wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
1220
+ __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
1220
1221
  const ret = arg0.next();
1221
1222
  return ret;
1222
1223
  }, arguments); },
1223
- __wbg_next_418f80d8f5303233: function(arg0) {
1224
+ __wbg_next_e01a967809d1aa68: function(arg0) {
1224
1225
  const ret = arg0.next;
1225
1226
  return ret;
1226
1227
  },
1227
- __wbg_node_905d3e251edff8a2: function(arg0) {
1228
+ __wbg_node_84ea875411254db1: function(arg0) {
1228
1229
  const ret = arg0.node;
1229
1230
  return ret;
1230
1231
  },
1231
- __wbg_open_d6878fc86d07ad1d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1232
+ __wbg_open_ab5f9641f561c051: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1232
1233
  arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
1233
1234
  }, arguments); },
1234
- __wbg_process_dc0fbacc7c1c06f7: function(arg0) {
1235
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
1235
1236
  const ret = arg0.process;
1236
1237
  return ret;
1237
1238
  },
1238
- __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
1239
+ __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
1239
1240
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1240
1241
  },
1241
- __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
1242
+ __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
1242
1243
  const ret = arg0.queueMicrotask;
1243
1244
  return ret;
1244
1245
  },
1245
- __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
1246
+ __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
1246
1247
  queueMicrotask(arg0);
1247
1248
  },
1248
- __wbg_randomFillSync_ac0988aba3254290: function() { return handleError(function (arg0, arg1) {
1249
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
1249
1250
  arg0.randomFillSync(arg1);
1250
1251
  }, arguments); },
1251
- __wbg_require_60cc747a6bc5215a: function() { return handleError(function () {
1252
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
1252
1253
  const ret = module.require;
1253
1254
  return ret;
1254
1255
  }, arguments); },
1255
- __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
1256
+ __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
1256
1257
  const ret = Promise.resolve(arg0);
1257
1258
  return ret;
1258
1259
  },
1259
- __wbg_responseText_7bd83166000237b1: function() { return handleError(function (arg0, arg1) {
1260
+ __wbg_responseText_3ee457c31fe90e0e: function() { return handleError(function (arg0, arg1) {
1260
1261
  const ret = arg1.responseText;
1261
1262
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1262
1263
  var len1 = WASM_VECTOR_LEN;
1263
1264
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1264
1265
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1265
1266
  }, arguments); },
1266
- __wbg_send_cbc176af9cea4fe7: function() { return handleError(function (arg0) {
1267
+ __wbg_send_442fe07c698a9f29: function() { return handleError(function (arg0) {
1267
1268
  arg0.send();
1268
1269
  }, arguments); },
1269
- __wbg_setRequestHeader_2fb03a00832c5014: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1270
+ __wbg_setRequestHeader_4d392f8eb9f8a78b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1270
1271
  arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1271
1272
  }, arguments); },
1272
- __wbg_setTimeout_4ec014681668a581: function(arg0, arg1) {
1273
+ __wbg_setTimeout_f757f00851f76c42: function(arg0, arg1) {
1273
1274
  const ret = setTimeout(arg0, arg1);
1274
1275
  return ret;
1275
1276
  },
1276
- __wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
1277
- const ret = arg0.set(arg1, arg2);
1278
- return ret;
1277
+ __wbg_set_282384002438957f: function(arg0, arg1, arg2) {
1278
+ arg0[arg1 >>> 0] = arg2;
1279
1279
  },
1280
- __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
1280
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
1281
1281
  arg0[arg1] = arg2;
1282
1282
  },
1283
- __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
1283
+ __wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
1284
1284
  const ret = Reflect.set(arg0, arg1, arg2);
1285
1285
  return ret;
1286
1286
  }, arguments); },
1287
- __wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
1287
+ __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
1288
+ const ret = arg0.set(arg1, arg2);
1289
+ return ret;
1290
+ },
1291
+ __wbg_set_body_a3d856b097dfda04: function(arg0, arg1) {
1288
1292
  arg0.body = arg1;
1289
1293
  },
1290
- __wbg_set_cache_315a3ed773a41543: function(arg0, arg1) {
1294
+ __wbg_set_cache_ec7e430c6056ebda: function(arg0, arg1) {
1291
1295
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
1292
1296
  },
1293
- __wbg_set_credentials_c4a58d2e05ef24fb: function(arg0, arg1) {
1297
+ __wbg_set_credentials_ed63183445882c65: function(arg0, arg1) {
1294
1298
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1295
1299
  },
1296
- __wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
1297
- arg0[arg1 >>> 0] = arg2;
1298
- },
1299
- __wbg_set_headers_cfc5f4b2c1f20549: function(arg0, arg1) {
1300
+ __wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
1300
1301
  arg0.headers = arg1;
1301
1302
  },
1302
- __wbg_set_method_c3e20375f5ae7fac: function(arg0, arg1, arg2) {
1303
+ __wbg_set_method_8c015e8bcafd7be1: function(arg0, arg1, arg2) {
1303
1304
  arg0.method = getStringFromWasm0(arg1, arg2);
1304
1305
  },
1305
- __wbg_set_mode_b13642c312648202: function(arg0, arg1) {
1306
+ __wbg_set_mode_5a87f2c809cf37c2: function(arg0, arg1) {
1306
1307
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
1307
1308
  },
1308
- __wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
1309
+ __wbg_set_signal_0cebecb698f25d21: function(arg0, arg1) {
1309
1310
  arg0.signal = arg1;
1310
1311
  },
1311
- __wbg_signal_d1285ecab4ebc5ad: function(arg0) {
1312
+ __wbg_signal_166e1da31adcac18: function(arg0) {
1312
1313
  const ret = arg0.signal;
1313
1314
  return ret;
1314
1315
  },
1315
- __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
1316
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
1316
1317
  const ret = arg1.stack;
1317
1318
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1318
1319
  const len1 = WASM_VECTOR_LEN;
1319
1320
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1320
1321
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1321
1322
  },
1322
- __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
1323
+ __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
1323
1324
  const ret = typeof global === 'undefined' ? null : global;
1324
1325
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1325
1326
  },
1326
- __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
1327
+ __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
1327
1328
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1328
1329
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1329
1330
  },
1330
- __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
1331
+ __wbg_static_accessor_SELF_f207c857566db248: function() {
1331
1332
  const ret = typeof self === 'undefined' ? null : self;
1332
1333
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1333
1334
  },
1334
- __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
1335
+ __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
1335
1336
  const ret = typeof window === 'undefined' ? null : window;
1336
1337
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1337
1338
  },
1338
- __wbg_status_89d7e803db911ee7: function(arg0) {
1339
+ __wbg_status_318629ab93a22955: function(arg0) {
1339
1340
  const ret = arg0.status;
1340
1341
  return ret;
1341
1342
  },
1342
- __wbg_status_c5c72b218b4e4fbf: function() { return handleError(function (arg0) {
1343
+ __wbg_status_d5251b0ac97c56d5: function() { return handleError(function (arg0) {
1343
1344
  const ret = arg0.status;
1344
1345
  return ret;
1345
1346
  }, arguments); },
1346
- __wbg_stringify_8d1cc6ff383e8bae: function() { return handleError(function (arg0) {
1347
+ __wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
1347
1348
  const ret = JSON.stringify(arg0);
1348
1349
  return ret;
1349
1350
  }, arguments); },
1350
- __wbg_subarray_a96e1fef17ed23cb: function(arg0, arg1, arg2) {
1351
+ __wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
1351
1352
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1352
1353
  return ret;
1353
1354
  },
1354
- __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
1355
- const ret = arg0.then(arg1, arg2);
1355
+ __wbg_then_098abe61755d12f6: function(arg0, arg1) {
1356
+ const ret = arg0.then(arg1);
1356
1357
  return ret;
1357
1358
  },
1358
- __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
1359
- const ret = arg0.then(arg1);
1359
+ __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
1360
+ const ret = arg0.then(arg1, arg2);
1360
1361
  return ret;
1361
1362
  },
1362
- __wbg_url_c484c26b1fbf5126: function(arg0, arg1) {
1363
+ __wbg_url_7fefc1820fba4e0c: function(arg0, arg1) {
1363
1364
  const ret = arg1.url;
1364
1365
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1365
1366
  const len1 = WASM_VECTOR_LEN;
1366
1367
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1367
1368
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1368
1369
  },
1369
- __wbg_value_0546255b415e96c1: function(arg0) {
1370
+ __wbg_value_21fc78aab0322612: function(arg0) {
1370
1371
  const ret = arg0.value;
1371
1372
  return ret;
1372
1373
  },
1373
- __wbg_versions_c01dfd4722a88165: function(arg0) {
1374
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
1374
1375
  const ret = arg0.versions;
1375
1376
  return ret;
1376
1377
  },
1377
- __wbg_vfs_9d8dbf59470d023a: function(arg0, arg1, arg2) {
1378
+ __wbg_vfs_3dae73776b1265e1: function(arg0, arg1, arg2) {
1378
1379
  let deferred0_0;
1379
1380
  let deferred0_1;
1380
1381
  try {
@@ -1387,13 +1388,13 @@ function __wbg_get_imports() {
1387
1388
  }
1388
1389
  },
1389
1390
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1390
- // Cast intrinsic for `Closure(Closure { dtor_idx: 354, function: Function { arguments: [], shim_idx: 355, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1391
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h198100926bb093f3, wasm_bindgen__convert__closures_____invoke__hfefd06e2b02cdfa5);
1391
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 352, function: Function { arguments: [], shim_idx: 353, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1392
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h6b9685713e193de4, wasm_bindgen__convert__closures_____invoke__h6b074e69575dac88);
1392
1393
  return ret;
1393
1394
  },
1394
1395
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1395
- // Cast intrinsic for `Closure(Closure { dtor_idx: 550, function: Function { arguments: [Externref], shim_idx: 551, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1396
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8906009e658726e5, wasm_bindgen__convert__closures_____invoke__h7e014784d51faeee);
1396
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 551, function: Function { arguments: [Externref], shim_idx: 552, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1397
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h57d8283d53613a40, wasm_bindgen__convert__closures_____invoke__hc51f11d2f85e779d);
1397
1398
  return ret;
1398
1399
  },
1399
1400
  __wbindgen_cast_0000000000000003: function(arg0) {
@@ -1449,16 +1450,19 @@ function __wbg_get_imports() {
1449
1450
  };
1450
1451
  }
1451
1452
 
1452
- function wasm_bindgen__convert__closures_____invoke__hfefd06e2b02cdfa5(arg0, arg1) {
1453
- wasm.wasm_bindgen__convert__closures_____invoke__hfefd06e2b02cdfa5(arg0, arg1);
1453
+ function wasm_bindgen__convert__closures_____invoke__h6b074e69575dac88(arg0, arg1) {
1454
+ wasm.wasm_bindgen__convert__closures_____invoke__h6b074e69575dac88(arg0, arg1);
1454
1455
  }
1455
1456
 
1456
- function wasm_bindgen__convert__closures_____invoke__h7e014784d51faeee(arg0, arg1, arg2) {
1457
- wasm.wasm_bindgen__convert__closures_____invoke__h7e014784d51faeee(arg0, arg1, arg2);
1457
+ function wasm_bindgen__convert__closures_____invoke__hc51f11d2f85e779d(arg0, arg1, arg2) {
1458
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__hc51f11d2f85e779d(arg0, arg1, arg2);
1459
+ if (ret[1]) {
1460
+ throw takeFromExternrefTable0(ret[0]);
1461
+ }
1458
1462
  }
1459
1463
 
1460
- function wasm_bindgen__convert__closures_____invoke__h17062e91c506f269(arg0, arg1, arg2, arg3) {
1461
- wasm.wasm_bindgen__convert__closures_____invoke__h17062e91c506f269(arg0, arg1, arg2, arg3);
1464
+ function wasm_bindgen__convert__closures_____invoke__h25a379a23ebc35a0(arg0, arg1, arg2, arg3) {
1465
+ wasm.wasm_bindgen__convert__closures_____invoke__h25a379a23ebc35a0(arg0, arg1, arg2, arg3);
1462
1466
  }
1463
1467
 
1464
1468
 
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacks/clarinet-sdk-wasm-browser",
3
3
  "type": "module",
4
4
  "description": "The core lib that powers @stacks/clarinet-sdk",
5
- "version": "3.14.1",
5
+ "version": "3.15.1",
6
6
  "license": "GPL-3.0",
7
7
  "repository": {
8
8
  "type": "git",