statechain

package
v0.0.0-...-855f576 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// folder name for statechain sscli
	StatechainCliFolderName = `.sscli`
)

Variables

This section is empty.

Functions

func MakeCodec

func MakeCodec() *codec.Codec

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) Send

func (scb *StateChainBridge) Send(signed authtypes.StdTx, mode types.TxMode) (common.TxID, error)

Send the signed transaction to statechain

func (*StateChainBridge) Sign

func (scb *StateChainBridge) Sign(txIns []stypes.TxInVoter) (*authtypes.StdTx, error)

Sign the incoming transaction

func (*StateChainBridge) Start

func (scb *StateChainBridge) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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