rpc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_web_api_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect added in v1.1.0

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type AppSessionSeqNum

type AppSessionSeqNum struct {
	SeqNum uint64 `protobuf:"varint,1,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	// contains filtered or unexported fields
}

func (*AppSessionSeqNum) Descriptor deprecated

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

Deprecated: Use AppSessionSeqNum.ProtoReflect.Descriptor instead.

func (*AppSessionSeqNum) GetSeqNum

func (x *AppSessionSeqNum) GetSeqNum() uint64

func (*AppSessionSeqNum) ProtoMessage

func (*AppSessionSeqNum) ProtoMessage()

func (*AppSessionSeqNum) ProtoReflect added in v1.1.0

func (x *AppSessionSeqNum) ProtoReflect() protoreflect.Message

func (*AppSessionSeqNum) Reset

func (x *AppSessionSeqNum) Reset()

func (*AppSessionSeqNum) String

func (x *AppSessionSeqNum) String() string

type AppSessionState

type AppSessionState struct {
	State []byte `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*AppSessionState) Descriptor deprecated

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

Deprecated: Use AppSessionState.ProtoReflect.Descriptor instead.

func (*AppSessionState) GetState

func (x *AppSessionState) GetState() []byte

func (*AppSessionState) ProtoMessage

func (*AppSessionState) ProtoMessage()

func (*AppSessionState) ProtoReflect added in v1.1.0

func (x *AppSessionState) ProtoReflect() protoreflect.Message

func (*AppSessionState) Reset

func (x *AppSessionState) Reset()

func (*AppSessionState) String

func (x *AppSessionState) String() string

type AppSessionStatus

type AppSessionStatus struct {
	Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*AppSessionStatus) Descriptor deprecated

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

Deprecated: Use AppSessionStatus.ProtoReflect.Descriptor instead.

func (*AppSessionStatus) GetStatus

func (x *AppSessionStatus) GetStatus() uint32

func (*AppSessionStatus) ProtoMessage

func (*AppSessionStatus) ProtoMessage()

func (*AppSessionStatus) ProtoReflect added in v1.1.0

func (x *AppSessionStatus) ProtoReflect() protoreflect.Message

func (*AppSessionStatus) Reset

func (x *AppSessionStatus) Reset()

func (*AppSessionStatus) String

func (x *AppSessionStatus) String() string

type ApplyActionForAppSessionRequest

type ApplyActionForAppSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Action    []byte `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyActionForAppSessionRequest) Descriptor deprecated

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

Deprecated: Use ApplyActionForAppSessionRequest.ProtoReflect.Descriptor instead.

func (*ApplyActionForAppSessionRequest) GetAction

func (x *ApplyActionForAppSessionRequest) GetAction() []byte

func (*ApplyActionForAppSessionRequest) GetSessionId

func (x *ApplyActionForAppSessionRequest) GetSessionId() string

func (*ApplyActionForAppSessionRequest) ProtoMessage

func (*ApplyActionForAppSessionRequest) ProtoMessage()

func (*ApplyActionForAppSessionRequest) ProtoReflect added in v1.1.0

func (*ApplyActionForAppSessionRequest) Reset

func (*ApplyActionForAppSessionRequest) String

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 BoolValue

type BoolValue struct {
	Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolValue) Descriptor deprecated

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

Deprecated: Use BoolValue.ProtoReflect.Descriptor instead.

func (*BoolValue) GetValue

func (x *BoolValue) GetValue() bool

func (*BoolValue) ProtoMessage

func (*BoolValue) ProtoMessage()

func (*BoolValue) ProtoReflect added in v1.1.0

func (x *BoolValue) ProtoReflect() protoreflect.Message

func (*BoolValue) Reset

func (x *BoolValue) Reset()

func (*BoolValue) String

func (x *BoolValue) 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) Descriptor() ([]byte, []int)

Deprecated: Use ChannelID.ProtoReflect.Descriptor instead.

func (*ChannelID) GetChannelId

func (x *ChannelID) GetChannelId() string

func (*ChannelID) ProtoMessage

func (*ChannelID) ProtoMessage()

func (*ChannelID) ProtoReflect added in v1.1.0

func (x *ChannelID) ProtoReflect() protoreflect.Message

func (*ChannelID) Reset

func (x *ChannelID) Reset()

func (*ChannelID) String

func (x *ChannelID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) GetContractAddress

func (x *Condition) GetContractAddress() string

func (*Condition) GetGetOutcomeArgs

func (x *Condition) GetGetOutcomeArgs() []byte

func (*Condition) GetIsFinalizedArgs

func (x *Condition) GetIsFinalizedArgs() []byte

func (*Condition) GetOnChainDeployed

func (x *Condition) GetOnChainDeployed() bool

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) ProtoReflect added in v1.1.0

func (x *Condition) ProtoReflect() protoreflect.Message

func (*Condition) Reset

func (x *Condition) Reset()

func (*Condition) String

func (x *Condition) String() string

type CreateAppSessionOnDeployedContractRequest

type CreateAppSessionOnDeployedContractRequest struct {
	ContractAddress string   `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Nonce           uint64   `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	OnChainTimeout  uint64   `protobuf:"varint,3,opt,name=on_chain_timeout,json=onChainTimeout,proto3" json:"on_chain_timeout,omitempty"`
	Participants    []string `protobuf:"bytes,4,rep,name=participants,proto3" json:"participants,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAppSessionOnDeployedContractRequest) Descriptor deprecated

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

Deprecated: Use CreateAppSessionOnDeployedContractRequest.ProtoReflect.Descriptor instead.

func (*CreateAppSessionOnDeployedContractRequest) GetContractAddress

func (x *CreateAppSessionOnDeployedContractRequest) GetContractAddress() string

func (*CreateAppSessionOnDeployedContractRequest) GetNonce

func (*CreateAppSessionOnDeployedContractRequest) GetOnChainTimeout

func (x *CreateAppSessionOnDeployedContractRequest) GetOnChainTimeout() uint64

func (*CreateAppSessionOnDeployedContractRequest) GetParticipants

func (x *CreateAppSessionOnDeployedContractRequest) GetParticipants() []string

func (*CreateAppSessionOnDeployedContractRequest) ProtoMessage

func (*CreateAppSessionOnDeployedContractRequest) ProtoReflect added in v1.1.0

func (*CreateAppSessionOnDeployedContractRequest) Reset

func (*CreateAppSessionOnDeployedContractRequest) String

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"`
	OnChainTimeout      uint64 `protobuf:"varint,4,opt,name=on_chain_timeout,json=onChainTimeout,proto3" json:"on_chain_timeout,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 (*CreateAppSessionOnVirtualContractRequest) GetContractConstructor

func (x *CreateAppSessionOnVirtualContractRequest) GetContractConstructor() string

func (*CreateAppSessionOnVirtualContractRequest) GetNonce

func (*CreateAppSessionOnVirtualContractRequest) GetOnChainTimeout

func (x *CreateAppSessionOnVirtualContractRequest) GetOnChainTimeout() uint64

func (*CreateAppSessionOnVirtualContractRequest) ProtoMessage

func (*CreateAppSessionOnVirtualContractRequest) ProtoReflect added in v1.1.0

func (*CreateAppSessionOnVirtualContractRequest) Reset

func (*CreateAppSessionOnVirtualContractRequest) 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) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetData

func (x *Data) GetData() []byte

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect added in v1.1.0

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

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 DisputeInfo

type DisputeInfo struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	SeqNum    uint64 `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	// contains filtered or unexported fields
}

func (*DisputeInfo) Descriptor deprecated

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

Deprecated: Use DisputeInfo.ProtoReflect.Descriptor instead.

func (*DisputeInfo) GetSeqNum

func (x *DisputeInfo) GetSeqNum() uint64

func (*DisputeInfo) GetSessionId

func (x *DisputeInfo) GetSessionId() string

func (*DisputeInfo) ProtoMessage

func (*DisputeInfo) ProtoMessage()

func (*DisputeInfo) ProtoReflect added in v1.1.0

func (x *DisputeInfo) ProtoReflect() protoreflect.Message

func (*DisputeInfo) Reset

func (x *DisputeInfo) Reset()

func (*DisputeInfo) String

func (x *DisputeInfo) 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 (*GetBooleanOutcomeForAppSessionRequest) GetSessionId

func (*GetBooleanOutcomeForAppSessionRequest) ProtoMessage

func (*GetBooleanOutcomeForAppSessionRequest) ProtoMessage()

func (*GetBooleanOutcomeForAppSessionRequest) ProtoReflect added in v1.1.0

func (*GetBooleanOutcomeForAppSessionRequest) Reset

func (*GetBooleanOutcomeForAppSessionRequest) 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 (*GetPeerFreeBalanceRequest) Reset

func (x *GetPeerFreeBalanceRequest) Reset()

func (*GetPeerFreeBalanceRequest) String

func (x *GetPeerFreeBalanceRequest) String() string

type GetStateForAppSessionRequest

type GetStateForAppSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Key       int64  `protobuf:"varint,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStateForAppSessionRequest) Descriptor deprecated

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

Deprecated: Use GetStateForAppSessionRequest.ProtoReflect.Descriptor instead.

func (*GetStateForAppSessionRequest) GetKey

func (x *GetStateForAppSessionRequest) GetKey() int64

func (*GetStateForAppSessionRequest) GetSessionId

func (x *GetStateForAppSessionRequest) GetSessionId() string

func (*GetStateForAppSessionRequest) ProtoMessage

func (*GetStateForAppSessionRequest) ProtoMessage()

func (*GetStateForAppSessionRequest) ProtoReflect added in v1.1.0

func (*GetStateForAppSessionRequest) Reset

func (x *GetStateForAppSessionRequest) Reset()

func (*GetStateForAppSessionRequest) 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.

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use PaymentID.ProtoReflect.Descriptor instead.

func (*PaymentID) GetPaymentId

func (x *PaymentID) GetPaymentId() string

func (*PaymentID) ProtoMessage

func (*PaymentID) ProtoMessage()

func (*PaymentID) ProtoReflect added in v1.1.0

func (x *PaymentID) ProtoReflect() protoreflect.Message

func (*PaymentID) Reset

func (x *PaymentID) Reset()

func (*PaymentID) String

func (x *PaymentID) String() string

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 ProcessReceivedStateRequest

type ProcessReceivedStateRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Envelope  []byte `protobuf:"bytes,2,opt,name=envelope,proto3" json:"envelope,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessReceivedStateRequest) Descriptor deprecated

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

Deprecated: Use ProcessReceivedStateRequest.ProtoReflect.Descriptor instead.

func (*ProcessReceivedStateRequest) GetEnvelope

func (x *ProcessReceivedStateRequest) GetEnvelope() []byte

func (*ProcessReceivedStateRequest) GetSessionId

func (x *ProcessReceivedStateRequest) GetSessionId() string

func (*ProcessReceivedStateRequest) ProtoMessage

func (*ProcessReceivedStateRequest) ProtoMessage()

func (*ProcessReceivedStateRequest) ProtoReflect added in v1.1.0

func (*ProcessReceivedStateRequest) Reset

func (x *ProcessReceivedStateRequest) Reset()

func (*ProcessReceivedStateRequest) String

func (x *ProcessReceivedStateRequest) String() string

type ProcessReceivedStateResponse

type ProcessReceivedStateResponse struct {
	DecodedState []byte `protobuf:"bytes,1,opt,name=decoded_state,json=decodedState,proto3" json:"decoded_state,omitempty"`
	PreparedAck  []byte `protobuf:"bytes,2,opt,name=prepared_ack,json=preparedAck,proto3" json:"prepared_ack,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessReceivedStateResponse) Descriptor deprecated

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

Deprecated: Use ProcessReceivedStateResponse.ProtoReflect.Descriptor instead.

func (*ProcessReceivedStateResponse) GetDecodedState

func (x *ProcessReceivedStateResponse) GetDecodedState() []byte

func (*ProcessReceivedStateResponse) GetPreparedAck

func (x *ProcessReceivedStateResponse) GetPreparedAck() []byte

func (*ProcessReceivedStateResponse) ProtoMessage

func (*ProcessReceivedStateResponse) ProtoMessage()

func (*ProcessReceivedStateResponse) ProtoReflect added in v1.1.0

func (*ProcessReceivedStateResponse) Reset

func (x *ProcessReceivedStateResponse) Reset()

func (*ProcessReceivedStateResponse) 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 (*SendConditionalPaymentRequest) Reset

func (x *SendConditionalPaymentRequest) Reset()

func (*SendConditionalPaymentRequest) 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) Descriptor() ([]byte, []int)

Deprecated: Use SessionID.ProtoReflect.Descriptor instead.

func (*SessionID) GetSessionId

func (x *SessionID) GetSessionId() string

func (*SessionID) ProtoMessage

func (*SessionID) ProtoMessage()

func (*SessionID) ProtoReflect added in v1.1.0

func (x *SessionID) ProtoReflect() protoreflect.Message

func (*SessionID) Reset

func (x *SessionID) Reset()

func (*SessionID) String

func (x *SessionID) String() string

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 SettleAppSessionByInvalidityRequest

type SettleAppSessionByInvalidityRequest struct {
	SessionId          string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	OracleProof        []byte `protobuf:"bytes,2,opt,name=oracle_proof,json=oracleProof,proto3" json:"oracle_proof,omitempty"`
	CosignedStateProof []byte `protobuf:"bytes,3,opt,name=cosigned_state_proof,json=cosignedStateProof,proto3" json:"cosigned_state_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*SettleAppSessionByInvalidityRequest) Descriptor deprecated

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

Deprecated: Use SettleAppSessionByInvalidityRequest.ProtoReflect.Descriptor instead.

func (*SettleAppSessionByInvalidityRequest) GetCosignedStateProof

func (x *SettleAppSessionByInvalidityRequest) GetCosignedStateProof() []byte

func (*SettleAppSessionByInvalidityRequest) GetOracleProof

func (x *SettleAppSessionByInvalidityRequest) GetOracleProof() []byte

func (*SettleAppSessionByInvalidityRequest) GetSessionId

func (x *SettleAppSessionByInvalidityRequest) GetSessionId() string

func (*SettleAppSessionByInvalidityRequest) ProtoMessage

func (*SettleAppSessionByInvalidityRequest) ProtoMessage()

func (*SettleAppSessionByInvalidityRequest) ProtoReflect added in v1.1.0

func (*SettleAppSessionByInvalidityRequest) Reset

func (*SettleAppSessionByInvalidityRequest) String

type SettleAppSessionByTimeoutRequest

type SettleAppSessionByTimeoutRequest struct {
	SessionId   string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	OracleProof []byte `protobuf:"bytes,2,opt,name=oracle_proof,json=oracleProof,proto3" json:"oracle_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*SettleAppSessionByTimeoutRequest) Descriptor deprecated

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

Deprecated: Use SettleAppSessionByTimeoutRequest.ProtoReflect.Descriptor instead.

func (*SettleAppSessionByTimeoutRequest) GetOracleProof

func (x *SettleAppSessionByTimeoutRequest) GetOracleProof() []byte

func (*SettleAppSessionByTimeoutRequest) GetSessionId

func (x *SettleAppSessionByTimeoutRequest) GetSessionId() string

func (*SettleAppSessionByTimeoutRequest) ProtoMessage

func (*SettleAppSessionByTimeoutRequest) ProtoMessage()

func (*SettleAppSessionByTimeoutRequest) ProtoReflect added in v1.1.0

func (*SettleAppSessionByTimeoutRequest) Reset

func (*SettleAppSessionByTimeoutRequest) String

type SettleAppSessionRequest

type SettleAppSessionRequest struct {
	SessionId  string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	StateProof []byte `protobuf:"bytes,2,opt,name=state_proof,json=stateProof,proto3" json:"state_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*SettleAppSessionRequest) Descriptor deprecated

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

Deprecated: Use SettleAppSessionRequest.ProtoReflect.Descriptor instead.

func (*SettleAppSessionRequest) GetSessionId

func (x *SettleAppSessionRequest) GetSessionId() string

func (*SettleAppSessionRequest) GetStateProof

func (x *SettleAppSessionRequest) GetStateProof() []byte

func (*SettleAppSessionRequest) ProtoMessage

func (*SettleAppSessionRequest) ProtoMessage()

func (*SettleAppSessionRequest) ProtoReflect added in v1.1.0

func (x *SettleAppSessionRequest) ProtoReflect() protoreflect.Message

func (*SettleAppSessionRequest) Reset

func (x *SettleAppSessionRequest) Reset()

func (*SettleAppSessionRequest) String

func (x *SettleAppSessionRequest) String() string

type SignOutgoingStateRequest

type SignOutgoingStateRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	State     []byte `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*SignOutgoingStateRequest) Descriptor deprecated

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

Deprecated: Use SignOutgoingStateRequest.ProtoReflect.Descriptor instead.

func (*SignOutgoingStateRequest) GetSessionId

func (x *SignOutgoingStateRequest) GetSessionId() string

func (*SignOutgoingStateRequest) GetState

func (x *SignOutgoingStateRequest) GetState() []byte

func (*SignOutgoingStateRequest) ProtoMessage

func (*SignOutgoingStateRequest) ProtoMessage()

func (*SignOutgoingStateRequest) ProtoReflect added in v1.1.0

func (x *SignOutgoingStateRequest) ProtoReflect() protoreflect.Message

func (*SignOutgoingStateRequest) Reset

func (x *SignOutgoingStateRequest) Reset()

func (*SignOutgoingStateRequest) String

func (x *SignOutgoingStateRequest) 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) Descriptor() ([]byte, []int)

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetSignature

func (x *Signature) GetSignature() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect added in v1.1.0

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type SignedState

type SignedState struct {
	SignedState []byte `protobuf:"bytes,1,opt,name=signed_state,json=signedState,proto3" json:"signed_state,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedState) Descriptor deprecated

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

Deprecated: Use SignedState.ProtoReflect.Descriptor instead.

func (*SignedState) GetSignedState

func (x *SignedState) GetSignedState() []byte

func (*SignedState) ProtoMessage

func (*SignedState) ProtoMessage()

func (*SignedState) ProtoReflect added in v1.1.0

func (x *SignedState) ProtoReflect() protoreflect.Message

func (*SignedState) Reset

func (x *SignedState) Reset()

func (*SignedState) String

func (x *SignedState) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TokenInfo.ProtoReflect.Descriptor instead.

func (*TokenInfo) GetTokenAddress

func (x *TokenInfo) GetTokenAddress() string

func (*TokenInfo) GetTokenType

func (x *TokenInfo) GetTokenType() entity.TokenType

func (*TokenInfo) ProtoMessage

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) ProtoReflect added in v1.1.0

func (x *TokenInfo) ProtoReflect() protoreflect.Message

func (*TokenInfo) Reset

func (x *TokenInfo) Reset()

func (*TokenInfo) String

func (x *TokenInfo) String() string

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) DepositNonBlocking added in v1.1.0

func (UnimplementedInternalWebApiServer) InstantiateTrustedPaymentChannel added in v1.1.0

func (UnimplementedInternalWebApiServer) InstantiateTrustedPaymentChannel(context.Context, *TokenInfo) (*ChannelID, error)

func (UnimplementedInternalWebApiServer) OpenTrustedPaymentChannel added in v1.1.0

type UnimplementedWebApiServer added in v1.1.0

type UnimplementedWebApiServer struct {
}

UnimplementedWebApiServer should be embedded to have forward compatible implementations.

func (UnimplementedWebApiServer) ApplyActionForAppSession added in v1.1.0

func (UnimplementedWebApiServer) ConfirmOnChainResolvedPayments added in v1.1.0

func (UnimplementedWebApiServer) ConfirmOnChainResolvedPayments(context.Context, *TokenInfo) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) ConfirmOutgoingPayment added in v1.1.0

func (UnimplementedWebApiServer) ConfirmOutgoingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) ConfirmSettlePaymentChannel added in v1.1.0

func (UnimplementedWebApiServer) ConfirmSettlePaymentChannel(context.Context, *TokenInfo) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) ConfirmWithdraw added in v1.1.0

func (UnimplementedWebApiServer) CooperativeWithdraw added in v1.1.0

func (UnimplementedWebApiServer) CooperativeWithdrawNonBlocking added in v1.1.0

func (UnimplementedWebApiServer) CreateAppSessionOnDeployedContract added in v1.1.0

func (UnimplementedWebApiServer) CreateAppSessionOnVirtualContract added in v1.1.0

func (UnimplementedWebApiServer) DeleteAppSession added in v1.1.0

func (UnimplementedWebApiServer) Deposit added in v1.1.0

func (UnimplementedWebApiServer) DepositNonBlocking added in v1.1.0

func (UnimplementedWebApiServer) FinalizeOnActionTimeoutForAppSession added in v1.1.0

func (UnimplementedWebApiServer) FinalizeOnActionTimeoutForAppSession(context.Context, *SessionID) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) GetActionDeadlineForAppSession added in v1.1.0

func (UnimplementedWebApiServer) GetActionDeadlineForAppSession(context.Context, *SessionID) (*BlockNumber, error)

func (UnimplementedWebApiServer) GetBalance added in v1.1.0

func (UnimplementedWebApiServer) GetBlockNumber added in v1.1.0

func (UnimplementedWebApiServer) GetBooleanOutcomeForAppSession added in v1.1.0

func (UnimplementedWebApiServer) GetDeployedAddressForAppSession added in v1.1.0

func (UnimplementedWebApiServer) GetDeployedAddressForAppSession(context.Context, *SessionID) (*Address, error)

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) GetOutgoingPaymentStatus added in v1.1.0

func (UnimplementedWebApiServer) GetOutgoingPaymentStatus(context.Context, *PaymentID) (*PaymentStatus, error)

func (UnimplementedWebApiServer) GetPayHistory added in v1.1.0

func (UnimplementedWebApiServer) GetPeerFreeBalance added in v1.1.0

func (UnimplementedWebApiServer) GetSeqNumForAppSession added in v1.1.0

func (UnimplementedWebApiServer) GetSettleFinalizedTimeForAppSession added in v1.1.0

func (UnimplementedWebApiServer) GetSettleFinalizedTimeForAppSession(context.Context, *SessionID) (*BlockNumber, error)

func (UnimplementedWebApiServer) GetSettleFinalizedTimeForPaymentChannel added in v1.1.0

func (UnimplementedWebApiServer) GetSettleFinalizedTimeForPaymentChannel(context.Context, *TokenInfo) (*BlockNumber, error)

func (UnimplementedWebApiServer) GetStateForAppSession added in v1.1.0

func (UnimplementedWebApiServer) GetStatusForAppSession added in v1.1.0

func (UnimplementedWebApiServer) IntendSettlePaymentChannel added in v1.1.0

func (UnimplementedWebApiServer) IntendSettlePaymentChannel(context.Context, *TokenInfo) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) IntendWithdraw added in v1.1.0

func (UnimplementedWebApiServer) MonitorCooperativeWithdrawJob added in v1.1.0

func (UnimplementedWebApiServer) MonitorDepositJob added in v1.1.0

func (UnimplementedWebApiServer) OpenPaymentChannel added in v1.1.0

func (UnimplementedWebApiServer) ProcessReceivedState added in v1.1.0

func (UnimplementedWebApiServer) RejectIncomingPayment added in v1.1.0

func (UnimplementedWebApiServer) RejectIncomingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) ResolveIncomingPaymentOnChain added in v1.1.0

func (UnimplementedWebApiServer) ResolveIncomingPaymentOnChain(context.Context, *PaymentID) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) SendConditionalPayment added in v1.1.0

func (UnimplementedWebApiServer) SendToken added in v1.1.0

func (UnimplementedWebApiServer) SetDelegation added in v1.1.0

func (UnimplementedWebApiServer) SetMsgDropper added in v1.1.0

func (UnimplementedWebApiServer) SettleAppSession added in v1.1.0

func (UnimplementedWebApiServer) SettleAppSessionByInvalidState added in v1.1.0

func (UnimplementedWebApiServer) SettleAppSessionByInvalidTurn added in v1.1.0

func (UnimplementedWebApiServer) SettleAppSessionByMoveTimeout added in v1.1.0

func (UnimplementedWebApiServer) SettleAppSessionBySigTimeout added in v1.1.0

func (UnimplementedWebApiServer) SettleExpiredPayments added in v1.1.0

func (UnimplementedWebApiServer) SettleExpiredPayments(context.Context, *TokenInfo) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) SettleOnChainResolvedIncomingPayment added in v1.1.0

func (UnimplementedWebApiServer) SettleOnChainResolvedIncomingPayment(context.Context, *PaymentID) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) SignData added in v1.1.0

func (UnimplementedWebApiServer) SignOutgoingState added in v1.1.0

func (UnimplementedWebApiServer) SubscribeAppSessionDispute added in v1.1.0

func (UnimplementedWebApiServer) SubscribeIncomingPayments added in v1.1.0

func (UnimplementedWebApiServer) SubscribeOutgoingPayments added in v1.1.0

func (UnimplementedWebApiServer) SyncOnChainPaymentChannelStatus added in v1.1.0

func (UnimplementedWebApiServer) SyncOnChainPaymentChannelStatus(context.Context, *TokenInfo) (*emptypb.Empty, error)

func (UnimplementedWebApiServer) SyncStateWithPeer added in v1.1.0

func (UnimplementedWebApiServer) ValidateAck 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 ValidateAckRequest

type ValidateAckRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Envelope  []byte `protobuf:"bytes,2,opt,name=envelope,proto3" json:"envelope,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateAckRequest) Descriptor deprecated

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

Deprecated: Use ValidateAckRequest.ProtoReflect.Descriptor instead.

func (*ValidateAckRequest) GetEnvelope

func (x *ValidateAckRequest) GetEnvelope() []byte

func (*ValidateAckRequest) GetSessionId

func (x *ValidateAckRequest) GetSessionId() string

func (*ValidateAckRequest) ProtoMessage

func (*ValidateAckRequest) ProtoMessage()

func (*ValidateAckRequest) ProtoReflect added in v1.1.0

func (x *ValidateAckRequest) ProtoReflect() protoreflect.Message

func (*ValidateAckRequest) Reset

func (x *ValidateAckRequest) Reset()

func (*ValidateAckRequest) String

func (x *ValidateAckRequest) String() string

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) (*BlockNumber, 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)
	CreateAppSessionOnDeployedContract(ctx context.Context, in *CreateAppSessionOnDeployedContractRequest, opts ...grpc.CallOption) (*SessionID, error)
	SubscribeAppSessionDispute(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (WebApi_SubscribeAppSessionDisputeClient, error)
	SignOutgoingState(ctx context.Context, in *SignOutgoingStateRequest, opts ...grpc.CallOption) (*SignedState, error)
	ValidateAck(ctx context.Context, in *ValidateAckRequest, opts ...grpc.CallOption) (*BoolValue, error)
	SignData(ctx context.Context, in *Data, opts ...grpc.CallOption) (*Signature, error)
	ProcessReceivedState(ctx context.Context, in *ProcessReceivedStateRequest, opts ...grpc.CallOption) (*ProcessReceivedStateResponse, error)
	SettleAppSession(ctx context.Context, in *SettleAppSessionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SettleAppSessionBySigTimeout(ctx context.Context, in *SettleAppSessionByTimeoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SettleAppSessionByMoveTimeout(ctx context.Context, in *SettleAppSessionByTimeoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SettleAppSessionByInvalidTurn(ctx context.Context, in *SettleAppSessionByInvalidityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SettleAppSessionByInvalidState(ctx context.Context, in *SettleAppSessionByInvalidityRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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)
	ApplyActionForAppSession(ctx context.Context, in *ApplyActionForAppSessionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	FinalizeOnActionTimeoutForAppSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetSettleFinalizedTimeForAppSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*BlockNumber, error)
	GetActionDeadlineForAppSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*BlockNumber, error)
	GetStatusForAppSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*AppSessionStatus, error)
	GetStateForAppSession(ctx context.Context, in *GetStateForAppSessionRequest, opts ...grpc.CallOption) (*AppSessionState, error)
	GetSeqNumForAppSession(ctx context.Context, in *SessionID, opts ...grpc.CallOption) (*AppSessionSeqNum, 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) (*BlockNumber, error)
	SyncOnChainPaymentChannelStatus(context.Context, *TokenInfo) (*emptypb.Empty, error)
	SyncStateWithPeer(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	CreateAppSessionOnVirtualContract(context.Context, *CreateAppSessionOnVirtualContractRequest) (*SessionID, error)
	CreateAppSessionOnDeployedContract(context.Context, *CreateAppSessionOnDeployedContractRequest) (*SessionID, error)
	SubscribeAppSessionDispute(*SessionID, WebApi_SubscribeAppSessionDisputeServer) error
	SignOutgoingState(context.Context, *SignOutgoingStateRequest) (*SignedState, error)
	ValidateAck(context.Context, *ValidateAckRequest) (*BoolValue, error)
	SignData(context.Context, *Data) (*Signature, error)
	ProcessReceivedState(context.Context, *ProcessReceivedStateRequest) (*ProcessReceivedStateResponse, error)
	SettleAppSession(context.Context, *SettleAppSessionRequest) (*emptypb.Empty, error)
	SettleAppSessionBySigTimeout(context.Context, *SettleAppSessionByTimeoutRequest) (*emptypb.Empty, error)
	SettleAppSessionByMoveTimeout(context.Context, *SettleAppSessionByTimeoutRequest) (*emptypb.Empty, error)
	SettleAppSessionByInvalidTurn(context.Context, *SettleAppSessionByInvalidityRequest) (*emptypb.Empty, error)
	SettleAppSessionByInvalidState(context.Context, *SettleAppSessionByInvalidityRequest) (*emptypb.Empty, error)
	DeleteAppSession(context.Context, *SessionID) (*emptypb.Empty, error)
	GetDeployedAddressForAppSession(context.Context, *SessionID) (*Address, error)
	GetBooleanOutcomeForAppSession(context.Context, *GetBooleanOutcomeForAppSessionRequest) (*BooleanOutcome, error)
	ApplyActionForAppSession(context.Context, *ApplyActionForAppSessionRequest) (*emptypb.Empty, error)
	FinalizeOnActionTimeoutForAppSession(context.Context, *SessionID) (*emptypb.Empty, error)
	GetSettleFinalizedTimeForAppSession(context.Context, *SessionID) (*BlockNumber, error)
	GetActionDeadlineForAppSession(context.Context, *SessionID) (*BlockNumber, error)
	GetStatusForAppSession(context.Context, *SessionID) (*AppSessionStatus, error)
	GetStateForAppSession(context.Context, *GetStateForAppSessionRequest) (*AppSessionState, error)
	GetSeqNumForAppSession(context.Context, *SessionID) (*AppSessionSeqNum, error)
	GetBlockNumber(context.Context, *emptypb.Empty) (*BlockNumber, error)
	SetMsgDropper(context.Context, *SetMsgDropReq) (*emptypb.Empty, error)
}

WebApiServer is the server API for WebApi service. All implementations should embed UnimplementedWebApiServer for forward compatibility

type WebApi_SubscribeAppSessionDisputeClient

type WebApi_SubscribeAppSessionDisputeClient interface {
	Recv() (*DisputeInfo, error)
	grpc.ClientStream
}

type WebApi_SubscribeAppSessionDisputeServer

type WebApi_SubscribeAppSessionDisputeServer interface {
	Send(*DisputeInfo) error
	grpc.ServerStream
}

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
}

Jump to

Keyboard shortcuts

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