Documentation ¶
Index ¶
- type Executor
- func (executor *Executor) Balance() ([]types.TokenBalance, error)
- func (executor *Executor) CalcSwapId(randomNumberHash ec.Hash, sender string, senderOtherChain string) ([]byte, error)
- func (executor *Executor) Claim(swapId ec.Hash, randomNumber ec.Hash) (string, *common.Error)
- func (executor *Executor) Claimable(swapId ec.Hash) (bool, error)
- func (executor *Executor) GetBalance(addressString string) (*big.Int, error)
- func (executor *Executor) GetBalanceAlertMsg() (string, error)
- func (executor *Executor) GetBlockAndTxs(height int64) (*common.BlockAndTxLogs, error)
- func (executor *Executor) GetChain() string
- func (executor *Executor) GetColdWalletAddress() string
- func (executor *Executor) GetDeputyAddress() string
- func (executor *Executor) GetFetchInterval() time.Duration
- func (executor *Executor) GetHeight() (int64, error)
- func (executor *Executor) GetSentTxStatus(hash string) store.TxStatus
- func (executor *Executor) GetStatus() (interface{}, error)
- func (executor *Executor) GetSwap(swapId ec.Hash) (*common.SwapRequest, error)
- func (executor *Executor) HTLT(randomNumberHash ec.Hash, timestamp int64, heightSpan int64, ...) (string, *common.Error)
- func (executor *Executor) HasSwap(swapId ec.Hash) (bool, error)
- func (executor *Executor) IsSameAddress(addrA string, addrB string) bool
- func (executor *Executor) QuerySwap(swapId []byte) (swap types.AtomicSwap, isExist bool, err error)
- func (executor *Executor) Refund(swapId ec.Hash) (string, *common.Error)
- func (executor *Executor) Refundable(swapId ec.Hash) (bool, error)
- func (executor *Executor) SendAmount(address string, amount *big.Int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct { Config *util.BnbConfig NetworkType types.ChainNetwork RpcClient rpc.Client // contains filtered or unexported fields }
func NewExecutor ¶
func NewExecutor(networkType types.ChainNetwork, cfg *util.BnbConfig) *Executor
func (*Executor) CalcSwapId ¶
func (*Executor) GetBalance ¶
func (*Executor) GetBalanceAlertMsg ¶
func (*Executor) GetBlockAndTxs ¶
func (executor *Executor) GetBlockAndTxs(height int64) (*common.BlockAndTxLogs, error)
func (*Executor) GetColdWalletAddress ¶
func (*Executor) GetDeputyAddress ¶
func (*Executor) GetFetchInterval ¶
func (*Executor) GetSentTxStatus ¶
func (*Executor) IsSameAddress ¶
Click to show internal directories.
Click to hide internal directories.