From b562e693dd674b9d7ba4700fbb42174c7e1717b5 Mon Sep 17 00:00:00 2001 From: TTNguyenDev Date: Fri, 1 Mar 2024 20:11:43 +0700 Subject: [PATCH 1/5] feat: support sepolia --- packages/web-app/hooks/useConstants.tsx | 10 +- packages/web-app/hooks/useTokenList.tsx | 127 ++++++++++++--------- packages/web-app/lib/connectors.tsx | 90 ++++++++------- packages/web-app/lib/constants/index.tsx | 33 +++--- packages/web-app/lib/constants/sepolia.tsx | 10 ++ 5 files changed, 155 insertions(+), 115 deletions(-) create mode 100644 packages/web-app/lib/constants/sepolia.tsx diff --git a/packages/web-app/hooks/useConstants.tsx b/packages/web-app/hooks/useConstants.tsx index b4c1a0cd..796d088d 100644 --- a/packages/web-app/hooks/useConstants.tsx +++ b/packages/web-app/hooks/useConstants.tsx @@ -3,11 +3,11 @@ import { useNetwork } from "wagmi"; import getConstants, { Constants } from "../lib/constants"; export const useConstants = (): Constants => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const constants = useMemo(() => { - return getConstants(chain?.id ?? 1); - }, [chain]); + const constants = useMemo(() => { + return getConstants(chain?.id || 1); + }, [chain]); - return constants; + return constants; }; diff --git a/packages/web-app/hooks/useTokenList.tsx b/packages/web-app/hooks/useTokenList.tsx index 81a2a281..3f0208d8 100644 --- a/packages/web-app/hooks/useTokenList.tsx +++ b/packages/web-app/hooks/useTokenList.tsx @@ -3,70 +3,91 @@ import { useNetwork } from "wagmi"; import { Token } from "../components/agreementCreate/context/types"; const mainnetTokens = [ - { - name: "Nation3", - symbol: "NATION", - address: "0x333A4823466879eeF910A04D473505da62142069", - decimals: 18, - icon: "/tokens/nation3.png", - }, - { - name: "Wrapped Ether", - symbol: "WETH", - address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", - decimals: 18, - icon: "/tokens/weth.png", - }, - { - name: "Dai Stablecoin", - symbol: "DAI", - address: "0x6B175474E89094C44Da98b954EedeAC495271d0F", - decimals: 18, - icon: "/tokens/dai.png", - }, - { - name: "Aragon Network Token", - symbol: "ANT", - address: "0xa117000000f279D81A1D3cc75430fAA017FA5A2e", - decimals: 18, - icon: "/tokens/ant.png", - }, + { + name: "Nation3", + symbol: "NATION", + address: "0x333A4823466879eeF910A04D473505da62142069", + decimals: 18, + icon: "/tokens/nation3.png", + }, + { + name: "Wrapped Ether", + symbol: "WETH", + address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + decimals: 18, + icon: "/tokens/weth.png", + }, + { + name: "Dai Stablecoin", + symbol: "DAI", + address: "0x6B175474E89094C44Da98b954EedeAC495271d0F", + decimals: 18, + icon: "/tokens/dai.png", + }, + { + name: "Aragon Network Token", + symbol: "ANT", + address: "0xa117000000f279D81A1D3cc75430fAA017FA5A2e", + decimals: 18, + icon: "/tokens/ant.png", + }, +]; + +const sepoliaTokens = [ + { + name: "Nation3", + symbol: "NATION", + address: "0x23Ca3002706b71a440860E3cf8ff64679A00C9d7", + decimals: 18, + icon: "/tokens/nation3.png", + }, + { + name: "Wrapped Ether", + symbol: "WETH", + address: "0x7b79995e5f793a07bc00c21412e50ecae098e7f9", + decimals: 18, + icon: "/tokens/weth.png", + }, ]; const empty = { - name: "?", - symbol: "?", - address: "", - decimals: 18, - icon: "", + name: "?", + symbol: "?", + address: "", + decimals: 18, + icon: "", }; export const useTokenList = (): Token[] => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const tokens = useMemo(() => { - switch (chain?.id) { - case 1: - return mainnetTokens; - default: - return mainnetTokens; - } - }, [chain]); + const tokens = useMemo(() => { + switch (chain?.id) { + case 1: + return mainnetTokens; + case 11155111: + return sepoliaTokens; + default: + return mainnetTokens; + } + }, [chain]); - return tokens; + return tokens; }; export const useFindToken = (tokenSymbol: string): Token => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const token = useMemo(() => { - switch (chain?.id) { - case 1: - return mainnetTokens.find((token) => token.symbol === tokenSymbol); - default: - return mainnetTokens.find((token) => token.symbol === tokenSymbol); - } - }, [chain, tokenSymbol]); + const token = useMemo(() => { + switch (chain?.id) { + case 1: + return mainnetTokens.find((token) => token.symbol === tokenSymbol); + case 11155111: + return mainnetTokens.find((token) => token.symbol === tokenSymbol); + default: + return mainnetTokens.find((token) => token.symbol === tokenSymbol); + } + }, [chain, tokenSymbol]); - return token ? token : empty; + return token ? token : empty; }; diff --git a/packages/web-app/lib/connectors.tsx b/packages/web-app/lib/connectors.tsx index 3cef35d5..d6a6acd3 100644 --- a/packages/web-app/lib/connectors.tsx +++ b/packages/web-app/lib/connectors.tsx @@ -1,63 +1,69 @@ import { getDefaultWallets } from "@rainbow-me/rainbowkit"; import { providers } from "ethers"; import { Chain, configureChains } from "wagmi"; -import { mainnet } from "wagmi/chains"; +import { mainnet, sepolia } from "wagmi/chains"; import { publicProvider } from "wagmi/providers/public"; + type FallbackProviderConfig = Omit; const customAlchemyProvider = ({ priority, stallTimeout, weight }: FallbackProviderConfig) => { - return (chain: Chain) => { - const apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY; //mainnet - if (!apiKey || !chain.rpcUrls.alchemy) return null; - - return { - chain: { - ...chain, - rpcUrls: { - ...chain.rpcUrls, - default: `${chain.rpcUrls.alchemy}/${apiKey}`, - }, - } as Chain, - provider: () => { - const provider = new providers.AlchemyProvider( - { - chainId: chain.id, - name: chain.network, - ensAddress: chain.ens?.address, - }, - apiKey, - ); - return Object.assign(provider, { priority, stallTimeout, weight }); - }, - webSocketProvider: () => - new providers.AlchemyWebSocketProvider( - { - chainId: chain.id, - name: chain.network, - ensAddress: chain.ens?.address, - }, - apiKey, - ), - }; - }; + + return (chain: Chain) => { + let apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY; + if (chain?.id == 11155111) { + apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY_SEPOLIA; + + } + if (!apiKey || !chain.rpcUrls.alchemy) return null; + + return { + chain: { + ...chain, + rpcUrls: { + ...chain.rpcUrls, + default: `${chain.rpcUrls.alchemy}/${apiKey}`, + }, + } as Chain, + provider: () => { + const provider = new providers.AlchemyProvider( + { + chainId: chain.id, + name: chain.network, + ensAddress: chain.ens?.address, + }, + apiKey, + ); + return Object.assign(provider, { priority, stallTimeout, weight }); + }, + webSocketProvider: () => + new providers.AlchemyWebSocketProvider( + { + chainId: chain.id, + name: chain.network, + ensAddress: chain.ens?.address, + }, + apiKey, + ), + }; + }; }; export const providersToUse = () => { - const providers = [customAlchemyProvider({ priority: 0 }), publicProvider({ priority: 1 })]; - return providers; + const providers = [customAlchemyProvider({ priority: 0 }), publicProvider({ priority: 1 })]; + return providers; }; export const chainsToUse = () => { - return [mainnet]; + return [mainnet, sepolia]; }; export const { chains, provider, webSocketProvider } = configureChains( - chainsToUse(), - providersToUse(), + chainsToUse(), + providersToUse(), ); export const { connectors } = getDefaultWallets({ - appName: "Nation3 Court App", - chains, + appName: "Nation3 Court App", + chains, }); diff --git a/packages/web-app/lib/constants/index.tsx b/packages/web-app/lib/constants/index.tsx index 4277ebc2..2de2ca98 100644 --- a/packages/web-app/lib/constants/index.tsx +++ b/packages/web-app/lib/constants/index.tsx @@ -1,26 +1,29 @@ import { BigNumber } from "ethers"; import * as mainnet from "./mainnet"; +import * as sepolia from "./sepolia"; -export { mainnet }; +export { mainnet, sepolia }; export interface Constants { - permit2Address: `0x${string}`; - NATION: `0x${string}`; - frameworkAddress: `0x${string}`; - arbitratorAddress: `0x${string}`; - cohortAddress: `0x${string}`; - safeTxServiceUrl: string; - subgraphURI: string | undefined; - appealCost: BigNumber | undefined; + permit2Address: `0x${string}`; + NATION: `0x${string}`; + frameworkAddress: `0x${string}`; + arbitratorAddress: `0x${string}`; + cohortAddress: `0x${string}`; + safeTxServiceUrl: string; + subgraphURI: string | undefined; + appealCost: BigNumber | undefined; } const constants = (chainId: number) => { - switch (chainId) { - case 1: - return { ...mainnet }; - default: - return { ...mainnet }; - } + switch (chainId) { + case 1: + return { ...mainnet }; + case 11155111: + return { ...sepolia }; + default: + return { ...mainnet }; + } }; export default constants; diff --git a/packages/web-app/lib/constants/sepolia.tsx b/packages/web-app/lib/constants/sepolia.tsx new file mode 100644 index 00000000..b784e925 --- /dev/null +++ b/packages/web-app/lib/constants/sepolia.tsx @@ -0,0 +1,10 @@ +import { BigNumber } from "ethers"; + +export const permit2Address = "0x000000000022D473030F116dDEE9F6B43aC78BA3"; +export const NATION = "0x23Ca3002706b71a440860E3cf8ff64679A00C9d7"; +export const frameworkAddress = "0xD96aA6e2568f4e9632D2A5234Bb8410ca7609a27"; +export const arbitratorAddress = "0xBe67cEdCD1FE38aac8a5781A51250FDeFB344E6C"; +export const cohortAddress = "0xfbb66bc799308435ed2a0e0c0ac3ad1d46749b7b"; +export const safeTxServiceUrl = "https://safe-transaction-sepolia.safe.global"; +export const subgraphURI = process.env.NEXT_PUBLIC_GRAPH_API_URL_SEPOLIA; +export const appealCost = BigNumber.from("1000000000000000000"); From 44615a327326fabfd562ffc96f69f77562ce6f98 Mon Sep 17 00:00:00 2001 From: TTNguyenDev Date: Fri, 1 Mar 2024 20:13:58 +0700 Subject: [PATCH 2/5] lint --- packages/web-app/hooks/useConstants.tsx | 10 +- packages/web-app/hooks/useTokenList.tsx | 142 +++++++++++------------ packages/web-app/lib/connectors.tsx | 89 +++++++------- packages/web-app/lib/constants/index.tsx | 32 ++--- 4 files changed, 135 insertions(+), 138 deletions(-) diff --git a/packages/web-app/hooks/useConstants.tsx b/packages/web-app/hooks/useConstants.tsx index 796d088d..a45e519f 100644 --- a/packages/web-app/hooks/useConstants.tsx +++ b/packages/web-app/hooks/useConstants.tsx @@ -3,11 +3,11 @@ import { useNetwork } from "wagmi"; import getConstants, { Constants } from "../lib/constants"; export const useConstants = (): Constants => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const constants = useMemo(() => { - return getConstants(chain?.id || 1); - }, [chain]); + const constants = useMemo(() => { + return getConstants(chain?.id || 1); + }, [chain]); - return constants; + return constants; }; diff --git a/packages/web-app/hooks/useTokenList.tsx b/packages/web-app/hooks/useTokenList.tsx index 3f0208d8..8bcde795 100644 --- a/packages/web-app/hooks/useTokenList.tsx +++ b/packages/web-app/hooks/useTokenList.tsx @@ -3,91 +3,91 @@ import { useNetwork } from "wagmi"; import { Token } from "../components/agreementCreate/context/types"; const mainnetTokens = [ - { - name: "Nation3", - symbol: "NATION", - address: "0x333A4823466879eeF910A04D473505da62142069", - decimals: 18, - icon: "/tokens/nation3.png", - }, - { - name: "Wrapped Ether", - symbol: "WETH", - address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", - decimals: 18, - icon: "/tokens/weth.png", - }, - { - name: "Dai Stablecoin", - symbol: "DAI", - address: "0x6B175474E89094C44Da98b954EedeAC495271d0F", - decimals: 18, - icon: "/tokens/dai.png", - }, - { - name: "Aragon Network Token", - symbol: "ANT", - address: "0xa117000000f279D81A1D3cc75430fAA017FA5A2e", - decimals: 18, - icon: "/tokens/ant.png", - }, + { + name: "Nation3", + symbol: "NATION", + address: "0x333A4823466879eeF910A04D473505da62142069", + decimals: 18, + icon: "/tokens/nation3.png", + }, + { + name: "Wrapped Ether", + symbol: "WETH", + address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + decimals: 18, + icon: "/tokens/weth.png", + }, + { + name: "Dai Stablecoin", + symbol: "DAI", + address: "0x6B175474E89094C44Da98b954EedeAC495271d0F", + decimals: 18, + icon: "/tokens/dai.png", + }, + { + name: "Aragon Network Token", + symbol: "ANT", + address: "0xa117000000f279D81A1D3cc75430fAA017FA5A2e", + decimals: 18, + icon: "/tokens/ant.png", + }, ]; const sepoliaTokens = [ - { - name: "Nation3", - symbol: "NATION", - address: "0x23Ca3002706b71a440860E3cf8ff64679A00C9d7", - decimals: 18, - icon: "/tokens/nation3.png", - }, - { - name: "Wrapped Ether", - symbol: "WETH", - address: "0x7b79995e5f793a07bc00c21412e50ecae098e7f9", - decimals: 18, - icon: "/tokens/weth.png", - }, + { + name: "Nation3", + symbol: "NATION", + address: "0x23Ca3002706b71a440860E3cf8ff64679A00C9d7", + decimals: 18, + icon: "/tokens/nation3.png", + }, + { + name: "Wrapped Ether", + symbol: "WETH", + address: "0x7b79995e5f793a07bc00c21412e50ecae098e7f9", + decimals: 18, + icon: "/tokens/weth.png", + }, ]; const empty = { - name: "?", - symbol: "?", - address: "", - decimals: 18, - icon: "", + name: "?", + symbol: "?", + address: "", + decimals: 18, + icon: "", }; export const useTokenList = (): Token[] => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const tokens = useMemo(() => { - switch (chain?.id) { - case 1: - return mainnetTokens; - case 11155111: - return sepoliaTokens; - default: - return mainnetTokens; - } - }, [chain]); + const tokens = useMemo(() => { + switch (chain?.id) { + case 1: + return mainnetTokens; + case 11155111: + return sepoliaTokens; + default: + return mainnetTokens; + } + }, [chain]); - return tokens; + return tokens; }; export const useFindToken = (tokenSymbol: string): Token => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const token = useMemo(() => { - switch (chain?.id) { - case 1: - return mainnetTokens.find((token) => token.symbol === tokenSymbol); - case 11155111: - return mainnetTokens.find((token) => token.symbol === tokenSymbol); - default: - return mainnetTokens.find((token) => token.symbol === tokenSymbol); - } - }, [chain, tokenSymbol]); + const token = useMemo(() => { + switch (chain?.id) { + case 1: + return mainnetTokens.find((token) => token.symbol === tokenSymbol); + case 11155111: + return mainnetTokens.find((token) => token.symbol === tokenSymbol); + default: + return mainnetTokens.find((token) => token.symbol === tokenSymbol); + } + }, [chain, tokenSymbol]); - return token ? token : empty; + return token ? token : empty; }; diff --git a/packages/web-app/lib/connectors.tsx b/packages/web-app/lib/connectors.tsx index d6a6acd3..d34e1c1c 100644 --- a/packages/web-app/lib/connectors.tsx +++ b/packages/web-app/lib/connectors.tsx @@ -4,66 +4,63 @@ import { Chain, configureChains } from "wagmi"; import { mainnet, sepolia } from "wagmi/chains"; import { publicProvider } from "wagmi/providers/public"; - type FallbackProviderConfig = Omit; const customAlchemyProvider = ({ priority, stallTimeout, weight }: FallbackProviderConfig) => { + return (chain: Chain) => { + let apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY; + if (chain?.id == 11155111) { + apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY_SEPOLIA; + } + if (!apiKey || !chain.rpcUrls.alchemy) return null; - return (chain: Chain) => { - let apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY; - if (chain?.id == 11155111) { - apiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY_SEPOLIA; - - } - if (!apiKey || !chain.rpcUrls.alchemy) return null; - - return { - chain: { - ...chain, - rpcUrls: { - ...chain.rpcUrls, - default: `${chain.rpcUrls.alchemy}/${apiKey}`, - }, - } as Chain, - provider: () => { - const provider = new providers.AlchemyProvider( - { - chainId: chain.id, - name: chain.network, - ensAddress: chain.ens?.address, - }, - apiKey, - ); - return Object.assign(provider, { priority, stallTimeout, weight }); - }, - webSocketProvider: () => - new providers.AlchemyWebSocketProvider( - { - chainId: chain.id, - name: chain.network, - ensAddress: chain.ens?.address, - }, - apiKey, - ), - }; - }; + return { + chain: { + ...chain, + rpcUrls: { + ...chain.rpcUrls, + default: `${chain.rpcUrls.alchemy}/${apiKey}`, + }, + } as Chain, + provider: () => { + const provider = new providers.AlchemyProvider( + { + chainId: chain.id, + name: chain.network, + ensAddress: chain.ens?.address, + }, + apiKey, + ); + return Object.assign(provider, { priority, stallTimeout, weight }); + }, + webSocketProvider: () => + new providers.AlchemyWebSocketProvider( + { + chainId: chain.id, + name: chain.network, + ensAddress: chain.ens?.address, + }, + apiKey, + ), + }; + }; }; export const providersToUse = () => { - const providers = [customAlchemyProvider({ priority: 0 }), publicProvider({ priority: 1 })]; - return providers; + const providers = [customAlchemyProvider({ priority: 0 }), publicProvider({ priority: 1 })]; + return providers; }; export const chainsToUse = () => { - return [mainnet, sepolia]; + return [mainnet, sepolia]; }; export const { chains, provider, webSocketProvider } = configureChains( - chainsToUse(), - providersToUse(), + chainsToUse(), + providersToUse(), ); export const { connectors } = getDefaultWallets({ - appName: "Nation3 Court App", - chains, + appName: "Nation3 Court App", + chains, }); diff --git a/packages/web-app/lib/constants/index.tsx b/packages/web-app/lib/constants/index.tsx index 2de2ca98..b9e1d21d 100644 --- a/packages/web-app/lib/constants/index.tsx +++ b/packages/web-app/lib/constants/index.tsx @@ -5,25 +5,25 @@ import * as sepolia from "./sepolia"; export { mainnet, sepolia }; export interface Constants { - permit2Address: `0x${string}`; - NATION: `0x${string}`; - frameworkAddress: `0x${string}`; - arbitratorAddress: `0x${string}`; - cohortAddress: `0x${string}`; - safeTxServiceUrl: string; - subgraphURI: string | undefined; - appealCost: BigNumber | undefined; + permit2Address: `0x${string}`; + NATION: `0x${string}`; + frameworkAddress: `0x${string}`; + arbitratorAddress: `0x${string}`; + cohortAddress: `0x${string}`; + safeTxServiceUrl: string; + subgraphURI: string | undefined; + appealCost: BigNumber | undefined; } const constants = (chainId: number) => { - switch (chainId) { - case 1: - return { ...mainnet }; - case 11155111: - return { ...sepolia }; - default: - return { ...mainnet }; - } + switch (chainId) { + case 1: + return { ...mainnet }; + case 11155111: + return { ...sepolia }; + default: + return { ...mainnet }; + } }; export default constants; From 2a444dd4db67da461686f3038841e5f620ce70c4 Mon Sep 17 00:00:00 2001 From: TTNguyenDev Date: Fri, 1 Mar 2024 20:21:02 +0700 Subject: [PATCH 3/5] fix: default value --- packages/web-app/hooks/useConstants.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/web-app/hooks/useConstants.tsx b/packages/web-app/hooks/useConstants.tsx index a45e519f..17ed2611 100644 --- a/packages/web-app/hooks/useConstants.tsx +++ b/packages/web-app/hooks/useConstants.tsx @@ -3,11 +3,11 @@ import { useNetwork } from "wagmi"; import getConstants, { Constants } from "../lib/constants"; export const useConstants = (): Constants => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const constants = useMemo(() => { - return getConstants(chain?.id || 1); - }, [chain]); + const constants = useMemo(() => { + return getConstants(chain?.id ?? 1); + }, [chain]); - return constants; + return constants; }; From 7d4d30d3e655f83041f4ef5a0619eff18b24f035 Mon Sep 17 00:00:00 2001 From: TTNguyenDev Date: Fri, 1 Mar 2024 20:28:41 +0700 Subject: [PATCH 4/5] lint --- packages/web-app/hooks/useConstants.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/web-app/hooks/useConstants.tsx b/packages/web-app/hooks/useConstants.tsx index 17ed2611..b4c1a0cd 100644 --- a/packages/web-app/hooks/useConstants.tsx +++ b/packages/web-app/hooks/useConstants.tsx @@ -3,11 +3,11 @@ import { useNetwork } from "wagmi"; import getConstants, { Constants } from "../lib/constants"; export const useConstants = (): Constants => { - const { chain } = useNetwork(); + const { chain } = useNetwork(); - const constants = useMemo(() => { - return getConstants(chain?.id ?? 1); - }, [chain]); + const constants = useMemo(() => { + return getConstants(chain?.id ?? 1); + }, [chain]); - return constants; + return constants; }; From 2da7baaa1804e93cc0d2ece199abf74e38b661a3 Mon Sep 17 00:00:00 2001 From: TTNguyenDev Date: Sat, 2 Mar 2024 09:38:08 +0700 Subject: [PATCH 5/5] feat: update cohort address --- packages/web-app/lib/constants/mainnet.tsx | 2 +- packages/web-app/lib/constants/sepolia.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web-app/lib/constants/mainnet.tsx b/packages/web-app/lib/constants/mainnet.tsx index 16d0d5e2..8cd21065 100644 --- a/packages/web-app/lib/constants/mainnet.tsx +++ b/packages/web-app/lib/constants/mainnet.tsx @@ -4,7 +4,7 @@ export const permit2Address = "0x000000000022D473030F116dDEE9F6B43aC78BA3"; export const NATION = "0x333A4823466879eeF910A04D473505da62142069"; export const frameworkAddress = "0x2e41383506a6715da7dd0985dc401fe720e473c0"; export const arbitratorAddress = "0x1dBEFF62DFa113f7254AaB5772F1AC6E66F94e7e"; -export const cohortAddress = "0xee8F0B89983aF83598E6Fb503B9f6e5eaf23b243"; +export const cohortAddress = "0xee8F0B89983aF83598E6Fb503B9f6e5eaf23b243"; //GnosisSafeProxy export const safeTxServiceUrl = "https://safe-transaction-mainnet.safe.global"; export const subgraphURI = process.env.NEXT_PUBLIC_GRAPH_API_URL; export const appealCost = BigNumber.from("1000000000000000000"); diff --git a/packages/web-app/lib/constants/sepolia.tsx b/packages/web-app/lib/constants/sepolia.tsx index b784e925..da9c6a97 100644 --- a/packages/web-app/lib/constants/sepolia.tsx +++ b/packages/web-app/lib/constants/sepolia.tsx @@ -4,7 +4,7 @@ export const permit2Address = "0x000000000022D473030F116dDEE9F6B43aC78BA3"; export const NATION = "0x23Ca3002706b71a440860E3cf8ff64679A00C9d7"; export const frameworkAddress = "0xD96aA6e2568f4e9632D2A5234Bb8410ca7609a27"; export const arbitratorAddress = "0xBe67cEdCD1FE38aac8a5781A51250FDeFB344E6C"; -export const cohortAddress = "0xfbb66bc799308435ed2a0e0c0ac3ad1d46749b7b"; +export const cohortAddress = "0x2F957C3D949b4e3967E1ddF646614b77BF46057e"; //GnosisSafeProxy export const safeTxServiceUrl = "https://safe-transaction-sepolia.safe.global"; export const subgraphURI = process.env.NEXT_PUBLIC_GRAPH_API_URL_SEPOLIA; export const appealCost = BigNumber.from("1000000000000000000");