eth

package
v0.3.6-dev1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_ADDRESS_BYTES = 20
	MAX_ADDRESS_BYTES = 32
)

Variables

This section is empty.

Functions

func BridgeLogToEvent

func BridgeLogToEvent(
	log ethcoretypes.Log,
	denom string,
) bridgetypes.BridgeEvent

BridgeLogToEvent converts an Ethereum log from Bridge contract to a BridgeEvent. Note: The format of a dYdX address is [prefix][separator][address][checksum], where `prefix` is `dydx`, `separator` is `1`, `address` is the actual address portion, and `checksum` occupies last 6 characters. An address in Ethereum logs is in hexadecimal format and in Cosmos bech32 format. For example, a 20-byte address in hexadecimal format is 20*8=160 bits, which is 160/5=32 bech32 characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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