This ERC20 is part of a larger ABC token ecosystem. For regulatory reasons we need to audit the ERC20 first and ASAP. We are using openzeppelin's v2.3.0 release because that is what the specification we have received from the Thai SEC-approved portal (Longroot) uses.
This repo contains information related to deploying the ERC20 currency token. We use truffle to manage all ethereum related interactions. Truffle also supports deploying contracts to mainnet. For more detail see this
The following needs to be installed:
npm
truffle
(npm install -g truffle
)
Then install deps for this repo
npm install
To interact with the contracts, we need an account with some ETH. In addition, we need
a geth node. We are currently setup to work with rinkeby. Make sure your
account's private key and infura url are present in truffle-config.js
.
To deploy all contracts to the desired network run
truffle migrate --network rinkeby
There's currently a very simple test case on test/currencyContract.test.js
. To run
this and all other tests, do
truffle test --network rinkeby
If things are working properly, you should see something like this
Using network 'rinkeby'.
Compiling your contracts...
===========================
✔ Fetching solc version list from solc-bin. Attempt #1
> Everything is up to date, there is nothing to compile.
Contract: LongRoot token
✓ should have zero balance (1163ms)
✓ should mint some (12677ms)
2 passing (15s)