Contracts in Ola are similar to Solidity languages. Each contract can contain declarations of State Variables, Functions, Events, Struct Types and Enum Types.
There are also special kinds of contracts called libraries and interface.
The section about contracts contains more details than this section, which serves to provide a quick overview.
State Variables
State variables are variables whose values are permanently stored in contract storage.
contract SimpleStorage{ u32 storedData;// State variable// ...}
Functions
Functions are the executable units of code. Functions are usually defined inside a contract.