Skip to content

Commit

Permalink
feat: remove goerli network (Open-Attestation#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
superical committed Oct 19, 2023
1 parent f9495db commit e8c6192
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ import { Wallet, providers, getDefaultProvider } from "ethers";

// Providers
const mainnetProvider = getDefaultProvider();
const goerliProvider = getDefaultProvider("goerli");
const metamaskProvider = new providers.Web3Provider(web3.currentProvider); // Will change network automatically

// Signer
Expand Down Expand Up @@ -268,7 +267,7 @@ For users who want to quickly deploy their contracts without too much hassle, yo
npx hardhat deploy:token --network mumbai --name "The Great Shipping Co." --symbol GSC
```

👆 This is the easiest and most cost-effective method to deploy. Currently, this is supported on Ethereum, Goerli, Sepolia, Polygon and Polygon Mumbai. The deployed contract will inherit all the standard functionality from our on-chain contracts. This helps to save deployment costs and make the process more convenient for users and integrators.
👆 This is the easiest and most cost-effective method to deploy. Currently, this is supported on Ethereum, Sepolia, Polygon and Polygon Mumbai. The deployed contract will inherit all the standard functionality from our on-chain contracts. This helps to save deployment costs and make the process more convenient for users and integrators.

> 💡 Remember to supply the`--network` argument with the name of the network you wish to deploy on.
> See [Network Configuration](#network-configuration) section for more info on the list of network names.
Expand Down Expand Up @@ -360,7 +359,6 @@ tasks (which internally uses the same plugin), you will need to include your cor
Here's a list of network names currently pre-configured:

- `mainnet` (Ethereum)
- `goerli`
- `sepolia`
- `polygon` (Polygon Mainnet)
- `mumbai` (Polygon Mumbai)
Expand Down
5 changes: 0 additions & 5 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const config: HardhatUserConfig = {
* Ethereum
*/
mainnet: ETHERSCAN_API_KEY!,
goerli: ETHERSCAN_API_KEY!,
/**
* Polygon
*/
Expand All @@ -86,10 +85,6 @@ const config: HardhatUserConfig = {
...networkConfig,
url: `https://mainnet.infura.io/v3/${INFURA_APP_ID}`,
},
goerli: {
...networkConfig,
url: `https://goerli.infura.io/v3/${INFURA_APP_ID}`,
},
sepolia: {
...networkConfig,
url: "https://rpc.sepolia.org",
Expand Down
4 changes: 0 additions & 4 deletions src/constants/contract-address.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const ChainId = {
Ethereum: 1,
Goerli: 5,
Sepolia: 11155111,
Polygon: 137,
PolygonMumbai: 80001,
Expand All @@ -11,7 +10,6 @@ const ChainId = {
export const contractAddress = {
TitleEscrowFactory: {
[ChainId.Ethereum]: "0xA38CC56c9291B9C1f52F862dd92326d352e710b8",
[ChainId.Goerli]: "0x5aA71Cc9559bC5e54E9504a81496d9F8454721F5",
[ChainId.Sepolia]: "0x5aA71Cc9559bC5e54E9504a81496d9F8454721F5",
[ChainId.Polygon]: "0x5B5F8d94782be18E22420f3276D5ef5a1bc65C53",
[ChainId.PolygonMumbai]: "0x5aA71Cc9559bC5e54E9504a81496d9F8454721F5",
Expand All @@ -20,14 +18,12 @@ export const contractAddress = {
},
Deployer: {
[ChainId.Ethereum]: "0x92470d0Fc33Cbf2f04B39696733806a15eD7eef3",
[ChainId.Goerli]: "0x9eBC30E7506E6Ce36eAc5507FCF0121BaF7AeA57",
[ChainId.Sepolia]: "0x9eBC30E7506E6Ce36eAc5507FCF0121BaF7AeA57",
[ChainId.Polygon]: "0x92470d0Fc33Cbf2f04B39696733806a15eD7eef3",
[ChainId.PolygonMumbai]: "0x9eBC30E7506E6Ce36eAc5507FCF0121BaF7AeA57",
},
TokenImplementation: {
[ChainId.Ethereum]: "0xd3F09dD800525Ecf7e452C3c167C7c716632d016",
[ChainId.Goerli]: "0xC78BA1a49663Ef8b920F36B036E91Ab40D8F26D6",
[ChainId.Sepolia]: "0xC78BA1a49663Ef8b920F36B036E91Ab40D8F26D6",
[ChainId.Polygon]: "0xd3F09dD800525Ecf7e452C3c167C7c716632d016",
[ChainId.PolygonMumbai]: "0x83A533397eFE1d90baA26dEc7743626d7598656F",
Expand Down

0 comments on commit e8c6192

Please sign in to comment.