This repository is dedicated to the development of code that will facilitate the conduction of an Initial Coin Offering (Staking) on the Telegram Open Network (TON) blockchain. The Staking will be conducted for the purpose of launching a new jetton, the TEP-89, which will be fully compatible with the TEP-74 standard. The code contained in this repository will enable the smooth and secure operation of the Staking, providing investors with a reliable and transparent platform to participate in the launch of this exciting new jetton. Furthermore, the TEP-89 jetton will be designed to offer a range of benefits and functionalities that will make it an attractive investment opportunity for both experienced and novice cryptocurrency investors alike.
The Staking platform offers a range of features to ensure a successful fundraising campaign. These include:
- Custom pricing: Tailor your Staking to your needs by setting a rate for issuing jettons based on TON amounts sent to the smart contract.
- Cap: Set a maximum amount for issuance during the Staking, giving you greater control over your fundraising efforts.
- Start time: Choose the date after which your Staking will be opened to the public, allowing you to plan your launch accordingly.
- End time: Select the date after which your Staking will be closed, providing investors with a clear deadline to participate in your campaign.
- Presale compatibility: With the Staking platform, you can premint jettons before the Staking goes live, giving early investors a chance to get in on the ground floor.
- Pause/Resume logic: The platform allows you to split your Staking into multiple stages, giving you greater flexibility in managing your fundraising efforts.
By utilizing these features, you can create a robust and effective fundraising campaign that meets your needs and attracts investors.
- Clone this repository
- Install all dependencies
yarn
- Rename
_.env
to.env
Fill out the values in .env
:
JETTON_ADMIN="" # adress from which will be managed this Staking
JETTON_CONTENT_URI="" # URI for metadata by standard https://github.com/ton-blockchain/TEPs/blob/master/text/0064-token-data-standard.md
JETTON_PRICE=2000000000 #1 TON = 2 jetton, if set 100000000 {- 1e8 -}, then 1 TON = 0.1 jetton, etc.
JETTON_MINTER="" # address of jetton minter for payment
When all tests will be finished, just run
yarn deploy
and follow by the instructions
- Changing admin (owner)
- Changing jetton content
- Pause/Resume feature to split on several steps
yarn controller
Keep in mind that you can use ton:// link to spread your staking. Just choice "Buy" to obtain the link and don't pay. A user will be able to select its own amount if you will remove amount=1000000000 from the link.
For example:
ton://transfer/EQAHM3Xc_djTLCCEudIgAknu6ypK0zzdLTpTejhd3sebCzm7?amount=1000000000&bin=te6cckEBAQEADgAAGEAu_wsAAAAAAAAAAPnjyqo
And spread ton://transfer/EQAHM3Xc_djTLCCEudIgAknu6ypK0zzdLTpTejhd3sebCzm7?bin=te6cckEBAQEADgAAGEAu_wsAAAAAAAAAAPnjyqo
https://docs.ton.org/develop/func/cookbook
https://github.com/ton-org/blueprint/
https://github.com/EmelyanenkoK/modern_jetton
https://github.com/ton-blockchain/TEPs/blob/master/text/0064-token-data-standard.md
https://base64.guru/converter/encode/image
MIT