-
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.
* Pro 2857 (#153) * 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 * adding changelog for backend * chnages: version change, minor response changes for metadata and add stake routes
- Loading branch information
1 parent
91d6378
commit ccacb0b
Showing
15 changed files
with
1,375 additions
and
275 deletions.
There are no files selected for viewing
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,10 @@ | ||
# Changelog | ||
## [1.8.0] - 2024-12-25 | ||
### Breaking changes | ||
- removed `/whitelist/v1`, `/removeWhitelist/v1`, `/checkWhitelist/v1` endpoints. | ||
- removed `/whitelist/v2`, `/removeWhitelist/v2`, `/checkWhitelist/v2` endpoints. | ||
|
||
### New | ||
- added support for VerifyingPaymaster allowing users to deploy their individual paymaster contracts for both EPV6 and EPV7. | ||
- added `/deploVerifyingPaymaster`, `/addStake` endpoints. | ||
- added `/whitelist`, `/removeWhitelist`, `/checkWhitelist` endpoints which accepts `useEp` in query params which when set to true uses EtherspotPaymaster contracts instead of VerifyingPaymaster. |
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.