Skip to content

Commit

Permalink
feat: upgrade gas fee
Browse files Browse the repository at this point in the history
  • Loading branch information
GiambiHuang committed Mar 21, 2024
1 parent 24e982f commit 0362309
Show file tree
Hide file tree
Showing 10 changed files with 202 additions and 202 deletions.
102 changes: 51 additions & 51 deletions bundler/wasm_bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ export function __wbg_set_wasm(val) {
}


const heap = new Array(128).fill(undefined);

heap.push(undefined, null, true, false);

function getObject(idx) { return heap[idx]; }

let heap_next = heap.length;

function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}

function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}

const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;

let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
Expand All @@ -23,12 +43,6 @@ function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}

const heap = new Array(128).fill(undefined);

heap.push(undefined, null, true, false);

let heap_next = heap.length;

function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
Expand All @@ -38,8 +52,6 @@ function addHeapObject(obj) {
return idx;
}

function getObject(idx) { return heap[idx]; }

let WASM_VECTOR_LEN = 0;

const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
Expand Down Expand Up @@ -106,18 +118,6 @@ function getInt32Memory0() {
return cachedInt32Memory0;
}

function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}

function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}

function debugString(val) {
// primitive types
const type = typeof val;
Expand Down Expand Up @@ -3817,8 +3817,12 @@ export class ZorroScalar {
}
}

export function __wbindgen_json_parse(arg0, arg1) {
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
export function __wbindgen_object_drop_ref(arg0) {
takeObject(arg0);
};

export function __wbindgen_string_new(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};

Expand All @@ -3831,17 +3835,8 @@ export function __wbindgen_json_serialize(arg0, arg1) {
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};

export function __wbindgen_object_drop_ref(arg0) {
takeObject(arg0);
};

export function __wbindgen_string_new(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};

export function __wbindgen_object_clone_ref(arg0) {
const ret = getObject(arg0);
export function __wbindgen_json_parse(arg0, arg1) {
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};

Expand All @@ -3850,15 +3845,12 @@ export function __wbg_now_c644db5194be8437(arg0) {
return ret;
};

export function __wbg_getRandomValues_37fa2ca9e4e07fab() { return handleError(function (arg0, arg1) {
getObject(arg0).getRandomValues(getObject(arg1));
}, arguments) };

export function __wbg_randomFillSync_dc1e9a60c158336d() { return handleError(function (arg0, arg1) {
getObject(arg0).randomFillSync(takeObject(arg1));
}, arguments) };
export function __wbindgen_object_clone_ref(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};

export function __wbg_crypto_c48a774b022d20ac(arg0) {
export function __wbg_crypto_d05b68a3572bb8ca(arg0) {
const ret = getObject(arg0).crypto;
return addHeapObject(ret);
};
Expand All @@ -3869,17 +3861,17 @@ export function __wbindgen_is_object(arg0) {
return ret;
};

export function __wbg_process_298734cf255a885d(arg0) {
export function __wbg_process_b02b3570280d0366(arg0) {
const ret = getObject(arg0).process;
return addHeapObject(ret);
};

export function __wbg_versions_e2e78e134e3e5d01(arg0) {
export function __wbg_versions_c1cb42213cedf0f5(arg0) {
const ret = getObject(arg0).versions;
return addHeapObject(ret);
};

export function __wbg_node_1cd7a5d853dbea79(arg0) {
export function __wbg_node_43b1089f407e4ec2(arg0) {
const ret = getObject(arg0).node;
return addHeapObject(ret);
};
Expand All @@ -3889,12 +3881,12 @@ export function __wbindgen_is_string(arg0) {
return ret;
};

export function __wbg_msCrypto_bcb970640f50a1e8(arg0) {
export function __wbg_msCrypto_10fc94afee92bd76(arg0) {
const ret = getObject(arg0).msCrypto;
return addHeapObject(ret);
};

export function __wbg_require_8f08ceecec0f4fee() { return handleError(function () {
export function __wbg_require_9a7e0f667ead4995() { return handleError(function () {
const ret = module.require;
return addHeapObject(ret);
}, arguments) };
Expand All @@ -3904,13 +3896,13 @@ export function __wbindgen_is_function(arg0) {
return ret;
};

export function __wbg_randomFillSync_85b3f4c52c56c313(arg0, arg1, arg2) {
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
};
export function __wbg_randomFillSync_b70ccbdf4926a99d() { return handleError(function (arg0, arg1) {
getObject(arg0).randomFillSync(takeObject(arg1));
}, arguments) };

export function __wbg_getRandomValues_cd175915511f705e(arg0, arg1) {
export function __wbg_getRandomValues_7e42b4fb8779dc6d() { return handleError(function (arg0, arg1) {
getObject(arg0).getRandomValues(getObject(arg1));
};
}, arguments) };

export function __wbg_self_7eede1f4488bf346() { return handleError(function () {
const ret = self.self;
Expand Down Expand Up @@ -3947,6 +3939,14 @@ export function __wbg_getRandomValues_307049345d0bd88c(arg0) {
return addHeapObject(ret);
};

export function __wbg_getRandomValues_cd175915511f705e(arg0, arg1) {
getObject(arg0).getRandomValues(getObject(arg1));
};

export function __wbg_randomFillSync_85b3f4c52c56c313(arg0, arg1, arg2) {
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
};

export function __wbg_newnoargs_2b8b6bd7753c76ba(arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
Expand Down
Binary file modified bundler/wasm_bg.wasm
Binary file not shown.
26 changes: 13 additions & 13 deletions bundler/wasm_bg.wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export function restore_keypair_from_mnemonic_default(a: number, b: number, c: n
export function restore_keypair_from_mnemonic_bip44(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function restore_keypair_from_mnemonic_bip49(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function fra_get_asset_code(a: number): void;
export function fra_get_minimal_fee(): number;
export function fra_get_dest_pubkey(): number;
export function get_coinbase_address(a: number): void;
export function get_delegation_target_address(a: number): void;
export function get_coinbase_principal_address(a: number): void;
export function fra_get_minimal_fee(): number;
export function get_delegation_min_amount(): number;
export function get_delegation_max_amount(): number;
export function get_delegation_target_address(a: number): void;
export function get_coinbase_principal_address(a: number): void;
export function __wbg_publicparams_free(a: number): void;
export function publicparams_new(): number;
export function __wbg_txoref_free(a: number): void;
Expand Down Expand Up @@ -149,22 +149,22 @@ export function assetrules_set_decimals(a: number, b: number, c: number): void;
export function __wbg_credentialsignature_free(a: number): void;
export function __wbg_xpublickey_free(a: number): void;
export function __wbg_xsecretkey_free(a: number): void;
export function __wbg_zorrofq_free(a: number): void;
export function __wbg_secq256k1g1_free(a: number): void;
export function __wbg_zorrog1_free(a: number): void;
export function __wbg_blsg1_free(a: number): void;
export function __wbg_blsscalar_free(a: number): void;
export function __wbg_blsg2_free(a: number): void;
export function __wbg_secp256k1g1_free(a: number): void;
export function __wbg_zorroscalar_free(a: number): void;
export function __wbg_zorrog1_free(a: number): void;
export function __wbg_ed25519scalar_free(a: number): void;
export function __wbg_blsgt_free(a: number): void;
export function __wbg_ed25519point_free(a: number): void;
export function __wbg_blsscalar_free(a: number): void;
export function __wbg_secq256k1scalar_free(a: number): void;
export function __wbg_blsg1_free(a: number): void;
export function __wbg_zorrofq_free(a: number): void;
export function __wbg_secp256k1scalar_free(a: number): void;
export function __wbg_blsfq_free(a: number): void;
export function __wbg_blsgt_free(a: number): void;
export function __wbg_ed25519scalar_free(a: number): void;
export function __wbg_zorroscalar_free(a: number): void;
export function __wbg_secq256k1scalar_free(a: number): void;
export function __wbg_secq256k1g1_free(a: number): void;
export function __wbg_jubjubscalar_free(a: number): void;
export function ring_core_0_17_5_bn_mul_mont(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function ring_core_0_17_8_bn_mul_mont(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function __wbg_credissuersecretkey_free(a: number): void;
export function __wbg_credissuerpublickey_free(a: number): void;
export function __wbg_creduserpublickey_free(a: number): void;
Expand Down
Loading

0 comments on commit 0362309

Please sign in to comment.