From 519eb0432a810aaa430eddb8312835b4fa8513c4 Mon Sep 17 00:00:00 2001 From: trmid Date: Fri, 19 May 2023 10:47:35 -0400 Subject: [PATCH] chore: update subgraph URIs and testnet contract blobs --- src/contracts/testnetContractsBlob.ts | 180 +++++++++++++------------- src/utils/constants.ts | 3 + 2 files changed, 93 insertions(+), 90 deletions(-) diff --git a/src/contracts/testnetContractsBlob.ts b/src/contracts/testnetContractsBlob.ts index c41d1d0..e268597 100644 --- a/src/contracts/testnetContractsBlob.ts +++ b/src/contracts/testnetContractsBlob.ts @@ -350,11 +350,11 @@ export const testnetContractsBlob: ContractsBlob = { minor: 0, patch: 0, }, - timestamp: "2023-05-08T21:06:18.541Z", + timestamp: "2023-05-18T04:02:53.558Z", contracts: [ { - chainId: 80001, - address: "0xb1426CB8adE6805c77bBF3eab1037735aeCbFdaf", + chainId: 11155111, + address: "0x27Ed5760Edc0128E3043F6cC0C3428E337396A66", version: { major: 1, minor: 0, @@ -705,8 +705,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0xC7a469F83849501F02ebb50522eDa43CcCcf47fB", + chainId: 11155111, + address: "0x177B14c6b571262057C3c30E3AE6bB044F62e55c", version: { major: 1, minor: 0, @@ -730,8 +730,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x2990cf846Ec4738A672273Df204Cd93196D98D5f", + chainId: 11155111, + address: "0x501B79e61843B3432E5B48d59CB7E6A93185e50C", version: { major: 1, minor: 0, @@ -1320,8 +1320,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0xA7E7dc95b2cF9311C8BE9a96e8E111CCf0408ADD", + chainId: 11155111, + address: "0x1977822061d8a394726803e2c2F6524a4E3e7Aff", version: { major: 1, minor: 0, @@ -1910,8 +1910,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x0e3CA10c2E675Ee8A93A1331d54981d99107E6e8", + chainId: 11155111, + address: "0xa577C58435e0334B5039f5e71cCb4a45641c3495", version: { major: 1, minor: 0, @@ -2500,8 +2500,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x14e8733e7f178c77ed99faa08BBf042100Da4268", + chainId: 11155111, + address: "0x3Bd2312250C67Ca96C442fe8490A27d24D70e41C", version: { major: 1, minor: 0, @@ -3090,8 +3090,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x5617889c4030DB7C3FAd0e4a015460e0430b454C", + chainId: 11155111, + address: "0xa4DE6Eb323dd2f8A8B4D07B6b295dC57Bb1dE30A", version: { major: 1, minor: 0, @@ -3680,8 +3680,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0xC138A7C89C357d8FA5A9b7CE775e612b766153e7", + chainId: 11155111, + address: "0x7cB28bB4cDbBA6F509D5b9022108138D662042Bf", version: { major: 1, minor: 0, @@ -4270,8 +4270,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0xf8ced175e56318FbAe092dBD112544B8D6D78777", + chainId: 11155111, + address: "0x690838d786FECb828909d993b0c5fcb8378047DF", version: { major: 1, minor: 0, @@ -5020,8 +5020,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0xA32C8f94191c9295634f0034eb2b0e2749e77974", + chainId: 11155111, + address: "0xa77D6014e77F294C3297a18363f9951b3d57Eb95", version: { major: 1, minor: 0, @@ -6351,8 +6351,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x6a339df45f9c09fabb6df4f5cbcb17db2b2a3c7d", + chainId: 11155111, + address: "0x2a3e8e7384598C21c6311a2d8D350CdFEE9d5B37", version: { major: 1, minor: 0, @@ -6614,8 +6614,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x1A113b4963dA9Cdd6880112Ab39398b0a90c2bba", + chainId: 11155111, + address: "0x37203b841CB891F0D263C3895Bf50866519B7746", version: { major: 1, minor: 0, @@ -6792,8 +6792,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x4780547675e4de6A1eB28EdF5c601dB47F8bb053", + chainId: 11155111, + address: "0x3dd2C38AfD2e620f3d1BE16e2a4E428cf0901cE3", version: { major: 1, minor: 0, @@ -6896,8 +6896,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x35462546B9df77cB58D6754D0c157a5C97359F76", + chainId: 11155111, + address: "0xCDccBa7e1a211142097378F384cD2C23BF398bdb", version: { major: 1, minor: 0, @@ -7870,8 +7870,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x7B124966988845f71C3F4E95D4470B88D3ad9cd4", + chainId: 11155111, + address: "0xCB1B037A0B5f2bcBC748279876C3aFe17bf549ce", version: { major: 1, minor: 0, @@ -8844,8 +8844,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x40C4c7f2F17FC885494739623232aC316C1e19Bf", + chainId: 11155111, + address: "0x6C0EA8742c930FF4D629852EeA9C270d90016dc7", version: { major: 1, minor: 0, @@ -9818,8 +9818,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x823eAD6629E1479eE0B9ec8D02f280B1c6861Ce0", + chainId: 11155111, + address: "0xc57e4fC79ab33DB6A7Bf26CC1Ca43511744F83CD", version: { major: 1, minor: 0, @@ -10792,8 +10792,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x4839D28b6F503a993f4b7efa4efA321b3a053e3F", + chainId: 11155111, + address: "0xAFCeDe71e62684De45D423712FeEeBB83863DfDE", version: { major: 1, minor: 0, @@ -11766,8 +11766,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0xF435d13235B7319dDBD8786d93d7567D6caeAad2", + chainId: 11155111, + address: "0x1B227Be74a34A604a2839cbc9A50e9dBcac4f371", version: { major: 1, minor: 0, @@ -12740,8 +12740,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x6874D4C36d45dbF401E14AF6d209Efe995c5555d", + chainId: 11155111, + address: "0xe34deF1114d7Bb0298636A2026D9Cf3D67F19FBd", version: { major: 1, minor: 0, @@ -13714,8 +13714,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x51F62701bD6C96242B1fe71f95C134079Ea27486", + chainId: 11155111, + address: "0x92a6e57583262bDEFBA0bf36f651F0f4a1856737", version: { major: 1, minor: 0, @@ -15439,14 +15439,14 @@ export const testnetContractsBlob: ContractsBlob = { ], tokens: [ { - chainId: 80001, - address: "0x51F62701bD6C96242B1fe71f95C134079Ea27486", + chainId: 11155111, + address: "0x92a6e57583262bDEFBA0bf36f651F0f4a1856737", name: "PoolTogether Dai Stablecoin Low Yield Prize Token", decimals: 18, symbol: "PTDAILYT", extensions: { underlyingAsset: { - address: "0x2990cf846Ec4738A672273Df204Cd93196D98D5f", + address: "0x501B79e61843B3432E5B48d59CB7E6A93185e50C", symbol: "DAI", name: "Dai Stablecoin", }, @@ -15455,8 +15455,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x2F7FFba4a9851632ca3701D77B5fb702CF5637Dc", + chainId: 11155111, + address: "0xc3680298C2d19647B1826ed4b96e566c8bB79896", version: { major: 1, minor: 0, @@ -15466,8 +15466,8 @@ export const testnetContractsBlob: ContractsBlob = { abi: liquidationPairAbi, }, { - chainId: 80001, - address: "0x627a1De1EFAA2BA36EC51cDd962910Fd12b14fFb", + chainId: 11155111, + address: "0x95990dd6C8A75b8Cd0D8f424aa216FCE8963Ad13", version: { major: 1, minor: 0, @@ -17191,14 +17191,14 @@ export const testnetContractsBlob: ContractsBlob = { ], tokens: [ { - chainId: 80001, - address: "0x627a1De1EFAA2BA36EC51cDd962910Fd12b14fFb", + chainId: 11155111, + address: "0x95990dd6C8A75b8Cd0D8f424aa216FCE8963Ad13", name: "PoolTogether Dai Stablecoin High Yield Prize Token", decimals: 18, symbol: "PTDAIHYT", extensions: { underlyingAsset: { - address: "0x2990cf846Ec4738A672273Df204Cd93196D98D5f", + address: "0x501B79e61843B3432E5B48d59CB7E6A93185e50C", symbol: "DAI", name: "Dai Stablecoin", }, @@ -17207,8 +17207,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x2d6b13E381BC1E36452d8cE7e90e91C05ce522BA", + chainId: 11155111, + address: "0x25CB358F05C59CEa05CE04B80Bf94D88982dD6B9", version: { major: 1, minor: 0, @@ -17218,8 +17218,8 @@ export const testnetContractsBlob: ContractsBlob = { abi: liquidationPairAbi, }, { - chainId: 80001, - address: "0x662748F2c5D269Ac30D8d35cA1C0C2C658371187", + chainId: 11155111, + address: "0xb7024b6b3c886519AFE27A6B19FAd4b7b916BA97", version: { major: 1, minor: 0, @@ -18943,14 +18943,14 @@ export const testnetContractsBlob: ContractsBlob = { ], tokens: [ { - chainId: 80001, - address: "0x662748F2c5D269Ac30D8d35cA1C0C2C658371187", + chainId: 11155111, + address: "0xb7024b6b3c886519AFE27A6B19FAd4b7b916BA97", name: "PoolTogether USD Coin Low Yield Prize Token", decimals: 6, symbol: "PTUSDCLYT", extensions: { underlyingAsset: { - address: "0xA7E7dc95b2cF9311C8BE9a96e8E111CCf0408ADD", + address: "0x1977822061d8a394726803e2c2F6524a4E3e7Aff", symbol: "USDC", name: "USD Coin", }, @@ -18959,8 +18959,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x5D06e7F848dC2590b7D468AF398491919CFcF83d", + chainId: 11155111, + address: "0x43E7fc801b84b3Bafe24F925BCdED9af22abD719", version: { major: 1, minor: 0, @@ -18970,8 +18970,8 @@ export const testnetContractsBlob: ContractsBlob = { abi: liquidationPairAbi, }, { - chainId: 80001, - address: "0x5Fa2cd94d3F68bbE1C7c2be5d555A3931339c500", + chainId: 11155111, + address: "0x871506aFB4adBC21Bb497c531954e6a10313Fd8A", version: { major: 1, minor: 0, @@ -20695,14 +20695,14 @@ export const testnetContractsBlob: ContractsBlob = { ], tokens: [ { - chainId: 80001, - address: "0x5Fa2cd94d3F68bbE1C7c2be5d555A3931339c500", + chainId: 11155111, + address: "0x871506aFB4adBC21Bb497c531954e6a10313Fd8A", name: "PoolTogether USD Coin High Yield Prize Token", decimals: 6, symbol: "PTUSDCHYT", extensions: { underlyingAsset: { - address: "0xA7E7dc95b2cF9311C8BE9a96e8E111CCf0408ADD", + address: "0x1977822061d8a394726803e2c2F6524a4E3e7Aff", symbol: "USDC", name: "USD Coin", }, @@ -20711,8 +20711,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x78b9a97277ce247AF55B81225299f60679ee4Ff8", + chainId: 11155111, + address: "0x6620958491d0dfE9009aa75b3FD01F89278859B6", version: { major: 1, minor: 0, @@ -20722,8 +20722,8 @@ export const testnetContractsBlob: ContractsBlob = { abi: liquidationPairAbi, }, { - chainId: 80001, - address: "0x12032CA7c271C1ca5F272040B15D1A19145c6323", + chainId: 11155111, + address: "0x64AB9296B1C7686407085c44A971e8C090eA768b", version: { major: 1, minor: 0, @@ -22447,14 +22447,14 @@ export const testnetContractsBlob: ContractsBlob = { ], tokens: [ { - chainId: 80001, - address: "0x12032CA7c271C1ca5F272040B15D1A19145c6323", + chainId: 11155111, + address: "0x64AB9296B1C7686407085c44A971e8C090eA768b", name: "PoolTogether Gemini dollar Prize Token", decimals: 2, symbol: "PTGUSDT", extensions: { underlyingAsset: { - address: "0x0e3CA10c2E675Ee8A93A1331d54981d99107E6e8", + address: "0xa577C58435e0334B5039f5e71cCb4a45641c3495", symbol: "GUSD", name: "Gemini dollar", }, @@ -22463,8 +22463,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x4AAB92738A7B340B40D97a2D92e934eee2378EC8", + chainId: 11155111, + address: "0xEAC5b78759A6Ef894223cb93603B0E9F0Bd36719", version: { major: 1, minor: 0, @@ -22474,8 +22474,8 @@ export const testnetContractsBlob: ContractsBlob = { abi: liquidationPairAbi, }, { - chainId: 80001, - address: "0xDdAA05da72f50b83af888988977E718805163579", + chainId: 11155111, + address: "0x65e08197357a23bB47De4337CfBb79497E01680e", version: { major: 1, minor: 0, @@ -24199,14 +24199,14 @@ export const testnetContractsBlob: ContractsBlob = { ], tokens: [ { - chainId: 80001, - address: "0xDdAA05da72f50b83af888988977E718805163579", + chainId: 11155111, + address: "0x65e08197357a23bB47De4337CfBb79497E01680e", name: "PoolTogether Wrapped BTC Prize Token", decimals: 8, symbol: "PTWBTCT", extensions: { underlyingAsset: { - address: "0x14e8733e7f178c77ed99faa08BBf042100Da4268", + address: "0x3Bd2312250C67Ca96C442fe8490A27d24D70e41C", symbol: "WBTC", name: "Wrapped BTC", }, @@ -24215,8 +24215,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0x571e4EF095F44991E052cE6037AFA02B050A1B75", + chainId: 11155111, + address: "0xE962F78da5b09342d9c45F7D02FaaCDbCc911696", version: { major: 1, minor: 0, @@ -24226,8 +24226,8 @@ export const testnetContractsBlob: ContractsBlob = { abi: liquidationPairAbi, }, { - chainId: 80001, - address: "0x224060242784caB6c0E2Ec72C29F3Eac945Be7b9", + chainId: 11155111, + address: "0xB18E7808201b34C3BD2930b26fc9Aae5C0d365EE", version: { major: 1, minor: 0, @@ -25951,14 +25951,14 @@ export const testnetContractsBlob: ContractsBlob = { ], tokens: [ { - chainId: 80001, - address: "0x224060242784caB6c0E2Ec72C29F3Eac945Be7b9", + chainId: 11155111, + address: "0xB18E7808201b34C3BD2930b26fc9Aae5C0d365EE", name: "PoolTogether Wrapped Ether Prize Token", decimals: 18, symbol: "PTWETHT", extensions: { underlyingAsset: { - address: "0x5617889c4030DB7C3FAd0e4a015460e0430b454C", + address: "0xa4DE6Eb323dd2f8A8B4D07B6b295dC57Bb1dE30A", symbol: "WETH", name: "Wrapped Ether", }, @@ -25967,8 +25967,8 @@ export const testnetContractsBlob: ContractsBlob = { ], }, { - chainId: 80001, - address: "0xecbdEF43C2d57F72501e3836D478151687c89C40", + chainId: 11155111, + address: "0xe51ef544E7115d0960B85f8EF728C500f28F7796", version: { major: 1, minor: 0, diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 24cdcc2..caecb92 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,14 +1,17 @@ const CHAIN_ID = { goerli: 5, mumbai: 80001, + sepolia: 11155111 }; export const TWAB_CONTROLLER_SUBGRAPH_URIS = { [CHAIN_ID.goerli]: `https://api.thegraph.com/subgraphs/name/pooltogether/v5-eth-goerli-twab-controller`, [CHAIN_ID.mumbai]: `https://api.thegraph.com/subgraphs/name/pooltogether/v5-polygon-mumbai-twab-control`, + [CHAIN_ID.sepolia]: `https://api.studio.thegraph.com/query/41211/v5-twab-controller-eth-sepolia/v0.0.1` }; export const PRIZE_POOL_SUBGRAPH_URIS = { [CHAIN_ID.goerli]: `https://api.thegraph.com/subgraphs/name/pooltogether/v5-eth-goerli-prize-pool`, [CHAIN_ID.mumbai]: `https://api.thegraph.com/subgraphs/name/pooltogether/v5-polygon-mumbai-prize-pool`, + [CHAIN_ID.sepolia]: `https://api.studio.thegraph.com/query/41211/v5-prize-pool-eth-sepolia/v0.0.1` };