gondi 0.54.0 → 0.58.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/README.md +3 -2
- package/dist/index.mjs +497 -72
- package/dist/index.mjs.map +4 -4
- package/dist/src/clients/api/auth.d.ts +11 -1
- package/dist/src/clients/api/index.d.ts +582 -111
- package/dist/src/clients/api/sdk.d.ts +19 -0
- package/dist/src/clients/contracts/AllV4.d.ts +8 -0
- package/dist/src/clients/contracts/AllV5.d.ts +5 -0
- package/dist/src/clients/contracts/AllV6.d.ts +5 -0
- package/dist/src/clients/contracts/index.d.ts +27 -3
- package/dist/src/errors.d.ts +1 -23
- package/dist/src/generated/graphql/index.d.ts +856 -34
- package/dist/src/gondi.d.ts +599 -14
- package/dist/src/index.d.ts +1 -1
- package/dist/src/model.d.ts +22 -1
- package/dist/src/utils/steps.d.ts +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FlaggedNftError } from './errors';
|
|
2
2
|
export { Gondi } from './gondi';
|
|
3
|
-
export { LoanStatusType, OfferStatus, OffersSortField, Ordering, MarketplaceEnum, TokenStandardType, } from './generated/graphql';
|
|
3
|
+
export { CollectionOrderType, LoanStatusType, OfferStatus, OffersSortField, Ordering, OrderMatchMode, OrderSide, OrderSortField, OrderStatusType, MarketplaceEnum, TokenStandardType, } from './generated/graphql';
|
|
4
4
|
export type { OnStepChange, Punk721WrapState } from './gondi';
|
|
5
5
|
export type { CreditPurchaseInput, CreditPurchaseQuote } from './utils/creditPurchase';
|
|
6
6
|
export type { CrossCurrencyRenegotiationInput, CrossCurrencyRenegotiationQuote, } from './clients/contracts/CrossCurrencyRenegotiation';
|
package/dist/src/model.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
2
|
import { Signature } from './blockchain';
|
|
3
|
-
import { CollectionOfferInput as ApiCollectionOfferInput, CollectionSignedOfferInput, LoanSortInput, LoanStatusType, MarketplaceEnum, OffersSortInput, OfferStatus, RenegotiationOfferInput as ApiRenegotiationInput, SignedRenegotiationOfferInput, SingleNftOfferInput as ApiSingleNftOfferInput, SingleNftSignedOfferInput, TermsFilter, TraitOfferInput as ApiTraitOfferInput, UserFilter } from './generated/graphql';
|
|
3
|
+
import { CollectionOfferInput as ApiCollectionOfferInput, CollectionOrderType, CollectionSignedOfferInput, LoanSortInput, LoanStatusType, MarketplaceEnum, OffersSortInput, OfferStatus, OrderForNft, OrderMatchMode, OrderSide, OrderSortInput, OrderStatusType, RenegotiationOfferInput as ApiRenegotiationInput, SignedRenegotiationOfferInput, SingleNftOfferInput as ApiSingleNftOfferInput, SingleNftSignedOfferInput, TermsFilter, TraitOfferInput as ApiTraitOfferInput, UserFilter } from './generated/graphql';
|
|
4
4
|
import { Optional } from './utils/types';
|
|
5
5
|
type MaxSeniorRepaymentArg = {
|
|
6
6
|
maxSeniorRepayment: Exclude<ApiSingleNftOfferInput['maxSeniorRepayment'], null | undefined>;
|
|
@@ -70,6 +70,27 @@ export type ListListingsProps = {
|
|
|
70
70
|
limit?: number;
|
|
71
71
|
cursor?: string | null;
|
|
72
72
|
};
|
|
73
|
+
export type ListOrdersProps = {
|
|
74
|
+
side?: OrderSide;
|
|
75
|
+
collections?: number[];
|
|
76
|
+
traits?: number[];
|
|
77
|
+
nfts?: OrderForNft[];
|
|
78
|
+
makers?: Address[];
|
|
79
|
+
excludeMakers?: Address[];
|
|
80
|
+
currencies?: Address[];
|
|
81
|
+
/** Defaults to active orders only. */
|
|
82
|
+
statuses?: OrderStatusType[];
|
|
83
|
+
/**
|
|
84
|
+
* `ANY` lists every bid that can fill with an item of `collections` (or of `traits`' collection):
|
|
85
|
+
* item, trait, set and collection bids alike. Needs `side: BID`. Defaults to `ALL`.
|
|
86
|
+
*/
|
|
87
|
+
matchMode?: OrderMatchMode;
|
|
88
|
+
/** Narrows `collections` (or `traits` under `ANY`) to these bid types, e.g. only collection bids. */
|
|
89
|
+
orderTypes?: CollectionOrderType[];
|
|
90
|
+
sortBy?: OrderSortInput[];
|
|
91
|
+
limit?: number;
|
|
92
|
+
cursor?: string | null;
|
|
93
|
+
};
|
|
73
94
|
export type NftStandard = 'ERC721' | 'ERC1155';
|
|
74
95
|
export type TransferNftStandard = NftStandard | 'CryptoPunks' | 'OldERC721';
|
|
75
96
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs the work behind a step and returns its result. When that work rejects,
|
|
3
|
+
* reports the error through `reportError` and rethrows the work's own error.
|
|
4
|
+
* Only `operation` is guarded, so a step callback the caller awaits outside it
|
|
5
|
+
* never reads as a failed step, and anything `reportError` throws is dropped
|
|
6
|
+
* so the original cause always propagates.
|
|
7
|
+
*/
|
|
8
|
+
export declare const withStepError: <T>(operation: () => Promise<T>, reportError: (error: unknown) => Promise<void>) => Promise<T>;
|