tokamak-network / tonstarter-contracts

8 stars 4 forks source link

TONStarter Contracts

Deployed on Mainnet

Deployed related to pools

Deployed StakeTONUpgrade

Deployed StakeTONUpgrade3

Deployed related to pools

Deployed TokamakStakeUpgrade4 ( exchangeWTONtoTOS )

Deployed related to DAO

Deployed LockTOSDividendProxy related to DAO

Deployed related to [DoorOpen]'s PublicSale

Deployed related to [Dragons Of Midgard]'s PublicSale

Deployed Upgraded LockTOS Contracts on Mainnet

Deployed related to [Dragons Of Midgard]'s PublicSale

Deployed related to [LYDA]'s Private Sale

USING TOKAMAK CONTRACTS

Build Contracts with Truffle

npm run compile:truffle

Test Contracts with Truffle

npm run test:proxy

npm run test:stake.eth

npm run test:stake.ton

npm run test:stake.tokamak

npm run test:upgrade

npm run test:factory

npm run test:uniswapv3-simple

npm run test:uniswapv3-liquidity

Deploy to Ethereum

Create/modify network config in hardhat.config.ts and add API key and private key, then run:

you write down VaultName in deployed.networkname.input.json then,

npx hardhat run --network rinkeby scripts/deploy_4_createVault.js

it will display tx, then you have to find vault address using tx on etherscan. you write down VaultAddress in deployed.networkname.input.json

npx hardhat run --network rinkeby scripts/deploy_5_createStakeContract.js

Verify on Etherscan

Using the hardhat-etherscan plugin, add Etherscan API key to hardhat.config.ts, then run:

npx hardhat verify --network rinkeby <DEPLOYED ADDRESS>

compile

git clone --recursive https://github.com/Onther-Tech/tonstarter-contracts.git

git checkout develop

npm run compile:uniswap3-core

npm run compile:uniswap3-periphery

npm run compile:plasma

npm run compile:truffle

npm install

test

npm run test:proxy

npm run test:stake.ton

npm run test:stake.tokamak

npm run test:uniswapv3

npm run test:upgrade-stakeTON

npm run test:stake.eth

lint

npm run lint

To generate documents by solidity-docgen

npm run docify

To generate UML by sol2uml

sol2uml ./contracts

private test scenario