artkdev-sale

1.1.1 • Public • Published

ArtKDevSale

Build Status codecov CodeFactor

Mainnet contract: link
Testnet contract: link

The main idea of the ArtKDevSale contract is to sell ArtKDev ERC-20 tokens.

Navigation

Installation

npm install

Testing

truffle run coverage

Deploy

truffle dashboard
truffle migrate --network dashboard

Usage

Changing a token price for sale

ATTENTION!
You can set a new token price only if you are an owner.

If you want to set a new token price for sale, you should use a changeTokenPrice() function.

  function changeTokenPrice(uint256 _newPrice) external;

Testnet tx: link

Ending token sale

ATTENTION!
You can end a sale only if you are an owner.

If you want to end a token sale, you should use a endSale() function.

    function endSale() external payable;

Testnet tx: link

Buying tokens

ATTENTION!
You can buy some tokens if contract has a concrete amount and if you provide enough value.

If you want to buy some tokens, you should use a buyTokens() function.

  function buyTokens(uint256 _numberOfTokens) external payable;

Testnet tx: link

License

ArtKDev's contracts is released under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i artkdev-sale

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

102 kB

Total Files

16

Last publish

Collaborators

  • dmytropodelnik