{"id":21410546,"url":"https://github.com/bitriel/selendra-presale","last_synced_at":"2025-03-16T17:48:45.411Z","repository":{"id":110961423,"uuid":"404372145","full_name":"bitriel/selendra-presale","owner":"bitriel","description":"Pre-Sale Smart Contracts on Bitriel Protocol","archived":false,"fork":false,"pushed_at":"2022-04-07T10:38:42.000Z","size":2590,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T04:41:40.993Z","etag":null,"topics":["pre-ido","pre-sale","smart-contracts","time-locked"],"latest_commit_sha":null,"homepage":"https://dapp.bitriel.com/sel-pre-sale","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitriel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-08T14:08:55.000Z","updated_at":"2022-04-18T09:12:39.000Z","dependencies_parsed_at":"2024-03-14T05:16:09.886Z","dependency_job_id":null,"html_url":"https://github.com/bitriel/selendra-presale","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitriel%2Fselendra-presale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitriel%2Fselendra-presale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitriel%2Fselendra-presale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitriel%2Fselendra-presale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitriel","download_url":"https://codeload.github.com/bitriel/selendra-presale/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910731,"owners_count":20367538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pre-ido","pre-sale","smart-contracts","time-locked"],"created_at":"2024-11-22T17:40:32.485Z","updated_at":"2025-03-16T17:48:45.357Z","avatar_url":"https://github.com/bitriel.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Selendra Pre-IDO Contracts\n\nThe project comes with a presale contract and a private sale contract, ready-for-deploy scripts that deploys those contracts,\n\nTry running some of the following tasks:\n\nfirst of all, we need to install all needed-dev dependencies through this command:\n\n```shell\nyarn install\n```\n\nnext, create an **.env** file in the root of project, same keys as **.env.example** and set those values depend on your needs.\nthen, compile both contracts to see if no errors, and the size of those contracts:\n\n```shell\nyarn compile\n```\n\nrun coverage to check more in deep:\n\n```shell\nyarn coverage\n```\n\ntesting\n\n```shell\nyarn test\n```\n\nif no errors on testing, we're good to go to deployments with options(network, tags, reset):\n\n```shell\nnpx hardhat deploy --reset --network bsc-testnet --tags Presale                                \n```\n\nrun cleaning with hardhat to clean the build folders and cache file:\n\n```shell\nyarn clean                             \n```\n\ngenerate docs with hardhat-docgen for static site:\n\n```shell\nyarn docs                             \n```\n\n# Etherscan verification\n\nTo try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Ropsten.\n\nIn this project, copy the .env.template file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your Ropsten node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env file in place, after you deployed your contract, Then, copy the etherscan API key and paste it in to replace `ETHERSCAN_API_KEY` in this command. This will verify both contracts if those are not verified yet:\n\n```shell\nnpx hardhat --network bsc-testnet etherscan-verify --api-key ETHERSCAN_API_KEY\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitriel%2Fselendra-presale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitriel%2Fselendra-presale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitriel%2Fselendra-presale/lists"}