diff --git a/backend/package.json b/backend/package.json index 519577e..07868e5 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "arka", - "version": "1.8.0", + "version": "2.0.0", "description": "ARKA - (Albanian for Cashier's case) is the first open source Paymaster as a service software", "type": "module", "directories": { diff --git a/backend/src/paymaster/index.ts b/backend/src/paymaster/index.ts index a6acd1d..3632461 100644 --- a/backend/src/paymaster/index.ts +++ b/backend/src/paymaster/index.ts @@ -1066,7 +1066,9 @@ export class Paymaster { } ); } - return tx + return { + message: `Successfully staked with transaction Hash ${tx.hash}` + }; } catch (error) { log?.error(`error while adding stake to verifying paymaster ${error}`); throw new Error(ErrorMessage.FAILED_TO_ADD_STAKE); diff --git a/backend/src/routes/admin-routes.ts b/backend/src/routes/admin-routes.ts index 728ca5d..8fe76d5 100644 --- a/backend/src/routes/admin-routes.ts +++ b/backend/src/routes/admin-routes.ts @@ -562,7 +562,7 @@ const adminRoutes: FastifyPluginAsync = async (server) => { chainId, server.log ); - return reply.code(ReturnCode.SUCCESS).send({tx}); + return reply.code(ReturnCode.SUCCESS).send(tx); } catch (error: any) { request.log.error(error); return reply.code(ReturnCode.FAILURE).send({ error: error.message ?? ErrorMessage.FAILED_TO_PROCESS }); diff --git a/backend/src/routes/metadata-routes.ts b/backend/src/routes/metadata-routes.ts index a25211e..8071e23 100644 --- a/backend/src/routes/metadata-routes.ts +++ b/backend/src/routes/metadata-routes.ts @@ -141,7 +141,8 @@ const metadataRoutes: FastifyPluginAsync = async (server) => { multiTokenPaymasters, sponsorDetails: { name: sponsorName, icon: sponsorImage }, verifyingPaymaster: { address: verifyingPaymaster, deposit: verifyingPaymasterDeposit }, - verifyingPaymasters: apiKeyEntity.verifyingPaymasters ? JSON.parse(apiKeyEntity.verifyingPaymasters) : undefined + verifyingPaymasters: apiKeyEntity.verifyingPaymasters ? JSON.parse(apiKeyEntity.verifyingPaymasters) : undefined, + verifyingPaymastersV2: apiKeyEntity.verifyingPaymastersV2 ? JSON.parse(apiKeyEntity.verifyingPaymastersV2) : undefined, }) } catch (err: any) { request.log.error(err);