Documentation
¶
Index ¶
- Constants
- func MakeCodec() *codec.Codec
- 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
Constants ¶
View Source
const (
// folder name for statechain sscli
StatechainCliFolderName = `.sscli`
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.