Skip to content

Commit

Permalink
Merge pull request #137 from EibaKatsu/localNouns2
Browse files Browse the repository at this point in the history
[LocalNouns]set contract address to external file
  • Loading branch information
isamu authored Aug 9, 2023
2 parents c16031a + db74200 commit af7183e
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contract/scripts/deploy_localNouns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function main() {
await runCommand(`npx hardhat verify ${token.address} ${provider.address} ${committee} ${committee} ${committee} --network ${network.name} &`);

const addresses4 = `export const addresses = {\n` + ` localNounsToken:"${token.address}",\n` + `}\n`;
await writeFile(`../src/utils/addresses/localNounsToken${network.name}.ts`, addresses4, () => {});
await writeFile(`../src/utils/addresses/localNounsToken_${network.name}.ts`, addresses4, () => {});

}

Expand Down
12 changes: 12 additions & 0 deletions src/utils/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ import { addresses as messageprovider_mumbai } from "./addresses/messageprovider
import { addresses as messagetoken_goerli } from "./addresses/messagetoken_goerli";
import { addresses as messagetoken_localhost } from "./addresses/messagetoken_localhost";
import { addresses as messagetoken_mumbai } from "./addresses/messagetoken_mumbai";
import { addresses as nounsDescriptor_mumbai } from "./addresses/nounsDescriptor_mumbai";
import { addresses as nounsSeeder_mumbai } from "./addresses/nounsSeeder_mumbai";
import { addresses as nftDescriptor_mumbai } from "./addresses/nftDescriptor_mumbai";

export interface Addresses {
[key: string]: { [key: string]: string };
Expand Down Expand Up @@ -295,4 +298,13 @@ export const addresses: Addresses = {
mainnet: dynamic_mainnet.tokenGate,
goerli: dynamic_goerli.tokenGate,
},
nounsDescriptor: {
mumbai: nounsDescriptor_mumbai.nounsDescriptor,
},
nounsSeeder: {
mumbai: nounsSeeder_mumbai.nounsSeeder,
},
nftDescriptor: {
mumbai: nftDescriptor_mumbai.nftDescriptor,
},
};
3 changes: 3 additions & 0 deletions src/utils/addresses/localNounsDescriptor_mumbai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const addresses = {
localNounsDescriptor:"0x1A88f19d94ceCe2A352E8178ddF570855317C15d",
}
3 changes: 3 additions & 0 deletions src/utils/addresses/localNounsProvider_mumbai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const addresses = {
localNounsProvider:"0x6AE64719EB925B7a1d935d45F24A30094a12C9D4",
}
3 changes: 3 additions & 0 deletions src/utils/addresses/localNounsToken_mumbai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const addresses = {
localNounsToken:"0x1f26A1E07bF4e939144EE85833EFdEB46859AbBB",
}
3 changes: 3 additions & 0 deletions src/utils/addresses/localseeder_mumbai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const addresses = {
localseeder:"0x6eE769B88423F0bddAEdb4Cd8C188b5a4366814D",
}
3 changes: 3 additions & 0 deletions src/utils/addresses/nftDescriptor_mumbai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const addresses = {
nftDescriptor: "0xC93218fF7C44cbEB57c7661DCa886deCBc0E07C0",
}
3 changes: 3 additions & 0 deletions src/utils/addresses/nounsDescriptor_mumbai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const addresses = {
nounsDescriptor: "0xA6f003aa2E8b8EbAe9e3b7792719A08Ea8683107",
}
3 changes: 3 additions & 0 deletions src/utils/addresses/nounsSeeder_mumbai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const addresses = {
nounsSeeder: "0x5f5C984E0BAf150D5a74ae21f4777Fd1947DE8c9",
}

0 comments on commit af7183e

Please sign in to comment.