This is a smart contract about origin sport token sale
- nodejs, and make sure it's version above 8.0.0
- npm
- truffle
- ganache
- First run
npm install
to install node_modules - Then run
truffle compile
- run
truffle test
to execute tests
- Before deploy you need to add your owner mnemonic to
truffle.js
like this:
const HDWalletProvider = require("truffle-hdwallet-provider")
const mnemonic = '<----12 words---->'
module.exports = {
networks: {
development: {
host: "localhost",
port: 7545,
network_id: "*"
},
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/<----YOUR_API_KEY---->")
},
network_id: 3,
gas: 4000000
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}
- run
truffle deploy --network testnet
to deploy contract to ropsten network - run
truffle deploy --network mainnet
to deploy contract to mainnet network
The contracts are currently available on both Ethereum mainnet and testnet (ropsten).
ORS Token: 0xeb9a4b185816c354db92db09cc3b50be60b901b6
ORS Token: 0x0a22dccf5bd0faa7e748581693e715afefb2f679