package
1.2.2
Repository: https://github.com/mapprotocol/compass.git
Documentation: pkg.go.dev

# Functions

CalcAddressType calculate address type of hexAddress.
CalcChecksum calculates checksum by network type and body.
No description provided by the author
MustNew create conflux address by base32 string or hex40 string, if base32OrHex is base32 and networkID is setted it will check if networkID match, it will painc if error occured.
MustNewFromBase32 creates address by base32 string and panic if error.
MustNewFromBytes creates an address from hexAddress byte slice with networkID and panic if error.
MustNewFromCommon creates an address from common.Address with networkID and panic if error.
MustNewFromHex creates address by hex address string with networkID and panic if error.
New create conflux address by base32 string or hex40 string, if base32OrHex is base32 and networkID is passed it will create cfx Address use networkID.
NewBigInt creates a big number with specified uint64 value.
NewBigIntByRaw creates a hexutil.big with specified big.int value.
NewBodyByHexAddress convert concat of version type and hex address to 5 bits slice.
NewBodyByString creates body by base32 string which contains version byte and hex address.
NewBytes creates a hexutil.Bytes with specified input value.
NewEpochNumber creates an instance of Epoch with specified number.
NewEpochNumberBig creates an instance of Epoch with specified big number.
NewEpochNumberUint64 creates an instance of Epoch with specified uint64 number.
NewEpochOrBlockHashWithBlockHash creates an instance of Epoch with specified block hash.
NewEpochOrBlockHashWithEpoch creates an instance of Epoch with specified epoch.
NewFromBase32 creates address by base32 string.
NewFromBytes creates an address from hexAddress byte slice with networkID.
NewFromCommon creates an address from common.Address with networkID.
NewFromHex creates address by hex address string with networkID If not pass networkID, it will be auto completed when it could be obtained form context.
NewNetowrkType creates network type by string.
NewNetworkTypeByID creates network type by network ID.
NewUint creates a hexutil.Uint with specified uint value.
NewUint64 creates a hexutil.Uint64 with specified uint64 value.
NewVersionByte creates version byte by byte.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
gas fee charged.
no gas fee charged.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Const epoch definitions.
Const epoch definitions.
Const epoch definitions.
Const epoch definitions.
Const epoch definitions.
Const epoch definitions.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Epoch represents an epoch in Conflux.
No description provided by the author
Log represents the event in a smart contract.
No description provided by the author
StorageChange represents storage change information of the address.
No description provided by the author
TransactionReceipt represents the transaction execution result in Conflux.
No description provided by the author
No description provided by the author
WebsocketEpochResponse represents result of epoch websocket subscription.

# Type aliases

No description provided by the author
Bloom is a hash type with 256 bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author