Documentation ¶
Index ¶
- Constants
- func CalculateMinFee(o Operation, gas int64, withHeader bool, p *tezos.Params) int64
- type ActivateAccount
- func (o *ActivateAccount) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o ActivateAccount) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o ActivateAccount) Kind() tezos.OpType
- func (o ActivateAccount) MarshalBinary() ([]byte, error)
- func (o ActivateAccount) MarshalJSON() ([]byte, error)
- func (o *ActivateAccount) UnmarshalBinary(data []byte) error
- type Ballot
- func (o *Ballot) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Ballot) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o Ballot) Kind() tezos.OpType
- func (o Ballot) MarshalBinary() ([]byte, error)
- func (o Ballot) MarshalJSON() ([]byte, error)
- func (o *Ballot) UnmarshalBinary(data []byte) error
- type BlockHeader
- func (h BlockHeader) Bytes() []byte
- func (h *BlockHeader) DecodeBuffer(buf *bytes.Buffer) (err error)
- func (h BlockHeader) Digest() []byte
- func (h *BlockHeader) EncodeBuffer(buf *bytes.Buffer) error
- func (h *BlockHeader) Hash() (s tezos.BlockHash)
- func (h BlockHeader) MarshalBinary() ([]byte, error)
- func (h BlockHeader) MarshalJSON() ([]byte, error)
- func (h *BlockHeader) Sign(key tezos.PrivateKey) error
- func (h *BlockHeader) UnmarshalBinary(data []byte) error
- func (h BlockHeader) WatermarkedBytes() []byte
- func (h *BlockHeader) WithChainId(id tezos.ChainIdHash) *BlockHeader
- func (h *BlockHeader) WithSignature(sig tezos.Signature) *BlockHeader
- type DalAttestation
- func (o *DalAttestation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o DalAttestation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o DalAttestation) Kind() tezos.OpType
- func (o DalAttestation) MarshalBinary() ([]byte, error)
- func (o DalAttestation) MarshalJSON() ([]byte, error)
- func (o *DalAttestation) UnmarshalBinary(data []byte) error
- type DalPublishSlotHeader
- func (o *DalPublishSlotHeader) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o DalPublishSlotHeader) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o DalPublishSlotHeader) Kind() tezos.OpType
- func (o DalPublishSlotHeader) MarshalBinary() ([]byte, error)
- func (o DalPublishSlotHeader) MarshalJSON() ([]byte, error)
- func (o *DalPublishSlotHeader) UnmarshalBinary(data []byte) error
- type Delegation
- func (o *Delegation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Delegation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o Delegation) Kind() tezos.OpType
- func (o Delegation) MarshalBinary() ([]byte, error)
- func (o Delegation) MarshalJSON() ([]byte, error)
- func (o *Delegation) UnmarshalBinary(data []byte) error
- type DoubleBakingEvidence
- func (o *DoubleBakingEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o DoubleBakingEvidence) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o DoubleBakingEvidence) Kind() tezos.OpType
- func (o DoubleBakingEvidence) MarshalBinary() ([]byte, error)
- func (o DoubleBakingEvidence) MarshalJSON() ([]byte, error)
- func (o *DoubleBakingEvidence) UnmarshalBinary(data []byte) error
- type DoubleEndorsementEvidence
- func (o *DoubleEndorsementEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o DoubleEndorsementEvidence) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o DoubleEndorsementEvidence) Kind() tezos.OpType
- func (o DoubleEndorsementEvidence) MarshalBinary() ([]byte, error)
- func (o DoubleEndorsementEvidence) MarshalJSON() ([]byte, error)
- func (o *DoubleEndorsementEvidence) UnmarshalBinary(data []byte) error
- type DrainDelegate
- func (o *DrainDelegate) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o DrainDelegate) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o DrainDelegate) Kind() tezos.OpType
- func (o DrainDelegate) MarshalBinary() ([]byte, error)
- func (o DrainDelegate) MarshalJSON() ([]byte, error)
- func (o *DrainDelegate) UnmarshalBinary(data []byte) error
- type Endorsement
- func (o *Endorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Endorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o Endorsement) Kind() tezos.OpType
- func (o Endorsement) MarshalBinary() ([]byte, error)
- func (o Endorsement) MarshalJSON() ([]byte, error)
- func (o *Endorsement) UnmarshalBinary(data []byte) error
- type EndorsementWithSlot
- func (o *EndorsementWithSlot) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o EndorsementWithSlot) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o EndorsementWithSlot) Kind() tezos.OpType
- func (o EndorsementWithSlot) MarshalBinary() ([]byte, error)
- func (o EndorsementWithSlot) MarshalJSON() ([]byte, error)
- func (o *EndorsementWithSlot) UnmarshalBinary(data []byte) error
- type FailingNoop
- func (o *FailingNoop) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o FailingNoop) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o FailingNoop) Kind() tezos.OpType
- func (o FailingNoop) MarshalBinary() ([]byte, error)
- func (o FailingNoop) MarshalJSON() ([]byte, error)
- func (o *FailingNoop) UnmarshalBinary(data []byte) error
- type IncreasePaidStorage
- func (o *IncreasePaidStorage) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o IncreasePaidStorage) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o IncreasePaidStorage) Kind() tezos.OpType
- func (o IncreasePaidStorage) MarshalBinary() ([]byte, error)
- func (o IncreasePaidStorage) MarshalJSON() ([]byte, error)
- func (o *IncreasePaidStorage) UnmarshalBinary(data []byte) error
- type InlinedEndorsement
- type Manager
- func (o *Manager) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Manager) EncodeBuffer(buf *bytes.Buffer, _ *tezos.Params) error
- func (o Manager) EncodeJSON(buf *bytes.Buffer) error
- func (o Manager) GetCounter() int64
- func (o Manager) Limits() tezos.Limits
- func (o *Manager) WithCounter(c int64)
- func (o *Manager) WithLimits(limits tezos.Limits)
- func (o *Manager) WithSource(addr tezos.Address)
- type Op
- func (o *Op) Bytes() []byte
- func (o *Op) Digest() []byte
- func (o *Op) Hash() (h tezos.OpHash)
- func (o Op) Limits() tezos.Limits
- func (o *Op) MarshalJSON() ([]byte, error)
- func (o Op) NeedCounter() bool
- func (o *Op) Sign(key tezos.PrivateKey) error
- func (o *Op) WatermarkedBytes() []byte
- func (o *Op) WithBranch(hash tezos.BlockHash) *Op
- func (o *Op) WithCall(to tezos.Address, params micheline.Parameters) *Op
- func (o *Op) WithCallExt(to tezos.Address, params micheline.Parameters, amount int64) *Op
- func (o *Op) WithChainId(id tezos.ChainIdHash) *Op
- func (o *Op) WithContents(op Operation) *Op
- func (o *Op) WithContentsFront(op Operation) *Op
- func (o *Op) WithDelegation(to tezos.Address) *Op
- func (o *Op) WithFinalizeUnstake() *Op
- func (o *Op) WithLimits(limits []tezos.Limits, margin int64) *Op
- func (o *Op) WithMinFee() *Op
- func (o *Op) WithOrigination(script micheline.Script) *Op
- func (o *Op) WithOriginationExt(script micheline.Script, baker tezos.Address, amount int64) *Op
- func (o *Op) WithParams(p *tezos.Params) *Op
- func (o *Op) WithRegisterBaker() *Op
- func (o *Op) WithRegisterConstant(value micheline.Prim) *Op
- func (o *Op) WithSetBakerParams(edge, limit int64) *Op
- func (o *Op) WithSignature(sig tezos.Signature) *Op
- func (o *Op) WithSource(addr tezos.Address) *Op
- func (o *Op) WithStake(amount int64) *Op
- func (o *Op) WithTTL(n int64) *Op
- func (o *Op) WithTransfer(to tezos.Address, amount int64) *Op
- func (o *Op) WithUndelegation() *Op
- func (o *Op) WithUnstake(amount int64) *Op
- func (o *Op) WithUnstakeAll(amount int64) *Op
- type Operation
- type Origination
- func (o *Origination) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Origination) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o Origination) Kind() tezos.OpType
- func (o Origination) MarshalBinary() ([]byte, error)
- func (o Origination) MarshalJSON() ([]byte, error)
- func (o *Origination) UnmarshalBinary(data []byte) error
- type Proposals
- func (o *Proposals) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Proposals) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o Proposals) Kind() tezos.OpType
- func (o Proposals) MarshalBinary() ([]byte, error)
- func (o Proposals) MarshalJSON() ([]byte, error)
- func (o *Proposals) UnmarshalBinary(data []byte) error
- type RegisterGlobalConstant
- func (o *RegisterGlobalConstant) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o RegisterGlobalConstant) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o RegisterGlobalConstant) Kind() tezos.OpType
- func (o RegisterGlobalConstant) MarshalBinary() ([]byte, error)
- func (o RegisterGlobalConstant) MarshalJSON() ([]byte, error)
- func (o *RegisterGlobalConstant) UnmarshalBinary(data []byte) error
- type Reveal
- func (o *Reveal) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Reveal) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o Reveal) Kind() tezos.OpType
- func (o Reveal) MarshalBinary() ([]byte, error)
- func (o Reveal) MarshalJSON() ([]byte, error)
- func (o *Reveal) UnmarshalBinary(data []byte) error
- type SeedNonceRevelation
- func (o *SeedNonceRevelation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SeedNonceRevelation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SeedNonceRevelation) Kind() tezos.OpType
- func (o SeedNonceRevelation) MarshalBinary() ([]byte, error)
- func (o SeedNonceRevelation) MarshalJSON() ([]byte, error)
- func (o *SeedNonceRevelation) UnmarshalBinary(data []byte) error
- type SetDepositsLimit
- func (o *SetDepositsLimit) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SetDepositsLimit) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SetDepositsLimit) Kind() tezos.OpType
- func (o SetDepositsLimit) MarshalBinary() ([]byte, error)
- func (o SetDepositsLimit) MarshalJSON() ([]byte, error)
- func (o *SetDepositsLimit) UnmarshalBinary(data []byte) error
- type Simple
- type SmartRollupAddMessages
- func (o *SmartRollupAddMessages) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupAddMessages) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupAddMessages) Kind() tezos.OpType
- func (o SmartRollupAddMessages) MarshalBinary() ([]byte, error)
- func (o SmartRollupAddMessages) MarshalJSON() ([]byte, error)
- func (o *SmartRollupAddMessages) UnmarshalBinary(data []byte) error
- type SmartRollupCement
- func (o *SmartRollupCement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupCement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupCement) Kind() tezos.OpType
- func (o SmartRollupCement) MarshalBinary() ([]byte, error)
- func (o SmartRollupCement) MarshalJSON() ([]byte, error)
- func (o *SmartRollupCement) UnmarshalBinary(data []byte) error
- type SmartRollupExecuteOutboxMessage
- func (o *SmartRollupExecuteOutboxMessage) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupExecuteOutboxMessage) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupExecuteOutboxMessage) Kind() tezos.OpType
- func (o SmartRollupExecuteOutboxMessage) MarshalBinary() ([]byte, error)
- func (o SmartRollupExecuteOutboxMessage) MarshalJSON() ([]byte, error)
- func (o *SmartRollupExecuteOutboxMessage) UnmarshalBinary(data []byte) error
- type SmartRollupInputProof
- type SmartRollupOriginate
- func (o *SmartRollupOriginate) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupOriginate) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupOriginate) Kind() tezos.OpType
- func (o SmartRollupOriginate) MarshalBinary() ([]byte, error)
- func (o SmartRollupOriginate) MarshalJSON() ([]byte, error)
- func (o *SmartRollupOriginate) UnmarshalBinary(data []byte) error
- type SmartRollupProof
- type SmartRollupPublish
- func (o *SmartRollupPublish) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupPublish) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupPublish) Kind() tezos.OpType
- func (o SmartRollupPublish) MarshalBinary() ([]byte, error)
- func (o SmartRollupPublish) MarshalJSON() ([]byte, error)
- func (o *SmartRollupPublish) UnmarshalBinary(data []byte) error
- type SmartRollupRecoverBond
- func (o *SmartRollupRecoverBond) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupRecoverBond) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupRecoverBond) Kind() tezos.OpType
- func (o SmartRollupRecoverBond) MarshalBinary() ([]byte, error)
- func (o SmartRollupRecoverBond) MarshalJSON() ([]byte, error)
- func (o *SmartRollupRecoverBond) UnmarshalBinary(data []byte) error
- type SmartRollupRefutation
- type SmartRollupRefute
- func (o *SmartRollupRefute) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupRefute) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupRefute) Kind() tezos.OpType
- func (o SmartRollupRefute) MarshalBinary() ([]byte, error)
- func (o SmartRollupRefute) MarshalJSON() ([]byte, error)
- func (o *SmartRollupRefute) UnmarshalBinary(data []byte) error
- type SmartRollupRefuteStep
- type SmartRollupTick
- type SmartRollupTimeout
- func (o *SmartRollupTimeout) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o SmartRollupTimeout) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o SmartRollupTimeout) Kind() tezos.OpType
- func (o SmartRollupTimeout) MarshalBinary() ([]byte, error)
- func (o SmartRollupTimeout) MarshalJSON() ([]byte, error)
- func (o *SmartRollupTimeout) UnmarshalBinary(data []byte) error
- type TenderbakeDoubleEndorsementEvidence
- func (o *TenderbakeDoubleEndorsementEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o TenderbakeDoubleEndorsementEvidence) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o TenderbakeDoubleEndorsementEvidence) Kind() tezos.OpType
- func (o TenderbakeDoubleEndorsementEvidence) MarshalBinary() ([]byte, error)
- func (o TenderbakeDoubleEndorsementEvidence) MarshalJSON() ([]byte, error)
- func (o *TenderbakeDoubleEndorsementEvidence) UnmarshalBinary(data []byte) error
- type TenderbakeDoublePreendorsementEvidence
- func (o *TenderbakeDoublePreendorsementEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o TenderbakeDoublePreendorsementEvidence) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o TenderbakeDoublePreendorsementEvidence) Kind() tezos.OpType
- func (o TenderbakeDoublePreendorsementEvidence) MarshalBinary() ([]byte, error)
- func (o TenderbakeDoublePreendorsementEvidence) MarshalJSON() ([]byte, error)
- func (o *TenderbakeDoublePreendorsementEvidence) UnmarshalBinary(data []byte) error
- type TenderbakeEndorsement
- func (o *TenderbakeEndorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o TenderbakeEndorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o TenderbakeEndorsement) Kind() tezos.OpType
- func (o TenderbakeEndorsement) MarshalBinary() ([]byte, error)
- func (o TenderbakeEndorsement) MarshalJSON() ([]byte, error)
- func (o *TenderbakeEndorsement) UnmarshalBinary(data []byte) error
- type TenderbakeInlinedEndorsement
- type TenderbakeInlinedPreendorsement
- type TenderbakePreendorsement
- func (o *TenderbakePreendorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o TenderbakePreendorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o TenderbakePreendorsement) Kind() tezos.OpType
- func (o TenderbakePreendorsement) MarshalBinary() ([]byte, error)
- func (o TenderbakePreendorsement) MarshalJSON() ([]byte, error)
- func (o *TenderbakePreendorsement) UnmarshalBinary(data []byte) error
- type Transaction
- func (o *Transaction) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o Transaction) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o Transaction) Kind() tezos.OpType
- func (o Transaction) MarshalBinary() ([]byte, error)
- func (o Transaction) MarshalJSON() ([]byte, error)
- func (o *Transaction) UnmarshalBinary(data []byte) error
- type TransferTicket
- func (o *TransferTicket) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o TransferTicket) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o TransferTicket) Kind() tezos.OpType
- func (o TransferTicket) MarshalBinary() ([]byte, error)
- func (o TransferTicket) MarshalJSON() ([]byte, error)
- func (o *TransferTicket) UnmarshalBinary(data []byte) error
- type UpdateConsensusKey
- func (o *UpdateConsensusKey) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o UpdateConsensusKey) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o UpdateConsensusKey) Kind() tezos.OpType
- func (o UpdateConsensusKey) MarshalBinary() ([]byte, error)
- func (o UpdateConsensusKey) MarshalJSON() ([]byte, error)
- func (o *UpdateConsensusKey) UnmarshalBinary(data []byte) error
- type VdfRevelation
- func (o *VdfRevelation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error)
- func (o VdfRevelation) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error
- func (o VdfRevelation) Kind() tezos.OpType
- func (o VdfRevelation) MarshalBinary() ([]byte, error)
- func (o VdfRevelation) MarshalJSON() ([]byte, error)
- func (o *VdfRevelation) UnmarshalBinary(data []byte) error
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CalculateMinFee ¶
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 (ActivateAccount) EncodeBuffer ¶
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 (Ballot) MarshalBinary ¶
func (Ballot) MarshalJSON ¶
func (*Ballot) UnmarshalBinary ¶
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"` LbVote tezos.FeatureVote `json:"liquidity_baking_toggle_vote"` AiVote tezos.FeatureVote `json:"adaptive_issuance_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) Hash ¶ added in v1.18.0
func (h *BlockHeader) Hash() (s tezos.BlockHash)
Hash calculates the block hash. For the hash to be correct, the block must contain a valid signature.
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 (DalAttestation) EncodeBuffer ¶
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 (DalPublishSlotHeader) EncodeBuffer ¶
func (DalPublishSlotHeader) Kind ¶
func (o DalPublishSlotHeader) Kind() tezos.OpType
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 ¶
Delegation represents "delegation" operation
func (*Delegation) DecodeBuffer ¶
func (Delegation) EncodeBuffer ¶
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 (DoubleBakingEvidence) EncodeBuffer ¶
func (DoubleBakingEvidence) Kind ¶
func (o DoubleBakingEvidence) Kind() tezos.OpType
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 (DoubleEndorsementEvidence) EncodeBuffer ¶
func (DoubleEndorsementEvidence) Kind ¶
func (o DoubleEndorsementEvidence) Kind() tezos.OpType
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 (DrainDelegate) EncodeBuffer ¶
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 ¶
Endorsement represents "endorsement" operation
func (*Endorsement) DecodeBuffer ¶
func (Endorsement) EncodeBuffer ¶
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 (EndorsementWithSlot) EncodeBuffer ¶
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 ¶
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 (FailingNoop) EncodeBuffer ¶
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 (IncreasePaidStorage) EncodeBuffer ¶
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 (InlinedEndorsement) EncodeBuffer ¶
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 (Manager) EncodeBuffer ¶
func (Manager) GetCounter ¶
func (*Manager) WithCounter ¶
func (*Manager) WithLimits ¶
func (*Manager) WithSource ¶
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 ¶
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 ¶
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 ¶
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) Hash ¶
Hash calculates the operation hash. For the hash to be correct, the operation must contain a valid signature.
func (Op) Limits ¶
Limits returns the sum of all limits (fee, gas, storage limit) currently set for all contained operations.
func (*Op) MarshalJSON ¶
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 ¶
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 ¶
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 ¶
WithBranch sets the branch for this operation to hash.
func (*Op) WithCall ¶
WithCall adds a contract call transaction to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithCallExt ¶
WithCallExt adds a contract call with value transfer transaction to the contents list. Source must be defined via WithSource() before calling this function.
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 ¶
WithContents adds a Tezos operation to the end of the contents list.
func (*Op) WithContentsFront ¶
WithContentsFront adds a Tezos operation to the front of the contents list.
func (*Op) WithDelegation ¶
WithDelegation adds a delegation transaction to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithFinalizeUnstake ¶ added in v1.18.0
WithFinalizeUnstake sends a finalize_unstake pseudo call to source which moves all unfrozen unstaked tokens back to spendable balance. Source must be defined via WithSource() before calling this function.
func (*Op) WithLimits ¶
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 and storage. 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 (*Op) WithOrigination ¶
WithOrigination adds a contract origination transaction to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithOriginationExt ¶
WithOriginationExt adds a contract origination transaction with optional delegation to baker and an optional value transfer to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithParams ¶
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 ¶
WithRegisterBaker adds a delegation transaction that registers the caller as baker to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithRegisterConstant ¶
WithRegisterConstant adds a global constant registration transaction to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithSetBakerParams ¶ added in v1.18.0
WithSetBakerParams adds a set_delegate_parameters call where target is source. The caller must be a registered baker. Source must be defined via WithSource() before calling this function.
func (*Op) WithSignature ¶
WithSignature adds an externally created signature to the operation. No signature validation is performed, it is assumed the signature is correct.
func (*Op) WithSource ¶
WithSource sets the source for all manager operations to addr. It is required before calling other WithXXX functions.
func (*Op) WithStake ¶ added in v1.18.0
WithStake sends a stake pseudo call to source to lock tokens for staking. The caller must delegate to a baker and this baker is implictly chosen to stake with. Source must be defined via WithSource() before calling this function.
func (*Op) WithTTL ¶
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 ¶
WithTransfer adds a simple value transfer transaction to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithUndelegation ¶
WithUndelegation adds a delegation transaction that resets the callers baker to null to the contents list. Source must be defined via WithSource() before calling this function.
func (*Op) WithUnstake ¶ added in v1.18.0
WithUnstake sends an unstake pseudo call to source which creates an unstake request for amount tokens. Source must be defined via WithSource() before calling this function.
func (*Op) WithUnstakeAll ¶ added in v1.18.0
WithUnstakeAll sends an unstake pseudo call to source which creates an unstake request for all currently staked tokens. Source must be defined via WithSource() before calling this function.
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 (Origination) EncodeBuffer ¶
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 (Proposals) EncodeBuffer ¶
func (Proposals) MarshalBinary ¶
func (Proposals) MarshalJSON ¶
func (*Proposals) UnmarshalBinary ¶
type RegisterGlobalConstant ¶
RegisterGlobalConstant represents "register_global_constant" operation
func (*RegisterGlobalConstant) DecodeBuffer ¶
func (RegisterGlobalConstant) EncodeBuffer ¶
func (RegisterGlobalConstant) Kind ¶
func (o RegisterGlobalConstant) Kind() tezos.OpType
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 ¶
Reveal represents "reveal" operation
func (*Reveal) DecodeBuffer ¶
func (Reveal) MarshalBinary ¶
func (Reveal) MarshalJSON ¶
func (*Reveal) UnmarshalBinary ¶
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 (SeedNonceRevelation) EncodeBuffer ¶
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 ¶
SetDepositsLimit represents "set_deposits_limit" operation
func (*SetDepositsLimit) DecodeBuffer ¶
func (SetDepositsLimit) EncodeBuffer ¶
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 (*Simple) WithCounter ¶
func (*Simple) WithLimits ¶
func (*Simple) WithSource ¶
type SmartRollupAddMessages ¶
SmartRollupAddMessages represents "smart_rollup_add_messages" operation
func (*SmartRollupAddMessages) DecodeBuffer ¶
func (SmartRollupAddMessages) EncodeBuffer ¶
func (SmartRollupAddMessages) Kind ¶
func (o SmartRollupAddMessages) Kind() tezos.OpType
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 ¶
SmartRollupCement represents "smart_rollup_cement" operation
func (*SmartRollupCement) DecodeBuffer ¶
func (SmartRollupCement) EncodeBuffer ¶
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 (SmartRollupExecuteOutboxMessage) EncodeBuffer ¶
func (SmartRollupExecuteOutboxMessage) Kind ¶
func (o SmartRollupExecuteOutboxMessage) Kind() tezos.OpType
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 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 (SmartRollupOriginate) EncodeBuffer ¶
func (SmartRollupOriginate) Kind ¶
func (o SmartRollupOriginate) Kind() tezos.OpType
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 (SmartRollupPublish) EncodeBuffer ¶
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 (SmartRollupRecoverBond) EncodeBuffer ¶
func (SmartRollupRecoverBond) Kind ¶
func (o SmartRollupRecoverBond) Kind() tezos.OpType
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 (SmartRollupRefute) EncodeBuffer ¶
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 (SmartRollupTimeout) EncodeBuffer ¶
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 (TenderbakeDoubleEndorsementEvidence) EncodeBuffer ¶
func (TenderbakeDoubleEndorsementEvidence) Kind ¶
func (o TenderbakeDoubleEndorsementEvidence) Kind() tezos.OpType
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 (TenderbakeDoublePreendorsementEvidence) EncodeBuffer ¶
func (TenderbakeDoublePreendorsementEvidence) Kind ¶
func (o TenderbakeDoublePreendorsementEvidence) Kind() tezos.OpType
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:"block_payload_hash"` }
TenderbakeEndorsement represents tenderbake endorsement operation
func (*TenderbakeEndorsement) DecodeBuffer ¶
func (TenderbakeEndorsement) EncodeBuffer ¶
func (TenderbakeEndorsement) Kind ¶
func (o TenderbakeEndorsement) Kind() tezos.OpType
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 (TenderbakeInlinedEndorsement) EncodeBuffer ¶
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 (TenderbakeInlinedPreendorsement) EncodeBuffer ¶
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:"block_payload_hash"` }
TenderbakePreendorsement represents tenderbake preendorsement operation
func (*TenderbakePreendorsement) DecodeBuffer ¶
func (TenderbakePreendorsement) EncodeBuffer ¶
func (TenderbakePreendorsement) Kind ¶
func (o TenderbakePreendorsement) Kind() tezos.OpType
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 (Transaction) EncodeBuffer ¶
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 (TransferTicket) EncodeBuffer ¶
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 (UpdateConsensusKey) EncodeBuffer ¶
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 ¶
VdfRevelation represents "vdf_revelation" operation
func (*VdfRevelation) DecodeBuffer ¶
func (VdfRevelation) EncodeBuffer ¶
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
Source Files ¶
- activate_account.go
- ballot.go
- block.go
- dal_attestation.go
- dal_publish.go
- delegation.go
- deposits_limit.go
- double_baking.go
- double_endorsement.go
- drain_delegate.go
- endorsement.go
- failing_noop.go
- global_constant.go
- increase_paid_storage.go
- manager.go
- op.go
- origination.go
- proposals.go
- reveal.go
- seed_nonce.go
- smart_rollup_add_messages.go
- smart_rollup_cement.go
- smart_rollup_originate.go
- smart_rollup_output.go
- smart_rollup_publish.go
- smart_rollup_recover_bond.go
- smart_rollup_refute.go
- smart_rollup_timeout.go
- transaction.go
- transfer_ticket.go
- update_consensus_key.go
- utils.go
- vdf_revelation.go