@test-org122/hypernet-core
Version:
Hypernet Core. Represents the SDK for running the Hypernet Protocol.
20 lines • 1.48 kB
TypeScript
import { IAccountService } from "@interfaces/business";
import { IAccountsRepository } from "@interfaces/data";
import { Balances, BigNumber, EthereumAddress, PublicIdentifier, ResultAsync } from "@interfaces/objects";
import { BalancesUnavailableError, BlockchainUnavailableError, CoreUninitializedError, LogicalError, VectorError } from "@interfaces/objects/errors";
import { IContextProvider, ILogUtils } from "@interfaces/utilities";
/**
*
*/
export declare class AccountService implements IAccountService {
protected accountRepository: IAccountsRepository;
protected contextProvider: IContextProvider;
protected logUtils: ILogUtils;
constructor(accountRepository: IAccountsRepository, contextProvider: IContextProvider, logUtils: ILogUtils);
getPublicIdentifier(): ResultAsync<PublicIdentifier, VectorError | LogicalError>;
getAccounts(): ResultAsync<string[], BlockchainUnavailableError>;
getBalances(): ResultAsync<Balances, BalancesUnavailableError | CoreUninitializedError>;
depositFunds(assetAddress: EthereumAddress, amount: BigNumber): ResultAsync<Balances, BalancesUnavailableError | CoreUninitializedError | BlockchainUnavailableError | VectorError | Error>;
withdrawFunds(assetAddress: EthereumAddress, amount: BigNumber, destinationAddress: EthereumAddress): ResultAsync<Balances, BalancesUnavailableError | CoreUninitializedError | BlockchainUnavailableError | VectorError | Error>;
}
//# sourceMappingURL=AccountService.d.ts.map