@lucid-evolution/uplc 0.2.9 → 0.2.11

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.
@@ -32,63 +32,3 @@ export function apply_params_to_script(
32
32
  params_bytes: Uint8Array,
33
33
  plutus_script_bytes: Uint8Array,
34
34
  ): Uint8Array;
35
-
36
- export type InitInput =
37
- | RequestInfo
38
- | URL
39
- | Response
40
- | BufferSource
41
- | WebAssembly.Module;
42
-
43
- export interface InitOutput {
44
- readonly memory: WebAssembly.Memory;
45
- readonly eval_phase_two_raw: (
46
- a: number,
47
- b: number,
48
- c: number,
49
- d: number,
50
- e: number,
51
- f: number,
52
- g: number,
53
- h: number,
54
- i: number,
55
- j: number,
56
- k: number,
57
- l: number,
58
- m: number,
59
- n: number,
60
- ) => void;
61
- readonly apply_params_to_script: (
62
- a: number,
63
- b: number,
64
- c: number,
65
- d: number,
66
- e: number,
67
- ) => void;
68
- readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
69
- readonly __wbindgen_malloc: (a: number, b: number) => number;
70
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
71
- }
72
-
73
- export type SyncInitInput = BufferSource | WebAssembly.Module;
74
- /**
75
- * Instantiates the given `module`, which can either be bytes or
76
- * a precompiled `WebAssembly.Module`.
77
- *
78
- * @param {SyncInitInput} module
79
- *
80
- * @returns {InitOutput}
81
- */
82
- export function initSync(module: SyncInitInput): InitOutput;
83
-
84
- /**
85
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
86
- * for everything else, calls `WebAssembly.instantiate` directly.
87
- *
88
- * @param {InitInput | Promise<InitInput>} module_or_path
89
- *
90
- * @returns {Promise<InitOutput>}
91
- */
92
- export default function __wbg_init(
93
- module_or_path?: InitInput | Promise<InitInput>,
94
- ): Promise<InitOutput>;
@@ -1,290 +1,4 @@
1
- let wasm;
2
-
3
- const heap = new Array(128).fill(undefined);
4
-
5
- heap.push(undefined, null, true, false);
6
-
7
- function getObject(idx) { return heap[idx]; }
8
-
9
- let heap_next = heap.length;
10
-
11
- function dropObject(idx) {
12
- if (idx < 132) return;
13
- heap[idx] = heap_next;
14
- heap_next = idx;
15
- }
16
-
17
- function takeObject(idx) {
18
- const ret = getObject(idx);
19
- dropObject(idx);
20
- return ret;
21
- }
22
-
23
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
24
-
25
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
26
-
27
- let cachedUint8Memory0 = null;
28
-
29
- function getUint8Memory0() {
30
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
31
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
32
- }
33
- return cachedUint8Memory0;
34
- }
35
-
36
- function getStringFromWasm0(ptr, len) {
37
- ptr = ptr >>> 0;
38
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
39
- }
40
-
41
- function addHeapObject(obj) {
42
- if (heap_next === heap.length) heap.push(heap.length + 1);
43
- const idx = heap_next;
44
- heap_next = heap[idx];
45
-
46
- heap[idx] = obj;
47
- return idx;
48
- }
49
-
50
- let WASM_VECTOR_LEN = 0;
51
-
52
- function passArray8ToWasm0(arg, malloc) {
53
- const ptr = malloc(arg.length * 1, 1) >>> 0;
54
- getUint8Memory0().set(arg, ptr / 1);
55
- WASM_VECTOR_LEN = arg.length;
56
- return ptr;
57
- }
58
-
59
- let cachedUint32Memory0 = null;
60
-
61
- function getUint32Memory0() {
62
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
63
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
64
- }
65
- return cachedUint32Memory0;
66
- }
67
-
68
- function passArrayJsValueToWasm0(array, malloc) {
69
- const ptr = malloc(array.length * 4, 4) >>> 0;
70
- const mem = getUint32Memory0();
71
- for (let i = 0; i < array.length; i++) {
72
- mem[ptr / 4 + i] = addHeapObject(array[i]);
73
- }
74
- WASM_VECTOR_LEN = array.length;
75
- return ptr;
76
- }
77
-
78
- let cachedInt32Memory0 = null;
79
-
80
- function getInt32Memory0() {
81
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
82
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
83
- }
84
- return cachedInt32Memory0;
85
- }
86
-
87
- function getArrayJsValueFromWasm0(ptr, len) {
88
- ptr = ptr >>> 0;
89
- const mem = getUint32Memory0();
90
- const slice = mem.subarray(ptr / 4, ptr / 4 + len);
91
- const result = [];
92
- for (let i = 0; i < slice.length; i++) {
93
- result.push(takeObject(slice[i]));
94
- }
95
- return result;
96
- }
97
- /**
98
- * @param {Uint8Array} tx_bytes
99
- * @param {(Uint8Array)[]} utxos_bytes_x
100
- * @param {(Uint8Array)[]} utxos_bytes_y
101
- * @param {Uint8Array} cost_mdls_bytes
102
- * @param {bigint} initial_budget_n
103
- * @param {bigint} initial_budget_d
104
- * @param {bigint} slot_config_x
105
- * @param {bigint} slot_config_y
106
- * @param {number} slot_config_z
107
- * @returns {(Uint8Array)[]}
108
- */
109
- export function eval_phase_two_raw(tx_bytes, utxos_bytes_x, utxos_bytes_y, cost_mdls_bytes, initial_budget_n, initial_budget_d, slot_config_x, slot_config_y, slot_config_z) {
110
- try {
111
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
112
- const ptr0 = passArray8ToWasm0(tx_bytes, wasm.__wbindgen_malloc);
113
- const len0 = WASM_VECTOR_LEN;
114
- const ptr1 = passArrayJsValueToWasm0(utxos_bytes_x, wasm.__wbindgen_malloc);
115
- const len1 = WASM_VECTOR_LEN;
116
- const ptr2 = passArrayJsValueToWasm0(utxos_bytes_y, wasm.__wbindgen_malloc);
117
- const len2 = WASM_VECTOR_LEN;
118
- const ptr3 = passArray8ToWasm0(cost_mdls_bytes, wasm.__wbindgen_malloc);
119
- const len3 = WASM_VECTOR_LEN;
120
- wasm.eval_phase_two_raw(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, initial_budget_n, initial_budget_d, slot_config_x, slot_config_y, slot_config_z);
121
- var r0 = getInt32Memory0()[retptr / 4 + 0];
122
- var r1 = getInt32Memory0()[retptr / 4 + 1];
123
- var r2 = getInt32Memory0()[retptr / 4 + 2];
124
- var r3 = getInt32Memory0()[retptr / 4 + 3];
125
- if (r3) {
126
- throw takeObject(r2);
127
- }
128
- var v5 = getArrayJsValueFromWasm0(r0, r1).slice();
129
- wasm.__wbindgen_free(r0, r1 * 4, 4);
130
- return v5;
131
- } finally {
132
- wasm.__wbindgen_add_to_stack_pointer(16);
133
- }
134
- }
135
-
136
- function getArrayU8FromWasm0(ptr, len) {
137
- ptr = ptr >>> 0;
138
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
139
- }
140
- /**
141
- * @param {Uint8Array} params_bytes
142
- * @param {Uint8Array} plutus_script_bytes
143
- * @returns {Uint8Array}
144
- */
145
- export function apply_params_to_script(params_bytes, plutus_script_bytes) {
146
- try {
147
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
148
- const ptr0 = passArray8ToWasm0(params_bytes, wasm.__wbindgen_malloc);
149
- const len0 = WASM_VECTOR_LEN;
150
- const ptr1 = passArray8ToWasm0(plutus_script_bytes, wasm.__wbindgen_malloc);
151
- const len1 = WASM_VECTOR_LEN;
152
- wasm.apply_params_to_script(retptr, ptr0, len0, ptr1, len1);
153
- var r0 = getInt32Memory0()[retptr / 4 + 0];
154
- var r1 = getInt32Memory0()[retptr / 4 + 1];
155
- var r2 = getInt32Memory0()[retptr / 4 + 2];
156
- var r3 = getInt32Memory0()[retptr / 4 + 3];
157
- if (r3) {
158
- throw takeObject(r2);
159
- }
160
- var v3 = getArrayU8FromWasm0(r0, r1).slice();
161
- wasm.__wbindgen_free(r0, r1 * 1, 1);
162
- return v3;
163
- } finally {
164
- wasm.__wbindgen_add_to_stack_pointer(16);
165
- }
166
- }
167
-
168
- async function __wbg_load(module, imports) {
169
- if (typeof Response === 'function' && module instanceof Response) {
170
- if (typeof WebAssembly.instantiateStreaming === 'function') {
171
- try {
172
- return await WebAssembly.instantiateStreaming(module, imports);
173
-
174
- } catch (e) {
175
- if (module.headers.get('Content-Type') != 'application/wasm') {
176
- console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
177
-
178
- } else {
179
- throw e;
180
- }
181
- }
182
- }
183
-
184
- const bytes = await module.arrayBuffer();
185
- return await WebAssembly.instantiate(bytes, imports);
186
-
187
- } else {
188
- const instance = await WebAssembly.instantiate(module, imports);
189
-
190
- if (instance instanceof WebAssembly.Instance) {
191
- return { instance, module };
192
-
193
- } else {
194
- return instance;
195
- }
196
- }
197
- }
198
-
199
- function __wbg_get_imports() {
200
- const imports = {};
201
- imports.wbg = {};
202
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
203
- takeObject(arg0);
204
- };
205
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
206
- const ret = getStringFromWasm0(arg0, arg1);
207
- return addHeapObject(ret);
208
- };
209
- imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
210
- const ret = getObject(arg0).buffer;
211
- return addHeapObject(ret);
212
- };
213
- imports.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) {
214
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
215
- return addHeapObject(ret);
216
- };
217
- imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
218
- const ret = new Uint8Array(getObject(arg0));
219
- return addHeapObject(ret);
220
- };
221
- imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
222
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
223
- };
224
- imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
225
- const ret = getObject(arg0).length;
226
- return ret;
227
- };
228
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
229
- throw new Error(getStringFromWasm0(arg0, arg1));
230
- };
231
- imports.wbg.__wbindgen_memory = function() {
232
- const ret = wasm.memory;
233
- return addHeapObject(ret);
234
- };
235
-
236
- return imports;
237
- }
238
-
239
- function __wbg_init_memory(imports, maybe_memory) {
240
-
241
- }
242
-
243
- function __wbg_finalize_init(instance, module) {
244
- wasm = instance.exports;
245
- __wbg_init.__wbindgen_wasm_module = module;
246
- cachedInt32Memory0 = null;
247
- cachedUint32Memory0 = null;
248
- cachedUint8Memory0 = null;
249
-
250
-
251
- return wasm;
252
- }
253
-
254
- function initSync(module) {
255
- if (wasm !== undefined) return wasm;
256
-
257
- const imports = __wbg_get_imports();
258
-
259
- __wbg_init_memory(imports);
260
-
261
- if (!(module instanceof WebAssembly.Module)) {
262
- module = new WebAssembly.Module(module);
263
- }
264
-
265
- const instance = new WebAssembly.Instance(module, imports);
266
-
267
- return __wbg_finalize_init(instance, module);
268
- }
269
-
270
- async function __wbg_init(input) {
271
- if (wasm !== undefined) return wasm;
272
-
273
- if (typeof input === 'undefined') {
274
- input = new URL('uplc_tx_bg.wasm', import.meta.url);
275
- }
276
- const imports = __wbg_get_imports();
277
-
278
- if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
279
- input = fetch(input);
280
- }
281
-
282
- __wbg_init_memory(imports);
283
-
284
- const { instance, module } = await __wbg_load(await input, imports);
285
-
286
- return __wbg_finalize_init(instance, module);
287
- }
288
-
289
- export { initSync }
290
- export default __wbg_init;
1
+ import * as wasm from "./uplc_tx_bg.wasm";
2
+ import { __wbg_set_wasm } from "./uplc_tx_bg.js";
3
+ __wbg_set_wasm(wasm);
4
+ export * from "./uplc_tx_bg.js";
@@ -0,0 +1,215 @@
1
+ let wasm;
2
+ export function __wbg_set_wasm(val) {
3
+ wasm = val;
4
+ }
5
+
6
+
7
+ const heap = new Array(128).fill(undefined);
8
+
9
+ heap.push(undefined, null, true, false);
10
+
11
+ function getObject(idx) { return heap[idx]; }
12
+
13
+ let heap_next = heap.length;
14
+
15
+ function dropObject(idx) {
16
+ if (idx < 132) return;
17
+ heap[idx] = heap_next;
18
+ heap_next = idx;
19
+ }
20
+
21
+ function takeObject(idx) {
22
+ const ret = getObject(idx);
23
+ dropObject(idx);
24
+ return ret;
25
+ }
26
+
27
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
28
+
29
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
30
+
31
+ cachedTextDecoder.decode();
32
+
33
+ let cachedUint8Memory0 = null;
34
+
35
+ function getUint8Memory0() {
36
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
37
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
38
+ }
39
+ return cachedUint8Memory0;
40
+ }
41
+
42
+ function getStringFromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
+ }
46
+
47
+ function addHeapObject(obj) {
48
+ if (heap_next === heap.length) heap.push(heap.length + 1);
49
+ const idx = heap_next;
50
+ heap_next = heap[idx];
51
+
52
+ heap[idx] = obj;
53
+ return idx;
54
+ }
55
+
56
+ let WASM_VECTOR_LEN = 0;
57
+
58
+ function passArray8ToWasm0(arg, malloc) {
59
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
60
+ getUint8Memory0().set(arg, ptr / 1);
61
+ WASM_VECTOR_LEN = arg.length;
62
+ return ptr;
63
+ }
64
+
65
+ let cachedUint32Memory0 = null;
66
+
67
+ function getUint32Memory0() {
68
+ if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
69
+ cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
70
+ }
71
+ return cachedUint32Memory0;
72
+ }
73
+
74
+ function passArrayJsValueToWasm0(array, malloc) {
75
+ const ptr = malloc(array.length * 4, 4) >>> 0;
76
+ const mem = getUint32Memory0();
77
+ for (let i = 0; i < array.length; i++) {
78
+ mem[ptr / 4 + i] = addHeapObject(array[i]);
79
+ }
80
+ WASM_VECTOR_LEN = array.length;
81
+ return ptr;
82
+ }
83
+
84
+ let cachedInt32Memory0 = null;
85
+
86
+ function getInt32Memory0() {
87
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
88
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
89
+ }
90
+ return cachedInt32Memory0;
91
+ }
92
+
93
+ function getArrayJsValueFromWasm0(ptr, len) {
94
+ ptr = ptr >>> 0;
95
+ const mem = getUint32Memory0();
96
+ const slice = mem.subarray(ptr / 4, ptr / 4 + len);
97
+ const result = [];
98
+ for (let i = 0; i < slice.length; i++) {
99
+ result.push(takeObject(slice[i]));
100
+ }
101
+ return result;
102
+ }
103
+ /**
104
+ * @param {Uint8Array} tx_bytes
105
+ * @param {(Uint8Array)[]} utxos_bytes_x
106
+ * @param {(Uint8Array)[]} utxos_bytes_y
107
+ * @param {Uint8Array} cost_mdls_bytes
108
+ * @param {bigint} initial_budget_n
109
+ * @param {bigint} initial_budget_d
110
+ * @param {bigint} slot_config_x
111
+ * @param {bigint} slot_config_y
112
+ * @param {number} slot_config_z
113
+ * @returns {(Uint8Array)[]}
114
+ */
115
+ export function eval_phase_two_raw(tx_bytes, utxos_bytes_x, utxos_bytes_y, cost_mdls_bytes, initial_budget_n, initial_budget_d, slot_config_x, slot_config_y, slot_config_z) {
116
+ try {
117
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
118
+ const ptr0 = passArray8ToWasm0(tx_bytes, wasm.__wbindgen_malloc);
119
+ const len0 = WASM_VECTOR_LEN;
120
+ const ptr1 = passArrayJsValueToWasm0(utxos_bytes_x, wasm.__wbindgen_malloc);
121
+ const len1 = WASM_VECTOR_LEN;
122
+ const ptr2 = passArrayJsValueToWasm0(utxos_bytes_y, wasm.__wbindgen_malloc);
123
+ const len2 = WASM_VECTOR_LEN;
124
+ const ptr3 = passArray8ToWasm0(cost_mdls_bytes, wasm.__wbindgen_malloc);
125
+ const len3 = WASM_VECTOR_LEN;
126
+ wasm.eval_phase_two_raw(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, initial_budget_n, initial_budget_d, slot_config_x, slot_config_y, slot_config_z);
127
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
128
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
129
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
130
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
131
+ if (r3) {
132
+ throw takeObject(r2);
133
+ }
134
+ var v5 = getArrayJsValueFromWasm0(r0, r1).slice();
135
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
136
+ return v5;
137
+ } finally {
138
+ wasm.__wbindgen_add_to_stack_pointer(16);
139
+ }
140
+ }
141
+
142
+ function getArrayU8FromWasm0(ptr, len) {
143
+ ptr = ptr >>> 0;
144
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
145
+ }
146
+ /**
147
+ * @param {Uint8Array} params_bytes
148
+ * @param {Uint8Array} plutus_script_bytes
149
+ * @returns {Uint8Array}
150
+ */
151
+ export function apply_params_to_script(params_bytes, plutus_script_bytes) {
152
+ try {
153
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
154
+ const ptr0 = passArray8ToWasm0(params_bytes, wasm.__wbindgen_malloc);
155
+ const len0 = WASM_VECTOR_LEN;
156
+ const ptr1 = passArray8ToWasm0(plutus_script_bytes, wasm.__wbindgen_malloc);
157
+ const len1 = WASM_VECTOR_LEN;
158
+ wasm.apply_params_to_script(retptr, ptr0, len0, ptr1, len1);
159
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
160
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
161
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
162
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
163
+ if (r3) {
164
+ throw takeObject(r2);
165
+ }
166
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
167
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
168
+ return v3;
169
+ } finally {
170
+ wasm.__wbindgen_add_to_stack_pointer(16);
171
+ }
172
+ }
173
+
174
+ export function __wbindgen_object_drop_ref(arg0) {
175
+ takeObject(arg0);
176
+ };
177
+
178
+ export function __wbindgen_string_new(arg0, arg1) {
179
+ const ret = getStringFromWasm0(arg0, arg1);
180
+ return addHeapObject(ret);
181
+ };
182
+
183
+ export function __wbg_buffer_12d079cc21e14bdb(arg0) {
184
+ const ret = getObject(arg0).buffer;
185
+ return addHeapObject(ret);
186
+ };
187
+
188
+ export function __wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb(arg0, arg1, arg2) {
189
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
190
+ return addHeapObject(ret);
191
+ };
192
+
193
+ export function __wbg_new_63b92bc8671ed464(arg0) {
194
+ const ret = new Uint8Array(getObject(arg0));
195
+ return addHeapObject(ret);
196
+ };
197
+
198
+ export function __wbg_set_a47bac70306a19a7(arg0, arg1, arg2) {
199
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
200
+ };
201
+
202
+ export function __wbg_length_c20a40f15020d68a(arg0) {
203
+ const ret = getObject(arg0).length;
204
+ return ret;
205
+ };
206
+
207
+ export function __wbindgen_throw(arg0, arg1) {
208
+ throw new Error(getStringFromWasm0(arg0, arg1));
209
+ };
210
+
211
+ export function __wbindgen_memory() {
212
+ const ret = wasm.memory;
213
+ return addHeapObject(ret);
214
+ };
215
+
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucid-evolution/uplc",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "main": "./dist/node/uplc_tx.js",
5
5
  "browser": "./dist/browser/uplc_tx.js",
6
6
  "types": "./dist/node/uplc_tx.d.ts",
@@ -10,11 +10,8 @@
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
13
- "sideEffects": [
14
- "./uplc_tx.js"
15
- ],
16
13
  "scripts": {
17
- "build-local": "rm -rf dist && cd rust ; wasm-pack build --target web --out-dir ../src/browser && wasm-pack build --target nodejs --out-dir ../src/node && pnpm clean-garbage",
14
+ "build-local": "rm -rf dist && cd rust ; wasm-pack build --target bundler --out-dir ../src/browser && wasm-pack build --target nodejs --out-dir ../src/node && pnpm clean-garbage",
18
15
  "build": "cp -r src dist",
19
16
  "clean-garbage": "rm src/browser/.gitignore src/browser/package.json src/node/.gitignore src/node/package.json",
20
17
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"