ethereum

package
v0.0.0-...-3050db6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractAddress string = "0x7e79c06E18Af0464382c2cd089A20dc49F2EBf86"
View Source
var FunctionPrefix string = "0x" + EthereumAPI.StringToMethodID("setAnchor(uint256,uint256)") //TODO: update prefix on final smart contract deployment

"0xbbcc0c80"

View Source
var GasPrice string = "0x10FFFF"
View Source
var IgnoreWrongEntries bool = false
View Source
var WalletAddress string = "0x4da6BAe6689f60e30B575Ca7D3B075605135ee86"
View Source
var WalletPassword string = "pass"

Functions

func AnchorBlock

func AnchorBlock(height int64, keyMR string) (string, error)

func AnchorBlockByHeight

func AnchorBlockByHeight(dbo *database.AnchorDatabaseOverlay, height uint32) (done bool, skip bool, err error)

returns done when we're done anchoring returns skip if we can skip anchoring this block

func AnchorBlocksIntoEthereum

func AnchorBlocksIntoEthereum(dbo *database.AnchorDatabaseOverlay) error

func Atoi

func Atoi(s string) int64

func AtoiHex

func AtoiHex(s string) int64

func CheckBalance

func CheckBalance() (int64, error)

func LoadConfig

func LoadConfig(c *config.AnchorConfig)

func ParseInput

func ParseInput(input string) (dBlockHeight uint32, keyMR string)

func SynchronizeEthereumData

func SynchronizeEthereumData(dbo *database.AnchorDatabaseOverlay) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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