protocol

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResponseReturnCode_name = map[int32]string{
	0:  "SUCCESS",
	1:  "AMOUNT_ILLEGAL",
	2:  "REMOTE_CALL_ERROR",
	3:  "INACTIVATED_ACCOUNT",
	4:  "TRON_BALANCE_INSUFFICIENT",
	5:  "CHANNEL_CLOSED",
	6:  "CHANNEL_ADDRESS_ILLEGAL",
	7:  "REQUEST_PARAM_ILLEGAL",
	8:  "TRANSFER_ADDRESS_FAILED",
	9:  "SIGN_FAILED",
	10: "MARSHAL_FAILED",
	11: "DATABASE_ERROR",
	12: "TRANSACTION_EXIST",
	13: "BROADCAST_ERROR",
	14: "HASH_FAILED",
	15: "USER_TRON_BALANCE_INSUFFICIENT",
	16: "LEDGER_BALANCE_INSUFFICIENT",
	17: "TRANSACTION_NOT_EXIST",
	18: "TRANSACTION_STATUS_ILLEGAL",
	19: "UNMARSHAL_FAILED",
	20: "TRANSACTION_FAILED",
	21: "TRANSACTION_PENDING",
	22: "DECODE_STRING_FAILED",
	23: "TRANSACTION_TYPE_ILLEGAL",
	24: "IP_ACCESS_DENIED",
	25: "ADDRESS_ACCESS_DENIED",
	99: "OTHER_ERROR",
}
View Source
var ResponseReturnCode_value = map[string]int32{
	"SUCCESS":                        0,
	"AMOUNT_ILLEGAL":                 1,
	"REMOTE_CALL_ERROR":              2,
	"INACTIVATED_ACCOUNT":            3,
	"TRON_BALANCE_INSUFFICIENT":      4,
	"CHANNEL_CLOSED":                 5,
	"CHANNEL_ADDRESS_ILLEGAL":        6,
	"REQUEST_PARAM_ILLEGAL":          7,
	"TRANSFER_ADDRESS_FAILED":        8,
	"SIGN_FAILED":                    9,
	"MARSHAL_FAILED":                 10,
	"DATABASE_ERROR":                 11,
	"TRANSACTION_EXIST":              12,
	"BROADCAST_ERROR":                13,
	"HASH_FAILED":                    14,
	"USER_TRON_BALANCE_INSUFFICIENT": 15,
	"LEDGER_BALANCE_INSUFFICIENT":    16,
	"TRANSACTION_NOT_EXIST":          17,
	"TRANSACTION_STATUS_ILLEGAL":     18,
	"UNMARSHAL_FAILED":               19,
	"TRANSACTION_FAILED":             20,
	"TRANSACTION_PENDING":            21,
	"DECODE_STRING_FAILED":           22,
	"TRANSACTION_TYPE_ILLEGAL":       23,
	"IP_ACCESS_DENIED":               24,
	"ADDRESS_ACCESS_DENIED":          25,
	"OTHER_ERROR":                    99,
}
View Source
var TronTransaction_TronContract_TronContractType_name = map[int32]string{
	0:  "AccountCreateContract",
	1:  "TransferContract",
	2:  "TransferAssetContract",
	3:  "VoteAssetContract",
	4:  "VoteWitnessContract",
	5:  "WitnessCreateContract",
	6:  "AssetIssueContract",
	8:  "WitnessUpdateContract",
	9:  "ParticipateAssetIssueContract",
	10: "AccountUpdateContract",
	11: "FreezeBalanceContract",
	12: "UnfreezeBalanceContract",
	13: "WithdrawBalanceContract",
	14: "UnfreezeAssetContract",
	15: "UpdateAssetContract",
	16: "ProposalCreateContract",
	17: "ProposalApproveContract",
	18: "ProposalDeleteContract",
	19: "SetAccountIdContract",
	20: "CustomContract",
	30: "CreateSmartContract",
	31: "TriggerSmartContract",
	32: "GetContract",
	33: "UpdateSettingContract",
	41: "ExchangeCreateContract",
	42: "ExchangeInjectContract",
	43: "ExchangeWithdrawContract",
	44: "ExchangeTransactionContract",
	45: "UpdateEnergyLimitContract",
}
View Source
var TronTransaction_TronContract_TronContractType_value = map[string]int32{
	"AccountCreateContract":         0,
	"TransferContract":              1,
	"TransferAssetContract":         2,
	"VoteAssetContract":             3,
	"VoteWitnessContract":           4,
	"WitnessCreateContract":         5,
	"AssetIssueContract":            6,
	"WitnessUpdateContract":         8,
	"ParticipateAssetIssueContract": 9,
	"AccountUpdateContract":         10,
	"FreezeBalanceContract":         11,
	"UnfreezeBalanceContract":       12,
	"WithdrawBalanceContract":       13,
	"UnfreezeAssetContract":         14,
	"UpdateAssetContract":           15,
	"ProposalCreateContract":        16,
	"ProposalApproveContract":       17,
	"ProposalDeleteContract":        18,
	"SetAccountIdContract":          19,
	"CustomContract":                20,
	"CreateSmartContract":           30,
	"TriggerSmartContract":          31,
	"GetContract":                   32,
	"UpdateSettingContract":         33,
	"ExchangeCreateContract":        41,
	"ExchangeInjectContract":        42,
	"ExchangeWithdrawContract":      43,
	"ExchangeTransactionContract":   44,
	"UpdateEnergyLimitContract":     45,
}
View Source
var TronTransaction_TronResult_TronCode_name = map[int32]string{
	0: "SUCESS",
	1: "FAILED",
}
View Source
var TronTransaction_TronResult_TronCode_value = map[string]int32{
	"SUCESS": 0,
	"FAILED": 1,
}
View Source
var TronTransaction_TronResult_TronContractResult_name = map[int32]string{
	0:  "DEFAULT",
	1:  "SUCCESS",
	2:  "REVERT",
	3:  "BAD_JUMP_DESTINATION",
	4:  "OUT_OF_MEMORY",
	5:  "PRECOMPILED_CONTRACT",
	6:  "STACK_TOO_SMALL",
	7:  "STACK_TOO_LARGE",
	8:  "ILLEGAL_OPERATION",
	9:  "STACK_OVERFLOW",
	10: "OUT_OF_ENERGY",
	11: "OUT_OF_TIME",
	12: "JVM_STACK_OVER_FLOW",
	13: "UNKNOWN",
}
View Source
var TronTransaction_TronResult_TronContractResult_value = map[string]int32{
	"DEFAULT":              0,
	"SUCCESS":              1,
	"REVERT":               2,
	"BAD_JUMP_DESTINATION": 3,
	"OUT_OF_MEMORY":        4,
	"PRECOMPILED_CONTRACT": 5,
	"STACK_TOO_SMALL":      6,
	"STACK_TOO_LARGE":      7,
	"ILLEGAL_OPERATION":    8,
	"STACK_OVERFLOW":       9,
	"OUT_OF_ENERGY":        10,
	"OUT_OF_TIME":          11,
	"JVM_STACK_OVER_FLOW":  12,
	"UNKNOWN":              13,
}

Functions

func RegisterExchangeServer

func RegisterExchangeServer(s *grpc.Server, srv ExchangeServer)

Types

type ActivateAccountRequest

type ActivateAccountRequest struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" pg:"address"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*ActivateAccountRequest) Descriptor

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

func (*ActivateAccountRequest) GetAddress

func (m *ActivateAccountRequest) GetAddress() []byte

func (*ActivateAccountRequest) ProtoMessage

func (*ActivateAccountRequest) ProtoMessage()

func (*ActivateAccountRequest) Reset

func (m *ActivateAccountRequest) Reset()

func (*ActivateAccountRequest) String

func (m *ActivateAccountRequest) String() string

func (*ActivateAccountRequest) XXX_DiscardUnknown

func (m *ActivateAccountRequest) XXX_DiscardUnknown()

func (*ActivateAccountRequest) XXX_Marshal

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

func (*ActivateAccountRequest) XXX_Merge

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

func (*ActivateAccountRequest) XXX_Size

func (m *ActivateAccountRequest) XXX_Size() int

func (*ActivateAccountRequest) XXX_Unmarshal

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

type ActivateAccountResponse

type ActivateAccountResponse struct {
	Response             *Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty" pg:"response"`
	TxId                 string    `protobuf:"bytes,2,opt,name=txId,proto3" json:"txId,omitempty" pg:"txId"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func (*ActivateAccountResponse) Descriptor

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

func (*ActivateAccountResponse) GetResponse

func (m *ActivateAccountResponse) GetResponse() *Response

func (*ActivateAccountResponse) GetTxId

func (m *ActivateAccountResponse) GetTxId() string

func (*ActivateAccountResponse) ProtoMessage

func (*ActivateAccountResponse) ProtoMessage()

func (*ActivateAccountResponse) Reset

func (m *ActivateAccountResponse) Reset()

func (*ActivateAccountResponse) String

func (m *ActivateAccountResponse) String() string

func (*ActivateAccountResponse) XXX_DiscardUnknown

func (m *ActivateAccountResponse) XXX_DiscardUnknown()

func (*ActivateAccountResponse) XXX_Marshal

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

func (*ActivateAccountResponse) XXX_Merge

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

func (*ActivateAccountResponse) XXX_Size

func (m *ActivateAccountResponse) XXX_Size() int

func (*ActivateAccountResponse) XXX_Unmarshal

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

type ConfirmDepositRequest

type ConfirmDepositRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*ConfirmDepositRequest) Descriptor

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

func (*ConfirmDepositRequest) GetId

func (m *ConfirmDepositRequest) GetId() int64

func (*ConfirmDepositRequest) ProtoMessage

func (*ConfirmDepositRequest) ProtoMessage()

func (*ConfirmDepositRequest) Reset

func (m *ConfirmDepositRequest) Reset()

func (*ConfirmDepositRequest) String

func (m *ConfirmDepositRequest) String() string

func (*ConfirmDepositRequest) XXX_DiscardUnknown

func (m *ConfirmDepositRequest) XXX_DiscardUnknown()

func (*ConfirmDepositRequest) XXX_Marshal

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

func (*ConfirmDepositRequest) XXX_Merge

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

func (*ConfirmDepositRequest) XXX_Size

func (m *ConfirmDepositRequest) XXX_Size() int

func (*ConfirmDepositRequest) XXX_Unmarshal

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

type ConfirmDepositResponse

type ConfirmDepositResponse struct {
	Response             *Response                  `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty" pg:"response"`
	SuccessChannelState  *ledger.SignedChannelState `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                   `json:"-" pg:"-"`
	XXX_unrecognized     []byte                     `json:"-" pg:"-"`
	XXX_sizecache        int32                      `json:"-" pg:"-"`
}

func (*ConfirmDepositResponse) Descriptor

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

func (*ConfirmDepositResponse) GetResponse

func (m *ConfirmDepositResponse) GetResponse() *Response

func (*ConfirmDepositResponse) GetSuccessChannelState

func (m *ConfirmDepositResponse) GetSuccessChannelState() *ledger.SignedChannelState

func (*ConfirmDepositResponse) ProtoMessage

func (*ConfirmDepositResponse) ProtoMessage()

func (*ConfirmDepositResponse) Reset

func (m *ConfirmDepositResponse) Reset()

func (*ConfirmDepositResponse) String

func (m *ConfirmDepositResponse) String() string

func (*ConfirmDepositResponse) XXX_DiscardUnknown

func (m *ConfirmDepositResponse) XXX_DiscardUnknown()

func (*ConfirmDepositResponse) XXX_Marshal

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

func (*ConfirmDepositResponse) XXX_Merge

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

func (*ConfirmDepositResponse) XXX_Size

func (m *ConfirmDepositResponse) XXX_Size() int

func (*ConfirmDepositResponse) XXX_Unmarshal

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

type DepositRequest

type DepositRequest struct {
	Id                    int64            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	SignedTronTransaction *TronTransaction `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}         `json:"-" pg:"-"`
	XXX_unrecognized      []byte           `json:"-" pg:"-"`
	XXX_sizecache         int32            `json:"-" pg:"-"`
}

func (*DepositRequest) Descriptor

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

func (*DepositRequest) GetId

func (m *DepositRequest) GetId() int64

func (*DepositRequest) GetSignedTronTransaction

func (m *DepositRequest) GetSignedTronTransaction() *TronTransaction

func (*DepositRequest) ProtoMessage

func (*DepositRequest) ProtoMessage()

func (*DepositRequest) Reset

func (m *DepositRequest) Reset()

func (*DepositRequest) String

func (m *DepositRequest) String() string

func (*DepositRequest) XXX_DiscardUnknown

func (m *DepositRequest) XXX_DiscardUnknown()

func (*DepositRequest) XXX_Marshal

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

func (*DepositRequest) XXX_Merge

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

func (*DepositRequest) XXX_Size

func (m *DepositRequest) XXX_Size() int

func (*DepositRequest) XXX_Unmarshal

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

type DepositResponse

type DepositResponse struct {
	Response             *Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty" pg:"response"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func (*DepositResponse) Descriptor

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

func (*DepositResponse) GetResponse

func (m *DepositResponse) GetResponse() *Response

func (*DepositResponse) ProtoMessage

func (*DepositResponse) ProtoMessage()

func (*DepositResponse) Reset

func (m *DepositResponse) Reset()

func (*DepositResponse) String

func (m *DepositResponse) String() string

func (*DepositResponse) XXX_DiscardUnknown

func (m *DepositResponse) XXX_DiscardUnknown()

func (*DepositResponse) XXX_Marshal

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

func (*DepositResponse) XXX_Merge

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

func (*DepositResponse) XXX_Size

func (m *DepositResponse) XXX_Size() int

func (*DepositResponse) XXX_Unmarshal

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

type ExchangeClient

type ExchangeClient interface {
	PrepareWithdraw(ctx context.Context, in *PrepareWithdrawRequest, opts ...grpc.CallOption) (*PrepareWithdrawResponse, error)
	Withdraw(ctx context.Context, in *WithdrawRequest, opts ...grpc.CallOption) (*WithdrawResponse, error)
	PrepareDeposit(ctx context.Context, in *PrepareDepositRequest, opts ...grpc.CallOption) (*PrepareDepositResponse, error)
	Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error)
	ConfirmDeposit(ctx context.Context, in *ConfirmDepositRequest, opts ...grpc.CallOption) (*ConfirmDepositResponse, error)
	QueryTransaction(ctx context.Context, in *QueryTransactionRequest, opts ...grpc.CallOption) (*QueryTransactionResponse, error)
	ActivateAccountOnChain(ctx context.Context, in *ActivateAccountRequest, opts ...grpc.CallOption) (*ActivateAccountResponse, error)
}

ExchangeClient is the client API for Exchange service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewExchangeClient

func NewExchangeClient(cc *grpc.ClientConn) ExchangeClient

type PrepareDepositRequest

type PrepareDepositRequest struct {
	Amount               int64    `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"`
	OutTxId              int64    `protobuf:"varint,2,opt,name=out_tx_id,json=outTxId,proto3" json:"out_tx_id,omitempty" pg:"out_tx_id"`
	UserAddress          []byte   `protobuf:"bytes,3,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty" pg:"user_address"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*PrepareDepositRequest) Descriptor

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

func (*PrepareDepositRequest) GetAmount

func (m *PrepareDepositRequest) GetAmount() int64

func (*PrepareDepositRequest) GetOutTxId

func (m *PrepareDepositRequest) GetOutTxId() int64

func (*PrepareDepositRequest) GetUserAddress

func (m *PrepareDepositRequest) GetUserAddress() []byte

func (*PrepareDepositRequest) ProtoMessage

func (*PrepareDepositRequest) ProtoMessage()

func (*PrepareDepositRequest) Reset

func (m *PrepareDepositRequest) Reset()

func (*PrepareDepositRequest) String

func (m *PrepareDepositRequest) String() string

func (*PrepareDepositRequest) XXX_DiscardUnknown

func (m *PrepareDepositRequest) XXX_DiscardUnknown()

func (*PrepareDepositRequest) XXX_Marshal

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

func (*PrepareDepositRequest) XXX_Merge

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

func (*PrepareDepositRequest) XXX_Size

func (m *PrepareDepositRequest) XXX_Size() int

func (*PrepareDepositRequest) XXX_Unmarshal

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

type PrepareDepositResponse

type PrepareDepositResponse struct {
	Response             *Response        `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty" pg:"response"`
	Id                   int64            `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	TronTransaction      *TronTransaction `` /* 128-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-" pg:"-"`
	XXX_unrecognized     []byte           `json:"-" pg:"-"`
	XXX_sizecache        int32            `json:"-" pg:"-"`
}

func (*PrepareDepositResponse) Descriptor

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

func (*PrepareDepositResponse) GetId

func (m *PrepareDepositResponse) GetId() int64

func (*PrepareDepositResponse) GetResponse

func (m *PrepareDepositResponse) GetResponse() *Response

func (*PrepareDepositResponse) GetTronTransaction

func (m *PrepareDepositResponse) GetTronTransaction() *TronTransaction

func (*PrepareDepositResponse) ProtoMessage

func (*PrepareDepositResponse) ProtoMessage()

func (*PrepareDepositResponse) Reset

func (m *PrepareDepositResponse) Reset()

func (*PrepareDepositResponse) String

func (m *PrepareDepositResponse) String() string

func (*PrepareDepositResponse) XXX_DiscardUnknown

func (m *PrepareDepositResponse) XXX_DiscardUnknown()

func (*PrepareDepositResponse) XXX_Marshal

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

func (*PrepareDepositResponse) XXX_Merge

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

func (*PrepareDepositResponse) XXX_Size

func (m *PrepareDepositResponse) XXX_Size() int

func (*PrepareDepositResponse) XXX_Unmarshal

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

type PrepareWithdrawRequest

type PrepareWithdrawRequest struct {
	Amount               int64    `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"`
	OutTxId              int64    `protobuf:"varint,2,opt,name=out_tx_id,json=outTxId,proto3" json:"out_tx_id,omitempty" pg:"out_tx_id"`
	UserAddress          []byte   `protobuf:"bytes,3,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty" pg:"user_address"`
	UserExternalAddress  []byte   `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*PrepareWithdrawRequest) Descriptor

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

func (*PrepareWithdrawRequest) GetAmount

func (m *PrepareWithdrawRequest) GetAmount() int64

func (*PrepareWithdrawRequest) GetOutTxId

func (m *PrepareWithdrawRequest) GetOutTxId() int64

func (*PrepareWithdrawRequest) GetUserAddress

func (m *PrepareWithdrawRequest) GetUserAddress() []byte

func (*PrepareWithdrawRequest) GetUserExternalAddress

func (m *PrepareWithdrawRequest) GetUserExternalAddress() []byte

func (*PrepareWithdrawRequest) ProtoMessage

func (*PrepareWithdrawRequest) ProtoMessage()

func (*PrepareWithdrawRequest) Reset

func (m *PrepareWithdrawRequest) Reset()

func (*PrepareWithdrawRequest) String

func (m *PrepareWithdrawRequest) String() string

func (*PrepareWithdrawRequest) XXX_DiscardUnknown

func (m *PrepareWithdrawRequest) XXX_DiscardUnknown()

func (*PrepareWithdrawRequest) XXX_Marshal

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

func (*PrepareWithdrawRequest) XXX_Merge

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

func (*PrepareWithdrawRequest) XXX_Size

func (m *PrepareWithdrawRequest) XXX_Size() int

func (*PrepareWithdrawRequest) XXX_Unmarshal

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

type PrepareWithdrawResponse

type PrepareWithdrawResponse struct {
	Response              *Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty" pg:"response"`
	LedgerExchangeAddress []byte    `` /* 155-byte string literal not displayed */
	Id                    int64     `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	XXX_NoUnkeyedLiteral  struct{}  `json:"-" pg:"-"`
	XXX_unrecognized      []byte    `json:"-" pg:"-"`
	XXX_sizecache         int32     `json:"-" pg:"-"`
}

func (*PrepareWithdrawResponse) Descriptor

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

func (*PrepareWithdrawResponse) GetId

func (m *PrepareWithdrawResponse) GetId() int64

func (*PrepareWithdrawResponse) GetLedgerExchangeAddress

func (m *PrepareWithdrawResponse) GetLedgerExchangeAddress() []byte

func (*PrepareWithdrawResponse) GetResponse

func (m *PrepareWithdrawResponse) GetResponse() *Response

func (*PrepareWithdrawResponse) ProtoMessage

func (*PrepareWithdrawResponse) ProtoMessage()

func (*PrepareWithdrawResponse) Reset

func (m *PrepareWithdrawResponse) Reset()

func (*PrepareWithdrawResponse) String

func (m *PrepareWithdrawResponse) String() string

func (*PrepareWithdrawResponse) XXX_DiscardUnknown

func (m *PrepareWithdrawResponse) XXX_DiscardUnknown()

func (*PrepareWithdrawResponse) XXX_Marshal

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

func (*PrepareWithdrawResponse) XXX_Merge

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

func (*PrepareWithdrawResponse) XXX_Size

func (m *PrepareWithdrawResponse) XXX_Size() int

func (*PrepareWithdrawResponse) XXX_Unmarshal

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

type QueryTransactionRequest

type QueryTransactionRequest struct {
	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*QueryTransactionRequest) Descriptor

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

func (*QueryTransactionRequest) GetId

func (m *QueryTransactionRequest) GetId() int64

func (*QueryTransactionRequest) ProtoMessage

func (*QueryTransactionRequest) ProtoMessage()

func (*QueryTransactionRequest) Reset

func (m *QueryTransactionRequest) Reset()

func (*QueryTransactionRequest) String

func (m *QueryTransactionRequest) String() string

func (*QueryTransactionRequest) XXX_DiscardUnknown

func (m *QueryTransactionRequest) XXX_DiscardUnknown()

func (*QueryTransactionRequest) XXX_Marshal

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

func (*QueryTransactionRequest) XXX_Merge

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

func (*QueryTransactionRequest) XXX_Size

func (m *QueryTransactionRequest) XXX_Size() int

func (*QueryTransactionRequest) XXX_Unmarshal

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

type QueryTransactionResponse

type QueryTransactionResponse struct {
	Response             *Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty" pg:"response"`
	Type                 []byte    `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty" pg:"type"`
	Amount               int64     `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"`
	TokenName            []byte    `protobuf:"bytes,4,opt,name=token_name,json=tokenName,proto3" json:"token_name,omitempty" pg:"token_name"`
	UserAddress          []byte    `protobuf:"bytes,5,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty" pg:"user_address"`
	TronStatus           []byte    `protobuf:"bytes,6,opt,name=tron_status,json=tronStatus,proto3" json:"tron_status,omitempty" pg:"tron_status"`
	ChannelStatus        []byte    `protobuf:"bytes,7,opt,name=channel_status,json=channelStatus,proto3" json:"channel_status,omitempty" pg:"channel_status"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func (*QueryTransactionResponse) Descriptor

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

func (*QueryTransactionResponse) GetAmount

func (m *QueryTransactionResponse) GetAmount() int64

func (*QueryTransactionResponse) GetChannelStatus

func (m *QueryTransactionResponse) GetChannelStatus() []byte

func (*QueryTransactionResponse) GetResponse

func (m *QueryTransactionResponse) GetResponse() *Response

func (*QueryTransactionResponse) GetTokenName

func (m *QueryTransactionResponse) GetTokenName() []byte

func (*QueryTransactionResponse) GetTronStatus

func (m *QueryTransactionResponse) GetTronStatus() []byte

func (*QueryTransactionResponse) GetType

func (m *QueryTransactionResponse) GetType() []byte

func (*QueryTransactionResponse) GetUserAddress

func (m *QueryTransactionResponse) GetUserAddress() []byte

func (*QueryTransactionResponse) ProtoMessage

func (*QueryTransactionResponse) ProtoMessage()

func (*QueryTransactionResponse) Reset

func (m *QueryTransactionResponse) Reset()

func (*QueryTransactionResponse) String

func (m *QueryTransactionResponse) String() string

func (*QueryTransactionResponse) XXX_DiscardUnknown

func (m *QueryTransactionResponse) XXX_DiscardUnknown()

func (*QueryTransactionResponse) XXX_Marshal

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

func (*QueryTransactionResponse) XXX_Merge

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

func (*QueryTransactionResponse) XXX_Size

func (m *QueryTransactionResponse) XXX_Size() int

func (*QueryTransactionResponse) XXX_Unmarshal

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

type Response

type Response struct {
	Code                 ResponseReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=protocol.ResponseReturnCode" json:"code,omitempty" pg:"code"`
	ReturnMessage        []byte             `protobuf:"bytes,2,opt,name=return_message,json=returnMessage,proto3" json:"return_message,omitempty" pg:"return_message"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-" pg:"-"`
	XXX_unrecognized     []byte             `json:"-" pg:"-"`
	XXX_sizecache        int32              `json:"-" pg:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetCode

func (m *Response) GetCode() ResponseReturnCode

func (*Response) GetReturnMessage

func (m *Response) GetReturnMessage() []byte

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

type ResponseReturnCode

type ResponseReturnCode int32
const (
	Response_SUCCESS                        ResponseReturnCode = 0
	Response_AMOUNT_ILLEGAL                 ResponseReturnCode = 1
	Response_REMOTE_CALL_ERROR              ResponseReturnCode = 2
	Response_INACTIVATED_ACCOUNT            ResponseReturnCode = 3
	Response_TRON_BALANCE_INSUFFICIENT      ResponseReturnCode = 4
	Response_CHANNEL_CLOSED                 ResponseReturnCode = 5
	Response_CHANNEL_ADDRESS_ILLEGAL        ResponseReturnCode = 6
	Response_REQUEST_PARAM_ILLEGAL          ResponseReturnCode = 7
	Response_TRANSFER_ADDRESS_FAILED        ResponseReturnCode = 8
	Response_SIGN_FAILED                    ResponseReturnCode = 9
	Response_MARSHAL_FAILED                 ResponseReturnCode = 10
	Response_DATABASE_ERROR                 ResponseReturnCode = 11
	Response_TRANSACTION_EXIST              ResponseReturnCode = 12
	Response_BROADCAST_ERROR                ResponseReturnCode = 13
	Response_HASH_FAILED                    ResponseReturnCode = 14
	Response_USER_TRON_BALANCE_INSUFFICIENT ResponseReturnCode = 15
	Response_LEDGER_BALANCE_INSUFFICIENT    ResponseReturnCode = 16
	Response_TRANSACTION_NOT_EXIST          ResponseReturnCode = 17
	Response_TRANSACTION_STATUS_ILLEGAL     ResponseReturnCode = 18
	Response_UNMARSHAL_FAILED               ResponseReturnCode = 19
	Response_TRANSACTION_FAILED             ResponseReturnCode = 20
	Response_TRANSACTION_PENDING            ResponseReturnCode = 21
	Response_DECODE_STRING_FAILED           ResponseReturnCode = 22
	Response_TRANSACTION_TYPE_ILLEGAL       ResponseReturnCode = 23
	Response_IP_ACCESS_DENIED               ResponseReturnCode = 24
	Response_ADDRESS_ACCESS_DENIED          ResponseReturnCode = 25
	Response_OTHER_ERROR                    ResponseReturnCode = 99
)

func (ResponseReturnCode) EnumDescriptor

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

func (ResponseReturnCode) String

func (x ResponseReturnCode) String() string

type TronAccountId

type TronAccountId struct {
	Name                 []byte   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" pg:"name"`
	Address              []byte   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" pg:"address"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*TronAccountId) Descriptor

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

func (*TronAccountId) GetAddress

func (m *TronAccountId) GetAddress() []byte

func (*TronAccountId) GetName

func (m *TronAccountId) GetName() []byte

func (*TronAccountId) ProtoMessage

func (*TronAccountId) ProtoMessage()

func (*TronAccountId) Reset

func (m *TronAccountId) Reset()

func (*TronAccountId) String

func (m *TronAccountId) String() string

func (*TronAccountId) XXX_DiscardUnknown

func (m *TronAccountId) XXX_DiscardUnknown()

func (*TronAccountId) XXX_Marshal

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

func (*TronAccountId) XXX_Merge

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

func (*TronAccountId) XXX_Size

func (m *TronAccountId) XXX_Size() int

func (*TronAccountId) XXX_Unmarshal

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

type TronAuthority

type TronAuthority struct {
	Account              *TronAccountId `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty" pg:"account"`
	PermissionName       []byte         `protobuf:"bytes,2,opt,name=permission_name,json=permissionName,proto3" json:"permission_name,omitempty" pg:"permission_name"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-" pg:"-"`
	XXX_unrecognized     []byte         `json:"-" pg:"-"`
	XXX_sizecache        int32          `json:"-" pg:"-"`
}

func (*TronAuthority) Descriptor

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

func (*TronAuthority) GetAccount

func (m *TronAuthority) GetAccount() *TronAccountId

func (*TronAuthority) GetPermissionName

func (m *TronAuthority) GetPermissionName() []byte

func (*TronAuthority) ProtoMessage

func (*TronAuthority) ProtoMessage()

func (*TronAuthority) Reset

func (m *TronAuthority) Reset()

func (*TronAuthority) String

func (m *TronAuthority) String() string

func (*TronAuthority) XXX_DiscardUnknown

func (m *TronAuthority) XXX_DiscardUnknown()

func (*TronAuthority) XXX_Marshal

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

func (*TronAuthority) XXX_Merge

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

func (*TronAuthority) XXX_Size

func (m *TronAuthority) XXX_Size() int

func (*TronAuthority) XXX_Unmarshal

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

type TronTransaction

type TronTransaction struct {
	RawData *TronTransaction_TronRaw `protobuf:"bytes,1,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty" pg:"raw_data"`
	// only support size = 1,  repeated list here for muti-sig extension
	Signature            [][]byte                      `protobuf:"bytes,2,rep,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	Ret                  []*TronTransaction_TronResult `protobuf:"bytes,5,rep,name=ret,proto3" json:"ret,omitempty" pg:"ret"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-" pg:"-"`
	XXX_unrecognized     []byte                        `json:"-" pg:"-"`
	XXX_sizecache        int32                         `json:"-" pg:"-"`
}

func (*TronTransaction) Descriptor

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

func (*TronTransaction) GetRawData

func (m *TronTransaction) GetRawData() *TronTransaction_TronRaw

func (*TronTransaction) GetRet

func (*TronTransaction) GetSignature

func (m *TronTransaction) GetSignature() [][]byte

func (*TronTransaction) ProtoMessage

func (*TronTransaction) ProtoMessage()

func (*TronTransaction) Reset

func (m *TronTransaction) Reset()

func (*TronTransaction) String

func (m *TronTransaction) String() string

func (*TronTransaction) XXX_DiscardUnknown

func (m *TronTransaction) XXX_DiscardUnknown()

func (*TronTransaction) XXX_Marshal

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

func (*TronTransaction) XXX_Merge

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

func (*TronTransaction) XXX_Size

func (m *TronTransaction) XXX_Size() int

func (*TronTransaction) XXX_Unmarshal

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

type TronTransaction_TronContract

type TronTransaction_TronContract struct {
	Type                 TronTransaction_TronContract_TronContractType `` /* 132-byte string literal not displayed */
	Parameter            *types.Any                                    `protobuf:"bytes,2,opt,name=parameter,proto3" json:"parameter,omitempty" pg:"parameter"`
	Provider             []byte                                        `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty" pg:"provider"`
	ContractName         []byte                                        `protobuf:"bytes,4,opt,name=ContractName,proto3" json:"ContractName,omitempty" pg:"ContractName"`
	XXX_NoUnkeyedLiteral struct{}                                      `json:"-" pg:"-"`
	XXX_unrecognized     []byte                                        `json:"-" pg:"-"`
	XXX_sizecache        int32                                         `json:"-" pg:"-"`
}

func (*TronTransaction_TronContract) Descriptor

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

func (*TronTransaction_TronContract) GetContractName

func (m *TronTransaction_TronContract) GetContractName() []byte

func (*TronTransaction_TronContract) GetParameter

func (m *TronTransaction_TronContract) GetParameter() *types.Any

func (*TronTransaction_TronContract) GetProvider

func (m *TronTransaction_TronContract) GetProvider() []byte

func (*TronTransaction_TronContract) GetType

func (*TronTransaction_TronContract) ProtoMessage

func (*TronTransaction_TronContract) ProtoMessage()

func (*TronTransaction_TronContract) Reset

func (m *TronTransaction_TronContract) Reset()

func (*TronTransaction_TronContract) String

func (*TronTransaction_TronContract) XXX_DiscardUnknown

func (m *TronTransaction_TronContract) XXX_DiscardUnknown()

func (*TronTransaction_TronContract) XXX_Marshal

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

func (*TronTransaction_TronContract) XXX_Merge

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

func (*TronTransaction_TronContract) XXX_Size

func (m *TronTransaction_TronContract) XXX_Size() int

func (*TronTransaction_TronContract) XXX_Unmarshal

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

type TronTransaction_TronContract_TronContractType

type TronTransaction_TronContract_TronContractType int32
const (
	TronTransaction_TronContract_AccountCreateContract         TronTransaction_TronContract_TronContractType = 0
	TronTransaction_TronContract_TransferContract              TronTransaction_TronContract_TronContractType = 1
	TronTransaction_TronContract_TransferAssetContract         TronTransaction_TronContract_TronContractType = 2
	TronTransaction_TronContract_VoteAssetContract             TronTransaction_TronContract_TronContractType = 3
	TronTransaction_TronContract_VoteWitnessContract           TronTransaction_TronContract_TronContractType = 4
	TronTransaction_TronContract_WitnessCreateContract         TronTransaction_TronContract_TronContractType = 5
	TronTransaction_TronContract_AssetIssueContract            TronTransaction_TronContract_TronContractType = 6
	TronTransaction_TronContract_WitnessUpdateContract         TronTransaction_TronContract_TronContractType = 8
	TronTransaction_TronContract_ParticipateAssetIssueContract TronTransaction_TronContract_TronContractType = 9
	TronTransaction_TronContract_AccountUpdateContract         TronTransaction_TronContract_TronContractType = 10
	TronTransaction_TronContract_FreezeBalanceContract         TronTransaction_TronContract_TronContractType = 11
	TronTransaction_TronContract_UnfreezeBalanceContract       TronTransaction_TronContract_TronContractType = 12
	TronTransaction_TronContract_WithdrawBalanceContract       TronTransaction_TronContract_TronContractType = 13
	TronTransaction_TronContract_UnfreezeAssetContract         TronTransaction_TronContract_TronContractType = 14
	TronTransaction_TronContract_UpdateAssetContract           TronTransaction_TronContract_TronContractType = 15
	TronTransaction_TronContract_ProposalCreateContract        TronTransaction_TronContract_TronContractType = 16
	TronTransaction_TronContract_ProposalApproveContract       TronTransaction_TronContract_TronContractType = 17
	TronTransaction_TronContract_ProposalDeleteContract        TronTransaction_TronContract_TronContractType = 18
	TronTransaction_TronContract_SetAccountIdContract          TronTransaction_TronContract_TronContractType = 19
	TronTransaction_TronContract_CustomContract                TronTransaction_TronContract_TronContractType = 20
	// BuyStorageContract = 21;
	// BuyStorageBytesContract = 22;
	// SellStorageContract = 23;
	TronTransaction_TronContract_CreateSmartContract         TronTransaction_TronContract_TronContractType = 30
	TronTransaction_TronContract_TriggerSmartContract        TronTransaction_TronContract_TronContractType = 31
	TronTransaction_TronContract_GetContract                 TronTransaction_TronContract_TronContractType = 32
	TronTransaction_TronContract_UpdateSettingContract       TronTransaction_TronContract_TronContractType = 33
	TronTransaction_TronContract_ExchangeCreateContract      TronTransaction_TronContract_TronContractType = 41
	TronTransaction_TronContract_ExchangeInjectContract      TronTransaction_TronContract_TronContractType = 42
	TronTransaction_TronContract_ExchangeWithdrawContract    TronTransaction_TronContract_TronContractType = 43
	TronTransaction_TronContract_ExchangeTransactionContract TronTransaction_TronContract_TronContractType = 44
	TronTransaction_TronContract_UpdateEnergyLimitContract   TronTransaction_TronContract_TronContractType = 45
)

func (TronTransaction_TronContract_TronContractType) EnumDescriptor

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

func (TronTransaction_TronContract_TronContractType) String

type TronTransaction_TronRaw

type TronTransaction_TronRaw struct {
	RefBlockBytes []byte           `protobuf:"bytes,1,opt,name=ref_block_bytes,json=refBlockBytes,proto3" json:"ref_block_bytes,omitempty" pg:"ref_block_bytes"`
	RefBlockNum   int64            `protobuf:"varint,3,opt,name=ref_block_num,json=refBlockNum,proto3" json:"ref_block_num,omitempty" pg:"ref_block_num"`
	RefBlockHash  []byte           `protobuf:"bytes,4,opt,name=ref_block_hash,json=refBlockHash,proto3" json:"ref_block_hash,omitempty" pg:"ref_block_hash"`
	Expiration    int64            `protobuf:"varint,8,opt,name=expiration,proto3" json:"expiration,omitempty" pg:"expiration"`
	Auths         []*TronAuthority `protobuf:"bytes,9,rep,name=auths,proto3" json:"auths,omitempty" pg:"auths"`
	// data not used
	Data []byte `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty" pg:"data"`
	//only support size = 1,  repeated list here for extension
	Contract []*TronTransaction_TronContract `protobuf:"bytes,11,rep,name=contract,proto3" json:"contract,omitempty" pg:"contract"`
	// scripts not used
	Scripts              []byte   `protobuf:"bytes,12,opt,name=scripts,proto3" json:"scripts,omitempty" pg:"scripts"`
	Timestamp            int64    `protobuf:"varint,14,opt,name=timestamp,proto3" json:"timestamp,omitempty" pg:"timestamp"`
	FeeLimit             int64    `protobuf:"varint,18,opt,name=fee_limit,json=feeLimit,proto3" json:"fee_limit,omitempty" pg:"fee_limit"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*TronTransaction_TronRaw) Descriptor

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

func (*TronTransaction_TronRaw) GetAuths

func (m *TronTransaction_TronRaw) GetAuths() []*TronAuthority

func (*TronTransaction_TronRaw) GetContract

func (*TronTransaction_TronRaw) GetData

func (m *TronTransaction_TronRaw) GetData() []byte

func (*TronTransaction_TronRaw) GetExpiration

func (m *TronTransaction_TronRaw) GetExpiration() int64

func (*TronTransaction_TronRaw) GetFeeLimit

func (m *TronTransaction_TronRaw) GetFeeLimit() int64

func (*TronTransaction_TronRaw) GetRefBlockBytes

func (m *TronTransaction_TronRaw) GetRefBlockBytes() []byte

func (*TronTransaction_TronRaw) GetRefBlockHash

func (m *TronTransaction_TronRaw) GetRefBlockHash() []byte

func (*TronTransaction_TronRaw) GetRefBlockNum

func (m *TronTransaction_TronRaw) GetRefBlockNum() int64

func (*TronTransaction_TronRaw) GetScripts

func (m *TronTransaction_TronRaw) GetScripts() []byte

func (*TronTransaction_TronRaw) GetTimestamp

func (m *TronTransaction_TronRaw) GetTimestamp() int64

func (*TronTransaction_TronRaw) ProtoMessage

func (*TronTransaction_TronRaw) ProtoMessage()

func (*TronTransaction_TronRaw) Reset

func (m *TronTransaction_TronRaw) Reset()

func (*TronTransaction_TronRaw) String

func (m *TronTransaction_TronRaw) String() string

func (*TronTransaction_TronRaw) XXX_DiscardUnknown

func (m *TronTransaction_TronRaw) XXX_DiscardUnknown()

func (*TronTransaction_TronRaw) XXX_Marshal

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

func (*TronTransaction_TronRaw) XXX_Merge

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

func (*TronTransaction_TronRaw) XXX_Size

func (m *TronTransaction_TronRaw) XXX_Size() int

func (*TronTransaction_TronRaw) XXX_Unmarshal

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

type TronTransaction_TronResult

type TronTransaction_TronResult struct {
	Fee                           int64                                         `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty" pg:"fee"`
	Ret                           TronTransaction_TronResult_TronCode           `protobuf:"varint,2,opt,name=ret,proto3,enum=protocol.TronTransaction_TronResult_TronCode" json:"ret,omitempty" pg:"ret"`
	ContractRet                   TronTransaction_TronResult_TronContractResult `` /* 153-byte string literal not displayed */
	AssetIssueID                  string                                        `protobuf:"bytes,14,opt,name=assetIssueID,proto3" json:"assetIssueID,omitempty" pg:"assetIssueID"`
	WithdrawAmount                int64                                         `` /* 126-byte string literal not displayed */
	UnfreezeAmount                int64                                         `` /* 126-byte string literal not displayed */
	ExchangeReceivedAmount        int64                                         `` /* 161-byte string literal not displayed */
	ExchangeInjectAnotherAmount   int64                                         `` /* 184-byte string literal not displayed */
	ExchangeWithdrawAnotherAmount int64                                         `` /* 192-byte string literal not displayed */
	ExchangeId                    int64                                         `protobuf:"varint,21,opt,name=exchange_id,json=exchangeId,proto3" json:"exchange_id,omitempty" pg:"exchange_id"`
	XXX_NoUnkeyedLiteral          struct{}                                      `json:"-" pg:"-"`
	XXX_unrecognized              []byte                                        `json:"-" pg:"-"`
	XXX_sizecache                 int32                                         `json:"-" pg:"-"`
}

func (*TronTransaction_TronResult) Descriptor

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

func (*TronTransaction_TronResult) GetAssetIssueID

func (m *TronTransaction_TronResult) GetAssetIssueID() string

func (*TronTransaction_TronResult) GetContractRet

func (*TronTransaction_TronResult) GetExchangeId

func (m *TronTransaction_TronResult) GetExchangeId() int64

func (*TronTransaction_TronResult) GetExchangeInjectAnotherAmount

func (m *TronTransaction_TronResult) GetExchangeInjectAnotherAmount() int64

func (*TronTransaction_TronResult) GetExchangeReceivedAmount

func (m *TronTransaction_TronResult) GetExchangeReceivedAmount() int64

func (*TronTransaction_TronResult) GetExchangeWithdrawAnotherAmount

func (m *TronTransaction_TronResult) GetExchangeWithdrawAnotherAmount() int64

func (*TronTransaction_TronResult) GetFee

func (m *TronTransaction_TronResult) GetFee() int64

func (*TronTransaction_TronResult) GetRet

func (*TronTransaction_TronResult) GetUnfreezeAmount

func (m *TronTransaction_TronResult) GetUnfreezeAmount() int64

func (*TronTransaction_TronResult) GetWithdrawAmount

func (m *TronTransaction_TronResult) GetWithdrawAmount() int64

func (*TronTransaction_TronResult) ProtoMessage

func (*TronTransaction_TronResult) ProtoMessage()

func (*TronTransaction_TronResult) Reset

func (m *TronTransaction_TronResult) Reset()

func (*TronTransaction_TronResult) String

func (m *TronTransaction_TronResult) String() string

func (*TronTransaction_TronResult) XXX_DiscardUnknown

func (m *TronTransaction_TronResult) XXX_DiscardUnknown()

func (*TronTransaction_TronResult) XXX_Marshal

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

func (*TronTransaction_TronResult) XXX_Merge

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

func (*TronTransaction_TronResult) XXX_Size

func (m *TronTransaction_TronResult) XXX_Size() int

func (*TronTransaction_TronResult) XXX_Unmarshal

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

type TronTransaction_TronResult_TronCode

type TronTransaction_TronResult_TronCode int32
const (
	TronTransaction_TronResult_SUCESS TronTransaction_TronResult_TronCode = 0
	TronTransaction_TronResult_FAILED TronTransaction_TronResult_TronCode = 1
)

func (TronTransaction_TronResult_TronCode) EnumDescriptor

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

func (TronTransaction_TronResult_TronCode) String

type TronTransaction_TronResult_TronContractResult

type TronTransaction_TronResult_TronContractResult int32
const (
	TronTransaction_TronResult_DEFAULT              TronTransaction_TronResult_TronContractResult = 0
	TronTransaction_TronResult_SUCCESS              TronTransaction_TronResult_TronContractResult = 1
	TronTransaction_TronResult_REVERT               TronTransaction_TronResult_TronContractResult = 2
	TronTransaction_TronResult_BAD_JUMP_DESTINATION TronTransaction_TronResult_TronContractResult = 3
	TronTransaction_TronResult_OUT_OF_MEMORY        TronTransaction_TronResult_TronContractResult = 4
	TronTransaction_TronResult_PRECOMPILED_CONTRACT TronTransaction_TronResult_TronContractResult = 5
	TronTransaction_TronResult_STACK_TOO_SMALL      TronTransaction_TronResult_TronContractResult = 6
	TronTransaction_TronResult_STACK_TOO_LARGE      TronTransaction_TronResult_TronContractResult = 7
	TronTransaction_TronResult_ILLEGAL_OPERATION    TronTransaction_TronResult_TronContractResult = 8
	TronTransaction_TronResult_STACK_OVERFLOW       TronTransaction_TronResult_TronContractResult = 9
	TronTransaction_TronResult_OUT_OF_ENERGY        TronTransaction_TronResult_TronContractResult = 10
	TronTransaction_TronResult_OUT_OF_TIME          TronTransaction_TronResult_TronContractResult = 11
	TronTransaction_TronResult_JVM_STACK_OVER_FLOW  TronTransaction_TronResult_TronContractResult = 12
	TronTransaction_TronResult_UNKNOWN              TronTransaction_TronResult_TronContractResult = 13
)

func (TronTransaction_TronResult_TronContractResult) EnumDescriptor

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

func (TronTransaction_TronResult_TronContractResult) String

type UnimplementedExchangeServer

type UnimplementedExchangeServer struct {
}

UnimplementedExchangeServer can be embedded to have forward compatible implementations.

func (*UnimplementedExchangeServer) ActivateAccountOnChain

func (*UnimplementedExchangeServer) ConfirmDeposit

func (*UnimplementedExchangeServer) Deposit

func (*UnimplementedExchangeServer) PrepareDeposit

func (*UnimplementedExchangeServer) PrepareWithdraw

func (*UnimplementedExchangeServer) QueryTransaction

func (*UnimplementedExchangeServer) Withdraw

type WithdrawRequest

type WithdrawRequest struct {
	Id                   int64                      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" pg:"id"`
	SuccessChannelState  *ledger.SignedChannelState `` /* 147-byte string literal not displayed */
	FailureChannelState  *ledger.SignedChannelState `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                   `json:"-" pg:"-"`
	XXX_unrecognized     []byte                     `json:"-" pg:"-"`
	XXX_sizecache        int32                      `json:"-" pg:"-"`
}

func (*WithdrawRequest) Descriptor

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

func (*WithdrawRequest) GetFailureChannelState

func (m *WithdrawRequest) GetFailureChannelState() *ledger.SignedChannelState

func (*WithdrawRequest) GetId

func (m *WithdrawRequest) GetId() int64

func (*WithdrawRequest) GetSuccessChannelState

func (m *WithdrawRequest) GetSuccessChannelState() *ledger.SignedChannelState

func (*WithdrawRequest) ProtoMessage

func (*WithdrawRequest) ProtoMessage()

func (*WithdrawRequest) Reset

func (m *WithdrawRequest) Reset()

func (*WithdrawRequest) String

func (m *WithdrawRequest) String() string

func (*WithdrawRequest) XXX_DiscardUnknown

func (m *WithdrawRequest) XXX_DiscardUnknown()

func (*WithdrawRequest) XXX_Marshal

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

func (*WithdrawRequest) XXX_Merge

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

func (*WithdrawRequest) XXX_Size

func (m *WithdrawRequest) XXX_Size() int

func (*WithdrawRequest) XXX_Unmarshal

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

type WithdrawResponse

type WithdrawResponse struct {
	Response             *Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty" pg:"response"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func (*WithdrawResponse) Descriptor

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

func (*WithdrawResponse) GetResponse

func (m *WithdrawResponse) GetResponse() *Response

func (*WithdrawResponse) ProtoMessage

func (*WithdrawResponse) ProtoMessage()

func (*WithdrawResponse) Reset

func (m *WithdrawResponse) Reset()

func (*WithdrawResponse) String

func (m *WithdrawResponse) String() string

func (*WithdrawResponse) XXX_DiscardUnknown

func (m *WithdrawResponse) XXX_DiscardUnknown()

func (*WithdrawResponse) XXX_Marshal

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

func (*WithdrawResponse) XXX_Merge

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

func (*WithdrawResponse) XXX_Size

func (m *WithdrawResponse) XXX_Size() int

func (*WithdrawResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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