Documentation ¶
Index ¶
- func RegisterCodec(codec *codec.Codec)
- type Auxiliaries
- type Auxiliary
- type AuxiliaryKeeper
- type AuxiliaryRequest
- type AuxiliaryResponse
- type Block
- type CLICommand
- type CLIFlag
- type Collection
- type Genesis
- type Keeper
- type Key
- type Mappable
- type Mapper
- type Message
- type Module
- type Parameters
- type Queries
- type Query
- type QueryKeeper
- type QueryRequest
- type QueryResponse
- type Request
- type Response
- type Simulator
- type StoreKeyPrefix
- type Transaction
- type TransactionKeeper
- type TransactionRequest
- type TransactionResponse
- type Transactions
- type WasmMessage
- type WasmMessagePrototype
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCodec ¶
Types ¶
type Auxiliaries ¶
type Auxiliary ¶
type Auxiliary interface { GetName() string GetKeeper() AuxiliaryKeeper Initialize(Mapper, Parameters, ...interface{}) Auxiliary }
type AuxiliaryKeeper ¶
type AuxiliaryKeeper interface { Help(sdkTypes.Context, AuxiliaryRequest) AuxiliaryResponse Keeper }
type AuxiliaryRequest ¶
type AuxiliaryRequest interface { Request }
type AuxiliaryResponse ¶
type AuxiliaryResponse interface { Response }
type Block ¶
type Block interface { Begin(sdkTypes.Context, abciTypes.RequestBeginBlock) End(sdkTypes.Context, abciTypes.RequestEndBlock) Initialize(Mapper, Parameters, ...interface{}) Block }
type CLICommand ¶
type Collection ¶
type Collection interface { GetKey() Key Get(Key) Mappable GetList() []Mappable Iterate(Key, func(Mappable) bool) Fetch(Key) Collection Add(Mappable) Collection Remove(Mappable) Collection Mutate(Mappable) Collection Initialize(sdkTypes.Context, Mapper) Collection }
Collection a list of mappable with create CRUD methods
type Genesis ¶
type Genesis interface { Default() Genesis Validate() error Import(sdkTypes.Context, Mapper, Parameters) Export(sdkTypes.Context, Mapper, Parameters) Genesis Encode() []byte Decode([]byte) Genesis Initialize([]Mappable, []parameters.Parameter) Genesis GetParameterList() []parameters.Parameter GetMappableList() []Mappable }
type Keeper ¶
type Keeper interface {
Initialize(Mapper, Parameters, []interface{}) Keeper
}
type Key ¶
type Key interface { String() string GenerateStoreKeyBytes() []byte // TODO Check is register codec is still required RegisterCodec(*codec.Codec) IsPartial() bool // TODO ** check all key impls Equals(Key) bool }
Key SHOULD be derivable from the object it is referencing and SHOULD not be totally arbitrary or sequential
type Mapper ¶
type Mapper interface { NewCollection(sdkTypes.Context) Collection Create(sdkTypes.Context, Mappable) Read(sdkTypes.Context, Key) Mappable Update(sdkTypes.Context, Mappable) Delete(sdkTypes.Context, Key) Iterate(sdkTypes.Context, Key, func(Mappable) bool) ReverseIterate(sdkTypes.Context, Key, func(Mappable) bool) StoreDecoder(*codec.Codec, kv.Pair, kv.Pair) string Initialize(*sdkTypes.KVStoreKey) Mapper }
type Module ¶
type Module interface { sdkTypesModule.AppModuleBasic sdkTypesModule.AppModule sdkTypesModule.AppModuleSimulation GetAuxiliary(string) Auxiliary DecodeModuleTransactionRequest(string, json.RawMessage) (sdkTypes.Msg, error) Initialize(*sdkTypes.KVStoreKey, params.Subspace, ...interface{}) Module }
type Parameters ¶
type Parameters interface { String() string Validate() error Equal(Parameters) bool Get(ids.ID) parameters.Parameter GetList() []parameters.Parameter Fetch(sdkTypes.Context, ids.ID) Parameters Mutate(sdkTypes.Context, parameters.Parameter) Parameters GetKeyTable() subspace.KeyTable subspace.ParamSet Initialize(params.Subspace) Parameters }
type Query ¶
type Query interface { GetName() string Command(*codec.Codec) *cobra.Command HandleMessage(sdkTypes.Context, abciTypes.RequestQuery) ([]byte, error) RESTQueryHandler(context.CLIContext) http.HandlerFunc Initialize(Mapper, Parameters, ...interface{}) Query }
type QueryKeeper ¶
type QueryKeeper interface { Enquire(sdkTypes.Context, QueryRequest) QueryResponse Keeper }
type QueryRequest ¶
type QueryRequest interface { Request FromCLI(CLICommand, context.CLIContext) (QueryRequest, error) FromMap(map[string]string) (QueryRequest, error) Encode() ([]byte, error) Decode([]byte) (QueryRequest, error) }
type QueryResponse ¶
type Simulator ¶
type Simulator interface { RandomizedGenesisState(*module.SimulationState) WeightedOperations(simulation.AppParams, *codec.Codec) simulation.WeightedOperations WeightedProposalContentList() []simulation.WeightedProposalContent ParamChangeList(*rand.Rand) []simulation.ParamChange }
type StoreKeyPrefix ¶
type Transaction ¶
type Transaction interface { GetName() string Command(*codec.Codec) *cobra.Command HandleMessage(sdkTypes.Context, sdkTypes.Msg) (*sdkTypes.Result, error) RESTRequestHandler(context.CLIContext) http.HandlerFunc RegisterCodec(*codec.Codec) DecodeTransactionRequest(json.RawMessage) (sdkTypes.Msg, error) InitializeKeeper(Mapper, Parameters, ...interface{}) Transaction }
type TransactionKeeper ¶
type TransactionRequest ¶
type TransactionRequest interface { GetBaseReq() rest.BaseReq FromCLI(CLICommand, context.CLIContext) (TransactionRequest, error) FromJSON(json.RawMessage) (TransactionRequest, error) MakeMsg() (sdkTypes.Msg, error) RegisterCodec(*codec.Codec) Request }
type TransactionResponse ¶
type TransactionResponse interface { Response }
type Transactions ¶
type Transactions interface { Get(string) Transaction GetList() []Transaction }
type WasmMessage ¶
type WasmMessage interface { GetType() string GetRawMessage() json.RawMessage }
type WasmMessagePrototype ¶
type WasmMessagePrototype func() WasmMessage
Source Files ¶
- auxilaryRequest.go
- auxiliaries.go
- auxiliary.go
- auxiliaryKeeper.go
- auxiliaryResponse.go
- block.go
- cliCommand.go
- cliFlag.go
- codec.go
- collection.go
- genesis.go
- keeper.go
- key.go
- mappable.go
- mapper.go
- message.go
- module.go
- parameters.go
- queries.go
- query.go
- queryKeeper.go
- queryRequest.go
- queryResponse.go
- request.go
- response.go
- simulator.go
- storeKeyPrefix.go
- transaction.go
- transactionKeeper.go
- transactionRequest.go
- transactionResponse.go
- transactions.go
- wasmMessage.go
Click to show internal directories.
Click to hide internal directories.