import { now } from "@cronos-so/utils"; import { Program, Provider } from "@project-serum/anchor"; import { Account } from "./account"; import { Instruction } from "./instruction"; import { IDL, Cronos as _Cronos } from "./idl"; export class Cronos { static DEVNET_PROGRAM_ID = "5F5bYKuGwR5xrXr6mCo5wi6zAiSebSM2jzeDA8dwTF6A"; static MAINNET_PROGRAM_ID = ""; public account: Account; public instruction: Instruction; public programId: string; constructor(provider: Provider, programId: string) { const cronos = new Program(IDL, programId, provider); const account = new Account(cronos); const instruction = new Instruction(account, cronos); this.account = account; this.instruction = instruction; this.programId = programId; } } export * from "./types"; export { now };