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.
Click to show internal directories.
Click to hide internal directories.