-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
501834f
commit a36f6dd
Showing
14 changed files
with
1,362 additions
and
275 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
backend/migrations/20241204071603-add-vp-address-attribute.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.