Documentation ¶
Index ¶
- Constants
- func GetWalletFromPrivKey(privKey string) (wal *wallet.EvmWallet, pKey *ecdsa.PrivateKey, err error)
- func NewApi(l log.Logger, cfg *chain.Config) (chain.ChainAPI, error)
- func NewFinder(l log.Logger, nameToAddrMap map[chain.ContractName]string) *finder
- func NewParser(url string, nameToAddr map[chain.ContractName]string) (*parser, error)
- type BMCMessage
- type BlockNotification
- type BnOptions
- type Client
- type ReceiverCore
- type ReceiverOptions
- type ServiceMessage
- type ServiceMessagePayload
- type VerifierOptions
Constants ¶
View Source
const ( BlockInterval = 2 * time.Second BlockHeightPollInterval = 60 * time.Second )
View Source
const BLACKLIST_MESSAGE = 3
View Source
const CHANGE_TOKEN_LIMIT = 4
Variables ¶
This section is empty.
Functions ¶
func GetWalletFromPrivKey ¶
Types ¶
type BMCMessage ¶
type BlockNotification ¶
type BnOptions ¶
type BnOptions struct { StartHeight uint64 Concurrency uint64 VerifierOptions *VerifierOptions }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
grouped rpc api clients
type ReceiverCore ¶
type ReceiverCore struct { Log log.Logger Opts ReceiverOptions Cls []*ethclient.Client BlockReq ethereum.FilterQuery }
func (*ReceiverCore) ReceiveLoop ¶
func (r *ReceiverCore) ReceiveLoop(ctx context.Context, opts *BnOptions, callback func(v *BlockNotification) error) error
type ReceiverOptions ¶
type ReceiverOptions struct { Verifier *VerifierOptions `json:"verifier"` SyncConcurrency uint64 `json:"syncConcurrency"` }
type ServiceMessage ¶
type ServiceMessagePayload ¶
type VerifierOptions ¶
type VerifierOptions struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.