Skip to content

OnBlockIO/evm-tokens-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GhostMarket Tokens Contracts

codecov

Deployed Contracts on BSC:

OnBlockVesting

https://bscscan.com/address/0xFC2eb99ABAe550903a41DafCb6D797BcD0D88758

GhostMarketERC721

https://bscscan.com/address/0xf41db445d7eaf45536985ce185ce131fa4b42e68

GhostMarketERC1155

https://bscscan.com/address/0x44c5ce28c29934b71a2a0447745d551dfc7b5133

GhostMarketToken

https://bscscan.com/address/0xbba0f2f541809a85c18dd0106080076a0ba21b2b

Deployed Contracts on Polygon:

GhostMarketERC721

https://polygonscan.com/address/0x068bef92987d16ef682ff017b822ca1211401eaf

GhostMarketERC1155

https://polygonscan.com/address/0xf1c82f5ddb4f1a6a8f3eed2eb25fc39fc6d33fb3

GhostMarketToken

https://polygonscan.com/address/0xffcd553464a00d7b30a48960611e5032f544700a

Deployed Contracts on Avalanche:

GhostMarketERC721

https://snowtrace.io/address/0x068bef92987d16ef682ff017b822ca1211401eaf

GhostMarketERC1155

https://snowtrace.io/address/0xdcdab251151c345ad527851eca783521ea3209e0

GhostMarketToken

https://snowtrace.io/address/0x99aeecf3717ec6b369d847e3d62d14e14251e4d4

Deployed Contracts on Ethereum:

GhostMarketToken

https://etherscan.com/address/0x203aad20f51bbe43e650d3ceea88d43dd6c817c1

Deployed Contracts on Neo X:

GhostMarketERC721

https://xexplorer.neo.org/token/0x0B53b5dA7d0F275C31a6A182622bDF02474aF253

GhostMarketERC1155

https://xexplorer.neo.org/token/0x35609dC59E15d03c5c865507e1348FA5abB319A8

GhostMarketToken

https://xexplorer.neo.org/token/0x42bD1B1c84aD8Cf576D25FCd86A7EFbE2752Fe02

Audit

https://www.certik.com/projects/ghostmarket

Technical Information

Using OpenZeppelin contracts.

  • Upgradable ERC20/ERC721/ERC1155 smart contracts.
  • Upgradable lazy minting proxies smart contracts.
  • Upgradable LP staking smart contract.
  • Non-upgradable vesting smart contract.

Compiling contracts

hardhat compile

Deploying Proxy

Using hardhat to deploy proxy contracts

locally

hardhat run deploy/001_deploy_ERC20.ts
hardhat run deploy/002_deploy_Vesting.ts
hardhat run deploy/003_deploy_LPStaking.ts
hardhat run deploy/004_deploy_ERC721.ts
hardhat run deploy/005_deploy_ERC1155.ts

to network

hardhat run --network <network_name> deploy/<deploy_script>.ts

For deployment private keys must be saved into

.secrets.json

secrets.json structure:

{
    "ETH_NODE_URI": "key",
    "TESTNET_PRIVATE_KEY": ["key1","key2","key3","key4"],
    "MAINNET_PRIVATE_KEY": ["key1","key2","key3","key4"],
    "ETHERSCAN_API_KEY": "key"
}

Testing

tests can be run with:

hardhat test
hardhat test <network_name>

Coverage

coverage can be run with:

hardhat coverage
hardhat coverage <network_name>

Verifying contracts

hardhat verify --network <network_name> <0x_contract_address>

About

GhostMarket tokens contracts & vesting & lp staking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published