BaseKeeper - CosmosSwift/swift-coin GitHub Wiki
BaseKeeper
public final class BaseKeeper: BaseSendKeeper, BankKeeper
Inheritance
Initializers
init(accountKeeper:paramSpace:blacklistedAddresses:)
public override init(accountKeeper: AccountKeeper, paramSpace: Subspace, blacklistedAddresses: [String: Bool])
Methods
initGenesis(request:state:)
InitGenesis initializes the bank module's state from a given genesis state.
public func initGenesis(request: Request, state: BankGenesisState)
delegateCoins(request:delegatorAddress:moduleAccountAddress:amount:)
public func delegateCoins(request: Request, delegatorAddress: AccountAddress, moduleAccountAddress: AccountAddress, amount: [Coin]) throws
undelegateCoins(request:moduleAccountAddress:delegatorAddress:amount:)
public func undelegateCoins(request: Request, moduleAccountAddress: AccountAddress, delegatorAddress: AccountAddress, amount: [Coin]) throws
inputOutputCoins(request:inputs:outputs:)
public func inputOutputCoins(request: Request, inputs: [Input], outputs: [Output]) throws
sendCoins(request:fromAddress:toAddress:amount:)
public func sendCoins(request: Request, fromAddress: AccountAddress, toAddress: AccountAddress, amount: [Coin]) throws
subtractCoins(requet:address:amount:)
public func subtractCoins(requet: Request, address: AccountAddress, amount: [Coin]) throws -> [Coin]
addCoins(request:address:amount:)
@discardableResult public func addCoins(request: Request, address: AccountAddress, amount: [Coin]) throws -> [Coin]
setCoins(request:address:amount:)
public func setCoins(request: Request, address: AccountAddress, amount: [Coin]) throws
isSendEnabled(request:)
public func isSendEnabled(request: Request) -> Bool
setSendEnabled(request:enabled:)
public func setSendEnabled(request: Request, enabled: Bool)
isBlacklisted(address:)
public func isBlacklisted(address: AccountAddress) -> Bool
coins(request:address:)
public func coins(request: Request, address: AccountAddress) -> [Coin]?
hasCoins(request:address:amount:)
public func hasCoins(request: Request, address: AccountAddress, amount: [Coin]) -> Bool