protobind

package
v0.0.0-...-4c3d690 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: ISC Imports: 5 Imported by: 0

README

gRPC support

The functionality here can be used directly by golang clients just by importing it:

  • "github.com/devwarrior777/atomicswap/libs"
  • "github.com/devwarrior777/atomicswap/libs/ltc"
  • "github.com/devwarrior777/atomicswap/libs/xzc"

Other languages

When the golang gRPC SwapServer is running it will be the server side of grpc.

Client side you can generate into any language supported by grpc such as python, javascript, etc.

The gen tool generates golang<->golang protobuf code so useful only for the golang gRPC server side.

A pygen tool will make python source binding in the ./python/ folder

A jsgen tool will make javascript source bindings in the ./js/ folder

Other language generation protoc parameters are shown in the example_gen file

You will need the protoc-XXX.zip compiler at: https://github.com/protocolbuffers/protobuf/releases

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COIN_name = map[int32]string{
	0: "BTC",
	1: "LTC",
	2: "XZC",
	3: "DCR",
}
View Source
var COIN_value = map[string]int32{
	"BTC": 0,
	"LTC": 1,
	"XZC": 2,
	"DCR": 3,
}
View Source
var ERRNO_name = map[int32]string{
	0: "OK",
	1: "LIBS",
	2: "UNSUPPORTED",
}
View Source
var ERRNO_value = map[string]int32{
	"OK":          0,
	"LIBS":        1,
	"UNSUPPORTED": 2,
}

Functions

func RegisterSwapLibServer

func RegisterSwapLibServer(s *grpc.Server, srv SwapLibServer)

Types

type AuditRequest

type AuditRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Contract             string   `protobuf:"bytes,5,opt,name=contract,proto3" json:"contract,omitempty"`
	ContractTx           string   `protobuf:"bytes,6,opt,name=contract_tx,json=contractTx,proto3" json:"contract_tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuditRequest) Descriptor

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

func (*AuditRequest) GetCoin

func (m *AuditRequest) GetCoin() COIN

func (*AuditRequest) GetContract

func (m *AuditRequest) GetContract() string

func (*AuditRequest) GetContractTx

func (m *AuditRequest) GetContractTx() string

func (*AuditRequest) GetTestnet

func (m *AuditRequest) GetTestnet() bool

func (*AuditRequest) ProtoMessage

func (*AuditRequest) ProtoMessage()

func (*AuditRequest) Reset

func (m *AuditRequest) Reset()

func (*AuditRequest) String

func (m *AuditRequest) String() string

func (*AuditRequest) XXX_DiscardUnknown

func (m *AuditRequest) XXX_DiscardUnknown()

func (*AuditRequest) XXX_Marshal

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

func (*AuditRequest) XXX_Merge

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

func (*AuditRequest) XXX_Size

func (m *AuditRequest) XXX_Size() int

func (*AuditRequest) XXX_Unmarshal

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

type AuditResponse

type AuditResponse struct {
	ContractAmount       int64    `protobuf:"varint,5,opt,name=contract_amount,json=contractAmount,proto3" json:"contract_amount,omitempty"`
	ContractAddress      string   `protobuf:"bytes,6,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	ContractSecrethash   string   `protobuf:"bytes,7,opt,name=contract_secrethash,json=contractSecrethash,proto3" json:"contract_secrethash,omitempty"`
	RecipientAddress     string   `protobuf:"bytes,8,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	RefundAddress        string   `protobuf:"bytes,9,opt,name=refund_address,json=refundAddress,proto3" json:"refund_address,omitempty"`
	RefundLocktime       int64    `protobuf:"varint,10,opt,name=refund_locktime,json=refundLocktime,proto3" json:"refund_locktime,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuditResponse) Descriptor

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

func (*AuditResponse) GetContractAddress

func (m *AuditResponse) GetContractAddress() string

func (*AuditResponse) GetContractAmount

func (m *AuditResponse) GetContractAmount() int64

func (*AuditResponse) GetContractSecrethash

func (m *AuditResponse) GetContractSecrethash() string

func (*AuditResponse) GetErrorno

func (m *AuditResponse) GetErrorno() ERRNO

func (*AuditResponse) GetErrstr

func (m *AuditResponse) GetErrstr() string

func (*AuditResponse) GetRecipientAddress

func (m *AuditResponse) GetRecipientAddress() string

func (*AuditResponse) GetRefundAddress

func (m *AuditResponse) GetRefundAddress() string

func (*AuditResponse) GetRefundLocktime

func (m *AuditResponse) GetRefundLocktime() int64

func (*AuditResponse) ProtoMessage

func (*AuditResponse) ProtoMessage()

func (*AuditResponse) Reset

func (m *AuditResponse) Reset()

func (*AuditResponse) String

func (m *AuditResponse) String() string

func (*AuditResponse) XXX_DiscardUnknown

func (m *AuditResponse) XXX_DiscardUnknown()

func (*AuditResponse) XXX_Marshal

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

func (*AuditResponse) XXX_Merge

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

func (*AuditResponse) XXX_Size

func (m *AuditResponse) XXX_Size() int

func (*AuditResponse) XXX_Unmarshal

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

type COIN

type COIN int32

Shared with dragon - keep coins in sync

const (
	COIN_BTC COIN = 0
	COIN_LTC COIN = 1
	COIN_XZC COIN = 2
	COIN_DCR COIN = 3
)

func (COIN) EnumDescriptor

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

func (COIN) String

func (x COIN) String() string

type ERRNO

type ERRNO int32
const (
	ERRNO_OK          ERRNO = 0
	ERRNO_LIBS        ERRNO = 1
	ERRNO_UNSUPPORTED ERRNO = 2
)

func (ERRNO) EnumDescriptor

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

func (ERRNO) String

func (x ERRNO) String() string

type ExtractSecretRequest

type ExtractSecretRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	CpRedemptionTx       string   `protobuf:"bytes,5,opt,name=cp_redemption_tx,json=cpRedemptionTx,proto3" json:"cp_redemption_tx,omitempty"`
	Secrethash           string   `protobuf:"bytes,6,opt,name=secrethash,proto3" json:"secrethash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExtractSecretRequest) Descriptor

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

func (*ExtractSecretRequest) GetCoin

func (m *ExtractSecretRequest) GetCoin() COIN

func (*ExtractSecretRequest) GetCpRedemptionTx

func (m *ExtractSecretRequest) GetCpRedemptionTx() string

func (*ExtractSecretRequest) GetSecrethash

func (m *ExtractSecretRequest) GetSecrethash() string

func (*ExtractSecretRequest) GetTestnet

func (m *ExtractSecretRequest) GetTestnet() bool

func (*ExtractSecretRequest) ProtoMessage

func (*ExtractSecretRequest) ProtoMessage()

func (*ExtractSecretRequest) Reset

func (m *ExtractSecretRequest) Reset()

func (*ExtractSecretRequest) String

func (m *ExtractSecretRequest) String() string

func (*ExtractSecretRequest) XXX_DiscardUnknown

func (m *ExtractSecretRequest) XXX_DiscardUnknown()

func (*ExtractSecretRequest) XXX_Marshal

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

func (*ExtractSecretRequest) XXX_Merge

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

func (*ExtractSecretRequest) XXX_Size

func (m *ExtractSecretRequest) XXX_Size() int

func (*ExtractSecretRequest) XXX_Unmarshal

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

type ExtractSecretResponse

type ExtractSecretResponse struct {
	Secret               string   `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExtractSecretResponse) Descriptor

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

func (*ExtractSecretResponse) GetErrorno

func (m *ExtractSecretResponse) GetErrorno() ERRNO

func (*ExtractSecretResponse) GetErrstr

func (m *ExtractSecretResponse) GetErrstr() string

func (*ExtractSecretResponse) GetSecret

func (m *ExtractSecretResponse) GetSecret() string

func (*ExtractSecretResponse) ProtoMessage

func (*ExtractSecretResponse) ProtoMessage()

func (*ExtractSecretResponse) Reset

func (m *ExtractSecretResponse) Reset()

func (*ExtractSecretResponse) String

func (m *ExtractSecretResponse) String() string

func (*ExtractSecretResponse) XXX_DiscardUnknown

func (m *ExtractSecretResponse) XXX_DiscardUnknown()

func (*ExtractSecretResponse) XXX_Marshal

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

func (*ExtractSecretResponse) XXX_Merge

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

func (*ExtractSecretResponse) XXX_Size

func (m *ExtractSecretResponse) XXX_Size() int

func (*ExtractSecretResponse) XXX_Unmarshal

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

type GetTxRequest

type GetTxRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	Txid                 string   `protobuf:"bytes,10,opt,name=txid,proto3" json:"txid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTxRequest) Descriptor

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

func (*GetTxRequest) GetCerts

func (m *GetTxRequest) GetCerts() string

func (*GetTxRequest) GetCoin

func (m *GetTxRequest) GetCoin() COIN

func (*GetTxRequest) GetHostport

func (m *GetTxRequest) GetHostport() string

func (*GetTxRequest) GetRpcpass

func (m *GetTxRequest) GetRpcpass() string

func (*GetTxRequest) GetRpcuser

func (m *GetTxRequest) GetRpcuser() string

func (*GetTxRequest) GetTestnet

func (m *GetTxRequest) GetTestnet() bool

func (*GetTxRequest) GetTxid

func (m *GetTxRequest) GetTxid() string

func (*GetTxRequest) GetWpass

func (m *GetTxRequest) GetWpass() string

func (*GetTxRequest) ProtoMessage

func (*GetTxRequest) ProtoMessage()

func (*GetTxRequest) Reset

func (m *GetTxRequest) Reset()

func (*GetTxRequest) String

func (m *GetTxRequest) String() string

func (*GetTxRequest) XXX_DiscardUnknown

func (m *GetTxRequest) XXX_DiscardUnknown()

func (*GetTxRequest) XXX_Marshal

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

func (*GetTxRequest) XXX_Merge

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

func (*GetTxRequest) XXX_Size

func (m *GetTxRequest) XXX_Size() int

func (*GetTxRequest) XXX_Unmarshal

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

type GetTxResponse

type GetTxResponse struct {
	Confirmations        uint64   `protobuf:"varint,5,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	Blockhash            string   `protobuf:"bytes,6,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
	Blockindex           int32    `protobuf:"varint,7,opt,name=blockindex,proto3" json:"blockindex,omitempty"`
	Blocktime            uint64   `protobuf:"varint,8,opt,name=blocktime,proto3" json:"blocktime,omitempty"`
	Time                 uint64   `protobuf:"varint,9,opt,name=time,proto3" json:"time,omitempty"`
	TimeReceived         uint64   `protobuf:"varint,10,opt,name=time_received,json=timeReceived,proto3" json:"time_received,omitempty"`
	Hex                  string   `protobuf:"bytes,11,opt,name=hex,proto3" json:"hex,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTxResponse) Descriptor

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

func (*GetTxResponse) GetBlockhash

func (m *GetTxResponse) GetBlockhash() string

func (*GetTxResponse) GetBlockindex

func (m *GetTxResponse) GetBlockindex() int32

func (*GetTxResponse) GetBlocktime

func (m *GetTxResponse) GetBlocktime() uint64

func (*GetTxResponse) GetConfirmations

func (m *GetTxResponse) GetConfirmations() uint64

func (*GetTxResponse) GetErrorno

func (m *GetTxResponse) GetErrorno() ERRNO

func (*GetTxResponse) GetErrstr

func (m *GetTxResponse) GetErrstr() string

func (*GetTxResponse) GetHex

func (m *GetTxResponse) GetHex() string

func (*GetTxResponse) GetTime

func (m *GetTxResponse) GetTime() uint64

func (*GetTxResponse) GetTimeReceived

func (m *GetTxResponse) GetTimeReceived() uint64

func (*GetTxResponse) ProtoMessage

func (*GetTxResponse) ProtoMessage()

func (*GetTxResponse) Reset

func (m *GetTxResponse) Reset()

func (*GetTxResponse) String

func (m *GetTxResponse) String() string

func (*GetTxResponse) XXX_DiscardUnknown

func (m *GetTxResponse) XXX_DiscardUnknown()

func (*GetTxResponse) XXX_Marshal

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

func (*GetTxResponse) XXX_Merge

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

func (*GetTxResponse) XXX_Size

func (m *GetTxResponse) XXX_Size() int

func (*GetTxResponse) XXX_Unmarshal

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

type InitiateRequest

type InitiateRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	Secrethash           string   `protobuf:"bytes,10,opt,name=secrethash,proto3" json:"secrethash,omitempty"`
	PartAddress          string   `protobuf:"bytes,11,opt,name=part_address,json=partAddress,proto3" json:"part_address,omitempty"`
	Amount               int64    `protobuf:"varint,12,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InitiateRequest) Descriptor

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

func (*InitiateRequest) GetAmount

func (m *InitiateRequest) GetAmount() int64

func (*InitiateRequest) GetCerts

func (m *InitiateRequest) GetCerts() string

func (*InitiateRequest) GetCoin

func (m *InitiateRequest) GetCoin() COIN

func (*InitiateRequest) GetHostport

func (m *InitiateRequest) GetHostport() string

func (*InitiateRequest) GetPartAddress

func (m *InitiateRequest) GetPartAddress() string

func (*InitiateRequest) GetRpcpass

func (m *InitiateRequest) GetRpcpass() string

func (*InitiateRequest) GetRpcuser

func (m *InitiateRequest) GetRpcuser() string

func (*InitiateRequest) GetSecrethash

func (m *InitiateRequest) GetSecrethash() string

func (*InitiateRequest) GetTestnet

func (m *InitiateRequest) GetTestnet() bool

func (*InitiateRequest) GetWpass

func (m *InitiateRequest) GetWpass() string

func (*InitiateRequest) ProtoMessage

func (*InitiateRequest) ProtoMessage()

func (*InitiateRequest) Reset

func (m *InitiateRequest) Reset()

func (*InitiateRequest) String

func (m *InitiateRequest) String() string

func (*InitiateRequest) XXX_DiscardUnknown

func (m *InitiateRequest) XXX_DiscardUnknown()

func (*InitiateRequest) XXX_Marshal

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

func (*InitiateRequest) XXX_Merge

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

func (*InitiateRequest) XXX_Size

func (m *InitiateRequest) XXX_Size() int

func (*InitiateRequest) XXX_Unmarshal

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

type InitiateResponse

type InitiateResponse struct {
	Contract             string   `protobuf:"bytes,5,opt,name=contract,proto3" json:"contract,omitempty"`
	ContractP2Sh         string   `protobuf:"bytes,6,opt,name=contract_p2sh,json=contractP2sh,proto3" json:"contract_p2sh,omitempty"`
	ContractTx           string   `protobuf:"bytes,7,opt,name=contract_tx,json=contractTx,proto3" json:"contract_tx,omitempty"`
	ContractTxHash       string   `protobuf:"bytes,8,opt,name=contract_tx_hash,json=contractTxHash,proto3" json:"contract_tx_hash,omitempty"`
	Fee                  int64    `protobuf:"varint,9,opt,name=fee,proto3" json:"fee,omitempty"`
	Feerate              float32  `protobuf:"fixed32,10,opt,name=feerate,proto3" json:"feerate,omitempty"`
	Locktime             int64    `protobuf:"varint,11,opt,name=locktime,proto3" json:"locktime,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InitiateResponse) Descriptor

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

func (*InitiateResponse) GetContract

func (m *InitiateResponse) GetContract() string

func (*InitiateResponse) GetContractP2Sh

func (m *InitiateResponse) GetContractP2Sh() string

func (*InitiateResponse) GetContractTx

func (m *InitiateResponse) GetContractTx() string

func (*InitiateResponse) GetContractTxHash

func (m *InitiateResponse) GetContractTxHash() string

func (*InitiateResponse) GetErrorno

func (m *InitiateResponse) GetErrorno() ERRNO

func (*InitiateResponse) GetErrstr

func (m *InitiateResponse) GetErrstr() string

func (*InitiateResponse) GetFee

func (m *InitiateResponse) GetFee() int64

func (*InitiateResponse) GetFeerate

func (m *InitiateResponse) GetFeerate() float32

func (*InitiateResponse) GetLocktime

func (m *InitiateResponse) GetLocktime() int64

func (*InitiateResponse) ProtoMessage

func (*InitiateResponse) ProtoMessage()

func (*InitiateResponse) Reset

func (m *InitiateResponse) Reset()

func (*InitiateResponse) String

func (m *InitiateResponse) String() string

func (*InitiateResponse) XXX_DiscardUnknown

func (m *InitiateResponse) XXX_DiscardUnknown()

func (*InitiateResponse) XXX_Marshal

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

func (*InitiateResponse) XXX_Merge

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

func (*InitiateResponse) XXX_Size

func (m *InitiateResponse) XXX_Size() int

func (*InitiateResponse) XXX_Unmarshal

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

type NewAddressRequest

type NewAddressRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAddressRequest) Descriptor

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

func (*NewAddressRequest) GetCerts

func (m *NewAddressRequest) GetCerts() string

func (*NewAddressRequest) GetCoin

func (m *NewAddressRequest) GetCoin() COIN

func (*NewAddressRequest) GetHostport

func (m *NewAddressRequest) GetHostport() string

func (*NewAddressRequest) GetRpcpass

func (m *NewAddressRequest) GetRpcpass() string

func (*NewAddressRequest) GetRpcuser

func (m *NewAddressRequest) GetRpcuser() string

func (*NewAddressRequest) GetTestnet

func (m *NewAddressRequest) GetTestnet() bool

func (*NewAddressRequest) GetWpass

func (m *NewAddressRequest) GetWpass() string

func (*NewAddressRequest) ProtoMessage

func (*NewAddressRequest) ProtoMessage()

func (*NewAddressRequest) Reset

func (m *NewAddressRequest) Reset()

func (*NewAddressRequest) String

func (m *NewAddressRequest) String() string

func (*NewAddressRequest) XXX_DiscardUnknown

func (m *NewAddressRequest) XXX_DiscardUnknown()

func (*NewAddressRequest) XXX_Marshal

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

func (*NewAddressRequest) XXX_Merge

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

func (*NewAddressRequest) XXX_Size

func (m *NewAddressRequest) XXX_Size() int

func (*NewAddressRequest) XXX_Unmarshal

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

type NewAddressResponse

type NewAddressResponse struct {
	Address              string   `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAddressResponse) Descriptor

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

func (*NewAddressResponse) GetAddress

func (m *NewAddressResponse) GetAddress() string

func (*NewAddressResponse) GetErrorno

func (m *NewAddressResponse) GetErrorno() ERRNO

func (*NewAddressResponse) GetErrstr

func (m *NewAddressResponse) GetErrstr() string

func (*NewAddressResponse) ProtoMessage

func (*NewAddressResponse) ProtoMessage()

func (*NewAddressResponse) Reset

func (m *NewAddressResponse) Reset()

func (*NewAddressResponse) String

func (m *NewAddressResponse) String() string

func (*NewAddressResponse) XXX_DiscardUnknown

func (m *NewAddressResponse) XXX_DiscardUnknown()

func (*NewAddressResponse) XXX_Marshal

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

func (*NewAddressResponse) XXX_Merge

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

func (*NewAddressResponse) XXX_Size

func (m *NewAddressResponse) XXX_Size() int

func (*NewAddressResponse) XXX_Unmarshal

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

type ParticipateRequest

type ParticipateRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	Secrethash           string   `protobuf:"bytes,10,opt,name=secrethash,proto3" json:"secrethash,omitempty"`
	InitAddress          string   `protobuf:"bytes,11,opt,name=init_address,json=initAddress,proto3" json:"init_address,omitempty"`
	Amount               int64    `protobuf:"varint,12,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ParticipateRequest) Descriptor

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

func (*ParticipateRequest) GetAmount

func (m *ParticipateRequest) GetAmount() int64

func (*ParticipateRequest) GetCerts

func (m *ParticipateRequest) GetCerts() string

func (*ParticipateRequest) GetCoin

func (m *ParticipateRequest) GetCoin() COIN

func (*ParticipateRequest) GetHostport

func (m *ParticipateRequest) GetHostport() string

func (*ParticipateRequest) GetInitAddress

func (m *ParticipateRequest) GetInitAddress() string

func (*ParticipateRequest) GetRpcpass

func (m *ParticipateRequest) GetRpcpass() string

func (*ParticipateRequest) GetRpcuser

func (m *ParticipateRequest) GetRpcuser() string

func (*ParticipateRequest) GetSecrethash

func (m *ParticipateRequest) GetSecrethash() string

func (*ParticipateRequest) GetTestnet

func (m *ParticipateRequest) GetTestnet() bool

func (*ParticipateRequest) GetWpass

func (m *ParticipateRequest) GetWpass() string

func (*ParticipateRequest) ProtoMessage

func (*ParticipateRequest) ProtoMessage()

func (*ParticipateRequest) Reset

func (m *ParticipateRequest) Reset()

func (*ParticipateRequest) String

func (m *ParticipateRequest) String() string

func (*ParticipateRequest) XXX_DiscardUnknown

func (m *ParticipateRequest) XXX_DiscardUnknown()

func (*ParticipateRequest) XXX_Marshal

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

func (*ParticipateRequest) XXX_Merge

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

func (*ParticipateRequest) XXX_Size

func (m *ParticipateRequest) XXX_Size() int

func (*ParticipateRequest) XXX_Unmarshal

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

type ParticipateResponse

type ParticipateResponse struct {
	Contract             string   `protobuf:"bytes,5,opt,name=contract,proto3" json:"contract,omitempty"`
	ContractP2Sh         string   `protobuf:"bytes,6,opt,name=contract_p2sh,json=contractP2sh,proto3" json:"contract_p2sh,omitempty"`
	ContractTx           string   `protobuf:"bytes,7,opt,name=contract_tx,json=contractTx,proto3" json:"contract_tx,omitempty"`
	ContractTxHash       string   `protobuf:"bytes,8,opt,name=contract_tx_hash,json=contractTxHash,proto3" json:"contract_tx_hash,omitempty"`
	Fee                  int64    `protobuf:"varint,9,opt,name=fee,proto3" json:"fee,omitempty"`
	Feerate              float32  `protobuf:"fixed32,10,opt,name=feerate,proto3" json:"feerate,omitempty"`
	Locktime             int64    `protobuf:"varint,11,opt,name=locktime,proto3" json:"locktime,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ParticipateResponse) Descriptor

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

func (*ParticipateResponse) GetContract

func (m *ParticipateResponse) GetContract() string

func (*ParticipateResponse) GetContractP2Sh

func (m *ParticipateResponse) GetContractP2Sh() string

func (*ParticipateResponse) GetContractTx

func (m *ParticipateResponse) GetContractTx() string

func (*ParticipateResponse) GetContractTxHash

func (m *ParticipateResponse) GetContractTxHash() string

func (*ParticipateResponse) GetErrorno

func (m *ParticipateResponse) GetErrorno() ERRNO

func (*ParticipateResponse) GetErrstr

func (m *ParticipateResponse) GetErrstr() string

func (*ParticipateResponse) GetFee

func (m *ParticipateResponse) GetFee() int64

func (*ParticipateResponse) GetFeerate

func (m *ParticipateResponse) GetFeerate() float32

func (*ParticipateResponse) GetLocktime

func (m *ParticipateResponse) GetLocktime() int64

func (*ParticipateResponse) ProtoMessage

func (*ParticipateResponse) ProtoMessage()

func (*ParticipateResponse) Reset

func (m *ParticipateResponse) Reset()

func (*ParticipateResponse) String

func (m *ParticipateResponse) String() string

func (*ParticipateResponse) XXX_DiscardUnknown

func (m *ParticipateResponse) XXX_DiscardUnknown()

func (*ParticipateResponse) XXX_Marshal

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

func (*ParticipateResponse) XXX_Merge

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

func (*ParticipateResponse) XXX_Size

func (m *ParticipateResponse) XXX_Size() int

func (*ParticipateResponse) XXX_Unmarshal

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

type PingWalletRPCRequest

type PingWalletRPCRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingWalletRPCRequest) Descriptor

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

func (*PingWalletRPCRequest) GetCerts

func (m *PingWalletRPCRequest) GetCerts() string

func (*PingWalletRPCRequest) GetCoin

func (m *PingWalletRPCRequest) GetCoin() COIN

func (*PingWalletRPCRequest) GetHostport

func (m *PingWalletRPCRequest) GetHostport() string

func (*PingWalletRPCRequest) GetRpcpass

func (m *PingWalletRPCRequest) GetRpcpass() string

func (*PingWalletRPCRequest) GetRpcuser

func (m *PingWalletRPCRequest) GetRpcuser() string

func (*PingWalletRPCRequest) GetTestnet

func (m *PingWalletRPCRequest) GetTestnet() bool

func (*PingWalletRPCRequest) GetWpass

func (m *PingWalletRPCRequest) GetWpass() string

func (*PingWalletRPCRequest) ProtoMessage

func (*PingWalletRPCRequest) ProtoMessage()

func (*PingWalletRPCRequest) Reset

func (m *PingWalletRPCRequest) Reset()

func (*PingWalletRPCRequest) String

func (m *PingWalletRPCRequest) String() string

func (*PingWalletRPCRequest) XXX_DiscardUnknown

func (m *PingWalletRPCRequest) XXX_DiscardUnknown()

func (*PingWalletRPCRequest) XXX_Marshal

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

func (*PingWalletRPCRequest) XXX_Merge

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

func (*PingWalletRPCRequest) XXX_Size

func (m *PingWalletRPCRequest) XXX_Size() int

func (*PingWalletRPCRequest) XXX_Unmarshal

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

type PingWalletRPCResponse

type PingWalletRPCResponse struct {
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingWalletRPCResponse) Descriptor

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

func (*PingWalletRPCResponse) GetErrorno

func (m *PingWalletRPCResponse) GetErrorno() ERRNO

func (*PingWalletRPCResponse) GetErrstr

func (m *PingWalletRPCResponse) GetErrstr() string

func (*PingWalletRPCResponse) ProtoMessage

func (*PingWalletRPCResponse) ProtoMessage()

func (*PingWalletRPCResponse) Reset

func (m *PingWalletRPCResponse) Reset()

func (*PingWalletRPCResponse) String

func (m *PingWalletRPCResponse) String() string

func (*PingWalletRPCResponse) XXX_DiscardUnknown

func (m *PingWalletRPCResponse) XXX_DiscardUnknown()

func (*PingWalletRPCResponse) XXX_Marshal

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

func (*PingWalletRPCResponse) XXX_Merge

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

func (*PingWalletRPCResponse) XXX_Size

func (m *PingWalletRPCResponse) XXX_Size() int

func (*PingWalletRPCResponse) XXX_Unmarshal

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

type PublishRequest

type PublishRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	Tx                   string   `protobuf:"bytes,10,opt,name=tx,proto3" json:"tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PublishRequest) Descriptor

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

func (*PublishRequest) GetCerts

func (m *PublishRequest) GetCerts() string

func (*PublishRequest) GetCoin

func (m *PublishRequest) GetCoin() COIN

func (*PublishRequest) GetHostport

func (m *PublishRequest) GetHostport() string

func (*PublishRequest) GetRpcpass

func (m *PublishRequest) GetRpcpass() string

func (*PublishRequest) GetRpcuser

func (m *PublishRequest) GetRpcuser() string

func (*PublishRequest) GetTestnet

func (m *PublishRequest) GetTestnet() bool

func (*PublishRequest) GetTx

func (m *PublishRequest) GetTx() string

func (*PublishRequest) GetWpass

func (m *PublishRequest) GetWpass() string

func (*PublishRequest) ProtoMessage

func (*PublishRequest) ProtoMessage()

func (*PublishRequest) Reset

func (m *PublishRequest) Reset()

func (*PublishRequest) String

func (m *PublishRequest) String() string

func (*PublishRequest) XXX_DiscardUnknown

func (m *PublishRequest) XXX_DiscardUnknown()

func (*PublishRequest) XXX_Marshal

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

func (*PublishRequest) XXX_Merge

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

func (*PublishRequest) XXX_Size

func (m *PublishRequest) XXX_Size() int

func (*PublishRequest) XXX_Unmarshal

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

type PublishResponse

type PublishResponse struct {
	TxHash               string   `protobuf:"bytes,5,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PublishResponse) Descriptor

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

func (*PublishResponse) GetErrorno

func (m *PublishResponse) GetErrorno() ERRNO

func (*PublishResponse) GetErrstr

func (m *PublishResponse) GetErrstr() string

func (*PublishResponse) GetTxHash

func (m *PublishResponse) GetTxHash() string

func (*PublishResponse) ProtoMessage

func (*PublishResponse) ProtoMessage()

func (*PublishResponse) Reset

func (m *PublishResponse) Reset()

func (*PublishResponse) String

func (m *PublishResponse) String() string

func (*PublishResponse) XXX_DiscardUnknown

func (m *PublishResponse) XXX_DiscardUnknown()

func (*PublishResponse) XXX_Marshal

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

func (*PublishResponse) XXX_Merge

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

func (*PublishResponse) XXX_Size

func (m *PublishResponse) XXX_Size() int

func (*PublishResponse) XXX_Unmarshal

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

type RedeemRequest

type RedeemRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	Secret               string   `protobuf:"bytes,10,opt,name=secret,proto3" json:"secret,omitempty"`
	Contract             string   `protobuf:"bytes,11,opt,name=contract,proto3" json:"contract,omitempty"`
	ContractTx           string   `protobuf:"bytes,12,opt,name=contract_tx,json=contractTx,proto3" json:"contract_tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RedeemRequest) Descriptor

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

func (*RedeemRequest) GetCerts

func (m *RedeemRequest) GetCerts() string

func (*RedeemRequest) GetCoin

func (m *RedeemRequest) GetCoin() COIN

func (*RedeemRequest) GetContract

func (m *RedeemRequest) GetContract() string

func (*RedeemRequest) GetContractTx

func (m *RedeemRequest) GetContractTx() string

func (*RedeemRequest) GetHostport

func (m *RedeemRequest) GetHostport() string

func (*RedeemRequest) GetRpcpass

func (m *RedeemRequest) GetRpcpass() string

func (*RedeemRequest) GetRpcuser

func (m *RedeemRequest) GetRpcuser() string

func (*RedeemRequest) GetSecret

func (m *RedeemRequest) GetSecret() string

func (*RedeemRequest) GetTestnet

func (m *RedeemRequest) GetTestnet() bool

func (*RedeemRequest) GetWpass

func (m *RedeemRequest) GetWpass() string

func (*RedeemRequest) ProtoMessage

func (*RedeemRequest) ProtoMessage()

func (*RedeemRequest) Reset

func (m *RedeemRequest) Reset()

func (*RedeemRequest) String

func (m *RedeemRequest) String() string

func (*RedeemRequest) XXX_DiscardUnknown

func (m *RedeemRequest) XXX_DiscardUnknown()

func (*RedeemRequest) XXX_Marshal

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

func (*RedeemRequest) XXX_Merge

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

func (*RedeemRequest) XXX_Size

func (m *RedeemRequest) XXX_Size() int

func (*RedeemRequest) XXX_Unmarshal

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

type RedeemResponse

type RedeemResponse struct {
	RedeemTx             string   `protobuf:"bytes,5,opt,name=redeem_tx,json=redeemTx,proto3" json:"redeem_tx,omitempty"`
	RedeemTxHash         string   `protobuf:"bytes,6,opt,name=redeem_tx_hash,json=redeemTxHash,proto3" json:"redeem_tx_hash,omitempty"`
	Fee                  int64    `protobuf:"varint,7,opt,name=fee,proto3" json:"fee,omitempty"`
	Feerate              float32  `protobuf:"fixed32,8,opt,name=feerate,proto3" json:"feerate,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RedeemResponse) Descriptor

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

func (*RedeemResponse) GetErrorno

func (m *RedeemResponse) GetErrorno() ERRNO

func (*RedeemResponse) GetErrstr

func (m *RedeemResponse) GetErrstr() string

func (*RedeemResponse) GetFee

func (m *RedeemResponse) GetFee() int64

func (*RedeemResponse) GetFeerate

func (m *RedeemResponse) GetFeerate() float32

func (*RedeemResponse) GetRedeemTx

func (m *RedeemResponse) GetRedeemTx() string

func (*RedeemResponse) GetRedeemTxHash

func (m *RedeemResponse) GetRedeemTxHash() string

func (*RedeemResponse) ProtoMessage

func (*RedeemResponse) ProtoMessage()

func (*RedeemResponse) Reset

func (m *RedeemResponse) Reset()

func (*RedeemResponse) String

func (m *RedeemResponse) String() string

func (*RedeemResponse) XXX_DiscardUnknown

func (m *RedeemResponse) XXX_DiscardUnknown()

func (*RedeemResponse) XXX_Marshal

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

func (*RedeemResponse) XXX_Merge

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

func (*RedeemResponse) XXX_Size

func (m *RedeemResponse) XXX_Size() int

func (*RedeemResponse) XXX_Unmarshal

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

type RefundRequest

type RefundRequest struct {
	Coin                 COIN     `protobuf:"varint,1,opt,name=coin,proto3,enum=protobind.COIN" json:"coin,omitempty"`
	Testnet              bool     `protobuf:"varint,2,opt,name=testnet,proto3" json:"testnet,omitempty"`
	Hostport             string   `protobuf:"bytes,5,opt,name=hostport,proto3" json:"hostport,omitempty"`
	Rpcuser              string   `protobuf:"bytes,6,opt,name=rpcuser,proto3" json:"rpcuser,omitempty"`
	Rpcpass              string   `protobuf:"bytes,7,opt,name=rpcpass,proto3" json:"rpcpass,omitempty"`
	Wpass                string   `protobuf:"bytes,8,opt,name=wpass,proto3" json:"wpass,omitempty"`
	Certs                string   `protobuf:"bytes,9,opt,name=certs,proto3" json:"certs,omitempty"`
	Contract             string   `protobuf:"bytes,10,opt,name=contract,proto3" json:"contract,omitempty"`
	ContractTx           string   `protobuf:"bytes,11,opt,name=contract_tx,json=contractTx,proto3" json:"contract_tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RefundRequest) Descriptor

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

func (*RefundRequest) GetCerts

func (m *RefundRequest) GetCerts() string

func (*RefundRequest) GetCoin

func (m *RefundRequest) GetCoin() COIN

func (*RefundRequest) GetContract

func (m *RefundRequest) GetContract() string

func (*RefundRequest) GetContractTx

func (m *RefundRequest) GetContractTx() string

func (*RefundRequest) GetHostport

func (m *RefundRequest) GetHostport() string

func (*RefundRequest) GetRpcpass

func (m *RefundRequest) GetRpcpass() string

func (*RefundRequest) GetRpcuser

func (m *RefundRequest) GetRpcuser() string

func (*RefundRequest) GetTestnet

func (m *RefundRequest) GetTestnet() bool

func (*RefundRequest) GetWpass

func (m *RefundRequest) GetWpass() string

func (*RefundRequest) ProtoMessage

func (*RefundRequest) ProtoMessage()

func (*RefundRequest) Reset

func (m *RefundRequest) Reset()

func (*RefundRequest) String

func (m *RefundRequest) String() string

func (*RefundRequest) XXX_DiscardUnknown

func (m *RefundRequest) XXX_DiscardUnknown()

func (*RefundRequest) XXX_Marshal

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

func (*RefundRequest) XXX_Merge

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

func (*RefundRequest) XXX_Size

func (m *RefundRequest) XXX_Size() int

func (*RefundRequest) XXX_Unmarshal

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

type RefundResponse

type RefundResponse struct {
	RefundTx             string   `protobuf:"bytes,5,opt,name=refund_tx,json=refundTx,proto3" json:"refund_tx,omitempty"`
	RefundTxHash         string   `protobuf:"bytes,6,opt,name=refund_tx_hash,json=refundTxHash,proto3" json:"refund_tx_hash,omitempty"`
	Fee                  int64    `protobuf:"varint,7,opt,name=fee,proto3" json:"fee,omitempty"`
	Feerate              float32  `protobuf:"fixed32,8,opt,name=feerate,proto3" json:"feerate,omitempty"`
	Errorno              ERRNO    `protobuf:"varint,14,opt,name=errorno,proto3,enum=protobind.ERRNO" json:"errorno,omitempty"`
	Errstr               string   `protobuf:"bytes,15,opt,name=errstr,proto3" json:"errstr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RefundResponse) Descriptor

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

func (*RefundResponse) GetErrorno

func (m *RefundResponse) GetErrorno() ERRNO

func (*RefundResponse) GetErrstr

func (m *RefundResponse) GetErrstr() string

func (*RefundResponse) GetFee

func (m *RefundResponse) GetFee() int64

func (*RefundResponse) GetFeerate

func (m *RefundResponse) GetFeerate() float32

func (*RefundResponse) GetRefundTx

func (m *RefundResponse) GetRefundTx() string

func (*RefundResponse) GetRefundTxHash

func (m *RefundResponse) GetRefundTxHash() string

func (*RefundResponse) ProtoMessage

func (*RefundResponse) ProtoMessage()

func (*RefundResponse) Reset

func (m *RefundResponse) Reset()

func (*RefundResponse) String

func (m *RefundResponse) String() string

func (*RefundResponse) XXX_DiscardUnknown

func (m *RefundResponse) XXX_DiscardUnknown()

func (*RefundResponse) XXX_Marshal

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

func (*RefundResponse) XXX_Merge

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

func (*RefundResponse) XXX_Size

func (m *RefundResponse) XXX_Size() int

func (*RefundResponse) XXX_Unmarshal

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

type SwapLibClient

SwapLibClient is the client API for SwapLib service.

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

func NewSwapLibClient

func NewSwapLibClient(cc *grpc.ClientConn) SwapLibClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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