Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RemoveChain(chainInfo types.ChainInfo, chainID int64) types.ChainInfo
- type Keeper
- func (k Keeper) Authorization(c context.Context, req *types.QueryAuthorizationRequest) (*types.QueryAuthorizationResponse, error)
- func (k Keeper) AuthorizationList(c context.Context, req *types.QueryAuthorizationListRequest) (*types.QueryAuthorizationListResponse, error)
- func (k Keeper) ChainInfo(c context.Context, req *types.QueryGetChainInfoRequest) (*types.QueryGetChainInfoResponse, error)
- func (k Keeper) CheckAuthorization(ctx sdk.Context, msg sdk.Msg) error
- func (k Keeper) GetAdditionalChainList(ctx sdk.Context) []chains.Chain
- func (k Keeper) GetAuthorizationList(ctx sdk.Context) (val types.AuthorizationList, found bool)
- func (k Keeper) GetChainInfo(ctx sdk.Context) (val types.ChainInfo, found bool)
- func (k Keeper) GetCodec() codec.Codec
- func (k Keeper) GetMemKey() storetypes.StoreKey
- func (k Keeper) GetPolicies(ctx sdk.Context) (val types.Policies, found bool)
- func (k Keeper) GetStoreKey() storetypes.StoreKey
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Policies(c context.Context, req *types.QueryGetPoliciesRequest) (*types.QueryGetPoliciesResponse, error)
- func (k Keeper) SetAuthorizationList(ctx sdk.Context, list types.AuthorizationList)
- func (k Keeper) SetChainInfo(ctx sdk.Context, chainInfo types.ChainInfo)
- func (k Keeper) SetPolicies(ctx sdk.Context, policies types.Policies)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeKey, memKey storetypes.StoreKey, govAddr sdk.AccAddress, ) Keeper
NewKeeper creates new instances of the authority Keeper
func (Keeper) Authorization ¶
func (k Keeper) Authorization(c context.Context, req *types.QueryAuthorizationRequest, ) (*types.QueryAuthorizationResponse, error)
Authorization returns the authorization for a given message URL
func (Keeper) AuthorizationList ¶
func (k Keeper) AuthorizationList(c context.Context, req *types.QueryAuthorizationListRequest, ) (*types.QueryAuthorizationListResponse, error)
AuthorizationList returns the list of authorizations
func (Keeper) ChainInfo ¶
func (k Keeper) ChainInfo( c context.Context, req *types.QueryGetChainInfoRequest, ) (*types.QueryGetChainInfoResponse, error)
ChainInfo queries chain info
func (Keeper) CheckAuthorization ¶
CheckAuthorization uses both the authorization list and the policies to check if the signer is authorized
func (Keeper) GetAdditionalChainList ¶
GetAdditionalChainList returns the list of chains in chain info object additional chains are additional static chain information stored on-chain used in addition with the default chain information this list allow to add new chain support without doing an upgrade returns empty list if no chains are present
func (Keeper) GetAuthorizationList ¶
GetAuthorizationList returns the authorization list from the store
func (Keeper) GetChainInfo ¶
GetChainInfo returns the policies from the store
func (Keeper) GetMemKey ¶
func (k Keeper) GetMemKey() storetypes.StoreKey
GetMemKey returns the mem key to the store for authority
func (Keeper) GetPolicies ¶
GetPolicies returns the policies from the store
func (Keeper) GetStoreKey ¶
func (k Keeper) GetStoreKey() storetypes.StoreKey
GetStoreKey returns the key to the store for authority
func (Keeper) Policies ¶
func (k Keeper) Policies( c context.Context, req *types.QueryGetPoliciesRequest, ) (*types.QueryGetPoliciesResponse, error)
Policies queries policies
func (Keeper) SetAuthorizationList ¶
func (k Keeper) SetAuthorizationList(ctx sdk.Context, list types.AuthorizationList)
SetAuthorizationList sets the authorization list to the store.It returns an error if the list is invalid.
func (Keeper) SetChainInfo ¶
SetChainInfo sets the chain info to the store
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶
NewMigrator returns a new Migrator for the authority module.
Source Files ¶
- authorization_list.go
- chain_info.go
- grpc_query.go
- grpc_query_authorization_list.go
- grpc_query_chain_info.go
- grpc_query_policies.go
- keeper.go
- migrator.go
- msg_server.go
- msg_server_add_authorization.go
- msg_server_remove_authorization.go
- msg_server_remove_chain_info.go
- msg_server_update_chain_info.go
- msg_server_update_policies.go
- policies.go