Skip to content

Commit

Permalink
Pro 2857 (#153)
Browse files Browse the repository at this point in the history
* ft: adding support for verifying paymaster

* update: package.json version

* fix: changing names for mode, minor fix for entry point error message

* changes: common whitelist endpoints for v1/v2, removed v2 endpoints for whitelist
  • Loading branch information
nikhilkumar1612 authored Dec 10, 2024
1 parent 501834f commit a36f6dd
Show file tree
Hide file tree
Showing 14 changed files with 1,362 additions and 275 deletions.
45 changes: 45 additions & 0 deletions backend/migrations/20241204071603-add-vp-address-attribute.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
require('dotenv').config();
const { DataTypes, TEXT } = require('sequelize');

async function up({ context: queryInterface }) {
await queryInterface.addColumn(
{schema: process.env.DATABASE_SCHEMA_NAME, tableName: 'api_keys'},
'VERIFYING_PAYMASTERS',
{
type: DataTypes.TEXT,
allowNull: true
}
);

await queryInterface.addColumn(
{schema: process.env.DATABASE_SCHEMA_NAME, tableName: 'api_keys'},
'VERIFYING_PAYMASTERS_V2',
{
type: DataTypes.TEXT,
allowNull: true
}
);
}

async function down({ context: queryInterface }) {
await queryInterface.removeColumn(
{schema: process.env.DATABASE_SCHEMA_NAME, tableName: 'api_keys'},
'VERIFYING_PAYMASTERS',
{
type: DataTypes.TEXT,
allowNull: true
}
);

await queryInterface.removeColumn(
{schema: process.env.DATABASE_SCHEMA_NAME, tableName: 'api_keys'},
'VERIFYING_PAYMASTERS_V2',
{
type: DataTypes.TEXT,
allowNull: true
}
);
}

/** @type {import('sequelize-cli').Migration} */
module.exports = {up, down};
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arka",
"version": "1.7.0",
"version": "1.8.0",
"description": "ARKA - (Albanian for Cashier's case) is the first open source Paymaster as a service software",
"type": "module",
"directories": {
Expand Down
Loading

0 comments on commit a36f6dd

Please sign in to comment.