Documentation
¶
Index ¶
- func ComputeMessageHash(payloadType uint32, payload []byte, nonce *big.Int) (common.Hash, error)
- func ConvertBigIntToUint256(b *big.Int) *uint256.Int
- func ConvertHashToYuHash(hash common.Hash) (yu_common.Hash, error)
- func ConvertStringToStringArray(s string) []string
- func GenerateNonce() *big.Int
- func GetBlockNumber(ctx context.Context, client *ethclient.Client, confirmations uint64) (uint64, error)
- func GetBlocksInRange(ctx context.Context, cli *ethclient.Client, start, end uint64) ([]*types.Block, error)
- func GetRdoBlockNumber(ctx context.Context, client *rdoclient.Client, confirmations uint64) (uint64, error)
- func GetRdoBlocksInRange(ctx context.Context, cli *rdoclient.Client, start, end uint64) ([]*rdoclient.RdoBlock, error)
- func LoadPrivateKey(envFilePath string, envPramName string) (string, error)
- func Loop(ctx context.Context, period time.Duration, f func())
- func NowUTC() time.Time
- func ObjToJson(obj interface{}) string
- func UnpackLog(c *abi.ABI, out interface{}, event string, log types.Log) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeMessageHash ¶
func ConvertStringToStringArray ¶
ConvertStringToStringArray takes a string with values separated by commas and returns a slice of strings
func GenerateNonce ¶
func GetBlockNumber ¶
func GetBlocksInRange ¶
func GetBlocksInRange(ctx context.Context, cli *ethclient.Client, start, end uint64) ([]*types.Block, error)
GetBlocksInRange gets a batch of blocks for a block range [start, end] inclusive.
func GetRdoBlockNumber ¶
func GetRdoBlocksInRange ¶
func GetRdoBlocksInRange(ctx context.Context, cli *rdoclient.Client, start, end uint64) ([]*rdoclient.RdoBlock, error)
GetBlocksInRange gets a batch of blocks for a block range [start, end] inclusive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.