Skip to content
master
Switch branches/tags
Code

Swace token ERC20 contract (SWACE)

Requirements

  • NodeJS, version 10+
  • Ganache Personal Ethereum blockchain provider
  • Truffle Ethereum developer framework
  • Solidity Flattener Combine all contracts to single *.sol file

Instructions

Initialisation

npm install

Compiling, migrating & deploying

Access console with truffle console. In console type compile to compile the contracts. If you want to migrate the contracts make sure Ganache is up and running, then execute migrate. Before running deploy make sure that account addresses are set in data/config-development.yml, otherwise default Ganache accounts will be used.

Testing

To run tests execute test while being in Truffle console.

Other

Flatten the contract

solidity_flattener --solc-paths="openzeppelin-solidity/=$(pwd)/node_modules/openzeppelin-solidity/" --output=flattened/SwaceToken.sol  contracts/SwaceToken.sol
solidity_flattener --solc-paths="openzeppelin-solidity/=$(pwd)/node_modules/openzeppelin-solidity/" --output=flattened/VestingAgent.sol  contracts/VestingAgent.sol
solidity_flattener --solc-paths="openzeppelin-solidity/=$(pwd)/node_modules/openzeppelin-solidity/" --output=flattened/MultiTransferAgent.sol  contracts/MultiTransferAgent.sol

Etherscan

Swace Token (SWACE) contract address: 0x03b155af3f4459193a276395dd76e357bb472da1

Contacts

Medium Twitter
Telegram Bitcointalk
Facebook
Linkedin

About

Whitepaper