Go to file
viktor 5fe8884eb3 Typo 2017-11-14 16:19:13 +03:00
docs tokensale png update 2017-11-14 16:07:29 +03:00
treasury@dad8d94e43 Updated treasury submodule 2017-11-14 13:54:48 +03:00
.gitignore .gitignore 2017-11-10 14:24:52 +03:00
.gitmodules treasury submodule 2017-11-10 14:26:33 +03:00
LICENSE Initial commit 2017-11-10 14:21:42 +03:00
README.md Typo 2017-11-14 16:19:13 +03:00
bridge-right.sol bridge right side only 2017-11-14 13:49:22 +03:00

README.md

Tokensale-right

Right side of the Bridge, ERC20 compatible Token and Treasury to exchange tokens to coins

Before tokensale

  • Right-side bridge contract ForeignBridge is deployed to the network. Parameters of the constructor:
Param Type Description Value
n uint256 Number of authorities to approve deposit tokens 1
a address[] Array of authorities' addresses [addr_will_send_deposit_tx_to_contract]
  • ERC20 compatible token OraclesToken contract is deployed to the network. Parameters of the token constructor:
Param Type Description Value
_bridgeAddress address Right-side bridge contract address ForeignBridge_address
_totalSupplyItems uint256 Token total supply for crowdsale 176722560
_decimals uint256 Token decimals 18

Token total supply is transfered to the right-side bridge contract address balance at deployment.

  • Bridge is configured and started

Tokensale

After tokensale

  • Treausury contract is deployed to the network.
  • Initialize transaction is sent to treasury with params:
Param Type Description
_token address Token contract address
_rate uint256 Rate, at which tokens will be exchanged to coins
Number_of_coins = Number_of_tokens * Rate
  • setTreasury transaction is sent to OraclesToken contract.

Users are able to exchange their tokens to coins at the right side with sending transfer transaction on OraclesContract to Treasury_address.