types

package
v0.0.0-...-1c4572a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoinsActionTransfer       = 1
	CoinsActionGenesis        = 2
	CoinsActionWithdraw       = 3
	CoinsActionTransferToExec = 10
)

Variables

View Source
var (
	CoinsX      = "coins"
	ExecerCoins = []byte(CoinsX)
)

Functions

This section is empty.

Types

type CoinsAction

type CoinsAction struct {
	// Types that are valid to be assigned to Value:
	//	*CoinsAction_Transfer
	//	*CoinsAction_Withdraw
	//	*CoinsAction_Genesis
	//	*CoinsAction_TransferToExec
	Value                isCoinsAction_Value `protobuf_oneof:"value"`
	Ty                   int32               `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

message for execs.coins

func (*CoinsAction) Descriptor

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

func (*CoinsAction) GetGenesis

func (m *CoinsAction) GetGenesis() *types.AssetsGenesis

func (*CoinsAction) GetTransfer

func (m *CoinsAction) GetTransfer() *types.AssetsTransfer

func (*CoinsAction) GetTransferToExec

func (m *CoinsAction) GetTransferToExec() *types.AssetsTransferToExec

func (*CoinsAction) GetTy

func (m *CoinsAction) GetTy() int32

func (*CoinsAction) GetValue

func (m *CoinsAction) GetValue() isCoinsAction_Value

func (*CoinsAction) GetWithdraw

func (m *CoinsAction) GetWithdraw() *types.AssetsWithdraw

func (*CoinsAction) ProtoMessage

func (*CoinsAction) ProtoMessage()

func (*CoinsAction) Reset

func (m *CoinsAction) Reset()

func (*CoinsAction) String

func (m *CoinsAction) String() string

func (*CoinsAction) XXX_DiscardUnknown

func (m *CoinsAction) XXX_DiscardUnknown()

func (*CoinsAction) XXX_Marshal

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

func (*CoinsAction) XXX_Merge

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

func (*CoinsAction) XXX_OneofFuncs

func (*CoinsAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*CoinsAction) XXX_Size

func (m *CoinsAction) XXX_Size() int

func (*CoinsAction) XXX_Unmarshal

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

type CoinsAction_Genesis

type CoinsAction_Genesis struct {
	Genesis *types.AssetsGenesis `protobuf:"bytes,2,opt,name=genesis,proto3,oneof"`
}

type CoinsAction_Transfer

type CoinsAction_Transfer struct {
	Transfer *types.AssetsTransfer `protobuf:"bytes,1,opt,name=transfer,proto3,oneof"`
}

type CoinsAction_TransferToExec

type CoinsAction_TransferToExec struct {
	TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,5,opt,name=transferToExec,proto3,oneof"`
}

type CoinsAction_Withdraw

type CoinsAction_Withdraw struct {
	Withdraw *types.AssetsWithdraw `protobuf:"bytes,4,opt,name=withdraw,proto3,oneof"`
}

type CoinsType

type CoinsType struct {
	types.ExecTypeBase
}

func NewType

func NewType() *CoinsType

func (*CoinsType) GetAssets

func (c *CoinsType) GetAssets(tx *types.Transaction) ([]*types.Asset, error)

func (*CoinsType) GetLogMap

func (coins *CoinsType) GetLogMap() map[int64]*types.LogInfo

func (*CoinsType) GetName

func (coins *CoinsType) GetName() string

func (*CoinsType) GetPayload

func (coins *CoinsType) GetPayload() types.Message

func (*CoinsType) GetTypeMap

func (c *CoinsType) GetTypeMap() map[string]int32

func (*CoinsType) RPC_Default_Process

func (c *CoinsType) RPC_Default_Process(action string, msg interface{}) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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