flipmeme-sdk 1.3.71 → 1.3.72

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 CHANGED
@@ -557,4 +557,6 @@ declare function getUSDPriceInWETH(): Promise<number>;
557
557
  */
558
558
  declare function placeMagicEdenCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, magicApiKey: string): Promise<String | undefined>;
559
559
 
560
- 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, placeTensorCollectionBid };
560
+ declare function placeSpaaceCollectionBid(price: number, collection: string, tokenIdStart: string, tokenIdEnd: string, walletAddr: string, apiKey: string, source?: string): Promise<String | undefined>;
561
+
562
+ 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
@@ -557,4 +557,6 @@ declare function getUSDPriceInWETH(): Promise<number>;
557
557
  */
558
558
  declare function placeMagicEdenCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, magicApiKey: string): Promise<String | undefined>;
559
559
 
560
- 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, placeTensorCollectionBid };
560
+ declare function placeSpaaceCollectionBid(price: number, collection: string, tokenIdStart: string, tokenIdEnd: string, walletAddr: string, apiKey: string, source?: string): Promise<String | undefined>;
561
+
562
+ 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.js CHANGED
@@ -96,6 +96,7 @@ __export(index_exports, {
96
96
  isEthereumConfig: () => isEthereumConfig,
97
97
  isSolanaConfig: () => isSolanaConfig,
98
98
  placeMagicEdenCollectionBid: () => placeMagicEdenCollectionBid,
99
+ placeSpaaceCollectionBid: () => placeSpaaceCollectionBid,
99
100
  placeTensorCollectionBid: () => placeTensorCollectionBid
100
101
  });
101
102
  module.exports = __toCommonJS(index_exports);
@@ -40694,6 +40695,37 @@ function fetchTxData(endpoint, apiKey) {
40694
40695
  return yield response.json();
40695
40696
  });
40696
40697
  }
40698
+
40699
+ // src/evm/spaace.ts
40700
+ var import_axios3 = __toESM(require("axios"));
40701
+ function placeSpaaceCollectionBid(price, collection, tokenIdStart, tokenIdEnd, walletAddr, apiKey, source = "spaace.io") {
40702
+ return __async(this, null, function* () {
40703
+ const BASE_SPAACE_URI = "https://api-ethereum.spaace.io/execute/bid/v5";
40704
+ const params = {
40705
+ maker: walletAddr,
40706
+ source,
40707
+ tokenSetId: `range:${collection}:${tokenIdStart}:${tokenIdEnd}`,
40708
+ weiPrice: price
40709
+ };
40710
+ try {
40711
+ let res = yield import_axios3.default.post(BASE_SPAACE_URI, params, {
40712
+ headers: {
40713
+ "Content-Type": "application/json",
40714
+ "x-api-key": apiKey
40715
+ }
40716
+ });
40717
+ console.log("res=====", res);
40718
+ if (res.status == 200) {
40719
+ return "Success";
40720
+ } else {
40721
+ return res.statusText;
40722
+ }
40723
+ } catch (e) {
40724
+ console.log("err=====", e);
40725
+ return void 0;
40726
+ }
40727
+ });
40728
+ }
40697
40729
  // Annotate the CommonJS export names for ESM import in node:
40698
40730
  0 && (module.exports = {
40699
40731
  APE_DEV,
@@ -40728,6 +40760,7 @@ function fetchTxData(endpoint, apiKey) {
40728
40760
  isEthereumConfig,
40729
40761
  isSolanaConfig,
40730
40762
  placeMagicEdenCollectionBid,
40763
+ placeSpaaceCollectionBid,
40731
40764
  placeTensorCollectionBid
40732
40765
  });
40733
40766
  //# sourceMappingURL=index.js.map