Documentation ¶
Index ¶
- Variables
- func AnchorBlock(height int64, keyMR string) (string, error)
- func AnchorBlockByHeight(dbo *database.AnchorDatabaseOverlay, height uint32) (done bool, skip bool, err error)
- func AnchorBlocksIntoEthereum(dbo *database.AnchorDatabaseOverlay) error
- func Atoi(s string) int64
- func AtoiHex(s string) int64
- func CheckBalance() (int64, error)
- func LoadConfig(c *config.AnchorConfig)
- func ParseInput(input string) (dBlockHeight uint32, keyMR string)
- func SynchronizeEthereumData(dbo *database.AnchorDatabaseOverlay) (int, error)
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 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 CheckBalance ¶
func LoadConfig ¶
func LoadConfig(c *config.AnchorConfig)
func ParseInput ¶
func SynchronizeEthereumData ¶
func SynchronizeEthereumData(dbo *database.AnchorDatabaseOverlay) (int, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.