escrowpb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EscrowStatus_name = map[int32]string{
	0: "INITIATED",
	1: "ACTIVE",
	2: "CANCELED",
	3: "CLOSED",
}
View Source
var EscrowStatus_value = map[string]int32{
	"INITIATED": 0,
	"ACTIVE":    1,
	"CANCELED":  2,
	"CLOSED":    3,
}
View Source
var Schedule_name = map[int32]string{
	0: "MONTHLY",
	1: "QUARTERLY",
	2: "ANNUALLY",
}
View Source
var Schedule_value = map[string]int32{
	"MONTHLY":   0,
	"QUARTERLY": 1,
	"ANNUALLY":  2,
}
View Source
var TokenType_name = map[int32]string{
	0: "BTT",
}
View Source
var TokenType_value = map[string]int32{
	"BTT": 0,
}

Functions

func RegisterEscrowServiceServer

func RegisterEscrowServiceServer(s *grpc.Server, srv EscrowServiceServer)

Types

type CancelContractRequest

type CancelContractRequest struct {
	ContractId           [][]byte `protobuf:"bytes,1,rep,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	AuthAddress          []byte   `protobuf:"bytes,2,opt,name=auth_address,json=authAddress,proto3" json:"auth_address,omitempty"`
	AuthSignature        []byte   `protobuf:"bytes,3,opt,name=auth_signature,json=authSignature,proto3" json:"auth_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CancelContractRequest) Descriptor

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

func (*CancelContractRequest) GetAuthAddress

func (m *CancelContractRequest) GetAuthAddress() []byte

func (*CancelContractRequest) GetAuthSignature

func (m *CancelContractRequest) GetAuthSignature() []byte

func (*CancelContractRequest) GetContractId

func (m *CancelContractRequest) GetContractId() [][]byte

func (*CancelContractRequest) ProtoMessage

func (*CancelContractRequest) ProtoMessage()

func (*CancelContractRequest) Reset

func (m *CancelContractRequest) Reset()

func (*CancelContractRequest) String

func (m *CancelContractRequest) String() string

func (*CancelContractRequest) XXX_DiscardUnknown

func (m *CancelContractRequest) XXX_DiscardUnknown()

func (*CancelContractRequest) XXX_Marshal

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

func (*CancelContractRequest) XXX_Merge

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

func (*CancelContractRequest) XXX_Size

func (m *CancelContractRequest) XXX_Size() int

func (*CancelContractRequest) XXX_Unmarshal

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

type CancelContractResult

type CancelContractResult struct {
	Result               *CancelContractResult_Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	EscrowAddress        []byte                       `protobuf:"bytes,2,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"`
	EscrowSignedTime     *types.Timestamp             `protobuf:"bytes,3,opt,name=escrow_signed_time,json=escrowSignedTime,proto3" json:"escrow_signed_time,omitempty"`
	EscrowSignature      []byte                       `protobuf:"bytes,4,opt,name=escrow_signature,json=escrowSignature,proto3" json:"escrow_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (*CancelContractResult) Descriptor

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

func (*CancelContractResult) GetEscrowAddress

func (m *CancelContractResult) GetEscrowAddress() []byte

func (*CancelContractResult) GetEscrowSignature

func (m *CancelContractResult) GetEscrowSignature() []byte

func (*CancelContractResult) GetEscrowSignedTime

func (m *CancelContractResult) GetEscrowSignedTime() *types.Timestamp

func (*CancelContractResult) GetResult

func (*CancelContractResult) ProtoMessage

func (*CancelContractResult) ProtoMessage()

func (*CancelContractResult) Reset

func (m *CancelContractResult) Reset()

func (*CancelContractResult) String

func (m *CancelContractResult) String() string

func (*CancelContractResult) XXX_DiscardUnknown

func (m *CancelContractResult) XXX_DiscardUnknown()

func (*CancelContractResult) XXX_Marshal

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

func (*CancelContractResult) XXX_Merge

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

func (*CancelContractResult) XXX_Size

func (m *CancelContractResult) XXX_Size() int

func (*CancelContractResult) XXX_Unmarshal

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

type CancelContractResult_Result

type CancelContractResult_Result struct {
	ContractId           []byte   `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	EscrowId             int64    `protobuf:"varint,2,opt,name=escrow_id,json=escrowId,proto3" json:"escrow_id,omitempty"`
	Canceled             bool     `protobuf:"varint,3,opt,name=canceled,proto3" json:"canceled,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CancelContractResult_Result) Descriptor

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

func (*CancelContractResult_Result) GetCanceled

func (m *CancelContractResult_Result) GetCanceled() bool

func (*CancelContractResult_Result) GetContractId

func (m *CancelContractResult_Result) GetContractId() []byte

func (*CancelContractResult_Result) GetEscrowId

func (m *CancelContractResult_Result) GetEscrowId() int64

func (*CancelContractResult_Result) ProtoMessage

func (*CancelContractResult_Result) ProtoMessage()

func (*CancelContractResult_Result) Reset

func (m *CancelContractResult_Result) Reset()

func (*CancelContractResult_Result) String

func (m *CancelContractResult_Result) String() string

func (*CancelContractResult_Result) XXX_DiscardUnknown

func (m *CancelContractResult_Result) XXX_DiscardUnknown()

func (*CancelContractResult_Result) XXX_Marshal

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

func (*CancelContractResult_Result) XXX_Merge

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

func (*CancelContractResult_Result) XXX_Size

func (m *CancelContractResult_Result) XXX_Size() int

func (*CancelContractResult_Result) XXX_Unmarshal

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

type ContractID

type ContractID struct {
	ContractId           []byte   `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	Address              []byte   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Signature            []byte   `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContractID) Descriptor

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

func (*ContractID) GetAddress

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

func (*ContractID) GetContractId

func (m *ContractID) GetContractId() []byte

func (*ContractID) GetSignature

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

func (*ContractID) ProtoMessage

func (*ContractID) ProtoMessage()

func (*ContractID) Reset

func (m *ContractID) Reset()

func (*ContractID) String

func (m *ContractID) String() string

func (*ContractID) XXX_DiscardUnknown

func (m *ContractID) XXX_DiscardUnknown()

func (*ContractID) XXX_Marshal

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

func (*ContractID) XXX_Merge

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

func (*ContractID) XXX_Size

func (m *ContractID) XXX_Size() int

func (*ContractID) XXX_Unmarshal

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

type Escrow

type Escrow struct {
	ContractId           []byte   `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	EscrowId             int64    `protobuf:"varint,2,opt,name=escrow_id,json=escrowId,proto3" json:"escrow_id,omitempty"`
	FromAddress          []byte   `protobuf:"bytes,3,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress            []byte   `protobuf:"bytes,4,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	Amount               int64    `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
	CollateralAmount     int64    `protobuf:"varint,6,opt,name=collateral_amount,json=collateralAmount,proto3" json:"collateral_amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Escrow) Descriptor

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

func (*Escrow) GetAmount

func (m *Escrow) GetAmount() int64

func (*Escrow) GetCollateralAmount

func (m *Escrow) GetCollateralAmount() int64

func (*Escrow) GetContractId

func (m *Escrow) GetContractId() []byte

func (*Escrow) GetEscrowId

func (m *Escrow) GetEscrowId() int64

func (*Escrow) GetFromAddress

func (m *Escrow) GetFromAddress() []byte

func (*Escrow) GetToAddress

func (m *Escrow) GetToAddress() []byte

func (*Escrow) ProtoMessage

func (*Escrow) ProtoMessage()

func (*Escrow) Reset

func (m *Escrow) Reset()

func (*Escrow) String

func (m *Escrow) String() string

func (*Escrow) XXX_DiscardUnknown

func (m *Escrow) XXX_DiscardUnknown()

func (*Escrow) XXX_Marshal

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

func (*Escrow) XXX_Merge

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

func (*Escrow) XXX_Size

func (m *Escrow) XXX_Size() int

func (*Escrow) XXX_Unmarshal

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

type EscrowContract

type EscrowContract struct {
	ContractId           []byte    `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	BuyerAddress         []byte    `protobuf:"bytes,2,opt,name=buyer_address,json=buyerAddress,proto3" json:"buyer_address,omitempty"`
	SellerAddress        []byte    `protobuf:"bytes,3,opt,name=seller_address,json=sellerAddress,proto3" json:"seller_address,omitempty"`
	AuthAddress          []byte    `protobuf:"bytes,4,opt,name=auth_address,json=authAddress,proto3" json:"auth_address,omitempty"`
	Amount               int64     `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
	CollateralAmount     int64     `protobuf:"varint,6,opt,name=collateral_amount,json=collateralAmount,proto3" json:"collateral_amount,omitempty"`
	WithholdAmount       int64     `protobuf:"varint,7,opt,name=withhold_amount,json=withholdAmount,proto3" json:"withhold_amount,omitempty"`
	TokenType            TokenType `protobuf:"varint,8,opt,name=token_type,json=tokenType,proto3,enum=escrow.TokenType" json:"token_type,omitempty"`
	PayoutSchedule       Schedule  `protobuf:"varint,9,opt,name=payout_schedule,json=payoutSchedule,proto3,enum=escrow.Schedule" json:"payout_schedule,omitempty"`
	NumPayouts           int32     `protobuf:"varint,10,opt,name=num_payouts,json=numPayouts,proto3" json:"num_payouts,omitempty"`
	Reference            []byte    `protobuf:"bytes,11,opt,name=reference,proto3" json:"reference,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*EscrowContract) Descriptor

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

func (*EscrowContract) GetAmount

func (m *EscrowContract) GetAmount() int64

func (*EscrowContract) GetAuthAddress

func (m *EscrowContract) GetAuthAddress() []byte

func (*EscrowContract) GetBuyerAddress

func (m *EscrowContract) GetBuyerAddress() []byte

func (*EscrowContract) GetCollateralAmount

func (m *EscrowContract) GetCollateralAmount() int64

func (*EscrowContract) GetContractId

func (m *EscrowContract) GetContractId() []byte

func (*EscrowContract) GetNumPayouts

func (m *EscrowContract) GetNumPayouts() int32

func (*EscrowContract) GetPayoutSchedule

func (m *EscrowContract) GetPayoutSchedule() Schedule

func (*EscrowContract) GetReference

func (m *EscrowContract) GetReference() []byte

func (*EscrowContract) GetSellerAddress

func (m *EscrowContract) GetSellerAddress() []byte

func (*EscrowContract) GetTokenType

func (m *EscrowContract) GetTokenType() TokenType

func (*EscrowContract) GetWithholdAmount

func (m *EscrowContract) GetWithholdAmount() int64

func (*EscrowContract) ProtoMessage

func (*EscrowContract) ProtoMessage()

func (*EscrowContract) Reset

func (m *EscrowContract) Reset()

func (*EscrowContract) String

func (m *EscrowContract) String() string

func (*EscrowContract) XXX_DiscardUnknown

func (m *EscrowContract) XXX_DiscardUnknown()

func (*EscrowContract) XXX_Marshal

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

func (*EscrowContract) XXX_Merge

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

func (*EscrowContract) XXX_Size

func (m *EscrowContract) XXX_Size() int

func (*EscrowContract) XXX_Unmarshal

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

type EscrowContractRequest

type EscrowContractRequest struct {
	Contract             []*SignedEscrowContract `protobuf:"bytes,1,rep,name=contract,proto3" json:"contract,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*EscrowContractRequest) Descriptor

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

func (*EscrowContractRequest) GetContract

func (m *EscrowContractRequest) GetContract() []*SignedEscrowContract

func (*EscrowContractRequest) ProtoMessage

func (*EscrowContractRequest) ProtoMessage()

func (*EscrowContractRequest) Reset

func (m *EscrowContractRequest) Reset()

func (*EscrowContractRequest) String

func (m *EscrowContractRequest) String() string

func (*EscrowContractRequest) XXX_DiscardUnknown

func (m *EscrowContractRequest) XXX_DiscardUnknown()

func (*EscrowContractRequest) XXX_Marshal

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

func (*EscrowContractRequest) XXX_Merge

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

func (*EscrowContractRequest) XXX_Size

func (m *EscrowContractRequest) XXX_Size() int

func (*EscrowContractRequest) XXX_Unmarshal

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

type EscrowContractResult

type EscrowContractResult struct {
	PayinId              []byte           `protobuf:"bytes,1,opt,name=payin_id,json=payinId,proto3" json:"payin_id,omitempty"`
	Escrow               []*Escrow        `protobuf:"bytes,2,rep,name=escrow,proto3" json:"escrow,omitempty"`
	EscrowAddress        []byte           `protobuf:"bytes,3,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"`
	EscrowSignedTime     *types.Timestamp `protobuf:"bytes,4,opt,name=escrow_signed_time,json=escrowSignedTime,proto3" json:"escrow_signed_time,omitempty"`
	EscrowSignature      []byte           `protobuf:"bytes,5,opt,name=escrow_signature,json=escrowSignature,proto3" json:"escrow_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*EscrowContractResult) Descriptor

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

func (*EscrowContractResult) GetEscrow

func (m *EscrowContractResult) GetEscrow() []*Escrow

func (*EscrowContractResult) GetEscrowAddress

func (m *EscrowContractResult) GetEscrowAddress() []byte

func (*EscrowContractResult) GetEscrowSignature

func (m *EscrowContractResult) GetEscrowSignature() []byte

func (*EscrowContractResult) GetEscrowSignedTime

func (m *EscrowContractResult) GetEscrowSignedTime() *types.Timestamp

func (*EscrowContractResult) GetPayinId

func (m *EscrowContractResult) GetPayinId() []byte

func (*EscrowContractResult) ProtoMessage

func (*EscrowContractResult) ProtoMessage()

func (*EscrowContractResult) Reset

func (m *EscrowContractResult) Reset()

func (*EscrowContractResult) String

func (m *EscrowContractResult) String() string

func (*EscrowContractResult) XXX_DiscardUnknown

func (m *EscrowContractResult) XXX_DiscardUnknown()

func (*EscrowContractResult) XXX_Marshal

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

func (*EscrowContractResult) XXX_Merge

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

func (*EscrowContractResult) XXX_Size

func (m *EscrowContractResult) XXX_Size() int

func (*EscrowContractResult) XXX_Unmarshal

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

type EscrowServiceClient

type EscrowServiceClient interface {
	// buyer submit contracts to escrow after buyer and seller agreed contract
	// one contract is one buyer to one seller, and is one escrow in escrow service
	// buyer can submit multiple contracts in one request
	// return same number of results as request contracts
	SubmitContracts(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*EscrowContractResult, error)
	// after submit contract, buyer request to pay in
	// escrow will transfer contract amount from buyer wallet to escrow wallet
	PayIn(ctx context.Context, in *PayinRquest, opts ...grpc.CallOption) (*PayinResult, error)
	// seller use this to check if a contract is paid in
	IsPaid(ctx context.Context, in *ContractID, opts ...grpc.CallOption) (*PayinStatus, error)
	// check escrow pay out to seller status of a contract
	GetPayOutStatus(ctx context.Context, in *ContractID, opts ...grpc.CallOption) (*PayoutStatus, error)
	// auth request to cancel the contract
	// escrow will cancel the left payments to seller
	CancelContracts(ctx context.Context, in *CancelContractRequest, opts ...grpc.CallOption) (*CancelContractResult, error)
}

EscrowServiceClient is the client API for EscrowService service.

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

func NewEscrowServiceClient

func NewEscrowServiceClient(cc *grpc.ClientConn) EscrowServiceClient

type EscrowServiceServer

type EscrowServiceServer interface {
	// buyer submit contracts to escrow after buyer and seller agreed contract
	// one contract is one buyer to one seller, and is one escrow in escrow service
	// buyer can submit multiple contracts in one request
	// return same number of results as request contracts
	SubmitContracts(context.Context, *EscrowContractRequest) (*EscrowContractResult, error)
	// after submit contract, buyer request to pay in
	// escrow will transfer contract amount from buyer wallet to escrow wallet
	PayIn(context.Context, *PayinRquest) (*PayinResult, error)
	// seller use this to check if a contract is paid in
	IsPaid(context.Context, *ContractID) (*PayinStatus, error)
	// check escrow pay out to seller status of a contract
	GetPayOutStatus(context.Context, *ContractID) (*PayoutStatus, error)
	// auth request to cancel the contract
	// escrow will cancel the left payments to seller
	CancelContracts(context.Context, *CancelContractRequest) (*CancelContractResult, error)
}

EscrowServiceServer is the server API for EscrowService service.

type EscrowStatus

type EscrowStatus int32
const (
	EscrowStatus_INITIATED EscrowStatus = 0
	EscrowStatus_ACTIVE    EscrowStatus = 1
	EscrowStatus_CANCELED  EscrowStatus = 2
	EscrowStatus_CLOSED    EscrowStatus = 3
)

func (EscrowStatus) EnumDescriptor

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

func (EscrowStatus) String

func (x EscrowStatus) String() string

type PayinResult

type PayinResult struct {
	PayinId              []byte           `protobuf:"bytes,1,opt,name=payin_id,json=payinId,proto3" json:"payin_id,omitempty"`
	Amount               int64            `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SequenceId           int64            `protobuf:"varint,3,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"`
	EscrowAddress        []byte           `protobuf:"bytes,4,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"`
	EscrowSignedTime     *types.Timestamp `protobuf:"bytes,5,opt,name=escrow_signed_time,json=escrowSignedTime,proto3" json:"escrow_signed_time,omitempty"`
	EscrowSignature      []byte           `protobuf:"bytes,6,opt,name=escrow_signature,json=escrowSignature,proto3" json:"escrow_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*PayinResult) Descriptor

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

func (*PayinResult) GetAmount

func (m *PayinResult) GetAmount() int64

func (*PayinResult) GetEscrowAddress

func (m *PayinResult) GetEscrowAddress() []byte

func (*PayinResult) GetEscrowSignature

func (m *PayinResult) GetEscrowSignature() []byte

func (*PayinResult) GetEscrowSignedTime

func (m *PayinResult) GetEscrowSignedTime() *types.Timestamp

func (*PayinResult) GetPayinId

func (m *PayinResult) GetPayinId() []byte

func (*PayinResult) GetSequenceId

func (m *PayinResult) GetSequenceId() int64

func (*PayinResult) ProtoMessage

func (*PayinResult) ProtoMessage()

func (*PayinResult) Reset

func (m *PayinResult) Reset()

func (*PayinResult) String

func (m *PayinResult) String() string

func (*PayinResult) XXX_DiscardUnknown

func (m *PayinResult) XXX_DiscardUnknown()

func (*PayinResult) XXX_Marshal

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

func (*PayinResult) XXX_Merge

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

func (*PayinResult) XXX_Size

func (m *PayinResult) XXX_Size() int

func (*PayinResult) XXX_Unmarshal

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

type PayinRquest

type PayinRquest struct {
	PayinId              []byte   `protobuf:"bytes,1,opt,name=payin_id,json=payinId,proto3" json:"payin_id,omitempty"`
	BuyerAddress         []byte   `protobuf:"bytes,2,opt,name=buyer_address,json=buyerAddress,proto3" json:"buyer_address,omitempty"`
	BuyerSignature       []byte   `protobuf:"bytes,3,opt,name=buyer_signature,json=buyerSignature,proto3" json:"buyer_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PayinRquest) Descriptor

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

func (*PayinRquest) GetBuyerAddress

func (m *PayinRquest) GetBuyerAddress() []byte

func (*PayinRquest) GetBuyerSignature

func (m *PayinRquest) GetBuyerSignature() []byte

func (*PayinRquest) GetPayinId

func (m *PayinRquest) GetPayinId() []byte

func (*PayinRquest) ProtoMessage

func (*PayinRquest) ProtoMessage()

func (*PayinRquest) Reset

func (m *PayinRquest) Reset()

func (*PayinRquest) String

func (m *PayinRquest) String() string

func (*PayinRquest) XXX_DiscardUnknown

func (m *PayinRquest) XXX_DiscardUnknown()

func (*PayinRquest) XXX_Marshal

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

func (*PayinRquest) XXX_Merge

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

func (*PayinRquest) XXX_Size

func (m *PayinRquest) XXX_Size() int

func (*PayinRquest) XXX_Unmarshal

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

type PayinStatus

type PayinStatus struct {
	Paid                 bool     `protobuf:"varint,1,opt,name=paid,proto3" json:"paid,omitempty"`
	SequenceId           int64    `protobuf:"varint,2,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PayinStatus) Descriptor

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

func (*PayinStatus) GetPaid

func (m *PayinStatus) GetPaid() bool

func (*PayinStatus) GetSequenceId

func (m *PayinStatus) GetSequenceId() int64

func (*PayinStatus) ProtoMessage

func (*PayinStatus) ProtoMessage()

func (*PayinStatus) Reset

func (m *PayinStatus) Reset()

func (*PayinStatus) String

func (m *PayinStatus) String() string

func (*PayinStatus) XXX_DiscardUnknown

func (m *PayinStatus) XXX_DiscardUnknown()

func (*PayinStatus) XXX_Marshal

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

func (*PayinStatus) XXX_Merge

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

func (*PayinStatus) XXX_Size

func (m *PayinStatus) XXX_Size() int

func (*PayinStatus) XXX_Unmarshal

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

type PayoutStatus

type PayoutStatus struct {
	FromAddress          []byte           `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress            []byte           `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	AuthAddress          []byte           `protobuf:"bytes,3,opt,name=auth_address,json=authAddress,proto3" json:"auth_address,omitempty"`
	Status               EscrowStatus     `protobuf:"varint,4,opt,name=status,proto3,enum=escrow.EscrowStatus" json:"status,omitempty"`
	Amount               int64            `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
	Collateral           int64            `protobuf:"varint,6,opt,name=collateral,proto3" json:"collateral,omitempty"`
	Withhold             int64            `protobuf:"varint,7,opt,name=withhold,proto3" json:"withhold,omitempty"`
	PaidAmount           int64            `protobuf:"varint,8,opt,name=paid_amount,json=paidAmount,proto3" json:"paid_amount,omitempty"`
	NumPaid              int32            `protobuf:"varint,9,opt,name=num_paid,json=numPaid,proto3" json:"num_paid,omitempty"`
	LeftAmount           int64            `protobuf:"varint,10,opt,name=left_amount,json=leftAmount,proto3" json:"left_amount,omitempty"`
	NumLeft              int32            `protobuf:"varint,11,opt,name=num_left,json=numLeft,proto3" json:"num_left,omitempty"`
	NextAmount           int64            `protobuf:"varint,12,opt,name=next_amount,json=nextAmount,proto3" json:"next_amount,omitempty"`
	LastPayoutTime       *types.Timestamp `protobuf:"bytes,13,opt,name=last_payout_time,json=lastPayoutTime,proto3" json:"last_payout_time,omitempty"`
	NextPayoutTime       *types.Timestamp `protobuf:"bytes,14,opt,name=next_payout_time,json=nextPayoutTime,proto3" json:"next_payout_time,omitempty"`
	EscrowAddress        []byte           `protobuf:"bytes,15,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"`
	SignTime             *types.Timestamp `protobuf:"bytes,16,opt,name=sign_time,json=signTime,proto3" json:"sign_time,omitempty"`
	EscrowSignature      []byte           `protobuf:"bytes,17,opt,name=escrow_signature,json=escrowSignature,proto3" json:"escrow_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*PayoutStatus) Descriptor

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

func (*PayoutStatus) GetAmount

func (m *PayoutStatus) GetAmount() int64

func (*PayoutStatus) GetAuthAddress

func (m *PayoutStatus) GetAuthAddress() []byte

func (*PayoutStatus) GetCollateral

func (m *PayoutStatus) GetCollateral() int64

func (*PayoutStatus) GetEscrowAddress

func (m *PayoutStatus) GetEscrowAddress() []byte

func (*PayoutStatus) GetEscrowSignature

func (m *PayoutStatus) GetEscrowSignature() []byte

func (*PayoutStatus) GetFromAddress

func (m *PayoutStatus) GetFromAddress() []byte

func (*PayoutStatus) GetLastPayoutTime

func (m *PayoutStatus) GetLastPayoutTime() *types.Timestamp

func (*PayoutStatus) GetLeftAmount

func (m *PayoutStatus) GetLeftAmount() int64

func (*PayoutStatus) GetNextAmount

func (m *PayoutStatus) GetNextAmount() int64

func (*PayoutStatus) GetNextPayoutTime

func (m *PayoutStatus) GetNextPayoutTime() *types.Timestamp

func (*PayoutStatus) GetNumLeft

func (m *PayoutStatus) GetNumLeft() int32

func (*PayoutStatus) GetNumPaid

func (m *PayoutStatus) GetNumPaid() int32

func (*PayoutStatus) GetPaidAmount

func (m *PayoutStatus) GetPaidAmount() int64

func (*PayoutStatus) GetSignTime

func (m *PayoutStatus) GetSignTime() *types.Timestamp

func (*PayoutStatus) GetStatus

func (m *PayoutStatus) GetStatus() EscrowStatus

func (*PayoutStatus) GetToAddress

func (m *PayoutStatus) GetToAddress() []byte

func (*PayoutStatus) GetWithhold

func (m *PayoutStatus) GetWithhold() int64

func (*PayoutStatus) ProtoMessage

func (*PayoutStatus) ProtoMessage()

func (*PayoutStatus) Reset

func (m *PayoutStatus) Reset()

func (*PayoutStatus) String

func (m *PayoutStatus) String() string

func (*PayoutStatus) XXX_DiscardUnknown

func (m *PayoutStatus) XXX_DiscardUnknown()

func (*PayoutStatus) XXX_Marshal

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

func (*PayoutStatus) XXX_Merge

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

func (*PayoutStatus) XXX_Size

func (m *PayoutStatus) XXX_Size() int

func (*PayoutStatus) XXX_Unmarshal

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

type Schedule

type Schedule int32
const (
	Schedule_MONTHLY   Schedule = 0
	Schedule_QUARTERLY Schedule = 1
	Schedule_ANNUALLY  Schedule = 2
)

func (Schedule) EnumDescriptor

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

func (Schedule) String

func (x Schedule) String() string

type SignedEscrowContract

type SignedEscrowContract struct {
	Contract             *EscrowContract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
	BuyerSignature       []byte          `protobuf:"bytes,2,opt,name=buyer_signature,json=buyerSignature,proto3" json:"buyer_signature,omitempty"`
	SellerSignature      []byte          `protobuf:"bytes,3,opt,name=seller_signature,json=sellerSignature,proto3" json:"seller_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*SignedEscrowContract) Descriptor

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

func (*SignedEscrowContract) GetBuyerSignature

func (m *SignedEscrowContract) GetBuyerSignature() []byte

func (*SignedEscrowContract) GetContract

func (m *SignedEscrowContract) GetContract() *EscrowContract

func (*SignedEscrowContract) GetSellerSignature

func (m *SignedEscrowContract) GetSellerSignature() []byte

func (*SignedEscrowContract) ProtoMessage

func (*SignedEscrowContract) ProtoMessage()

func (*SignedEscrowContract) Reset

func (m *SignedEscrowContract) Reset()

func (*SignedEscrowContract) String

func (m *SignedEscrowContract) String() string

func (*SignedEscrowContract) XXX_DiscardUnknown

func (m *SignedEscrowContract) XXX_DiscardUnknown()

func (*SignedEscrowContract) XXX_Marshal

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

func (*SignedEscrowContract) XXX_Merge

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

func (*SignedEscrowContract) XXX_Size

func (m *SignedEscrowContract) XXX_Size() int

func (*SignedEscrowContract) XXX_Unmarshal

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

type TokenType

type TokenType int32
const (
	TokenType_BTT TokenType = 0
)

func (TokenType) EnumDescriptor

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

func (TokenType) String

func (x TokenType) String() string

type UnimplementedEscrowServiceServer

type UnimplementedEscrowServiceServer struct {
}

UnimplementedEscrowServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEscrowServiceServer) CancelContracts

func (*UnimplementedEscrowServiceServer) GetPayOutStatus

func (*UnimplementedEscrowServiceServer) IsPaid

func (*UnimplementedEscrowServiceServer) PayIn

func (*UnimplementedEscrowServiceServer) SubmitContracts

Jump to

Keyboard shortcuts

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