Skip to content

Commit

Permalink
chore: Update wasm (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 authored Mar 5, 2024
1 parent 12c548a commit fc1cddd
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 35 deletions.
1 change: 1 addition & 0 deletions public/hyperswitch/wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
10 changes: 5 additions & 5 deletions public/hyperswitch/wasm/euclid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand All @@ -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
Expand All @@ -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;
Expand Down
54 changes: 27 additions & 27 deletions public/hyperswitch/wasm/euclid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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];
Expand All @@ -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];
Expand All @@ -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];
Expand All @@ -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];
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -777,13 +769,21 @@ 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);
};
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);
Expand Down
Binary file modified public/hyperswitch/wasm/euclid_bg.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion public/hyperswitch/wasm/euclid_bg.wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions public/hyperswitch/wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "euclid_wasm_vas",
"name": "euclid_wasm",
"description": "WASM bindings for Euclid DSL",
"version": "0.1.0",
"files": [
Expand All @@ -12,4 +12,4 @@
"sideEffects": [
"./snippets/*"
]
}
}

0 comments on commit fc1cddd

Please sign in to comment.