Skip to content

Viewly/token-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viewly is building a decentralized video platform. Learn more at https://view.ly

CircleCI

Viewly Token Contracts

Dependencies

Viewly smart contracts are leveraging the Dappsys framework, because Dappsys provides clean and well written implementations of things like safe math, ERC-20 token and multisig.

We are also using Populus as a development framework. The Viewly contract testing is fully automated, and the tests are written in Python.

For managing dependencies we use Pipenv. Make sure you have it installed.

To install all project dependencies, run:

pipenv install

Running locally (inside pipenv shell):

To compile the contracts, run:

populus compile

To test the contracts, run:

pytest

To deploy the contract(s) run their deployment script:

python deploy/seed_sale.py <args...>

Running on testrpc

First, we need to spin up testrpc server:

testrpc-py

Then, we can deploy contracts by providing testrpc as chain, for example:

python deploy/seed_sale.py --chain testrpc <args...>

Running on a testnet (geth)

If you've just installed geth, you need to create a new account and send some ropsten tokens to it:

geth --testnet account new

To deploy the contracts to the testnet (Ropsten), make sure you have local geth running first:

geth --testnet --fast --etherbase "0x25b99234a1d2e37fe340e8f9046d0cf0d9558c58"

The etherbase account is the owner in the deployer scripts.

Then you can deploy the contract to testnet with given multisig address as beneficiary with:

python deploy/seed_sale.py --chain ropsten <args...>

Deploying to production

Make sure you are running mainnet node (parity or geth) with RPC/HTTP interace open.

Deploy sale contract with:

python deploy/seed_sale.py --chain mainnet <args...>

Deploy token mintage contract with:

python deploy/token_mintage.py --chain mainnet <args...>

Deployed contracts

About

Ethereum smart contracts for VIEW token, sale and distribution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages