Skip to content

Commit

Permalink
new base-sepolia deployment @ 0x781EBE3865b0911D6989854dCD29DF3cd81168eB
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-rizzo committed Nov 21, 2024
1 parent 5aca432 commit 4351279
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
13 changes: 7 additions & 6 deletions dapp-v1/src/helpers/ProtocolDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ export const MAGNIFY_CASH_GOERLI_GRAPH: string =
export const MAGNIFY_CASH_MUMBAI_GRAPH: string =
"https://api.studio.thegraph.com/query/44194/nftyfinance-mumbai/0.0.7";
export const MAGNIFY_CASH_BASE_SEPOLIA_GRAPH: string =
"https://api.ghostlogs.xyz/gg/pub/d94bdadc-4cf4-44a1-9888-c8be5ab887fc/ghostgraph";
"https://api.ghostlogs.xyz/gg/pub/2bec3e31-f136-4c36-9e5b-ef735ce834ba/ghostgraph";
export const MAGNIFY_CASH_BASE_MAINNET_GRAPH: string =
"https://api.ghostlogs.xyz/gg/pub/8bf67182-75f2-41e8-ae10-bd4d26d9c91e/ghostgraph";
export const MAGNIFY_CASH_SEPOLIA_GRAPH: string =
"https://api.thegraph.com/subgraphs/name/crypto-rizzo/nftyfinance-sepolia";
export const MAGNIFY_CASH_HARDHAT_GRAPH: string =
"http://localhost:8000/subgraphs/name/magnify-local";
export const getProtocolAddress = (chainId: any) => magnifyCashV1Address[chainId];
export const getProtocolAddress = (chainId: any) =>
magnifyCashV1Address[chainId];
export const getProtocolChain = (chainId: any) => chainId;
export const getProtocolGraphUrl = (chainId: any) => {
switch (chainId) {
Expand All @@ -39,15 +40,15 @@ export const getProtocolGraphUrl = (chainId: any) => {

const nftListUrlsMap = {
1: [
"https://raw.githubusercontent.com/magnify-cash/nft-lists/master/test/schema/bigexample.nftlist.json",
"https://raw.githubusercontent.com/magnify-cash/nft-lists/master/test/schema/bigexample.nftlist.json"
],
8453: import.meta.env.DEV
? ["http://localhost:5173/tokenlists/nftsBaseMainnet.json"]
: ["https://app.magnify.cash/tokenlists/nftsBaseMainnet.json"],
84532: import.meta.env.DEV
? ["http://localhost:5173/tokenlists/nftsBaseSepolia.json"]
: ["https://early.magnify.cash/tokenlists/nftsBaseSepolia.json"],
31337: ["http://localhost:5173/tokenlists/nfts.json"],
31337: ["http://localhost:5173/tokenlists/nfts.json"]
};

const tokenListUrlsMap = {
Expand All @@ -56,13 +57,13 @@ const tokenListUrlsMap = {
84532: import.meta.env.DEV
? ["http://localhost:5173/tokenlists/tokensBaseSepolia.json"]
: ["https://early.magnify.cash/tokenlists/tokensBaseSepolia.json"],
31337: ["http://localhost:5173/tokenlists/tokens.json"],
31337: ["http://localhost:5173/tokenlists/tokens.json"]
};

export function getTokenListUrls(
chainId: number,
isNft: boolean | undefined,
isToken: boolean | undefined,
isToken: boolean | undefined
): string[] | undefined {
if (isNft) {
return nftListUrlsMap[chainId];
Expand Down
2 changes: 1 addition & 1 deletion dapp-v1/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config = async (): Promise<Config> => {
MagnifyCashV1: {
31337: hardhatAddress, // hardhat
11155111: "0x58b9F441b5c4681e1Ab74ecdE2A01698831BF2c4", // sepolia
84532: "0x9d77E621be4aF95A83c4334e7B51e4440dC2Ed0f", // base sepolia
84532: "0x781EBE3865b0911D6989854dCD29DF3cd81168eB", // base sepolia
8453: "0x9C8D226016492a8fE6531Fe1409aD79099Dd0729", // base mainnet
1: "0xA5FE620E35A2f7459e8cb72bd567aBA8f294867a" // eth mainnet
},
Expand Down
12 changes: 6 additions & 6 deletions deployments.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"magnifyCash": {
"address": "0x9C8D226016492a8fE6531Fe1409aD79099Dd0729",
"startBlock": 20974284
"address": "0x781EBE3865b0911D6989854dCD29DF3cd81168eB",
"startBlock": 18220396
},
"obligationNotes": {
"address": "0x22c2CA6181241e5e7Dd4F0548631Bdb3481274a2",
"startBlock": 20974278
"address": "0x71DA932ccdA723BA3ab730C976bC66DaAF9C598c",
"startBlock": 18220390
},
"lendingKeys": {
"address": "0xB64105EB7CD38bCCE999DA4f38a98015736DCE2E",
"startBlock": 20974281
"address": "0x7F7c5328621965608d0a6a95a6C33461Ef3FDb24",
"startBlock": 18220393
}
}

0 comments on commit 4351279

Please sign in to comment.