Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all deprecated networks #23

Merged
merged 1 commit into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Disperse app clone

Disperse app let you disperse any erc20 tokens or ethers to number of addresses using single contract call.
Currently supports - ropsten, rinkeby, goerli, kovan and mumbai(matic).
Currently supports - mumbai(matic), goerli and razor Schain.

Try running some of the following tasks:

Expand All @@ -18,13 +18,8 @@ npx hardhat help

## Network and addresses

| Network | Disperse contract address |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Mumbai | [0xaf6f4A737188571d128477DEe81d54Bc63De6d80](https://mumbai.polygonscan.com/address/0xaf6f4A737188571d128477DEe81d54Bc63De6d80) |
| Ropsten | [0x0cD252390E7e46D7Ecf48D225fBB56D8fBd6Faf1](https://ropsten.etherscan.io/address/0x0cD252390E7e46D7Ecf48D225fBB56D8fBd6Faf1) |
| Rinkeby | [0x3399dCff80b82f78af79686f9f5Cd731AD765786](https://rinkeby.etherscan.io/address/0x3399dCff80b82f78af79686f9f5Cd731AD765786) |
| Goerli | [0xD286f3D834E6030F178C395C9ba33d32B427cAD3](https://goerli.etherscan.io/address/0xD286f3D834E6030F178C395C9ba33d32B427cAD3) |
| Kovan | [0x0cD252390E7e46D7Ecf48D225fBB56D8fBd6Faf1](https://kovan.etherscan.io/address/0x0cD252390E7e46D7Ecf48D225fBB56D8fBd6Faf1) |
| Skale | [0x73a41d6b7889fBF94d059C943bc58dd18c600bfa](http://faint-acubens.explorer.dappnet.skalenodes.com/address/0x73a41d6b7889fBF94d059C943bc58dd18c600bfa/transactions) |
| Skale Testnet v2 | [0x73c0F3cf9Bae32c6A88aD4bc701b1C9aDC1E57d5](https://whispering-turais.explorer.staging-v2.skalenodes.com/address/0x73c0F3cf9Bae32c6A88aD4bc701b1C9aDC1E57d5/transactions) |
| Razor Schain | [0x3bAB943FE31B0F90c1E4c2733113E336eBAC4Bc1](https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com/address/0x3bAB943FE31B0F90c1E4c2733113E336eBAC4Bc1/transactions) |
| Network | Disperse contract address |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Mumbai | [0xaf6f4A737188571d128477DEe81d54Bc63De6d80](https://mumbai.polygonscan.com/address/0xaf6f4A737188571d128477DEe81d54Bc63De6d80) |
| Goerli | [0xD286f3D834E6030F178C395C9ba33d32B427cAD3](https://goerli.etherscan.io/address/0xD286f3D834E6030F178C395C9ba33d32B427cAD3) |
| Razor Schain | [0x3bAB943FE31B0F90c1E4c2733113E336eBAC4Bc1](https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com/address/0x3bAB943FE31B0F90c1E4c2733113E336eBAC4Bc1/transactions) |
4 changes: 1 addition & 3 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ function App() {
if (!isChainSupported) {
dispatch({ type: "SET_NETWORK", payload: null });
} else {
if (chainId === chains.skale) {
dispatch({ type: "SET_NETWORK", payload: "skale" });
} else if (chainId === chains.razorSchain) {
if (chainId === chains.razorSchain) {
dispatch({ type: "SET_NETWORK", payload: "Razor Schain" });
} else {
dispatch({ type: "SET_NETWORK", payload: name });
Expand Down
28 changes: 1 addition & 27 deletions frontend/src/utils/constants.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,25 @@
export const chains = {
ropsten: 3,
rinkeby: 4,
goerli: 5,
kovan: 42,
maticmum: 80001,
skale: 416452918254875,
razorSchain: 278611351,
};

export const disperseAddresses = {
3:
import.meta.VITE_DISPERSE_ROPSTEN ||
"0x0cD252390E7e46D7Ecf48D225fBB56D8fBd6Faf1",
4:
import.meta.VITE_DISPERSE_RINKEBY ||
"0x3399dCff80b82f78af79686f9f5Cd731AD765786",
5:
import.meta.VITE_DISPERSE_GOERLI ||
"0xD286f3D834E6030F178C395C9ba33d32B427cAD3",
42:
import.meta.VITE_DISPERSE_KOVAN ||
"0x0cD252390E7e46D7Ecf48D225fBB56D8fBd6Faf1",
80001:
import.meta.VITE_DISPERSE_MATIC_MUMBAI ||
"0xaf6f4A737188571d128477DEe81d54Bc63De6d80",
416452918254875:
import.meta.VITE_DISPERSE_SKALE ||
"0x73a41d6b7889fBF94d059C943bc58dd18c600bfa",
132333505628089:
import.meta.VITE_DISPERSE_SKALE_V2 ||
"0x73c0F3cf9Bae32c6A88aD4bc701b1C9aDC1E57d5",
278611351:
import.meta.VITE_RAZOR_SCHAIN ||
"0x3bAB943FE31B0F90c1E4c2733113E336eBAC4Bc1",
};

export const scans = {
3: "https://ropsten.etherscan.io/",
4: "https://rinkeby.etherscan.io/",
5: "https://goerli.etherscan.io/",
42: "https://kovan.etherscan.io/",
80001: "https://mumbai.polygonscan.com/",
416452918254875: "http://faint-acubens.explorer.dappnet.skalenodes.com/",
132333505628089:
"https://whispering-turais.explorer.staging-v2.skalenodes.com/",
278611351: "https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com/",
};

export const warnMessage =
"*Supports ropsten, rinkeby, goerli, kovan, skale, skale-testnet-v2 and mumbai(matic)*";
export const warnMessage = "*Supports mumbai(matic), goerli and razor Schain*";