Documentation
¶
Index ¶
- Variables
- func GetAddGasGwei() uint64
- func GetDepositMaxBatchSize() uint64
- func GetDepositMinBatchSize() uint64
- func GetDepositPollingInterval() uint64
- func GetErc20ColdBootstrapDeposit(addr []byte) *big.Int
- func GetEthColdBootstrapDeposit() *big.Int
- func GetMaxDisputeTimeout() uint64
- func GetMaxGasGwei() uint64
- func GetMaxNumPendingPays() uint64
- func GetMaxPaymentTimeout() uint64
- func GetMinDisputeTimeout() uint64
- func GetMinGasGwei() uint64
- func GetOpenChanWaitSecond() int64
- func GetOspDepositMultiplier() int64
- func GetRefillAmountAndMaxWait(tokenAddr string) (*big.Int, time.Duration)
- func GetRefillPoolThreshold(tokenAddr string) *big.Int
- func GetRefillThreshold(tokenAddr string) *big.Int
- func GetStreamSendTimeoutSecond() uint64
- func GetWaitMinedTxQueryRetryInterval() uint64
- func GetWaitMinedTxQueryTimeout() uint64
- func GetWaitMinedTxTimeout() uint64
- func Init(path string) error
- type DepositConfig
- func (*DepositConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DepositConfig) GetMaxBatchSize() uint64
- func (x *DepositConfig) GetMinBatchSize() uint64
- func (x *DepositConfig) GetPollingIntervalS() uint64
- func (*DepositConfig) ProtoMessage()
- func (x *DepositConfig) ProtoReflect() protoreflect.Message
- func (x *DepositConfig) Reset()
- func (x *DepositConfig) String() string
- type OspToOspOpenConfig
- func (*OspToOspOpenConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OspToOspOpenConfig) GetTokensConfig() map[string]*StandardConfig
- func (*OspToOspOpenConfig) ProtoMessage()
- func (x *OspToOspOpenConfig) ProtoReflect() protoreflect.Message
- func (x *OspToOspOpenConfig) Reset()
- func (x *OspToOspOpenConfig) String() string
- type OspToOspOpenConfigs
- func (*OspToOspOpenConfigs) Descriptor() ([]byte, []int)deprecated
- func (x *OspToOspOpenConfigs) GetConfigs() map[string]*OspToOspOpenConfig
- func (*OspToOspOpenConfigs) ProtoMessage()
- func (x *OspToOspOpenConfigs) ProtoReflect() protoreflect.Message
- func (x *OspToOspOpenConfigs) Reset()
- func (x *OspToOspOpenConfigs) String() string
- type RefillConfig
- func (*RefillConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RefillConfig) GetPoolLowRatio() float64
- func (x *RefillConfig) GetPoolSize() string
- func (x *RefillConfig) GetRefillAmount() string
- func (x *RefillConfig) GetThreshold() string
- func (x *RefillConfig) GetToken() *Token
- func (*RefillConfig) ProtoMessage()
- func (x *RefillConfig) ProtoReflect() protoreflect.Message
- func (x *RefillConfig) Reset()
- func (x *RefillConfig) String() string
- type RefillConfigs
- func (*RefillConfigs) Descriptor() ([]byte, []int)deprecated
- func (x *RefillConfigs) GetConfig() map[string]*RefillConfig
- func (x *RefillConfigs) GetMaxWaitS() uint64
- func (*RefillConfigs) ProtoMessage()
- func (x *RefillConfigs) ProtoReflect() protoreflect.Message
- func (x *RefillConfigs) Reset()
- func (x *RefillConfigs) String() string
- type RuntimeConfig
- func (*RuntimeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RuntimeConfig) GetAddGasGwei() uint64
- func (x *RuntimeConfig) GetDepositConfig() *DepositConfig
- func (x *RuntimeConfig) GetErc20ColdBootstrapDepositDefault() string
- func (x *RuntimeConfig) GetErc20ColdBootstrapDepositMap() map[string]string
- func (x *RuntimeConfig) GetEthColdBootstrapDeposit() string
- func (x *RuntimeConfig) GetLogLevel() string
- func (x *RuntimeConfig) GetMaxDisputeTimeout() uint64
- func (x *RuntimeConfig) GetMaxGasGwei() uint64
- func (x *RuntimeConfig) GetMaxNumPendingPays() uint64
- func (x *RuntimeConfig) GetMaxPaymentTimeout() uint64
- func (x *RuntimeConfig) GetMinDisputeTimeout() uint64
- func (x *RuntimeConfig) GetMinGasGwei() uint64
- func (x *RuntimeConfig) GetOpenChanWaitS() int64
- func (x *RuntimeConfig) GetOspDepositMultiplier() int64
- func (x *RuntimeConfig) GetOspToOspOpenConfigs() *OspToOspOpenConfigs
- func (x *RuntimeConfig) GetRefillConfigs() *RefillConfigs
- func (x *RuntimeConfig) GetStandardConfigs() *StandardConfigs
- func (x *RuntimeConfig) GetStreamSendTimeoutS() uint64
- func (x *RuntimeConfig) GetTcbConfigs() *TcbConfigs
- func (x *RuntimeConfig) GetWaitMinedConfig() *WaitMinedConfig
- func (*RuntimeConfig) ProtoMessage()
- func (x *RuntimeConfig) ProtoReflect() protoreflect.Message
- func (x *RuntimeConfig) Reset()
- func (x *RuntimeConfig) String() string
- type StandardConfig
- func (*StandardConfig) Descriptor() ([]byte, []int)deprecated
- func (x *StandardConfig) GetMatchingRatio() float32
- func (x *StandardConfig) GetMaxDeadlineDelta() uint64
- func (x *StandardConfig) GetMaxDeposit() string
- func (x *StandardConfig) GetMinDeadlineDelta() uint64
- func (x *StandardConfig) GetMinDeposit() string
- func (x *StandardConfig) GetToken() *Token
- func (*StandardConfig) ProtoMessage()
- func (x *StandardConfig) ProtoReflect() protoreflect.Message
- func (x *StandardConfig) Reset()
- func (x *StandardConfig) String() string
- type StandardConfigs
- func (*StandardConfigs) Descriptor() ([]byte, []int)deprecated
- func (x *StandardConfigs) GetConfig() map[string]*StandardConfig
- func (*StandardConfigs) ProtoMessage()
- func (x *StandardConfigs) ProtoReflect() protoreflect.Message
- func (x *StandardConfigs) Reset()
- func (x *StandardConfigs) String() string
- type TcbConfig
- func (*TcbConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TcbConfig) GetMaxOspDeposit() string
- func (x *TcbConfig) GetOnchainBalanceSafeMargin() string
- func (x *TcbConfig) GetRequiredSocialVerification() bool
- func (x *TcbConfig) GetSkipOverCommitCheck() bool
- func (x *TcbConfig) GetToken() *Token
- func (*TcbConfig) ProtoMessage()
- func (x *TcbConfig) ProtoReflect() protoreflect.Message
- func (x *TcbConfig) Reset()
- func (x *TcbConfig) String() string
- type TcbConfigs
- type Token
- type WaitMinedConfig
- func (*WaitMinedConfig) Descriptor() ([]byte, []int)deprecated
- func (x *WaitMinedConfig) GetTxQueryRetryIntervalS() uint64
- func (x *WaitMinedConfig) GetTxQueryTimeoutS() uint64
- func (x *WaitMinedConfig) GetTxTimeoutS() uint64
- func (*WaitMinedConfig) ProtoMessage()
- func (x *WaitMinedConfig) ProtoReflect() protoreflect.Message
- func (x *WaitMinedConfig) Reset()
- func (x *WaitMinedConfig) String() string
Constants ¶
This section is empty.
Variables ¶
var File_config_proto protoreflect.FileDescriptor
Functions ¶
func GetDepositMaxBatchSize ¶
func GetDepositMaxBatchSize() uint64
func GetDepositMinBatchSize ¶
func GetDepositMinBatchSize() uint64
func GetDepositPollingInterval ¶
func GetDepositPollingInterval() uint64
func GetErc20ColdBootstrapDeposit ¶
GetErc20ColdBootstrapDeposit returns osp erc20 deposit cap for cold bootstrap If it's configured in erc20_cold_bootstrap_deposit_map, return the value corresponding to the token addr. Otherwise, returns the default for rtconfig. If rtconfig is empty, return a hard-coded default
func GetEthColdBootstrapDeposit ¶
GetEthColdBootstrapDeposit returns osp eth deposit cap for cold bootstrap Return a hard-coded default if it's not set in rtconfig.
func GetMaxDisputeTimeout ¶
func GetMaxDisputeTimeout() uint64
GetMaxDisputeTimeout returns max_dispute_timeout
func GetMaxNumPendingPays ¶
func GetMaxNumPendingPays() uint64
func GetMaxPaymentTimeout ¶
func GetMaxPaymentTimeout() uint64
func GetMinDisputeTimeout ¶
func GetMinDisputeTimeout() uint64
GetMinDisputeTimeout returns max_dispute_timeout
func GetOpenChanWaitSecond ¶
func GetOpenChanWaitSecond() int64
GetOpenChanWaitSecond returns open_chan_wait_s int64 for easy use with time.XX funcs
func GetOspDepositMultiplier ¶
func GetOspDepositMultiplier() int64
GetOspDepositMultiplier returns osp_deposit_multiplier If not set in rtconfig, returns 10.
func GetRefillPoolThreshold ¶
func GetRefillThreshold ¶
func GetStreamSendTimeoutSecond ¶
func GetStreamSendTimeoutSecond() uint64
GetStreamSendTimeoutSecond returns stream_send_timeout_s
func GetWaitMinedTxQueryRetryInterval ¶
func GetWaitMinedTxQueryRetryInterval() uint64
func GetWaitMinedTxQueryTimeout ¶
func GetWaitMinedTxQueryTimeout() uint64
func GetWaitMinedTxTimeout ¶
func GetWaitMinedTxTimeout() uint64
Types ¶
type DepositConfig ¶
type DepositConfig struct {
// deposit polling interval in seconds
PollingIntervalS uint64 `protobuf:"varint,1,opt,name=polling_interval_s,json=pollingIntervalS,proto3" json:"polling_interval_s,omitempty"`
MinBatchSize uint64 `protobuf:"varint,2,opt,name=min_batch_size,json=minBatchSize,proto3" json:"min_batch_size,omitempty"`
MaxBatchSize uint64 `protobuf:"varint,3,opt,name=max_batch_size,json=maxBatchSize,proto3" json:"max_batch_size,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 4
func (*DepositConfig) Descriptor
deprecated
func (*DepositConfig) Descriptor() ([]byte, []int)
Deprecated: Use DepositConfig.ProtoReflect.Descriptor instead.
func (*DepositConfig) GetMaxBatchSize ¶
func (x *DepositConfig) GetMaxBatchSize() uint64
func (*DepositConfig) GetMinBatchSize ¶
func (x *DepositConfig) GetMinBatchSize() uint64
func (*DepositConfig) GetPollingIntervalS ¶
func (x *DepositConfig) GetPollingIntervalS() uint64
func (*DepositConfig) ProtoMessage ¶
func (*DepositConfig) ProtoMessage()
func (*DepositConfig) ProtoReflect ¶ added in v1.1.0
func (x *DepositConfig) ProtoReflect() protoreflect.Message
func (*DepositConfig) Reset ¶
func (x *DepositConfig) Reset()
func (*DepositConfig) String ¶
func (x *DepositConfig) String() string
type OspToOspOpenConfig ¶
type OspToOspOpenConfig struct {
// tokenAddr -> OneTokenOspToOspOpenConfig
TokensConfig map[string]*StandardConfig `` /* 171-byte string literal not displayed */
// contains filtered or unexported fields
}
Next Tag: 2
func (*OspToOspOpenConfig) Descriptor
deprecated
func (*OspToOspOpenConfig) Descriptor() ([]byte, []int)
Deprecated: Use OspToOspOpenConfig.ProtoReflect.Descriptor instead.
func (*OspToOspOpenConfig) GetTokensConfig ¶
func (x *OspToOspOpenConfig) GetTokensConfig() map[string]*StandardConfig
func (*OspToOspOpenConfig) ProtoMessage ¶
func (*OspToOspOpenConfig) ProtoMessage()
func (*OspToOspOpenConfig) ProtoReflect ¶ added in v1.1.0
func (x *OspToOspOpenConfig) ProtoReflect() protoreflect.Message
func (*OspToOspOpenConfig) Reset ¶
func (x *OspToOspOpenConfig) Reset()
func (*OspToOspOpenConfig) String ¶
func (x *OspToOspOpenConfig) String() string
type OspToOspOpenConfigs ¶
type OspToOspOpenConfigs struct {
// ospAddr -> OspToOspOpenConfig
Configs map[string]*OspToOspOpenConfig `` /* 141-byte string literal not displayed */
// contains filtered or unexported fields
}
Next Tag: 2
func GetOspToOspOpenConfigs ¶
func GetOspToOspOpenConfigs() *OspToOspOpenConfigs
func (*OspToOspOpenConfigs) Descriptor
deprecated
func (*OspToOspOpenConfigs) Descriptor() ([]byte, []int)
Deprecated: Use OspToOspOpenConfigs.ProtoReflect.Descriptor instead.
func (*OspToOspOpenConfigs) GetConfigs ¶
func (x *OspToOspOpenConfigs) GetConfigs() map[string]*OspToOspOpenConfig
func (*OspToOspOpenConfigs) ProtoMessage ¶
func (*OspToOspOpenConfigs) ProtoMessage()
func (*OspToOspOpenConfigs) ProtoReflect ¶ added in v1.1.0
func (x *OspToOspOpenConfigs) ProtoReflect() protoreflect.Message
func (*OspToOspOpenConfigs) Reset ¶
func (x *OspToOspOpenConfigs) Reset()
func (*OspToOspOpenConfigs) String ¶
func (x *OspToOspOpenConfigs) String() string
type RefillConfig ¶
type RefillConfig struct {
Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Threshold string `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
RefillAmount string `protobuf:"bytes,3,opt,name=refill_amount,json=refillAmount,proto3" json:"refill_amount,omitempty"`
PoolSize string `protobuf:"bytes,4,opt,name=pool_size,json=poolSize,proto3" json:"pool_size,omitempty"`
PoolLowRatio float64 `protobuf:"fixed64,5,opt,name=pool_low_ratio,json=poolLowRatio,proto3" json:"pool_low_ratio,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 4
func (*RefillConfig) Descriptor
deprecated
func (*RefillConfig) Descriptor() ([]byte, []int)
Deprecated: Use RefillConfig.ProtoReflect.Descriptor instead.
func (*RefillConfig) GetPoolLowRatio ¶
func (x *RefillConfig) GetPoolLowRatio() float64
func (*RefillConfig) GetPoolSize ¶
func (x *RefillConfig) GetPoolSize() string
func (*RefillConfig) GetRefillAmount ¶
func (x *RefillConfig) GetRefillAmount() string
func (*RefillConfig) GetThreshold ¶
func (x *RefillConfig) GetThreshold() string
func (*RefillConfig) GetToken ¶
func (x *RefillConfig) GetToken() *Token
func (*RefillConfig) ProtoMessage ¶
func (*RefillConfig) ProtoMessage()
func (*RefillConfig) ProtoReflect ¶ added in v1.1.0
func (x *RefillConfig) ProtoReflect() protoreflect.Message
func (*RefillConfig) Reset ¶
func (x *RefillConfig) Reset()
func (*RefillConfig) String ¶
func (x *RefillConfig) String() string
type RefillConfigs ¶
type RefillConfigs struct {
Config map[string]*RefillConfig `` /* 139-byte string literal not displayed */
// max batch waiting time in seconds
MaxWaitS uint64 `protobuf:"varint,2,opt,name=max_wait_s,json=maxWaitS,proto3" json:"max_wait_s,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 3
func GetRefillConfigs ¶
func GetRefillConfigs() *RefillConfigs
func (*RefillConfigs) Descriptor
deprecated
func (*RefillConfigs) Descriptor() ([]byte, []int)
Deprecated: Use RefillConfigs.ProtoReflect.Descriptor instead.
func (*RefillConfigs) GetConfig ¶
func (x *RefillConfigs) GetConfig() map[string]*RefillConfig
func (*RefillConfigs) GetMaxWaitS ¶
func (x *RefillConfigs) GetMaxWaitS() uint64
func (*RefillConfigs) ProtoMessage ¶
func (*RefillConfigs) ProtoMessage()
func (*RefillConfigs) ProtoReflect ¶ added in v1.1.0
func (x *RefillConfigs) ProtoReflect() protoreflect.Message
func (*RefillConfigs) Reset ¶
func (x *RefillConfigs) Reset()
func (*RefillConfigs) String ¶
func (x *RefillConfigs) String() string
type RuntimeConfig ¶
type RuntimeConfig struct {
// wait seconds before accepting next open chan request
// if 0, means no wait. negative values are treated as 0
// use int64 instead of uint64 because golang time use int64
OpenChanWaitS int64 `protobuf:"varint,1,opt,name=open_chan_wait_s,json=openChanWaitS,proto3" json:"open_chan_wait_s,omitempty"`
// minimal gas price in gwei for onchain tx
// 0 isn't a valid value
MinGasGwei uint64 `protobuf:"varint,2,opt,name=min_gas_gwei,json=minGasGwei,proto3" json:"min_gas_gwei,omitempty"`
// max gas price in gwei for onchain tx
// if 0, means no max
MaxGasGwei uint64 `protobuf:"varint,3,opt,name=max_gas_gwei,json=maxGasGwei,proto3" json:"max_gas_gwei,omitempty"`
// add gas price to the suggested price to speed up transaction
AddGasGwei uint64 `protobuf:"varint,20,opt,name=add_gas_gwei,json=addGasGwei,proto3" json:"add_gas_gwei,omitempty"`
// wait time (in seconds) of stream send.
StreamSendTimeoutS uint64 `protobuf:"varint,4,opt,name=stream_send_timeout_s,json=streamSendTimeoutS,proto3" json:"stream_send_timeout_s,omitempty"`
// decimal. eth deposit cap for cold bootstrap
EthColdBootstrapDeposit string `` /* 134-byte string literal not displayed */
// key:hex without "0x", value:decimal. Per token deposit cap for cold bootstrap
Erc20ColdBootstrapDepositMap map[string]string `` /* 225-byte string literal not displayed */
// decimal. Default token deposit cap for cold bootstrap
Erc20ColdBootstrapDepositDefault string `` /* 163-byte string literal not displayed */
// Multiplier cap
OspDepositMultiplier int64 `protobuf:"varint,8,opt,name=osp_deposit_multiplier,json=ospDepositMultiplier,proto3" json:"osp_deposit_multiplier,omitempty"`
// max dispute timeout in open channel request.
MaxDisputeTimeout uint64 `protobuf:"varint,9,opt,name=max_dispute_timeout,json=maxDisputeTimeout,proto3" json:"max_dispute_timeout,omitempty"`
// min dispute timeout in open channel request.
MinDisputeTimeout uint64 `protobuf:"varint,10,opt,name=min_dispute_timeout,json=minDisputeTimeout,proto3" json:"min_dispute_timeout,omitempty"`
// log level: trace, debug, info, warn, error, fatal, panic
LogLevel string `protobuf:"bytes,11,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
TcbConfigs *TcbConfigs `protobuf:"bytes,12,opt,name=tcb_configs,json=tcbConfigs,proto3" json:"tcb_configs,omitempty"`
StandardConfigs *StandardConfigs `protobuf:"bytes,13,opt,name=standard_configs,json=standardConfigs,proto3" json:"standard_configs,omitempty"`
// OspToOsp config is keyed by pair (peerOspAddr, tokenAddr)
OspToOspOpenConfigs *OspToOspOpenConfigs `protobuf:"bytes,17,opt,name=osp_to_osp_open_configs,json=ospToOspOpenConfigs,proto3" json:"osp_to_osp_open_configs,omitempty"`
// max payment timeout (in seconds) the OSP accepts
MaxPaymentTimeout uint64 `protobuf:"varint,14,opt,name=max_payment_timeout,json=maxPaymentTimeout,proto3" json:"max_payment_timeout,omitempty"`
// max number of pending pay IDs in the simplex state
MaxNumPendingPays uint64 `protobuf:"varint,15,opt,name=max_num_pending_pays,json=maxNumPendingPays,proto3" json:"max_num_pending_pays,omitempty"`
// channel refill configuration
RefillConfigs *RefillConfigs `protobuf:"bytes,16,opt,name=refill_configs,json=refillConfigs,proto3" json:"refill_configs,omitempty"`
// deposit configuration
DepositConfig *DepositConfig `protobuf:"bytes,18,opt,name=deposit_config,json=depositConfig,proto3" json:"deposit_config,omitempty"`
// config to wait mined tx
WaitMinedConfig *WaitMinedConfig `protobuf:"bytes,19,opt,name=wait_mined_config,json=waitMinedConfig,proto3" json:"wait_mined_config,omitempty"`
// contains filtered or unexported fields
}
RuntimeConfig is the data object holding configs reloadable during runtime numeric field name should end with unit, eg. gwei, ms Next tag: 21
func (*RuntimeConfig) Descriptor
deprecated
func (*RuntimeConfig) Descriptor() ([]byte, []int)
Deprecated: Use RuntimeConfig.ProtoReflect.Descriptor instead.
func (*RuntimeConfig) GetAddGasGwei ¶
func (x *RuntimeConfig) GetAddGasGwei() uint64
func (*RuntimeConfig) GetDepositConfig ¶
func (x *RuntimeConfig) GetDepositConfig() *DepositConfig
func (*RuntimeConfig) GetErc20ColdBootstrapDepositDefault ¶
func (x *RuntimeConfig) GetErc20ColdBootstrapDepositDefault() string
func (*RuntimeConfig) GetErc20ColdBootstrapDepositMap ¶
func (x *RuntimeConfig) GetErc20ColdBootstrapDepositMap() map[string]string
func (*RuntimeConfig) GetEthColdBootstrapDeposit ¶
func (x *RuntimeConfig) GetEthColdBootstrapDeposit() string
func (*RuntimeConfig) GetLogLevel ¶
func (x *RuntimeConfig) GetLogLevel() string
func (*RuntimeConfig) GetMaxDisputeTimeout ¶
func (x *RuntimeConfig) GetMaxDisputeTimeout() uint64
func (*RuntimeConfig) GetMaxGasGwei ¶
func (x *RuntimeConfig) GetMaxGasGwei() uint64
func (*RuntimeConfig) GetMaxNumPendingPays ¶
func (x *RuntimeConfig) GetMaxNumPendingPays() uint64
func (*RuntimeConfig) GetMaxPaymentTimeout ¶
func (x *RuntimeConfig) GetMaxPaymentTimeout() uint64
func (*RuntimeConfig) GetMinDisputeTimeout ¶
func (x *RuntimeConfig) GetMinDisputeTimeout() uint64
func (*RuntimeConfig) GetMinGasGwei ¶
func (x *RuntimeConfig) GetMinGasGwei() uint64
func (*RuntimeConfig) GetOpenChanWaitS ¶
func (x *RuntimeConfig) GetOpenChanWaitS() int64
func (*RuntimeConfig) GetOspDepositMultiplier ¶
func (x *RuntimeConfig) GetOspDepositMultiplier() int64
func (*RuntimeConfig) GetOspToOspOpenConfigs ¶
func (x *RuntimeConfig) GetOspToOspOpenConfigs() *OspToOspOpenConfigs
func (*RuntimeConfig) GetRefillConfigs ¶
func (x *RuntimeConfig) GetRefillConfigs() *RefillConfigs
func (*RuntimeConfig) GetStandardConfigs ¶
func (x *RuntimeConfig) GetStandardConfigs() *StandardConfigs
func (*RuntimeConfig) GetStreamSendTimeoutS ¶
func (x *RuntimeConfig) GetStreamSendTimeoutS() uint64
func (*RuntimeConfig) GetTcbConfigs ¶
func (x *RuntimeConfig) GetTcbConfigs() *TcbConfigs
func (*RuntimeConfig) GetWaitMinedConfig ¶
func (x *RuntimeConfig) GetWaitMinedConfig() *WaitMinedConfig
func (*RuntimeConfig) ProtoMessage ¶
func (*RuntimeConfig) ProtoMessage()
func (*RuntimeConfig) ProtoReflect ¶ added in v1.1.0
func (x *RuntimeConfig) ProtoReflect() protoreflect.Message
func (*RuntimeConfig) Reset ¶
func (x *RuntimeConfig) Reset()
func (*RuntimeConfig) String ¶
func (x *RuntimeConfig) String() string
type StandardConfig ¶
type StandardConfig struct {
Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
MinDeposit string `protobuf:"bytes,5,opt,name=min_deposit,json=minDeposit,proto3" json:"min_deposit,omitempty"`
MaxDeposit string `protobuf:"bytes,2,opt,name=max_deposit,json=maxDeposit,proto3" json:"max_deposit,omitempty"`
MinDeadlineDelta uint64 `protobuf:"varint,3,opt,name=min_deadline_delta,json=minDeadlineDelta,proto3" json:"min_deadline_delta,omitempty"`
MaxDeadlineDelta uint64 `protobuf:"varint,4,opt,name=max_deadline_delta,json=maxDeadlineDelta,proto3" json:"max_deadline_delta,omitempty"`
// matching ratio of approving osp
// deposit of approving osp / deposit of requesting osp <= matching ratio
MatchingRatio float32 `protobuf:"fixed32,6,opt,name=matching_ratio,json=matchingRatio,proto3" json:"matching_ratio,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 7
func (*StandardConfig) Descriptor
deprecated
func (*StandardConfig) Descriptor() ([]byte, []int)
Deprecated: Use StandardConfig.ProtoReflect.Descriptor instead.
func (*StandardConfig) GetMatchingRatio ¶
func (x *StandardConfig) GetMatchingRatio() float32
func (*StandardConfig) GetMaxDeadlineDelta ¶
func (x *StandardConfig) GetMaxDeadlineDelta() uint64
func (*StandardConfig) GetMaxDeposit ¶
func (x *StandardConfig) GetMaxDeposit() string
func (*StandardConfig) GetMinDeadlineDelta ¶
func (x *StandardConfig) GetMinDeadlineDelta() uint64
func (*StandardConfig) GetMinDeposit ¶
func (x *StandardConfig) GetMinDeposit() string
func (*StandardConfig) GetToken ¶
func (x *StandardConfig) GetToken() *Token
func (*StandardConfig) ProtoMessage ¶
func (*StandardConfig) ProtoMessage()
func (*StandardConfig) ProtoReflect ¶ added in v1.1.0
func (x *StandardConfig) ProtoReflect() protoreflect.Message
func (*StandardConfig) Reset ¶
func (x *StandardConfig) Reset()
func (*StandardConfig) String ¶
func (x *StandardConfig) String() string
type StandardConfigs ¶
type StandardConfigs struct {
// keyed by token addr.
Config map[string]*StandardConfig `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Next Tag: 2
func GetStandardConfigs ¶
func GetStandardConfigs() *StandardConfigs
func (*StandardConfigs) Descriptor
deprecated
func (*StandardConfigs) Descriptor() ([]byte, []int)
Deprecated: Use StandardConfigs.ProtoReflect.Descriptor instead.
func (*StandardConfigs) GetConfig ¶
func (x *StandardConfigs) GetConfig() map[string]*StandardConfig
func (*StandardConfigs) ProtoMessage ¶
func (*StandardConfigs) ProtoMessage()
func (*StandardConfigs) ProtoReflect ¶ added in v1.1.0
func (x *StandardConfigs) ProtoReflect() protoreflect.Message
func (*StandardConfigs) Reset ¶
func (x *StandardConfigs) Reset()
func (*StandardConfigs) String ¶
func (x *StandardConfigs) String() string
type TcbConfig ¶
type TcbConfig struct {
Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
MaxOspDeposit string `protobuf:"bytes,2,opt,name=max_osp_deposit,json=maxOspDeposit,proto3" json:"max_osp_deposit,omitempty"`
OnchainBalanceSafeMargin string `` /* 137-byte string literal not displayed */
RequiredSocialVerification bool `` /* 142-byte string literal not displayed */
SkipOverCommitCheck bool `protobuf:"varint,5,opt,name=skip_over_commit_check,json=skipOverCommitCheck,proto3" json:"skip_over_commit_check,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 6
func (*TcbConfig) Descriptor
deprecated
func (*TcbConfig) GetMaxOspDeposit ¶
func (*TcbConfig) GetOnchainBalanceSafeMargin ¶
func (*TcbConfig) GetRequiredSocialVerification ¶
func (*TcbConfig) GetSkipOverCommitCheck ¶
func (*TcbConfig) ProtoMessage ¶
func (*TcbConfig) ProtoMessage()
func (*TcbConfig) ProtoReflect ¶ added in v1.1.0
func (x *TcbConfig) ProtoReflect() protoreflect.Message
type TcbConfigs ¶
type TcbConfigs struct {
Config map[string]*TcbConfig `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Next Tag: 2
func GetTcbConfigs ¶
func GetTcbConfigs() *TcbConfigs
func (*TcbConfigs) Descriptor
deprecated
func (*TcbConfigs) Descriptor() ([]byte, []int)
Deprecated: Use TcbConfigs.ProtoReflect.Descriptor instead.
func (*TcbConfigs) GetConfig ¶
func (x *TcbConfigs) GetConfig() map[string]*TcbConfig
func (*TcbConfigs) ProtoMessage ¶
func (*TcbConfigs) ProtoMessage()
func (*TcbConfigs) ProtoReflect ¶ added in v1.1.0
func (x *TcbConfigs) ProtoReflect() protoreflect.Message
func (*TcbConfigs) Reset ¶
func (x *TcbConfigs) Reset()
func (*TcbConfigs) String ¶
func (x *TcbConfigs) String() string
type Token ¶
type Token struct {
ErcType string `protobuf:"bytes,1,opt,name=erc_type,json=ercType,proto3" json:"erc_type,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 3
func (*Token) Descriptor
deprecated
func (*Token) GetAddress ¶
func (*Token) GetErcType ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶ added in v1.1.0
func (x *Token) ProtoReflect() protoreflect.Message
type WaitMinedConfig ¶
type WaitMinedConfig struct {
TxTimeoutS uint64 `protobuf:"varint,1,opt,name=tx_timeout_s,json=txTimeoutS,proto3" json:"tx_timeout_s,omitempty"`
TxQueryTimeoutS uint64 `protobuf:"varint,2,opt,name=tx_query_timeout_s,json=txQueryTimeoutS,proto3" json:"tx_query_timeout_s,omitempty"`
TxQueryRetryIntervalS uint64 `` /* 131-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*WaitMinedConfig) Descriptor
deprecated
func (*WaitMinedConfig) Descriptor() ([]byte, []int)
Deprecated: Use WaitMinedConfig.ProtoReflect.Descriptor instead.
func (*WaitMinedConfig) GetTxQueryRetryIntervalS ¶
func (x *WaitMinedConfig) GetTxQueryRetryIntervalS() uint64
func (*WaitMinedConfig) GetTxQueryTimeoutS ¶
func (x *WaitMinedConfig) GetTxQueryTimeoutS() uint64
func (*WaitMinedConfig) GetTxTimeoutS ¶
func (x *WaitMinedConfig) GetTxTimeoutS() uint64
func (*WaitMinedConfig) ProtoMessage ¶
func (*WaitMinedConfig) ProtoMessage()
func (*WaitMinedConfig) ProtoReflect ¶ added in v1.1.0
func (x *WaitMinedConfig) ProtoReflect() protoreflect.Message
func (*WaitMinedConfig) Reset ¶
func (x *WaitMinedConfig) Reset()
func (*WaitMinedConfig) String ¶
func (x *WaitMinedConfig) String() string