Skip to content

Commit

Permalink
Pro 2857 (#153) (#159)
Browse files Browse the repository at this point in the history
* 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
nikhilkumar1612 authored Dec 26, 2024
1 parent 91d6378 commit ccacb0b
Show file tree
Hide file tree
Showing 15 changed files with 1,375 additions and 275 deletions.
10 changes: 10 additions & 0 deletions backend/CHANGELOG.md
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 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.4",
"version": "2.0.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 ccacb0b

Please sign in to comment.