Documentation ¶
Index ¶
- func GetContractsIDBytes(id uint64) []byte
- func GetContractsIDFromBytes(bz []byte) uint64
- func NewContractAddress(name string) sdk.AccAddress
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendContracts(ctx sdk.Context, contracts types.Contracts) uint64
- func (k Keeper) Contracts(c context.Context, req *types.QueryGetContractsRequest) (*types.QueryGetContractsResponse, error)
- func (k Keeper) ContractsAll(c context.Context, req *types.QueryAllContractsRequest) (*types.QueryAllContractsResponse, error)
- func (k Keeper) Cron(ctx sdk.Context)
- func (k Keeper) Cronjobs(c context.Context, req *types.QueryGetCronjobsRequest) (*types.QueryGetCronjobsResponse, error)
- func (k Keeper) CronjobsAll(c context.Context, req *types.QueryAllCronjobsRequest) (*types.QueryAllCronjobsResponse, error)
- func (k Keeper) ExecuteContract(ctx sdk.Context, name string, sourceCode string, entry string, ...) (string, error)
- func (k Keeper) GetAllContracts(ctx sdk.Context) (list []types.Contracts)
- func (k Keeper) GetAllCronjobs(ctx sdk.Context) (list []types.Cronjobs)
- func (k Keeper) GetAllProgram(ctx sdk.Context) (list []types.Program)
- func (k Keeper) GetAllRomdata(ctx sdk.Context) (list []types.Romdata)
- func (k Keeper) GetContractVersion(program types.Program, version string) uint64
- func (k Keeper) GetContracts(ctx sdk.Context, id uint64) (val types.Contracts, found bool)
- func (k Keeper) GetContractsCount(ctx sdk.Context) uint64
- func (k Keeper) GetCronjobs(ctx sdk.Context, contract string) (val types.Cronjobs, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetProgram(ctx sdk.Context, name string) (val types.Program, found bool)
- func (k Keeper) GetRomdata(ctx sdk.Context, index string) (val types.Romdata, found bool)
- func (k Keeper) InitContract(ctx sdk.Context, name string, sourceCode string, creator sdk.AccAddress, ...) (string, error)
- func (k Keeper) InitFloats(ctx sdk.Context, vm *goja.Runtime, std *goja.Object)
- func (k Keeper) Injectors() []types.Injector
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Program(c context.Context, req *types.QueryGetProgramRequest) (*types.QueryGetProgramResponse, error)
- func (k Keeper) ProgramAll(c context.Context, req *types.QueryAllProgramRequest) (*types.QueryAllProgramResponse, error)
- func (k Keeper) Query(goCtx context.Context, req *types.QueryQueryRequest) (*types.QueryQueryResponse, error)
- func (k Keeper) QueryContract(ctx sdk.Context, name string, sourceCode string, entry string, ...) (string, error)
- func (k Keeper) RemoveContracts(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveCronjobs(ctx sdk.Context, contract string)
- func (k Keeper) RemoveProgram(ctx sdk.Context, name string)
- func (k Keeper) RemoveRomdata(ctx sdk.Context, index string)
- func (k Keeper) Romdata(c context.Context, req *types.QueryGetRomdataRequest) (*types.QueryGetRomdataResponse, error)
- func (k Keeper) RomdataAll(c context.Context, req *types.QueryAllRomdataRequest) (*types.QueryAllRomdataResponse, error)
- func (k Keeper) SetContracts(ctx sdk.Context, contracts types.Contracts)
- func (k Keeper) SetContractsCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetCronjobs(ctx sdk.Context, cronjobs types.Cronjobs)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetProgram(ctx sdk.Context, program types.Program)
- func (k Keeper) SetRomdata(ctx sdk.Context, romdata types.Romdata)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContractsIDBytes ¶
GetContractsIDBytes returns the byte representation of the ID
func GetContractsIDFromBytes ¶
GetContractsIDFromBytes returns ID in uint64 format from a byte array
func NewContractAddress ¶
func NewContractAddress(name string) sdk.AccAddress
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, injectors []types.Injector, ) *Keeper
func (Keeper) AppendContracts ¶
AppendContracts appends a contracts in the store with a new id and update the count
func (Keeper) Contracts ¶
func (k Keeper) Contracts(c context.Context, req *types.QueryGetContractsRequest) (*types.QueryGetContractsResponse, error)
func (Keeper) ContractsAll ¶
func (k Keeper) ContractsAll(c context.Context, req *types.QueryAllContractsRequest) (*types.QueryAllContractsResponse, error)
func (Keeper) Cronjobs ¶
func (k Keeper) Cronjobs(c context.Context, req *types.QueryGetCronjobsRequest) (*types.QueryGetCronjobsResponse, error)
func (Keeper) CronjobsAll ¶
func (k Keeper) CronjobsAll(c context.Context, req *types.QueryAllCronjobsRequest) (*types.QueryAllCronjobsResponse, error)
func (Keeper) ExecuteContract ¶
func (Keeper) GetAllContracts ¶
GetAllContracts returns all contracts
func (Keeper) GetAllCronjobs ¶
GetAllCronjobs returns all cronjobs
func (Keeper) GetAllProgram ¶
GetAllProgram returns all program
func (Keeper) GetAllRomdata ¶
GetAllRomdata returns all romdata
func (Keeper) GetContractVersion ¶
func (Keeper) GetContracts ¶
GetContracts returns a contracts from its id
func (Keeper) GetContractsCount ¶
GetContractsCount get the total number of contracts
func (Keeper) GetCronjobs ¶
GetCronjobs returns a cronjobs from its index
func (Keeper) GetProgram ¶
GetProgram returns a program from its index
func (Keeper) GetRomdata ¶
GetRomdata returns a romdata from its index
func (Keeper) InitContract ¶
func (Keeper) InitFloats ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Program ¶
func (k Keeper) Program(c context.Context, req *types.QueryGetProgramRequest) (*types.QueryGetProgramResponse, error)
func (Keeper) ProgramAll ¶
func (k Keeper) ProgramAll(c context.Context, req *types.QueryAllProgramRequest) (*types.QueryAllProgramResponse, error)
func (Keeper) Query ¶
func (k Keeper) Query(goCtx context.Context, req *types.QueryQueryRequest) (*types.QueryQueryResponse, error)
func (Keeper) QueryContract ¶
func (Keeper) RemoveContracts ¶
RemoveContracts removes a contracts from the store
func (Keeper) RemoveCronjobs ¶
RemoveCronjobs removes a cronjobs from the store
func (Keeper) RemoveProgram ¶
RemoveProgram removes a program from the store
func (Keeper) RemoveRomdata ¶
RemoveRomdata removes a romdata from the store
func (Keeper) Romdata ¶
func (k Keeper) Romdata(c context.Context, req *types.QueryGetRomdataRequest) (*types.QueryGetRomdataResponse, error)
func (Keeper) RomdataAll ¶
func (k Keeper) RomdataAll(c context.Context, req *types.QueryAllRomdataRequest) (*types.QueryAllRomdataResponse, error)
func (Keeper) SetContracts ¶
SetContracts set a specific contracts in the store
func (Keeper) SetContractsCount ¶
SetContractsCount set the total number of contracts
func (Keeper) SetCronjobs ¶
SetCronjobs set a specific cronjobs in the store from its index
func (Keeper) SetProgram ¶
SetProgram set a specific program in the store from its index
Source Files ¶
- contract_running.go
- contracts.go
- cron.go
- cronjobs.go
- floats.go
- grpc_query.go
- grpc_query_contracts.go
- grpc_query_cronjobs.go
- grpc_query_params.go
- grpc_query_program.go
- grpc_query_romdata.go
- grpc_query_vm_query.go
- keeper.go
- msg_server.go
- msg_server_cron.go
- msg_server_execute.go
- msg_server_instantiate.go
- msg_server_store.go
- msg_server_upgrade.go
- params.go
- program.go
- romdata.go