Data types refer to arguments in functions and return values. In Orbs, the implementations of the contract are always statically typed, which means that the type must be known at compile time.
All types are passed by value in the Orbs Contract SDK, and the following types are supported:
The supported way of working with integers right now is using
uint64. Currently, these are the only two number formats that will pass compilation and runtime execution.
It is possible to run any arithmetic operation which exists in Go.
The Orbs Contract SDK enables you to work with
string values. As with integers, the string behaves like any other string in Go.
For any data related operation, including passing of addresses, the Go
byte should be used. Similarly to strings and integers, you can run any operation on these byte arrays with Go.