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.mjs CHANGED
@@ -40659,6 +40659,37 @@ function fetchTxData(endpoint, apiKey) {
40659
40659
  return yield response.json();
40660
40660
  });
40661
40661
  }
40662
+
40663
+ // src/evm/spaace.ts
40664
+ import axios3 from "axios";
40665
+ function placeSpaaceCollectionBid(price, collection, tokenIdStart, tokenIdEnd, walletAddr, apiKey, source = "spaace.io") {
40666
+ return __async(this, null, function* () {
40667
+ const BASE_SPAACE_URI = "https://api-ethereum.spaace.io/execute/bid/v5";
40668
+ const params = {
40669
+ maker: walletAddr,
40670
+ source,
40671
+ tokenSetId: `range:${collection}:${tokenIdStart}:${tokenIdEnd}`,
40672
+ weiPrice: price
40673
+ };
40674
+ try {
40675
+ let res = yield axios3.post(BASE_SPAACE_URI, params, {
40676
+ headers: {
40677
+ "Content-Type": "application/json",
40678
+ "x-api-key": apiKey
40679
+ }
40680
+ });
40681
+ console.log("res=====", res);
40682
+ if (res.status == 200) {
40683
+ return "Success";
40684
+ } else {
40685
+ return res.statusText;
40686
+ }
40687
+ } catch (e) {
40688
+ console.log("err=====", e);
40689
+ return void 0;
40690
+ }
40691
+ });
40692
+ }
40662
40693
  export {
40663
40694
  APE_DEV,
40664
40695
  BASE_DEV,
@@ -40692,6 +40723,7 @@ export {
40692
40723
  isEthereumConfig,
40693
40724
  isSolanaConfig,
40694
40725
  placeMagicEdenCollectionBid,
40726
+ placeSpaaceCollectionBid,
40695
40727
  placeTensorCollectionBid
40696
40728
  };
40697
40729
  //# sourceMappingURL=index.mjs.map