Skip to content

Commit

Permalink
PRO-2182 - Added metadata api and Optimisations (#76)
Browse files Browse the repository at this point in the history
* added metadata api and optimisations

* changes as per feedback
  • Loading branch information
vignesha22 authored Mar 21, 2024
1 parent d956fe4 commit 7c8c13e
Show file tree
Hide file tree
Showing 17 changed files with 988 additions and 797 deletions.
4 changes: 2 additions & 2 deletions admin_frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion admin_frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "admin_frontend",
"version": "1.1.5",
"version": "1.1.6",
"private": true,
"dependencies": {
"@emotion/react": "11.11.3",
Expand Down
2 changes: 1 addition & 1 deletion admin_frontend/src/components/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Dashboard = () => {
method: "GET",
}
);
const dataJson = data.json();
const dataJson = await data.json();
setConfig(dataJson);
setEdittedConfig(dataJson);
let buffer;
Expand Down
117 changes: 40 additions & 77 deletions backend/indexer/EtherspotAbi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const EtherspotPaymasterAbi = [
export default [
{
"inputs": [
{
Expand Down Expand Up @@ -124,51 +124,6 @@ export const EtherspotPaymasterAbi = [
"name": "SponsorSuccessful",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "paymaster",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "SponsorUnsuccessful",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "WhitelistInitialized",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_account",
"type": "address"
}
],
"name": "addToWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -197,26 +152,15 @@ export const EtherspotPaymasterAbi = [
},
{
"inputs": [
{
"internalType": "address",
"name": "_sponsor",
"type": "address"
},
{
"internalType": "address",
"name": "_account",
"type": "address"
}
],
"name": "check",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"name": "addToWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
Expand All @@ -225,14 +169,19 @@ export const EtherspotPaymasterAbi = [
"internalType": "address",
"name": "_sponsor",
"type": "address"
},
{
"internalType": "address",
"name": "_account",
"type": "address"
}
],
"name": "checkSponsorFunds",
"name": "check",
"outputs": [
{
"internalType": "uint256",
"internalType": "bool",
"name": "",
"type": "uint256"
"type": "bool"
}
],
"stateMutability": "view",
Expand Down Expand Up @@ -357,6 +306,25 @@ export const EtherspotPaymasterAbi = [
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_sponsor",
"type": "address"
}
],
"name": "getSponsorBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
Expand Down Expand Up @@ -425,25 +393,25 @@ export const EtherspotPaymasterAbi = [
{
"inputs": [
{
"internalType": "address",
"name": "_account",
"type": "address"
"internalType": "address[]",
"name": "_accounts",
"type": "address[]"
}
],
"name": "remove",
"name": "removeBatchFromWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_accounts",
"type": "address[]"
"internalType": "address",
"name": "_account",
"type": "address"
}
],
"name": "removeBatch",
"name": "removeFromWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -568,11 +536,6 @@ export const EtherspotPaymasterAbi = [
},
{
"inputs": [
{
"internalType": "address payable",
"name": "_sponsor",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
Expand All @@ -597,4 +560,4 @@ export const EtherspotPaymasterAbi = [
"stateMutability": "nonpayable",
"type": "function"
}
] as const;
] as const;
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.1.5",
"version": "1.1.6",
"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 7c8c13e

Please sign in to comment.