UNPKG

hm-aftermath-ts-sdk

Version:
43 lines 1.12 kB
import { AnyObjectType, BigIntAsString, ModuleName, ObjectId, SuiAddress, TransactionDigest } from "./generalTypes"; export type BcsTypeName = string | [string, ...(BcsTypeName | string)[]]; export type SuiAddressWithout0x = string; export interface EventOnChain<Fields> { id: { txDigest: TransactionDigest; eventSeq: BigIntAsString; }; packageId: ObjectId; transactionModule: ModuleName; sender: SuiAddress; type: AnyObjectType; parsedJson: Fields; bcs: string; timestampMs: number | undefined; } export type IndexerEventOnChain<Fields> = { type: AnyObjectType; timestamp: number | null; txnDigest: TransactionDigest; } & Fields; export interface TableOnChain { type: AnyObjectType; fields: { id: { id: ObjectId; }; size: BigIntAsString; }; } export interface SupplyOnChain { type: AnyObjectType; fields: { value: BigIntAsString; }; } export interface TypeNameOnChain { type: AnyObjectType; fields: { name: AnyObjectType; }; } //# sourceMappingURL=castingTypes.d.ts.map