Documentation ¶
Index ¶
Constants ¶
View Source
const ( SlotERC20 = 1 SlotNFT = 2 )
Variables ¶
View Source
var ( ErrEventNotFound = errors.New("event not found") ErrPairNotFound = errors.New("pair not found") )
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct { sync.Mutex DB store.Store CustomConfirmedHandler confirm.HashHandler CustomErrHandler confirm.ErrHandler EventMapERC20 map[string]*pb.EventERC20Deposited EventMapNFT map[string]*pb.EventNFTDeposited ConfirmedBlockERC20 pb.ConfirmedBlock ConfirmedBlockNFT pb.ConfirmedBlock // contains filtered or unexported fields }
type CustomConfirmedHandler ¶
type CustomConfirmedHandler confirm.HashHandler
func WithCustomConfirmedHandler ¶
func WithCustomConfirmedHandler(f confirm.HashHandler) CustomConfirmedHandler
func (CustomConfirmedHandler) Apply ¶
func (f CustomConfirmedHandler) Apply(b *Bridge) error
type CustomErrHandler ¶
type CustomErrHandler confirm.ErrHandler
func WithCustomErrHandler ¶
func WithCustomErrHandler(f confirm.ErrHandler) CustomErrHandler
func (CustomErrHandler) Apply ¶
func (f CustomErrHandler) Apply(b *Bridge) error
Click to show internal directories.
Click to hide internal directories.