types

package
v0.0.0-...-c0db43c Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountTypeUnknown = iota
	AccountTypeContract
	AccountTypeTz
	AccountTypeRollup
	AccountTypeSmartRollup
	AccountTypeGhost
)

account types

View Source
const (
	BigMapActionStringUpdate = "update"
	BigMapActionStringCopy   = "copy"
	BigMapActionStringAlloc  = "alloc"
	BigMapActionStringRemove = "remove"
)

string values

View Source
const (
	LazyStorageDiffBigMap       = "big_map"
	LazyStorageDiffSaplingState = "sapling_state"
)

lazy storage diff types

View Source
const (
	ContractFactoryStringTag   = "CREATE_CONTRACT"
	DelegatableStringTag       = "SET_DELEGATE"
	DelegatorStringTag         = "delegator"
	ChainAwareStringTag        = "CHAIN_ID"
	CheckSigStringTag          = "CHECK_SIGNATURE"
	SaplingStringTag           = "sapling"
	FA1StringTag               = "fa1"
	FA12StringTag              = "fa1-2"
	FA2StringTag               = "fa2"
	UpgradableStringTag        = "upgradable"
	MultisigStringTag          = "multisig"
	ViewAddressStringTag       = "view_address"
	ViewBalanceOfStringTag     = "view_balance_of"
	ViewNatStringTag           = "view_nat"
	LedgerStringTag            = "ledger"
	ImplicitOperationStringTag = "implicit_operation"
)

Tags name

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountType

type AccountType int

AccountType -

func NewAccountType

func NewAccountType(address string) AccountType

NewAccountType -

func (AccountType) String

func (typ AccountType) String() string

String -

type BigMapAction

type BigMapAction int

BigMapAction -

const (
	BigMapActionAlloc BigMapAction = iota + 1
	BigMapActionUpdate
	BigMapActionCopy
	BigMapActionRemove
)

int values

func NewBigMapAction

func NewBigMapAction(value string) BigMapAction

NewBigMapAction -

func (BigMapAction) String

func (action BigMapAction) String() string

String -

type Bytes

type Bytes stdJSON.RawMessage

Bytes -

func MustNewBytes

func MustNewBytes(str string) Bytes

MustNewBytes -

func (Bytes) MarshalJSON

func (b Bytes) MarshalJSON() ([]byte, error)

MarshalJSON returns b as the JSON encoding of b.

func (*Bytes) UnmarshalJSON

func (b *Bytes) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *b to a copy of data.

type MigrationKind

type MigrationKind int

MigrationKind -

const (
	MigrationKindBootstrap MigrationKind = iota + 1
	MigrationKindLambda
	MigrationKindUpdate
)

func NewMigrationKind

func NewMigrationKind(value string) MigrationKind

NewMigrationKind -

func (MigrationKind) String

func (kind MigrationKind) String() string

String -

type Network

type Network int64

Network -

const (
	Empty Network = iota
	Mainnet
	Carthagenet
	Delphinet
	Edo2net
	Florencenet
	Granadanet
	Sandboxnet
	Hangzhounet
	Hangzhou2net
	Ithacanet
	Jakartanet
	Ghostnet
	Kathmandunet
	Limanet
	Mondaynet
	Dailynet
	Mumbainet
	Rollupnet
	Nairobinet
	Oxfordnet
	Weeklynet
	Parisnet
	Quebecnet
	Rionet
	Seoulnet
	Shadownet
	Tallinnnet
	Ushuaianet
	TezosxPreviewnet
	EtherlinkMainnet
	EtherlinkShadownet
)

Network names

func NewNetwork

func NewNetwork(name string) Network

NewNetwork -

func (Network) MarshalJSON

func (network Network) MarshalJSON() ([]byte, error)

MarshalJSON -

func (Network) String

func (network Network) String() string

String - convert enum to string for printing

func (*Network) UnmarshalJSON

func (network *Network) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type Networks

type Networks []Network

Networks -

func (Networks) Len

func (n Networks) Len() int

func (Networks) Less

func (n Networks) Less(i, j int) bool

func (Networks) Swap

func (n Networks) Swap(i, j int)

type NullString

type NullString struct {
	Str   string
	Valid bool // Valid is true if Str is not NULL
}

NullString represents a string that may be null. NullString implements the Scanner interface so it can be used as a scan destination

func NewNullString

func NewNullString(val *string) NullString

NewNullString -

func (NullString) EqualString

func (ns NullString) EqualString(value string) bool

EqualString -

func (NullString) MarshalJSON

func (ns NullString) MarshalJSON() ([]byte, error)

MarshalJSON -

func (*NullString) Scan

func (ns *NullString) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullString) Set

func (ns *NullString) Set(value interface{}) error

Set -

func (NullString) String

func (ns NullString) String() string

String -

func (*NullString) UnmarshalJSON

func (ns *NullString) UnmarshalJSON(data []byte) error

UnmarshalJSON -

func (NullString) Value

func (ns NullString) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type OperationKind

type OperationKind int

OperationKind -

const (
	OperationKindTransaction OperationKind = iota + 1
	OperationKindOrigination
	OperationKindOriginationNew
	OperationKindDelegation
	OperationKindRegisterGlobalConstant
	OperationKindTxRollupOrigination
	OperationKindEvent
	OperationKindTransferTicket
	OperationKindSrOrigination
	OperationKindSrExecuteOutboxMessage
)

func NewOperationKind

func NewOperationKind(value string) OperationKind

NewOperationKind -

func (OperationKind) String

func (kind OperationKind) String() string

String -

type OperationStatus

type OperationStatus int

OperationStatus -

const (
	OperationStatusApplied OperationStatus = iota + 1
	OperationStatusBacktracked
	OperationStatusFailed
	OperationStatusSkipped
)

func NewOperationStatus

func NewOperationStatus(value string) OperationStatus

NewOperationStatus -

func (OperationStatus) String

func (status OperationStatus) String() string

String -

type Tags

type Tags int64

Tags -

const (
	ContractFactoryTag Tags = 1 << iota
	DelegatableTag
	DelegatorTag
	ChainAwareTag
	CheckSigTag
	SaplingTag
	FA1Tag
	FA12Tag
	FA2Tag
	UpgradableTag
	MultisigTag
	ViewAddressTag
	ViewBalanceOfTag
	ViewNatTag
	LedgerTag
	ImplicitOperationTag
)

Tags

func NewTags

func NewTags(value []string) Tags

NewTags -

func (*Tags) Clear

func (t *Tags) Clear(flag Tags)

Clear -

func (*Tags) Has

func (t *Tags) Has(flag Tags) bool

Has -

func (*Tags) Set

func (t *Tags) Set(flag Tags)

Set -

func (Tags) ToArray

func (t Tags) ToArray() []string

String -

func (*Tags) Toggle

func (t *Tags) Toggle(flag Tags)

Toggle -

Jump to

Keyboard shortcuts

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