ccauthprotos

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrByWeight

type AddrByWeight struct {
	Addr                 *protos.TxAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Weight               int32          `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*AddrByWeight) Descriptor

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

func (*AddrByWeight) GetAddr

func (m *AddrByWeight) GetAddr() *protos.TxAddr

func (*AddrByWeight) GetWeight

func (m *AddrByWeight) GetWeight() int32

func (*AddrByWeight) ProtoMessage

func (*AddrByWeight) ProtoMessage()

func (*AddrByWeight) Reset

func (m *AddrByWeight) Reset()

func (*AddrByWeight) String

func (m *AddrByWeight) String() string

func (*AddrByWeight) XXX_DiscardUnknown

func (m *AddrByWeight) XXX_DiscardUnknown()

func (*AddrByWeight) XXX_Marshal

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

func (*AddrByWeight) XXX_Merge

func (m *AddrByWeight) XXX_Merge(src proto.Message)

func (*AddrByWeight) XXX_Size

func (m *AddrByWeight) XXX_Size() int

func (*AddrByWeight) XXX_Unmarshal

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

type Contract

type Contract struct {
	Threshold            int32           `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"`
	Addrs                []*AddrByWeight `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Contract) Descriptor

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

func (*Contract) GetAddrs

func (m *Contract) GetAddrs() []*AddrByWeight

func (*Contract) GetThreshold

func (m *Contract) GetThreshold() int32

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) String

func (m *Contract) String() string

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

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

func (*Contract) XXX_Merge

func (m *Contract) XXX_Merge(src proto.Message)

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

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

type Contract_s

type Contract_s struct {
	// contains filtered or unexported fields
}

func (*Contract_s) Find

func (n *Contract_s) Find(addr []byte) int

func (*Contract_s) GetObject

func (n *Contract_s) GetObject() interface{}

func (*Contract_s) Load

func (n *Contract_s) Load(interface{}) error

func (*Contract_s) LoadFromPB

func (n *Contract_s) LoadFromPB(p *Contract) *Contract_s

func (*Contract_s) Participate

func (n *Contract_s) Participate(addr []byte, weight int32)

notice this never check the duplication of addrs

func (*Contract_s) Save

func (n *Contract_s) Save() interface{}

func (*Contract_s) Serialize

func (n *Contract_s) Serialize() ([]byte, error)

func (*Contract_s) Sorter

func (n *Contract_s) Sorter() addrSort

func (*Contract_s) ToPB

func (n *Contract_s) ToPB() *Contract

type Update

type Update struct {
	Addr                 *protos.TxAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	From                 *protos.TxAddr `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To                   *protos.TxAddr `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Update) Descriptor

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

func (*Update) GetAddr

func (m *Update) GetAddr() *protos.TxAddr

func (*Update) GetAddresses added in v0.2.3

func (m *Update) GetAddresses() []*txutil.Address

GetAddresses indicate we use current contract address

func (*Update) GetFrom

func (m *Update) GetFrom() *protos.TxAddr

func (*Update) GetTo

func (m *Update) GetTo() *protos.TxAddr

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) Reset

func (m *Update) Reset()

func (*Update) String

func (m *Update) String() string

func (*Update) XXX_DiscardUnknown

func (m *Update) XXX_DiscardUnknown()

func (*Update) XXX_Marshal

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

func (*Update) XXX_Merge

func (m *Update) XXX_Merge(src proto.Message)

func (*Update) XXX_Size

func (m *Update) XXX_Size() int

func (*Update) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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