Documentation
¶
Index ¶
- Variables
- func RegisterInternalWebApiServer(s *grpc.Server, srv InternalWebApiServer)
- func RegisterWebApiServer(s *grpc.Server, srv WebApiServer)
- type Address
- type BlockNumber
- type BooleanOutcome
- func (*BooleanOutcome) Descriptor() ([]byte, []int)deprecated
- func (x *BooleanOutcome) GetFinalized() bool
- func (x *BooleanOutcome) GetOutcome() bool
- func (*BooleanOutcome) ProtoMessage()
- func (x *BooleanOutcome) ProtoReflect() protoreflect.Message
- func (x *BooleanOutcome) Reset()
- func (x *BooleanOutcome) String() string
- type ChannelID
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetContractAddress() string
- func (x *Condition) GetGetOutcomeArgs() []byte
- func (x *Condition) GetIsFinalizedArgs() []byte
- func (x *Condition) GetOnChainDeployed() bool
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- type CreateAppSessionOnVirtualContractRequest
- func (*CreateAppSessionOnVirtualContractRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAppSessionOnVirtualContractRequest) GetContractBin() string
- func (x *CreateAppSessionOnVirtualContractRequest) GetContractConstructor() string
- func (x *CreateAppSessionOnVirtualContractRequest) GetNonce() uint64
- func (*CreateAppSessionOnVirtualContractRequest) ProtoMessage()
- func (x *CreateAppSessionOnVirtualContractRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAppSessionOnVirtualContractRequest) Reset()
- func (x *CreateAppSessionOnVirtualContractRequest) String() string
- type Data
- type DepositOrWithdrawJob
- func (*DepositOrWithdrawJob) Descriptor() ([]byte, []int)deprecated
- func (x *DepositOrWithdrawJob) GetJobId() string
- func (x *DepositOrWithdrawJob) GetTxHash() string
- func (*DepositOrWithdrawJob) ProtoMessage()
- func (x *DepositOrWithdrawJob) ProtoReflect() protoreflect.Message
- func (x *DepositOrWithdrawJob) Reset()
- func (x *DepositOrWithdrawJob) String() string
- type DepositOrWithdrawRequest
- func (*DepositOrWithdrawRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepositOrWithdrawRequest) GetAmount() string
- func (x *DepositOrWithdrawRequest) GetTokenInfo() *TokenInfo
- func (*DepositOrWithdrawRequest) ProtoMessage()
- func (x *DepositOrWithdrawRequest) ProtoReflect() protoreflect.Message
- func (x *DepositOrWithdrawRequest) Reset()
- func (x *DepositOrWithdrawRequest) String() string
- type FreeBalance
- func (*FreeBalance) Descriptor() ([]byte, []int)deprecated
- func (x *FreeBalance) GetFreeBalance() string
- func (x *FreeBalance) GetJoinStatus() int32
- func (*FreeBalance) ProtoMessage()
- func (x *FreeBalance) ProtoReflect() protoreflect.Message
- func (x *FreeBalance) Reset()
- func (x *FreeBalance) String() string
- type GetBalanceResponse
- func (*GetBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceResponse) GetFreeBalance() string
- func (x *GetBalanceResponse) GetLockedBalance() string
- func (x *GetBalanceResponse) GetReceivingCapacity() string
- func (*GetBalanceResponse) ProtoMessage()
- func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *GetBalanceResponse) Reset()
- func (x *GetBalanceResponse) String() string
- type GetBooleanOutcomeForAppSessionRequest
- func (*GetBooleanOutcomeForAppSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBooleanOutcomeForAppSessionRequest) GetQuery() []byte
- func (x *GetBooleanOutcomeForAppSessionRequest) GetSessionId() string
- func (*GetBooleanOutcomeForAppSessionRequest) ProtoMessage()
- func (x *GetBooleanOutcomeForAppSessionRequest) ProtoReflect() protoreflect.Message
- func (x *GetBooleanOutcomeForAppSessionRequest) Reset()
- func (x *GetBooleanOutcomeForAppSessionRequest) String() string
- type GetPayHistoryRequest
- func (*GetPayHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPayHistoryRequest) GetFromStart() bool
- func (x *GetPayHistoryRequest) GetItemsPerPage() int32
- func (*GetPayHistoryRequest) ProtoMessage()
- func (x *GetPayHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetPayHistoryRequest) Reset()
- func (x *GetPayHistoryRequest) String() string
- type GetPayHistoryResponse
- func (*GetPayHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPayHistoryResponse) GetHasMoreResult() bool
- func (x *GetPayHistoryResponse) GetPays() []*rpc.OneHistoricalPay
- func (*GetPayHistoryResponse) ProtoMessage()
- func (x *GetPayHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetPayHistoryResponse) Reset()
- func (x *GetPayHistoryResponse) String() string
- type GetPeerFreeBalanceRequest
- func (*GetPeerFreeBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPeerFreeBalanceRequest) GetPeerAddress() string
- func (x *GetPeerFreeBalanceRequest) GetTokenInfo() *TokenInfo
- func (*GetPeerFreeBalanceRequest) ProtoMessage()
- func (x *GetPeerFreeBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *GetPeerFreeBalanceRequest) Reset()
- func (x *GetPeerFreeBalanceRequest) String() string
- type InternalWebApiClient
- type InternalWebApiServer
- type OnChainPaymentInfo
- func (*OnChainPaymentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OnChainPaymentInfo) GetAmount() string
- func (x *OnChainPaymentInfo) GetResolveDeadline() uint64
- func (*OnChainPaymentInfo) ProtoMessage()
- func (x *OnChainPaymentInfo) ProtoReflect() protoreflect.Message
- func (x *OnChainPaymentInfo) Reset()
- func (x *OnChainPaymentInfo) String() string
- type OpenPaymentChannelRequest
- func (*OpenPaymentChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenPaymentChannelRequest) GetAmount() string
- func (x *OpenPaymentChannelRequest) GetPeerAmount() string
- func (x *OpenPaymentChannelRequest) GetTokenInfo() *TokenInfo
- func (*OpenPaymentChannelRequest) ProtoMessage()
- func (x *OpenPaymentChannelRequest) ProtoReflect() protoreflect.Message
- func (x *OpenPaymentChannelRequest) Reset()
- func (x *OpenPaymentChannelRequest) String() string
- type OutgoingPaymentInfo
- func (*OutgoingPaymentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OutgoingPaymentInfo) GetErrorCode() int64
- func (x *OutgoingPaymentInfo) GetErrorReason() string
- func (x *OutgoingPaymentInfo) GetPayment() *PaymentInfo
- func (*OutgoingPaymentInfo) ProtoMessage()
- func (x *OutgoingPaymentInfo) ProtoReflect() protoreflect.Message
- func (x *OutgoingPaymentInfo) Reset()
- func (x *OutgoingPaymentInfo) String() string
- type PaymentID
- type PaymentInfo
- func (*PaymentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentInfo) GetAmount() string
- func (x *PaymentInfo) GetPaymentId() string
- func (x *PaymentInfo) GetPaymentJson() string
- func (x *PaymentInfo) GetReceiver() string
- func (x *PaymentInfo) GetSender() string
- func (x *PaymentInfo) GetStatus() uint32
- func (x *PaymentInfo) GetTokenInfo() *TokenInfo
- func (*PaymentInfo) ProtoMessage()
- func (x *PaymentInfo) ProtoReflect() protoreflect.Message
- func (x *PaymentInfo) Reset()
- func (x *PaymentInfo) String() string
- type PaymentStatus
- type SendConditionalPaymentRequest
- func (*SendConditionalPaymentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendConditionalPaymentRequest) GetAmount() string
- func (x *SendConditionalPaymentRequest) GetConditions() []*Condition
- func (x *SendConditionalPaymentRequest) GetDestination() string
- func (x *SendConditionalPaymentRequest) GetNote() *anypb.Any
- func (x *SendConditionalPaymentRequest) GetTimeout() uint64
- func (x *SendConditionalPaymentRequest) GetTokenInfo() *TokenInfo
- func (x *SendConditionalPaymentRequest) GetTransferLogicType() entity.TransferFunctionType
- func (*SendConditionalPaymentRequest) ProtoMessage()
- func (x *SendConditionalPaymentRequest) ProtoReflect() protoreflect.Message
- func (x *SendConditionalPaymentRequest) Reset()
- func (x *SendConditionalPaymentRequest) String() string
- type SendTokenRequest
- func (*SendTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendTokenRequest) GetAmount() string
- func (x *SendTokenRequest) GetDestination() string
- func (x *SendTokenRequest) GetNote() *anypb.Any
- func (x *SendTokenRequest) GetTokenInfo() *TokenInfo
- func (*SendTokenRequest) ProtoMessage()
- func (x *SendTokenRequest) ProtoReflect() protoreflect.Message
- func (x *SendTokenRequest) Reset()
- func (x *SendTokenRequest) String() string
- type SessionID
- type SetDelegationRequest
- func (*SetDelegationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetDelegationRequest) GetBlockDuration() int64
- func (x *SetDelegationRequest) GetTokenInfos() []*TokenInfo
- func (*SetDelegationRequest) ProtoMessage()
- func (x *SetDelegationRequest) ProtoReflect() protoreflect.Message
- func (x *SetDelegationRequest) Reset()
- func (x *SetDelegationRequest) String() string
- type SetMsgDropReq
- func (*SetMsgDropReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetMsgDropReq) GetDropRecv() bool
- func (x *SetMsgDropReq) GetDropSend() bool
- func (*SetMsgDropReq) ProtoMessage()
- func (x *SetMsgDropReq) ProtoReflect() protoreflect.Message
- func (x *SetMsgDropReq) Reset()
- func (x *SetMsgDropReq) String() string
- type Signature
- type Timestamp
- type TokenInfo
- func (*TokenInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TokenInfo) GetTokenAddress() string
- func (x *TokenInfo) GetTokenType() entity.TokenType
- func (*TokenInfo) ProtoMessage()
- func (x *TokenInfo) ProtoReflect() protoreflect.Message
- func (x *TokenInfo) Reset()
- func (x *TokenInfo) String() string
- type UnimplementedInternalWebApiServer
- func (UnimplementedInternalWebApiServer) CooperativeWithdrawNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
- func (UnimplementedInternalWebApiServer) DepositNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
- func (UnimplementedInternalWebApiServer) InstantiateTrustedPaymentChannel(context.Context, *TokenInfo) (*ChannelID, error)
- func (UnimplementedInternalWebApiServer) OpenTrustedPaymentChannel(context.Context, *OpenPaymentChannelRequest) (*ChannelID, error)
- type UnimplementedWebApiServer
- func (UnimplementedWebApiServer) ConfirmOnChainResolvedPayments(context.Context, *TokenInfo) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) ConfirmOutgoingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) ConfirmSettlePaymentChannel(context.Context, *TokenInfo) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) ConfirmWithdraw(context.Context, *TokenInfo) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) CooperativeWithdraw(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
- func (UnimplementedWebApiServer) CooperativeWithdrawNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
- func (UnimplementedWebApiServer) CreateAppSessionOnVirtualContract(context.Context, *CreateAppSessionOnVirtualContractRequest) (*SessionID, error)
- func (UnimplementedWebApiServer) DeleteAppSession(context.Context, *SessionID) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) Deposit(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
- func (UnimplementedWebApiServer) DepositNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
- func (UnimplementedWebApiServer) GetBalance(context.Context, *TokenInfo) (*GetBalanceResponse, error)
- func (UnimplementedWebApiServer) GetBlockNumber(context.Context, *emptypb.Empty) (*BlockNumber, error)
- func (UnimplementedWebApiServer) GetBooleanOutcomeForAppSession(context.Context, *GetBooleanOutcomeForAppSessionRequest) (*BooleanOutcome, error)
- func (UnimplementedWebApiServer) GetDeployedAddressForAppSession(context.Context, *SessionID) (*Address, error)
- func (UnimplementedWebApiServer) GetIncomingPaymentInfo(context.Context, *PaymentID) (*PaymentInfo, error)
- func (UnimplementedWebApiServer) GetIncomingPaymentStatus(context.Context, *PaymentID) (*PaymentStatus, error)
- func (UnimplementedWebApiServer) GetOnChainPaymentInfo(context.Context, *PaymentID) (*OnChainPaymentInfo, error)
- func (UnimplementedWebApiServer) GetOutgoingPaymentStatus(context.Context, *PaymentID) (*PaymentStatus, error)
- func (UnimplementedWebApiServer) GetPayHistory(context.Context, *GetPayHistoryRequest) (*GetPayHistoryResponse, error)
- func (UnimplementedWebApiServer) GetPeerFreeBalance(context.Context, *GetPeerFreeBalanceRequest) (*FreeBalance, error)
- func (UnimplementedWebApiServer) GetSettleFinalizedTimeForPaymentChannel(context.Context, *TokenInfo) (*Timestamp, error)
- func (UnimplementedWebApiServer) IntendSettlePaymentChannel(context.Context, *TokenInfo) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) IntendWithdraw(context.Context, *DepositOrWithdrawRequest) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) MonitorCooperativeWithdrawJob(context.Context, *DepositOrWithdrawJob) (*DepositOrWithdrawJob, error)
- func (UnimplementedWebApiServer) MonitorDepositJob(context.Context, *DepositOrWithdrawJob) (*DepositOrWithdrawJob, error)
- func (UnimplementedWebApiServer) OpenPaymentChannel(context.Context, *OpenPaymentChannelRequest) (*ChannelID, error)
- func (UnimplementedWebApiServer) RejectIncomingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) ResolveIncomingPaymentOnChain(context.Context, *PaymentID) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) SendConditionalPayment(context.Context, *SendConditionalPaymentRequest) (*PaymentID, error)
- func (UnimplementedWebApiServer) SendToken(context.Context, *SendTokenRequest) (*PaymentID, error)
- func (UnimplementedWebApiServer) SetDelegation(context.Context, *SetDelegationRequest) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) SetMsgDropper(context.Context, *SetMsgDropReq) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) SettleExpiredPayments(context.Context, *TokenInfo) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) SettleOnChainResolvedIncomingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) SignData(context.Context, *Data) (*Signature, error)
- func (UnimplementedWebApiServer) SubscribeIncomingPayments(*emptypb.Empty, WebApi_SubscribeIncomingPaymentsServer) error
- func (UnimplementedWebApiServer) SubscribeOutgoingPayments(*emptypb.Empty, WebApi_SubscribeOutgoingPaymentsServer) error
- func (UnimplementedWebApiServer) SyncOnChainPaymentChannelStatus(context.Context, *TokenInfo) (*emptypb.Empty, error)
- func (UnimplementedWebApiServer) SyncStateWithPeer(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- type UnsafeInternalWebApiServer
- type UnsafeWebApiServer
- type WebApiClient
- type WebApiServer
- type WebApi_SubscribeIncomingPaymentsClient
- type WebApi_SubscribeIncomingPaymentsServer
- type WebApi_SubscribeOutgoingPaymentsClient
- type WebApi_SubscribeOutgoingPaymentsServer
Constants ¶
This section is empty.
Variables ¶
var File_internal_web_api_proto protoreflect.FileDescriptor
var File_web_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterInternalWebApiServer ¶
func RegisterInternalWebApiServer(s *grpc.Server, srv InternalWebApiServer)
func RegisterWebApiServer ¶
func RegisterWebApiServer(s *grpc.Server, srv WebApiServer)
Types ¶
type Address ¶
type Address struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*Address) Descriptor
deprecated
func (*Address) GetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶ added in v1.1.0
func (x *Address) ProtoReflect() protoreflect.Message
type BlockNumber ¶
type BlockNumber struct {
BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
// contains filtered or unexported fields
}
func (*BlockNumber) Descriptor
deprecated
func (*BlockNumber) Descriptor() ([]byte, []int)
Deprecated: Use BlockNumber.ProtoReflect.Descriptor instead.
func (*BlockNumber) GetBlockNumber ¶
func (x *BlockNumber) GetBlockNumber() uint64
func (*BlockNumber) ProtoMessage ¶
func (*BlockNumber) ProtoMessage()
func (*BlockNumber) ProtoReflect ¶ added in v1.1.0
func (x *BlockNumber) ProtoReflect() protoreflect.Message
func (*BlockNumber) Reset ¶
func (x *BlockNumber) Reset()
func (*BlockNumber) String ¶
func (x *BlockNumber) String() string
type BooleanOutcome ¶
type BooleanOutcome struct {
Finalized bool `protobuf:"varint,1,opt,name=finalized,proto3" json:"finalized,omitempty"`
Outcome bool `protobuf:"varint,2,opt,name=outcome,proto3" json:"outcome,omitempty"`
// contains filtered or unexported fields
}
func (*BooleanOutcome) Descriptor
deprecated
func (*BooleanOutcome) Descriptor() ([]byte, []int)
Deprecated: Use BooleanOutcome.ProtoReflect.Descriptor instead.
func (*BooleanOutcome) GetFinalized ¶
func (x *BooleanOutcome) GetFinalized() bool
func (*BooleanOutcome) GetOutcome ¶
func (x *BooleanOutcome) GetOutcome() bool
func (*BooleanOutcome) ProtoMessage ¶
func (*BooleanOutcome) ProtoMessage()
func (*BooleanOutcome) ProtoReflect ¶ added in v1.1.0
func (x *BooleanOutcome) ProtoReflect() protoreflect.Message
func (*BooleanOutcome) Reset ¶
func (x *BooleanOutcome) Reset()
func (*BooleanOutcome) String ¶
func (x *BooleanOutcome) String() string
type ChannelID ¶
type ChannelID struct {
ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
// contains filtered or unexported fields
}
func (*ChannelID) Descriptor
deprecated
func (*ChannelID) GetChannelId ¶
func (*ChannelID) ProtoMessage ¶
func (*ChannelID) ProtoMessage()
func (*ChannelID) ProtoReflect ¶ added in v1.1.0
func (x *ChannelID) ProtoReflect() protoreflect.Message
type Condition ¶
type Condition struct {
OnChainDeployed bool `protobuf:"varint,1,opt,name=on_chain_deployed,json=onChainDeployed,proto3" json:"on_chain_deployed,omitempty"`
ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
IsFinalizedArgs []byte `protobuf:"bytes,3,opt,name=is_finalized_args,json=isFinalizedArgs,proto3" json:"is_finalized_args,omitempty"`
GetOutcomeArgs []byte `protobuf:"bytes,4,opt,name=get_outcome_args,json=getOutcomeArgs,proto3" json:"get_outcome_args,omitempty"`
// contains filtered or unexported fields
}
func (*Condition) Descriptor
deprecated
func (*Condition) GetContractAddress ¶
func (*Condition) GetGetOutcomeArgs ¶
func (*Condition) GetIsFinalizedArgs ¶
func (*Condition) GetOnChainDeployed ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶ added in v1.1.0
func (x *Condition) ProtoReflect() protoreflect.Message
type CreateAppSessionOnVirtualContractRequest ¶
type CreateAppSessionOnVirtualContractRequest struct {
ContractBin string `protobuf:"bytes,1,opt,name=contract_bin,json=contractBin,proto3" json:"contract_bin,omitempty"`
ContractConstructor string `protobuf:"bytes,2,opt,name=contract_constructor,json=contractConstructor,proto3" json:"contract_constructor,omitempty"`
Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
// contains filtered or unexported fields
}
func (*CreateAppSessionOnVirtualContractRequest) Descriptor
deprecated
func (*CreateAppSessionOnVirtualContractRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAppSessionOnVirtualContractRequest.ProtoReflect.Descriptor instead.
func (*CreateAppSessionOnVirtualContractRequest) GetContractBin ¶
func (x *CreateAppSessionOnVirtualContractRequest) GetContractBin() string
func (*CreateAppSessionOnVirtualContractRequest) GetContractConstructor ¶
func (x *CreateAppSessionOnVirtualContractRequest) GetContractConstructor() string
func (*CreateAppSessionOnVirtualContractRequest) GetNonce ¶
func (x *CreateAppSessionOnVirtualContractRequest) GetNonce() uint64
func (*CreateAppSessionOnVirtualContractRequest) ProtoMessage ¶
func (*CreateAppSessionOnVirtualContractRequest) ProtoMessage()
func (*CreateAppSessionOnVirtualContractRequest) ProtoReflect ¶ added in v1.1.0
func (x *CreateAppSessionOnVirtualContractRequest) ProtoReflect() protoreflect.Message
func (*CreateAppSessionOnVirtualContractRequest) Reset ¶
func (x *CreateAppSessionOnVirtualContractRequest) Reset()
func (*CreateAppSessionOnVirtualContractRequest) String ¶
func (x *CreateAppSessionOnVirtualContractRequest) String() string
type Data ¶
type Data struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶ added in v1.1.0
func (x *Data) ProtoReflect() protoreflect.Message
type DepositOrWithdrawJob ¶
type DepositOrWithdrawJob struct {
JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"`
TxHash string `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
// contains filtered or unexported fields
}
func (*DepositOrWithdrawJob) Descriptor
deprecated
func (*DepositOrWithdrawJob) Descriptor() ([]byte, []int)
Deprecated: Use DepositOrWithdrawJob.ProtoReflect.Descriptor instead.
func (*DepositOrWithdrawJob) GetJobId ¶
func (x *DepositOrWithdrawJob) GetJobId() string
func (*DepositOrWithdrawJob) GetTxHash ¶
func (x *DepositOrWithdrawJob) GetTxHash() string
func (*DepositOrWithdrawJob) ProtoMessage ¶
func (*DepositOrWithdrawJob) ProtoMessage()
func (*DepositOrWithdrawJob) ProtoReflect ¶ added in v1.1.0
func (x *DepositOrWithdrawJob) ProtoReflect() protoreflect.Message
func (*DepositOrWithdrawJob) Reset ¶
func (x *DepositOrWithdrawJob) Reset()
func (*DepositOrWithdrawJob) String ¶
func (x *DepositOrWithdrawJob) String() string
type DepositOrWithdrawRequest ¶
type DepositOrWithdrawRequest struct {
TokenInfo *TokenInfo `protobuf:"bytes,1,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
// contains filtered or unexported fields
}
func (*DepositOrWithdrawRequest) Descriptor
deprecated
func (*DepositOrWithdrawRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepositOrWithdrawRequest.ProtoReflect.Descriptor instead.
func (*DepositOrWithdrawRequest) GetAmount ¶
func (x *DepositOrWithdrawRequest) GetAmount() string
func (*DepositOrWithdrawRequest) GetTokenInfo ¶
func (x *DepositOrWithdrawRequest) GetTokenInfo() *TokenInfo
func (*DepositOrWithdrawRequest) ProtoMessage ¶
func (*DepositOrWithdrawRequest) ProtoMessage()
func (*DepositOrWithdrawRequest) ProtoReflect ¶ added in v1.1.0
func (x *DepositOrWithdrawRequest) ProtoReflect() protoreflect.Message
func (*DepositOrWithdrawRequest) Reset ¶
func (x *DepositOrWithdrawRequest) Reset()
func (*DepositOrWithdrawRequest) String ¶
func (x *DepositOrWithdrawRequest) String() string
type FreeBalance ¶
type FreeBalance struct {
FreeBalance string `protobuf:"bytes,1,opt,name=free_balance,json=freeBalance,proto3" json:"free_balance,omitempty"`
JoinStatus int32 `protobuf:"varint,2,opt,name=join_status,json=joinStatus,proto3" json:"join_status,omitempty"`
// contains filtered or unexported fields
}
func (*FreeBalance) Descriptor
deprecated
func (*FreeBalance) Descriptor() ([]byte, []int)
Deprecated: Use FreeBalance.ProtoReflect.Descriptor instead.
func (*FreeBalance) GetFreeBalance ¶
func (x *FreeBalance) GetFreeBalance() string
func (*FreeBalance) GetJoinStatus ¶
func (x *FreeBalance) GetJoinStatus() int32
func (*FreeBalance) ProtoMessage ¶
func (*FreeBalance) ProtoMessage()
func (*FreeBalance) ProtoReflect ¶ added in v1.1.0
func (x *FreeBalance) ProtoReflect() protoreflect.Message
func (*FreeBalance) Reset ¶
func (x *FreeBalance) Reset()
func (*FreeBalance) String ¶
func (x *FreeBalance) String() string
type GetBalanceResponse ¶
type GetBalanceResponse struct {
FreeBalance string `protobuf:"bytes,1,opt,name=free_balance,json=freeBalance,proto3" json:"free_balance,omitempty"`
LockedBalance string `protobuf:"bytes,2,opt,name=locked_balance,json=lockedBalance,proto3" json:"locked_balance,omitempty"`
ReceivingCapacity string `protobuf:"bytes,3,opt,name=receiving_capacity,json=receivingCapacity,proto3" json:"receiving_capacity,omitempty"`
// contains filtered or unexported fields
}
func (*GetBalanceResponse) Descriptor
deprecated
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
func (*GetBalanceResponse) GetFreeBalance ¶
func (x *GetBalanceResponse) GetFreeBalance() string
func (*GetBalanceResponse) GetLockedBalance ¶
func (x *GetBalanceResponse) GetLockedBalance() string
func (*GetBalanceResponse) GetReceivingCapacity ¶
func (x *GetBalanceResponse) GetReceivingCapacity() string
func (*GetBalanceResponse) ProtoMessage ¶
func (*GetBalanceResponse) ProtoMessage()
func (*GetBalanceResponse) ProtoReflect ¶ added in v1.1.0
func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message
func (*GetBalanceResponse) Reset ¶
func (x *GetBalanceResponse) Reset()
func (*GetBalanceResponse) String ¶
func (x *GetBalanceResponse) String() string
type GetBooleanOutcomeForAppSessionRequest ¶
type GetBooleanOutcomeForAppSessionRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Query []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// contains filtered or unexported fields
}
func (*GetBooleanOutcomeForAppSessionRequest) Descriptor
deprecated
func (*GetBooleanOutcomeForAppSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBooleanOutcomeForAppSessionRequest.ProtoReflect.Descriptor instead.
func (*GetBooleanOutcomeForAppSessionRequest) GetQuery ¶
func (x *GetBooleanOutcomeForAppSessionRequest) GetQuery() []byte
func (*GetBooleanOutcomeForAppSessionRequest) GetSessionId ¶
func (x *GetBooleanOutcomeForAppSessionRequest) GetSessionId() string
func (*GetBooleanOutcomeForAppSessionRequest) ProtoMessage ¶
func (*GetBooleanOutcomeForAppSessionRequest) ProtoMessage()
func (*GetBooleanOutcomeForAppSessionRequest) ProtoReflect ¶ added in v1.1.0
func (x *GetBooleanOutcomeForAppSessionRequest) ProtoReflect() protoreflect.Message
func (*GetBooleanOutcomeForAppSessionRequest) Reset ¶
func (x *GetBooleanOutcomeForAppSessionRequest) Reset()
func (*GetBooleanOutcomeForAppSessionRequest) String ¶
func (x *GetBooleanOutcomeForAppSessionRequest) String() string
type GetPayHistoryRequest ¶
type GetPayHistoryRequest struct {
FromStart bool `protobuf:"varint,1,opt,name=from_start,json=fromStart,proto3" json:"from_start,omitempty"`
ItemsPerPage int32 `protobuf:"varint,2,opt,name=itemsPerPage,proto3" json:"itemsPerPage,omitempty"`
// contains filtered or unexported fields
}
Next tag: 3
func (*GetPayHistoryRequest) Descriptor
deprecated
func (*GetPayHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPayHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetPayHistoryRequest) GetFromStart ¶
func (x *GetPayHistoryRequest) GetFromStart() bool
func (*GetPayHistoryRequest) GetItemsPerPage ¶
func (x *GetPayHistoryRequest) GetItemsPerPage() int32
func (*GetPayHistoryRequest) ProtoMessage ¶
func (*GetPayHistoryRequest) ProtoMessage()
func (*GetPayHistoryRequest) ProtoReflect ¶ added in v1.1.0
func (x *GetPayHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetPayHistoryRequest) Reset ¶
func (x *GetPayHistoryRequest) Reset()
func (*GetPayHistoryRequest) String ¶
func (x *GetPayHistoryRequest) String() string
type GetPayHistoryResponse ¶
type GetPayHistoryResponse struct {
Pays []*rpc.OneHistoricalPay `protobuf:"bytes,1,rep,name=pays,proto3" json:"pays,omitempty"`
HasMoreResult bool `protobuf:"varint,2,opt,name=has_more_result,json=hasMoreResult,proto3" json:"has_more_result,omitempty"`
// contains filtered or unexported fields
}
Next tag: 3
func (*GetPayHistoryResponse) Descriptor
deprecated
func (*GetPayHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPayHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetPayHistoryResponse) GetHasMoreResult ¶
func (x *GetPayHistoryResponse) GetHasMoreResult() bool
func (*GetPayHistoryResponse) GetPays ¶
func (x *GetPayHistoryResponse) GetPays() []*rpc.OneHistoricalPay
func (*GetPayHistoryResponse) ProtoMessage ¶
func (*GetPayHistoryResponse) ProtoMessage()
func (*GetPayHistoryResponse) ProtoReflect ¶ added in v1.1.0
func (x *GetPayHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetPayHistoryResponse) Reset ¶
func (x *GetPayHistoryResponse) Reset()
func (*GetPayHistoryResponse) String ¶
func (x *GetPayHistoryResponse) String() string
type GetPeerFreeBalanceRequest ¶
type GetPeerFreeBalanceRequest struct {
TokenInfo *TokenInfo `protobuf:"bytes,1,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"`
PeerAddress string `protobuf:"bytes,2,opt,name=peer_address,json=peerAddress,proto3" json:"peer_address,omitempty"`
// contains filtered or unexported fields
}
func (*GetPeerFreeBalanceRequest) Descriptor
deprecated
func (*GetPeerFreeBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPeerFreeBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetPeerFreeBalanceRequest) GetPeerAddress ¶
func (x *GetPeerFreeBalanceRequest) GetPeerAddress() string
func (*GetPeerFreeBalanceRequest) GetTokenInfo ¶
func (x *GetPeerFreeBalanceRequest) GetTokenInfo() *TokenInfo
func (*GetPeerFreeBalanceRequest) ProtoMessage ¶
func (*GetPeerFreeBalanceRequest) ProtoMessage()
func (*GetPeerFreeBalanceRequest) ProtoReflect ¶ added in v1.1.0
func (x *GetPeerFreeBalanceRequest) ProtoReflect() protoreflect.Message
func (*GetPeerFreeBalanceRequest) Reset ¶
func (x *GetPeerFreeBalanceRequest) Reset()
func (*GetPeerFreeBalanceRequest) String ¶
func (x *GetPeerFreeBalanceRequest) String() string
type InternalWebApiClient ¶
type InternalWebApiClient interface {
OpenTrustedPaymentChannel(ctx context.Context, in *OpenPaymentChannelRequest, opts ...grpc.CallOption) (*ChannelID, error)
InstantiateTrustedPaymentChannel(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*ChannelID, error)
DepositNonBlocking(ctx context.Context, in *DepositOrWithdrawRequest, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
CooperativeWithdrawNonBlocking(ctx context.Context, in *DepositOrWithdrawRequest, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
}
InternalWebApiClient is the client API for InternalWebApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewInternalWebApiClient ¶
func NewInternalWebApiClient(cc grpc.ClientConnInterface) InternalWebApiClient
type InternalWebApiServer ¶
type InternalWebApiServer interface {
OpenTrustedPaymentChannel(context.Context, *OpenPaymentChannelRequest) (*ChannelID, error)
InstantiateTrustedPaymentChannel(context.Context, *TokenInfo) (*ChannelID, error)
DepositNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
CooperativeWithdrawNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
}
InternalWebApiServer is the server API for InternalWebApi service. All implementations should embed UnimplementedInternalWebApiServer for forward compatibility
type OnChainPaymentInfo ¶
type OnChainPaymentInfo struct {
Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
ResolveDeadline uint64 `protobuf:"varint,2,opt,name=resolve_deadline,json=resolveDeadline,proto3" json:"resolve_deadline,omitempty"`
// contains filtered or unexported fields
}
func (*OnChainPaymentInfo) Descriptor
deprecated
func (*OnChainPaymentInfo) Descriptor() ([]byte, []int)
Deprecated: Use OnChainPaymentInfo.ProtoReflect.Descriptor instead.
func (*OnChainPaymentInfo) GetAmount ¶
func (x *OnChainPaymentInfo) GetAmount() string
func (*OnChainPaymentInfo) GetResolveDeadline ¶
func (x *OnChainPaymentInfo) GetResolveDeadline() uint64
func (*OnChainPaymentInfo) ProtoMessage ¶
func (*OnChainPaymentInfo) ProtoMessage()
func (*OnChainPaymentInfo) ProtoReflect ¶ added in v1.1.0
func (x *OnChainPaymentInfo) ProtoReflect() protoreflect.Message
func (*OnChainPaymentInfo) Reset ¶
func (x *OnChainPaymentInfo) Reset()
func (*OnChainPaymentInfo) String ¶
func (x *OnChainPaymentInfo) String() string
type OpenPaymentChannelRequest ¶
type OpenPaymentChannelRequest struct {
TokenInfo *TokenInfo `protobuf:"bytes,1,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
PeerAmount string `protobuf:"bytes,3,opt,name=peer_amount,json=peerAmount,proto3" json:"peer_amount,omitempty"`
// contains filtered or unexported fields
}
func (*OpenPaymentChannelRequest) Descriptor
deprecated
func (*OpenPaymentChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenPaymentChannelRequest.ProtoReflect.Descriptor instead.
func (*OpenPaymentChannelRequest) GetAmount ¶
func (x *OpenPaymentChannelRequest) GetAmount() string
func (*OpenPaymentChannelRequest) GetPeerAmount ¶
func (x *OpenPaymentChannelRequest) GetPeerAmount() string
func (*OpenPaymentChannelRequest) GetTokenInfo ¶
func (x *OpenPaymentChannelRequest) GetTokenInfo() *TokenInfo
func (*OpenPaymentChannelRequest) ProtoMessage ¶
func (*OpenPaymentChannelRequest) ProtoMessage()
func (*OpenPaymentChannelRequest) ProtoReflect ¶ added in v1.1.0
func (x *OpenPaymentChannelRequest) ProtoReflect() protoreflect.Message
func (*OpenPaymentChannelRequest) Reset ¶
func (x *OpenPaymentChannelRequest) Reset()
func (*OpenPaymentChannelRequest) String ¶
func (x *OpenPaymentChannelRequest) String() string
type OutgoingPaymentInfo ¶
type OutgoingPaymentInfo struct {
Payment *PaymentInfo `protobuf:"bytes,1,opt,name=payment,proto3" json:"payment,omitempty"`
ErrorReason string `protobuf:"bytes,2,opt,name=error_reason,json=errorReason,proto3" json:"error_reason,omitempty"`
ErrorCode int64 `protobuf:"varint,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
// contains filtered or unexported fields
}
func (*OutgoingPaymentInfo) Descriptor
deprecated
func (*OutgoingPaymentInfo) Descriptor() ([]byte, []int)
Deprecated: Use OutgoingPaymentInfo.ProtoReflect.Descriptor instead.
func (*OutgoingPaymentInfo) GetErrorCode ¶
func (x *OutgoingPaymentInfo) GetErrorCode() int64
func (*OutgoingPaymentInfo) GetErrorReason ¶
func (x *OutgoingPaymentInfo) GetErrorReason() string
func (*OutgoingPaymentInfo) GetPayment ¶
func (x *OutgoingPaymentInfo) GetPayment() *PaymentInfo
func (*OutgoingPaymentInfo) ProtoMessage ¶
func (*OutgoingPaymentInfo) ProtoMessage()
func (*OutgoingPaymentInfo) ProtoReflect ¶ added in v1.1.0
func (x *OutgoingPaymentInfo) ProtoReflect() protoreflect.Message
func (*OutgoingPaymentInfo) Reset ¶
func (x *OutgoingPaymentInfo) Reset()
func (*OutgoingPaymentInfo) String ¶
func (x *OutgoingPaymentInfo) String() string
type PaymentID ¶
type PaymentID struct {
PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
// contains filtered or unexported fields
}
func (*PaymentID) Descriptor
deprecated
func (*PaymentID) GetPaymentId ¶
func (*PaymentID) ProtoMessage ¶
func (*PaymentID) ProtoMessage()
func (*PaymentID) ProtoReflect ¶ added in v1.1.0
func (x *PaymentID) ProtoReflect() protoreflect.Message
type PaymentInfo ¶
type PaymentInfo struct {
PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
TokenInfo *TokenInfo `protobuf:"bytes,4,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"`
Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
PaymentJson string `protobuf:"bytes,6,opt,name=payment_json,json=paymentJson,proto3" json:"payment_json,omitempty"`
Status uint32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*PaymentInfo) Descriptor
deprecated
func (*PaymentInfo) Descriptor() ([]byte, []int)
Deprecated: Use PaymentInfo.ProtoReflect.Descriptor instead.
func (*PaymentInfo) GetAmount ¶
func (x *PaymentInfo) GetAmount() string
func (*PaymentInfo) GetPaymentId ¶
func (x *PaymentInfo) GetPaymentId() string
func (*PaymentInfo) GetPaymentJson ¶
func (x *PaymentInfo) GetPaymentJson() string
func (*PaymentInfo) GetReceiver ¶
func (x *PaymentInfo) GetReceiver() string
func (*PaymentInfo) GetSender ¶
func (x *PaymentInfo) GetSender() string
func (*PaymentInfo) GetStatus ¶
func (x *PaymentInfo) GetStatus() uint32
func (*PaymentInfo) GetTokenInfo ¶
func (x *PaymentInfo) GetTokenInfo() *TokenInfo
func (*PaymentInfo) ProtoMessage ¶
func (*PaymentInfo) ProtoMessage()
func (*PaymentInfo) ProtoReflect ¶ added in v1.1.0
func (x *PaymentInfo) ProtoReflect() protoreflect.Message
func (*PaymentInfo) Reset ¶
func (x *PaymentInfo) Reset()
func (*PaymentInfo) String ¶
func (x *PaymentInfo) String() string
type PaymentStatus ¶
type PaymentStatus struct {
Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*PaymentStatus) Descriptor
deprecated
func (*PaymentStatus) Descriptor() ([]byte, []int)
Deprecated: Use PaymentStatus.ProtoReflect.Descriptor instead.
func (*PaymentStatus) GetStatus ¶
func (x *PaymentStatus) GetStatus() uint32
func (*PaymentStatus) ProtoMessage ¶
func (*PaymentStatus) ProtoMessage()
func (*PaymentStatus) ProtoReflect ¶ added in v1.1.0
func (x *PaymentStatus) ProtoReflect() protoreflect.Message
func (*PaymentStatus) Reset ¶
func (x *PaymentStatus) Reset()
func (*PaymentStatus) String ¶
func (x *PaymentStatus) String() string
type SendConditionalPaymentRequest ¶
type SendConditionalPaymentRequest struct {
TokenInfo *TokenInfo `protobuf:"bytes,1,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
Destination string `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
TransferLogicType entity.TransferFunctionType `` /* 148-byte string literal not displayed */
// Empty conditions means the caller is not supplying any app-level conditions.
// The runtime may still prepend an internal hash-lock condition for non-direct pays.
Conditions []*Condition `protobuf:"bytes,5,rep,name=conditions,proto3" json:"conditions,omitempty"`
Timeout uint64 `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
Note *anypb.Any `protobuf:"bytes,7,opt,name=note,proto3" json:"note,omitempty"`
// contains filtered or unexported fields
}
func (*SendConditionalPaymentRequest) Descriptor
deprecated
func (*SendConditionalPaymentRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendConditionalPaymentRequest.ProtoReflect.Descriptor instead.
func (*SendConditionalPaymentRequest) GetAmount ¶
func (x *SendConditionalPaymentRequest) GetAmount() string
func (*SendConditionalPaymentRequest) GetConditions ¶
func (x *SendConditionalPaymentRequest) GetConditions() []*Condition
func (*SendConditionalPaymentRequest) GetDestination ¶
func (x *SendConditionalPaymentRequest) GetDestination() string
func (*SendConditionalPaymentRequest) GetNote ¶
func (x *SendConditionalPaymentRequest) GetNote() *anypb.Any
func (*SendConditionalPaymentRequest) GetTimeout ¶
func (x *SendConditionalPaymentRequest) GetTimeout() uint64
func (*SendConditionalPaymentRequest) GetTokenInfo ¶
func (x *SendConditionalPaymentRequest) GetTokenInfo() *TokenInfo
func (*SendConditionalPaymentRequest) GetTransferLogicType ¶
func (x *SendConditionalPaymentRequest) GetTransferLogicType() entity.TransferFunctionType
func (*SendConditionalPaymentRequest) ProtoMessage ¶
func (*SendConditionalPaymentRequest) ProtoMessage()
func (*SendConditionalPaymentRequest) ProtoReflect ¶ added in v1.1.0
func (x *SendConditionalPaymentRequest) ProtoReflect() protoreflect.Message
func (*SendConditionalPaymentRequest) Reset ¶
func (x *SendConditionalPaymentRequest) Reset()
func (*SendConditionalPaymentRequest) String ¶
func (x *SendConditionalPaymentRequest) String() string
type SendTokenRequest ¶ added in v1.1.0
type SendTokenRequest struct {
TokenInfo *TokenInfo `protobuf:"bytes,1,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"`
Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
Destination string `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
Note *anypb.Any `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
// contains filtered or unexported fields
}
func (*SendTokenRequest) Descriptor
deprecated
added in
v1.1.0
func (*SendTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendTokenRequest.ProtoReflect.Descriptor instead.
func (*SendTokenRequest) GetAmount ¶ added in v1.1.0
func (x *SendTokenRequest) GetAmount() string
func (*SendTokenRequest) GetDestination ¶ added in v1.1.0
func (x *SendTokenRequest) GetDestination() string
func (*SendTokenRequest) GetNote ¶ added in v1.1.0
func (x *SendTokenRequest) GetNote() *anypb.Any
func (*SendTokenRequest) GetTokenInfo ¶ added in v1.1.0
func (x *SendTokenRequest) GetTokenInfo() *TokenInfo
func (*SendTokenRequest) ProtoMessage ¶ added in v1.1.0
func (*SendTokenRequest) ProtoMessage()
func (*SendTokenRequest) ProtoReflect ¶ added in v1.1.0
func (x *SendTokenRequest) ProtoReflect() protoreflect.Message
func (*SendTokenRequest) Reset ¶ added in v1.1.0
func (x *SendTokenRequest) Reset()
func (*SendTokenRequest) String ¶ added in v1.1.0
func (x *SendTokenRequest) String() string
type SessionID ¶
type SessionID struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// contains filtered or unexported fields
}
func (*SessionID) Descriptor
deprecated
func (*SessionID) GetSessionId ¶
func (*SessionID) ProtoMessage ¶
func (*SessionID) ProtoMessage()
func (*SessionID) ProtoReflect ¶ added in v1.1.0
func (x *SessionID) ProtoReflect() protoreflect.Message
type SetDelegationRequest ¶
type SetDelegationRequest struct {
TokenInfos []*TokenInfo `protobuf:"bytes,1,rep,name=token_infos,json=tokenInfos,proto3" json:"token_infos,omitempty"`
BlockDuration int64 `protobuf:"varint,2,opt,name=block_duration,json=blockDuration,proto3" json:"block_duration,omitempty"`
// contains filtered or unexported fields
}
func (*SetDelegationRequest) Descriptor
deprecated
func (*SetDelegationRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetDelegationRequest.ProtoReflect.Descriptor instead.
func (*SetDelegationRequest) GetBlockDuration ¶
func (x *SetDelegationRequest) GetBlockDuration() int64
func (*SetDelegationRequest) GetTokenInfos ¶
func (x *SetDelegationRequest) GetTokenInfos() []*TokenInfo
func (*SetDelegationRequest) ProtoMessage ¶
func (*SetDelegationRequest) ProtoMessage()
func (*SetDelegationRequest) ProtoReflect ¶ added in v1.1.0
func (x *SetDelegationRequest) ProtoReflect() protoreflect.Message
func (*SetDelegationRequest) Reset ¶
func (x *SetDelegationRequest) Reset()
func (*SetDelegationRequest) String ¶
func (x *SetDelegationRequest) String() string
type SetMsgDropReq ¶
type SetMsgDropReq struct {
DropRecv bool `protobuf:"varint,1,opt,name=drop_recv,json=dropRecv,proto3" json:"drop_recv,omitempty"`
DropSend bool `protobuf:"varint,2,opt,name=drop_send,json=dropSend,proto3" json:"drop_send,omitempty"`
// contains filtered or unexported fields
}
func (*SetMsgDropReq) Descriptor
deprecated
func (*SetMsgDropReq) Descriptor() ([]byte, []int)
Deprecated: Use SetMsgDropReq.ProtoReflect.Descriptor instead.
func (*SetMsgDropReq) GetDropRecv ¶
func (x *SetMsgDropReq) GetDropRecv() bool
func (*SetMsgDropReq) GetDropSend ¶
func (x *SetMsgDropReq) GetDropSend() bool
func (*SetMsgDropReq) ProtoMessage ¶
func (*SetMsgDropReq) ProtoMessage()
func (*SetMsgDropReq) ProtoReflect ¶ added in v1.1.0
func (x *SetMsgDropReq) ProtoReflect() protoreflect.Message
func (*SetMsgDropReq) Reset ¶
func (x *SetMsgDropReq) Reset()
func (*SetMsgDropReq) String ¶
func (x *SetMsgDropReq) String() string
type Signature ¶
type Signature struct {
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
func (*Signature) Descriptor
deprecated
func (*Signature) GetSignature ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶ added in v1.1.0
func (x *Signature) ProtoReflect() protoreflect.Message
type Timestamp ¶ added in v1.2.0
type Timestamp struct {
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
func (*Timestamp) Descriptor
deprecated
added in
v1.2.0
func (*Timestamp) GetTimestamp ¶ added in v1.2.0
func (*Timestamp) ProtoMessage ¶ added in v1.2.0
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶ added in v1.2.0
func (x *Timestamp) ProtoReflect() protoreflect.Message
type TokenInfo ¶
type TokenInfo struct {
TokenType entity.TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=entity.TokenType" json:"token_type,omitempty"`
TokenAddress string `protobuf:"bytes,2,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
// contains filtered or unexported fields
}
func (*TokenInfo) Descriptor
deprecated
func (*TokenInfo) GetTokenAddress ¶
func (*TokenInfo) GetTokenType ¶
func (*TokenInfo) ProtoMessage ¶
func (*TokenInfo) ProtoMessage()
func (*TokenInfo) ProtoReflect ¶ added in v1.1.0
func (x *TokenInfo) ProtoReflect() protoreflect.Message
type UnimplementedInternalWebApiServer ¶ added in v1.1.0
type UnimplementedInternalWebApiServer struct {
}
UnimplementedInternalWebApiServer should be embedded to have forward compatible implementations.
func (UnimplementedInternalWebApiServer) CooperativeWithdrawNonBlocking ¶ added in v1.1.0
func (UnimplementedInternalWebApiServer) CooperativeWithdrawNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
func (UnimplementedInternalWebApiServer) DepositNonBlocking ¶ added in v1.1.0
func (UnimplementedInternalWebApiServer) DepositNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
func (UnimplementedInternalWebApiServer) InstantiateTrustedPaymentChannel ¶ added in v1.1.0
func (UnimplementedInternalWebApiServer) OpenTrustedPaymentChannel ¶ added in v1.1.0
func (UnimplementedInternalWebApiServer) OpenTrustedPaymentChannel(context.Context, *OpenPaymentChannelRequest) (*ChannelID, error)
type UnimplementedWebApiServer ¶ added in v1.1.0
type UnimplementedWebApiServer struct {
}
UnimplementedWebApiServer must be embedded to have forward compatible implementations.
func (UnimplementedWebApiServer) ConfirmOnChainResolvedPayments ¶ added in v1.1.0
func (UnimplementedWebApiServer) ConfirmOutgoingPayment ¶ added in v1.1.0
func (UnimplementedWebApiServer) ConfirmSettlePaymentChannel ¶ added in v1.1.0
func (UnimplementedWebApiServer) ConfirmWithdraw ¶ added in v1.1.0
func (UnimplementedWebApiServer) CooperativeWithdraw ¶ added in v1.1.0
func (UnimplementedWebApiServer) CooperativeWithdraw(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
func (UnimplementedWebApiServer) CooperativeWithdrawNonBlocking ¶ added in v1.1.0
func (UnimplementedWebApiServer) CooperativeWithdrawNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
func (UnimplementedWebApiServer) CreateAppSessionOnVirtualContract ¶ added in v1.1.0
func (UnimplementedWebApiServer) CreateAppSessionOnVirtualContract(context.Context, *CreateAppSessionOnVirtualContractRequest) (*SessionID, error)
func (UnimplementedWebApiServer) DeleteAppSession ¶ added in v1.1.0
func (UnimplementedWebApiServer) Deposit ¶ added in v1.1.0
func (UnimplementedWebApiServer) Deposit(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
func (UnimplementedWebApiServer) DepositNonBlocking ¶ added in v1.1.0
func (UnimplementedWebApiServer) DepositNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
func (UnimplementedWebApiServer) GetBalance ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetBalance(context.Context, *TokenInfo) (*GetBalanceResponse, error)
func (UnimplementedWebApiServer) GetBlockNumber ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetBlockNumber(context.Context, *emptypb.Empty) (*BlockNumber, error)
func (UnimplementedWebApiServer) GetBooleanOutcomeForAppSession ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetBooleanOutcomeForAppSession(context.Context, *GetBooleanOutcomeForAppSessionRequest) (*BooleanOutcome, error)
func (UnimplementedWebApiServer) GetDeployedAddressForAppSession ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetIncomingPaymentInfo ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetIncomingPaymentInfo(context.Context, *PaymentID) (*PaymentInfo, error)
func (UnimplementedWebApiServer) GetIncomingPaymentStatus ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetIncomingPaymentStatus(context.Context, *PaymentID) (*PaymentStatus, error)
func (UnimplementedWebApiServer) GetOnChainPaymentInfo ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetOnChainPaymentInfo(context.Context, *PaymentID) (*OnChainPaymentInfo, error)
func (UnimplementedWebApiServer) GetOutgoingPaymentStatus ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetOutgoingPaymentStatus(context.Context, *PaymentID) (*PaymentStatus, error)
func (UnimplementedWebApiServer) GetPayHistory ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetPayHistory(context.Context, *GetPayHistoryRequest) (*GetPayHistoryResponse, error)
func (UnimplementedWebApiServer) GetPeerFreeBalance ¶ added in v1.1.0
func (UnimplementedWebApiServer) GetPeerFreeBalance(context.Context, *GetPeerFreeBalanceRequest) (*FreeBalance, error)
func (UnimplementedWebApiServer) GetSettleFinalizedTimeForPaymentChannel ¶ added in v1.1.0
func (UnimplementedWebApiServer) IntendSettlePaymentChannel ¶ added in v1.1.0
func (UnimplementedWebApiServer) IntendWithdraw ¶ added in v1.1.0
func (UnimplementedWebApiServer) IntendWithdraw(context.Context, *DepositOrWithdrawRequest) (*emptypb.Empty, error)
func (UnimplementedWebApiServer) MonitorCooperativeWithdrawJob ¶ added in v1.1.0
func (UnimplementedWebApiServer) MonitorCooperativeWithdrawJob(context.Context, *DepositOrWithdrawJob) (*DepositOrWithdrawJob, error)
func (UnimplementedWebApiServer) MonitorDepositJob ¶ added in v1.1.0
func (UnimplementedWebApiServer) MonitorDepositJob(context.Context, *DepositOrWithdrawJob) (*DepositOrWithdrawJob, error)
func (UnimplementedWebApiServer) OpenPaymentChannel ¶ added in v1.1.0
func (UnimplementedWebApiServer) OpenPaymentChannel(context.Context, *OpenPaymentChannelRequest) (*ChannelID, error)
func (UnimplementedWebApiServer) RejectIncomingPayment ¶ added in v1.1.0
func (UnimplementedWebApiServer) ResolveIncomingPaymentOnChain ¶ added in v1.1.0
func (UnimplementedWebApiServer) SendConditionalPayment ¶ added in v1.1.0
func (UnimplementedWebApiServer) SendConditionalPayment(context.Context, *SendConditionalPaymentRequest) (*PaymentID, error)
func (UnimplementedWebApiServer) SendToken ¶ added in v1.1.0
func (UnimplementedWebApiServer) SendToken(context.Context, *SendTokenRequest) (*PaymentID, error)
func (UnimplementedWebApiServer) SetDelegation ¶ added in v1.1.0
func (UnimplementedWebApiServer) SetDelegation(context.Context, *SetDelegationRequest) (*emptypb.Empty, error)
func (UnimplementedWebApiServer) SetMsgDropper ¶ added in v1.1.0
func (UnimplementedWebApiServer) SetMsgDropper(context.Context, *SetMsgDropReq) (*emptypb.Empty, error)
func (UnimplementedWebApiServer) SettleExpiredPayments ¶ added in v1.1.0
func (UnimplementedWebApiServer) SettleOnChainResolvedIncomingPayment ¶ added in v1.1.0
func (UnimplementedWebApiServer) SubscribeIncomingPayments ¶ added in v1.1.0
func (UnimplementedWebApiServer) SubscribeIncomingPayments(*emptypb.Empty, WebApi_SubscribeIncomingPaymentsServer) error
func (UnimplementedWebApiServer) SubscribeOutgoingPayments ¶ added in v1.1.0
func (UnimplementedWebApiServer) SubscribeOutgoingPayments(*emptypb.Empty, WebApi_SubscribeOutgoingPaymentsServer) error
func (UnimplementedWebApiServer) SyncOnChainPaymentChannelStatus ¶ added in v1.1.0
func (UnimplementedWebApiServer) SyncStateWithPeer ¶ added in v1.1.0
type UnsafeInternalWebApiServer ¶ added in v1.1.0
type UnsafeInternalWebApiServer interface {
// contains filtered or unexported methods
}
UnsafeInternalWebApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InternalWebApiServer will result in compilation errors.
type UnsafeWebApiServer ¶ added in v1.1.0
type UnsafeWebApiServer interface {
// contains filtered or unexported methods
}
UnsafeWebApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebApiServer will result in compilation errors.
type WebApiClient ¶
type WebApiClient interface {
GetPayHistory(ctx context.Context, in *GetPayHistoryRequest, opts ...grpc.CallOption) (*GetPayHistoryResponse, error)
SetDelegation(ctx context.Context, in *SetDelegationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
OpenPaymentChannel(ctx context.Context, in *OpenPaymentChannelRequest, opts ...grpc.CallOption) (*ChannelID, error)
// Deposit blocks until the deposit transaction is mined and returns its tx hash.
// Use DepositNonBlocking for a start-and-monitor flow.
Deposit(ctx context.Context, in *DepositOrWithdrawRequest, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
// DepositNonBlocking starts a deposit job and returns immediately.
// Use MonitorDepositJob to wait for completion and fetch the tx hash.
DepositNonBlocking(ctx context.Context, in *DepositOrWithdrawRequest, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
// MonitorDepositJob can monitor jobs started by WebApi.DepositNonBlocking or
// InternalWebApi.DepositNonBlocking. Public WebApi.Deposit already waits for
// completion and removes the job.
MonitorDepositJob(ctx context.Context, in *DepositOrWithdrawJob, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
// CooperativeWithdraw blocks until the withdraw transaction is mined and returns its tx hash.
// Use CooperativeWithdrawNonBlocking for a start-and-monitor flow.
CooperativeWithdraw(ctx context.Context, in *DepositOrWithdrawRequest, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
// CooperativeWithdrawNonBlocking starts a cooperative withdraw job and
// returns immediately. Use MonitorCooperativeWithdrawJob to wait for
// completion and fetch the tx hash.
CooperativeWithdrawNonBlocking(ctx context.Context, in *DepositOrWithdrawRequest, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
// MonitorCooperativeWithdrawJob can monitor jobs started by
// WebApi.CooperativeWithdrawNonBlocking or
// InternalWebApi.CooperativeWithdrawNonBlocking. Public WebApi.CooperativeWithdraw
// already waits for completion and removes the job.
MonitorCooperativeWithdrawJob(ctx context.Context, in *DepositOrWithdrawJob, opts ...grpc.CallOption) (*DepositOrWithdrawJob, error)
GetBalance(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*GetBalanceResponse, error)
GetPeerFreeBalance(ctx context.Context, in *GetPeerFreeBalanceRequest, opts ...grpc.CallOption) (*FreeBalance, error)
// SendToken is the explicit alias for sending a payment without caller-
// specified app conditions. The runtime may still add an internal hash lock
// for non-direct pays.
SendToken(ctx context.Context, in *SendTokenRequest, opts ...grpc.CallOption) (*PaymentID, error)
// SendConditionalPayment is also the "no caller-specified app conditions" payment API on WebApi.
// Pass an empty conditions list when you do not want to attach app-level conditions.
// The runtime may still add an internal hash lock for non-direct pays.
SendConditionalPayment(ctx context.Context, in *SendConditionalPaymentRequest, opts ...grpc.CallOption) (*PaymentID, error)
SubscribeIncomingPayments(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (WebApi_SubscribeIncomingPaymentsClient, error)
// TODO(mzhou): Refine the outgoing payment API.
SubscribeOutgoingPayments(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (WebApi_SubscribeOutgoingPaymentsClient, error)
GetIncomingPaymentStatus(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*PaymentStatus, error)
GetIncomingPaymentInfo(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*PaymentInfo, error)
GetOutgoingPaymentStatus(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*PaymentStatus, error)
ConfirmOutgoingPayment(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*emptypb.Empty, error)
RejectIncomingPayment(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*emptypb.Empty, error)
SettleOnChainResolvedIncomingPayment(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*emptypb.Empty, error)
ResolveIncomingPaymentOnChain(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetOnChainPaymentInfo(ctx context.Context, in *PaymentID, opts ...grpc.CallOption) (*OnChainPaymentInfo, error)
// TODO(mzhou): Consider removing the following two APIs
ConfirmOnChainResolvedPayments(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
SettleExpiredPayments(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
IntendWithdraw(ctx context.Context, in *DepositOrWithdrawRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ConfirmWithdraw(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
IntendSettlePaymentChannel(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
ConfirmSettlePaymentChannel(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetSettleFinalizedTimeForPaymentChannel(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*Timestamp, error)
SyncOnChainPaymentChannelStatus(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*emptypb.Empty, error)
SyncStateWithPeer(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
CreateAppSessionOnVirtualContract(ctx context.Context, in *CreateAppSessionOnVirtualContractRequest, opts ...grpc.CallOption) (*SessionID, error)
SignData(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Signature, error)
DeleteAppSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetDeployedAddressForAppSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*Address, error)
GetBooleanOutcomeForAppSession(ctx context.Context, in *GetBooleanOutcomeForAppSessionRequest, opts ...grpc.CallOption) (*BooleanOutcome, error)
GetBlockNumber(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BlockNumber, error)
SetMsgDropper(ctx context.Context, in *SetMsgDropReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
WebApiClient is the client API for WebApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWebApiClient ¶
func NewWebApiClient(cc grpc.ClientConnInterface) WebApiClient
type WebApiServer ¶
type WebApiServer interface {
GetPayHistory(context.Context, *GetPayHistoryRequest) (*GetPayHistoryResponse, error)
SetDelegation(context.Context, *SetDelegationRequest) (*emptypb.Empty, error)
OpenPaymentChannel(context.Context, *OpenPaymentChannelRequest) (*ChannelID, error)
// Deposit blocks until the deposit transaction is mined and returns its tx hash.
// Use DepositNonBlocking for a start-and-monitor flow.
Deposit(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
// DepositNonBlocking starts a deposit job and returns immediately.
// Use MonitorDepositJob to wait for completion and fetch the tx hash.
DepositNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
// MonitorDepositJob can monitor jobs started by WebApi.DepositNonBlocking or
// InternalWebApi.DepositNonBlocking. Public WebApi.Deposit already waits for
// completion and removes the job.
MonitorDepositJob(context.Context, *DepositOrWithdrawJob) (*DepositOrWithdrawJob, error)
// CooperativeWithdraw blocks until the withdraw transaction is mined and returns its tx hash.
// Use CooperativeWithdrawNonBlocking for a start-and-monitor flow.
CooperativeWithdraw(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
// CooperativeWithdrawNonBlocking starts a cooperative withdraw job and
// returns immediately. Use MonitorCooperativeWithdrawJob to wait for
// completion and fetch the tx hash.
CooperativeWithdrawNonBlocking(context.Context, *DepositOrWithdrawRequest) (*DepositOrWithdrawJob, error)
// MonitorCooperativeWithdrawJob can monitor jobs started by
// WebApi.CooperativeWithdrawNonBlocking or
// InternalWebApi.CooperativeWithdrawNonBlocking. Public WebApi.CooperativeWithdraw
// already waits for completion and removes the job.
MonitorCooperativeWithdrawJob(context.Context, *DepositOrWithdrawJob) (*DepositOrWithdrawJob, error)
GetBalance(context.Context, *TokenInfo) (*GetBalanceResponse, error)
GetPeerFreeBalance(context.Context, *GetPeerFreeBalanceRequest) (*FreeBalance, error)
// SendToken is the explicit alias for sending a payment without caller-
// specified app conditions. The runtime may still add an internal hash lock
// for non-direct pays.
SendToken(context.Context, *SendTokenRequest) (*PaymentID, error)
// SendConditionalPayment is also the "no caller-specified app conditions" payment API on WebApi.
// Pass an empty conditions list when you do not want to attach app-level conditions.
// The runtime may still add an internal hash lock for non-direct pays.
SendConditionalPayment(context.Context, *SendConditionalPaymentRequest) (*PaymentID, error)
SubscribeIncomingPayments(*emptypb.Empty, WebApi_SubscribeIncomingPaymentsServer) error
// TODO(mzhou): Refine the outgoing payment API.
SubscribeOutgoingPayments(*emptypb.Empty, WebApi_SubscribeOutgoingPaymentsServer) error
GetIncomingPaymentStatus(context.Context, *PaymentID) (*PaymentStatus, error)
GetIncomingPaymentInfo(context.Context, *PaymentID) (*PaymentInfo, error)
GetOutgoingPaymentStatus(context.Context, *PaymentID) (*PaymentStatus, error)
ConfirmOutgoingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)
RejectIncomingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)
SettleOnChainResolvedIncomingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)
ResolveIncomingPaymentOnChain(context.Context, *PaymentID) (*emptypb.Empty, error)
GetOnChainPaymentInfo(context.Context, *PaymentID) (*OnChainPaymentInfo, error)
// TODO(mzhou): Consider removing the following two APIs
ConfirmOnChainResolvedPayments(context.Context, *TokenInfo) (*emptypb.Empty, error)
SettleExpiredPayments(context.Context, *TokenInfo) (*emptypb.Empty, error)
IntendWithdraw(context.Context, *DepositOrWithdrawRequest) (*emptypb.Empty, error)
ConfirmWithdraw(context.Context, *TokenInfo) (*emptypb.Empty, error)
IntendSettlePaymentChannel(context.Context, *TokenInfo) (*emptypb.Empty, error)
ConfirmSettlePaymentChannel(context.Context, *TokenInfo) (*emptypb.Empty, error)
GetSettleFinalizedTimeForPaymentChannel(context.Context, *TokenInfo) (*Timestamp, error)
SyncOnChainPaymentChannelStatus(context.Context, *TokenInfo) (*emptypb.Empty, error)
SyncStateWithPeer(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
CreateAppSessionOnVirtualContract(context.Context, *CreateAppSessionOnVirtualContractRequest) (*SessionID, error)
SignData(context.Context, *Data) (*Signature, error)
DeleteAppSession(context.Context, *SessionID) (*emptypb.Empty, error)
GetDeployedAddressForAppSession(context.Context, *SessionID) (*Address, error)
GetBooleanOutcomeForAppSession(context.Context, *GetBooleanOutcomeForAppSessionRequest) (*BooleanOutcome, error)
GetBlockNumber(context.Context, *emptypb.Empty) (*BlockNumber, error)
SetMsgDropper(context.Context, *SetMsgDropReq) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
WebApiServer is the server API for WebApi service. All implementations must embed UnimplementedWebApiServer for forward compatibility
type WebApi_SubscribeIncomingPaymentsClient ¶
type WebApi_SubscribeIncomingPaymentsClient interface {
Recv() (*PaymentInfo, error)
grpc.ClientStream
}
type WebApi_SubscribeIncomingPaymentsServer ¶
type WebApi_SubscribeIncomingPaymentsServer interface {
Send(*PaymentInfo) error
grpc.ServerStream
}
type WebApi_SubscribeOutgoingPaymentsClient ¶
type WebApi_SubscribeOutgoingPaymentsClient interface {
Recv() (*OutgoingPaymentInfo, error)
grpc.ClientStream
}
type WebApi_SubscribeOutgoingPaymentsServer ¶
type WebApi_SubscribeOutgoingPaymentsServer interface {
Send(*OutgoingPaymentInfo) error
grpc.ServerStream
}