@wormhole-foundation/sdk-sui-tokenbridge
Version:
SDK for Sui chains, used in conjunction with @wormhole-foundation/sdk
9 lines • 618 B
TypeScript
import type { SuiGrpcClient } from "@mysten/sui/grpc";
/** The fetched token-registry entry object (gRPC core), exposing top-level `type` + flat `json`. */
export interface TokenRegistryEntry {
type: string;
json: Record<string, any>;
}
export declare const getTokenFromTokenRegistry: (provider: SuiGrpcClient, tokenBridgeStateObjectId: string, tokenType: string) => Promise<TokenRegistryEntry | null>;
export declare const getTokenCoinType: (provider: SuiGrpcClient, tokenBridgeStateObjectId: string, tokenAddress: Uint8Array, tokenChain: number) => Promise<string | null>;
//# sourceMappingURL=utils.d.ts.map