Documentation
¶
Index ¶
- Constants
- Variables
- func InitializeDB(dbPath string, tendermintStart, ethereumStart int64) (*badger.DB, error)
- func SetAppConfiguration(denom string, address sdkTypes.AccAddress, ...)
- func SetCosmosStatus(height int64) error
- func SetEthereumStatus(height int64) error
- type Configuration
- type EncodingConfiguration
- type Status
Constants ¶
View Source
const ( COSMOS = "COSMOS" ETHEREUM = "ETHEREUM" )
Variables ¶
View Source
var ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distribution.AppModuleBasic{}, gov.NewAppModuleBasic( paramsClient.ProposalHandler, distributionClient.ProposalHandler, upgradeClient.ProposalHandler, upgradeClient.CancelProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, )
Functions ¶
func InitializeDB ¶
func SetAppConfiguration ¶
func SetAppConfiguration(denom string, address sdkTypes.AccAddress, ethAccountPrivateKey *ecdsa.PrivateKey, ethGasLimit uint64)
func SetCosmosStatus ¶
func SetEthereumStatus ¶
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
Click to show internal directories.
Click to hide internal directories.