consts

package
v0.0.0-...-c439057 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Transaction            = "transaction"
	Origination            = "origination"
	OriginationNew         = "origination_new"
	RegisterGlobalConstant = "register_global_constant"
)

Kind

View Source
const (
	BadParameterError             = "michelson_v1.bad_contract_parameter"
	GasExhaustedError             = "gas_exhausted.operation"
	ScriptRejectedError           = "michelson_v1.script_rejected"
	BalanceTooLowError            = "contract.balance_too_low"
	InvalidSyntacticConstantError = "invalidSyntacticConstantError"
)

Error IDs

View Source
const (
	Applied     = "applied"
	Backtracked = "backtracked"
	Pending     = "pending"
	Failed      = "failed"
	Skipped     = "skipped"
)

Statuses

View Source
const (
	MultisigScript1 = `` /* 3921-byte string literal not displayed */
	MultisigScript2 = `` /* 3877-byte string literal not displayed */
	MultisigScript3 = `` /* 3838-byte string literal not displayed */
)

Multisig -

View Source
const (
	DefaultEntrypoint  = "default"
	TransferEntrypoint = "transfer"
)

Entrypoints -

View Source
const (
	AnnotPrefixFieldName     = '%'
	AnnotPrefixrefixTypeName = ':'
)

annotations prefix

View Source
const (
	ContractFactoryTag = "CREATE_CONTRACT"
	DelegatableTag     = "SET_DELEGATE"
	DelegatorTag       = "delegator"
	ChainAwareTag      = "CHAIN_ID"
	CheckSigTag        = "CHECK_SIGNATURE"
	SaplingTag         = "sapling"
	FA1Tag             = "fa1"
	FA12Tag            = "fa1-2"
	FA2Tag             = "fa2"
	UpgradableTag      = "upgradable"
	MultisigTag        = "multisig"
	ViewAddressTag     = "view_address"
	ViewBalanceOfTag   = "view_balance_of"
	ViewNatTag         = "view_nat"
	LedgerTag          = "ledger"
)

Tags name

View Source
const (
	TypeTuple      = "tuple"
	TypeNamedTuple = "namedtuple"
	TypeEnum       = "enum"
	TypeNamedEnum  = "namedenum"
	TypeUnion      = "union"
	TypeNamedUnion = "namedunion"
)

Types

View Source
const (
	OR                 = "or"
	PAIR               = "pair"
	LAMBDA             = "lambda"
	CONTRACT           = "contract"
	OPTION             = "option"
	ADDRESS            = "address"
	NAT                = "nat"
	STRING             = "string"
	UNIT               = "unit"
	PARAMETER          = "parameter"
	STORAGE            = "storage"
	CODE               = "code"
	CREATECONTRACT     = "create_contract"
	SETDELEGATE        = "set_delegate"
	CHECKSIGNATURE     = "check_signature"
	CHAINID            = "chain_id"
	MAP                = "map"
	BIGMAP             = "big_map"
	SOME               = "some"
	LEFT               = "left"
	RIGHT              = "right"
	IF                 = "if"
	SET                = "set"
	LIST               = "list"
	KEY                = "key"
	SIGNATURE          = "signature"
	OPERATION          = "operation"
	INT                = "int"
	BYTES              = "bytes"
	MUTEZ              = "mutez"
	BOOL               = "bool"
	KEYHASH            = "key_hash"
	TIMESTAMP          = "timestamp"
	PUSH               = "push"
	ELT                = "elt"
	NONE               = "none"
	CAST               = "cast"
	RENAME             = "rename"
	SAPLINGTRANSACTION = "sapling_transaction"
	BAKERHASH          = "baker_hash"
	SAPLINGSTATE       = "sapling_state"
	NEVER              = "never"
	BLS12381FR         = "bls12_381_fr"
	BLS12381G1         = "bls12_381_g1"
	BLS12381G2         = "bls12_381_g2"
	TICKET             = "ticket"
	CONSTANT           = "constant"
	VIEW               = "VIEW"
	View               = "view"
	OPENCHEST          = "OPEN_CHEST"
	CHEST              = "chest"
	CHESTKEY           = "chest_key"
	TXROLLUPL2ADDRESS  = "tx_rollup_l2_address"
)

Primitives

View Source
const (
	Pair  = "Pair"
	Some  = "Some"
	None  = "None"
	False = "False"
	True  = "True"
	Elt   = "Elt"
	Left  = "Left"
	Right = "Right"
	Unit  = "Unit"
)

Data instructions

View Source
const (
	DefaultIndent = "  "
)

indent for printing

View Source
const (
	PrimArray = "_array"
)

custom prim

View Source
const (
	Unknown = "Unknown"
)

General

Variables

View Source
var (
	ErrInvalidPrim         = errors.New("invalid prim")
	ErrInvalidArgsCount    = errors.New("invalid args count")
	ErrUnknownPrim         = errors.New("unknown prim")
	ErrInvalidJSON         = errors.New("invalid JSON")
	ErrTreesAreDifferent   = errors.New("trees of type and value are different")
	ErrEmptyPrim           = errors.New("empty primitive")
	ErrEmptyUnforgingData  = errors.New("unforging data length is 0")
	ErrInvalidType         = errors.New("invalid type")
	ErrJSONDataIsAbsent    = errors.New("JSON data is absent")
	ErrValidation          = errors.New("validation error")
	ErrTypeIsNotComparable = errors.New("type is not comparable")
	ErrTreeIsNotSettled    = errors.New("tree is not settled")
	ErrInvalidAddress      = errors.New("invalid address")
	ErrInvalidOPGHash      = errors.New("invalid OPG hash")
	ErrUnknownPointer      = errors.New("can't find ptr")
	ErrEmptyTree           = errors.New("empty tree")
)

Errors

View Source
var (
	BeginningOfTime = time.Date(2018, 06, 30, 0, 0, 0, 0, time.UTC)
)

beginning of time

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL