UNPKG

@wormhole-foundation/sdk-sui

Version:

SDK for Sui chains, used in conjunction with @wormhole-foundation/sdk

14 lines 1.36 kB
import type { SuiClient } from "@mysten/sui/client"; import { Transaction } from "@mysten/sui/transactions"; import type { SuiBuildOutput } from "./types.js"; export declare const UPGRADE_CAP_TYPE = "0x2::package::UpgradeCap"; export declare const getOriginalPackageId: (provider: SuiClient, stateObjectId: string) => Promise<string>; export declare const getObjectFields: (provider: SuiClient, objectId: string) => Promise<Record<string, any> | null>; export declare const getPackageId: (provider: SuiClient, objectId: string) => Promise<string>; export declare const getOldestEmitterCapObjectId: (provider: SuiClient, coreBridgePackageId: string, owner: string) => Promise<string | null>; export declare const getOwnedObjectId: (provider: SuiClient, owner: string, type: string) => Promise<string | null>; export declare const getOwnedObjectIdPaginated: (provider: SuiClient, owner: string, type: string, cursor?: string) => Promise<string | null>; export declare const getUpgradeCapObjectId: (provider: SuiClient, owner: string, packageId: string) => Promise<string | null>; export declare const publishPackage: (buildOutput: SuiBuildOutput, signerAddress: string) => Promise<Transaction>; export declare const newEmitterCap: (coreBridgePackageId: string, coreBridgeStateObjectId: string, owner: string) => Transaction; //# sourceMappingURL=utils.d.ts.map