UNPKG

@firefly-exchange/library-sui

Version:

Sui library housing helper methods, classes to interact with Bluefin protocol(s) deployed on Sui

37 lines (36 loc) 874 B
import { OBJECT_OWNERSHIP_STATUS } from "../enums"; import { MarketDetails } from "./market"; export interface SuiObject { id: string; dataType: string; } export interface DeploymentObjects extends SuiObject { owner: OBJECT_OWNERSHIP_STATUS; } export interface DeploymentObjectMap { [dataType: string]: DeploymentObjects; } export interface DeploymentData { deployer: string; objects: DeploymentObjectMap; markets: MarketsMap; } export interface MarketDeploymentData { Objects: DeploymentObjectMap; Config: MarketDetails; } export interface MarketsMap { [marketName: string]: MarketDeploymentData; } export interface DeploymentConfig { network: Network; deployer: string; filePath: string; markets: MarketDetails[]; } export interface Network { name: string; rpc: string; ws: string; faucet: string; }