Skip to content
Swace contracts for ethereum blockchain
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
data
migrations
scripts
test
.babelrc
.env.example
.eslintrc.json
.gitattributes
.gitignore
.solcover.js
.soliumignore
.soliumrc.json
.travis.yml
LICENSE
Readme.md
package-lock.json
package.json
truffle-config.js
truffle.js

Readme.md

Swace token ERC20 contract (SWA)

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 (SWA) contract address: 0x7e6509ac567e7de3bc702e7caf3b56245b50d1a7

Contacts

Medium Bitcointalk
Twitter
Facebook
Linkedin
Telegram

About

Whitepaper

You can’t perform that action at this time.