{"id":28349866,"url":"https://github.com/mradkov/aeternity-token-sale-example","last_synced_at":"2025-06-30T23:33:58.565Z","repository":{"id":36265537,"uuid":"222888115","full_name":"mradkov/aeternity-token-sale-example","owner":"mradkov","description":"Aeternity Token Sale Example","archived":false,"fork":false,"pushed_at":"2022-07-07T14:15:19.000Z","size":2965,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-27T20:11:34.829Z","etag":null,"topics":["aeternity","aex9","fungible","smartcontracts","sophia","token","tokensale"],"latest_commit_sha":null,"homepage":"https://tokensale.aepps.tech","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mradkov.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}},"created_at":"2019-11-20T08:29:58.000Z","updated_at":"2021-10-07T10:19:28.000Z","dependencies_parsed_at":"2022-08-08T14:00:41.093Z","dependency_job_id":null,"html_url":"https://github.com/mradkov/aeternity-token-sale-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mradkov/aeternity-token-sale-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mradkov%2Faeternity-token-sale-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mradkov%2Faeternity-token-sale-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mradkov%2Faeternity-token-sale-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mradkov%2Faeternity-token-sale-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mradkov","download_url":"https://codeload.github.com/mradkov/aeternity-token-sale-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mradkov%2Faeternity-token-sale-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261262197,"owners_count":23132401,"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":["aeternity","aex9","fungible","smartcontracts","sophia","token","tokensale"],"created_at":"2025-05-27T20:11:13.798Z","updated_at":"2025-06-30T23:33:58.551Z","avatar_url":"https://github.com/mradkov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aeternity Token Sale Example\n\nThis repository provides an example of a contribution campaign/token sale conducted on top of aeternity blockchain.\n\nThe tokens examples are following the [AEX-9](https://github.com/aeternity/AEXs/blob/master/AEXS/aex-9.md) standard for fungible tokens on aeternity.\n\n# Documentation\n\n## Contracts\n\n### Token Sale contract\n\nThe `token-sale.aes` contract is implementing the interface of an aex9 fungible token. Since we only need to call `entrypoint mint()` in order to issue new tokens for people that contributed to the campaign we are only using this interface:\n\n```sophia\ncontract FungibleTokenFullInterface =\n  entrypoint mint                 : (address, int)          =\u003e unit\n```\n\nThe contract also has few more functions - `contribute`, `set_token` and `withdraw` which respectively do the following:\n\n`set_token` - this should be called in order to specify the address of the token contract which would be issued during the contribution campaign.\n\n`contribute` - allows people to send value in AE tokens and calls the `mint` function on the specified token contract in the state of the contract, issuing new tokens amount according to the price ratio speicified in the token sale.\n\n`withdraw` - allows the `owner` of the `token-sale` contract to withdraw the collected amount of AE.\n\n### Fungible token contract\n\nThis is a slightly modified version of the `mintable` aex9 contract. The difference is we have specified a new role - `minter` who is allowed to issue new tokens, increasing the `total_supply`. \n\nIn this case the `minter` is our `token-sale` contract.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmradkov%2Faeternity-token-sale-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmradkov%2Faeternity-token-sale-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmradkov%2Faeternity-token-sale-example/lists"}