payload

package
v0.0.0-...-25a45d7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeUnknown = Type(0x00)
	// Account transactions
	TypeSend  = Type(0x01)
	TypeCall  = Type(0x02)
	TypeName  = Type(0x03)
	TypeBatch = Type(0x04)

	// Validation transactions
	TypeBond   = Type(0x11)
	TypeUnbond = Type(0x12)

	// Admin transactions
	TypePermissions = Type(0x21)
	TypeGovernance  = Type(0x22)
	TypeProposal    = Type(0x23)
)

Types of Payload implementations

Variables

View Source
var (
	ErrInvalidLengthPayload = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPayload   = fmt.Errorf("proto: integer overflow")
)
View Source
var Ballot_ProposalState_name = map[int32]string{
	0: "PROPOSED",
	1: "EXECUTED",
	2: "FAILED",
}
View Source
var Ballot_ProposalState_value = map[string]int32{
	"PROPOSED": 0,
	"EXECUTED": 1,
	"FAILED":   2,
}

Functions

This section is empty.

Types

type Any

type Any struct {
	CallTx               *CallTx     `protobuf:"bytes,1,opt,name=CallTx" json:"CallTx,omitempty"`
	SendTx               *SendTx     `protobuf:"bytes,2,opt,name=SendTx" json:"SendTx,omitempty"`
	NameTx               *NameTx     `protobuf:"bytes,3,opt,name=NameTx" json:"NameTx,omitempty"`
	PermsTx              *PermsTx    `protobuf:"bytes,4,opt,name=PermsTx" json:"PermsTx,omitempty"`
	GovTx                *GovTx      `protobuf:"bytes,5,opt,name=GovTx" json:"GovTx,omitempty"`
	BondTx               *BondTx     `protobuf:"bytes,6,opt,name=BondTx" json:"BondTx,omitempty"`
	UnbondTx             *UnbondTx   `protobuf:"bytes,7,opt,name=UnbondTx" json:"UnbondTx,omitempty"`
	BatchTx              *BatchTx    `protobuf:"bytes,8,opt,name=BatchTx" json:"BatchTx,omitempty"`
	ProposalTx           *ProposalTx `protobuf:"bytes,9,opt,name=ProposalTx" json:"ProposalTx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Any) Descriptor

func (*Any) Descriptor() ([]byte, []int)

func (*Any) GetBatchTx

func (m *Any) GetBatchTx() *BatchTx

func (*Any) GetBondTx

func (m *Any) GetBondTx() *BondTx

func (*Any) GetCallTx

func (m *Any) GetCallTx() *CallTx

func (*Any) GetGovTx

func (m *Any) GetGovTx() *GovTx

func (*Any) GetNameTx

func (m *Any) GetNameTx() *NameTx

func (*Any) GetPermsTx

func (m *Any) GetPermsTx() *PermsTx

func (*Any) GetProposalTx

func (m *Any) GetProposalTx() *ProposalTx

func (*Any) GetSendTx

func (m *Any) GetSendTx() *SendTx

func (*Any) GetUnbondTx

func (m *Any) GetUnbondTx() *UnbondTx

func (*Any) GetValue

func (this *Any) GetValue() interface{}

func (*Any) Marshal

func (m *Any) Marshal() (dAtA []byte, err error)

func (*Any) MarshalTo

func (m *Any) MarshalTo(dAtA []byte) (int, error)

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) Reset

func (m *Any) Reset()

func (*Any) SetValue

func (this *Any) SetValue(value interface{}) bool

func (*Any) Size

func (m *Any) Size() (n int)

func (*Any) String

func (m *Any) String() string

func (*Any) Unmarshal

func (m *Any) Unmarshal(dAtA []byte) error

func (*Any) XXX_DiscardUnknown

func (m *Any) XXX_DiscardUnknown()

func (*Any) XXX_Marshal

func (m *Any) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Any) XXX_Merge

func (dst *Any) XXX_Merge(src proto.Message)

func (*Any) XXX_MessageName

func (*Any) XXX_MessageName() string

func (*Any) XXX_Size

func (m *Any) XXX_Size() int

func (*Any) XXX_Unmarshal

func (m *Any) XXX_Unmarshal(b []byte) error

type Ballot

type Ballot struct {
	Proposal             *Proposal                                      `protobuf:"bytes,1,opt,name=Proposal" json:"Proposal,omitempty"`
	FinalizingTx         *github_com_hyperledger_burrow_binary.HexBytes `` /* 134-byte string literal not displayed */
	ProposalState        Ballot_ProposalState                           `protobuf:"varint,4,opt,name=proposalState,proto3,enum=payload.Ballot_ProposalState" json:"proposalState,omitempty"`
	Votes                []*Vote                                        `protobuf:"bytes,5,rep,name=Votes" json:"Votes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                       `json:"-"`
	XXX_unrecognized     []byte                                         `json:"-"`
	XXX_sizecache        int32                                          `json:"-"`
}

func DecodeBallot

func DecodeBallot(ballotBytes []byte) (*Ballot, error)

func (*Ballot) Descriptor

func (*Ballot) Descriptor() ([]byte, []int)

func (*Ballot) Encode

func (p *Ballot) Encode() ([]byte, error)

func (*Ballot) GetProposal

func (m *Ballot) GetProposal() *Proposal

func (*Ballot) GetProposalState

func (m *Ballot) GetProposalState() Ballot_ProposalState

func (*Ballot) GetVotes

func (m *Ballot) GetVotes() []*Vote

func (*Ballot) Marshal

func (m *Ballot) Marshal() (dAtA []byte, err error)

func (*Ballot) MarshalTo

func (m *Ballot) MarshalTo(dAtA []byte) (int, error)

func (*Ballot) ProtoMessage

func (*Ballot) ProtoMessage()

func (*Ballot) Reset

func (m *Ballot) Reset()

func (*Ballot) Size

func (m *Ballot) Size() (n int)

func (*Ballot) String

func (m *Ballot) String() string

func (*Ballot) Unmarshal

func (m *Ballot) Unmarshal(dAtA []byte) error

func (*Ballot) XXX_DiscardUnknown

func (m *Ballot) XXX_DiscardUnknown()

func (*Ballot) XXX_Marshal

func (m *Ballot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ballot) XXX_Merge

func (dst *Ballot) XXX_Merge(src proto.Message)

func (*Ballot) XXX_MessageName

func (*Ballot) XXX_MessageName() string

func (*Ballot) XXX_Size

func (m *Ballot) XXX_Size() int

func (*Ballot) XXX_Unmarshal

func (m *Ballot) XXX_Unmarshal(b []byte) error

type Ballot_ProposalState

type Ballot_ProposalState int32
const (
	// PROPOSED might be expired, if sequence number of any of the input accounts are out of date
	Ballot_PROPOSED Ballot_ProposalState = 0
	Ballot_EXECUTED Ballot_ProposalState = 1
	Ballot_FAILED   Ballot_ProposalState = 2
)

func (Ballot_ProposalState) EnumDescriptor

func (Ballot_ProposalState) EnumDescriptor() ([]byte, []int)

func (Ballot_ProposalState) String

func (x Ballot_ProposalState) String() string

type BatchTx

type BatchTx struct {
	Inputs               []*TxInput `protobuf:"bytes,1,rep,name=Inputs" json:"Inputs,omitempty"`
	Txs                  []*Any     `protobuf:"bytes,2,rep,name=Txs" json:"Txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*BatchTx) Any

func (tx *BatchTx) Any() *Any

func (*BatchTx) Descriptor

func (*BatchTx) Descriptor() ([]byte, []int)

func (*BatchTx) GetInputs

func (tx *BatchTx) GetInputs() []*TxInput

func (*BatchTx) Marshal

func (m *BatchTx) Marshal() (dAtA []byte, err error)

func (*BatchTx) MarshalTo

func (m *BatchTx) MarshalTo(dAtA []byte) (int, error)

func (*BatchTx) ProtoMessage

func (*BatchTx) ProtoMessage()

func (*BatchTx) Reset

func (m *BatchTx) Reset()

func (*BatchTx) Size

func (m *BatchTx) Size() (n int)

func (*BatchTx) String

func (tx *BatchTx) String() string

func (*BatchTx) Type

func (tx *BatchTx) Type() Type

func (*BatchTx) Unmarshal

func (m *BatchTx) Unmarshal(dAtA []byte) error

func (*BatchTx) XXX_DiscardUnknown

func (m *BatchTx) XXX_DiscardUnknown()

func (*BatchTx) XXX_Marshal

func (m *BatchTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchTx) XXX_Merge

func (dst *BatchTx) XXX_Merge(src proto.Message)

func (*BatchTx) XXX_MessageName

func (*BatchTx) XXX_MessageName() string

func (*BatchTx) XXX_Size

func (m *BatchTx) XXX_Size() int

func (*BatchTx) XXX_Unmarshal

func (m *BatchTx) XXX_Unmarshal(b []byte) error

type BondTx

type BondTx struct {
	Inputs               []*TxInput  `protobuf:"bytes,1,rep,name=Inputs" json:"Inputs,omitempty"`
	UnbondTo             []*TxOutput `protobuf:"bytes,2,rep,name=UnbondTo" json:"UnbondTo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func NewBondTx

func NewBondTx(pubkey crypto.PublicKey) (*BondTx, error)

func (*BondTx) AddInput

func (tx *BondTx) AddInput(st state.AccountGetter, pubkey crypto.PublicKey, amt uint64) error

func (*BondTx) AddInputWithSequence

func (tx *BondTx) AddInputWithSequence(pubkey crypto.PublicKey, amt uint64, sequence uint64) error

func (*BondTx) AddOutput

func (tx *BondTx) AddOutput(addr crypto.Address, amt uint64) error

func (*BondTx) Any

func (tx *BondTx) Any() *Any

func (*BondTx) Descriptor

func (*BondTx) Descriptor() ([]byte, []int)

func (*BondTx) GetInputs

func (tx *BondTx) GetInputs() []*TxInput

func (*BondTx) Marshal

func (m *BondTx) Marshal() (dAtA []byte, err error)

func (*BondTx) MarshalTo

func (m *BondTx) MarshalTo(dAtA []byte) (int, error)

func (*BondTx) ProtoMessage

func (*BondTx) ProtoMessage()

func (*BondTx) Reset

func (m *BondTx) Reset()

func (*BondTx) Size

func (m *BondTx) Size() (n int)

func (*BondTx) String

func (tx *BondTx) String() string

func (*BondTx) Type

func (tx *BondTx) Type() Type

func (*BondTx) Unmarshal

func (m *BondTx) Unmarshal(dAtA []byte) error

func (*BondTx) XXX_DiscardUnknown

func (m *BondTx) XXX_DiscardUnknown()

func (*BondTx) XXX_Marshal

func (m *BondTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BondTx) XXX_Merge

func (dst *BondTx) XXX_Merge(src proto.Message)

func (*BondTx) XXX_MessageName

func (*BondTx) XXX_MessageName() string

func (*BondTx) XXX_Size

func (m *BondTx) XXX_Size() int

func (*BondTx) XXX_Unmarshal

func (m *BondTx) XXX_Unmarshal(b []byte) error

type CallTx

type CallTx struct {
	// The caller's input
	Input *TxInput `protobuf:"bytes,1,opt,name=Input" json:"Input,omitempty"`
	// The contract address to call or nil if we are creating a contract
	Address *github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,2,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address,omitempty"`
	// The upper bound on the amount of gas (and therefore EVM execution steps) this CallTx may generate
	GasLimit uint64 `protobuf:"varint,3,opt,name=GasLimit,proto3" json:"GasLimit,omitempty"`
	// Fee to offer validators for processing transaction
	Fee uint64 `protobuf:"varint,4,opt,name=Fee,proto3" json:"Fee,omitempty"`
	// EVM bytecode payload
	Data                 github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,5,opt,name=Data,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"Data"`
	XXX_NoUnkeyedLiteral struct{}                                      `json:"-"`
	XXX_unrecognized     []byte                                        `json:"-"`
	XXX_sizecache        int32                                         `json:"-"`
}

A instruction to run smart contract code in the EVM

func NewCallTx

func NewCallTx(st state.AccountGetter, from crypto.PublicKey, to *crypto.Address, data []byte,
	amt, gasLimit, fee uint64) (*CallTx, error)

func NewCallTxWithSequence

func NewCallTxWithSequence(from crypto.PublicKey, to *crypto.Address, data []byte,
	amt, gasLimit, fee, sequence uint64) *CallTx

func (*CallTx) Any

func (tx *CallTx) Any() *Any

func (*CallTx) Descriptor

func (*CallTx) Descriptor() ([]byte, []int)

func (*CallTx) GetFee

func (m *CallTx) GetFee() uint64

func (*CallTx) GetGasLimit

func (m *CallTx) GetGasLimit() uint64

func (*CallTx) GetInput

func (m *CallTx) GetInput() *TxInput

func (*CallTx) GetInputs

func (tx *CallTx) GetInputs() []*TxInput

func (*CallTx) Marshal

func (m *CallTx) Marshal() (dAtA []byte, err error)

func (*CallTx) MarshalTo

func (m *CallTx) MarshalTo(dAtA []byte) (int, error)

func (*CallTx) ProtoMessage

func (*CallTx) ProtoMessage()

func (*CallTx) Reset

func (m *CallTx) Reset()

func (*CallTx) Size

func (m *CallTx) Size() (n int)

func (*CallTx) String

func (tx *CallTx) String() string

func (*CallTx) Type

func (tx *CallTx) Type() Type

func (*CallTx) Unmarshal

func (m *CallTx) Unmarshal(dAtA []byte) error

func (*CallTx) XXX_DiscardUnknown

func (m *CallTx) XXX_DiscardUnknown()

func (*CallTx) XXX_Marshal

func (m *CallTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CallTx) XXX_Merge

func (dst *CallTx) XXX_Merge(src proto.Message)

func (*CallTx) XXX_MessageName

func (*CallTx) XXX_MessageName() string

func (*CallTx) XXX_Size

func (m *CallTx) XXX_Size() int

func (*CallTx) XXX_Unmarshal

func (m *CallTx) XXX_Unmarshal(b []byte) error

type GovTx

type GovTx struct {
	Inputs               []*TxInput              `protobuf:"bytes,1,rep,name=Inputs" json:"Inputs,omitempty"`
	AccountUpdates       []*spec.TemplateAccount `protobuf:"bytes,2,rep,name=AccountUpdates" json:"AccountUpdates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*GovTx) Any

func (tx *GovTx) Any() *Any

func (*GovTx) Descriptor

func (*GovTx) Descriptor() ([]byte, []int)

func (*GovTx) GetInputs

func (tx *GovTx) GetInputs() []*TxInput

func (*GovTx) Marshal

func (m *GovTx) Marshal() (dAtA []byte, err error)

func (*GovTx) MarshalTo

func (m *GovTx) MarshalTo(dAtA []byte) (int, error)

func (*GovTx) ProtoMessage

func (*GovTx) ProtoMessage()

func (*GovTx) Reset

func (m *GovTx) Reset()

func (*GovTx) Size

func (m *GovTx) Size() (n int)

func (*GovTx) String

func (tx *GovTx) String() string

func (*GovTx) Type

func (tx *GovTx) Type() Type

func (*GovTx) Unmarshal

func (m *GovTx) Unmarshal(dAtA []byte) error

func (*GovTx) XXX_DiscardUnknown

func (m *GovTx) XXX_DiscardUnknown()

func (*GovTx) XXX_Marshal

func (m *GovTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GovTx) XXX_Merge

func (dst *GovTx) XXX_Merge(src proto.Message)

func (*GovTx) XXX_MessageName

func (*GovTx) XXX_MessageName() string

func (*GovTx) XXX_Size

func (m *GovTx) XXX_Size() int

func (*GovTx) XXX_Unmarshal

func (m *GovTx) XXX_Unmarshal(b []byte) error

type NameTx

type NameTx struct {
	// The name updater
	Input *TxInput `protobuf:"bytes,1,opt,name=Input" json:"Input,omitempty"`
	// The name to update or create
	Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	// The data to store against the name
	Data string `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
	// The fee to provide that will determine the length of the name lease
	Fee                  uint64   `protobuf:"varint,4,opt,name=Fee,proto3" json:"Fee,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A request to claim a globally unique name across the entire chain with some optional data storage leased for a fee

func NewNameTx

func NewNameTx(st state.AccountGetter, from crypto.PublicKey, name, data string, amt, fee uint64) (*NameTx, error)

func NewNameTxWithSequence

func NewNameTxWithSequence(from crypto.PublicKey, name, data string, amt, fee, sequence uint64) *NameTx

func (*NameTx) Any

func (tx *NameTx) Any() *Any

func (*NameTx) Descriptor

func (*NameTx) Descriptor() ([]byte, []int)

func (*NameTx) GetData

func (m *NameTx) GetData() string

func (*NameTx) GetFee

func (m *NameTx) GetFee() uint64

func (*NameTx) GetInput

func (m *NameTx) GetInput() *TxInput

func (*NameTx) GetInputs

func (tx *NameTx) GetInputs() []*TxInput

func (*NameTx) GetName

func (m *NameTx) GetName() string

func (*NameTx) Marshal

func (m *NameTx) Marshal() (dAtA []byte, err error)

func (*NameTx) MarshalTo

func (m *NameTx) MarshalTo(dAtA []byte) (int, error)

func (*NameTx) ProtoMessage

func (*NameTx) ProtoMessage()

func (*NameTx) Reset

func (m *NameTx) Reset()

func (*NameTx) Size

func (m *NameTx) Size() (n int)

func (*NameTx) String

func (tx *NameTx) String() string

func (*NameTx) Type

func (tx *NameTx) Type() Type

func (*NameTx) Unmarshal

func (m *NameTx) Unmarshal(dAtA []byte) error

func (*NameTx) XXX_DiscardUnknown

func (m *NameTx) XXX_DiscardUnknown()

func (*NameTx) XXX_Marshal

func (m *NameTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NameTx) XXX_Merge

func (dst *NameTx) XXX_Merge(src proto.Message)

func (*NameTx) XXX_MessageName

func (*NameTx) XXX_MessageName() string

func (*NameTx) XXX_Size

func (m *NameTx) XXX_Size() int

func (*NameTx) XXX_Unmarshal

func (m *NameTx) XXX_Unmarshal(b []byte) error

type Payload

type Payload interface {
	String() string
	GetInputs() []*TxInput
	Type() Type
	Any() *Any
	// The serialised size in bytes
	Size() int
}

func New

func New(txType Type) (Payload, error)

type PermsTx

type PermsTx struct {
	// The permission moderator
	Input *TxInput `protobuf:"bytes,1,opt,name=Input" json:"Input,omitempty"`
	// The modified permissions
	PermArgs             permission.PermArgs `protobuf:"bytes,2,opt,name=PermArgs" json:"PermArgs"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

An update to the on-chain permissions

func NewPermsTx

func NewPermsTx(st state.AccountGetter, from crypto.PublicKey, args permission.PermArgs) (*PermsTx, error)

func NewPermsTxWithSequence

func NewPermsTxWithSequence(from crypto.PublicKey, args permission.PermArgs, sequence uint64) *PermsTx

func (*PermsTx) Any

func (tx *PermsTx) Any() *Any

func (*PermsTx) Descriptor

func (*PermsTx) Descriptor() ([]byte, []int)

func (*PermsTx) GetInput

func (m *PermsTx) GetInput() *TxInput

func (*PermsTx) GetInputs

func (tx *PermsTx) GetInputs() []*TxInput

func (*PermsTx) GetPermArgs

func (m *PermsTx) GetPermArgs() permission.PermArgs

func (*PermsTx) Marshal

func (m *PermsTx) Marshal() (dAtA []byte, err error)

func (*PermsTx) MarshalTo

func (m *PermsTx) MarshalTo(dAtA []byte) (int, error)

func (*PermsTx) ProtoMessage

func (*PermsTx) ProtoMessage()

func (*PermsTx) Reset

func (m *PermsTx) Reset()

func (*PermsTx) Size

func (m *PermsTx) Size() (n int)

func (*PermsTx) String

func (tx *PermsTx) String() string

func (*PermsTx) Type

func (tx *PermsTx) Type() Type

func (*PermsTx) Unmarshal

func (m *PermsTx) Unmarshal(dAtA []byte) error

func (*PermsTx) XXX_DiscardUnknown

func (m *PermsTx) XXX_DiscardUnknown()

func (*PermsTx) XXX_Marshal

func (m *PermsTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PermsTx) XXX_Merge

func (dst *PermsTx) XXX_Merge(src proto.Message)

func (*PermsTx) XXX_MessageName

func (*PermsTx) XXX_MessageName() string

func (*PermsTx) XXX_Size

func (m *PermsTx) XXX_Size() int

func (*PermsTx) XXX_Unmarshal

func (m *PermsTx) XXX_Unmarshal(b []byte) error

type Proposal

type Proposal struct {
	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
	BatchTx              *BatchTx `protobuf:"bytes,3,opt,name=BatchTx" json:"BatchTx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func DecodeProposal

func DecodeProposal(proposalBytes []byte) (*Proposal, error)

func (*Proposal) Descriptor

func (*Proposal) Descriptor() ([]byte, []int)

func (*Proposal) Encode

func (p *Proposal) Encode() ([]byte, error)

func (*Proposal) Hash

func (p *Proposal) Hash() []byte

func (*Proposal) Marshal

func (m *Proposal) Marshal() (dAtA []byte, err error)

func (*Proposal) MarshalTo

func (m *Proposal) MarshalTo(dAtA []byte) (int, error)

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

func (m *Proposal) Size() (n int)

func (*Proposal) String

func (p *Proposal) String() string

func (*Proposal) Unmarshal

func (m *Proposal) Unmarshal(dAtA []byte) error

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposal) XXX_Merge

func (dst *Proposal) XXX_Merge(src proto.Message)

func (*Proposal) XXX_MessageName

func (*Proposal) XXX_MessageName() string

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

func (m *Proposal) XXX_Unmarshal(b []byte) error

type ProposalTx

type ProposalTx struct {
	Input                *TxInput                                       `protobuf:"bytes,1,opt,name=Input" json:"Input,omitempty"`
	VotingWeight         int64                                          `protobuf:"varint,2,opt,name=VotingWeight,proto3" json:"VotingWeight,omitempty"`
	ProposalHash         *github_com_hyperledger_burrow_binary.HexBytes `` /* 134-byte string literal not displayed */
	Proposal             *Proposal                                      `protobuf:"bytes,4,opt,name=Proposal" json:"Proposal,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                       `json:"-"`
	XXX_unrecognized     []byte                                         `json:"-"`
	XXX_sizecache        int32                                          `json:"-"`
}

func NewProposalTx

func NewProposalTx(propsal *Proposal) *ProposalTx

func (*ProposalTx) Any

func (tx *ProposalTx) Any() *Any

func (*ProposalTx) Descriptor

func (*ProposalTx) Descriptor() ([]byte, []int)

func (*ProposalTx) GetInputs

func (tx *ProposalTx) GetInputs() []*TxInput

func (*ProposalTx) Marshal

func (m *ProposalTx) Marshal() (dAtA []byte, err error)

func (*ProposalTx) MarshalTo

func (m *ProposalTx) MarshalTo(dAtA []byte) (int, error)

func (*ProposalTx) ProtoMessage

func (*ProposalTx) ProtoMessage()

func (*ProposalTx) Reset

func (m *ProposalTx) Reset()

func (*ProposalTx) Size

func (m *ProposalTx) Size() (n int)

func (*ProposalTx) String

func (tx *ProposalTx) String() string

func (*ProposalTx) Type

func (tx *ProposalTx) Type() Type

func (*ProposalTx) Unmarshal

func (m *ProposalTx) Unmarshal(dAtA []byte) error

func (*ProposalTx) XXX_DiscardUnknown

func (m *ProposalTx) XXX_DiscardUnknown()

func (*ProposalTx) XXX_Marshal

func (m *ProposalTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalTx) XXX_Merge

func (dst *ProposalTx) XXX_Merge(src proto.Message)

func (*ProposalTx) XXX_MessageName

func (*ProposalTx) XXX_MessageName() string

func (*ProposalTx) XXX_Size

func (m *ProposalTx) XXX_Size() int

func (*ProposalTx) XXX_Unmarshal

func (m *ProposalTx) XXX_Unmarshal(b []byte) error

type SendTx

type SendTx struct {
	// The payers
	Inputs []*TxInput `protobuf:"bytes,1,rep,name=Inputs" json:"Inputs,omitempty"`
	// The payees
	Outputs              []*TxOutput `protobuf:"bytes,2,rep,name=Outputs" json:"Outputs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

A payment between two sets of parties

func NewSendTx

func NewSendTx() *SendTx

func (*SendTx) AddInput

func (tx *SendTx) AddInput(st state.AccountGetter, pubkey crypto.PublicKey, amt uint64) error

func (*SendTx) AddInputWithSequence

func (tx *SendTx) AddInputWithSequence(pubkey crypto.PublicKey, amt uint64, sequence uint64) error

func (*SendTx) AddOutput

func (tx *SendTx) AddOutput(addr crypto.Address, amt uint64) error

func (*SendTx) Any

func (tx *SendTx) Any() *Any

func (*SendTx) Descriptor

func (*SendTx) Descriptor() ([]byte, []int)

func (*SendTx) GetInputs

func (tx *SendTx) GetInputs() []*TxInput

func (*SendTx) Marshal

func (m *SendTx) Marshal() (dAtA []byte, err error)

func (*SendTx) MarshalTo

func (m *SendTx) MarshalTo(dAtA []byte) (int, error)

func (*SendTx) ProtoMessage

func (*SendTx) ProtoMessage()

func (*SendTx) Reset

func (m *SendTx) Reset()

func (*SendTx) Size

func (m *SendTx) Size() (n int)

func (*SendTx) String

func (tx *SendTx) String() string

func (*SendTx) Type

func (tx *SendTx) Type() Type

func (*SendTx) Unmarshal

func (m *SendTx) Unmarshal(dAtA []byte) error

func (*SendTx) XXX_DiscardUnknown

func (m *SendTx) XXX_DiscardUnknown()

func (*SendTx) XXX_Marshal

func (m *SendTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendTx) XXX_Merge

func (dst *SendTx) XXX_Merge(src proto.Message)

func (*SendTx) XXX_MessageName

func (*SendTx) XXX_MessageName() string

func (*SendTx) XXX_Size

func (m *SendTx) XXX_Size() int

func (*SendTx) XXX_Unmarshal

func (m *SendTx) XXX_Unmarshal(b []byte) error

type TxInput

type TxInput struct {
	// The address from which this input flows
	Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"`
	// The amount of native token to transfer from the input address
	Amount uint64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
	// The sequence number that this transaction will induce (i.e. one greater than the input account's current sequence)
	Sequence             uint64   `protobuf:"varint,3,opt,name=Sequence,proto3" json:"Sequence,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An input to a transaction that may carry an Amount as a charge and whose sequence number must be one greater than that associated with the account at Address at the time of being received

func (*TxInput) Descriptor

func (*TxInput) Descriptor() ([]byte, []int)

func (*TxInput) GetAmount

func (m *TxInput) GetAmount() uint64

func (*TxInput) GetSequence

func (m *TxInput) GetSequence() uint64

func (*TxInput) Marshal

func (m *TxInput) Marshal() (dAtA []byte, err error)

func (*TxInput) MarshalTo

func (m *TxInput) MarshalTo(dAtA []byte) (int, error)

func (*TxInput) ProtoMessage

func (*TxInput) ProtoMessage()

func (*TxInput) Reset

func (m *TxInput) Reset()

func (*TxInput) Size

func (m *TxInput) Size() (n int)

func (*TxInput) String

func (input *TxInput) String() string

func (*TxInput) Unmarshal

func (m *TxInput) Unmarshal(dAtA []byte) error

func (*TxInput) XXX_DiscardUnknown

func (m *TxInput) XXX_DiscardUnknown()

func (*TxInput) XXX_Marshal

func (m *TxInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxInput) XXX_Merge

func (dst *TxInput) XXX_Merge(src proto.Message)

func (*TxInput) XXX_MessageName

func (*TxInput) XXX_MessageName() string

func (*TxInput) XXX_Size

func (m *TxInput) XXX_Size() int

func (*TxInput) XXX_Unmarshal

func (m *TxInput) XXX_Unmarshal(b []byte) error

type TxOutput

type TxOutput struct {
	// The address to which this output flows
	Address github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"`
	// The amount of native token to transfer to the output address
	Amount               uint64   `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An output from a transaction that may carry an amount as a charge

func (*TxOutput) Descriptor

func (*TxOutput) Descriptor() ([]byte, []int)

func (*TxOutput) GetAmount

func (m *TxOutput) GetAmount() uint64

func (*TxOutput) Marshal

func (m *TxOutput) Marshal() (dAtA []byte, err error)

func (*TxOutput) MarshalTo

func (m *TxOutput) MarshalTo(dAtA []byte) (int, error)

func (*TxOutput) ProtoMessage

func (*TxOutput) ProtoMessage()

func (*TxOutput) Reset

func (m *TxOutput) Reset()

func (*TxOutput) Size

func (m *TxOutput) Size() (n int)

func (*TxOutput) String

func (txOut *TxOutput) String() string

func (*TxOutput) Unmarshal

func (m *TxOutput) Unmarshal(dAtA []byte) error

func (*TxOutput) XXX_DiscardUnknown

func (m *TxOutput) XXX_DiscardUnknown()

func (*TxOutput) XXX_Marshal

func (m *TxOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxOutput) XXX_Merge

func (dst *TxOutput) XXX_Merge(src proto.Message)

func (*TxOutput) XXX_MessageName

func (*TxOutput) XXX_MessageName() string

func (*TxOutput) XXX_Size

func (m *TxOutput) XXX_Size() int

func (*TxOutput) XXX_Unmarshal

func (m *TxOutput) XXX_Unmarshal(b []byte) error

type Type

type Type uint32

func TxTypeFromString

func TxTypeFromString(name string) Type

func (Type) Marshal

func (typ Type) Marshal() ([]byte, error)

Protobuf support

func (Type) MarshalText

func (typ Type) MarshalText() ([]byte, error)

func (Type) String

func (typ Type) String() string

func (*Type) Unmarshal

func (typ *Type) Unmarshal(data []byte) error

func (*Type) UnmarshalText

func (typ *Type) UnmarshalText(data []byte) error

type UnbondTx

type UnbondTx struct {
	Input                *TxInput                                     `protobuf:"bytes,1,opt,name=Input" json:"Input,omitempty"`
	Address              github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,2,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"`
	Height               uint64                                       `protobuf:"varint,3,opt,name=Height,proto3" json:"Height,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                     `json:"-"`
	XXX_unrecognized     []byte                                       `json:"-"`
	XXX_sizecache        int32                                        `json:"-"`
}

func NewUnbondTx

func NewUnbondTx(address crypto.Address, height uint64) *UnbondTx

func (*UnbondTx) Any

func (tx *UnbondTx) Any() *Any

func (*UnbondTx) Descriptor

func (*UnbondTx) Descriptor() ([]byte, []int)

func (*UnbondTx) GetInputs

func (tx *UnbondTx) GetInputs() []*TxInput

func (*UnbondTx) Marshal

func (m *UnbondTx) Marshal() (dAtA []byte, err error)

func (*UnbondTx) MarshalTo

func (m *UnbondTx) MarshalTo(dAtA []byte) (int, error)

func (*UnbondTx) ProtoMessage

func (*UnbondTx) ProtoMessage()

func (*UnbondTx) Reset

func (m *UnbondTx) Reset()

func (*UnbondTx) Size

func (m *UnbondTx) Size() (n int)

func (*UnbondTx) String

func (tx *UnbondTx) String() string

func (*UnbondTx) Type

func (tx *UnbondTx) Type() Type

func (*UnbondTx) Unmarshal

func (m *UnbondTx) Unmarshal(dAtA []byte) error

func (*UnbondTx) XXX_DiscardUnknown

func (m *UnbondTx) XXX_DiscardUnknown()

func (*UnbondTx) XXX_Marshal

func (m *UnbondTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnbondTx) XXX_Merge

func (dst *UnbondTx) XXX_Merge(src proto.Message)

func (*UnbondTx) XXX_MessageName

func (*UnbondTx) XXX_MessageName() string

func (*UnbondTx) XXX_Size

func (m *UnbondTx) XXX_Size() int

func (*UnbondTx) XXX_Unmarshal

func (m *UnbondTx) XXX_Unmarshal(b []byte) error

type Vote

type Vote struct {
	Address              github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=Address,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"Address"`
	VotingWeight         int64                                        `protobuf:"varint,2,opt,name=VotingWeight,proto3" json:"VotingWeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                     `json:"-"`
	XXX_unrecognized     []byte                                       `json:"-"`
	XXX_sizecache        int32                                        `json:"-"`
}

func (*Vote) Descriptor

func (*Vote) Descriptor() ([]byte, []int)

func (*Vote) Marshal

func (m *Vote) Marshal() (dAtA []byte, err error)

func (*Vote) MarshalTo

func (m *Vote) MarshalTo(dAtA []byte) (int, error)

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

func (m *Vote) Size() (n int)

func (*Vote) String

func (v *Vote) String() string

func (*Vote) Unmarshal

func (m *Vote) Unmarshal(dAtA []byte) error

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vote) XXX_Merge

func (dst *Vote) XXX_Merge(src proto.Message)

func (*Vote) XXX_MessageName

func (*Vote) XXX_MessageName() string

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

func (m *Vote) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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