-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96c2f03
commit d61f001
Showing
10 changed files
with
208 additions
and
0 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
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,31 @@ | ||
import { Contracts } from '../types'; | ||
import * as celo from '@/assets/data/contracts/alfajores.json'; | ||
|
||
const contracts: Contracts = { | ||
merkleRedeem: '', | ||
merkleOrchard: '', | ||
merkleOrchardV2: '', | ||
multicall: celo.Multicall, | ||
authorizer: celo.Authorizer, | ||
vault: celo.Vault, | ||
weightedPoolFactory: celo.WeightedPoolFactory, | ||
stablePoolFactory: '', | ||
lidoRelayer: '', | ||
balancerHelpers: celo.BalancerHelpers, | ||
batchRelayer: '', | ||
gaugeFactory: '', | ||
balancerMinter: '', | ||
gaugeController: '', | ||
tokenAdmin: '', | ||
veBAL: '', | ||
veDelegationProxy: '', | ||
veBALHelpers: '', | ||
feeDistributor: '', | ||
feeDistributorDeprecated: '', | ||
faucet: '', | ||
gaugeRewardsHelper: '', | ||
gaugeWorkingBalanceHelper: '', | ||
gaugeCheckpointer: '', | ||
}; | ||
|
||
export default contracts; |
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,70 @@ | ||
import { Config } from '../types'; | ||
import keys from './keys'; | ||
import contracts from './contracts'; | ||
import pools from './pools'; | ||
import tokenlists from './tokenlists'; | ||
import tokens from './tokens'; | ||
import rateProviders from './rateProviders'; | ||
|
||
const config: Config = { | ||
key: '42220', | ||
chainId: 42220, | ||
chainName: 'Celo', | ||
name: 'Celo', | ||
shortName: 'Celo', | ||
slug: 'celo', | ||
network: 'celo', | ||
unknown: false, | ||
visibleInUI: true, | ||
testNetwork: false, | ||
rpc: `https://celo.infura.io/v3/${keys.infura}`, | ||
ws: ``, | ||
publicRpc: 'https://forno.celo.org', | ||
explorer: 'https://celoscan.io/', | ||
explorerName: 'Celoscan', | ||
subgraph: | ||
'https://api.studio.thegraph.com/query/63886/refi-celo/version/latest', | ||
balancerApi: '', | ||
poolsUrlV2: '', | ||
subgraphs: { | ||
main: [ | ||
'https://api.studio.thegraph.com/query/63886/refi-celo/version/latest', | ||
], | ||
aave: '', | ||
gauge: '', | ||
blocks: '', | ||
}, | ||
bridgeUrl: 'https://optics.app/', | ||
supportsEIP1559: false, | ||
supportsElementPools: false, | ||
blockTime: 5, | ||
nativeAsset: { | ||
name: 'Celo', | ||
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', | ||
symbol: 'CELO', | ||
decimals: 18, | ||
deeplinkId: 'ether', | ||
logoURI: 'tokens/celo.png', | ||
minTransactionBuffer: '0.05', | ||
}, | ||
thirdParty: { | ||
coingecko: { | ||
nativeAssetId: 'celo', | ||
platformId: 'celo', | ||
}, | ||
}, | ||
addresses: { | ||
...contracts, | ||
}, | ||
pools, | ||
tokens, | ||
keys, | ||
gauges: { | ||
type: 3, | ||
weight: 0, | ||
}, | ||
tokenlists, | ||
rateProviders, | ||
}; | ||
|
||
export default config; |
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,7 @@ | ||
import { Keys } from '../types'; | ||
|
||
const keys: Keys = { | ||
infura: 'dc513f59a9df4edca4329dc46c8295b6', | ||
}; | ||
|
||
export default keys; |
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,55 @@ | ||
import { CSP_ISSUE_POOL_IDS } from '@/constants/pool-lists/csp-issue'; | ||
import { Pools } from '@/types/pools'; | ||
import { Network } from '../types'; | ||
|
||
const pools: Pools = { | ||
IdsMap: {}, | ||
Pagination: { | ||
PerPage: 10, | ||
PerPool: 10, | ||
PerPoolInitial: 5, | ||
}, | ||
BoostsEnabled: false, | ||
DelegateOwner: '0xba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1ba1b', | ||
ZeroAddress: '0x0000000000000000000000000000000000000000', | ||
DynamicFees: { | ||
Gauntlet: [], | ||
}, | ||
BlockList: [''], | ||
IncludedPoolTypes: ['Weighted'], | ||
Stable: { | ||
AllowList: [], | ||
}, | ||
Investment: { | ||
AllowList: [], | ||
}, | ||
Weighted: { | ||
// Only effective after given timestamp here: usePool.ts#createdAfterTimestamp | ||
// see useDisabledJoinPool.ts#nonAllowedWeightedPoolAfterTimestamp for logic. | ||
AllowList: [], | ||
}, | ||
Factories: { | ||
'0xEB1055c017a1427726F01368C8247649c5A79bF9': 'weightedPool', // Weighted v4 | ||
// '0x8ea89804145c007e7d226001a96955ad53836087': 'composableStablePool', // ComposableStable V4 | ||
// '0x956ccab09898c0af2aca5e6c229c3ad4e93d9288': 'composableStablePool', | ||
// '0x6b1da720be2d11d95177ccfc40a917c2688f396c': 'erc4626Linear', // ERC4626 LinearPool | ||
// '0x5d56ea1b2595d2dbe4f5014b967c78ce75324f0c': 'gyroE', | ||
}, | ||
Stakable: { | ||
VotingGaugePools: [], | ||
AllowList: [], | ||
}, | ||
Metadata: {}, | ||
Deep: [], | ||
Deprecated: {}, | ||
GaugeMigration: {}, | ||
BoostedApr: [], | ||
DisabledJoins: [...CSP_ISSUE_POOL_IDS[Network.ZKEVM]], | ||
Risks: {}, | ||
Issues: { | ||
// [PoolWarning.CspPoolVulnWarning]: CSP_ISSUE_POOL_IDS[Network.ZKEVM], | ||
}, | ||
BrandedRedirect: {}, | ||
}; | ||
|
||
export default pools; |
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 @@ | ||
import { convertKeysToLowerCase } from '@/lib/utils/objects'; | ||
import { RateProviders } from '../types'; | ||
|
||
const rateProviders: RateProviders = { | ||
'*': { | ||
'0x0000000000000000000000000000000000000000': true, | ||
}, | ||
}; | ||
|
||
export default convertKeysToLowerCase(rateProviders); |
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,12 @@ | ||
import { TokenListURLMap } from '@/types/TokenList'; | ||
|
||
// TODO | ||
const tokenlists: TokenListURLMap = { | ||
Balancer: { | ||
Allowlisted: | ||
'https://raw.githubusercontent.com/fabianschu/tokenlists/main/generated/balancer.tokenlist.json', | ||
}, | ||
External: [], | ||
}; | ||
|
||
export default tokenlists; |
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,19 @@ | ||
import { TokenConstants } from '../types'; | ||
|
||
const tokens: TokenConstants = { | ||
Popular: { | ||
Symbols: ['CELO', 'cUSD', 'cEUR'], | ||
}, | ||
InitialSwapTokens: { | ||
input: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', | ||
output: '0x765de816845861e75a25fca122bb6898b8b1282a', // cUSD | ||
}, | ||
Addresses: { | ||
nativeAsset: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE', | ||
wNativeAsset: '0x471EcE3750Da237f93B8E339c536989b8978a438', // CELO | ||
WETH: '0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207', | ||
BAL: '', // TODO | ||
}, | ||
}; | ||
|
||
export default tokens; |
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
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