Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRO-2265-Arka_Housekeeping #86

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ The structure should be as follows
"137": "https://api.polygonscan.com/api?module=gastracker&action=gasoracle&apikey=YourApiKeyToken", // Note that you need to replace YourApiKeyToken to actual API key from etherscan
"1": "https://api.etherscan.io/api?module=gastracker&action=gasoracle&apikey=YourApiKeyToken"
} which then needs to be converted into `base64` value
- DEFAULT_API_KEY - this is used for checking token paymaster deposits. Please use an apiKey which has the list of token paymasters that needs to be monitored. Please note that it only tracks the token paymasters in `ERC20_PAYMASTERS` and `MULTI_TOKEN_PAYMASTERS` variable specified inside the apiKey.
- WEBHOOK_URL - this is used to notify if the token paymaster deposit comes below 'thresholdValue' specified in backend/config.json and please note that each chain has configured threshold as approx. 50 USD worth of native tokens

## API KEY VALIDATION
- In ARKA Admin Frontend, create an API_KEY with the following format -
Expand Down
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.2.0",
"version": "1.2.1",
"private": true,
"dependencies": {
"@emotion/react": "11.11.3",
Expand Down
180 changes: 86 additions & 94 deletions backend/config.json.default
Original file line number Diff line number Diff line change
Expand Up @@ -4,223 +4,215 @@
"bundler": "https://ethereum-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x7F690e93CecFca5A31E6e1dF50A33F6d3059048c"
}
},
{
"chainId": 5,
"bundler": "https://goerli-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xcaDBADcFeD5530A49762DFc9d1d712CcD6b09b25"
}
},
"thresholdValue": "0.016"
},
{
"chainId": 10,
"bundler": "https://optimism-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x805650ce74561C85baA44a8Bd13E19633Fd0F79d"
}
},
"thresholdValue": "21.8"
},
{
"chainId": 14,
"bundler": "https://flare-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x8A41594e5c6Fe492e437414c24eA6f401186b8d2"
}
},
"thresholdValue": "1556"
},
{
"chainId": 30,
"bundler": "https://rootstock-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xe893A26dD53b325bFFaACdFA224692EFF4C448C4"
},
"thresholdValue": "0.00079"
},
{
"chainId": 31,
"bundler": "https://rootstocktestnet-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x898c530A5fA37720DcF1843AeCC34b6B0cBaEB8a"
},
"thresholdValue": "0.00079"
},
{
"chainId": 56,
"bundler": "https://bnb-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0xEA5ecE95D3A28f9faB161779d20128b449F9EC9C"
}
},
"thresholdValue": "0.09"
},
{
"chainId": 97,
"bundler": "https://bnbtestnet-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x153e26707DF3787183945B88121E4Eb188FDCAAA"
}
},
"thresholdValue": "0.09"
},
{
"chainId": 100,
"bundler": "https://gnosis-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x373aBcF1EA9e5802778E32870e7f72C8A6a90349"
}
},
"thresholdValue": "50"
},
{
"chainId": 114,
"bundler": "https://flaretestnet-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x2a18C360b525824B3e5656B5a705554f2a5036Be"
}
},
"thresholdValue": "1556"
},
{
"chainId": 122,
"bundler": "https://fuse-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xEC2EE24E79C73DB13Dd9bC782856a5296626b7eb"
}
},
"thresholdValue": "669"
},
{
"chainId": 137,
"bundler": "https://polygon-bundler.etherspot.io",
"chainId": 123,
"bundler": "https://fusetestnet-bundler-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x26FeC24b0D467C9de105217B483931e8f944ff50"
}
"etherspotPaymasterAddress": "0xAF628C207513c5E51d894b3733056B8080634923"
},
"thresholdValue": "669"
},
{
"chainId": 420,
"bundler": "https://optimismgoerli-bundler.etherspot.io",
"chainId": 137,
"bundler": "https://polygon-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x898c530A5fA37720DcF1843AeCC34b6B0cBaEB8a"
}
"etherspotPaymasterAddress": "0x26FeC24b0D467C9de105217B483931e8f944ff50"
},
"thresholdValue": "69.85"
},
{
"chainId": 1001,
"bundler": "https://klaytntestnet-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x810FA4C915015b703db0878CF2B9344bEB254a40"
}
},
"thresholdValue": "275.2"
},
{
"chainId": 5000,
"bundler": "https://mantle-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x8A41594e5c6Fe492e437414c24eA6f401186b8d2"
}
},
"thresholdValue": "44.24"
},
{
"chainId": 5001,
"bundler": "https://mantletestnet-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0xb56eC212C60C47fb7385f13b7247886FFa5E9D5C"
}
},
"thresholdValue": "44.24"
},
{
"chainId": 8217,
"bundler": "https://klaytn-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x4ebd86AAF89151b5303DB072e0205C668e31E5E7"
}
},
"thresholdValue": "275.2"
},
{
"chainId": 8453,
"bundler": "https://base-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x810FA4C915015b703db0878CF2B9344bEB254a40"
}
},
"thresholdValue": "15.19"
},
{
"chainId": 42161,
"bundler": "https://arbitrum-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xEC2EE24E79C73DB13Dd9bC782856a5296626b7eb"
}
},
"thresholdValue": "43.10"
},
{
"chainId": 43114,
"bundler": "https://avalanche-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0x527569794781671319f20374A050BDbef4181aB3"
}
},
"thresholdValue": "1.4"
},
{
"chainId": 59144,
"bundler": "https://linea-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0xB3AD9B9B06c6016f81404ee8FcCD0526F018Cf0C"
}
},
"thresholdValue": "0.016"
},
{
"chainId": 80001,
"bundler": "https://mumbai-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x8350355c08aDAC387b443782124A30A8942BeC2e"
}
},
{
"chainId": 84531,
"bundler": "https://basegoerli-bundler.etherspot.io",
"chainId": 84532,
"bundler": "https://basesepolia-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x898c530A5fA37720DcF1843AeCC34b6B0cBaEB8a"
}
"etherspotPaymasterAddress": "0xe893A26DD53b325BffAacDfA224692EfF4C448c4"
},
"thresholdValue": "15.19"
},
{
"chainId": 421613,
"bundler": "https://arbitrumgoerli-bundler.etherspot.io",
"chainId": 421614,
"bundler": "https://arbitrumsepolia-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x898c530A5fA37720DcF1843AeCC34b6B0cBaEB8a"
}
"etherspotPaymasterAddress": "0xe893A26DD53b325BffAacDfA224692EfF4C448c4"
},
"thresholdValue": "43.10"
},
{
"chainId": 534351,
"bundler": "https://scrollsepolia-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0xe893A26DD53b325BffAacDfA224692EfF4C448c4"
}
},
"thresholdValue": "0.016"
},
{
"chainId": 11155111,
"bundler": "https://sepolia-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xcaDBADcFeD5530A49762DFc9d1d712CcD6b09b25"
}
},
{
"chainId": 123,
"bundler": "https://fusetestnet-bundler-bundler.etherspot.io",
"chainId": 534352,
"bundler": "https://scroll-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xAF628C207513c5E51d894b3733056B8080634923"
}
"etherspotPaymasterAddress": "0xB3AD9B9B06c6016f81404ee8FcCD0526F018Cf0C"
},
"thresholdValue": "0.016"
},
{
"chainId": 31,
"bundler": "https://rootstocktestnet-bundler.etherspot.io",
"chainId": 11155111,
"bundler": "https://sepolia-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0x898c530A5fA37720DcF1843AeCC34b6B0cBaEB8a"
}
"etherspotPaymasterAddress": "0xcaDBADcFeD5530A49762DFc9d1d712CcD6b09b25"
},
"thresholdValue": "0.016"
},
{
"chainId": 421614,
"bundler": "https://arbitrumsepolia-bundler.etherspot.io",
"chainId": 28122024,
"bundler": "https://ancient8testnet-bundler.etherspot.io/",
"contracts": {
"etherspotPaymasterAddress": "0xe893A26DD53b325BffAacDfA224692EfF4C448c4"
}
},
"thresholdValue": "0.016"
},
{
"chainId": 11155420,
"bundler": "https://optimismsepolia-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xB3AD9B9B06c6016f81404ee8FcCD0526F018Cf0C"
}
},
{
"chainId": 84532,
"bundler": "https://basesepolia-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xe893A26DD53b325BffAacDfA224692EfF4C448c4"
}
},
{
"chainId": 30,
"bundler": "https://rootstock-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xe893A26dD53b325bFFaACdFA224692EFF4C448C4"
}
},
{
"chainId": 534352,
"bundler": "https://scroll-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xB3AD9B9B06c6016f81404ee8FcCD0526F018Cf0C"
}
},
{
"chainId": 28122024,
"bundler": "https://ancient8testnet-bundler.etherspot.io",
"contracts": {
"etherspotPaymasterAddress": "0xe893A26DD53b325BffAacDfA224692EfF4C448c4"
}
},
"thresholdValue": "21.8"
}
]
2 changes: 2 additions & 0 deletions backend/demo.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ ADMIN_WALLET_ADDRESS=
DEFAULT_INDEXER_ENDPOINT=http://localhost:3003
FEE_MARKUP=
ETHERSCAN_GAS_ORACLES=
DEFAULT_API_KEY=
WEBHOOK_URL=
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.2.0",
"version": "1.2.1",
"description": "ARKA - (Albanian for Cashier's case) is the first open source Paymaster as a service software",
"type": "module",
"directories": {
Expand Down
Loading
Loading