entity

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenType_name = map[int32]string{
		0: "INVALID",
		1: "ETH",
		2: "ERC20",
	}
	TokenType_value = map[string]int32{
		"INVALID": 0,
		"ETH":     1,
		"ERC20":   2,
	}
)

Enum value maps for TokenType.

View Source
var (
	TransferFunctionType_name = map[int32]string{
		0: "BOOLEAN_AND",
		1: "BOOLEAN_OR",
		2: "BOOLEAN_CIRCUIT",
		3: "NUMERIC_ADD",
		4: "NUMERIC_MAX",
		5: "NUMERIC_MIN",
	}
	TransferFunctionType_value = map[string]int32{
		"BOOLEAN_AND":     0,
		"BOOLEAN_OR":      1,
		"BOOLEAN_CIRCUIT": 2,
		"NUMERIC_ADD":     3,
		"NUMERIC_MAX":     4,
		"NUMERIC_MIN":     5,
	}
)

Enum value maps for TransferFunctionType.

View Source
var (
	ConditionType_name = map[int32]string{
		0: "HASH_LOCK",
		1: "DEPLOYED_CONTRACT",
		2: "VIRTUAL_CONTRACT",
	}
	ConditionType_value = map[string]int32{
		"HASH_LOCK":         0,
		"DEPLOYED_CONTRACT": 1,
		"VIRTUAL_CONTRACT":  2,
	}
)

Enum value maps for ConditionType.

View Source
var (
	// optional string soltype = 1001;
	E_Soltype = &file_entity_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_entity_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountAmtPair

type AccountAmtPair struct {
	Account []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Amt     []byte `protobuf:"bytes,2,opt,name=amt,proto3" json:"amt,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 3

func (*AccountAmtPair) Descriptor deprecated

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

Deprecated: Use AccountAmtPair.ProtoReflect.Descriptor instead.

func (*AccountAmtPair) GetAccount

func (x *AccountAmtPair) GetAccount() []byte

func (*AccountAmtPair) GetAmt

func (x *AccountAmtPair) GetAmt() []byte

func (*AccountAmtPair) ProtoMessage

func (*AccountAmtPair) ProtoMessage()

func (*AccountAmtPair) ProtoReflect added in v1.1.0

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

func (*AccountAmtPair) Reset

func (x *AccountAmtPair) Reset()

func (*AccountAmtPair) String

func (x *AccountAmtPair) String() string

type ChannelMigrationInfo

type ChannelMigrationInfo struct {
	ChannelId         []byte `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	FromLedgerAddress []byte `protobuf:"bytes,2,opt,name=from_ledger_address,json=fromLedgerAddress,proto3" json:"from_ledger_address,omitempty"`
	ToLedgerAddress   []byte `protobuf:"bytes,3,opt,name=to_ledger_address,json=toLedgerAddress,proto3" json:"to_ledger_address,omitempty"`
	MigrationDeadline uint64 `protobuf:"varint,4,opt,name=migration_deadline,json=migrationDeadline,proto3" json:"migration_deadline,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 5

func (*ChannelMigrationInfo) Descriptor deprecated

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

Deprecated: Use ChannelMigrationInfo.ProtoReflect.Descriptor instead.

func (*ChannelMigrationInfo) GetChannelId

func (x *ChannelMigrationInfo) GetChannelId() []byte

func (*ChannelMigrationInfo) GetFromLedgerAddress

func (x *ChannelMigrationInfo) GetFromLedgerAddress() []byte

func (*ChannelMigrationInfo) GetMigrationDeadline

func (x *ChannelMigrationInfo) GetMigrationDeadline() uint64

func (*ChannelMigrationInfo) GetToLedgerAddress

func (x *ChannelMigrationInfo) GetToLedgerAddress() []byte

func (*ChannelMigrationInfo) ProtoMessage

func (*ChannelMigrationInfo) ProtoMessage()

func (*ChannelMigrationInfo) ProtoReflect added in v1.1.0

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

func (*ChannelMigrationInfo) Reset

func (x *ChannelMigrationInfo) Reset()

func (*ChannelMigrationInfo) String

func (x *ChannelMigrationInfo) String() string

type CondPayResult

type CondPayResult struct {

	// serialized ConditionalPay
	CondPay []byte `protobuf:"bytes,1,opt,name=cond_pay,json=condPay,proto3" json:"cond_pay,omitempty"`
	Amount  []byte `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 3

func (*CondPayResult) Descriptor deprecated

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

Deprecated: Use CondPayResult.ProtoReflect.Descriptor instead.

func (*CondPayResult) GetAmount

func (x *CondPayResult) GetAmount() []byte

func (*CondPayResult) GetCondPay

func (x *CondPayResult) GetCondPay() []byte

func (*CondPayResult) ProtoMessage

func (*CondPayResult) ProtoMessage()

func (*CondPayResult) ProtoReflect added in v1.1.0

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

func (*CondPayResult) Reset

func (x *CondPayResult) Reset()

func (*CondPayResult) String

func (x *CondPayResult) String() string

type Condition

type Condition struct {
	ConditionType ConditionType `` /* 127-byte string literal not displayed */
	// one of the following:
	// 1. hash of the secret preimage
	HashLock []byte `protobuf:"bytes,2,opt,name=hash_lock,json=hashLock,proto3" json:"hash_lock,omitempty"`
	// 2. onchain deployed contract
	DeployedContractAddress []byte `` /* 132-byte string literal not displayed */
	// 3. offchain virtual contract
	VirtualContractAddress []byte `` /* 129-byte string literal not displayed */
	ArgsQueryFinalization  []byte `` /* 126-byte string literal not displayed */
	ArgsQueryOutcome       []byte `protobuf:"bytes,6,opt,name=args_query_outcome,json=argsQueryOutcome,proto3" json:"args_query_outcome,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 7

func (*Condition) Descriptor deprecated

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

Deprecated: Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) GetArgsQueryFinalization

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

func (*Condition) GetArgsQueryOutcome

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

func (*Condition) GetConditionType

func (x *Condition) GetConditionType() ConditionType

func (*Condition) GetDeployedContractAddress

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

func (*Condition) GetHashLock

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

func (*Condition) GetVirtualContractAddress

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

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 ConditionType

type ConditionType int32
const (
	ConditionType_HASH_LOCK         ConditionType = 0
	ConditionType_DEPLOYED_CONTRACT ConditionType = 1
	ConditionType_VIRTUAL_CONTRACT  ConditionType = 2
)

func (ConditionType) Descriptor added in v1.1.0

func (ConditionType) Enum added in v1.1.0

func (x ConditionType) Enum() *ConditionType

func (ConditionType) EnumDescriptor deprecated

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

Deprecated: Use ConditionType.Descriptor instead.

func (ConditionType) Number added in v1.1.0

func (ConditionType) String

func (x ConditionType) String() string

func (ConditionType) Type added in v1.1.0

type ConditionalPay

type ConditionalPay struct {

	// pay_timestamp is set by payment source, to ensure no same condpay between src-dst
	// global unique pay id used on-chain is computed as hash(hash(cond_pay), pay_resolver_address)
	PayTimestamp uint64 `protobuf:"varint,1,opt,name=pay_timestamp,json=payTimestamp,proto3" json:"pay_timestamp,omitempty"`
	// src and dest are public keys of payment sender and receiver used to vouch the payment result.
	// For simplicity, current off-chain backend implementation requires these two fields to be the
	// sender and receiver account addresses. With better off-chain communication protocols in the
	// future, these two fields will not need to be the same with the actual sender and receiver
	// account addresses, and can be randomly changed by the sender and receiver to preserve privacy.
	Src  []byte `protobuf:"bytes,2,opt,name=src,proto3" json:"src,omitempty"`
	Dest []byte `protobuf:"bytes,3,opt,name=dest,proto3" json:"dest,omitempty"`
	// list of generic conditions for the payment
	Conditions []*Condition `protobuf:"bytes,4,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// transfer_func :: [ConditionResult] -> TokenTransfer
	// transfer_func.max_transfer.receiver.account is not needed for unicast payment
	TransferFunc *TransferFunction `protobuf:"bytes,5,opt,name=transfer_func,json=transferFunc,proto3" json:"transfer_func,omitempty"`
	// resolve_deadline is the deadline for a cond_pay to be resolved on chain in the
	// pay registry by either condition or vouched results, and the payment result
	// is finalized after resolve_deadline.
	// Payment channel peers should apply a safe_margin for off-chain processing,
	// i.e., should take dispute action before [resolve_deadline - safe_margin]
	ResolveDeadline uint64 `protobuf:"varint,6,opt,name=resolve_deadline,json=resolveDeadline,proto3" json:"resolve_deadline,omitempty"`
	// resolve_timeout is the dispute window after a resolve payment request is submitted
	ResolveTimeout uint64 `protobuf:"varint,7,opt,name=resolve_timeout,json=resolveTimeout,proto3" json:"resolve_timeout,omitempty"`
	PayResolver    []byte `protobuf:"bytes,8,opt,name=pay_resolver,json=payResolver,proto3" json:"pay_resolver,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 9

func (*ConditionalPay) Descriptor deprecated

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

Deprecated: Use ConditionalPay.ProtoReflect.Descriptor instead.

func (*ConditionalPay) GetConditions

func (x *ConditionalPay) GetConditions() []*Condition

func (*ConditionalPay) GetDest

func (x *ConditionalPay) GetDest() []byte

func (*ConditionalPay) GetPayResolver

func (x *ConditionalPay) GetPayResolver() []byte

func (*ConditionalPay) GetPayTimestamp

func (x *ConditionalPay) GetPayTimestamp() uint64

func (*ConditionalPay) GetResolveDeadline

func (x *ConditionalPay) GetResolveDeadline() uint64

func (*ConditionalPay) GetResolveTimeout

func (x *ConditionalPay) GetResolveTimeout() uint64

func (*ConditionalPay) GetSrc

func (x *ConditionalPay) GetSrc() []byte

func (*ConditionalPay) GetTransferFunc

func (x *ConditionalPay) GetTransferFunc() *TransferFunction

func (*ConditionalPay) ProtoMessage

func (*ConditionalPay) ProtoMessage()

func (*ConditionalPay) ProtoReflect added in v1.1.0

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

func (*ConditionalPay) Reset

func (x *ConditionalPay) Reset()

func (*ConditionalPay) String

func (x *ConditionalPay) String() string

type CooperativeSettleInfo

type CooperativeSettleInfo struct {
	ChannelId []byte `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// contracts should require seq_num > both seq_nums of two SimplexPaymentChannel
	SeqNum uint64 `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	// final balance distribution without any conditional payments
	SettleBalance  []*AccountAmtPair `protobuf:"bytes,3,rep,name=settle_balance,json=settleBalance,proto3" json:"settle_balance,omitempty"`
	SettleDeadline uint64            `protobuf:"varint,4,opt,name=settle_deadline,json=settleDeadline,proto3" json:"settle_deadline,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 5

func (*CooperativeSettleInfo) Descriptor deprecated

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

Deprecated: Use CooperativeSettleInfo.ProtoReflect.Descriptor instead.

func (*CooperativeSettleInfo) GetChannelId

func (x *CooperativeSettleInfo) GetChannelId() []byte

func (*CooperativeSettleInfo) GetSeqNum

func (x *CooperativeSettleInfo) GetSeqNum() uint64

func (*CooperativeSettleInfo) GetSettleBalance

func (x *CooperativeSettleInfo) GetSettleBalance() []*AccountAmtPair

func (*CooperativeSettleInfo) GetSettleDeadline

func (x *CooperativeSettleInfo) GetSettleDeadline() uint64

func (*CooperativeSettleInfo) ProtoMessage

func (*CooperativeSettleInfo) ProtoMessage()

func (*CooperativeSettleInfo) ProtoReflect added in v1.1.0

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

func (*CooperativeSettleInfo) Reset

func (x *CooperativeSettleInfo) Reset()

func (*CooperativeSettleInfo) String

func (x *CooperativeSettleInfo) String() string

type CooperativeWithdrawInfo

type CooperativeWithdrawInfo struct {
	ChannelId        []byte          `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	SeqNum           uint64          `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	Withdraw         *AccountAmtPair `protobuf:"bytes,3,opt,name=withdraw,proto3" json:"withdraw,omitempty"`
	WithdrawDeadline uint64          `protobuf:"varint,4,opt,name=withdraw_deadline,json=withdrawDeadline,proto3" json:"withdraw_deadline,omitempty"`
	// if non-zero, do balance transfer to the recipient channel
	// instead of withdraw to the account
	RecipientChannelId []byte `protobuf:"bytes,5,opt,name=recipient_channel_id,json=recipientChannelId,proto3" json:"recipient_channel_id,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 6

func (*CooperativeWithdrawInfo) Descriptor deprecated

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

Deprecated: Use CooperativeWithdrawInfo.ProtoReflect.Descriptor instead.

func (*CooperativeWithdrawInfo) GetChannelId

func (x *CooperativeWithdrawInfo) GetChannelId() []byte

func (*CooperativeWithdrawInfo) GetRecipientChannelId

func (x *CooperativeWithdrawInfo) GetRecipientChannelId() []byte

func (*CooperativeWithdrawInfo) GetSeqNum

func (x *CooperativeWithdrawInfo) GetSeqNum() uint64

func (*CooperativeWithdrawInfo) GetWithdraw

func (x *CooperativeWithdrawInfo) GetWithdraw() *AccountAmtPair

func (*CooperativeWithdrawInfo) GetWithdrawDeadline

func (x *CooperativeWithdrawInfo) GetWithdrawDeadline() uint64

func (*CooperativeWithdrawInfo) ProtoMessage

func (*CooperativeWithdrawInfo) ProtoMessage()

func (*CooperativeWithdrawInfo) ProtoReflect added in v1.1.0

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

func (*CooperativeWithdrawInfo) Reset

func (x *CooperativeWithdrawInfo) Reset()

func (*CooperativeWithdrawInfo) String

func (x *CooperativeWithdrawInfo) String() string

type PayIdList

type PayIdList struct {

	// array of ids of serialized ConditionalPay
	// pay_id is computed as hash(hash(cond_pay), pay_resolver_address)
	PayIds [][]byte `protobuf:"bytes,1,rep,name=pay_ids,json=payIds,proto3" json:"pay_ids,omitempty"`
	// hash of serialized next PayIdList
	NextListHash []byte `protobuf:"bytes,2,opt,name=next_list_hash,json=nextListHash,proto3" json:"next_list_hash,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 3

func (*PayIdList) Descriptor deprecated

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

Deprecated: Use PayIdList.ProtoReflect.Descriptor instead.

func (*PayIdList) GetNextListHash

func (x *PayIdList) GetNextListHash() []byte

func (*PayIdList) GetPayIds

func (x *PayIdList) GetPayIds() [][]byte

func (*PayIdList) ProtoMessage

func (*PayIdList) ProtoMessage()

func (*PayIdList) ProtoReflect added in v1.1.0

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

func (*PayIdList) Reset

func (x *PayIdList) Reset()

func (*PayIdList) String

func (x *PayIdList) String() string

type PaymentChannelInitializer

type PaymentChannelInitializer struct {

	// require an ascending order based on addresses of init_distribution.distribution[].account
	InitDistribution *TokenDistribution `protobuf:"bytes,1,opt,name=init_distribution,json=initDistribution,proto3" json:"init_distribution,omitempty"`
	OpenDeadline     uint64             `protobuf:"varint,2,opt,name=open_deadline,json=openDeadline,proto3" json:"open_deadline,omitempty"`
	DisputeTimeout   uint64             `protobuf:"varint,3,opt,name=dispute_timeout,json=disputeTimeout,proto3" json:"dispute_timeout,omitempty"`
	// index of channel peer who receives the blockchain native token
	// associated with the transaction (msg.value in case of ETH)
	MsgValueReceiver uint64 `protobuf:"varint,4,opt,name=msg_value_receiver,json=msgValueReceiver,proto3" json:"msg_value_receiver,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 5

func (*PaymentChannelInitializer) Descriptor deprecated

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

Deprecated: Use PaymentChannelInitializer.ProtoReflect.Descriptor instead.

func (*PaymentChannelInitializer) GetDisputeTimeout

func (x *PaymentChannelInitializer) GetDisputeTimeout() uint64

func (*PaymentChannelInitializer) GetInitDistribution

func (x *PaymentChannelInitializer) GetInitDistribution() *TokenDistribution

func (*PaymentChannelInitializer) GetMsgValueReceiver

func (x *PaymentChannelInitializer) GetMsgValueReceiver() uint64

func (*PaymentChannelInitializer) GetOpenDeadline

func (x *PaymentChannelInitializer) GetOpenDeadline() uint64

func (*PaymentChannelInitializer) ProtoMessage

func (*PaymentChannelInitializer) ProtoMessage()

func (*PaymentChannelInitializer) ProtoReflect added in v1.1.0

func (*PaymentChannelInitializer) Reset

func (x *PaymentChannelInitializer) Reset()

func (*PaymentChannelInitializer) String

func (x *PaymentChannelInitializer) String() string

type SimplexPaymentChannel

type SimplexPaymentChannel struct {
	ChannelId []byte `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// aka simplex channel owner.
	PeerFrom []byte `protobuf:"bytes,2,opt,name=peer_from,json=peerFrom,proto3" json:"peer_from,omitempty"`
	SeqNum   uint64 `protobuf:"varint,3,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	// Unconditional token transfer to simplex channel peer, amount increases monotonically.
	TransferToPeer *TokenTransfer `protobuf:"bytes,4,opt,name=transfer_to_peer,json=transferToPeer,proto3" json:"transfer_to_peer,omitempty"`
	// head of the idlist chain of all pending conditional pays.
	PendingPayIds *PayIdList `protobuf:"bytes,5,opt,name=pending_pay_ids,json=pendingPayIds,proto3" json:"pending_pay_ids,omitempty"`
	// The last resolve deadline of all pending conditional pays.
	// confirmSettle must be called after all pending pays have been finalized,
	// namely all pending pays have been resolved in the pay registry,
	// or after the last_pay_resolve_deadline.
	LastPayResolveDeadline uint64 `` /* 132-byte string literal not displayed */
	// total amount of all pending pays.
	TotalPendingAmount []byte `protobuf:"bytes,7,opt,name=total_pending_amount,json=totalPendingAmount,proto3" json:"total_pending_amount,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 8

func (*SimplexPaymentChannel) Descriptor deprecated

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

Deprecated: Use SimplexPaymentChannel.ProtoReflect.Descriptor instead.

func (*SimplexPaymentChannel) GetChannelId

func (x *SimplexPaymentChannel) GetChannelId() []byte

func (*SimplexPaymentChannel) GetLastPayResolveDeadline

func (x *SimplexPaymentChannel) GetLastPayResolveDeadline() uint64

func (*SimplexPaymentChannel) GetPeerFrom

func (x *SimplexPaymentChannel) GetPeerFrom() []byte

func (*SimplexPaymentChannel) GetPendingPayIds

func (x *SimplexPaymentChannel) GetPendingPayIds() *PayIdList

func (*SimplexPaymentChannel) GetSeqNum

func (x *SimplexPaymentChannel) GetSeqNum() uint64

func (*SimplexPaymentChannel) GetTotalPendingAmount

func (x *SimplexPaymentChannel) GetTotalPendingAmount() []byte

func (*SimplexPaymentChannel) GetTransferToPeer

func (x *SimplexPaymentChannel) GetTransferToPeer() *TokenTransfer

func (*SimplexPaymentChannel) ProtoMessage

func (*SimplexPaymentChannel) ProtoMessage()

func (*SimplexPaymentChannel) ProtoReflect added in v1.1.0

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

func (*SimplexPaymentChannel) Reset

func (x *SimplexPaymentChannel) Reset()

func (*SimplexPaymentChannel) String

func (x *SimplexPaymentChannel) String() string

type TokenDistribution

type TokenDistribution struct {
	Token        *TokenInfo        `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Distribution []*AccountAmtPair `protobuf:"bytes,2,rep,name=distribution,proto3" json:"distribution,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 3

func (*TokenDistribution) Descriptor deprecated

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

Deprecated: Use TokenDistribution.ProtoReflect.Descriptor instead.

func (*TokenDistribution) GetDistribution

func (x *TokenDistribution) GetDistribution() []*AccountAmtPair

func (*TokenDistribution) GetToken

func (x *TokenDistribution) GetToken() *TokenInfo

func (*TokenDistribution) ProtoMessage

func (*TokenDistribution) ProtoMessage()

func (*TokenDistribution) ProtoReflect added in v1.1.0

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

func (*TokenDistribution) Reset

func (x *TokenDistribution) Reset()

func (*TokenDistribution) String

func (x *TokenDistribution) String() string

type TokenInfo

type TokenInfo struct {
	TokenType    TokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,proto3,enum=entity.TokenType" json:"token_type,omitempty"`
	TokenAddress []byte    `protobuf:"bytes,2,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 3

func (*TokenInfo) Descriptor deprecated

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

Deprecated: Use TokenInfo.ProtoReflect.Descriptor instead.

func (*TokenInfo) GetTokenAddress

func (x *TokenInfo) GetTokenAddress() []byte

func (*TokenInfo) GetTokenType

func (x *TokenInfo) GetTokenType() 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 TokenTransfer

type TokenTransfer struct {
	Token    *TokenInfo      `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Receiver *AccountAmtPair `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 3

func (*TokenTransfer) Descriptor deprecated

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

Deprecated: Use TokenTransfer.ProtoReflect.Descriptor instead.

func (*TokenTransfer) GetReceiver

func (x *TokenTransfer) GetReceiver() *AccountAmtPair

func (*TokenTransfer) GetToken

func (x *TokenTransfer) GetToken() *TokenInfo

func (*TokenTransfer) ProtoMessage

func (*TokenTransfer) ProtoMessage()

func (*TokenTransfer) ProtoReflect added in v1.1.0

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

func (*TokenTransfer) Reset

func (x *TokenTransfer) Reset()

func (*TokenTransfer) String

func (x *TokenTransfer) String() string

type TokenType

type TokenType int32
const (
	TokenType_INVALID TokenType = 0
	TokenType_ETH     TokenType = 1
	TokenType_ERC20   TokenType = 2
)

func (TokenType) Descriptor added in v1.1.0

func (TokenType) Descriptor() protoreflect.EnumDescriptor

func (TokenType) Enum added in v1.1.0

func (x TokenType) Enum() *TokenType

func (TokenType) EnumDescriptor deprecated

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

Deprecated: Use TokenType.Descriptor instead.

func (TokenType) Number added in v1.1.0

func (x TokenType) Number() protoreflect.EnumNumber

func (TokenType) String

func (x TokenType) String() string

func (TokenType) Type added in v1.1.0

type TransferFunction

type TransferFunction struct {

	// Return transfer amount based on condition results.
	// TransferFunctionType is sufficient for simple functions such as
	// BOOLEAN_AND, BOOLEAN_OR, NUMERIC_ADD, NUMERIC_MAX, and NUMERIC_MIN.
	// When logic_type is NUMERIC_*, hashlock condition is always treated as BOOLEAN_AND
	// to other conditions, i.e., payment only happens when hash preimages are revealed.
	LogicType   TransferFunctionType `protobuf:"varint,1,opt,name=logic_type,json=logicType,proto3,enum=entity.TransferFunctionType" json:"logic_type,omitempty"`
	MaxTransfer *TokenTransfer       `protobuf:"bytes,2,opt,name=max_transfer,json=maxTransfer,proto3" json:"max_transfer,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 3

func (*TransferFunction) Descriptor deprecated

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

Deprecated: Use TransferFunction.ProtoReflect.Descriptor instead.

func (*TransferFunction) GetLogicType

func (x *TransferFunction) GetLogicType() TransferFunctionType

func (*TransferFunction) GetMaxTransfer

func (x *TransferFunction) GetMaxTransfer() *TokenTransfer

func (*TransferFunction) ProtoMessage

func (*TransferFunction) ProtoMessage()

func (*TransferFunction) ProtoReflect added in v1.1.0

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

func (*TransferFunction) Reset

func (x *TransferFunction) Reset()

func (*TransferFunction) String

func (x *TransferFunction) String() string

type TransferFunctionType

type TransferFunctionType int32
const (
	TransferFunctionType_BOOLEAN_AND     TransferFunctionType = 0
	TransferFunctionType_BOOLEAN_OR      TransferFunctionType = 1
	TransferFunctionType_BOOLEAN_CIRCUIT TransferFunctionType = 2
	TransferFunctionType_NUMERIC_ADD     TransferFunctionType = 3
	TransferFunctionType_NUMERIC_MAX     TransferFunctionType = 4
	TransferFunctionType_NUMERIC_MIN     TransferFunctionType = 5
)

func (TransferFunctionType) Descriptor added in v1.1.0

func (TransferFunctionType) Enum added in v1.1.0

func (TransferFunctionType) EnumDescriptor deprecated

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

Deprecated: Use TransferFunctionType.Descriptor instead.

func (TransferFunctionType) Number added in v1.1.0

func (TransferFunctionType) String

func (x TransferFunctionType) String() string

func (TransferFunctionType) Type added in v1.1.0

type VouchedCondPayResult

type VouchedCondPayResult struct {

	// serialized CondPayResult
	CondPayResult []byte `protobuf:"bytes,1,opt,name=cond_pay_result,json=condPayResult,proto3" json:"cond_pay_result,omitempty"`
	SigOfSrc      []byte `protobuf:"bytes,2,opt,name=sig_of_src,json=sigOfSrc,proto3" json:"sig_of_src,omitempty"`
	SigOfDest     []byte `protobuf:"bytes,3,opt,name=sig_of_dest,json=sigOfDest,proto3" json:"sig_of_dest,omitempty"`
	// contains filtered or unexported fields
}

Next Tag: 4

func (*VouchedCondPayResult) Descriptor deprecated

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

Deprecated: Use VouchedCondPayResult.ProtoReflect.Descriptor instead.

func (*VouchedCondPayResult) GetCondPayResult

func (x *VouchedCondPayResult) GetCondPayResult() []byte

func (*VouchedCondPayResult) GetSigOfDest

func (x *VouchedCondPayResult) GetSigOfDest() []byte

func (*VouchedCondPayResult) GetSigOfSrc

func (x *VouchedCondPayResult) GetSigOfSrc() []byte

func (*VouchedCondPayResult) ProtoMessage

func (*VouchedCondPayResult) ProtoMessage()

func (*VouchedCondPayResult) ProtoReflect added in v1.1.0

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

func (*VouchedCondPayResult) Reset

func (x *VouchedCondPayResult) Reset()

func (*VouchedCondPayResult) String

func (x *VouchedCondPayResult) String() string

Jump to

Keyboard shortcuts

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