20 lines
793 B
TypeScript
20 lines
793 B
TypeScript
import { String, Price } from 'oak-domain/lib/types/DataType';
|
|
import { AbleAction, AbleState } from 'oak-domain/lib/actions/action';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
import { EntityDesc, ActionDef } from 'oak-domain/lib/types';
|
|
import { Schema as System } from 'oak-general-business/lib/entities/System';
|
|
export interface Schema extends EntityShape {
|
|
total: Price;
|
|
avail: Price;
|
|
system: System;
|
|
entity: String<32>;
|
|
entityId: String<64>;
|
|
}
|
|
type IAction = 'deposit' | 'withdraw' | 'withdrawBack' | 'consume' | 'loan' | 'repay';
|
|
export type Action = AbleAction | IAction;
|
|
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
|
|
export declare const entityDesc: EntityDesc<Schema, Action, '', {
|
|
ableState: AbleState;
|
|
}>;
|
|
export {};
|