Documentation ¶
Index ¶
- Constants
- Variables
- func CreateTestSeedConfig(t *testing.T) []byte
- func ExportGenesis(ctx sdk.Context, keeper Keeper) *types.GenesisState
- func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState)
- func InitializeNode(homeDir string, enclave EnclaveInterface)
- func IsHexString(s string) bool
- func MakeEncodingConfig() params.EncodingConfig
- func MakeTestCodec() codec.Codec
- func NewLegacyQuerier(keeper Keeper) sdk.Querier
- type EnclaveInterface
- type GrpcQuerier
- func (q GrpcQuerier) EncryptedSeed(c context.Context, req *types.QueryEncryptedSeedRequest) (*types.QueryEncryptedSeedResponse, error)
- func (q GrpcQuerier) RegistrationKey(c context.Context, _ *empty.Empty) (*types.Key, error)
- func (q GrpcQuerier) TxKey(c context.Context, _ *empty.Empty) (*types.Key, error)
- type Keeper
- func (k Keeper) GetMasterCertificate(ctx sdk.Context, certType string) *types.MasterCertificate
- func (k Keeper) ListRegistrationInfo(ctx sdk.Context, cb func([]byte, types.RegistrationNodeInfo) bool)
- func (k Keeper) RegisterNode(ctx sdk.Context, certificate ra.Certificate) ([]byte, error)
- func (k Keeper) SetRegistrationInfo(ctx sdk.Context, certificate types.RegistrationNodeInfo)
Constants ¶
View Source
const ( QueryEncryptedSeed = "seed" QueryMasterCertificate = "master-cert" )
Variables ¶
View Source
var ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distribution.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, ), crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, )
Functions ¶
func CreateTestSeedConfig ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) *types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) types.GenesisState
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState)
InitGenesis sets supply information for genesis.
func InitializeNode ¶
func InitializeNode(homeDir string, enclave EnclaveInterface)
func IsHexString ¶
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
func MakeTestCodec ¶
func NewLegacyQuerier ¶
NewQuerier creates a new querier
Types ¶
type EnclaveInterface ¶
type GrpcQuerier ¶
type GrpcQuerier struct {
// contains filtered or unexported fields
}
func (GrpcQuerier) EncryptedSeed ¶
func (q GrpcQuerier) EncryptedSeed(c context.Context, req *types.QueryEncryptedSeedRequest) (*types.QueryEncryptedSeedResponse, error)
func (GrpcQuerier) RegistrationKey ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper will have a reference to Wasmer with it's own data directory.
func CreateTestInput ¶
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, router sdk.Router, enclave EnclaveInterface, homeDir string, bootstrap bool) Keeper
NewKeeper creates a new contract Keeper instance
func (Keeper) GetMasterCertificate ¶
func (Keeper) ListRegistrationInfo ¶
func (Keeper) RegisterNode ¶
func (Keeper) SetRegistrationInfo ¶
func (k Keeper) SetRegistrationInfo(ctx sdk.Context, certificate types.RegistrationNodeInfo)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.