Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
refactor: add more supported chains in Utils
Browse files Browse the repository at this point in the history
  • Loading branch information
jtourkos committed Apr 22, 2024
1 parent f470a1d commit b3c9434
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 1 deletion.
72 changes: 72 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,78 @@ namespace Utils {
REPO_DRIVER_LOGIC: '0x7A9a2a29B8d98922Ea2E70c73B123e36C95d1515',
REPO_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
SUBGRAPH_URL: 'https://api.studio.thegraph.com/query/47690/drips-v2-on-goerli/version/latest'
},
// Polygon Amoy
80002: {
CHAIN: 'amoy',
DEPLOYMENT_TIME: '2024-04-19T16:33:32+00:00',
COMMIT_HASH: '8f327ad07dee6ef3487a86d29a63b6e5ec0bd0b1',
WALLET: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
DETERMINISTIC_DEPLOYER: '0x4e59b44847b379578588920cA78FbF26c0B4956C',
CREATE3_FACTORY: '0x6aa3d87e99286946161dca02b97c5806fc5ed46f',
DRIPS_DEPLOYER_SALT: 'DripsDeployerTest2',
DRIPS_DEPLOYER: '0xc1b65B81964B3C75876E71119C11e1e8e69949C7',
DRIPS: '0xeebCd570e50fa31bcf6eF10f989429C87C3A6981',
DRIPS_CYCLE_SECONDS: '604800',
DRIPS_LOGIC: '0x6483776ad2b3208c79AbA7A77193409730DDEc60',
DRIPS_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
CALLER: '0x5C7c5AA20b15e13229771CB7De36Fe1F54238372',
ADDRESS_DRIVER: '0x004310a6d47893Dd6e443cbE471c24aDA1e6c619',
ADDRESS_DRIVER_ID: '0',
ADDRESS_DRIVER_LOGIC: '0x6A29959d0926617663B0A44990A7d5931081CDB9',
ADDRESS_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
NFT_DRIVER: '0xDafd9Ab96E62941808caa115D184D30A200FA777',
NFT_DRIVER_ID: '1',
NFT_DRIVER_LOGIC: '0xa7EAa16246c80741616758C1A5991a0C3bbC6b17',
NFT_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
IMMUTABLE_SPLITS_DRIVER: '0x65A48270e51A7aa901fD8fc42ab9cDddb50aff05',
IMMUTABLE_SPLITS_DRIVER_ID: '2',
IMMUTABLE_SPLITS_DRIVER_LOGIC: '0x20d8e5F5D0a2243Ea25883ec06F4907e59C60Fa1',
IMMUTABLE_SPLITS_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
REPO_DRIVER: '0x54372850Db72915Fd9C5EC745683EB607b4a8642',
REPO_DRIVER_ID: '3',
REPO_DRIVER_ANYAPI_OPERATOR: '0xA2af9b58B09223108f19D14d2A751d6bcad346F8',
REPO_DRIVER_ANYAPI_JOB_ID: '00000000000000000000000000000000',
REPO_DRIVER_ANYAPI_DEFAULT_FEE: '10000000000000000',
REPO_DRIVER_LOGIC: '0x7C6cCB07A4Cc03e3873E8CD1E7f3633a11f6AcF7',
REPO_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
SUBGRAPH_URL: 'https://api.studio.thegraph.com/query/47690/drips-on-amoy/version/latest'
},
// Optimism Sepolia
11155420: {
CHAIN: 'optimism-sepolia',
DEPLOYMENT_TIME: '2024-04-19T17:32:23+00:00',
COMMIT_HASH: '8f327ad07dee6ef3487a86d29a63b6e5ec0bd0b1',
WALLET: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
DETERMINISTIC_DEPLOYER: '0x4e59b44847b379578588920cA78FbF26c0B4956C',
CREATE3_FACTORY: '0x6aa3d87e99286946161dca02b97c5806fc5ed46f',
DRIPS_DEPLOYER_SALT: 'DripsDeployerTest1',
DRIPS_DEPLOYER: '0xa6030dD9D31FA2333Ee9f7feaCa6FB23c42a1d96',
DRIPS: '0x74A32a38D945b9527524900429b083547DeB9bF4',
DRIPS_CYCLE_SECONDS: '604800',
DRIPS_LOGIC: '0xf103BDDB82B6177e5fE53c50351E33F4f3df955B',
DRIPS_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
CALLER: '0x09e04Cb8168bd0E8773A79Cc2099f19C46776Fee',
ADDRESS_DRIVER: '0x70E1E1437AeFe8024B6780C94490662b45C3B567',
ADDRESS_DRIVER_ID: '0',
ADDRESS_DRIVER_LOGIC: '0x298F37fFd4B31d216B8954968cEe7EC5273CB891',
ADDRESS_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
NFT_DRIVER: '0xdC773a04C0D6EFdb80E7dfF961B6a7B063a28B44',
NFT_DRIVER_ID: '1',
NFT_DRIVER_LOGIC: '0xa6bD78d98720E2eA4B3E2887be7bA212C3aC5977',
NFT_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
IMMUTABLE_SPLITS_DRIVER: '0xC3C1955bb50AdA4dC8a55aBC6d4d2a39242685c1',
IMMUTABLE_SPLITS_DRIVER_ID: '2',
IMMUTABLE_SPLITS_DRIVER_LOGIC: '0xf5573880ECB9975E1645C8D18ef1A0393c685CC1',
IMMUTABLE_SPLITS_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
REPO_DRIVER: '0xa71bdf410D48d4AA9aE1517A69D7E1Ef0c179b2B',
REPO_DRIVER_ID: '3',
REPO_DRIVER_ANYAPI_OPERATOR: '0xc553E957490f4E076c1724C78997923fd20890f6',
REPO_DRIVER_ANYAPI_JOB_ID: '00000000000000000000000000000000',
REPO_DRIVER_ANYAPI_DEFAULT_FEE: '10000000000000000',
REPO_DRIVER_LOGIC: '0x7A9a2a29B8d98922Ea2E70c73B123e36C95d1515',
REPO_DRIVER_ADMIN: '0x341a08926dCa7fa7D135F96E4d76b696e5f6d38d',
SUBGRAPH_URL: 'https://api.studio.thegraph.com/query/47690/drips-on-optimism-sepolia/version/latest'
}
};

Expand Down
2 changes: 1 addition & 1 deletion tests/utils.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ describe('Utils', () => {
describe('networkConfig', () => {
it('should export only unique and supported chain IDs', () => {
// Arrange
const chainIds = [1, 11155111, 5];
const chainIds = [1, 11155111, 5, 80002, 11155420];

// Assert
assert.includeMembers(Utils.Network.SUPPORTED_CHAINS as number[], chainIds);
Expand Down

0 comments on commit b3c9434

Please sign in to comment.