@lucid-evolution/uplc 0.2.18 → 0.2.19
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/dist/browser/uplc_tx_bg.js +24 -24
- package/dist/browser/uplc_tx_bg.wasm +0 -0
- package/dist/node/uplc_tx.js +24 -24
- package/dist/node/uplc_tx_bg.wasm +0 -0
- package/package.json +1 -1
|
@@ -4,26 +4,6 @@ export function __wbg_set_wasm(val) {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
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
7
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
28
8
|
|
|
29
9
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -44,6 +24,12 @@ function getStringFromWasm0(ptr, len) {
|
|
|
44
24
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
45
25
|
}
|
|
46
26
|
|
|
27
|
+
const heap = new Array(128).fill(undefined);
|
|
28
|
+
|
|
29
|
+
heap.push(undefined, null, true, false);
|
|
30
|
+
|
|
31
|
+
let heap_next = heap.length;
|
|
32
|
+
|
|
47
33
|
function addHeapObject(obj) {
|
|
48
34
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
49
35
|
const idx = heap_next;
|
|
@@ -53,6 +39,20 @@ function addHeapObject(obj) {
|
|
|
53
39
|
return idx;
|
|
54
40
|
}
|
|
55
41
|
|
|
42
|
+
function getObject(idx) { return heap[idx]; }
|
|
43
|
+
|
|
44
|
+
function dropObject(idx) {
|
|
45
|
+
if (idx < 132) return;
|
|
46
|
+
heap[idx] = heap_next;
|
|
47
|
+
heap_next = idx;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function takeObject(idx) {
|
|
51
|
+
const ret = getObject(idx);
|
|
52
|
+
dropObject(idx);
|
|
53
|
+
return ret;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
56
|
let WASM_VECTOR_LEN = 0;
|
|
57
57
|
|
|
58
58
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -161,10 +161,6 @@ export function apply_params_to_script(params_bytes, plutus_script_bytes) {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
165
|
-
takeObject(arg0);
|
|
166
|
-
};
|
|
167
|
-
|
|
168
164
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
169
165
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
170
166
|
return addHeapObject(ret);
|
|
@@ -190,6 +186,10 @@ export function __wbg_new_ea1883e1e5e86686(arg0) {
|
|
|
190
186
|
return addHeapObject(ret);
|
|
191
187
|
};
|
|
192
188
|
|
|
189
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
190
|
+
takeObject(arg0);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
193
|
export function __wbg_length_8339fcf5d8ecd12e(arg0) {
|
|
194
194
|
const ret = getObject(arg0).length;
|
|
195
195
|
return ret;
|
|
Binary file
|
package/dist/node/uplc_tx.js
CHANGED
|
@@ -4,26 +4,6 @@ imports['__wbindgen_placeholder__'] = module.exports;
|
|
|
4
4
|
let wasm;
|
|
5
5
|
const { TextDecoder } = require(`util`);
|
|
6
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
7
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
8
|
|
|
29
9
|
cachedTextDecoder.decode();
|
|
@@ -42,6 +22,12 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
22
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
43
23
|
}
|
|
44
24
|
|
|
25
|
+
const heap = new Array(128).fill(undefined);
|
|
26
|
+
|
|
27
|
+
heap.push(undefined, null, true, false);
|
|
28
|
+
|
|
29
|
+
let heap_next = heap.length;
|
|
30
|
+
|
|
45
31
|
function addHeapObject(obj) {
|
|
46
32
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
33
|
const idx = heap_next;
|
|
@@ -51,6 +37,20 @@ function addHeapObject(obj) {
|
|
|
51
37
|
return idx;
|
|
52
38
|
}
|
|
53
39
|
|
|
40
|
+
function getObject(idx) { return heap[idx]; }
|
|
41
|
+
|
|
42
|
+
function dropObject(idx) {
|
|
43
|
+
if (idx < 132) return;
|
|
44
|
+
heap[idx] = heap_next;
|
|
45
|
+
heap_next = idx;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function takeObject(idx) {
|
|
49
|
+
const ret = getObject(idx);
|
|
50
|
+
dropObject(idx);
|
|
51
|
+
return ret;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -159,10 +159,6 @@ module.exports.apply_params_to_script = function(params_bytes, plutus_script_byt
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
163
|
-
takeObject(arg0);
|
|
164
|
-
};
|
|
165
|
-
|
|
166
162
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
167
163
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
168
164
|
return addHeapObject(ret);
|
|
@@ -188,6 +184,10 @@ module.exports.__wbg_new_ea1883e1e5e86686 = function(arg0) {
|
|
|
188
184
|
return addHeapObject(ret);
|
|
189
185
|
};
|
|
190
186
|
|
|
187
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
188
|
+
takeObject(arg0);
|
|
189
|
+
};
|
|
190
|
+
|
|
191
191
|
module.exports.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
|
|
192
192
|
const ret = getObject(arg0).length;
|
|
193
193
|
return ret;
|
|
Binary file
|