Smart-contracts for SPIN Protocol platform
- First uncomment the deployer function corresponds to the contract you want to deploy and comment out all the others in
migrations/2_spintoken.jsfile. - If the project folder includes
buildfolder, first delete it - Compile the corresponding contract as follows;
truffle compile - Set mnemonic words for deployer in your command line as follows;
export MNEMONICS="<mnemonic_words>" - And set your infura project secret key as follows;
export INFURA_API_KEY="<infura_project_secret>" - Also set fund collector address as follows;
export FUND_COLLECTOR_ADDRESS="<fund_collector_address>" - Finally deploy the contract on the network you desire
NETWORK=<network_name> npm run deploy
- First uncomment the deployer function corresponds to the contract you want to deploy and comment out all the others in
migrations/2_spintoken.jsfile. - If the project folder includes
buildfolder, first delete it - Compile the corresponding contract as follows;
truffle compile - Set privatekey words for deployer in your command line as follows;
export PRIVATEKEY="<private_key>" - Finally deploy the contract on the network you desire
truffle migrate --network <network_name>
- In order to run the whole tests
truffle test - In order to run only specific test file