client-aftermath-ts-sdk
Version:
Client Aftermath TypeScript SDK
51 lines • 1.46 kB
TypeScript
import { AnyObjectType, Balance, CoinType, Object, PoolObject, Slippage, ObjectId, SuiAddress } from "../../types";
export interface NftAmmMarketObject extends Object {
nftsTable: {
objectId: ObjectId;
size: bigint;
};
pool: PoolObject;
fractionalizedSupply: Balance;
fractionalizedCoinAmount: Balance;
fractionalizedCoinType: CoinType;
assetCoinType: CoinType;
lpCoinType: CoinType;
nftType: AnyObjectType;
}
export type NftAmmInterfaceGenericTypes = [
lpCoinType: CoinType,
fractionalizedCoinType: CoinType,
assetCoinType: CoinType,
nftType: AnyObjectType
];
export interface ApiNftAmmBuyBody {
marketObjectId: ObjectId;
walletAddress: SuiAddress;
nftObjectIds: ObjectId[];
slippage: Slippage;
referrer?: SuiAddress;
}
export interface ApiNftAmmSellBody {
marketObjectId: ObjectId;
walletAddress: SuiAddress;
nftObjectIds: ObjectId[];
slippage: Slippage;
referrer?: SuiAddress;
}
export interface ApiNftAmmDepositBody {
walletAddress: SuiAddress;
marketObjectId: ObjectId;
assetCoinAmountIn: Balance;
nftObjectIds: ObjectId[];
slippage: Slippage;
referrer?: SuiAddress;
}
export interface ApiNftAmmWithdrawBody {
walletAddress: SuiAddress;
marketObjectId: ObjectId;
lpCoinAmount: Balance;
nftObjectIds: ObjectId[];
slippage: Slippage;
referrer?: SuiAddress;
}
//# sourceMappingURL=nftAmmTypes.d.ts.map