Skip to content

Commit

Permalink
added contract verification
Browse files Browse the repository at this point in the history
  • Loading branch information
zorixid committed May 28, 2021
1 parent a138964 commit 9de0fa0
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ yarn-error.log*
# security
.secret
.infuraKey
.ethKey
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
- [x] Implemented ability for admin to change custom pool APY value
*
- [x] Implemented custom reward Pool redistribution
- [x] Contract Source Code Verified (Exact Match)
*
- [ ] Add frontend for custom pool
- [ ] Add loader, indicator
- [ ] Split components in to smaller
- [ ] Validate contracts
- [ ] Add clear running description


Expand Down Expand Up @@ -117,12 +117,12 @@ mocha testing output
for private ethereum test network make sure Ganache is running on HTTP://127.0.0.1:7545

TokenStaking Smart Contract Address on Test Net
Ropsten: 0x0Fab2A018bB44DD2a6Ef7C55F057Dd9d9eC1B19F
Rinkeby: 0xAf9352B33E9B08A86dD04fcD8533DbC75BD2c8d1
Ropsten: Verified: https://ropsten.etherscan.io/address/0x0Fab2A018bB44DD2a6Ef7C55F057Dd9d9eC1B19F#contracts
Rinkeby: Verified: https://rinkeby.etherscan.io/address/0xAf9352B33E9B08A86dD04fcD8533DbC75BD2c8d1#contracts

TestToken Contract Address on Test Net
Ropsten: 0x0190f80487179053eb85451454541644AbAf4048
Rinkeby: 0xb54039DAC3C4ADdAC082e86a6e9C290E80af9488
Ropsten: Verified: https://ropsten.etherscan.io/address/0x0190f80487179053eb85451454541644AbAf4048#contracts
Rinkeby: Verified: https://rinkeby.etherscan.io/address/0xb54039DAC3C4ADdAC082e86a6e9C290E80af9488#contracts

Current Admin on Test Net
Ropsten: 0x3349ca399168dF1c0df96a49410F5F9940241AbC
Expand Down
66 changes: 66 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"main": "truffle-config.js",
"license": "ISC",
"devDependencies": {
"@truffle/hdwallet-provider": "^1.4.0"
"@truffle/hdwallet-provider": "^1.4.0",
"truffle-plugin-verify": "^0.5.8"
}
}
15 changes: 14 additions & 1 deletion truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const infuraKey = fs
.readFileSync('.infuraKey')
.toString()
.trim();
const ethKey = fs
.readFileSync('.ethKey')
.toString()
.trim();

module.exports = {
networks: {
Expand All @@ -18,7 +22,7 @@ module.exports = {
port: 7545,
network_id: '*', // Match any network id
},

//ROPSTEN Test net
ropsten: {
provider: function() {
Expand Down Expand Up @@ -57,6 +61,13 @@ module.exports = {
evmVersion: 'petersburg',
},
},

//etherscan API key
api_keys: {
etherscan: ethKey,
},
// plugin for verification
plugins: ['truffle-plugin-verify'],
};

//truffle test
Expand All @@ -65,3 +76,5 @@ module.exports = {
// get contract - await TestToken.deployed()
// to compile - truffle compile
// to deploy - truffle migrate --reset

// to verify - truffle run verify Contract --network rinkeby

0 comments on commit 9de0fa0

Please sign in to comment.