Versions in this module Expand all Collapse all v1 v1.12.2 Apr 13, 2022 Changes in this version + const BlockWatermark + const EndorsementWatermark + const OperationWatermark + func CalculateMinFee(o Operation, gas int64, withHeader bool) int64 + type ActivateAccount struct + PublicKeyHash tezos.Address + Secret tezos.HexBytes + func (o *ActivateAccount) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) error + func (o *ActivateAccount) UnmarshalBinary(data []byte) 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) + type Ballot struct + Ballot tezos.BallotVote + Period int32 + Proposal tezos.ProtocolHash + Source tezos.Address + func (o *Ballot) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Ballot) UnmarshalBinary(data []byte) 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) + type BlockHeader struct + Context tezos.ContextHash + Fitness []tezos.HexBytes + LbEscapeVote bool + Level int32 + OperationsHash tezos.OpListListHash + PayloadHash tezos.PayloadHash + PayloadRound int + Predecessor tezos.BlockHash + Priority uint16 + ProofOfWorkNonce tezos.HexBytes + Proto byte + SeedNonceHash tezos.NonceHash + Signature tezos.Signature + Timestamp time.Time + ValidationPass byte + func (h *BlockHeader) DecodeBuffer(buf *bytes.Buffer) (err error) + func (h *BlockHeader) EncodeBuffer(buf *bytes.Buffer) error + func (h *BlockHeader) Sign(key tezos.PrivateKey) error + func (h *BlockHeader) UnmarshalBinary(data []byte) error + func (h *BlockHeader) WithSignature(sig tezos.Signature) *BlockHeader + func (h BlockHeader) Bytes() []byte + func (h BlockHeader) Digest() []byte + func (h BlockHeader) MarshalBinary() ([]byte, error) + func (h BlockHeader) MarshalJSON() ([]byte, error) + func (h BlockHeader) WatermarkedBytes() []byte + type Delegation struct + Delegate tezos.Address + func (o *Delegation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Delegation) UnmarshalBinary(data []byte) 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) + type DoubleBakingEvidence struct + Bh1 BlockHeader + Bh2 BlockHeader + func (o *DoubleBakingEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *DoubleBakingEvidence) UnmarshalBinary(data []byte) 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) + type DoubleEndorsementEvidence struct + Op1 InlinedEndorsement + Op2 InlinedEndorsement + Slot int16 + func (o *DoubleEndorsementEvidence) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *DoubleEndorsementEvidence) UnmarshalBinary(data []byte) 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) + type Endorsement struct + Level int32 + func (o *Endorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Endorsement) UnmarshalBinary(data []byte) 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) + type EndorsementWithSlot struct + Endorsement InlinedEndorsement + Slot int16 + func (o *EndorsementWithSlot) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *EndorsementWithSlot) UnmarshalBinary(data []byte) 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) + type FailingNoop struct + Arbitrary string + func (o *FailingNoop) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *FailingNoop) UnmarshalBinary(data []byte) 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) + type InlinedEndorsement struct + Branch tezos.BlockHash + Endorsement Endorsement + Signature tezos.Signature + func (o *InlinedEndorsement) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o InlinedEndorsement) EncodeBuffer(buf *bytes.Buffer, p *tezos.Params) error + type Manager struct + Counter tezos.N + Fee tezos.N + GasLimit tezos.N + Source tezos.Address + StorageLimit tezos.N + func (o *Manager) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Manager) WithCounter(c int64) + func (o *Manager) WithLimits(limits tezos.Limits) + func (o *Manager) WithSource(addr tezos.Address) + 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 + type Op struct + Branch tezos.BlockHash + Contents []Operation + Params *tezos.Params + Signature tezos.Signature + TTL int64 + func DecodeOp(data []byte) (*Op, error) + func NewOp() *Op + func (o *Op) Bytes() []byte + func (o *Op) Digest() []byte + func (o *Op) MarshalJSON() ([]byte, error) + func (o *Op) Sign(key tezos.PrivateKey) error + func (o *Op) WatermarkedBytes() []byte + func (o *Op) WithBranch(hash tezos.BlockHash) *Op + func (o *Op) WithContents(op Operation) *Op + func (o *Op) WithContentsFront(op Operation) *Op + func (o *Op) WithLimits(limits []tezos.Limits, margin int64) *Op + func (o *Op) WithParams(p *tezos.Params) *Op + func (o *Op) WithSignature(sig tezos.Signature) *Op + func (o *Op) WithSource(addr tezos.Address) *Op + func (o *Op) WithTTL(n int64) *Op + func (o Op) Limits() tezos.Limits + type Operation interface + DecodeBuffer func(buf *bytes.Buffer, p *tezos.Params) error + EncodeBuffer func(buf *bytes.Buffer, p *tezos.Params) error + GetCounter func() int64 + Kind func() tezos.OpType + Limits func() tezos.Limits + WithCounter func(int64) + WithLimits func(tezos.Limits) + WithSource func(tezos.Address) + type Origination struct + Balance tezos.N + Delegate tezos.Address + Script micheline.Script + func (o *Origination) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Origination) UnmarshalBinary(data []byte) 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) + type Proposals struct + Period int32 + Proposals []tezos.ProtocolHash + Source tezos.Address + func (o *Proposals) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Proposals) UnmarshalBinary(data []byte) 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) + type RegisterGlobalConstant struct + Value micheline.Prim + func (o *RegisterGlobalConstant) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *RegisterGlobalConstant) UnmarshalBinary(data []byte) 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) + type Reveal struct + PublicKey tezos.Key + func (o *Reveal) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Reveal) UnmarshalBinary(data []byte) 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) + type SeedNonceRevelation struct + Level int32 + Nonce tezos.HexBytes + func (o *SeedNonceRevelation) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *SeedNonceRevelation) UnmarshalBinary(data []byte) 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) + type SetDepositsLimit struct + Limit tezos.N + func (o *SetDepositsLimit) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *SetDepositsLimit) UnmarshalBinary(data []byte) 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) + type Simple struct + func (o *Simple) Limits() tezos.Limits + func (o *Simple) WithCounter(int64) + func (o *Simple) WithLimits(tezos.Limits) + func (o *Simple) WithSource(tezos.Address) + func (o Simple) GetCounter() int64 + type Transaction struct + Amount tezos.N + Destination tezos.Address + Parameters *micheline.Parameters + func (o *Transaction) DecodeBuffer(buf *bytes.Buffer, p *tezos.Params) (err error) + func (o *Transaction) UnmarshalBinary(data []byte) 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)