gondi 0.63.0 → 0.64.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.
- package/dist/index.mjs +784 -183
- package/dist/index.mjs.map +3 -3
- package/dist/src/clients/api/index.d.ts +2 -58
- package/dist/src/clients/contracts/MslV6.d.ts +7 -0
- package/dist/src/generated/graphql/index.d.ts +799 -196
- package/dist/src/gondi.d.ts +87 -104
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/src/gondi.d.ts
CHANGED
|
@@ -831,6 +831,14 @@ export declare class Gondi {
|
|
|
831
831
|
openSeaListingResults(orderIds: number[]): Promise<model.OpenSeaListingResult[]>;
|
|
832
832
|
/** Publishes the batch, signing the typed data the API answers with when it asks for it. */
|
|
833
833
|
private publishBulkOrders;
|
|
834
|
+
/**
|
|
835
|
+
* Publishes `input` until the API answers with one of the `settled` types, answering each step
|
|
836
|
+
* it asks for in between: `onExtraSeaportData` copies refreshed marketplace data into the input,
|
|
837
|
+
* and `sign` answers a signature request, by default writing the wallet's signature of the typed
|
|
838
|
+
* data into the input field the request names. A step asked for twice, or a response that is
|
|
839
|
+
* neither settled nor a step the caller answers, throws instead of publishing again.
|
|
840
|
+
*/
|
|
841
|
+
private negotiate;
|
|
834
842
|
makeDeal(dealInput: DealInput): Promise<{
|
|
835
843
|
blockchain: import("./generated/graphql").BlockchainEnum;
|
|
836
844
|
counterOfferForId?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Int"]>;
|
|
@@ -2278,28 +2286,12 @@ export declare class Gondi {
|
|
|
2278
2286
|
principalAddress: Address;
|
|
2279
2287
|
duration: bigint;
|
|
2280
2288
|
status: string;
|
|
2289
|
+
offerIds: Array<string>;
|
|
2281
2290
|
principalAmount: bigint;
|
|
2282
2291
|
blendedAprBps: number;
|
|
2283
2292
|
totalOriginationFee: bigint;
|
|
2284
2293
|
protocolFee: bigint;
|
|
2285
2294
|
lenderRefinanceDisabled: boolean;
|
|
2286
|
-
offer: {
|
|
2287
|
-
__typename?: "CollectionOffer";
|
|
2288
|
-
offerId: bigint;
|
|
2289
|
-
signerAddress?: Address | null;
|
|
2290
|
-
} | {
|
|
2291
|
-
__typename?: "SetOffer";
|
|
2292
|
-
offerId: bigint;
|
|
2293
|
-
signerAddress?: Address | null;
|
|
2294
|
-
} | {
|
|
2295
|
-
__typename?: "SingleNFTOffer";
|
|
2296
|
-
offerId: bigint;
|
|
2297
|
-
signerAddress?: Address | null;
|
|
2298
|
-
} | {
|
|
2299
|
-
__typename?: "TraitOffer";
|
|
2300
|
-
offerId: bigint;
|
|
2301
|
-
signerAddress?: Address | null;
|
|
2302
|
-
};
|
|
2303
2295
|
currency: {
|
|
2304
2296
|
__typename?: "Currency";
|
|
2305
2297
|
symbol: string;
|
|
@@ -2381,28 +2373,12 @@ export declare class Gondi {
|
|
|
2381
2373
|
principalAddress: Address;
|
|
2382
2374
|
duration: bigint;
|
|
2383
2375
|
status: string;
|
|
2376
|
+
offerIds: Array<string>;
|
|
2384
2377
|
principalAmount: bigint;
|
|
2385
2378
|
blendedAprBps: number;
|
|
2386
2379
|
totalOriginationFee: bigint;
|
|
2387
2380
|
protocolFee: bigint;
|
|
2388
2381
|
lenderRefinanceDisabled: boolean;
|
|
2389
|
-
offer: {
|
|
2390
|
-
__typename?: "CollectionOffer";
|
|
2391
|
-
offerId: bigint;
|
|
2392
|
-
signerAddress?: Address | null;
|
|
2393
|
-
} | {
|
|
2394
|
-
__typename?: "SetOffer";
|
|
2395
|
-
offerId: bigint;
|
|
2396
|
-
signerAddress?: Address | null;
|
|
2397
|
-
} | {
|
|
2398
|
-
__typename?: "SingleNFTOffer";
|
|
2399
|
-
offerId: bigint;
|
|
2400
|
-
signerAddress?: Address | null;
|
|
2401
|
-
} | {
|
|
2402
|
-
__typename?: "TraitOffer";
|
|
2403
|
-
offerId: bigint;
|
|
2404
|
-
signerAddress?: Address | null;
|
|
2405
|
-
};
|
|
2406
2382
|
currency: {
|
|
2407
2383
|
__typename?: "Currency";
|
|
2408
2384
|
symbol: string;
|
|
@@ -2529,6 +2505,15 @@ export declare class Gondi {
|
|
|
2529
2505
|
}) & {
|
|
2530
2506
|
tokenId: bigint;
|
|
2531
2507
|
}): Promise<number>;
|
|
2508
|
+
/**
|
|
2509
|
+
* Lists collections, one page at a time, with their statistics; loan volumes are in
|
|
2510
|
+
* `statsCurrency` (native ETH when omitted).
|
|
2511
|
+
*
|
|
2512
|
+
* `statistics.bestOffer` is the collection's highest bid, its net amount in whole units of its
|
|
2513
|
+
* currency, or `null` when it has no active bid.
|
|
2514
|
+
*
|
|
2515
|
+
* @returns The page's collections and its `pageInfo`.
|
|
2516
|
+
*/
|
|
2532
2517
|
collections(props: {
|
|
2533
2518
|
statsCurrency?: Address;
|
|
2534
2519
|
standards?: TokenStandardType[];
|
|
@@ -2536,6 +2521,68 @@ export declare class Gondi {
|
|
|
2536
2521
|
cursor?: string;
|
|
2537
2522
|
}): Promise<{
|
|
2538
2523
|
collections: {
|
|
2524
|
+
statistics: {
|
|
2525
|
+
bestOffer: {
|
|
2526
|
+
amount: number;
|
|
2527
|
+
currency: {
|
|
2528
|
+
__typename?: "Currency";
|
|
2529
|
+
address: Address;
|
|
2530
|
+
decimals: number;
|
|
2531
|
+
} | {
|
|
2532
|
+
__typename?: "Currency";
|
|
2533
|
+
address: Address;
|
|
2534
|
+
decimals: number;
|
|
2535
|
+
} | {
|
|
2536
|
+
__typename?: "Currency";
|
|
2537
|
+
address: Address;
|
|
2538
|
+
decimals: number;
|
|
2539
|
+
} | {
|
|
2540
|
+
__typename?: "Currency";
|
|
2541
|
+
address: Address;
|
|
2542
|
+
decimals: number;
|
|
2543
|
+
} | {
|
|
2544
|
+
__typename?: "Currency";
|
|
2545
|
+
address: Address;
|
|
2546
|
+
decimals: number;
|
|
2547
|
+
} | {
|
|
2548
|
+
__typename?: "Currency";
|
|
2549
|
+
address: Address;
|
|
2550
|
+
decimals: number;
|
|
2551
|
+
} | {
|
|
2552
|
+
__typename?: "Currency";
|
|
2553
|
+
address: Address;
|
|
2554
|
+
decimals: number;
|
|
2555
|
+
} | {
|
|
2556
|
+
__typename?: "Currency";
|
|
2557
|
+
address: Address;
|
|
2558
|
+
decimals: number;
|
|
2559
|
+
};
|
|
2560
|
+
} | null;
|
|
2561
|
+
__typename?: "CollectionStatistics";
|
|
2562
|
+
floorPrice7d?: number | null;
|
|
2563
|
+
floorPrice30d?: number | null;
|
|
2564
|
+
totalVolume?: number | null;
|
|
2565
|
+
totalVolume1m?: number | null;
|
|
2566
|
+
totalVolume1w?: number | null;
|
|
2567
|
+
totalLoanVolume: bigint;
|
|
2568
|
+
totalLoanVolume1w: bigint;
|
|
2569
|
+
totalLoanVolume1m: bigint;
|
|
2570
|
+
totalLoanVolume3m: bigint;
|
|
2571
|
+
totalLoanVolume1y: bigint;
|
|
2572
|
+
numberOfPricedNfts: number;
|
|
2573
|
+
nftsCount?: number | null;
|
|
2574
|
+
percentageInOutstandingLoans: number;
|
|
2575
|
+
repaymentRate: number;
|
|
2576
|
+
floorPrice?: {
|
|
2577
|
+
__typename?: "CurrencyAmount";
|
|
2578
|
+
amount: number;
|
|
2579
|
+
currency: {
|
|
2580
|
+
__typename?: "Currency";
|
|
2581
|
+
address: Address;
|
|
2582
|
+
decimals: number;
|
|
2583
|
+
};
|
|
2584
|
+
} | null;
|
|
2585
|
+
};
|
|
2539
2586
|
__typename?: "Collection";
|
|
2540
2587
|
id: string;
|
|
2541
2588
|
name?: string | null;
|
|
@@ -2568,43 +2615,6 @@ export declare class Gondi {
|
|
|
2568
2615
|
createdDate: Date;
|
|
2569
2616
|
creatorAddress?: Address | null;
|
|
2570
2617
|
};
|
|
2571
|
-
statistics: {
|
|
2572
|
-
__typename?: "CollectionStatistics";
|
|
2573
|
-
floorPrice7d?: number | null;
|
|
2574
|
-
floorPrice30d?: number | null;
|
|
2575
|
-
totalVolume?: number | null;
|
|
2576
|
-
totalVolume1y?: number | null;
|
|
2577
|
-
totalVolume3m?: number | null;
|
|
2578
|
-
totalVolume1m?: number | null;
|
|
2579
|
-
totalVolume1w?: number | null;
|
|
2580
|
-
totalLoanVolume: bigint;
|
|
2581
|
-
totalLoanVolume1w: bigint;
|
|
2582
|
-
totalLoanVolume1m: bigint;
|
|
2583
|
-
totalLoanVolume3m: bigint;
|
|
2584
|
-
totalLoanVolume1y: bigint;
|
|
2585
|
-
numberOfPricedNfts: number;
|
|
2586
|
-
nftsCount?: number | null;
|
|
2587
|
-
percentageInOutstandingLoans: number;
|
|
2588
|
-
repaymentRate: number;
|
|
2589
|
-
floorPrice?: {
|
|
2590
|
-
__typename?: "CurrencyAmount";
|
|
2591
|
-
amount: number;
|
|
2592
|
-
currency: {
|
|
2593
|
-
__typename?: "Currency";
|
|
2594
|
-
address: Address;
|
|
2595
|
-
decimals: number;
|
|
2596
|
-
};
|
|
2597
|
-
} | null;
|
|
2598
|
-
bestOffer?: {
|
|
2599
|
-
__typename?: "CurrencyAmount";
|
|
2600
|
-
amount: number;
|
|
2601
|
-
currency: {
|
|
2602
|
-
__typename?: "Currency";
|
|
2603
|
-
address: Address;
|
|
2604
|
-
decimals: number;
|
|
2605
|
-
};
|
|
2606
|
-
} | null;
|
|
2607
|
-
};
|
|
2608
2618
|
}[];
|
|
2609
2619
|
pageInfo: {
|
|
2610
2620
|
__typename?: "PageInfo";
|
|
@@ -2624,6 +2634,9 @@ export declare class Gondi {
|
|
|
2624
2634
|
* Lists trade orders — bids and listings — across the marketplaces GONDI indexes, newest first
|
|
2625
2635
|
* unless `sortBy` says otherwise. Only active orders unless `statuses` is given.
|
|
2626
2636
|
*
|
|
2637
|
+
* The API answers this read without a session, but like every call on `Gondi` it signs the
|
|
2638
|
+
* wallet in first. The GONDI market maker reads the same data through its own sign-in-free client.
|
|
2639
|
+
*
|
|
2627
2640
|
* @returns One page of orders, with the cursor of the next one.
|
|
2628
2641
|
*/
|
|
2629
2642
|
orders({ side, collections, traits, nfts, makers, excludeMakers, currencies, statuses, matchMode, orderTypes, sortBy, limit, cursor, }: model.ListOrdersProps): Promise<{
|
|
@@ -2631,7 +2644,6 @@ export declare class Gondi {
|
|
|
2631
2644
|
__typename: "BuyNowPayLaterOrder";
|
|
2632
2645
|
id: string;
|
|
2633
2646
|
price: bigint;
|
|
2634
|
-
steppedPrice?: bigint | null;
|
|
2635
2647
|
currencyAddress: Address;
|
|
2636
2648
|
maker: Address;
|
|
2637
2649
|
isAsk: boolean;
|
|
@@ -2648,7 +2660,6 @@ export declare class Gondi {
|
|
|
2648
2660
|
collectionId: number;
|
|
2649
2661
|
id: string;
|
|
2650
2662
|
price: bigint;
|
|
2651
|
-
steppedPrice?: bigint | null;
|
|
2652
2663
|
currencyAddress: Address;
|
|
2653
2664
|
maker: Address;
|
|
2654
2665
|
isAsk: boolean;
|
|
@@ -2665,7 +2676,6 @@ export declare class Gondi {
|
|
|
2665
2676
|
collectionId: number;
|
|
2666
2677
|
id: string;
|
|
2667
2678
|
price: bigint;
|
|
2668
|
-
steppedPrice?: bigint | null;
|
|
2669
2679
|
currencyAddress: Address;
|
|
2670
2680
|
maker: Address;
|
|
2671
2681
|
isAsk: boolean;
|
|
@@ -2681,7 +2691,6 @@ export declare class Gondi {
|
|
|
2681
2691
|
__typename: "SellAndRepayOrder";
|
|
2682
2692
|
id: string;
|
|
2683
2693
|
price: bigint;
|
|
2684
|
-
steppedPrice?: bigint | null;
|
|
2685
2694
|
currencyAddress: Address;
|
|
2686
2695
|
maker: Address;
|
|
2687
2696
|
isAsk: boolean;
|
|
@@ -2698,7 +2707,6 @@ export declare class Gondi {
|
|
|
2698
2707
|
collectionId: number;
|
|
2699
2708
|
id: string;
|
|
2700
2709
|
price: bigint;
|
|
2701
|
-
steppedPrice?: bigint | null;
|
|
2702
2710
|
currencyAddress: Address;
|
|
2703
2711
|
maker: Address;
|
|
2704
2712
|
isAsk: boolean;
|
|
@@ -2714,7 +2722,6 @@ export declare class Gondi {
|
|
|
2714
2722
|
__typename: "SingleNFTOrder";
|
|
2715
2723
|
id: string;
|
|
2716
2724
|
price: bigint;
|
|
2717
|
-
steppedPrice?: bigint | null;
|
|
2718
2725
|
currencyAddress: Address;
|
|
2719
2726
|
maker: Address;
|
|
2720
2727
|
isAsk: boolean;
|
|
@@ -2739,7 +2746,6 @@ export declare class Gondi {
|
|
|
2739
2746
|
__typename: "StealthMaskedOrder";
|
|
2740
2747
|
id: string;
|
|
2741
2748
|
price: bigint;
|
|
2742
|
-
steppedPrice?: bigint | null;
|
|
2743
2749
|
currencyAddress: Address;
|
|
2744
2750
|
maker: Address;
|
|
2745
2751
|
isAsk: boolean;
|
|
@@ -2756,7 +2762,6 @@ export declare class Gondi {
|
|
|
2756
2762
|
collectionId: number;
|
|
2757
2763
|
id: string;
|
|
2758
2764
|
price: bigint;
|
|
2759
|
-
steppedPrice?: bigint | null;
|
|
2760
2765
|
currencyAddress: Address;
|
|
2761
2766
|
maker: Address;
|
|
2762
2767
|
isAsk: boolean;
|
|
@@ -2776,7 +2781,6 @@ export declare class Gondi {
|
|
|
2776
2781
|
__typename: "BuyNowPayLaterOrder";
|
|
2777
2782
|
id: string;
|
|
2778
2783
|
price: bigint;
|
|
2779
|
-
steppedPrice?: bigint | null;
|
|
2780
2784
|
currencyAddress: Address;
|
|
2781
2785
|
maker: Address;
|
|
2782
2786
|
isAsk: boolean;
|
|
@@ -2793,7 +2797,6 @@ export declare class Gondi {
|
|
|
2793
2797
|
collectionId: number;
|
|
2794
2798
|
id: string;
|
|
2795
2799
|
price: bigint;
|
|
2796
|
-
steppedPrice?: bigint | null;
|
|
2797
2800
|
currencyAddress: Address;
|
|
2798
2801
|
maker: Address;
|
|
2799
2802
|
isAsk: boolean;
|
|
@@ -2810,7 +2813,6 @@ export declare class Gondi {
|
|
|
2810
2813
|
collectionId: number;
|
|
2811
2814
|
id: string;
|
|
2812
2815
|
price: bigint;
|
|
2813
|
-
steppedPrice?: bigint | null;
|
|
2814
2816
|
currencyAddress: Address;
|
|
2815
2817
|
maker: Address;
|
|
2816
2818
|
isAsk: boolean;
|
|
@@ -2826,7 +2828,6 @@ export declare class Gondi {
|
|
|
2826
2828
|
__typename: "SellAndRepayOrder";
|
|
2827
2829
|
id: string;
|
|
2828
2830
|
price: bigint;
|
|
2829
|
-
steppedPrice?: bigint | null;
|
|
2830
2831
|
currencyAddress: Address;
|
|
2831
2832
|
maker: Address;
|
|
2832
2833
|
isAsk: boolean;
|
|
@@ -2843,7 +2844,6 @@ export declare class Gondi {
|
|
|
2843
2844
|
collectionId: number;
|
|
2844
2845
|
id: string;
|
|
2845
2846
|
price: bigint;
|
|
2846
|
-
steppedPrice?: bigint | null;
|
|
2847
2847
|
currencyAddress: Address;
|
|
2848
2848
|
maker: Address;
|
|
2849
2849
|
isAsk: boolean;
|
|
@@ -2859,7 +2859,6 @@ export declare class Gondi {
|
|
|
2859
2859
|
__typename: "SingleNFTOrder";
|
|
2860
2860
|
id: string;
|
|
2861
2861
|
price: bigint;
|
|
2862
|
-
steppedPrice?: bigint | null;
|
|
2863
2862
|
currencyAddress: Address;
|
|
2864
2863
|
maker: Address;
|
|
2865
2864
|
isAsk: boolean;
|
|
@@ -2884,7 +2883,6 @@ export declare class Gondi {
|
|
|
2884
2883
|
__typename: "StealthMaskedOrder";
|
|
2885
2884
|
id: string;
|
|
2886
2885
|
price: bigint;
|
|
2887
|
-
steppedPrice?: bigint | null;
|
|
2888
2886
|
currencyAddress: Address;
|
|
2889
2887
|
maker: Address;
|
|
2890
2888
|
isAsk: boolean;
|
|
@@ -2901,7 +2899,6 @@ export declare class Gondi {
|
|
|
2901
2899
|
collectionId: number;
|
|
2902
2900
|
id: string;
|
|
2903
2901
|
price: bigint;
|
|
2904
|
-
steppedPrice?: bigint | null;
|
|
2905
2902
|
currencyAddress: Address;
|
|
2906
2903
|
maker: Address;
|
|
2907
2904
|
isAsk: boolean;
|
|
@@ -2925,6 +2922,9 @@ export declare class Gondi {
|
|
|
2925
2922
|
*
|
|
2926
2923
|
* Looks the collection up by slug, the lookup the API answers fastest.
|
|
2927
2924
|
*
|
|
2925
|
+
* The API answers this read without a session, but like every call on `Gondi` it signs the
|
|
2926
|
+
* wallet in first. The GONDI market maker reads the same data through its own sign-in-free client.
|
|
2927
|
+
*
|
|
2928
2928
|
* @throws Error when no collection has `slug`.
|
|
2929
2929
|
*/
|
|
2930
2930
|
collectionMarket({ slug, currencies }: {
|
|
@@ -2946,7 +2946,6 @@ export declare class Gondi {
|
|
|
2946
2946
|
__typename: "BuyNowPayLaterOrder";
|
|
2947
2947
|
id: string;
|
|
2948
2948
|
price: bigint;
|
|
2949
|
-
steppedPrice?: bigint | null;
|
|
2950
2949
|
currencyAddress: Address;
|
|
2951
2950
|
maker: Address;
|
|
2952
2951
|
isAsk: boolean;
|
|
@@ -2963,7 +2962,6 @@ export declare class Gondi {
|
|
|
2963
2962
|
collectionId: number;
|
|
2964
2963
|
id: string;
|
|
2965
2964
|
price: bigint;
|
|
2966
|
-
steppedPrice?: bigint | null;
|
|
2967
2965
|
currencyAddress: Address;
|
|
2968
2966
|
maker: Address;
|
|
2969
2967
|
isAsk: boolean;
|
|
@@ -2980,7 +2978,6 @@ export declare class Gondi {
|
|
|
2980
2978
|
collectionId: number;
|
|
2981
2979
|
id: string;
|
|
2982
2980
|
price: bigint;
|
|
2983
|
-
steppedPrice?: bigint | null;
|
|
2984
2981
|
currencyAddress: Address;
|
|
2985
2982
|
maker: Address;
|
|
2986
2983
|
isAsk: boolean;
|
|
@@ -2996,7 +2993,6 @@ export declare class Gondi {
|
|
|
2996
2993
|
__typename: "SellAndRepayOrder";
|
|
2997
2994
|
id: string;
|
|
2998
2995
|
price: bigint;
|
|
2999
|
-
steppedPrice?: bigint | null;
|
|
3000
2996
|
currencyAddress: Address;
|
|
3001
2997
|
maker: Address;
|
|
3002
2998
|
isAsk: boolean;
|
|
@@ -3013,7 +3009,6 @@ export declare class Gondi {
|
|
|
3013
3009
|
collectionId: number;
|
|
3014
3010
|
id: string;
|
|
3015
3011
|
price: bigint;
|
|
3016
|
-
steppedPrice?: bigint | null;
|
|
3017
3012
|
currencyAddress: Address;
|
|
3018
3013
|
maker: Address;
|
|
3019
3014
|
isAsk: boolean;
|
|
@@ -3029,7 +3024,6 @@ export declare class Gondi {
|
|
|
3029
3024
|
__typename: "SingleNFTOrder";
|
|
3030
3025
|
id: string;
|
|
3031
3026
|
price: bigint;
|
|
3032
|
-
steppedPrice?: bigint | null;
|
|
3033
3027
|
currencyAddress: Address;
|
|
3034
3028
|
maker: Address;
|
|
3035
3029
|
isAsk: boolean;
|
|
@@ -3054,7 +3048,6 @@ export declare class Gondi {
|
|
|
3054
3048
|
__typename: "StealthMaskedOrder";
|
|
3055
3049
|
id: string;
|
|
3056
3050
|
price: bigint;
|
|
3057
|
-
steppedPrice?: bigint | null;
|
|
3058
3051
|
currencyAddress: Address;
|
|
3059
3052
|
maker: Address;
|
|
3060
3053
|
isAsk: boolean;
|
|
@@ -3071,7 +3064,6 @@ export declare class Gondi {
|
|
|
3071
3064
|
collectionId: number;
|
|
3072
3065
|
id: string;
|
|
3073
3066
|
price: bigint;
|
|
3074
|
-
steppedPrice?: bigint | null;
|
|
3075
3067
|
currencyAddress: Address;
|
|
3076
3068
|
maker: Address;
|
|
3077
3069
|
isAsk: boolean;
|
|
@@ -3203,15 +3195,6 @@ export declare class Gondi {
|
|
|
3203
3195
|
};
|
|
3204
3196
|
} | null;
|
|
3205
3197
|
} | null;
|
|
3206
|
-
topTraitFloorPrice?: {
|
|
3207
|
-
__typename?: "CurrencyAmount";
|
|
3208
|
-
amount: number;
|
|
3209
|
-
currency: {
|
|
3210
|
-
__typename?: "Currency";
|
|
3211
|
-
address: Address;
|
|
3212
|
-
decimals: number;
|
|
3213
|
-
};
|
|
3214
|
-
} | null;
|
|
3215
3198
|
};
|
|
3216
3199
|
}[];
|
|
3217
3200
|
pageInfo: {
|