Documentation ¶
Index ¶
- Constants
- Variables
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ActivateChainReferenceID(ctx sdk.Context, chainReferenceID string, smartContract *types.SmartContract, ...) (retErr error)
- func (k Keeper) AddSmartContractExecutionToConsensus(ctx sdk.Context, chainReferenceID, turnstoneID string, ...) error
- func (k Keeper) AddSupportForNewChain(ctx sdk.Context, chainReferenceID string, chainID uint64, blockHeight uint64, ...) error
- func (k Keeper) AllSmartContractsDeployments(ctx sdk.Context) ([]*types.SmartContractDeployment, error)
- func (k Keeper) ChainReferenceIDs(ctx sdk.Context) []string
- func (k Keeper) ChainType(_ sdk.Context) string
- func (k Keeper) ChainsInfos(goCtx context.Context, req *types.QueryChainsInfosRequest) (*types.QueryChainsInfosResponse, error)
- func (k Keeper) ChangeMinOnChainBalance(ctx sdk.Context, chainReferenceID string, balance *big.Int) error
- func (k Keeper) CheckExternalBalancesForChain(ctx sdk.Context, chainReferenceID string) error
- func (k Keeper) GetAllChainInfos(ctx sdk.Context) ([]*types.ChainInfo, error)
- func (k Keeper) GetChainInfo(ctx sdk.Context, targetChainReferenceID string) (*types.ChainInfo, error)
- func (k Keeper) GetLastSmartContract(ctx sdk.Context) (*types.SmartContract, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetValsetByID(goCtx context.Context, req *types.QueryGetValsetByIDRequest) (*types.QueryGetValsetByIDResponse, error)
- func (k Keeper) HasAnySmartContractDeployment(ctx sdk.Context, chainReferenceID string) (found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ModuleName() string
- func (k Keeper) OnSnapshotBuilt(ctx sdk.Context, snapshot *valsettypes.Snapshot)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) QueryGetSmartContract(goCtx context.Context, req *types.QueryGetSmartContractRequest) (*types.QueryGetSmartContractResponse, error)
- func (k Keeper) QueryGetSmartContractDeployments(goCtx context.Context, req *types.QueryGetSmartContractDeploymentsRequest) (*types.QueryGetSmartContractDeploymentsResponse, error)
- func (k Keeper) RemoveSmartContractDeployment(ctx sdk.Context, smartContractID uint64, chainReferenceID string)
- func (k Keeper) RemoveSupportForChain(ctx sdk.Context, proposal *types.RemoveChainProposal) error
- func (k Keeper) SaveNewSmartContract(ctx sdk.Context, abiJSON string, bytecode []byte) (*types.SmartContract, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SupportedQueues(ctx sdk.Context) (map[string]consensus.SupportsConsensusQueueAction, error)
- func (k Keeper) TryDeployingLastSmartContractToAllChains(ctx sdk.Context)
- func (k Keeper) WasmMessengerHandler() wasmutil.MessengerFnc
Constants ¶
View Source
const ( ErrChainNotFound = whoops.Errorf("chain with chainReferenceID '%s' was not found") ErrChainNotActive = whoops.Errorf("chain with chainReferenceID '%s' is not active") ErrNotEnoughValidatorsForGivenChainReferenceID = whoops.String("not enough validators in the current snapshot to form a proper valset") ErrUnexpectedError = whoops.String("unexpected error") ErrConsensusNotAchieved = whoops.String("evm: consensus not achieved") ErrCannotAddSupportForChainThatExists = whoops.Errorf("chain info already exists: %s") ErrCannotActiveSmartContractThatIsNotDeploying = whoops.String("trying to activate a smart contract that is not currently deploying") )
View Source
const ( ConsensusTurnstoneMessage = "evm-turnstone-message" ConsensusGetValidatorBalances = "validators-balances" SignaturePrefix = "\x19Ethereum Signed Message:\n32" )
Variables ¶
View Source
var SupportedConsensusQueues = map[string]supportedChainInfo{ ConsensusTurnstoneMessage: { // contains filtered or unexported fields }, ConsensusGetValidatorBalances: { // contains filtered or unexported fields }, }
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { ConsensusKeeper types.ConsensusKeeper Valset types.ValsetKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) ActivateChainReferenceID ¶
func (Keeper) AddSmartContractExecutionToConsensus ¶
func (Keeper) AddSupportForNewChain ¶
func (Keeper) AllSmartContractsDeployments ¶ added in v0.6.0
func (Keeper) ChainReferenceIDs ¶ added in v0.8.0
func (Keeper) ChainsInfos ¶
func (k Keeper) ChainsInfos(goCtx context.Context, req *types.QueryChainsInfosRequest) (*types.QueryChainsInfosResponse, error)
func (Keeper) ChangeMinOnChainBalance ¶ added in v0.8.0
func (Keeper) CheckExternalBalancesForChain ¶ added in v0.6.0
func (Keeper) GetAllChainInfos ¶
func (Keeper) GetChainInfo ¶
func (Keeper) GetLastSmartContract ¶
func (Keeper) GetValsetByID ¶
func (k Keeper) GetValsetByID(goCtx context.Context, req *types.QueryGetValsetByIDRequest) (*types.QueryGetValsetByIDResponse, error)
GetValsetByID returns the valset given chain id and valset id. if the valset id is non-pozitive then it returns the latest valset existing.
func (Keeper) HasAnySmartContractDeployment ¶
func (Keeper) ModuleName ¶ added in v0.6.0
func (Keeper) OnSnapshotBuilt ¶
func (k Keeper) OnSnapshotBuilt(ctx sdk.Context, snapshot *valsettypes.Snapshot)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) QueryGetSmartContract ¶ added in v0.6.0
func (k Keeper) QueryGetSmartContract(goCtx context.Context, req *types.QueryGetSmartContractRequest) (*types.QueryGetSmartContractResponse, error)
func (Keeper) QueryGetSmartContractDeployments ¶ added in v0.6.0
func (k Keeper) QueryGetSmartContractDeployments(goCtx context.Context, req *types.QueryGetSmartContractDeploymentsRequest) (*types.QueryGetSmartContractDeploymentsResponse, error)
func (Keeper) RemoveSmartContractDeployment ¶ added in v0.6.0
func (Keeper) RemoveSupportForChain ¶
func (Keeper) SaveNewSmartContract ¶
func (Keeper) SupportedQueues ¶
func (Keeper) TryDeployingLastSmartContractToAllChains ¶
func (Keeper) WasmMessengerHandler ¶
func (k Keeper) WasmMessengerHandler() wasmutil.MessengerFnc
Source Files ¶
- attest.go
- attest_validator_balances.go
- errors.go
- grpc_query.go
- grpc_query_chains_infos.go
- grpc_query_get_smart_contract.go
- grpc_query_get_smart_contract_deployments.go
- grpc_query_get_valset_by_id.go
- grpc_query_params.go
- keeper.go
- msg_server.go
- msg_server_submit_new_job.go
- msg_server_upload_new_smart_contract_temp.go
- params.go
Click to show internal directories.
Click to hide internal directories.