Documentation ¶
Index ¶
- Constants
- Variables
- func TypeHash(elems ...[]byte) []byte
- type Address
- type Bigmap
- type Bool
- type Bytes
- type ChainID
- type Contract
- type Int
- type Key
- type KeyHash
- type Lambda
- type List
- type Map
- type Mutez
- type Nat
- type Operation
- type Option
- type Param
- type Set
- type Signature
- type String
- type Struct
- type Timestamp
- type Type
- type Union
- type Unit
Constants ¶
View Source
const ( TypeNat = "nat" TypeInt = "int" TypeString = "string" TypeBool = "bool" TypeBytes = "bytes" TypeUnit = "unit" TypeTimestamp = "timestamp" TypeAddress = "address" TypeMutez = "mutez" TypeKey = "key" TypeKeyHash = "key_hash" TypeSignature = "signature" TypeChainID = "chain_id" TypeOperation = "operation" TypeContract = "contract" )
Builtin types
View Source
const ( TypeStruct = "struct" TypeUnion = "union" TypeList = "list" TypeSet = "set" TypeMap = "map" TypeBigmap = "big_map" TypeOption = "option" TypeLambda = "lambda" )
Container types
View Source
const HashSize = md5.Size
Variables ¶
View Source
var Builtin = []string{ TypeNat, TypeInt, TypeString, TypeBool, TypeBytes, TypeUnit, TypeTimestamp, TypeAddress, TypeMutez, TypeKey, TypeKeyHash, TypeSignature, TypeChainID, TypeOperation, TypeContract, }
Functions ¶
Types ¶
type Param ¶
Param is a type associated with a name. It can be an argument of an entrypoint or a field of a struct.
type Struct ¶
type Struct struct { Name string Fields []Param // If true, the expected prim matching to this struct has a flat structure, // instead of a tree of pairs. Flat bool }
Struct is an aggregation of named fields. It corresponds to non-top-level `pair` prims, in Michelson. It can represent either a parameter's type of entrypoint, or a record in a storage type.
Click to show internal directories.
Click to hide internal directories.