wowok
Version:
Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.
27 lines • 1.1 kB
TypeScript
import { TxbObject, ResourceAddress, ResourceObject } from './protocol';
import { TagName, Resource } from './resource';
import { Transaction as TransactionBlock, TransactionResult } from '@mysten/sui/transactions';
export interface Entity_Info {
name: string;
description?: string;
avatar?: string;
twitter?: string;
discord?: string;
homepage?: string;
}
export declare class Entity {
protected object: TxbObject;
protected txb: TransactionBlock;
get_object(): TxbObject;
private constructor();
static From(txb: TransactionBlock): Entity;
mark(resource: Resource, address: string | TransactionResult, like: TagName.Like | TagName.Dislike): void;
update(info: Entity_Info): void;
create_resource(): ResourceAddress;
create_resource2(): ResourceObject;
destroy_resource(resource: Resource): TransactionResult;
use_resource(resource: Resource): TransactionResult;
transfer_resource(resource: Resource, new_address: string): TransactionResult;
query_ent(address_queried: string): void;
}
//# sourceMappingURL=entity.d.ts.map