gondi 0.63.1 → 0.65.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 +1872 -228
- 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 +1987 -211
- package/dist/src/gondi.d.ts +84 -105
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
package/dist/src/gondi.d.ts
CHANGED
|
@@ -766,6 +766,12 @@ export declare class Gondi {
|
|
|
766
766
|
* `relistOrdersOnOpenSea` signs a failed listing again. An order's `openSeaPrice`, at least its
|
|
767
767
|
* `price`, prices its OpenSea listing on its own, so the seller can receive there what they do
|
|
768
768
|
* on GONDI after OpenSea's higher fees.
|
|
769
|
+
*
|
|
770
|
+
* A single public WETH bid on one ERC-721 item on Ethereum bids on OpenSea too, at its
|
|
771
|
+
* `openSeaPrice` on OpenSea's 0.01 WETH steps. The wallet then signs twice: the batch, and the
|
|
772
|
+
* cancel of the OpenSea bid, which GONDI sends to OpenSea once the NFT reaches the bidder from
|
|
773
|
+
* either venue or the GONDI bid is cancelled. Once one bid fills, GONDI stops co-signing the
|
|
774
|
+
* other. The bidder must have approved WETH to OpenSea's conduit.
|
|
769
775
|
*/
|
|
770
776
|
makeOrdersOnOpenSea(orders: SingleNftOrderInput[]): Promise<{
|
|
771
777
|
__typename?: "BulkNFTOrdersResult";
|
|
@@ -829,7 +835,11 @@ export declare class Gondi {
|
|
|
829
835
|
* `failureReason`. An order with no OpenSea listing has no entry.
|
|
830
836
|
*/
|
|
831
837
|
openSeaListingResults(orderIds: number[]): Promise<model.OpenSeaListingResult[]>;
|
|
832
|
-
/**
|
|
838
|
+
/**
|
|
839
|
+
* Publishes the batch, signing each typed data the API asks for into the input field its key
|
|
840
|
+
* names: the batch's `signature`, then, for an item bid that also bids on OpenSea, the
|
|
841
|
+
* `openSeaCancelSignature` GONDI sends to OpenSea once the bid closes.
|
|
842
|
+
*/
|
|
833
843
|
private publishBulkOrders;
|
|
834
844
|
/**
|
|
835
845
|
* Publishes `input` until the API answers with one of the `settled` types, answering each step
|
|
@@ -2286,28 +2296,12 @@ export declare class Gondi {
|
|
|
2286
2296
|
principalAddress: Address;
|
|
2287
2297
|
duration: bigint;
|
|
2288
2298
|
status: string;
|
|
2299
|
+
offerIds: Array<string>;
|
|
2289
2300
|
principalAmount: bigint;
|
|
2290
2301
|
blendedAprBps: number;
|
|
2291
2302
|
totalOriginationFee: bigint;
|
|
2292
2303
|
protocolFee: bigint;
|
|
2293
2304
|
lenderRefinanceDisabled: boolean;
|
|
2294
|
-
offer: {
|
|
2295
|
-
__typename?: "CollectionOffer";
|
|
2296
|
-
offerId: bigint;
|
|
2297
|
-
signerAddress?: Address | null;
|
|
2298
|
-
} | {
|
|
2299
|
-
__typename?: "SetOffer";
|
|
2300
|
-
offerId: bigint;
|
|
2301
|
-
signerAddress?: Address | null;
|
|
2302
|
-
} | {
|
|
2303
|
-
__typename?: "SingleNFTOffer";
|
|
2304
|
-
offerId: bigint;
|
|
2305
|
-
signerAddress?: Address | null;
|
|
2306
|
-
} | {
|
|
2307
|
-
__typename?: "TraitOffer";
|
|
2308
|
-
offerId: bigint;
|
|
2309
|
-
signerAddress?: Address | null;
|
|
2310
|
-
};
|
|
2311
2305
|
currency: {
|
|
2312
2306
|
__typename?: "Currency";
|
|
2313
2307
|
symbol: string;
|
|
@@ -2389,28 +2383,12 @@ export declare class Gondi {
|
|
|
2389
2383
|
principalAddress: Address;
|
|
2390
2384
|
duration: bigint;
|
|
2391
2385
|
status: string;
|
|
2386
|
+
offerIds: Array<string>;
|
|
2392
2387
|
principalAmount: bigint;
|
|
2393
2388
|
blendedAprBps: number;
|
|
2394
2389
|
totalOriginationFee: bigint;
|
|
2395
2390
|
protocolFee: bigint;
|
|
2396
2391
|
lenderRefinanceDisabled: boolean;
|
|
2397
|
-
offer: {
|
|
2398
|
-
__typename?: "CollectionOffer";
|
|
2399
|
-
offerId: bigint;
|
|
2400
|
-
signerAddress?: Address | null;
|
|
2401
|
-
} | {
|
|
2402
|
-
__typename?: "SetOffer";
|
|
2403
|
-
offerId: bigint;
|
|
2404
|
-
signerAddress?: Address | null;
|
|
2405
|
-
} | {
|
|
2406
|
-
__typename?: "SingleNFTOffer";
|
|
2407
|
-
offerId: bigint;
|
|
2408
|
-
signerAddress?: Address | null;
|
|
2409
|
-
} | {
|
|
2410
|
-
__typename?: "TraitOffer";
|
|
2411
|
-
offerId: bigint;
|
|
2412
|
-
signerAddress?: Address | null;
|
|
2413
|
-
};
|
|
2414
2392
|
currency: {
|
|
2415
2393
|
__typename?: "Currency";
|
|
2416
2394
|
symbol: string;
|
|
@@ -2537,6 +2515,15 @@ export declare class Gondi {
|
|
|
2537
2515
|
}) & {
|
|
2538
2516
|
tokenId: bigint;
|
|
2539
2517
|
}): Promise<number>;
|
|
2518
|
+
/**
|
|
2519
|
+
* Lists collections, one page at a time, with their statistics; loan volumes are in
|
|
2520
|
+
* `statsCurrency` (native ETH when omitted).
|
|
2521
|
+
*
|
|
2522
|
+
* `statistics.bestOffer` is the collection's highest bid, its net amount in whole units of its
|
|
2523
|
+
* currency, or `null` when it has no active bid.
|
|
2524
|
+
*
|
|
2525
|
+
* @returns The page's collections and its `pageInfo`.
|
|
2526
|
+
*/
|
|
2540
2527
|
collections(props: {
|
|
2541
2528
|
statsCurrency?: Address;
|
|
2542
2529
|
standards?: TokenStandardType[];
|
|
@@ -2544,6 +2531,68 @@ export declare class Gondi {
|
|
|
2544
2531
|
cursor?: string;
|
|
2545
2532
|
}): Promise<{
|
|
2546
2533
|
collections: {
|
|
2534
|
+
statistics: {
|
|
2535
|
+
bestOffer: {
|
|
2536
|
+
amount: number;
|
|
2537
|
+
currency: {
|
|
2538
|
+
__typename?: "Currency";
|
|
2539
|
+
address: Address;
|
|
2540
|
+
decimals: number;
|
|
2541
|
+
} | {
|
|
2542
|
+
__typename?: "Currency";
|
|
2543
|
+
address: Address;
|
|
2544
|
+
decimals: number;
|
|
2545
|
+
} | {
|
|
2546
|
+
__typename?: "Currency";
|
|
2547
|
+
address: Address;
|
|
2548
|
+
decimals: number;
|
|
2549
|
+
} | {
|
|
2550
|
+
__typename?: "Currency";
|
|
2551
|
+
address: Address;
|
|
2552
|
+
decimals: number;
|
|
2553
|
+
} | {
|
|
2554
|
+
__typename?: "Currency";
|
|
2555
|
+
address: Address;
|
|
2556
|
+
decimals: number;
|
|
2557
|
+
} | {
|
|
2558
|
+
__typename?: "Currency";
|
|
2559
|
+
address: Address;
|
|
2560
|
+
decimals: number;
|
|
2561
|
+
} | {
|
|
2562
|
+
__typename?: "Currency";
|
|
2563
|
+
address: Address;
|
|
2564
|
+
decimals: number;
|
|
2565
|
+
} | {
|
|
2566
|
+
__typename?: "Currency";
|
|
2567
|
+
address: Address;
|
|
2568
|
+
decimals: number;
|
|
2569
|
+
};
|
|
2570
|
+
} | null;
|
|
2571
|
+
__typename?: "CollectionStatistics";
|
|
2572
|
+
floorPrice7d?: number | null;
|
|
2573
|
+
floorPrice30d?: number | null;
|
|
2574
|
+
totalVolume?: number | null;
|
|
2575
|
+
totalVolume1m?: number | null;
|
|
2576
|
+
totalVolume1w?: number | null;
|
|
2577
|
+
totalLoanVolume: bigint;
|
|
2578
|
+
totalLoanVolume1w: bigint;
|
|
2579
|
+
totalLoanVolume1m: bigint;
|
|
2580
|
+
totalLoanVolume3m: bigint;
|
|
2581
|
+
totalLoanVolume1y: bigint;
|
|
2582
|
+
numberOfPricedNfts: number;
|
|
2583
|
+
nftsCount?: number | null;
|
|
2584
|
+
percentageInOutstandingLoans: number;
|
|
2585
|
+
repaymentRate: number;
|
|
2586
|
+
floorPrice?: {
|
|
2587
|
+
__typename?: "CurrencyAmount";
|
|
2588
|
+
amount: number;
|
|
2589
|
+
currency: {
|
|
2590
|
+
__typename?: "Currency";
|
|
2591
|
+
address: Address;
|
|
2592
|
+
decimals: number;
|
|
2593
|
+
};
|
|
2594
|
+
} | null;
|
|
2595
|
+
};
|
|
2547
2596
|
__typename?: "Collection";
|
|
2548
2597
|
id: string;
|
|
2549
2598
|
name?: string | null;
|
|
@@ -2576,43 +2625,6 @@ export declare class Gondi {
|
|
|
2576
2625
|
createdDate: Date;
|
|
2577
2626
|
creatorAddress?: Address | null;
|
|
2578
2627
|
};
|
|
2579
|
-
statistics: {
|
|
2580
|
-
__typename?: "CollectionStatistics";
|
|
2581
|
-
floorPrice7d?: number | null;
|
|
2582
|
-
floorPrice30d?: number | null;
|
|
2583
|
-
totalVolume?: number | null;
|
|
2584
|
-
totalVolume1y?: number | null;
|
|
2585
|
-
totalVolume3m?: number | null;
|
|
2586
|
-
totalVolume1m?: number | null;
|
|
2587
|
-
totalVolume1w?: number | null;
|
|
2588
|
-
totalLoanVolume: bigint;
|
|
2589
|
-
totalLoanVolume1w: bigint;
|
|
2590
|
-
totalLoanVolume1m: bigint;
|
|
2591
|
-
totalLoanVolume3m: bigint;
|
|
2592
|
-
totalLoanVolume1y: bigint;
|
|
2593
|
-
numberOfPricedNfts: number;
|
|
2594
|
-
nftsCount?: number | null;
|
|
2595
|
-
percentageInOutstandingLoans: number;
|
|
2596
|
-
repaymentRate: number;
|
|
2597
|
-
floorPrice?: {
|
|
2598
|
-
__typename?: "CurrencyAmount";
|
|
2599
|
-
amount: number;
|
|
2600
|
-
currency: {
|
|
2601
|
-
__typename?: "Currency";
|
|
2602
|
-
address: Address;
|
|
2603
|
-
decimals: number;
|
|
2604
|
-
};
|
|
2605
|
-
} | null;
|
|
2606
|
-
bestOffer?: {
|
|
2607
|
-
__typename?: "CurrencyAmount";
|
|
2608
|
-
amount: number;
|
|
2609
|
-
currency: {
|
|
2610
|
-
__typename?: "Currency";
|
|
2611
|
-
address: Address;
|
|
2612
|
-
decimals: number;
|
|
2613
|
-
};
|
|
2614
|
-
} | null;
|
|
2615
|
-
};
|
|
2616
2628
|
}[];
|
|
2617
2629
|
pageInfo: {
|
|
2618
2630
|
__typename?: "PageInfo";
|
|
@@ -2642,7 +2654,6 @@ export declare class Gondi {
|
|
|
2642
2654
|
__typename: "BuyNowPayLaterOrder";
|
|
2643
2655
|
id: string;
|
|
2644
2656
|
price: bigint;
|
|
2645
|
-
steppedPrice?: bigint | null;
|
|
2646
2657
|
currencyAddress: Address;
|
|
2647
2658
|
maker: Address;
|
|
2648
2659
|
isAsk: boolean;
|
|
@@ -2659,7 +2670,6 @@ export declare class Gondi {
|
|
|
2659
2670
|
collectionId: number;
|
|
2660
2671
|
id: string;
|
|
2661
2672
|
price: bigint;
|
|
2662
|
-
steppedPrice?: bigint | null;
|
|
2663
2673
|
currencyAddress: Address;
|
|
2664
2674
|
maker: Address;
|
|
2665
2675
|
isAsk: boolean;
|
|
@@ -2676,7 +2686,6 @@ export declare class Gondi {
|
|
|
2676
2686
|
collectionId: number;
|
|
2677
2687
|
id: string;
|
|
2678
2688
|
price: bigint;
|
|
2679
|
-
steppedPrice?: bigint | null;
|
|
2680
2689
|
currencyAddress: Address;
|
|
2681
2690
|
maker: Address;
|
|
2682
2691
|
isAsk: boolean;
|
|
@@ -2692,7 +2701,6 @@ export declare class Gondi {
|
|
|
2692
2701
|
__typename: "SellAndRepayOrder";
|
|
2693
2702
|
id: string;
|
|
2694
2703
|
price: bigint;
|
|
2695
|
-
steppedPrice?: bigint | null;
|
|
2696
2704
|
currencyAddress: Address;
|
|
2697
2705
|
maker: Address;
|
|
2698
2706
|
isAsk: boolean;
|
|
@@ -2709,7 +2717,6 @@ export declare class Gondi {
|
|
|
2709
2717
|
collectionId: number;
|
|
2710
2718
|
id: string;
|
|
2711
2719
|
price: bigint;
|
|
2712
|
-
steppedPrice?: bigint | null;
|
|
2713
2720
|
currencyAddress: Address;
|
|
2714
2721
|
maker: Address;
|
|
2715
2722
|
isAsk: boolean;
|
|
@@ -2725,7 +2732,6 @@ export declare class Gondi {
|
|
|
2725
2732
|
__typename: "SingleNFTOrder";
|
|
2726
2733
|
id: string;
|
|
2727
2734
|
price: bigint;
|
|
2728
|
-
steppedPrice?: bigint | null;
|
|
2729
2735
|
currencyAddress: Address;
|
|
2730
2736
|
maker: Address;
|
|
2731
2737
|
isAsk: boolean;
|
|
@@ -2750,7 +2756,6 @@ export declare class Gondi {
|
|
|
2750
2756
|
__typename: "StealthMaskedOrder";
|
|
2751
2757
|
id: string;
|
|
2752
2758
|
price: bigint;
|
|
2753
|
-
steppedPrice?: bigint | null;
|
|
2754
2759
|
currencyAddress: Address;
|
|
2755
2760
|
maker: Address;
|
|
2756
2761
|
isAsk: boolean;
|
|
@@ -2767,7 +2772,6 @@ export declare class Gondi {
|
|
|
2767
2772
|
collectionId: number;
|
|
2768
2773
|
id: string;
|
|
2769
2774
|
price: bigint;
|
|
2770
|
-
steppedPrice?: bigint | null;
|
|
2771
2775
|
currencyAddress: Address;
|
|
2772
2776
|
maker: Address;
|
|
2773
2777
|
isAsk: boolean;
|
|
@@ -2787,7 +2791,6 @@ export declare class Gondi {
|
|
|
2787
2791
|
__typename: "BuyNowPayLaterOrder";
|
|
2788
2792
|
id: string;
|
|
2789
2793
|
price: bigint;
|
|
2790
|
-
steppedPrice?: bigint | null;
|
|
2791
2794
|
currencyAddress: Address;
|
|
2792
2795
|
maker: Address;
|
|
2793
2796
|
isAsk: boolean;
|
|
@@ -2804,7 +2807,6 @@ export declare class Gondi {
|
|
|
2804
2807
|
collectionId: number;
|
|
2805
2808
|
id: string;
|
|
2806
2809
|
price: bigint;
|
|
2807
|
-
steppedPrice?: bigint | null;
|
|
2808
2810
|
currencyAddress: Address;
|
|
2809
2811
|
maker: Address;
|
|
2810
2812
|
isAsk: boolean;
|
|
@@ -2821,7 +2823,6 @@ export declare class Gondi {
|
|
|
2821
2823
|
collectionId: number;
|
|
2822
2824
|
id: string;
|
|
2823
2825
|
price: bigint;
|
|
2824
|
-
steppedPrice?: bigint | null;
|
|
2825
2826
|
currencyAddress: Address;
|
|
2826
2827
|
maker: Address;
|
|
2827
2828
|
isAsk: boolean;
|
|
@@ -2837,7 +2838,6 @@ export declare class Gondi {
|
|
|
2837
2838
|
__typename: "SellAndRepayOrder";
|
|
2838
2839
|
id: string;
|
|
2839
2840
|
price: bigint;
|
|
2840
|
-
steppedPrice?: bigint | null;
|
|
2841
2841
|
currencyAddress: Address;
|
|
2842
2842
|
maker: Address;
|
|
2843
2843
|
isAsk: boolean;
|
|
@@ -2854,7 +2854,6 @@ export declare class Gondi {
|
|
|
2854
2854
|
collectionId: number;
|
|
2855
2855
|
id: string;
|
|
2856
2856
|
price: bigint;
|
|
2857
|
-
steppedPrice?: bigint | null;
|
|
2858
2857
|
currencyAddress: Address;
|
|
2859
2858
|
maker: Address;
|
|
2860
2859
|
isAsk: boolean;
|
|
@@ -2870,7 +2869,6 @@ export declare class Gondi {
|
|
|
2870
2869
|
__typename: "SingleNFTOrder";
|
|
2871
2870
|
id: string;
|
|
2872
2871
|
price: bigint;
|
|
2873
|
-
steppedPrice?: bigint | null;
|
|
2874
2872
|
currencyAddress: Address;
|
|
2875
2873
|
maker: Address;
|
|
2876
2874
|
isAsk: boolean;
|
|
@@ -2895,7 +2893,6 @@ export declare class Gondi {
|
|
|
2895
2893
|
__typename: "StealthMaskedOrder";
|
|
2896
2894
|
id: string;
|
|
2897
2895
|
price: bigint;
|
|
2898
|
-
steppedPrice?: bigint | null;
|
|
2899
2896
|
currencyAddress: Address;
|
|
2900
2897
|
maker: Address;
|
|
2901
2898
|
isAsk: boolean;
|
|
@@ -2912,7 +2909,6 @@ export declare class Gondi {
|
|
|
2912
2909
|
collectionId: number;
|
|
2913
2910
|
id: string;
|
|
2914
2911
|
price: bigint;
|
|
2915
|
-
steppedPrice?: bigint | null;
|
|
2916
2912
|
currencyAddress: Address;
|
|
2917
2913
|
maker: Address;
|
|
2918
2914
|
isAsk: boolean;
|
|
@@ -2960,7 +2956,6 @@ export declare class Gondi {
|
|
|
2960
2956
|
__typename: "BuyNowPayLaterOrder";
|
|
2961
2957
|
id: string;
|
|
2962
2958
|
price: bigint;
|
|
2963
|
-
steppedPrice?: bigint | null;
|
|
2964
2959
|
currencyAddress: Address;
|
|
2965
2960
|
maker: Address;
|
|
2966
2961
|
isAsk: boolean;
|
|
@@ -2977,7 +2972,6 @@ export declare class Gondi {
|
|
|
2977
2972
|
collectionId: number;
|
|
2978
2973
|
id: string;
|
|
2979
2974
|
price: bigint;
|
|
2980
|
-
steppedPrice?: bigint | null;
|
|
2981
2975
|
currencyAddress: Address;
|
|
2982
2976
|
maker: Address;
|
|
2983
2977
|
isAsk: boolean;
|
|
@@ -2994,7 +2988,6 @@ export declare class Gondi {
|
|
|
2994
2988
|
collectionId: number;
|
|
2995
2989
|
id: string;
|
|
2996
2990
|
price: bigint;
|
|
2997
|
-
steppedPrice?: bigint | null;
|
|
2998
2991
|
currencyAddress: Address;
|
|
2999
2992
|
maker: Address;
|
|
3000
2993
|
isAsk: boolean;
|
|
@@ -3010,7 +3003,6 @@ export declare class Gondi {
|
|
|
3010
3003
|
__typename: "SellAndRepayOrder";
|
|
3011
3004
|
id: string;
|
|
3012
3005
|
price: bigint;
|
|
3013
|
-
steppedPrice?: bigint | null;
|
|
3014
3006
|
currencyAddress: Address;
|
|
3015
3007
|
maker: Address;
|
|
3016
3008
|
isAsk: boolean;
|
|
@@ -3027,7 +3019,6 @@ export declare class Gondi {
|
|
|
3027
3019
|
collectionId: number;
|
|
3028
3020
|
id: string;
|
|
3029
3021
|
price: bigint;
|
|
3030
|
-
steppedPrice?: bigint | null;
|
|
3031
3022
|
currencyAddress: Address;
|
|
3032
3023
|
maker: Address;
|
|
3033
3024
|
isAsk: boolean;
|
|
@@ -3043,7 +3034,6 @@ export declare class Gondi {
|
|
|
3043
3034
|
__typename: "SingleNFTOrder";
|
|
3044
3035
|
id: string;
|
|
3045
3036
|
price: bigint;
|
|
3046
|
-
steppedPrice?: bigint | null;
|
|
3047
3037
|
currencyAddress: Address;
|
|
3048
3038
|
maker: Address;
|
|
3049
3039
|
isAsk: boolean;
|
|
@@ -3068,7 +3058,6 @@ export declare class Gondi {
|
|
|
3068
3058
|
__typename: "StealthMaskedOrder";
|
|
3069
3059
|
id: string;
|
|
3070
3060
|
price: bigint;
|
|
3071
|
-
steppedPrice?: bigint | null;
|
|
3072
3061
|
currencyAddress: Address;
|
|
3073
3062
|
maker: Address;
|
|
3074
3063
|
isAsk: boolean;
|
|
@@ -3085,7 +3074,6 @@ export declare class Gondi {
|
|
|
3085
3074
|
collectionId: number;
|
|
3086
3075
|
id: string;
|
|
3087
3076
|
price: bigint;
|
|
3088
|
-
steppedPrice?: bigint | null;
|
|
3089
3077
|
currencyAddress: Address;
|
|
3090
3078
|
maker: Address;
|
|
3091
3079
|
isAsk: boolean;
|
|
@@ -3217,15 +3205,6 @@ export declare class Gondi {
|
|
|
3217
3205
|
};
|
|
3218
3206
|
} | null;
|
|
3219
3207
|
} | null;
|
|
3220
|
-
topTraitFloorPrice?: {
|
|
3221
|
-
__typename?: "CurrencyAmount";
|
|
3222
|
-
amount: number;
|
|
3223
|
-
currency: {
|
|
3224
|
-
__typename?: "Currency";
|
|
3225
|
-
address: Address;
|
|
3226
|
-
decimals: number;
|
|
3227
|
-
};
|
|
3228
|
-
} | null;
|
|
3229
3208
|
};
|
|
3230
3209
|
}[];
|
|
3231
3210
|
pageInfo: {
|