Skip to content

Commit

Permalink
feat: Boosting on Base network (#4778)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Jun 19, 2024
1 parent c4d8c2f commit 97e67fa
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/helpers/alchemy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const NETWORKS = {
1: 'eth-mainnet',
11155111: 'eth-sepolia',
137: 'polygon-mainnet',
42161: 'arb-mainnet'
42161: 'arb-mainnet',
8453: 'base-mainnet'
};

function getApiUrl(networkId: number) {
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/boost/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const BOOST_VERSION = '0.0.1';
export const BOOST_CONTRACTS = {
'1': '0x8E8913197114c911F13cfBfCBBD138C1DC74B964',
'11155111': '0x8E8913197114c911F13cfBfCBBD138C1DC74B964',
'137': '0x8E8913197114c911F13cfBfCBBD138C1DC74B964'
'137': '0x8E8913197114c911F13cfBfCBBD138C1DC74B964',
'8453': '0x8E8913197114c911F13cfBfCBBD138C1DC74B964'
};

export const SUPPORTED_NETWORKS = Object.keys(BOOST_CONTRACTS);
Expand Down
4 changes: 3 additions & 1 deletion src/helpers/boost/subgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const SUBGRAPH_URLS = {
'11155111':
'https://api.studio.thegraph.com/query/23545/boost-sepolia/version/latest',
'137':
'https://api.studio.thegraph.com/query/23545/boost-polygon/version/latest'
'https://api.studio.thegraph.com/query/23545/boost-polygon/version/latest',
'8453':
'https://api.studio.thegraph.com/query/23545/boost-base/version/latest'
};

export async function getClaims(recipient: string) {
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/boost/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ export const EXCLUDED_TOKENS = [
symbol: 'default',
'1': '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
'11155111': '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
'137': '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'
'137': '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
'8453': '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'
},
{
symbol: 'USDT',
Expand Down
6 changes: 6 additions & 0 deletions src/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ export const CHAIN_CURRENCIES: Record<string, ChainCurrency> = {
decimals: 18,
contractAddress: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'
},
'8453': {
name: 'Ether',
symbol: 'ETH',
decimals: 18,
contractAddress: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'
},
'11155111': {
name: 'Sepolia Ether',
symbol: 'SepoliaETH',
Expand Down

0 comments on commit 97e67fa

Please sign in to comment.