gondi 0.34.0 → 0.36.0

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.
@@ -706,11 +706,27 @@ export declare class Gondi {
706
706
  id: bigint;
707
707
  contractAddress: Address;
708
708
  }): Promise<import("./generated/graphql").UnhideRenegotiationOfferMutation>;
709
- hideOrder({ id }: {
709
+ /**
710
+ * Hides a bid. `isAsk` is required so a listing is rejected here rather than
711
+ * by the API, which refuses it either way.
712
+ *
713
+ * @deprecated Listings can no longer be hidden — cancel one on-chain instead.
714
+ * Still hides bids.
715
+ */
716
+ hideOrder({ id, isAsk }: {
710
717
  id: number;
718
+ isAsk: boolean;
711
719
  }): Promise<import("./generated/graphql").HideOrderMutation>;
712
- showOrder({ id }: {
720
+ /**
721
+ * Unhides a bid. `isAsk` is required so a listing is rejected here rather than
722
+ * by the API, which refuses it either way.
723
+ *
724
+ * @deprecated Listings can no longer be hidden — a listing hidden before that
725
+ * change stays hidden and is cancelled on-chain. Still unhides bids.
726
+ */
727
+ showOrder({ id, isAsk }: {
713
728
  id: number;
729
+ isAsk: boolean;
714
730
  }): Promise<import("./generated/graphql").ShowOrderMutation>;
715
731
  cancelAllRenegotiations({ minId, contractAddress, }: {
716
732
  minId: bigint;
@@ -1,2 +1,7 @@
1
1
  export declare const isNative: (marketplace: string) => marketplace is "MarketPlace.Native";
2
2
  export declare const isOpensea: (marketplace: string) => marketplace is "MarketPlace.OpenSea";
3
+ /**
4
+ * Listings are not hideable in either direction; the API rejects them, so the
5
+ * caller is told here instead of spending a round trip on a doomed call.
6
+ */
7
+ export declare const assertHideableOrder: (isAsk: boolean) => void;