This is a simple quickstart guide to getting started with Asteroid's smart contract programming syntax and launch your first contract.
Let's start by defining a simple contract:
contract Exchange {
buyOrderAssetID string
external assetId(name string){
assetID = name
}
}
This contract creates a public (exported
) function interface sayHi
, which anyone can call with one provided string
parameter. Whoever last called this function will have their name
stored as the lastPersonGreeted
.