Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Add deployment details to docs/kalis-me-tutorial-code
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Oct 3, 2019
1 parent e1a1353 commit cf9c1ad
Show file tree
Hide file tree
Showing 5 changed files with 615 additions and 6,856 deletions.
2 changes: 2 additions & 0 deletions docs/kalis-me-tutorial-code/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INFURA_ID=
MNEMONIC=
4 changes: 3 additions & 1 deletion docs/kalis-me-tutorial-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
"bignumber.js": "^8.0.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"dotenv": "^8.1.0",
"mocha": "^5.2.0",
"truffle-assertions": "^0.9.0"
"truffle-assertions": "^0.9.0",
"truffle-hdwallet-provider": "^1.0.17"
},
"dependencies": {}
}
31 changes: 31 additions & 0 deletions docs/kalis-me-tutorial-code/truffle-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
var HDWalletProvider = require("truffle-hdwallet-provider");
require('dotenv').config();

module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
},
ropsten: {
provider: function() {
return new HDWalletProvider(`${process.env.MNEMONIC}`, `https://ropsten.infura.io/v3/${process.env.INFURA_ID}`)
},
network_id: 3
},
rinkeby: {
provider: function() {
return new HDWalletProvider(`${process.env.MNEMONIC}`, `https://rinkeby.infura.io/v3/${process.env.INFURA_ID}`)
},
network_id: 4
},
goerli: {
provider: function() {
return new HDWalletProvider(`${process.env.MNEMONIC}`, `https://goerli.infura.io/v3/${process.env.INFURA_ID}`)
},
network_id: 5,
gas: 6500000
}
}
};
11 changes: 0 additions & 11 deletions docs/kalis-me-tutorial-code/truffle.js

This file was deleted.

Loading

0 comments on commit cf9c1ad

Please sign in to comment.