Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
- func NewHandler(keeper Keeper, serverAddress string) sdk.Handler
- func NewQuerier(keeper Keeper) sdk.Querier
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx types.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx types.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() types.Handler
- func (am AppModule) NewQuerierHandler() types.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir types.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (ab AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (ab AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Connection
- type GenesisContractData
- type GenesisState
- type Keeper
- func (k Keeper) AddCoins(ctx types.Context, addr types.AccAddress, amt types.Coins) (types.Coins, types.Error)
- func (k Keeper) GetContractsStateIterator(ctx types.Context) types.Iterator
- func (k Keeper) GetContractsTypeIterator(ctx types.Context) types.Iterator
- func (k Keeper) GetState(ctx types.Context, id []byte) []byte
- func (k Keeper) GetType(ctx types.Context, id []byte) []byte
- func (k Keeper) SetState(ctx types.Context, id []byte, data []byte, typeName []byte)
- type MsgExecuteAction
Constants ¶
const ( ModuleName = types.ModuleName RouterKey = types.RouterKey StoreKey = types.StoreKey TypeStoreKey = types.TypeStoreKey )
Variables ¶
var ( NewMsgExecuteAction = types.NewMsgExecuteAction RegisterCodec = types.RegisterCodec GetQueryCmd = types.GetQueryCmd GetTxCmd = types.GetTxCmd )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
InitGenesis initializes a Keeper with a GenesisState
func NewHandler ¶
NewHandler returns a handler for "strongforce" messages.
func NewQuerier ¶
NewQuerier returns a querier for strongforce
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates a GenesisState
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements module.AppModule
func NewAppModule ¶
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock implements module.AppModule
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock implements module.AppModule
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx types.Context) json.RawMessage
ExportGenesis implements module.AppModule
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx types.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis implements module.AppModule
func (AppModule) NewHandler ¶
NewHandler implements module.AppModule
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler implements module.AppModule
func (AppModule) QuerierRoute ¶
QuerierRoute implements module.AppModule
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir types.InvariantRegistry)
RegisterInvariants implements module.AppModule
type AppModuleBasic ¶
type AppModuleBasic struct {
// contains filtered or unexported fields
}
AppModuleBasic object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis implements module.AppModuleBasic
func (AppModuleBasic) GetQueryCmd ¶
func (ab AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd implements module.AppModuleBasic
func (AppModuleBasic) GetTxCmd ¶
func (ab AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd implements module.AppModuleBasic
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name implements module.AppModuleBasic
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec implements module.AppModuleBasic
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes implements module.AppModuleBasic
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis implements module.AppModuleBasic
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection represents a connection to the .NET StrongForce app
func NewConnection ¶
func NewConnection(serverAddress string, keeper Keeper) Connection
NewConnection creates a new connection to the .NET StrongForce app
func (*Connection) SendAction ¶
func (c *Connection) SendAction(ctx types.Context, from types.AccAddress, action []byte) types.Result
SendAction sends an action over the connection
type GenesisContractData ¶
type GenesisContractData struct { Address []byte `json:"address"` Data []byte `json:"data"` TypeName []byte `json:"typeName"` }
GenesisContractData contains the genesis information of a strongforce contract
type GenesisState ¶
type GenesisState struct {
ContractData []GenesisContractData `json:"contracts"`
}
GenesisState contains the genesis information of a strongforce network
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState creates a default GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis gets the GenesisState from a Keeper
func NewGenesisState ¶
func NewGenesisState(c []GenesisContractData) GenesisState
NewGenesisState constructs a new GenesisState
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is the keeper for strongforce
func (Keeper) AddCoins ¶
func (k Keeper) AddCoins(ctx types.Context, addr types.AccAddress, amt types.Coins) (types.Coins, types.Error)
AddCoins implements github.com/cosmos/cosmos-types/blob/master/x/distribution/types BankKeeper
func (Keeper) GetContractsStateIterator ¶
GetContractsIterator returns an iterator over all stored contracts
func (Keeper) GetContractsTypeIterator ¶
type MsgExecuteAction ¶
type MsgExecuteAction = types.MsgExecuteAction