Documentation ¶
Index ¶
- Constants
- func AllInvariants(keeper Keeper) sdk.Invariant
- func ModuleAccountInvariant(keeper Keeper) sdk.Invariant
- func NewLegacyQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterInvariants(ir sdk.InvariantRegistry, keeper Keeper)
- type Keeper
- func (k Keeper) AccountHasLockedUnd(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) AccountHasSpentEFUND(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) AddAddressToWhitelist(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) AddPoToAcceptedQueue(ctx sdk.Context, purchaseOrderId uint64)
- func (k Keeper) AddPoToRaisedQueue(ctx sdk.Context, purchaseOrderId uint64)
- func (k Keeper) AddressIsWhitelisted(ctx sdk.Context, address sdk.AccAddress) bool
- func (q Keeper) EnterpriseAccount(c context.Context, req *types.QueryEnterpriseAccountRequest) (*types.QueryEnterpriseAccountResponse, error)
- func (q Keeper) EnterpriseSupply(c context.Context, req *types.QueryEnterpriseSupplyRequest) (*types.QueryEnterpriseSupplyResponse, error)
- func (q Keeper) EnterpriseUndPurchaseOrder(c context.Context, req *types.QueryEnterpriseUndPurchaseOrderRequest) (*types.QueryEnterpriseUndPurchaseOrderResponse, error)
- func (q Keeper) EnterpriseUndPurchaseOrders(c context.Context, req *types.QueryEnterpriseUndPurchaseOrdersRequest) (*types.QueryEnterpriseUndPurchaseOrdersResponse, error)
- func (k Keeper) GetAllAcceptedPurchaseOrders(ctx sdk.Context) (purchaseOrderIds []uint64)
- func (k Keeper) GetAllLockedUndAccountsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetAllLockedUnds(ctx sdk.Context) (lockedUnds []types.LockedUnd)
- func (k Keeper) GetAllPurchaseOrders(ctx sdk.Context) (purchaseOrders []types.EnterpriseUndPurchaseOrder)
- func (k Keeper) GetAllRaisedPurchaseOrders(ctx sdk.Context) (purchaseOrderIds []uint64)
- func (k Keeper) GetAllSpentEFUNDAccountsIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetAllSpentEFUNDs(ctx sdk.Context) (spentEFUNDs []types.SpentEFUND)
- func (k Keeper) GetAllWhitelistedAddresses(ctx sdk.Context) (addresses []string)
- func (k Keeper) GetCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
- func (k Keeper) GetEnterpriseAccount(ctx sdk.Context) authtypes.ModuleAccountI
- func (k Keeper) GetEnterpriseSupplyIncludingLockedUnd(ctx sdk.Context) types.UndSupply
- func (k Keeper) GetEnterpriseUserAccount(ctx sdk.Context, owner sdk.AccAddress) types.EnterpriseUserAccount
- func (k Keeper) GetHighestPurchaseOrderID(ctx sdk.Context) (purchaseOrderID uint64, err error)
- func (k Keeper) GetLockedUndAmountForAccount(ctx sdk.Context, address sdk.AccAddress) sdk.Coin
- func (k Keeper) GetLockedUndForAccount(ctx sdk.Context, address sdk.AccAddress) types.LockedUnd
- func (k Keeper) GetParamDecisionLimit(ctx sdk.Context) uint64
- func (k Keeper) GetParamDenom(ctx sdk.Context) string
- func (k Keeper) GetParamEntSigners(ctx sdk.Context) string
- func (k Keeper) GetParamEntSignersAsAddressArray(ctx sdk.Context) []sdk.AccAddress
- func (k Keeper) GetParamMinAccepts(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPurchaseOrder(ctx sdk.Context, purchaseOrderID uint64) (types.EnterpriseUndPurchaseOrder, bool)
- func (k Keeper) GetPurchaseOrderAmount(ctx sdk.Context, purchaseOrderID uint64) sdk.Coin
- func (k Keeper) GetPurchaseOrderPurchaser(ctx sdk.Context, purchaseOrderID uint64) sdk.AccAddress
- func (k Keeper) GetPurchaseOrderStatus(ctx sdk.Context, purchaseOrderID uint64) types.PurchaseOrderStatus
- func (k Keeper) GetPurchaseOrdersFiltered(ctx sdk.Context, params types.QueryPurchaseOrdersParams) []types.EnterpriseUndPurchaseOrder
- func (k Keeper) GetSpentEFUNDAmountForAccount(ctx sdk.Context, address sdk.AccAddress) sdk.Coin
- func (k Keeper) GetSpentEFUNDForAccount(ctx sdk.Context, address sdk.AccAddress) types.SpentEFUND
- func (k Keeper) GetSupplyOfWithLockedNundRemoved(ctx sdk.Context, denom string) sdk.Coin
- func (k Keeper) GetTotalLockedUnd(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetTotalSpentEFUND(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetTotalSupplyWithLockedNundRemoved(ctx sdk.Context, pagination *query.PageRequest) (sdk.Coins, *query.PageResponse, error)
- func (k Keeper) GetTotalUnLockedUnd(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetTotalUndSupply(ctx sdk.Context) sdk.Coin
- func (k Keeper) IsAuthorisedToDecide(ctx sdk.Context, signer sdk.AccAddress) bool
- func (k Keeper) IsLocked(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IterateAcceptedQueue(ctx sdk.Context, cb func(purchaseOrderId uint64) (stop bool))
- func (k Keeper) IteratePurchaseOrders(ctx sdk.Context, ...)
- func (k Keeper) IterateRaisedQueue(ctx sdk.Context, cb func(purchaseOrderId uint64) (stop bool))
- func (k Keeper) IterateWhitelist(ctx sdk.Context, cb func(addr sdk.AccAddress) (stop bool))
- func (q Keeper) LockedUndByAddress(c context.Context, req *types.QueryLockedUndByAddressRequest) (*types.QueryLockedUndByAddressResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoinsAndLock(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.Coin) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProcessAcceptedPurchaseOrders(ctx sdk.Context)
- func (k Keeper) ProcessPurchaseOrderDecision(ctx sdk.Context, purchaseOrderID uint64, decision types.PurchaseOrderStatus, ...) error
- func (k Keeper) ProcessWhitelistAction(ctx sdk.Context, address sdk.AccAddress, action types.WhitelistAction, ...) error
- func (k Keeper) PurchaseOrderExists(ctx sdk.Context, purchaseOrderID uint64) bool
- func (k Keeper) PurchaseOrderIsInAcceptedQueue(ctx sdk.Context, purchaseOrderId uint64) bool
- func (k Keeper) PurchaseOrderIsInRaisedQueue(ctx sdk.Context, purchaseOrderId uint64) bool
- func (k Keeper) RaiseNewPurchaseOrder(ctx sdk.Context, purchaseOrder types.EnterpriseUndPurchaseOrder) (uint64, error)
- func (k Keeper) RemoveAddressFromWhitelist(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) RemovePurchaseOrderFromAcceptedQueue(ctx sdk.Context, purchaseOrderId uint64)
- func (k Keeper) RemovePurchaseOrderFromRaisedQueue(ctx sdk.Context, purchaseOrderId uint64)
- func (k Keeper) SetHighestPurchaseOrderID(ctx sdk.Context, purchaseOrderID uint64)
- func (k Keeper) SetLockedUndForAccount(ctx sdk.Context, lockedUnd types.LockedUnd) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPurchaseOrder(ctx sdk.Context, purchaseOrder types.EnterpriseUndPurchaseOrder) error
- func (k Keeper) SetSpentEFUNDForAccount(ctx sdk.Context, spent types.SpentEFUND) error
- func (k Keeper) SetTotalLockedUnd(ctx sdk.Context, totalLocked sdk.Coin) error
- func (k Keeper) SetTotalSpentEFUND(ctx sdk.Context, totalUsed sdk.Coin) error
- func (q Keeper) SpentEFUNDByAddress(c context.Context, req *types.QuerySpentEFUNDByAddressRequest) (*types.QuerySpentEFUNDByAddressResponse, error)
- func (q Keeper) SupplyOf(c context.Context, req *types.QuerySupplyOfRequest) (*types.QuerySupplyOfResponse, error)
- func (q Keeper) SupplyOfOverwrite(c context.Context, req *types.QuerySupplyOfRequest) (*types.QuerySupplyOfResponse, error)
- func (k Keeper) TallyPurchaseOrderDecisions(ctx sdk.Context)
- func (q Keeper) TotalLocked(c context.Context, req *types.QueryTotalLockedRequest) (*types.QueryTotalLockedResponse, error)
- func (q Keeper) TotalSpentEFUND(c context.Context, req *types.QueryTotalSpentEFUNDRequest) (*types.QueryTotalSpentEFUNDResponse, error)
- func (q Keeper) TotalSupply(c context.Context, req *types.QueryTotalSupplyRequest) (*types.QueryTotalSupplyResponse, error)
- func (q Keeper) TotalSupplyOverwrite(c context.Context, req *types.QueryTotalSupplyRequest) (*types.QueryTotalSupplyResponse, error)
- func (q Keeper) TotalUnlocked(c context.Context, req *types.QueryTotalUnlockedRequest) (*types.QueryTotalUnlockedResponse, error)
- func (k Keeper) UnlockCoinsForFees(ctx sdk.Context, feePayer sdk.AccAddress, feesToPay sdk.Coins) error
- func (q Keeper) Whitelist(c context.Context, req *types.QueryWhitelistRequest) (*types.QueryWhitelistResponse, error)
- func (q Keeper) Whitelisted(c context.Context, req *types.QueryWhitelistedRequest) (*types.QueryWhitelistedResponse, error)
- type Migrator
Constants ¶
const ( QueryParameters = "params" QueryPurchaseOrders = "orders" QueryGetPurchaseOrder = "order" QueryGetLocked = "locked" QueryTotalLocked = "total-locked" QueryTotalUnlocked = "total-unlocked" QueryEnterpriseSupply = "ent-supply" QueryTotalSupply = "total-supply" QueryTotalSupplyOf = "total-supply-of" QueryWhitelist = "whitelist" QueryWhitelisted = "whitelisted" )
Variables ¶
This section is empty.
Functions ¶
func AllInvariants ¶
AllInvariants runs all invariants of the enterprise module
func ModuleAccountInvariant ¶
ModuleAccountInvariant checks that the module account coins reflects the sum of locked FUND held on store
func NewLegacyQuerier ¶
func NewLegacyQuerier(keeper Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
NewLegacyQuerier is the module level router for state queries
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the gov MsgServer interface for the provided Keeper.
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, keeper Keeper)
RegisterInvariants registers all enterprise invariants
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(storeKey storetypes.StoreKey, bankKeeper types.BankKeeper, accKeeper types.AccountKeeper, paramSpace paramtypes.Subspace, cdc codec.BinaryCodec) Keeper
NewKeeper creates new instances of the enterprise Keeper
func (Keeper) AccountHasLockedUnd ¶
Check if a record exists for locked FUND given an account address
func (Keeper) AccountHasSpentEFUND ¶ added in v1.6.1
AccountHasSpentEFUND checks if given account has an entry for spent eFUND
func (Keeper) AddAddressToWhitelist ¶
AddAddressToWhitelist adds an address to the whitelist
func (Keeper) AddPoToAcceptedQueue ¶
func (Keeper) AddPoToRaisedQueue ¶
func (Keeper) AddressIsWhitelisted ¶
Check if a record exists for locked FUND given an account address
func (Keeper) EnterpriseAccount ¶
func (q Keeper) EnterpriseAccount(c context.Context, req *types.QueryEnterpriseAccountRequest) (*types.QueryEnterpriseAccountResponse, error)
func (Keeper) EnterpriseSupply ¶
func (q Keeper) EnterpriseSupply(c context.Context, req *types.QueryEnterpriseSupplyRequest) (*types.QueryEnterpriseSupplyResponse, error)
func (Keeper) EnterpriseUndPurchaseOrder ¶
func (q Keeper) EnterpriseUndPurchaseOrder(c context.Context, req *types.QueryEnterpriseUndPurchaseOrderRequest) (*types.QueryEnterpriseUndPurchaseOrderResponse, error)
Purchase Order queries PO details based on PurchaseOrderId
func (Keeper) EnterpriseUndPurchaseOrders ¶
func (q Keeper) EnterpriseUndPurchaseOrders(c context.Context, req *types.QueryEnterpriseUndPurchaseOrdersRequest) (*types.QueryEnterpriseUndPurchaseOrdersResponse, error)
Purchase Orders paginated
func (Keeper) GetAllAcceptedPurchaseOrders ¶
GetAllAcceptedPurchaseOrders returns all the purchase orders from store
func (Keeper) GetAllLockedUndAccountsIterator ¶
Get an iterator over all accounts with Locked FUND
func (Keeper) GetAllLockedUnds ¶
func (Keeper) GetAllPurchaseOrders ¶
func (k Keeper) GetAllPurchaseOrders(ctx sdk.Context) (purchaseOrders []types.EnterpriseUndPurchaseOrder)
GetAllPurchaseOrders returns all the purchase orders from store
func (Keeper) GetAllRaisedPurchaseOrders ¶
GetAllRaisedPurchaseOrders returns all the purchase orders from store
func (Keeper) GetAllSpentEFUNDAccountsIterator ¶ added in v1.6.1
Get an iterator over all accounts with spent eFUND
func (Keeper) GetAllSpentEFUNDs ¶ added in v1.6.1
func (k Keeper) GetAllSpentEFUNDs(ctx sdk.Context) (spentEFUNDs []types.SpentEFUND)
func (Keeper) GetAllWhitelistedAddresses ¶
GetAllWhitelistedAddresses returns an array of all currently whitelisted addresses
func (Keeper) GetEnterpriseAccount ¶
func (k Keeper) GetEnterpriseAccount(ctx sdk.Context) authtypes.ModuleAccountI
GetEnterpriseAccount returns the enterprise ModuleAccount
func (Keeper) GetEnterpriseSupplyIncludingLockedUnd ¶
GetEnterpriseSupplyIncludingLockedUnd returns information including total FUND supply, total locked and unlocked
func (Keeper) GetEnterpriseUserAccount ¶
func (k Keeper) GetEnterpriseUserAccount(ctx sdk.Context, owner sdk.AccAddress) types.EnterpriseUserAccount
func (Keeper) GetHighestPurchaseOrderID ¶
GetHighestPurchaseOrderID gets the highest purchase order ID
func (Keeper) GetLockedUndAmountForAccount ¶
func (Keeper) GetLockedUndForAccount ¶
Gets a record for Locked FUND for a given address
func (Keeper) GetParamEntSignersAsAddressArray ¶
func (k Keeper) GetParamEntSignersAsAddressArray(ctx sdk.Context) []sdk.AccAddress
func (Keeper) GetPurchaseOrder ¶
func (k Keeper) GetPurchaseOrder(ctx sdk.Context, purchaseOrderID uint64) (types.EnterpriseUndPurchaseOrder, bool)
Gets a purchase order for a given purchaseOrderID
func (Keeper) GetPurchaseOrderAmount ¶
GetPurchaseOrderAmount - get the Amount of a raised purchase order for a given purchaseOrderID
func (Keeper) GetPurchaseOrderPurchaser ¶
GetPurchaseOrderPurchaser - get the Purchaser address of a purchase order should be the same as the search term!
func (Keeper) GetPurchaseOrderStatus ¶
func (k Keeper) GetPurchaseOrderStatus(ctx sdk.Context, purchaseOrderID uint64) types.PurchaseOrderStatus
GetPurchaseOrderStatus - get the Decision of a purchase order for a given purchaseOrderID
func (Keeper) GetPurchaseOrdersFiltered ¶
func (k Keeper) GetPurchaseOrdersFiltered(ctx sdk.Context, params types.QueryPurchaseOrdersParams) []types.EnterpriseUndPurchaseOrder
GetPurchaseOrdersFiltered retrieves purchase orders filtered by a given set of params which include pagination parameters along a purchase order status.
NOTE: If no filters are provided, all proposals will be returned in paginated form.
func (Keeper) GetSpentEFUNDAmountForAccount ¶ added in v1.6.1
func (Keeper) GetSpentEFUNDForAccount ¶ added in v1.6.1
func (k Keeper) GetSpentEFUNDForAccount(ctx sdk.Context, address sdk.AccAddress) types.SpentEFUND
GetSpentEFUNDForAccount Gets a record for used eFUND for a given address
func (Keeper) GetSupplyOfWithLockedNundRemoved ¶
func (Keeper) GetTotalLockedUnd ¶
GetTotalLockedUnd returns the total locked eFUND
func (Keeper) GetTotalSpentEFUND ¶ added in v1.6.1
GetTotalSpentEFUND returns the total spent eFUND
func (Keeper) GetTotalSupplyWithLockedNundRemoved ¶
func (k Keeper) GetTotalSupplyWithLockedNundRemoved(ctx sdk.Context, pagination *query.PageRequest) (sdk.Coins, *query.PageResponse, error)
GetTotalSupplyWithLockedNundRemoved sits on top of the Bank Keeper's GetPaginatedTotalSupply and removes locked FUND from nund supply
func (Keeper) GetTotalUnLockedUnd ¶
GetTotalUnLockedUnd returns the amount of unlocked FUND - i.e. in active circulation (totalSupply - locked)
func (Keeper) GetTotalUndSupply ¶
GetTotalUndSupply returns the total FUND in supply, obtained from the supply module's keeper
func (Keeper) IsAuthorisedToDecide ¶
func (Keeper) IterateAcceptedQueue ¶
IterateAcceptedQueue iterates over the all the Accepted purchase orders and performs a callback function
func (Keeper) IteratePurchaseOrders ¶
func (k Keeper) IteratePurchaseOrders(ctx sdk.Context, cb func(purchaseOrder types.EnterpriseUndPurchaseOrder) (stop bool))
IteratePurchaseOrders iterates over the all the purchase orders and performs a callback function
func (Keeper) IterateRaisedQueue ¶
IterateRaisedQueue iterates over the all the raised purchase orders and performs a callback function
func (Keeper) IterateWhitelist ¶
IterateWhitelist iterates over the all the whitelisted addresses and performs a callback function
func (Keeper) LockedUndByAddress ¶
func (q Keeper) LockedUndByAddress(c context.Context, req *types.QueryLockedUndByAddressRequest) (*types.QueryLockedUndByAddressResponse, error)
func (Keeper) MintCoinsAndLock ¶
MintCoinsAndLock implements an alias call to the underlying bank keeper's MintCoins MintCoinsAndLock to be used in BeginBlocker.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ProcessAcceptedPurchaseOrders ¶
func (Keeper) ProcessPurchaseOrderDecision ¶
func (k Keeper) ProcessPurchaseOrderDecision(ctx sdk.Context, purchaseOrderID uint64, decision types.PurchaseOrderStatus, signer sdk.AccAddress) error
func (Keeper) ProcessWhitelistAction ¶
func (k Keeper) ProcessWhitelistAction(ctx sdk.Context, address sdk.AccAddress, action types.WhitelistAction, signer sdk.AccAddress) error
ProcessWhitelistAction processes the add/remove whitelist messages
func (Keeper) PurchaseOrderExists ¶
Check if a raised purchase order for a given purchaseOrderID is in the store or not
func (Keeper) PurchaseOrderIsInAcceptedQueue ¶
func (Keeper) PurchaseOrderIsInRaisedQueue ¶
func (Keeper) RaiseNewPurchaseOrder ¶
func (Keeper) RemoveAddressFromWhitelist ¶
RemoveAddressFromWhitelist removes an address from the whitelist
func (Keeper) RemovePurchaseOrderFromAcceptedQueue ¶
func (Keeper) RemovePurchaseOrderFromRaisedQueue ¶
func (Keeper) SetHighestPurchaseOrderID ¶
SetHighestPurchaseOrderID sets the new proposal ID to the store
func (Keeper) SetLockedUndForAccount ¶
Sets the Locked FUND data
func (Keeper) SetPurchaseOrder ¶
func (k Keeper) SetPurchaseOrder(ctx sdk.Context, purchaseOrder types.EnterpriseUndPurchaseOrder) error
Sets the Purchase Order data
func (Keeper) SetSpentEFUNDForAccount ¶ added in v1.6.1
SetSpentEFUNDForAccount Sets the spent eFUND data
func (Keeper) SetTotalLockedUnd ¶
SetTotalLockedUnd sets the total locked FUND
func (Keeper) SetTotalSpentEFUND ¶ added in v1.6.1
SetTotalSpentEFUND sets the total used eFUND
func (Keeper) SpentEFUNDByAddress ¶ added in v1.6.1
func (q Keeper) SpentEFUNDByAddress(c context.Context, req *types.QuerySpentEFUNDByAddressRequest) (*types.QuerySpentEFUNDByAddressResponse, error)
func (Keeper) SupplyOf ¶
func (q Keeper) SupplyOf(c context.Context, req *types.QuerySupplyOfRequest) (*types.QuerySupplyOfResponse, error)
SupplyOf Should be used in place of /cosmos/bank/v1beta1/supply to get true total supply, with locked eFUND removed from total for nund
func (Keeper) SupplyOfOverwrite ¶
func (q Keeper) SupplyOfOverwrite(c context.Context, req *types.QuerySupplyOfRequest) (*types.QuerySupplyOfResponse, error)
func (Keeper) TallyPurchaseOrderDecisions ¶
func (Keeper) TotalLocked ¶
func (q Keeper) TotalLocked(c context.Context, req *types.QueryTotalLockedRequest) (*types.QueryTotalLockedResponse, error)
func (Keeper) TotalSpentEFUND ¶ added in v1.6.1
func (q Keeper) TotalSpentEFUND(c context.Context, req *types.QueryTotalSpentEFUNDRequest) (*types.QueryTotalSpentEFUNDResponse, error)
func (Keeper) TotalSupply ¶
func (q Keeper) TotalSupply(c context.Context, req *types.QueryTotalSupplyRequest) (*types.QueryTotalSupplyResponse, error)
TotalSupply Should be used in place of /cosmos/bank/v1beta1/supply to get true total supply, with locked eFUND removed from total for nund
func (Keeper) TotalSupplyOverwrite ¶
func (q Keeper) TotalSupplyOverwrite(c context.Context, req *types.QueryTotalSupplyRequest) (*types.QueryTotalSupplyResponse, error)
func (Keeper) TotalUnlocked ¶
func (q Keeper) TotalUnlocked(c context.Context, req *types.QueryTotalUnlockedRequest) (*types.QueryTotalUnlockedResponse, error)
func (Keeper) UnlockCoinsForFees ¶
func (Keeper) Whitelist ¶
func (q Keeper) Whitelist(c context.Context, req *types.QueryWhitelistRequest) (*types.QueryWhitelistResponse, error)
func (Keeper) Whitelisted ¶
func (q Keeper) Whitelisted(c context.Context, req *types.QueryWhitelistedRequest) (*types.QueryWhitelistedResponse, error)