Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Account(c context.Context, req *types.QueryGetAccountRequest) (*types.QueryGetAccountResponse, error)
- func (k Keeper) AccountAll(c context.Context, req *types.QueryAllAccountRequest) (*types.QueryAllAccountResponse, error)
- func (k Keeper) AccountApprovalsCount(ctx sdk.Context, percent float64) int
- func (k Keeper) AccountRejectApprovalsCount(ctx sdk.Context, percent float64) int
- func (k Keeper) AccountStat(c context.Context, req *types.QueryGetAccountStatRequest) (*types.QueryGetAccountStatResponse, error)
- func (k Keeper) AddAccountToRevokedAccount(ctx sdk.Context, accAddr sdk.AccAddress, approvals []*types.Grant, ...) (*types.RevokedAccount, error)
- func (k Keeper) CountAccountsWithRole(ctx sdk.Context, roleToCount types.AccountRole) int
- func (k Keeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
- func (k Keeper) GetAccountO(ctx sdk.Context, address sdk.AccAddress) (val types.Account, found bool)
- func (k Keeper) GetAccountStat(ctx sdk.Context) (val types.AccountStat, found bool)
- func (k Keeper) GetAllAccount(ctx sdk.Context) (list []types.Account)
- func (k Keeper) GetAllPendingAccount(ctx sdk.Context) (list []types.PendingAccount)
- func (k Keeper) GetAllPendingAccountRevocation(ctx sdk.Context) (list []types.PendingAccountRevocation)
- func (k Keeper) GetAllRejectedAccount(ctx sdk.Context) (list []types.RejectedAccount)
- func (k Keeper) GetAllRevokedAccount(ctx sdk.Context) (list []types.RevokedAccount)
- func (k Keeper) GetModuleAddress(moduleName string) sdk.AccAddress
- func (k Keeper) GetNextAccountNumber(ctx sdk.Context) (accNumber uint64)
- func (k Keeper) GetParams(ctx sdk.Context) (params authtypes.Params)
- func (k Keeper) GetPendingAccount(ctx sdk.Context, address sdk.AccAddress) (val types.PendingAccount, found bool)
- func (k Keeper) GetPendingAccountRevocation(ctx sdk.Context, address sdk.AccAddress) (val types.PendingAccountRevocation, found bool)
- func (k Keeper) GetRejectedAccount(ctx sdk.Context, address sdk.AccAddress) (val types.RejectedAccount, found bool)
- func (k Keeper) GetRevokedAccount(ctx sdk.Context, address sdk.AccAddress) (val types.RevokedAccount, found bool)
- func (k Keeper) HasRole(ctx sdk.Context, addr sdk.AccAddress, roleToCheck types.AccountRole) bool
- func (k Keeper) HasVendorID(ctx sdk.Context, addr sdk.AccAddress, vid int32) bool
- func (k Keeper) IsAccountPresent(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IsPendingAccountPresent(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IsPendingAccountRevocationPresent(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IsRevokedAccountPresent(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IterateAccounts(ctx sdk.Context, cb func(account types.Account) (stop bool))
- func (k Keeper) IteratePendingAccountRevocations(ctx sdk.Context, cb func(account types.PendingAccountRevocation) (stop bool))
- func (k Keeper) IteratePendingAccounts(ctx sdk.Context, cb func(account types.PendingAccount) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MemKey() sdk.StoreKey
- func (k Keeper) PendingAccount(c context.Context, req *types.QueryGetPendingAccountRequest) (*types.QueryGetPendingAccountResponse, error)
- func (k Keeper) PendingAccountAll(c context.Context, req *types.QueryAllPendingAccountRequest) (*types.QueryAllPendingAccountResponse, error)
- func (k Keeper) PendingAccountRevocation(c context.Context, req *types.QueryGetPendingAccountRevocationRequest) (*types.QueryGetPendingAccountRevocationResponse, error)
- func (k Keeper) PendingAccountRevocationAll(c context.Context, req *types.QueryAllPendingAccountRevocationRequest) (*types.QueryAllPendingAccountRevocationResponse, error)
- func (k Keeper) RejectedAccount(c context.Context, req *types.QueryGetRejectedAccountRequest) (*types.QueryGetRejectedAccountResponse, error)
- func (k Keeper) RejectedAccountAll(c context.Context, req *types.QueryAllRejectedAccountRequest) (*types.QueryAllRejectedAccountResponse, error)
- func (k Keeper) RemoveAccount(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) RemovePendingAccount(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) RemovePendingAccountRevocation(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) RemoveRejectedAccount(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) RemoveRevokedAccount(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) RevokedAccount(c context.Context, req *types.QueryGetRevokedAccountRequest) (*types.QueryGetRevokedAccountResponse, error)
- func (k Keeper) RevokedAccountAll(c context.Context, req *types.QueryAllRevokedAccountRequest) (*types.QueryAllRevokedAccountResponse, error)
- func (k Keeper) SetAccount(ctx sdk.Context, account authtypes.AccountI)
- func (k Keeper) SetAccountO(ctx sdk.Context, account types.Account)
- func (k Keeper) SetAccountStat(ctx sdk.Context, accountStat types.AccountStat)
- func (k Keeper) SetPendingAccount(ctx sdk.Context, pendingAccount types.PendingAccount)
- func (k Keeper) SetPendingAccountRevocation(ctx sdk.Context, pendingAccountRevocation types.PendingAccountRevocation)
- func (k Keeper) SetRejectedAccount(ctx sdk.Context, rejectedAccount types.RejectedAccount)
- func (k Keeper) SetRevokedAccount(ctx sdk.Context, revokedAccount types.RevokedAccount)
- func (k Keeper) StoreKey() sdk.StoreKey
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
}
func (Keeper) Account ¶
func (k Keeper) Account(c context.Context, req *types.QueryGetAccountRequest) (*types.QueryGetAccountResponse, error)
func (Keeper) AccountAll ¶
func (k Keeper) AccountAll(c context.Context, req *types.QueryAllAccountRequest) (*types.QueryAllAccountResponse, error)
func (Keeper) AccountApprovalsCount ¶ added in v0.7.0
func (Keeper) AccountRejectApprovalsCount ¶ added in v0.11.0
func (Keeper) AccountStat ¶
func (k Keeper) AccountStat(c context.Context, req *types.QueryGetAccountStatRequest) (*types.QueryGetAccountStatResponse, error)
func (Keeper) AddAccountToRevokedAccount ¶ added in v0.10.0
func (k Keeper) AddAccountToRevokedAccount( ctx sdk.Context, accAddr sdk.AccAddress, approvals []*types.Grant, reason types.RevokedAccount_Reason, ) (*types.RevokedAccount, error)
func (Keeper) CountAccountsWithRole ¶
Count account with assigned role.
func (Keeper) GetAccount ¶
exists to satisfy cosmos AccountKeeper.GetAccount interface TODO consider better way.
func (Keeper) GetAccountO ¶
func (k Keeper) GetAccountO( ctx sdk.Context, address sdk.AccAddress, ) (val types.Account, found bool)
GetAccount returns a account from its index.
func (Keeper) GetAccountStat ¶
GetAccountStat returns accountStat.
func (Keeper) GetAllAccount ¶
GetAllAccount returns all account.
func (Keeper) GetAllPendingAccount ¶
func (k Keeper) GetAllPendingAccount(ctx sdk.Context) (list []types.PendingAccount)
GetAllPendingAccount returns all pendingAccount.
func (Keeper) GetAllPendingAccountRevocation ¶
func (k Keeper) GetAllPendingAccountRevocation(ctx sdk.Context) (list []types.PendingAccountRevocation)
GetAllPendingAccountRevocation returns all pendingAccountRevocation.
func (Keeper) GetAllRejectedAccount ¶ added in v0.11.0
func (k Keeper) GetAllRejectedAccount(ctx sdk.Context) (list []types.RejectedAccount)
GetAllRejectedAccount returns all rejectedAccount.
func (Keeper) GetAllRevokedAccount ¶ added in v0.10.0
func (k Keeper) GetAllRevokedAccount(ctx sdk.Context) (list []types.RevokedAccount)
GetAllRevokedAccount returns all revokedAccount.
func (Keeper) GetModuleAddress ¶
func (k Keeper) GetModuleAddress(moduleName string) sdk.AccAddress
just a stub to have AccountKeeper.GetModuleAddress API filled.
func (Keeper) GetNextAccountNumber ¶
func (Keeper) GetPendingAccount ¶
func (k Keeper) GetPendingAccount( ctx sdk.Context, address sdk.AccAddress, ) (val types.PendingAccount, found bool)
GetPendingAccount returns a pendingAccount from its index.
func (Keeper) GetPendingAccountRevocation ¶
func (k Keeper) GetPendingAccountRevocation( ctx sdk.Context, address sdk.AccAddress, ) (val types.PendingAccountRevocation, found bool)
GetPendingAccountRevocation returns a pendingAccountRevocation from its index.
func (Keeper) GetRejectedAccount ¶ added in v0.11.0
func (k Keeper) GetRejectedAccount( ctx sdk.Context, address sdk.AccAddress, ) (val types.RejectedAccount, found bool)
GetRejectedAccount returns a rejectedAccount from its index.
func (Keeper) GetRevokedAccount ¶ added in v0.10.0
func (k Keeper) GetRevokedAccount( ctx sdk.Context, address sdk.AccAddress, ) (val types.RevokedAccount, found bool)
GetRevokedAccount returns a revokedAccount from its index.
func (Keeper) HasRole ¶
func (k Keeper) HasRole(ctx sdk.Context, addr sdk.AccAddress, roleToCheck types.AccountRole) bool
Check if account has assigned role.
func (Keeper) HasVendorID ¶
Check if account has vendorID association.
func (Keeper) IsAccountPresent ¶
Check if the Account record associated with an address is present in the store or not.
func (Keeper) IsPendingAccountPresent ¶
Check if the Account record associated with an address is present in the store or not.
func (Keeper) IsPendingAccountRevocationPresent ¶
Check if the Pending Account Revocation record associated with an address is present in the store or not.
func (Keeper) IsRevokedAccountPresent ¶ added in v0.10.0
Check if the Revoked Account record associated with an address is present in the store or not.
func (Keeper) IterateAccounts ¶
func (Keeper) IteratePendingAccountRevocations ¶
func (Keeper) IteratePendingAccounts ¶
func (Keeper) PendingAccount ¶
func (k Keeper) PendingAccount(c context.Context, req *types.QueryGetPendingAccountRequest) (*types.QueryGetPendingAccountResponse, error)
func (Keeper) PendingAccountAll ¶
func (k Keeper) PendingAccountAll(c context.Context, req *types.QueryAllPendingAccountRequest) (*types.QueryAllPendingAccountResponse, error)
func (Keeper) PendingAccountRevocation ¶
func (k Keeper) PendingAccountRevocation(c context.Context, req *types.QueryGetPendingAccountRevocationRequest) (*types.QueryGetPendingAccountRevocationResponse, error)
func (Keeper) PendingAccountRevocationAll ¶
func (k Keeper) PendingAccountRevocationAll(c context.Context, req *types.QueryAllPendingAccountRevocationRequest) (*types.QueryAllPendingAccountRevocationResponse, error)
func (Keeper) RejectedAccount ¶ added in v0.11.0
func (k Keeper) RejectedAccount(c context.Context, req *types.QueryGetRejectedAccountRequest) (*types.QueryGetRejectedAccountResponse, error)
func (Keeper) RejectedAccountAll ¶ added in v0.11.0
func (k Keeper) RejectedAccountAll(c context.Context, req *types.QueryAllRejectedAccountRequest) (*types.QueryAllRejectedAccountResponse, error)
func (Keeper) RemoveAccount ¶
func (k Keeper) RemoveAccount( ctx sdk.Context, address sdk.AccAddress, )
RemoveAccount removes a account from the store.
func (Keeper) RemovePendingAccount ¶
func (k Keeper) RemovePendingAccount( ctx sdk.Context, address sdk.AccAddress, )
RemovePendingAccount removes a pendingAccount from the store.
func (Keeper) RemovePendingAccountRevocation ¶
func (k Keeper) RemovePendingAccountRevocation( ctx sdk.Context, address sdk.AccAddress, )
RemovePendingAccountRevocation removes a pendingAccountRevocation from the store.
func (Keeper) RemoveRejectedAccount ¶ added in v0.11.0
func (k Keeper) RemoveRejectedAccount( ctx sdk.Context, address sdk.AccAddress, )
RemoveRejectedAccount removes a rejectedAccount from the store.
func (Keeper) RemoveRevokedAccount ¶ added in v0.10.0
func (k Keeper) RemoveRevokedAccount( ctx sdk.Context, address sdk.AccAddress, )
RemoveRevokedAccount removes a revokedAccount from the store.
func (Keeper) RevokedAccount ¶ added in v0.10.0
func (k Keeper) RevokedAccount(c context.Context, req *types.QueryGetRevokedAccountRequest) (*types.QueryGetRevokedAccountResponse, error)
func (Keeper) RevokedAccountAll ¶ added in v0.10.0
func (k Keeper) RevokedAccountAll(c context.Context, req *types.QueryAllRevokedAccountRequest) (*types.QueryAllRevokedAccountResponse, error)
func (Keeper) SetAccount ¶
TODO issue 99: currently it's just a dirty fulfill
to satisfy comsmos auth.keeper.AccountI ifaces
func (Keeper) SetAccountO ¶
SetAccount set a specific account in the store from its index.
func (Keeper) SetAccountStat ¶
func (k Keeper) SetAccountStat(ctx sdk.Context, accountStat types.AccountStat)
SetAccountStat set accountStat in the store NOTE:
- the API is needed by genesis logic
- but it shouldn't be used in run-time, so makes sense to take care about better way
func (Keeper) SetPendingAccount ¶
func (k Keeper) SetPendingAccount(ctx sdk.Context, pendingAccount types.PendingAccount)
SetPendingAccount set a specific pendingAccount in the store from its index.
func (Keeper) SetPendingAccountRevocation ¶
func (k Keeper) SetPendingAccountRevocation(ctx sdk.Context, pendingAccountRevocation types.PendingAccountRevocation)
SetPendingAccountRevocation set a specific pendingAccountRevocation in the store from its index.
func (Keeper) SetRejectedAccount ¶ added in v0.11.0
func (k Keeper) SetRejectedAccount(ctx sdk.Context, rejectedAccount types.RejectedAccount)
SetRejectedAccount set a specific rejectedAccount in the store from its index.
func (Keeper) SetRevokedAccount ¶ added in v0.10.0
func (k Keeper) SetRevokedAccount(ctx sdk.Context, revokedAccount types.RevokedAccount)
SetRevokedAccount set a specific revokedAccount in the store from its index.
Source Files ¶
- account.go
- account_stat.go
- grpc_query.go
- grpc_query_account.go
- grpc_query_account_stat.go
- grpc_query_pending_account.go
- grpc_query_pending_account_revocation.go
- grpc_query_rejected_account.go
- grpc_query_revoked_account.go
- keeper.go
- msg_server.go
- msg_server_approve_add_account.go
- msg_server_approve_revoke_account.go
- msg_server_propose_add_account.go
- msg_server_propose_revoke_account.go
- msg_server_reject_add_account.go
- pending_account.go
- pending_account_revocation.go
- rejected_account.go
- revoked_account.go