@safik/fk-plug-controller
Version:
Internet Computer Plug wallet's controller
26 lines (25 loc) • 981 B
TypeScript
import { ActorSubclass } from '@dfinity/agent';
import LedgerService, { TimeStamp } from '../../../interfaces/ledger';
import { Balance } from '../token/methods';
import { BaseMethodsExtendedActor } from '../actorFactory';
export interface SendOpts {
fee?: bigint;
memo?: string;
from_subaccount?: number;
created_at_time?: TimeStamp;
}
interface SendICPArgs {
to: string;
amount: string;
opts?: SendOpts;
}
declare type BaseLedgerService = BaseMethodsExtendedActor<LedgerService>;
export interface LedgerServiceExtended extends BaseLedgerService {
sendICP: (args_0: SendICPArgs) => Promise<string>;
getBalance: (accountId: string) => Promise<Balance>;
}
declare const _default: {
sendICP: (actor: ActorSubclass<BaseMethodsExtendedActor<LedgerService>>, args: SendICPArgs) => Promise<bigint>;
getBalance: (actor: ActorSubclass<BaseMethodsExtendedActor<LedgerService>>, accountId: string) => Promise<Balance>;
};
export default _default;