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: 0

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