Documentation ¶
Index ¶
- Constants
- Variables
- func GetNodeAccount(c *http.Client, chainHost, thorAddr string) (types.NodeAccount, error)
- func GetValidators(c *http.Client, chainHost string) (*types.ValidatorsResp, error)
- func MakeCodec() *codec.Codec
- type Keys
- type StateChainBridge
- func (scb *StateChainBridge) EnsureNodeWhitelisted() error
- func (scb *StateChainBridge) EnsureNodeWhitelistedWithTimeout() error
- func (scb *StateChainBridge) GetBinanceChainStartHeight() (uint64, error)
- func (scb *StateChainBridge) Send(signed authtypes.StdTx, mode types.TxMode) (common.TxID, error)
- func (scb *StateChainBridge) Sign(txIns []stypes.TxInVoter) (*authtypes.StdTx, error)
- func (scb *StateChainBridge) Start() error
- func (scb *StateChainBridge) WithRetryableHttpClient(c *retryablehttp.Client)
Constants ¶
View Source
const (
// folder name for thorchain thorcli
StatechainCliFolderName = `.thorcli`
)
Variables ¶
View Source
var EmptyNodeAccount types.NodeAccount
Functions ¶
func GetNodeAccount ¶
GetNodeAccount from thorchain
func GetValidators ¶
Types ¶
type Keys ¶
type Keys struct {
// contains filtered or unexported fields
}
Keys manages all the keys used by thorchain
func (*Keys) GetPrivateKey ¶
GetPrivateKey return the private key
func (*Keys) GetSignerInfo ¶
GetSignerInfo return signer info
type StateChainBridge ¶
type StateChainBridge struct {
// contains filtered or unexported fields
}
StateChainBridge will be used to send tx to statechain
func NewStateChainBridge ¶
func NewStateChainBridge(cfg config.StateChainConfiguration, m *metrics.Metrics) (*StateChainBridge, error)
NewStateChainBridge create a new instance of StateChainBridge
func (*StateChainBridge) EnsureNodeWhitelisted ¶
func (scb *StateChainBridge) EnsureNodeWhitelisted() error
EnsureNodeWhitelisted will call to statechain to check whether the observer had been whitelist or not
func (*StateChainBridge) EnsureNodeWhitelistedWithTimeout ¶
func (scb *StateChainBridge) EnsureNodeWhitelistedWithTimeout() error
func (*StateChainBridge) GetBinanceChainStartHeight ¶
func (scb *StateChainBridge) GetBinanceChainStartHeight() (uint64, error)
GetBinanceChainStartHeight
func (*StateChainBridge) Start ¶
func (scb *StateChainBridge) Start() error
func (*StateChainBridge) WithRetryableHttpClient ¶
func (scb *StateChainBridge) WithRetryableHttpClient(c *retryablehttp.Client)
Click to show internal directories.
Click to hide internal directories.