walletpb

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthWallet        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWallet          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWallet = fmt.Errorf("proto: unexpected end of group")
)
View Source
var TransactionV1_Type_name = map[int32]string{
	0: "EXCHANGE",
	1: "ON_CHAIN",
	2: "OFF_CHAIN",
}
View Source
var TransactionV1_Type_value = map[string]int32{
	"EXCHANGE":  0,
	"ON_CHAIN":  1,
	"OFF_CHAIN": 2,
}

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	Id                   int64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	TimeCreate           time.Time `protobuf:"bytes,2,opt,name=time_create,json=timeCreate,proto3,stdtime" json:"time_create" pg:"time_create"`
	Amount               int64     `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"`
	From                 string    `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty" pg:"from"`
	To                   string    `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty" pg:"to"`
	Status               string    `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty" pg:"status"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedTransaction

func NewPopulatedTransaction(r randyWallet, easy bool) *Transaction

func (*Transaction) Descriptor

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

func (*Transaction) GetAmount

func (m *Transaction) GetAmount() int64

func (*Transaction) GetFrom

func (m *Transaction) GetFrom() string

func (*Transaction) GetId

func (m *Transaction) GetId() int64

func (*Transaction) GetStatus

func (m *Transaction) GetStatus() string

func (*Transaction) GetTimeCreate

func (m *Transaction) GetTimeCreate() time.Time

func (*Transaction) GetTo

func (m *Transaction) GetTo() string

func (*Transaction) Marshal

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

func (*Transaction) MarshalTo

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

func (*Transaction) MarshalToSizedBuffer

func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) Size

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

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Unmarshal

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

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

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

func (*Transaction) XXX_Merge

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

func (*Transaction) XXX_MessageName

func (*Transaction) XXX_MessageName() string

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

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

type TransactionV1

type TransactionV1 struct {
	Id                   string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	TimeCreate           time.Time          `protobuf:"bytes,2,opt,name=time_create,json=timeCreate,proto3,stdtime" json:"time_create" pg:"time_create"`
	Amount               int64              `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"`
	From                 string             `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty" pg:"from"`
	To                   string             `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty" pg:"to"`
	Status               string             `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty" pg:"status"`
	Type                 TransactionV1_Type `protobuf:"varint,7,opt,name=type,proto3,enum=wallet.TransactionV1_Type" json:"type,omitempty" pg:"type"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-" pg:"-"`
	XXX_unrecognized     []byte             `json:"-" pg:"-"`
	XXX_sizecache        int32              `json:"-" pg:"-"`
}

func NewPopulatedTransactionV1

func NewPopulatedTransactionV1(r randyWallet, easy bool) *TransactionV1

func (*TransactionV1) Descriptor

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

func (*TransactionV1) GetAmount

func (m *TransactionV1) GetAmount() int64

func (*TransactionV1) GetFrom

func (m *TransactionV1) GetFrom() string

func (*TransactionV1) GetId

func (m *TransactionV1) GetId() string

func (*TransactionV1) GetStatus

func (m *TransactionV1) GetStatus() string

func (*TransactionV1) GetTimeCreate

func (m *TransactionV1) GetTimeCreate() time.Time

func (*TransactionV1) GetTo

func (m *TransactionV1) GetTo() string

func (*TransactionV1) GetType

func (m *TransactionV1) GetType() TransactionV1_Type

func (*TransactionV1) Marshal

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

func (*TransactionV1) MarshalTo

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

func (*TransactionV1) MarshalToSizedBuffer

func (m *TransactionV1) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransactionV1) ProtoMessage

func (*TransactionV1) ProtoMessage()

func (*TransactionV1) Reset

func (m *TransactionV1) Reset()

func (*TransactionV1) Size

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

func (*TransactionV1) String

func (m *TransactionV1) String() string

func (*TransactionV1) Unmarshal

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

func (*TransactionV1) XXX_DiscardUnknown

func (m *TransactionV1) XXX_DiscardUnknown()

func (*TransactionV1) XXX_Marshal

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

func (*TransactionV1) XXX_Merge

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

func (*TransactionV1) XXX_MessageName

func (*TransactionV1) XXX_MessageName() string

func (*TransactionV1) XXX_Size

func (m *TransactionV1) XXX_Size() int

func (*TransactionV1) XXX_Unmarshal

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

type TransactionV1_Type

type TransactionV1_Type int32
const (
	TransactionV1_EXCHANGE  TransactionV1_Type = 0
	TransactionV1_ON_CHAIN  TransactionV1_Type = 1
	TransactionV1_OFF_CHAIN TransactionV1_Type = 2
)

func (TransactionV1_Type) EnumDescriptor

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

func (TransactionV1_Type) String

func (x TransactionV1_Type) String() string

Jump to

Keyboard shortcuts

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