strongforce

package
v0.0.0-...-2ce015d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2019 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName   = types.ModuleName
	RouterKey    = types.RouterKey
	StoreKey     = types.StoreKey
	TypeStoreKey = types.TypeStoreKey
)

Variables

View Source
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

func NewHandler(keeper Keeper, serverAddress string) sdk.Handler

NewHandler returns a handler for "strongforce" messages.

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

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

func NewAppModule(k Keeper, backendURL string) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

BeginBlock implements module.AppModule

func (AppModule) EndBlock

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) Name

func (AppModule) Name() string

Name implements module.AppModule

func (AppModule) NewHandler

func (am AppModule) NewHandler() types.Handler

NewHandler implements module.AppModule

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() types.Querier

NewQuerierHandler implements module.AppModule

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

QuerierRoute implements module.AppModule

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir types.InvariantRegistry)

RegisterInvariants implements module.AppModule

func (AppModule) Route

func (am AppModule) Route() string

Route 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 NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey types.StoreKey, typeStoreKey types.StoreKey) Keeper

NewKeeper creates a new 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

func (k Keeper) GetContractsStateIterator(ctx types.Context) types.Iterator

GetContractsIterator returns an iterator over all stored contracts

func (Keeper) GetContractsTypeIterator

func (k Keeper) GetContractsTypeIterator(ctx types.Context) types.Iterator

func (Keeper) GetState

func (k Keeper) GetState(ctx types.Context, id []byte) []byte

GetState sets the state of a contract

func (Keeper) GetType

func (k Keeper) GetType(ctx types.Context, id []byte) []byte

GetState sets the state of a contract

func (Keeper) SetState

func (k Keeper) SetState(ctx types.Context, id []byte, data []byte, typeName []byte)

SetState sets the state of a contract

type MsgExecuteAction

type MsgExecuteAction = types.MsgExecuteAction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL