|
Our first smart-contract will return the classic “Hello World” message. |
|
|
Define a public function called “hello-world”. |
|
|
Returns “Hello World” with a status |
|
|
Before we can run the smart-contract, we need to set our Clarinet workspace. |
|
|
First create our workspace. |
|
|
Then create our contract. |
|
|
Put the source code in the contract (located at
|
|
|
Now we have our Clarinet workspace set up we can load our contract into the REPL. |
|
|
List of contracts and callable functions. |
|
|
Wallets loaded in from |
|
|
Now that we’re in the REPL, we can call the public functions/contracts listed above. |
|
|
For example here’s how we can call the |
|
|
The process for setting up our Clarinet workspace will be the same for the rest of our smart-contracts. |
Next example: SIP-10 (Tokens).