Documentation ¶
Index ¶
- func AddressFromBech32Str(address string) (common.Address, error)
- func AddressesFromBech32StrArray(items []string) ([]common.Address, error)
- func AddressesFromBech32StrItemArray[T any](items []T, addressFunc func(T) string) ([]common.Address, error)
- func Bech32StrFromAddress(address common.Address) string
- func Bech32StrFromBytes(address []byte) string
- func ClearPaginationKey(pagination *query.PageRequest) *query.PageRequest
- func ParseSdkEvent(sdkEvent sdk.Event, fillEvent func(proto.Message)) error
- type EthEventProvider
- type EthEventsRegistry
- type WrongArgsNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressFromBech32Str ¶
AddressFromBech32Str Creates eth address from bech32 address string
func AddressesFromBech32StrArray ¶
AddressesFromBech32StrArray tries to create a slice of common.Address values from a string slice
func AddressesFromBech32StrItemArray ¶
func AddressesFromBech32StrItemArray[T any](items []T, addressFunc func(T) string) ([]common.Address, error)
AddressesFromBech32StrItemArray tries to create a slice of common.Address values from arbitrary slice
func Bech32StrFromAddress ¶
Bech32StrFromAddress Creates bech32 address string from eth address
func Bech32StrFromBytes ¶ added in v0.5.4
func ClearPaginationKey ¶
func ClearPaginationKey(pagination *query.PageRequest) *query.PageRequest
Types ¶
type EthEventProvider ¶
EthEventProvider an event provider func definition
type EthEventsRegistry ¶
type EthEventsRegistry struct {
// contains filtered or unexported fields
}
EthEventsRegistry maps sdk.Event types to functions that construct and write to log corresponding eth events
func NewEthEventsRegistry ¶
func NewEthEventsRegistry() *EthEventsRegistry
func (*EthEventsRegistry) EmitEvents ¶
func (r *EthEventsRegistry) EmitEvents(ctx sdk.Context, stateDB vm.StateDB, address *ethcmn.Address) error
EmitEvents iterates through current transaction sdk events and writes eth event to log if sdk event registered in events registry
func (*EthEventsRegistry) RegisterEvent ¶
func (r *EthEventsRegistry) RegisterEvent(eventType string, ethEventProvider EthEventProvider)
RegisterEvent registers a provider for eventType
type WrongArgsNumber ¶
func (WrongArgsNumber) Error ¶
func (e WrongArgsNumber) Error() string