codec

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EmmyBlockWatermark                byte = 1 // deprecated
	EmmyEndorsementWatermark          byte = 2 // deprecated
	OperationWatermark                byte = 3
	TenderbakeBlockWatermark          byte = 11
	TenderbakePreendorsementWatermark byte = 12
	TenderbakeEndorsementWatermark    byte = 13
)

Variables

This section is empty.

Functions

func CalculateMinFee

func CalculateMinFee(o Operation, gas int64, withHeader bool, p *tezos.Params) int64

CalculateMinFee returns the minimum fee at/above which bakers will accept this operation under default config settings. Lower fee operations may not pass the fee filter and may time out in the mempool.

Types

type ActivateAccount

type ActivateAccount struct {
	Simple
	PublicKeyHash tezos.Address  `json:"pkh"`
	Secret        tezos.HexBytes `json:"secret"`
}

ActivateAccount represents "activate_account" operation

func (*ActivateAccount) DecodeBuffer

func (o *ActivateAccount) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (ActivateAccount) EncodeBuffer

func (o ActivateAccount) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (ActivateAccount) Kind

func (o ActivateAccount) Kind() tezos.OpType

func (ActivateAccount) MarshalBinary

func (o ActivateAccount) MarshalBinary() ([]byte, error)

func (ActivateAccount) MarshalJSON

func (o ActivateAccount) MarshalJSON() ([]byte, error)

func (*ActivateAccount) UnmarshalBinary

func (o *ActivateAccount) UnmarshalBinary(data []byte) error

type Ballot

type Ballot struct {
	Simple
	Source   tezos.Address      `json:"source"`
	Period   int32              `json:"period"`
	Proposal tezos.ProtocolHash `json:"proposal"`
	Ballot   tezos.BallotVote   `json:"ballot"`
}

Ballot represents "ballot" operation

func (*Ballot) DecodeBuffer

func (o *Ballot) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Ballot) EncodeBuffer

func (o Ballot) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (Ballot) Kind

func (o Ballot) Kind() tezos.OpType

func (Ballot) MarshalBinary

func (o Ballot) MarshalBinary() ([]byte, error)

func (Ballot) MarshalJSON

func (o Ballot) MarshalJSON() ([]byte, error)

func (*Ballot) UnmarshalBinary

func (o *Ballot) UnmarshalBinary(data []byte) error

type BlockHeader

type BlockHeader struct {
	Level            int32                `json:"level"`
	Proto            byte                 `json:"proto"`
	Predecessor      tezos.BlockHash      `json:"predecessor"`
	Timestamp        time.Time            `json:"timestamp"`
	ValidationPass   byte                 `json:"validation_pass"`
	OperationsHash   tezos.OpListListHash `json:"operations_hash"`
	Fitness          []tezos.HexBytes     `json:"fitness"`
	Context          tezos.ContextHash    `json:"context"`
	PayloadHash      tezos.PayloadHash    `json:"payload_hash"`
	PayloadRound     int                  `json:"payload_round"`
	ProofOfWorkNonce tezos.HexBytes       `json:"proof_of_work_nonce"`
	SeedNonceHash    tezos.NonceHash      `json:"seed_nonce_hash"`
	LbToggleVote     tezos.LbVote         `json:"liquidity_baking_toggle_vote"`
	Signature        tezos.Signature      `json:"signature"`
	ChainId          *tezos.ChainIdHash   `json:"-"` // remote signer use only
}

BlockHeader represents a Tenderbake compatible block header

func (BlockHeader) Bytes

func (h BlockHeader) Bytes() []byte

Bytes serializes the block header into binary form. When no signature is set, the result can be used as input for signing, if a signature is set the result is ready for broadcast.

func (*BlockHeader) DecodeBuffer

func (h *BlockHeader) DecodeBuffer(buf *bytes.Buffer) (err error)

func (BlockHeader) Digest

func (h BlockHeader) Digest() []byte

Digest returns a 32 byte blake2b hash for signing the block header. The pre-image is binary serialized (without signature) and prefixed with a watermark byte.

func (*BlockHeader) EncodeBuffer

func (h *BlockHeader) EncodeBuffer(buf *bytes.Buffer) error

func (BlockHeader) MarshalBinary

func (h BlockHeader) MarshalBinary() ([]byte, error)

func (BlockHeader) MarshalJSON

func (h BlockHeader) MarshalJSON() ([]byte, error)

func (*BlockHeader) Sign

func (h *BlockHeader) Sign(key tezos.PrivateKey) error

Sign signs the block header using a private key and generates a generic signature. If a valid signature already exists, this function is a noop.

func (*BlockHeader) UnmarshalBinary

func (h *BlockHeader) UnmarshalBinary(data []byte) error

func (BlockHeader) WatermarkedBytes

func (h BlockHeader) WatermarkedBytes() []byte

WatermarkedBytes serializes the block header and prefixes it with a watermark. This format is only used for signing.

func (*BlockHeader) WithChainId

func (h *BlockHeader) WithChainId(id tezos.ChainIdHash) *BlockHeader

WithChainId sets chain_id for this block to id. Use this only for remote signing of blocks as it creates an invalid binary encoding otherwise.

func (*BlockHeader) WithSignature

func (h *BlockHeader) WithSignature(sig tezos.Signature) *BlockHeader

WithSignature adds an externally created signature to the block header. Converts any non-generic signature first. No signature validation is performed, it is assumed the signature is correct.

type DalAttestation

type DalAttestation struct {
	Simple
	Attestor    tezos.Address `json:"attestor"`
	Attestation tezos.Z       `json:"attestation"`
	Level       int32         `json:"level"`
}

DalAttestation represents "dal_attestation" operation

func (*DalAttestation) DecodeBuffer

func (o *DalAttestation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (DalAttestation) EncodeBuffer

func (o DalAttestation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (DalAttestation) Kind

func (o DalAttestation) Kind() tezos.OpType

func (DalAttestation) MarshalBinary

func (o DalAttestation) MarshalBinary() ([]byte, error)

func (DalAttestation) MarshalJSON

func (o DalAttestation) MarshalJSON() ([]byte, error)

func (*DalAttestation) UnmarshalBinary

func (o *DalAttestation) UnmarshalBinary(data []byte) error

type DalPublishSlotHeader

type DalPublishSlotHeader struct {
	Manager
	Level      int32          `json:"level"`
	Index      byte           `json:"index"`
	Commitment tezos.HexBytes `json:"commitment"`
	Proof      tezos.HexBytes `json:"commitment_proof"`
}

DalPublishSlotHeader represents "Dal_publish_slot_header" operation

func (*DalPublishSlotHeader) DecodeBuffer

func (o *DalPublishSlotHeader) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (DalPublishSlotHeader) EncodeBuffer

func (o DalPublishSlotHeader) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (DalPublishSlotHeader) Kind

func (DalPublishSlotHeader) MarshalBinary

func (o DalPublishSlotHeader) MarshalBinary() ([]byte, error)

func (DalPublishSlotHeader) MarshalJSON

func (o DalPublishSlotHeader) MarshalJSON() ([]byte, error)

func (*DalPublishSlotHeader) UnmarshalBinary

func (o *DalPublishSlotHeader) UnmarshalBinary(data []byte) error

type Delegation

type Delegation struct {
	Manager
	Delegate tezos.Address `json:"delegate"`
}

Delegation represents "delegation" operation

func (*Delegation) DecodeBuffer

func (o *Delegation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Delegation) EncodeBuffer

func (o Delegation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (Delegation) Kind

func (o Delegation) Kind() tezos.OpType

func (Delegation) MarshalBinary

func (o Delegation) MarshalBinary() ([]byte, error)

func (Delegation) MarshalJSON

func (o Delegation) MarshalJSON() ([]byte, error)

func (*Delegation) UnmarshalBinary

func (o *Delegation) UnmarshalBinary(data []byte) error

type DoubleBakingEvidence

type DoubleBakingEvidence struct {
	Simple
	Bh1 BlockHeader `json:"bh1"`
	Bh2 BlockHeader `json:"bh2"`
}

DoubleBakingEvidence represents "double_baking_evidence" operation

func (*DoubleBakingEvidence) DecodeBuffer

func (o *DoubleBakingEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (DoubleBakingEvidence) EncodeBuffer

func (o DoubleBakingEvidence) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (DoubleBakingEvidence) Kind

func (DoubleBakingEvidence) MarshalBinary

func (o DoubleBakingEvidence) MarshalBinary() ([]byte, error)

func (DoubleBakingEvidence) MarshalJSON

func (o DoubleBakingEvidence) MarshalJSON() ([]byte, error)

func (*DoubleBakingEvidence) UnmarshalBinary

func (o *DoubleBakingEvidence) UnmarshalBinary(data []byte) error

type DoubleEndorsementEvidence

type DoubleEndorsementEvidence struct {
	Simple
	Op1  InlinedEndorsement `json:"op1"`
	Op2  InlinedEndorsement `json:"op2"`
	Slot int16              `json:"slot"`
}

DoubleEndorsementEvidence represents "double_endorsement_evidence" operation

func (*DoubleEndorsementEvidence) DecodeBuffer

func (o *DoubleEndorsementEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (DoubleEndorsementEvidence) EncodeBuffer

func (o DoubleEndorsementEvidence) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (DoubleEndorsementEvidence) Kind

func (DoubleEndorsementEvidence) MarshalBinary

func (o DoubleEndorsementEvidence) MarshalBinary() ([]byte, error)

func (DoubleEndorsementEvidence) MarshalJSON

func (o DoubleEndorsementEvidence) MarshalJSON() ([]byte, error)

func (*DoubleEndorsementEvidence) UnmarshalBinary

func (o *DoubleEndorsementEvidence) UnmarshalBinary(data []byte) error

type DrainDelegate

type DrainDelegate struct {
	Simple
	ConsensusKey tezos.Address `json:"consensus_key"`
	Delegate     tezos.Address `json:"delegate"`
	Destination  tezos.Address `json:"destination"`
}

DrainDelegate represents "drain_delegate" operation

func (*DrainDelegate) DecodeBuffer

func (o *DrainDelegate) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (DrainDelegate) EncodeBuffer

func (o DrainDelegate) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (DrainDelegate) Kind

func (o DrainDelegate) Kind() tezos.OpType

func (DrainDelegate) MarshalBinary

func (o DrainDelegate) MarshalBinary() ([]byte, error)

func (DrainDelegate) MarshalJSON

func (o DrainDelegate) MarshalJSON() ([]byte, error)

func (*DrainDelegate) UnmarshalBinary

func (o *DrainDelegate) UnmarshalBinary(data []byte) error

type Endorsement

type Endorsement struct {
	Simple
	Level int32 `json:"level"`
}

Endorsement represents "endorsement" operation

func (*Endorsement) DecodeBuffer

func (o *Endorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Endorsement) EncodeBuffer

func (o Endorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (Endorsement) Kind

func (o Endorsement) Kind() tezos.OpType

func (Endorsement) MarshalBinary

func (o Endorsement) MarshalBinary() ([]byte, error)

func (Endorsement) MarshalJSON

func (o Endorsement) MarshalJSON() ([]byte, error)

func (*Endorsement) UnmarshalBinary

func (o *Endorsement) UnmarshalBinary(data []byte) error

type EndorsementWithSlot

type EndorsementWithSlot struct {
	Simple
	Endorsement InlinedEndorsement `json:"endorsement"`
	Slot        int16              `json:"slot"`
}

EndorsementWithSlot represents "endorsement_with_slot" operation

func (*EndorsementWithSlot) DecodeBuffer

func (o *EndorsementWithSlot) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (EndorsementWithSlot) EncodeBuffer

func (o EndorsementWithSlot) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (EndorsementWithSlot) Kind

func (o EndorsementWithSlot) Kind() tezos.OpType

func (EndorsementWithSlot) MarshalBinary

func (o EndorsementWithSlot) MarshalBinary() ([]byte, error)

func (EndorsementWithSlot) MarshalJSON

func (o EndorsementWithSlot) MarshalJSON() ([]byte, error)

func (*EndorsementWithSlot) UnmarshalBinary

func (o *EndorsementWithSlot) UnmarshalBinary(data []byte) error

type FailingNoop

type FailingNoop struct {
	Simple
	Arbitrary string `json:"arbitrary"`
}

FailingNoop represents "failing_noop" operations. Used for signing arbitrary messages and guaranteed to be not included on-chain. This prevents an attack vector where a message is crafted which looks like a regular transaction.

func (*FailingNoop) DecodeBuffer

func (o *FailingNoop) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (FailingNoop) EncodeBuffer

func (o FailingNoop) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (FailingNoop) Kind

func (o FailingNoop) Kind() tezos.OpType

func (FailingNoop) MarshalBinary

func (o FailingNoop) MarshalBinary() ([]byte, error)

func (FailingNoop) MarshalJSON

func (o FailingNoop) MarshalJSON() ([]byte, error)

func (*FailingNoop) UnmarshalBinary

func (o *FailingNoop) UnmarshalBinary(data []byte) error

type IncreasePaidStorage

type IncreasePaidStorage struct {
	Manager
	Amount      tezos.Z       `json:"amount"`
	Destination tezos.Address `json:"destination"`
}

IncreasePaidStorage represents "increase_paid_storage" operation

func (*IncreasePaidStorage) DecodeBuffer

func (o *IncreasePaidStorage) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (IncreasePaidStorage) EncodeBuffer

func (o IncreasePaidStorage) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (IncreasePaidStorage) Kind

func (o IncreasePaidStorage) Kind() tezos.OpType

func (IncreasePaidStorage) MarshalBinary

func (o IncreasePaidStorage) MarshalBinary() ([]byte, error)

func (IncreasePaidStorage) MarshalJSON

func (o IncreasePaidStorage) MarshalJSON() ([]byte, error)

func (*IncreasePaidStorage) UnmarshalBinary

func (o *IncreasePaidStorage) UnmarshalBinary(data []byte) error

type InlinedEndorsement

type InlinedEndorsement struct {
	Branch      tezos.BlockHash `json:"branch"`
	Endorsement Endorsement     `json:"operations"`
	Signature   tezos.Signature `json:"signature"`
}

InlinedEndorsement represents inlined endorsement operation with signature. This type is uses as part of other operations, but is not a stand-alone operation.

func (*InlinedEndorsement) DecodeBuffer

func (o *InlinedEndorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (InlinedEndorsement) EncodeBuffer

func (o InlinedEndorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (InlinedEndorsement) MarshalJSON

func (o InlinedEndorsement) MarshalJSON() ([]byte, error)

type Manager

type Manager struct {
	Source       tezos.Address `json:"source"`
	Fee          tezos.N       `json:"fee"`
	Counter      tezos.N       `json:"counter"`
	GasLimit     tezos.N       `json:"gas_limit"`
	StorageLimit tezos.N       `json:"storage_limit"`
}

Manager contains fields common for all manager operations

func (*Manager) DecodeBuffer

func (o *Manager) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Manager) EncodeBuffer

func (o Manager) EncodeBuffer(buf *bytes.Buffer, _ *tezos.Params) error

func (Manager) EncodeJSON

func (o Manager) EncodeJSON(buf *bytes.Buffer) error

func (Manager) GetCounter

func (o Manager) GetCounter() int64

func (Manager) Limits

func (o Manager) Limits() tezos.Limits

func (*Manager) WithCounter

func (o *Manager) WithCounter(c int64)

func (*Manager) WithLimits

func (o *Manager) WithLimits(limits tezos.Limits)

func (*Manager) WithSource

func (o *Manager) WithSource(addr tezos.Address)

type Op

type Op struct {
	Branch    tezos.BlockHash    `json:"branch"`    // used for TTL handling
	Contents  []Operation        `json:"contents"`  // non-zero list of transactions
	Signature tezos.Signature    `json:"signature"` // added during the lifecycle
	ChainId   *tezos.ChainIdHash `json:"-"`         // optional, used for remote signing only
	TTL       int64              `json:"-"`         // optional, specify TTL in blocks
	Params    *tezos.Params      `json:"-"`         // optional, define protocol to encode for
	Source    tezos.Address      `json:"-"`         // optional, used as manager/sender
}

Op is a container used to collect, serialize and sign Tezos operations. It serves as a low level building block for constructing and serializing operations, but is agnostic to the order/lifecycle in which data is added or updated.

func DecodeOp

func DecodeOp(data []byte) (*Op, error)

DecodeOp decodes an operation from its binary representation. The encoded data may or may not contain a signature.

func NewOp

func NewOp() *Op

NewOp creates a new empty operation that uses default params and a default operation TTL.

func (*Op) Bytes

func (o *Op) Bytes() []byte

Bytes serializes the operation into binary form. When no signature is set, the result can be used as input for signing, if a signature is set the result is ready to be broadcast. Returns a nil slice when branch or contents are empty.

func (*Op) Digest

func (o *Op) Digest() []byte

Digest returns a 32 byte blake2b hash for signing the operation. The pre-image is the binary serialized operation (without signature) prefixed with a type-dependent watermark byte.

func (Op) Limits

func (o Op) Limits() tezos.Limits

Limits returns the sum of all limits (fee, gas, storage limit) currently set for all contained operations.

func (*Op) MarshalJSON

func (o *Op) MarshalJSON() ([]byte, error)

MarshalJSON conditionally marshals the JSON format of the operation with checks for required fields. Omits signature for unsigned ops so that the encoding is compatible with remote forging.

func (Op) NeedCounter

func (o Op) NeedCounter() bool

NeedCounter returns true if any of the contained operations has not assigned a valid counter value.

func (*Op) Sign

func (o *Op) Sign(key tezos.PrivateKey) error

Sign signs the operation using provided private key. If a valid signature already exists this function is a noop. Fails when either branch or contents are empty.

func (*Op) WatermarkedBytes

func (o *Op) WatermarkedBytes() []byte

WatermarkedBytes serializes the operation and prefixes it with a watermark. This format is only used for signing. Watermarked data is not useful anywhere else.

func (*Op) WithBranch

func (o *Op) WithBranch(hash tezos.BlockHash) *Op

WithBranch sets the branch for this operation to hash.

func (*Op) WithCall

func (o *Op) WithCall(to tezos.Address, params micheline.Parameters) *Op

WithCall adds a contract call transaction to the contents list.

func (*Op) WithCallExt

func (o *Op) WithCallExt(to tezos.Address, params micheline.Parameters, amount int64) *Op

WithCallExt adds a contract call with value transfer transaction to the contents list.

func (*Op) WithChainId

func (o *Op) WithChainId(id tezos.ChainIdHash) *Op

WithChainId sets chain_id for this operation to id. Use this only for remote signing of (pre)endorsements as it creates an invalid binary encoding otherwise.

func (*Op) WithContents

func (o *Op) WithContents(op Operation) *Op

WithContents adds a Tezos operation to the end of the contents list.

func (*Op) WithContentsFront

func (o *Op) WithContentsFront(op Operation) *Op

WithContentsFront adds a Tezos operation to the front of the contents list.

func (*Op) WithDelegation

func (o *Op) WithDelegation(to tezos.Address) *Op

WithDelegation adds a delegation transaction to the contents list.

func (*Op) WithLimits

func (o *Op) WithLimits(limits []tezos.Limits, margin int64) *Op

WithLimits sets the limits (fee, gas and storage limit) of each contained operation to provided limits. Use this to apply values from simulation with an optional safety margin on gas. This will also calculate the minFee for each operation in the list and add the minFee for header bytes (branch and signature) to the first operation in a list.

Setting a user-defined fee for each individual operation is only honored when its higher than minFee. Note that when sending batch operations all fees must be >= the individual minFee. Otherwise the minFee rule will apply to all zero/lower fee operations and the entire batch may overpay (e.g. if you have the first operation pay all fees for example and set remaining fees to zero).

func (*Op) WithMinFee

func (o *Op) WithMinFee() *Op

func (*Op) WithOrigination

func (o *Op) WithOrigination(script micheline.Script) *Op

WithOrigination adds a contract origination transaction to the contents list.

func (*Op) WithOriginationExt

func (o *Op) WithOriginationExt(script micheline.Script, baker tezos.Address, amount int64) *Op

WithOriginationExt adds a contract origination transaction with optional delegation to baker and an optional value transfer to the contents list.

func (*Op) WithParams

func (o *Op) WithParams(p *tezos.Params) *Op

WithParams defines the protocol and other chain configuration params for which the operation will be encoded. If unset, defaults to tezos.DefaultParams.

func (*Op) WithRegisterBaker

func (o *Op) WithRegisterBaker() *Op

WithRegisterBaker adds a delegation transaction that registers the caller as baker to the contents list.

func (*Op) WithRegisterConstant

func (o *Op) WithRegisterConstant(value micheline.Prim) *Op

WithRegisterConstant adds a global constant registration transaction to the contents list.

func (*Op) WithSignature

func (o *Op) WithSignature(sig tezos.Signature) *Op

WithSignature adds an externally created signature to the operation. No signature validation is performed, it is assumed the signature is correct.

func (*Op) WithSource

func (o *Op) WithSource(addr tezos.Address) *Op

WithSource sets the source for all manager operations to addr.

func (*Op) WithTTL

func (o *Op) WithTTL(n int64) *Op

WithTTL sets a time-to-live for the operation in number of blocks. This may be used as a convenience method instead of setting a branch directly, but requires to use an autocomplete handler, wallet or custom function that fetches the hash of block head~N as branch. Note that serialization will fail until a brach is set.

func (*Op) WithTransfer

func (o *Op) WithTransfer(to tezos.Address, amount int64) *Op

WithTransfer adds a simple value transfer transaction to the contents list.

func (*Op) WithUndelegation

func (o *Op) WithUndelegation() *Op

WithUndelegation adds a delegation transaction that resets the callers baker to null to the contents list.

type Operation

type Operation interface {
	Kind() tezos.OpType
	Limits() tezos.Limits
	GetCounter() int64
	WithSource(tezos.Address)
	WithCounter(int64)
	WithLimits(tezos.Limits)
	encoding.BinaryMarshaler
	encoding.BinaryUnmarshaler
	MarshalJSON() ([]byte, error)
	EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
	DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
}

Operation is a generic type used to handle different Tezos operation types inside an operation's contents list.

type Origination

type Origination struct {
	Manager
	Balance  tezos.N          `json:"balance"`
	Delegate tezos.Address    `json:"delegate,omitempty"`
	Script   micheline.Script `json:"script"`
}

Origination represents "origination" operation

func (*Origination) DecodeBuffer

func (o *Origination) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Origination) EncodeBuffer

func (o Origination) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (Origination) Kind

func (o Origination) Kind() tezos.OpType

func (Origination) MarshalBinary

func (o Origination) MarshalBinary() ([]byte, error)

func (Origination) MarshalJSON

func (o Origination) MarshalJSON() ([]byte, error)

func (*Origination) UnmarshalBinary

func (o *Origination) UnmarshalBinary(data []byte) error

type Proposals

type Proposals struct {
	Simple
	Source    tezos.Address        `json:"source"`
	Period    int32                `json:"period"`
	Proposals []tezos.ProtocolHash `json:"proposals"`
}

Proposals represents "proposals" operation

func (*Proposals) DecodeBuffer

func (o *Proposals) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Proposals) EncodeBuffer

func (o Proposals) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (Proposals) Kind

func (o Proposals) Kind() tezos.OpType

func (Proposals) MarshalBinary

func (o Proposals) MarshalBinary() ([]byte, error)

func (Proposals) MarshalJSON

func (o Proposals) MarshalJSON() ([]byte, error)

func (*Proposals) UnmarshalBinary

func (o *Proposals) UnmarshalBinary(data []byte) error

type RegisterGlobalConstant

type RegisterGlobalConstant struct {
	Manager
	Value micheline.Prim `json:"value"`
}

RegisterGlobalConstant represents "register_global_constant" operation

func (*RegisterGlobalConstant) DecodeBuffer

func (o *RegisterGlobalConstant) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (RegisterGlobalConstant) EncodeBuffer

func (o RegisterGlobalConstant) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (RegisterGlobalConstant) Kind

func (RegisterGlobalConstant) MarshalBinary

func (o RegisterGlobalConstant) MarshalBinary() ([]byte, error)

func (RegisterGlobalConstant) MarshalJSON

func (o RegisterGlobalConstant) MarshalJSON() ([]byte, error)

func (*RegisterGlobalConstant) UnmarshalBinary

func (o *RegisterGlobalConstant) UnmarshalBinary(data []byte) error

type Reveal

type Reveal struct {
	Manager
	PublicKey tezos.Key `json:"public_key"`
}

Reveal represents "reveal" operation

func (*Reveal) DecodeBuffer

func (o *Reveal) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Reveal) EncodeBuffer

func (o Reveal) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (Reveal) Kind

func (o Reveal) Kind() tezos.OpType

func (Reveal) MarshalBinary

func (o Reveal) MarshalBinary() ([]byte, error)

func (Reveal) MarshalJSON

func (o Reveal) MarshalJSON() ([]byte, error)

func (*Reveal) UnmarshalBinary

func (o *Reveal) UnmarshalBinary(data []byte) error

type SeedNonceRevelation

type SeedNonceRevelation struct {
	Simple
	Level int32          `json:"level"`
	Nonce tezos.HexBytes `json:"nonce"`
}

SeedNonceRevelation represents "seed_nonce_revelation" operation

func (*SeedNonceRevelation) DecodeBuffer

func (o *SeedNonceRevelation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SeedNonceRevelation) EncodeBuffer

func (o SeedNonceRevelation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SeedNonceRevelation) Kind

func (o SeedNonceRevelation) Kind() tezos.OpType

func (SeedNonceRevelation) MarshalBinary

func (o SeedNonceRevelation) MarshalBinary() ([]byte, error)

func (SeedNonceRevelation) MarshalJSON

func (o SeedNonceRevelation) MarshalJSON() ([]byte, error)

func (*SeedNonceRevelation) UnmarshalBinary

func (o *SeedNonceRevelation) UnmarshalBinary(data []byte) error

type SetDepositsLimit

type SetDepositsLimit struct {
	Manager
	Limit *tezos.N `json:"limit,omitempty"`
}

SetDepositsLimit represents "set_deposits_limit" operation

func (*SetDepositsLimit) DecodeBuffer

func (o *SetDepositsLimit) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SetDepositsLimit) EncodeBuffer

func (o SetDepositsLimit) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SetDepositsLimit) Kind

func (o SetDepositsLimit) Kind() tezos.OpType

func (SetDepositsLimit) MarshalBinary

func (o SetDepositsLimit) MarshalBinary() ([]byte, error)

func (SetDepositsLimit) MarshalJSON

func (o SetDepositsLimit) MarshalJSON() ([]byte, error)

func (*SetDepositsLimit) UnmarshalBinary

func (o *SetDepositsLimit) UnmarshalBinary(data []byte) error

type Simple

type Simple struct{}

Simple is an empty helper struct that's used to fulfil the Operation interface for anonymous, consensus and voting operations which do not contain fees and counter.

func (Simple) GetCounter

func (o Simple) GetCounter() int64

func (*Simple) Limits

func (o *Simple) Limits() tezos.Limits

func (*Simple) WithCounter

func (o *Simple) WithCounter(int64)

func (*Simple) WithLimits

func (o *Simple) WithLimits(tezos.Limits)

func (*Simple) WithSource

func (o *Simple) WithSource(tezos.Address)

type SmartRollupAddMessages

type SmartRollupAddMessages struct {
	Manager
	Messages []tezos.HexBytes `json:"messages"`
}

SmartRollupAddMessages represents "smart_rollup_add_messages" operation

func (*SmartRollupAddMessages) DecodeBuffer

func (o *SmartRollupAddMessages) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupAddMessages) EncodeBuffer

func (o SmartRollupAddMessages) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupAddMessages) Kind

func (SmartRollupAddMessages) MarshalBinary

func (o SmartRollupAddMessages) MarshalBinary() ([]byte, error)

func (SmartRollupAddMessages) MarshalJSON

func (o SmartRollupAddMessages) MarshalJSON() ([]byte, error)

func (*SmartRollupAddMessages) UnmarshalBinary

func (o *SmartRollupAddMessages) UnmarshalBinary(data []byte) error

type SmartRollupCement

type SmartRollupCement struct {
	Manager
	Rollup     tezos.Address               `json:"rollup"`
	Commitment tezos.SmartRollupCommitHash `json:"commitment"`
}

SmartRollupCement represents "smart_rollup_cement" operation

func (*SmartRollupCement) DecodeBuffer

func (o *SmartRollupCement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupCement) EncodeBuffer

func (o SmartRollupCement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupCement) Kind

func (o SmartRollupCement) Kind() tezos.OpType

func (SmartRollupCement) MarshalBinary

func (o SmartRollupCement) MarshalBinary() ([]byte, error)

func (SmartRollupCement) MarshalJSON

func (o SmartRollupCement) MarshalJSON() ([]byte, error)

func (*SmartRollupCement) UnmarshalBinary

func (o *SmartRollupCement) UnmarshalBinary(data []byte) error

type SmartRollupExecuteOutboxMessage

type SmartRollupExecuteOutboxMessage struct {
	Manager
	Rollup   tezos.Address               `json:"rollup"`
	Cemented tezos.SmartRollupCommitHash `json:"cemented_commitment"`
	Proof    tezos.HexBytes              `json:"output_proof"`
}

SmartRollupExecuteOutboxMessage represents "smart_rollup_execute_outbox_message" operation

func (*SmartRollupExecuteOutboxMessage) DecodeBuffer

func (o *SmartRollupExecuteOutboxMessage) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupExecuteOutboxMessage) EncodeBuffer

func (o SmartRollupExecuteOutboxMessage) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupExecuteOutboxMessage) Kind

func (SmartRollupExecuteOutboxMessage) MarshalBinary

func (o SmartRollupExecuteOutboxMessage) MarshalBinary() ([]byte, error)

func (SmartRollupExecuteOutboxMessage) MarshalJSON

func (o SmartRollupExecuteOutboxMessage) MarshalJSON() ([]byte, error)

func (*SmartRollupExecuteOutboxMessage) UnmarshalBinary

func (o *SmartRollupExecuteOutboxMessage) UnmarshalBinary(data []byte) error

type SmartRollupInputProof

type SmartRollupInputProof struct {
	Kind    string         `json:"input_proof_kind"`
	Level   int64          `json:"level"`
	Counter tezos.Z        `json:"message_counter"`
	Proof   tezos.HexBytes `json:"serialized_proof"`
}

type SmartRollupOriginate

type SmartRollupOriginate struct {
	Manager
	Pvm    tezos.PvmKind  `json:"pvm_kind"`
	Kernel tezos.HexBytes `json:"kernel"`
	Proof  tezos.HexBytes `json:"origination_proof"`
	Type   micheline.Prim `json:"parameters_ty"`
}

SmartRollupOriginate represents "smart_rollup_originate" operation

func (*SmartRollupOriginate) DecodeBuffer

func (o *SmartRollupOriginate) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupOriginate) EncodeBuffer

func (o SmartRollupOriginate) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupOriginate) Kind

func (SmartRollupOriginate) MarshalBinary

func (o SmartRollupOriginate) MarshalBinary() ([]byte, error)

func (SmartRollupOriginate) MarshalJSON

func (o SmartRollupOriginate) MarshalJSON() ([]byte, error)

func (*SmartRollupOriginate) UnmarshalBinary

func (o *SmartRollupOriginate) UnmarshalBinary(data []byte) error

type SmartRollupProof

type SmartRollupProof struct {
	PvmStep    tezos.HexBytes        `json:"pvm_step"`
	InputProof SmartRollupInputProof `json:"input_proof"`
}

type SmartRollupPublish

type SmartRollupPublish struct {
	Manager
	Rollup     tezos.Address `json:"rollup"`
	Commitment struct {
		State         tezos.SmartRollupStateHash `json:"compressed_state"`
		InboxLevel    int32                      `json:"inbox_level"`
		Predecessor   tezos.SmartRollupStateHash `json:"predecessor"`
		NumberOfTicks int64                      `json:"number_of_ticks,string"`
	} `json:"commitment"`
}

SmartRollupPublish represents "smart_rollup_publish" operation

func (*SmartRollupPublish) DecodeBuffer

func (o *SmartRollupPublish) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupPublish) EncodeBuffer

func (o SmartRollupPublish) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupPublish) Kind

func (o SmartRollupPublish) Kind() tezos.OpType

func (SmartRollupPublish) MarshalBinary

func (o SmartRollupPublish) MarshalBinary() ([]byte, error)

func (SmartRollupPublish) MarshalJSON

func (o SmartRollupPublish) MarshalJSON() ([]byte, error)

func (*SmartRollupPublish) UnmarshalBinary

func (o *SmartRollupPublish) UnmarshalBinary(data []byte) error

type SmartRollupRecoverBond

type SmartRollupRecoverBond struct {
	Manager
	Rollup tezos.Address `json:"rollup"`
	Staker tezos.Address `json:"staker"`
}

SmartRollupRecoverBond represents "smart_rollup_recover_bond" operation

func (*SmartRollupRecoverBond) DecodeBuffer

func (o *SmartRollupRecoverBond) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupRecoverBond) EncodeBuffer

func (o SmartRollupRecoverBond) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupRecoverBond) Kind

func (SmartRollupRecoverBond) MarshalBinary

func (o SmartRollupRecoverBond) MarshalBinary() ([]byte, error)

func (SmartRollupRecoverBond) MarshalJSON

func (o SmartRollupRecoverBond) MarshalJSON() ([]byte, error)

func (*SmartRollupRecoverBond) UnmarshalBinary

func (o *SmartRollupRecoverBond) UnmarshalBinary(data []byte) error

type SmartRollupRefutation

type SmartRollupRefutation struct {
	Kind         string                      `json:"refutation_kind"`
	PlayerHash   tezos.SmartRollupCommitHash `json:"player_commitment_hash"`
	OpponentHash tezos.SmartRollupCommitHash `json:"opponent_commitment_hash"`
	Choice       tezos.Z                     `json:"choice"`
	Step         SmartRollupRefuteStep       `json:"step"`
}

type SmartRollupRefute

type SmartRollupRefute struct {
	Manager
	Rollup     tezos.Address         `json:"rollup"`
	Opponent   tezos.Address         `json:"opponent"`
	Refutation SmartRollupRefutation `json:"refutation"`
}

SmartRollupRefute represents "smart_rollup_refute" operation

func (*SmartRollupRefute) DecodeBuffer

func (o *SmartRollupRefute) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupRefute) EncodeBuffer

func (o SmartRollupRefute) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupRefute) Kind

func (o SmartRollupRefute) Kind() tezos.OpType

func (SmartRollupRefute) MarshalBinary

func (o SmartRollupRefute) MarshalBinary() ([]byte, error)

func (SmartRollupRefute) MarshalJSON

func (o SmartRollupRefute) MarshalJSON() ([]byte, error)

func (*SmartRollupRefute) UnmarshalBinary

func (o *SmartRollupRefute) UnmarshalBinary(data []byte) error

type SmartRollupRefuteStep

type SmartRollupRefuteStep struct {
	Ticks []SmartRollupTick
	Proof *SmartRollupProof
}

type SmartRollupTick

type SmartRollupTick struct {
	State tezos.SmartRollupStateHash `json:"state"`
	Tick  tezos.Z                    `json:"tick"`
}

type SmartRollupTimeout

type SmartRollupTimeout struct {
	Manager
	Rollup  tezos.Address `json:"rollup"`
	Stakers struct {
		Alice tezos.Address `json:"alice"`
		Bob   tezos.Address `json:"bob"`
	} `json:"stakers"`
}

SmartRollupTimeout represents "smart_rollup_timeout" operation

func (*SmartRollupTimeout) DecodeBuffer

func (o *SmartRollupTimeout) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (SmartRollupTimeout) EncodeBuffer

func (o SmartRollupTimeout) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (SmartRollupTimeout) Kind

func (o SmartRollupTimeout) Kind() tezos.OpType

func (SmartRollupTimeout) MarshalBinary

func (o SmartRollupTimeout) MarshalBinary() ([]byte, error)

func (SmartRollupTimeout) MarshalJSON

func (o SmartRollupTimeout) MarshalJSON() ([]byte, error)

func (*SmartRollupTimeout) UnmarshalBinary

func (o *SmartRollupTimeout) UnmarshalBinary(data []byte) error

type TenderbakeDoubleEndorsementEvidence

type TenderbakeDoubleEndorsementEvidence struct {
	Simple
	Op1 TenderbakeInlinedEndorsement `json:"op1"`
	Op2 TenderbakeInlinedEndorsement `json:"op2"`
}

TenderbakeDoubleEndorsementEvidence represents "double_endorsement_evidence" operation for Tenderbake protocols

func (*TenderbakeDoubleEndorsementEvidence) DecodeBuffer

func (o *TenderbakeDoubleEndorsementEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (TenderbakeDoubleEndorsementEvidence) EncodeBuffer

func (TenderbakeDoubleEndorsementEvidence) Kind

func (TenderbakeDoubleEndorsementEvidence) MarshalBinary

func (o TenderbakeDoubleEndorsementEvidence) MarshalBinary() ([]byte, error)

func (TenderbakeDoubleEndorsementEvidence) MarshalJSON

func (o TenderbakeDoubleEndorsementEvidence) MarshalJSON() ([]byte, error)

func (*TenderbakeDoubleEndorsementEvidence) UnmarshalBinary

func (o *TenderbakeDoubleEndorsementEvidence) UnmarshalBinary(data []byte) error

type TenderbakeDoublePreendorsementEvidence

type TenderbakeDoublePreendorsementEvidence struct {
	Simple
	Op1 TenderbakeInlinedPreendorsement `json:"op1"`
	Op2 TenderbakeInlinedPreendorsement `json:"op2"`
}

TenderbakeDoublePreendorsementEvidence represents "double_preendorsement_evidence" operation for Tenderbake protocols

func (*TenderbakeDoublePreendorsementEvidence) DecodeBuffer

func (o *TenderbakeDoublePreendorsementEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (TenderbakeDoublePreendorsementEvidence) EncodeBuffer

func (TenderbakeDoublePreendorsementEvidence) Kind

func (TenderbakeDoublePreendorsementEvidence) MarshalBinary

func (o TenderbakeDoublePreendorsementEvidence) MarshalBinary() ([]byte, error)

func (TenderbakeDoublePreendorsementEvidence) MarshalJSON

func (o TenderbakeDoublePreendorsementEvidence) MarshalJSON() ([]byte, error)

func (*TenderbakeDoublePreendorsementEvidence) UnmarshalBinary

func (o *TenderbakeDoublePreendorsementEvidence) UnmarshalBinary(data []byte) error

type TenderbakeEndorsement

type TenderbakeEndorsement struct {
	Simple
	Slot             int16             `json:"slot"`
	Level            int32             `json:"level"`
	Round            int32             `json:"round"`
	BlockPayloadHash tezos.PayloadHash `json:"payload_hash"`
}

TenderbakeEndorsement represents tenderbake endorsement operation

func (*TenderbakeEndorsement) DecodeBuffer

func (o *TenderbakeEndorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (TenderbakeEndorsement) EncodeBuffer

func (o TenderbakeEndorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (TenderbakeEndorsement) Kind

func (TenderbakeEndorsement) MarshalBinary

func (o TenderbakeEndorsement) MarshalBinary() ([]byte, error)

func (TenderbakeEndorsement) MarshalJSON

func (o TenderbakeEndorsement) MarshalJSON() ([]byte, error)

func (*TenderbakeEndorsement) UnmarshalBinary

func (o *TenderbakeEndorsement) UnmarshalBinary(data []byte) error

type TenderbakeInlinedEndorsement

type TenderbakeInlinedEndorsement struct {
	Branch      tezos.BlockHash       `json:"branch"`
	Endorsement TenderbakeEndorsement `json:"operations"`
	Signature   tezos.Signature       `json:"signature"`
}

TenderbakeInlinedEndorsement represents inlined endorsement operation with signature. This type is uses as part of other operations, but is not a stand-alone operation.

func (*TenderbakeInlinedEndorsement) DecodeBuffer

func (o *TenderbakeInlinedEndorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (TenderbakeInlinedEndorsement) EncodeBuffer

func (o TenderbakeInlinedEndorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (TenderbakeInlinedEndorsement) MarshalJSON

func (o TenderbakeInlinedEndorsement) MarshalJSON() ([]byte, error)

type TenderbakeInlinedPreendorsement

type TenderbakeInlinedPreendorsement struct {
	Branch      tezos.BlockHash          `json:"branch"`
	Endorsement TenderbakePreendorsement `json:"operations"`
	Signature   tezos.Signature          `json:"signature"`
}

TenderbakeInlinedPreendorsement represents inlined preendorsement operation with signature. This type is uses as part of other operations, but is not a stand-alone operation.

func (*TenderbakeInlinedPreendorsement) DecodeBuffer

func (o *TenderbakeInlinedPreendorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (TenderbakeInlinedPreendorsement) EncodeBuffer

func (o TenderbakeInlinedPreendorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (TenderbakeInlinedPreendorsement) MarshalJSON

func (o TenderbakeInlinedPreendorsement) MarshalJSON() ([]byte, error)

type TenderbakePreendorsement

type TenderbakePreendorsement struct {
	Simple
	Slot             int16             `json:"slot"`
	Level            int32             `json:"level"`
	Round            int32             `json:"round"`
	BlockPayloadHash tezos.PayloadHash `json:"payload_hash"`
}

TenderbakePreendorsement represents tenderbake preendorsement operation

func (*TenderbakePreendorsement) DecodeBuffer

func (o *TenderbakePreendorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (TenderbakePreendorsement) EncodeBuffer

func (o TenderbakePreendorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (TenderbakePreendorsement) Kind

func (TenderbakePreendorsement) MarshalBinary

func (o TenderbakePreendorsement) MarshalBinary() ([]byte, error)

func (TenderbakePreendorsement) MarshalJSON

func (o TenderbakePreendorsement) MarshalJSON() ([]byte, error)

func (*TenderbakePreendorsement) UnmarshalBinary

func (o *TenderbakePreendorsement) UnmarshalBinary(data []byte) error

type Transaction

type Transaction struct {
	Manager
	Amount      tezos.N               `json:"amount"`
	Destination tezos.Address         `json:"destination"`
	Parameters  *micheline.Parameters `json:"parameters,omitempty"`
}

Transaction represents "transaction" operation

func (*Transaction) DecodeBuffer

func (o *Transaction) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (Transaction) EncodeBuffer

func (o Transaction) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (Transaction) Kind

func (o Transaction) Kind() tezos.OpType

func (Transaction) MarshalBinary

func (o Transaction) MarshalBinary() ([]byte, error)

func (Transaction) MarshalJSON

func (o Transaction) MarshalJSON() ([]byte, error)

func (*Transaction) UnmarshalBinary

func (o *Transaction) UnmarshalBinary(data []byte) error

type TransferTicket

type TransferTicket struct {
	Manager
	Contents    micheline.Prim `json:"ticket_contents"`
	Type        micheline.Prim `json:"ticket_ty"`
	Ticketer    tezos.Address  `json:"ticket_ticketer"`
	Amount      tezos.N        `json:"ticket_amount"`
	Destination tezos.Address  `json:"destination"`
	Entrypoint  string         `json:"entrypoint"`
}

TransferTicket represents "transfer_ticket" operation

func (*TransferTicket) DecodeBuffer

func (o *TransferTicket) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (TransferTicket) EncodeBuffer

func (o TransferTicket) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (TransferTicket) Kind

func (o TransferTicket) Kind() tezos.OpType

func (TransferTicket) MarshalBinary

func (o TransferTicket) MarshalBinary() ([]byte, error)

func (TransferTicket) MarshalJSON

func (o TransferTicket) MarshalJSON() ([]byte, error)

func (*TransferTicket) UnmarshalBinary

func (o *TransferTicket) UnmarshalBinary(data []byte) error

type UpdateConsensusKey

type UpdateConsensusKey struct {
	Manager
	Amount    tezos.Z   `json:"amount"`
	PublicKey tezos.Key `json:"pk"`
}

UpdateConsensusKey represents "update_consensus_key" operation

func (*UpdateConsensusKey) DecodeBuffer

func (o *UpdateConsensusKey) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (UpdateConsensusKey) EncodeBuffer

func (o UpdateConsensusKey) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (UpdateConsensusKey) Kind

func (o UpdateConsensusKey) Kind() tezos.OpType

func (UpdateConsensusKey) MarshalBinary

func (o UpdateConsensusKey) MarshalBinary() ([]byte, error)

func (UpdateConsensusKey) MarshalJSON

func (o UpdateConsensusKey) MarshalJSON() ([]byte, error)

func (*UpdateConsensusKey) UnmarshalBinary

func (o *UpdateConsensusKey) UnmarshalBinary(data []byte) error

type VdfRevelation

type VdfRevelation struct {
	Simple
	Solution tezos.HexBytes `json:"solution"`
}

VdfRevelation represents "vdf_revelation" operation

func (*VdfRevelation) DecodeBuffer

func (o *VdfRevelation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)

func (VdfRevelation) EncodeBuffer

func (o VdfRevelation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error

func (VdfRevelation) Kind

func (o VdfRevelation) Kind() tezos.OpType

func (VdfRevelation) MarshalBinary

func (o VdfRevelation) MarshalBinary() ([]byte, error)

func (VdfRevelation) MarshalJSON

func (o VdfRevelation) MarshalJSON() ([]byte, error)

func (*VdfRevelation) UnmarshalBinary

func (o *VdfRevelation) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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