Documentation
¶
Index ¶
- Variables
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(keeper Keeper) types.QueryServer
- func WithAnalyzerValues(ctx context.Context, vals map[string]map[string]*ast.Expression) context.Context
- type Keeper
- func (k Keeper) AllKeys(goCtx context.Context, req *types.QueryAllKeysRequest) (*types.QueryKeysResponse, error)
- func (k Keeper) ExecuteAnalyzer(ctx sdk.Context, contractAddr, callerAddr sdk.AccAddress, input []byte) ([]byte, map[string]*ast.Expression, error)
- func (k *Keeper) ExportState(ctx sdk.Context, genState *types.GenesisState) error
- func (k Keeper) GetActAuthority() string
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k *Keeper) ImportState(ctx sdk.Context, genState types.GenesisState) error
- func (k Keeper) KeyById(goCtx context.Context, req *types.QueryKeyByIdRequest) (*types.QueryKeyResponse, error)
- func (k Keeper) KeyRequestById(goCtx context.Context, req *types.QueryKeyRequestByIdRequest) (*types.QueryKeyRequestByIdResponse, error)
- func (k Keeper) KeyRequests(goCtx context.Context, req *types.QueryKeyRequestsRequest) (*types.QueryKeyRequestsResponse, error)
- func (k Keeper) KeychainById(goCtx context.Context, req *types.QueryKeychainByIdRequest) (*types.QueryKeychainByIdResponse, error)
- func (k Keeper) Keychains(goCtx context.Context, req *types.QueryKeychainsRequest) (*types.QueryKeychainsResponse, error)
- func (k Keeper) KeysBySpaceId(goCtx context.Context, req *types.QueryKeysBySpaceIdRequest) (*types.QueryKeysResponse, error)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RegisterTemplates(reg *acttypes.TemplatesRegistry)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k Keeper) ShieldExpander() ast.Expander
- func (k Keeper) SignRequestById(goCtx context.Context, req *types.QuerySignRequestByIdRequest) (*types.QuerySignRequestByIdResponse, error)
- func (k Keeper) SignRequests(goCtx context.Context, req *types.QuerySignRequestsRequest) (*types.QuerySignRequestsResponse, error)
- func (k Keeper) SpaceById(goCtx context.Context, req *types.QuerySpaceByIdRequest) (*types.QuerySpaceByIdResponse, error)
- func (k Keeper) Spaces(goCtx context.Context, req *types.QuerySpacesRequest) (*types.QuerySpacesResponse, error)
- func (k Keeper) SpacesByOwner(goCtx context.Context, req *types.QuerySpacesByOwnerRequest) (*types.QuerySpacesResponse, error)
- type KeysKeeper
- func (k KeysKeeper) Coll() collections.Map[uint64, v1beta3.Key]
- func (k KeysKeeper) Get(ctx context.Context, id uint64) (types.Key, error)
- func (k KeysKeeper) KeysBySpace() collections.KeySet[collections.Pair[uint64, uint64]]
- func (k KeysKeeper) New(ctx context.Context, key *types.Key, keyRequest types.KeyRequest) error
- func (k KeysKeeper) Set(ctx context.Context, key *types.Key) error
- type SpacesKeeper
- func (k SpacesKeeper) ByOwner() collections.KeySet[collections.Pair[sdk.AccAddress, uint64]]
- func (k SpacesKeeper) Coll() repo.SeqCollection[types.Space]
- func (k SpacesKeeper) Get(ctx context.Context, id uint64) (types.Space, error)
- func (k SpacesKeeper) Import(ctx context.Context, spaces []types.Space) error
- func (k SpacesKeeper) New(ctx context.Context, space *types.Space) (uint64, error)
- func (k SpacesKeeper) Set(ctx context.Context, space types.Space) error
- type WardenShieldExpander
Constants ¶
This section is empty.
Variables ¶
var ( SpaceSeqPrefix = collections.NewPrefix(0) SpacesPrefix = collections.NewPrefix(1) KeychainSeqPrefix = collections.NewPrefix(2) KeychainsPrefix = collections.NewPrefix(3) KeyPrefix = collections.NewPrefix(5) KeyRequestSeqPrefix = collections.NewPrefix(6) KeyRequestsPrefix = collections.NewPrefix(7) SignRequestSeqPrefix = collections.NewPrefix(8) SignRequestsPrefix = collections.NewPrefix(9) KeysSpaceIndexPrefix = collections.NewPrefix(12) SpacesByOwnerPrefix = collections.NewPrefix(13) )
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQueryServerImpl ¶ added in v0.5.2
func NewQueryServerImpl(keeper Keeper) types.QueryServer
NewQueryServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func WithAnalyzerValues ¶ added in v0.4.0
Types ¶
type Keeper ¶
type Keeper struct { SpacesKeeper SpacesKeeper KeysKeeper KeysKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeService store.KVStoreService, logger log.Logger, authority string, actAuthority string, wardenAuthority sdk.AccAddress, bankKeeper types.BankKeeper, actKeeper types.ActKeeper, getWasmKeeper func() wasmkeeper.Keeper, ) Keeper
func (Keeper) AllKeys ¶ added in v0.1.1
func (k Keeper) AllKeys(goCtx context.Context, req *types.QueryAllKeysRequest) (*types.QueryKeysResponse, error)
func (Keeper) ExecuteAnalyzer ¶ added in v0.4.0
func (k Keeper) ExecuteAnalyzer(ctx sdk.Context, contractAddr, callerAddr sdk.AccAddress, input []byte) ([]byte, map[string]*ast.Expression, error)
ExecuteAnalyzer executes the contract at the specified address, on behalf of an account.
The contract is expected to be an "Analyzer" contract: it will receive ExecuteAnalyzer `input` binary field and will return: - an optional binary (data for signing) - a collection of key-value pairs (key are strings, values are shield's AST nodes)
func (*Keeper) ExportState ¶ added in v0.1.1
func (Keeper) GetActAuthority ¶ added in v0.4.0
GetActAuthority returns the act module's authority.
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (*Keeper) ImportState ¶ added in v0.1.1
func (Keeper) KeyById ¶ added in v0.1.1
func (k Keeper) KeyById(goCtx context.Context, req *types.QueryKeyByIdRequest) (*types.QueryKeyResponse, error)
func (Keeper) KeyRequestById ¶
func (k Keeper) KeyRequestById(goCtx context.Context, req *types.QueryKeyRequestByIdRequest) (*types.QueryKeyRequestByIdResponse, error)
nolint:stylecheck,st1003 revive:disable-next-line var-naming
func (Keeper) KeyRequests ¶
func (k Keeper) KeyRequests(goCtx context.Context, req *types.QueryKeyRequestsRequest) (*types.QueryKeyRequestsResponse, error)
func (Keeper) KeychainById ¶ added in v0.1.1
func (k Keeper) KeychainById(goCtx context.Context, req *types.QueryKeychainByIdRequest) (*types.QueryKeychainByIdResponse, error)
func (Keeper) Keychains ¶
func (k Keeper) Keychains(goCtx context.Context, req *types.QueryKeychainsRequest) (*types.QueryKeychainsResponse, error)
func (Keeper) KeysBySpaceId ¶ added in v0.1.1
func (k Keeper) KeysBySpaceId(goCtx context.Context, req *types.QueryKeysBySpaceIdRequest) (*types.QueryKeysResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RegisterTemplates ¶ added in v0.5.0
func (k Keeper) RegisterTemplates(reg *acttypes.TemplatesRegistry)
func (Keeper) ShieldExpander ¶ added in v0.3.0
func (Keeper) SignRequestById ¶ added in v0.4.0
func (k Keeper) SignRequestById(goCtx context.Context, req *types.QuerySignRequestByIdRequest) (*types.QuerySignRequestByIdResponse, error)
nolint:stylecheck,st1003 revive:disable-next-line var-naming
func (Keeper) SignRequests ¶ added in v0.4.0
func (k Keeper) SignRequests(goCtx context.Context, req *types.QuerySignRequestsRequest) (*types.QuerySignRequestsResponse, error)
func (Keeper) SpaceById ¶ added in v0.1.1
func (k Keeper) SpaceById(goCtx context.Context, req *types.QuerySpaceByIdRequest) (*types.QuerySpaceByIdResponse, error)
func (Keeper) Spaces ¶
func (k Keeper) Spaces(goCtx context.Context, req *types.QuerySpacesRequest) (*types.QuerySpacesResponse, error)
func (Keeper) SpacesByOwner ¶
func (k Keeper) SpacesByOwner(goCtx context.Context, req *types.QuerySpacesByOwnerRequest) (*types.QuerySpacesResponse, error)
type KeysKeeper ¶ added in v0.1.1
type KeysKeeper struct {
// contains filtered or unexported fields
}
func NewKeysKeeper ¶ added in v0.1.1
func NewKeysKeeper(sb *collections.SchemaBuilder, cdc codec.BinaryCodec) KeysKeeper
func (KeysKeeper) Coll ¶ added in v0.1.1
func (k KeysKeeper) Coll() collections.Map[uint64, v1beta3.Key]
func (KeysKeeper) KeysBySpace ¶ added in v0.1.1
func (k KeysKeeper) KeysBySpace() collections.KeySet[collections.Pair[uint64, uint64]]
func (KeysKeeper) New ¶ added in v0.1.1
func (k KeysKeeper) New(ctx context.Context, key *types.Key, keyRequest types.KeyRequest) error
type SpacesKeeper ¶ added in v0.1.1
type SpacesKeeper struct {
// contains filtered or unexported fields
}
func NewSpacesKeeper ¶ added in v0.1.1
func NewSpacesKeeper(sb *collections.SchemaBuilder, cdc codec.BinaryCodec) SpacesKeeper
func (SpacesKeeper) ByOwner ¶ added in v0.1.1
func (k SpacesKeeper) ByOwner() collections.KeySet[collections.Pair[sdk.AccAddress, uint64]]
func (SpacesKeeper) Coll ¶ added in v0.1.1
func (k SpacesKeeper) Coll() repo.SeqCollection[types.Space]
type WardenShieldExpander ¶ added in v0.3.0
type WardenShieldExpander struct {
// contains filtered or unexported fields
}
func (WardenShieldExpander) Expand ¶ added in v0.3.0
func (w WardenShieldExpander) Expand(ctx context.Context, ident *ast.Identifier) (*ast.Expression, error)
Source Files
¶
- genesis.go
- keeper.go
- key_requests.go
- keychain.go
- keys.go
- msg_server.go
- msg_server_add_keychain_admin.go
- msg_server_add_keychain_writer.go
- msg_server_add_space_owner.go
- msg_server_fulfil_key_request.go
- msg_server_fulfil_sign_request.go
- msg_server_new_key_request.go
- msg_server_new_keychain.go
- msg_server_new_sign_request.go
- msg_server_new_space.go
- msg_server_remove_keychain_admin.go
- msg_server_remove_space_owner.go
- msg_server_update_key.go
- msg_server_update_keychain.go
- msg_server_update_params.go
- msg_server_update_space.go
- params.go
- query.go
- query_all_keys.go
- query_key_by_id.go
- query_key_request_by_id.go
- query_key_requests.go
- query_keychain_by_address.go
- query_keychains.go
- query_keys_by_space_id.go
- query_params.go
- query_sign_request_by_id.go
- query_sign_requests.go
- query_space_by_id.go
- query_spaces.go
- query_spaces_by_owner.go
- rules.go
- shield.go
- sign_requests.go
- spaces.go
- wasm.go