@funded-labs/dab-js
Version:
JS adapter for DAB
19 lines (18 loc) • 502 B
TypeScript
import { Principal } from '@dfinity/principal';
export default interface _SERVICE {
data_of: (token_index: bigint) => Promise<TokenDesc>;
transfer_to: (to: Principal, tokenIndex: bigint) => Promise<boolean>;
user_tokens: (user: Principal) => Promise<Array<bigint>>;
}
export interface Property {
value: string;
name: string;
}
export interface TokenDesc {
id: bigint;
url: string;
owner: Principal;
desc: string;
name: string;
properties: Array<Property>;
}