flipmeme-sdk 1.3.71 → 1.3.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +228 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +227 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -149,6 +149,7 @@ interface TransferParams {
|
|
|
149
149
|
}
|
|
150
150
|
interface EthTransferParams {
|
|
151
151
|
amount: string;
|
|
152
|
+
slippage?: number;
|
|
152
153
|
}
|
|
153
154
|
declare enum PurcahseType {
|
|
154
155
|
BUY = "buy",
|
|
@@ -479,6 +480,7 @@ declare class FlipmemeSDK {
|
|
|
479
480
|
buy(params: BuyParams | EthBuyParams): Promise<ConfirmResult>;
|
|
480
481
|
flipSell(params: SellParams | EthSellParams): Promise<ConfirmResult>;
|
|
481
482
|
profileSell(data: ProfileSellParams | EthProfileSellParams): Promise<ConfirmResult>;
|
|
483
|
+
getCollectionPriceByTotalSupply(totalSupply: number): string;
|
|
482
484
|
buyCredit(params: TransferParams | {
|
|
483
485
|
amount: string;
|
|
484
486
|
}): Promise<string | {
|
|
@@ -488,6 +490,7 @@ declare class FlipmemeSDK {
|
|
|
488
490
|
lastValidBlockHeight: number;
|
|
489
491
|
}>;
|
|
490
492
|
}>;
|
|
493
|
+
exportCollectionByEth(collectionId: string, totalSupply: number, slippage?: number): Promise<string>;
|
|
491
494
|
getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
|
|
492
495
|
profileSellTotalPrice(data: Record<string, EthSellData>): Promise<string>;
|
|
493
496
|
/**
|
|
@@ -557,4 +560,6 @@ declare function getUSDPriceInWETH(): Promise<number>;
|
|
|
557
560
|
*/
|
|
558
561
|
declare function placeMagicEdenCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, magicApiKey: string): Promise<String | undefined>;
|
|
559
562
|
|
|
560
|
-
|
|
563
|
+
declare function placeSpaaceCollectionBid(price: number, collection: string, tokenIdStart: string, tokenIdEnd: string, walletAddr: string, apiKey: string, source?: string): Promise<String | undefined>;
|
|
564
|
+
|
|
565
|
+
export { APE_DEV, type AssetData, type AssetInfo, BASE_DEV, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, ETHEREUM_DEV, ETHEREUM_RPC, ETH_ADDR, ETH_COMMON, type EthAddr, type EthBuyParams, type EthProfileSellParams, type EthSellData, type EthSellParams, type EthTransferParams, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NetworkAddress, type NftInfo, type Ownership, PLATFORM, type ProfileSellParams, PurcahseType, ROUTER, RPC, type ReserveToken, type SDKSignature, type SDKTransaction, SDK_SOLANA_CONFIG, SOLANA_COMMON, SOLANA_DEV, SOLANA_MAIN, SOLANA_PUBKEYS, SOLANA_PUBKEYS_DEV, SOLANA_PUBKEYS_STAGE, SOLANA_STAGE, type SellData, type SellParams, type SellResponse, type SolanaConfig, TOKENS, type TransactionData, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, getSOLPriceInUSD, getUSDPriceInSOL, getUSDPriceInWETH, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeSpaaceCollectionBid, placeTensorCollectionBid };
|
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ interface TransferParams {
|
|
|
149
149
|
}
|
|
150
150
|
interface EthTransferParams {
|
|
151
151
|
amount: string;
|
|
152
|
+
slippage?: number;
|
|
152
153
|
}
|
|
153
154
|
declare enum PurcahseType {
|
|
154
155
|
BUY = "buy",
|
|
@@ -479,6 +480,7 @@ declare class FlipmemeSDK {
|
|
|
479
480
|
buy(params: BuyParams | EthBuyParams): Promise<ConfirmResult>;
|
|
480
481
|
flipSell(params: SellParams | EthSellParams): Promise<ConfirmResult>;
|
|
481
482
|
profileSell(data: ProfileSellParams | EthProfileSellParams): Promise<ConfirmResult>;
|
|
483
|
+
getCollectionPriceByTotalSupply(totalSupply: number): string;
|
|
482
484
|
buyCredit(params: TransferParams | {
|
|
483
485
|
amount: string;
|
|
484
486
|
}): Promise<string | {
|
|
@@ -488,6 +490,7 @@ declare class FlipmemeSDK {
|
|
|
488
490
|
lastValidBlockHeight: number;
|
|
489
491
|
}>;
|
|
490
492
|
}>;
|
|
493
|
+
exportCollectionByEth(collectionId: string, totalSupply: number, slippage?: number): Promise<string>;
|
|
491
494
|
getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
|
|
492
495
|
profileSellTotalPrice(data: Record<string, EthSellData>): Promise<string>;
|
|
493
496
|
/**
|
|
@@ -557,4 +560,6 @@ declare function getUSDPriceInWETH(): Promise<number>;
|
|
|
557
560
|
*/
|
|
558
561
|
declare function placeMagicEdenCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, magicApiKey: string): Promise<String | undefined>;
|
|
559
562
|
|
|
560
|
-
|
|
563
|
+
declare function placeSpaaceCollectionBid(price: number, collection: string, tokenIdStart: string, tokenIdEnd: string, walletAddr: string, apiKey: string, source?: string): Promise<String | undefined>;
|
|
564
|
+
|
|
565
|
+
export { APE_DEV, type AssetData, type AssetInfo, BASE_DEV, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, ETHEREUM_DEV, ETHEREUM_RPC, ETH_ADDR, ETH_COMMON, type EthAddr, type EthBuyParams, type EthProfileSellParams, type EthSellData, type EthSellParams, type EthTransferParams, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NetworkAddress, type NftInfo, type Ownership, PLATFORM, type ProfileSellParams, PurcahseType, ROUTER, RPC, type ReserveToken, type SDKSignature, type SDKTransaction, SDK_SOLANA_CONFIG, SOLANA_COMMON, SOLANA_DEV, SOLANA_MAIN, SOLANA_PUBKEYS, SOLANA_PUBKEYS_DEV, SOLANA_PUBKEYS_STAGE, SOLANA_STAGE, type SellData, type SellParams, type SellResponse, type SolanaConfig, TOKENS, type TransactionData, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, getSOLPriceInUSD, getUSDPriceInSOL, getUSDPriceInWETH, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeSpaaceCollectionBid, placeTensorCollectionBid };
|