application

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	COSMOS   = "COSMOS"
	ETHEREUM = "ETHEREUM"
)

Variables

Functions

func InitializeDB

func InitializeDB(dbPath string, tendermintStart, ethereumStart int64) (*badger.DB, error)

func SetAppConfiguration

func SetAppConfiguration(denom string, address sdkTypes.AccAddress, ethAccountPrivateKey *ecdsa.PrivateKey, ethGasLimit uint64)

func SetCosmosStatus

func SetCosmosStatus(height int64) error

func SetEthereumStatus

func SetEthereumStatus(height int64) error

Types

type Configuration

type Configuration struct {
	PStakeDenom          string
	PStakeAddress        sdkTypes.AccAddress
	EthAccountPrivateKey *ecdsa.PrivateKey
	EthGasLimit          uint64
}

func GetAppConfiguration

func GetAppConfiguration() *Configuration

type EncodingConfiguration

type EncodingConfiguration struct {
	InterfaceRegistry types.InterfaceRegistry
	Marshaler         codec.Marshaler
	TransactionConfig client.TxConfig
	Amino             *codec.LegacyAmino
}

EncodingConfiguration specifies the concrete encoding types to use for a given app. This is provided for compatibility between protobuf and amino implementations.

func MakeEncodingConfig

func MakeEncodingConfig() EncodingConfiguration

MakeEncodingConfig creates an EncodingConfig for testing

type Status

type Status struct {
	Name            string
	LastCheckHeight int64
}

func GetCosmosStatus

func GetCosmosStatus() (Status, error)

func GetEthereumStatus

func GetEthereumStatus() (Status, error)

Directories

Path Synopsis
rest

Jump to

Keyboard shortcuts

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