Documentation ¶
Overview ¶
Aliases to use outside mostly package (app.go).
Keeper implements operations with call.
Registering amino types for multisignature usage.
End blocker implementation.
Multisignature message handler implementation.
Keeper implementation.
Multisig AppModule and AppModuleBasic implementation.
Parameters key table implementation for multisig parameters store.
Querier for multisig module.
Keeper queue to manage calls.
Keeper votes part (votes managment).
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, keeper Keeper, poaKeeper poa.Keeper) []abci.Event
- func NewHandler(keeper Keeper, poaKeeper poa.Keeper) sdk.Handler
- func NewKeyTable() params.KeyTable
- func NewQuerier(msKeeper Keeper) sdk.Querier
- func RegisterCodec(cdc *codec.Codec)
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (app AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (app AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (app AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (app AppModule) NewHandler() sdk.Handler
- func (app AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (module AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *amino.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *amino.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (module AppModuleBasic) RegisterCodec(cdc *amino.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Keeper
- func (keeper Keeper) Confirm(ctx sdk.Context, id uint64, address sdk.AccAddress) sdk.Error
- func (keeper Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
- func (keeper Keeper) GetCall(ctx sdk.Context, id uint64) (types.Call, sdk.Error)
- func (keeper Keeper) GetCallIDByUnique(ctx sdk.Context, uniqueID string) (uint64, sdk.Error)
- func (keeper Keeper) GetConfirmations(ctx sdk.Context, id uint64) (uint64, sdk.Error)
- func (keeper Keeper) GetIntervalToExecute(ctx sdk.Context) (res int64)
- func (keeper Keeper) GetLastId(ctx sdk.Context) uint64
- func (keeper Keeper) GetParams(ctx sdk.Context) types.Params
- func (keeper Keeper) GetQueueIteratorStartEnd(ctx sdk.Context, startHeight, endHeight int64) sdk.Iterator
- func (keeper Keeper) GetQueueIteratorTill(ctx sdk.Context, endHeight int64) sdk.Iterator
- func (keeper Keeper) GetVotes(ctx sdk.Context, id uint64) (types.Votes, sdk.Error)
- func (keeper Keeper) HasCall(ctx sdk.Context, id uint64) bool
- func (keeper Keeper) HasCallByUniqueId(ctx sdk.Context, uniqueID string) bool
- func (keeper Keeper) HasVote(ctx sdk.Context, id uint64, address sdk.AccAddress) (bool, sdk.Error)
- func (keeper Keeper) InitGenesis(ctx sdk.Context, genesisState types.GenesisState)
- func (keeper Keeper) RevokeConfirmation(ctx sdk.Context, id uint64, address sdk.AccAddress) sdk.Error
- func (keeper Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (keeper Keeper) SubmitCall(ctx sdk.Context, msg core.MsMsg, uniqueID string, sender sdk.AccAddress) sdk.Error
Constants ¶
const ( StoreKey = types.ModuleName RouterKey = types.RouterKey ModuleName = types.ModuleName DefaultParamspace = types.DefaultParamspace )
const ( QueryGetCalls = "calls" QueryGetLastId = "lastId" QueryGetCall = "call" QueryGetUnique = "unique" )
Supported queries.
Variables ¶
var ModuleCdc *codec.Codec
Functions ¶
func EndBlocker ¶
Implements end blocker to process active calls and their confirmations.
func NewHandler ¶
Handle messages for multisig module.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
func NewAppModule ¶
Create new PoA module.
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
Process begin block (abci).
func (AppModule) EndBlock ¶
func (app AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
Process end block (abci).
func (AppModule) ExportGenesis ¶
func (app AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
Export genesis.
func (AppModule) InitGenesis ¶
func (app AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
Initialize genesis.
func (AppModule) NewQuerierHandler ¶
Get new querier for PoA module.
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
Register module invariants.
type AppModuleBasic ¶
type AppModuleBasic struct{}
func (AppModuleBasic) DefaultGenesis ¶
func (module AppModuleBasic) DefaultGenesis() json.RawMessage
Generate default genesis.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *amino.Codec) *cobra.Command
Get query commands for CLI.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *amino.Codec) *cobra.Command
Get transaction commands for CLI.
func (AppModuleBasic) RegisterCodec ¶
func (module AppModuleBasic) RegisterCodec(cdc *amino.Codec)
Registering codecs.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
Register REST routes.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
Validate exists genesis.
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Multisignature keeper.
func NewKeeper ¶
func NewKeeper(storeKey sdk.StoreKey, cdc *codec.Codec, router core.Router, paramStore params.Subspace) Keeper
Creating new multisignature keeper implementation.
func (Keeper) ExportGenesis ¶
func (keeper Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
Export genesis data for this module.
func (Keeper) GetCallIDByUnique ¶
Get call by unique id.
func (Keeper) GetConfirmations ¶
Get message confirmations.
func (Keeper) GetIntervalToExecute ¶
Get IntervalToExecute calls parameter.
func (Keeper) GetQueueIteratorStartEnd ¶
func (keeper Keeper) GetQueueIteratorStartEnd(ctx sdk.Context, startHeight, endHeight int64) sdk.Iterator
Getting queue iterator from block height to end block height.
func (Keeper) GetQueueIteratorTill ¶
Get queue iterator till.
func (Keeper) HasCallByUniqueId ¶
Check if has call by unique id.
func (Keeper) InitGenesis ¶
func (keeper Keeper) InitGenesis(ctx sdk.Context, genesisState types.GenesisState)
Initialize genesis for this module.
func (Keeper) RevokeConfirmation ¶
func (keeper Keeper) RevokeConfirmation(ctx sdk.Context, id uint64, address sdk.AccAddress) sdk.Error
Revoke confirmation from call.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Returns queries and txs for multisig CLI.
|
Returns queries and txs for multisig CLI. |
cli
Implements CLI queries multisig modules.
|
Implements CLI queries multisig modules. |
rest
Implements REST API for multisig modules.
|
Implements REST API for multisig modules. |
Implements message type to confirm call.
|
Implements message type to confirm call. |
Create call message type.
|
Create call message type. |