Documentation ¶
Index ¶
- Constants
- Variables
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type ExecuteEVMFromCosmWasm
- 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) 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) CollectJobFundEvents(ctx sdk.Context) error
- func (k Keeper) ExecuteJob(ctx sdk.Context, definition, payload []byte, ...) 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) ([]consensus.SupportsConsensusQueueAction, error)
- func (k Keeper) TryDeployingLastSmartContractToAllChains(ctx sdk.Context)
- func (k Keeper) VerifyJob(ctx sdk.Context, definition, payload []byte, ...) error
- func (k Keeper) WasmMessengerHandler() wasmutil.MessengerFnc
- func (k Keeper) XChainReferenceIDs(ctx sdk.Context) []xchain.ReferenceID
- func (k Keeper) XChainType() xchain.Type
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") ErrWasmExecuteMessageNotValid = whoops.String("message is not valid") )
View Source
const ( ConsensusTurnstoneMessage = "evm-turnstone-message" ConsensusGetValidatorBalances = "validators-balances" ConsensusCollectFundEvents = "collect-fund-events" SignaturePrefix = "\x19Ethereum Signed Message:\n32" )
Variables ¶
View Source
var SupportedConsensusQueues = []supportedChainInfo{ { // contains filtered or unexported fields }, { // contains filtered or unexported fields }, { // contains filtered or unexported fields }, }
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type ExecuteEVMFromCosmWasm ¶ added in v0.9.0
type ExecuteEVMFromCosmWasm struct { TargetContractInfo struct { ChainReferenceID string `json:"chain_id"` SmartContractAddress string `json:"contract_address"` SmartContractABI string `json:"smart_contract_abi"` CompassID string `json:"compass_id"` } `json:"target_contract_info"` Payload []byte `json:"payload"` }
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) 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) CollectJobFundEvents ¶ added in v0.10.2
func (Keeper) ExecuteJob ¶ added in v0.10.0
func (k Keeper) ExecuteJob(ctx sdk.Context, definition, payload []byte, chainReferenceID xchain.ReferenceID) error
ExecuteJob schedules the definition and payload for execution via consensus queue
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
func (Keeper) XChainReferenceIDs ¶ added in v0.10.0
func (k Keeper) XChainReferenceIDs(ctx sdk.Context) []xchain.ReferenceID
func (Keeper) XChainType ¶ added in v0.10.0
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
- scheduler_job.go
- treasury.go
Click to show internal directories.
Click to hide internal directories.