Prepare and launch the presale
Now that you have your Smart Contract deployed and your website live, we'll see how to operate your Smart Contract. For this, you'll need to browse to http://www.hub.craft.network, this service will allow you to read/write on your contract.
The first step is to connect your wallet to the hub. You can connect through Hana/ICONex, keystore or direct private key. For this tutorial, we recommend to use ICONex/Hana. You can click on the "Authentication" tab and click on "Connect ICONex"
Then you'll need to scroll down to the "Contract calls" section. You can copy your Smart Contract address in the field and hit refresh. That's it! Your hub is ready to interact with your contract.
The left column is for read-only methods and the right one for write methods that will change the state of your SCORE.
To launch your presale, the first step is to set the price, and search in the right column for the "setPresalePrice" method. You can input the price in ICX for your presale. Please note that the unit is in loops (1000000000000000000 loops = 1 ICX) and that the minimum price is 1 ICX per unit. Set your presale price in loops, then click on "setPresalePrice" and finally you'll be able to click on "openPresale", this will start your presale!
For the limit the system is similar you can call setMintLimit to set a mint limit per address, you can set it to 0 to remove this condition.