diff --git a/public/hyperswitch/wasm/.gitignore b/public/hyperswitch/wasm/.gitignore new file mode 100644 index 000000000..f59ec20aa --- /dev/null +++ b/public/hyperswitch/wasm/.gitignore @@ -0,0 +1 @@ +* \ No newline at end of file diff --git a/public/hyperswitch/wasm/euclid.d.ts b/public/hyperswitch/wasm/euclid.d.ts index b1411419b..006898fa6 100644 --- a/public/hyperswitch/wasm/euclid.d.ts +++ b/public/hyperswitch/wasm/euclid.d.ts @@ -83,6 +83,10 @@ export function getVariantValues(key: string): any; */ export function addTwo(n1: bigint, n2: bigint): bigint; /** +* @returns {any} +*/ +export function getDescriptionCategory(): any; +/** * @param {string} key * @returns {any} */ @@ -104,10 +108,6 @@ export function getRequestPayload(input: any, response: any): any; */ export function getResponsePayload(input: any): any; /** -* @returns {any} -*/ -export function getDescriptionCategory(): any; -/** * * Function exposed as `wasm` function in js `parse`. Allowing use to extend the functionality and * usage for web @@ -133,11 +133,11 @@ export interface InitOutput { readonly getSurchargeKeys: (a: number) => void; readonly getVariantValues: (a: number, b: number, c: number) => void; readonly addTwo: (a: number, b: number) => number; + readonly getDescriptionCategory: (a: number) => void; readonly getConnectorConfig: (a: number, b: number, c: number) => void; readonly getPayoutConnectorConfig: (a: number, b: number, c: number) => void; readonly getRequestPayload: (a: number, b: number, c: number) => void; readonly getResponsePayload: (a: number, b: number) => void; - readonly getDescriptionCategory: (a: number) => void; readonly parse: (a: number, b: number, c: number) => void; readonly parseToString: (a: number, b: number, c: number) => void; readonly __wbindgen_export_0: (a: number, b: number) => number; diff --git a/public/hyperswitch/wasm/euclid.js b/public/hyperswitch/wasm/euclid.js index 3d9251f30..8c42179c6 100644 --- a/public/hyperswitch/wasm/euclid.js +++ b/public/hyperswitch/wasm/euclid.js @@ -495,15 +495,12 @@ export function addTwo(n1, n2) { } /** -* @param {string} key * @returns {any} */ -export function getConnectorConfig(key) { +export function getDescriptionCategory() { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); - const len0 = WASM_VECTOR_LEN; - wasm.getConnectorConfig(retptr, ptr0, len0); + wasm.getDescriptionCategory(retptr); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -520,12 +517,12 @@ export function getConnectorConfig(key) { * @param {string} key * @returns {any} */ -export function getPayoutConnectorConfig(key) { +export function getConnectorConfig(key) { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); const len0 = WASM_VECTOR_LEN; - wasm.getPayoutConnectorConfig(retptr, ptr0, len0); + wasm.getConnectorConfig(retptr, ptr0, len0); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -539,14 +536,15 @@ export function getPayoutConnectorConfig(key) { } /** -* @param {any} input -* @param {any} response +* @param {string} key * @returns {any} */ -export function getRequestPayload(input, response) { +export function getPayoutConnectorConfig(key) { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.getRequestPayload(retptr, addHeapObject(input), addHeapObject(response)); + const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); + const len0 = WASM_VECTOR_LEN; + wasm.getPayoutConnectorConfig(retptr, ptr0, len0); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -561,12 +559,13 @@ export function getRequestPayload(input, response) { /** * @param {any} input +* @param {any} response * @returns {any} */ -export function getResponsePayload(input) { +export function getRequestPayload(input, response) { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.getResponsePayload(retptr, addHeapObject(input)); + wasm.getRequestPayload(retptr, addHeapObject(input), addHeapObject(response)); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -580,12 +579,13 @@ export function getResponsePayload(input) { } /** +* @param {any} input * @returns {any} */ -export function getDescriptionCategory() { +export function getResponsePayload(input) { try { const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); - wasm.getDescriptionCategory(retptr); + wasm.getResponsePayload(retptr, addHeapObject(input)); var r0 = getInt32Memory0()[retptr / 4 + 0]; var r1 = getInt32Memory0()[retptr / 4 + 1]; var r2 = getInt32Memory0()[retptr / 4 + 2]; @@ -716,18 +716,6 @@ function __wbg_get_imports() { getInt32Memory0()[arg0 / 4 + 1] = len1; getInt32Memory0()[arg0 / 4 + 0] = ptr1; }; - imports.wbg.__wbg_new_56693dbed0c32988 = function() { - const ret = new Map(); - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_number_new = function(arg0) { - const ret = arg0; - return addHeapObject(ret); - }; - imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) { - const ret = arg0; - return addHeapObject(ret); - }; imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) { const ret = getObject(arg0) == getObject(arg1); return ret; @@ -747,6 +735,10 @@ function __wbg_get_imports() { getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret; getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); }; + imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) { + const ret = arg0; + return addHeapObject(ret); + }; imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) { const ret = getObject(arg0) === getObject(arg1); return ret; @@ -777,6 +769,10 @@ function __wbg_get_imports() { const ret = getObject(arg0) in getObject(arg1); return ret; }; + imports.wbg.__wbindgen_number_new = function(arg0) { + const ret = arg0; + return addHeapObject(ret); + }; imports.wbg.__wbg_new_898a68150f225f2e = function() { const ret = new Array(); return addHeapObject(ret); @@ -784,6 +780,10 @@ function __wbg_get_imports() { imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) { getObject(arg0)[arg1 >>> 0] = takeObject(arg2); }; + imports.wbg.__wbg_new_56693dbed0c32988 = function() { + const ret = new Map(); + return addHeapObject(ret); + }; imports.wbg.__wbg_String_88810dfeb4021902 = function(arg0, arg1) { const ret = String(getObject(arg1)); const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1); diff --git a/public/hyperswitch/wasm/euclid_bg.wasm b/public/hyperswitch/wasm/euclid_bg.wasm index 96dd07966..14fab7a17 100644 Binary files a/public/hyperswitch/wasm/euclid_bg.wasm and b/public/hyperswitch/wasm/euclid_bg.wasm differ diff --git a/public/hyperswitch/wasm/euclid_bg.wasm.d.ts b/public/hyperswitch/wasm/euclid_bg.wasm.d.ts index b57423146..e4e71a534 100644 --- a/public/hyperswitch/wasm/euclid_bg.wasm.d.ts +++ b/public/hyperswitch/wasm/euclid_bg.wasm.d.ts @@ -14,11 +14,11 @@ export function getThreeDsKeys(a: number): void; export function getSurchargeKeys(a: number): void; export function getVariantValues(a: number, b: number, c: number): void; export function addTwo(a: number, b: number): number; +export function getDescriptionCategory(a: number): void; export function getConnectorConfig(a: number, b: number, c: number): void; export function getPayoutConnectorConfig(a: number, b: number, c: number): void; export function getRequestPayload(a: number, b: number, c: number): void; export function getResponsePayload(a: number, b: number): void; -export function getDescriptionCategory(a: number): void; export function parse(a: number, b: number, c: number): void; export function parseToString(a: number, b: number, c: number): void; export function __wbindgen_export_0(a: number, b: number): number; diff --git a/public/hyperswitch/wasm/package.json b/public/hyperswitch/wasm/package.json index 5c6109c14..815d1d199 100644 --- a/public/hyperswitch/wasm/package.json +++ b/public/hyperswitch/wasm/package.json @@ -1,5 +1,5 @@ { - "name": "euclid_wasm_vas", + "name": "euclid_wasm", "description": "WASM bindings for Euclid DSL", "version": "0.1.0", "files": [ @@ -12,4 +12,4 @@ "sideEffects": [ "./snippets/*" ] -} +} \ No newline at end of file