gondi 0.61.1 → 0.62.1
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 +155 -67
- package/dist/index.mjs.map +3 -3
- package/dist/src/clients/api/index.d.ts +6 -5
- package/dist/src/clients/api/sdk.d.ts +6 -5
- package/dist/src/clients/contracts/AllV6.d.ts +2 -0
- package/dist/src/generated/graphql/index.d.ts +70 -10
- package/dist/src/gondi.d.ts +25 -5
- package/dist/src/utils/loan.d.ts +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -66,12 +66,13 @@ export declare class Api {
|
|
|
66
66
|
unlistNft: (variables: import("../../generated/graphql").Exact<{
|
|
67
67
|
nftId: import("../../generated/graphql").Scalars["Int"];
|
|
68
68
|
}>, options?: {} | undefined) => Promise<import("../../generated/graphql").UnlistNftMutation>;
|
|
69
|
-
ownedNfts: (variables
|
|
69
|
+
ownedNfts: (variables: import("../../generated/graphql").Exact<{
|
|
70
|
+
owner: import("../../generated/graphql").Scalars["Address"];
|
|
70
71
|
after?: import("../../generated/graphql").InputMaybe<import("../../generated/graphql").Scalars["String"]>;
|
|
71
|
-
includeInLoans
|
|
72
|
-
includeInStash
|
|
73
|
-
standards
|
|
74
|
-
}
|
|
72
|
+
includeInLoans: import("../../generated/graphql").Scalars["Boolean"];
|
|
73
|
+
includeInStash: import("../../generated/graphql").Scalars["Boolean"];
|
|
74
|
+
standards: Array<import("../../generated/graphql").TokenStandardType> | import("../../generated/graphql").TokenStandardType;
|
|
75
|
+
}>, options?: {} | undefined) => Promise<import("../../generated/graphql").OwnedNftsQuery>;
|
|
75
76
|
hideOffer: (variables: import("../../generated/graphql").Exact<{
|
|
76
77
|
contract: import("../../generated/graphql").Scalars["Address"];
|
|
77
78
|
id: import("../../generated/graphql").Scalars["String"];
|
|
@@ -142,12 +142,13 @@ export declare function getSdkApollo<C>(client: ApolloClient<C>, onStepChange?:
|
|
|
142
142
|
slug: import("../../generated/graphql").Scalars["String"];
|
|
143
143
|
tokenId: import("../../generated/graphql").Scalars["BigInt"];
|
|
144
144
|
}>, options?: {} | undefined): Promise<import("../../generated/graphql").NftIdBySlugTokenIdQuery>;
|
|
145
|
-
ownedNfts(variables
|
|
145
|
+
ownedNfts(variables: import("../../generated/graphql").Exact<{
|
|
146
|
+
owner: import("../../generated/graphql").Scalars["Address"];
|
|
146
147
|
after?: import("../../generated/graphql").InputMaybe<import("../../generated/graphql").Scalars["String"]>;
|
|
147
|
-
includeInLoans
|
|
148
|
-
includeInStash
|
|
149
|
-
standards
|
|
150
|
-
}
|
|
148
|
+
includeInLoans: import("../../generated/graphql").Scalars["Boolean"];
|
|
149
|
+
includeInStash: import("../../generated/graphql").Scalars["Boolean"];
|
|
150
|
+
standards: Array<import("../../generated/graphql").TokenStandardType> | import("../../generated/graphql").TokenStandardType;
|
|
151
|
+
}>, options?: {} | undefined): Promise<import("../../generated/graphql").OwnedNftsQuery>;
|
|
151
152
|
listOffers(variables: import("../../generated/graphql").Exact<{
|
|
152
153
|
borrowerAddress?: import("../../generated/graphql").InputMaybe<import("../../generated/graphql").Scalars["String"]>;
|
|
153
154
|
lenders?: import("../../generated/graphql").InputMaybe<Array<import("../../generated/graphql").Scalars["String"]> | import("../../generated/graphql").Scalars["String"]>;
|
|
@@ -159,5 +159,7 @@ export declare class AllV6 extends BaseContract<typeof auctionWithBuyoutLoanLiqu
|
|
|
159
159
|
triggerFee: bigint;
|
|
160
160
|
}>;
|
|
161
161
|
}>;
|
|
162
|
+
/** The caller's auction with its NFT; throws when the struct is not a v6 one. */
|
|
163
|
+
private heldAuction;
|
|
162
164
|
private mapAuctionToAuctionArgs;
|
|
163
165
|
}
|
|
@@ -1150,6 +1150,8 @@ export declare enum CollectionSortField {
|
|
|
1150
1150
|
OutstandingPrincipal = "OUTSTANDING_PRINCIPAL",
|
|
1151
1151
|
OwnersTotalValue = "OWNERS_TOTAL_VALUE",
|
|
1152
1152
|
SaleListingCount = "SALE_LISTING_COUNT",
|
|
1153
|
+
/** The listings SALE_LISTING_COUNT counts, as a share of the collection's supply (Collection.nftsCount); collections without a sampled supply go last. */
|
|
1154
|
+
SaleListingShare = "SALE_LISTING_SHARE",
|
|
1153
1155
|
Supply = "SUPPLY",
|
|
1154
1156
|
TotalLoanVolume = "TOTAL_LOAN_VOLUME",
|
|
1155
1157
|
TotalOutstandingPrincipal = "TOTAL_OUTSTANDING_PRINCIPAL",
|
|
@@ -2987,6 +2989,8 @@ export type Mutation = {
|
|
|
2987
2989
|
recordItemVisit: Scalars['Boolean'];
|
|
2988
2990
|
/** Refreshes NFT metadata and image */
|
|
2989
2991
|
refreshNftMetadata: Nft;
|
|
2992
|
+
/** Register a browser's push subscription under the wallet you are signed in with, so your account's alerts can be pushed to it. A subscription registered before moves to the wallet that registers it last, and a wallet keeps the 10 it registered last. Returns true once it is stored. */
|
|
2993
|
+
registerPushSubscription: Scalars['Boolean'];
|
|
2990
2994
|
removeLinkedWallets?: Maybe<Scalars['Void']>;
|
|
2991
2995
|
/** Removes a loan listing from a user. */
|
|
2992
2996
|
removeListing: Listing;
|
|
@@ -3037,6 +3041,8 @@ export type Mutation = {
|
|
|
3037
3041
|
unfollowWallet?: Maybe<Scalars['Void']>;
|
|
3038
3042
|
/** Take a gallery back to a draft only its account can see. */
|
|
3039
3043
|
unpublishGallery: Gallery;
|
|
3044
|
+
/** Stop pushing your account's alerts to a browser, by the endpoint of its push subscription. Returns whether your account had it registered. */
|
|
3045
|
+
unregisterPushSubscription: Scalars['Boolean'];
|
|
3040
3046
|
/** Replace a gallery's name, description, style and works. A draft's slug follows its new name; a published gallery keeps its slug. The publication state stays as it is. */
|
|
3041
3047
|
updateGallery: Gallery;
|
|
3042
3048
|
uploadProfilePicture: User;
|
|
@@ -3192,6 +3198,9 @@ export type MutationRecordItemVisitArgs = {
|
|
|
3192
3198
|
export type MutationRefreshNftMetadataArgs = {
|
|
3193
3199
|
nftId: Scalars['Int'];
|
|
3194
3200
|
};
|
|
3201
|
+
export type MutationRegisterPushSubscriptionArgs = {
|
|
3202
|
+
subscription: PushSubscriptionInput;
|
|
3203
|
+
};
|
|
3195
3204
|
export type MutationRemoveLinkedWalletsArgs = {
|
|
3196
3205
|
linkedWalletsId: Scalars['String'];
|
|
3197
3206
|
};
|
|
@@ -3280,6 +3289,9 @@ export type MutationUnfollowWalletArgs = {
|
|
|
3280
3289
|
export type MutationUnpublishGalleryArgs = {
|
|
3281
3290
|
galleryId: Scalars['Int'];
|
|
3282
3291
|
};
|
|
3292
|
+
export type MutationUnregisterPushSubscriptionArgs = {
|
|
3293
|
+
endpoint: Scalars['String'];
|
|
3294
|
+
};
|
|
3283
3295
|
export type MutationUpdateGalleryArgs = {
|
|
3284
3296
|
gallery: GalleryInput;
|
|
3285
3297
|
galleryId: Scalars['Int'];
|
|
@@ -3913,13 +3925,26 @@ export type OffersSortInput = {
|
|
|
3913
3925
|
order: Ordering;
|
|
3914
3926
|
principalOfInterest?: InputMaybe<Scalars['BigInt']>;
|
|
3915
3927
|
};
|
|
3928
|
+
export declare enum OpenSeaListingFailureReason {
|
|
3929
|
+
/** OpenSea refused the listing for its fees or zone: the collection's terms changed after it was signed. listOpenSeaListingTerms answers the new ones. */
|
|
3930
|
+
TermsChanged = "TERMS_CHANGED"
|
|
3931
|
+
}
|
|
3916
3932
|
export type OpenSeaListingResult = {
|
|
3917
3933
|
__typename?: 'OpenSeaListingResult';
|
|
3918
3934
|
contractAddress: Scalars['Address'];
|
|
3919
3935
|
error?: Maybe<Scalars['String']>;
|
|
3936
|
+
/** Set for a failure the client can act on; error is the text to show for any failure. */
|
|
3937
|
+
failureReason?: Maybe<OpenSeaListingFailureReason>;
|
|
3920
3938
|
orderHash?: Maybe<Scalars['Hash']>;
|
|
3939
|
+
/** PENDING while the listing waits to be posted to OpenSea; listOpenSeaListingResults then says what became of it. */
|
|
3940
|
+
status: OpenSeaListingStatus;
|
|
3921
3941
|
tokenId: Scalars['BigInt'];
|
|
3922
3942
|
};
|
|
3943
|
+
export declare enum OpenSeaListingStatus {
|
|
3944
|
+
Failed = "FAILED",
|
|
3945
|
+
Pending = "PENDING",
|
|
3946
|
+
Posted = "POSTED"
|
|
3947
|
+
}
|
|
3923
3948
|
export type OpenSeaListingTerms = {
|
|
3924
3949
|
__typename?: 'OpenSeaListingTerms';
|
|
3925
3950
|
collectionId: Scalars['Int'];
|
|
@@ -4188,6 +4213,15 @@ export type PortfolioValuation = {
|
|
|
4188
4213
|
value: Scalars['Float'];
|
|
4189
4214
|
valuedNfts: Scalars['Int'];
|
|
4190
4215
|
};
|
|
4216
|
+
/** A browser's push subscription, as `PushSubscription.toJSON()` gives it, with the two entries of `keys` beside the endpoint. */
|
|
4217
|
+
export type PushSubscriptionInput = {
|
|
4218
|
+
/** The browser's authentication secret, `keys.auth`, in base64url. */
|
|
4219
|
+
auth: Scalars['String'];
|
|
4220
|
+
/** The push service URL of the subscription. Only the push services of Chrome, Safari, Firefox and Edge are accepted. */
|
|
4221
|
+
endpoint: Scalars['String'];
|
|
4222
|
+
/** The browser's public key, `keys.p256dh`, in base64url. */
|
|
4223
|
+
p256dh: Scalars['String'];
|
|
4224
|
+
};
|
|
4191
4225
|
/** Query for the lending module */
|
|
4192
4226
|
export type Query = {
|
|
4193
4227
|
__typename?: 'Query';
|
|
@@ -4353,6 +4387,8 @@ export type Query = {
|
|
|
4353
4387
|
listNftsFromUser: NftConnection;
|
|
4354
4388
|
listNotifications: NotificationConnection;
|
|
4355
4389
|
listOffers: OfferConnection;
|
|
4390
|
+
/** What became of the OpenSea listing of each of the caller's orders among orderIds, as published with listOnOpenSea: PENDING until it is posted to OpenSea or fails. An order with no OpenSea listing waiting or settled has no entry. */
|
|
4391
|
+
listOpenSeaListingResults: Array<OpenSeaListingResult>;
|
|
4356
4392
|
listOpenSeaListingTerms: Array<OpenSeaListingTerms>;
|
|
4357
4393
|
/** This field is deprecated. Use list_orders_v2 instead. This field will be removed in the next major version. */
|
|
4358
4394
|
listOrders: OrderConnection;
|
|
@@ -4391,6 +4427,8 @@ export type Query = {
|
|
|
4391
4427
|
previewRenegotiationCompetition: LoanOfferCompetitionPreview;
|
|
4392
4428
|
/** The Telegram chat the viewer's account gets its notifications in, or null when no wallet of the account linked one. */
|
|
4393
4429
|
telegramConnection?: Maybe<TelegramConnection>;
|
|
4430
|
+
/** The key a browser subscribes to this server's push messages with, as the `applicationServerKey` of `PushManager.subscribe()`. Null when the server has none configured. */
|
|
4431
|
+
webPushPublicKey?: Maybe<Scalars['String']>;
|
|
4394
4432
|
};
|
|
4395
4433
|
/** Query for the lending module */
|
|
4396
4434
|
export type QueryCollectionMarketDepthArgs = {
|
|
@@ -5129,6 +5167,10 @@ export type QueryListOffersArgs = {
|
|
|
5129
5167
|
worseOffers?: InputMaybe<Scalars['Boolean']>;
|
|
5130
5168
|
};
|
|
5131
5169
|
/** Query for the lending module */
|
|
5170
|
+
export type QueryListOpenSeaListingResultsArgs = {
|
|
5171
|
+
orderIds: Array<Scalars['Int64']>;
|
|
5172
|
+
};
|
|
5173
|
+
/** Query for the lending module */
|
|
5132
5174
|
export type QueryListOpenSeaListingTermsArgs = {
|
|
5133
5175
|
collectionIds: Array<Scalars['Int']>;
|
|
5134
5176
|
};
|
|
@@ -5768,6 +5810,8 @@ export type SingleNftOrder = Event & Node & Order & {
|
|
|
5768
5810
|
createdDate: Scalars['DateTime'];
|
|
5769
5811
|
currency: Currency;
|
|
5770
5812
|
currencyAddress: Scalars['Address'];
|
|
5813
|
+
/** What a descending listing asks at `expiration`, its price falling linearly from `price` at `startTime`; null for a fixed price. */
|
|
5814
|
+
endPrice?: Maybe<Scalars['BigInt']>;
|
|
5771
5815
|
evmOrder?: Maybe<Scalars['JSON']>;
|
|
5772
5816
|
executions: Scalars['Int'];
|
|
5773
5817
|
expiration: Scalars['DateTime'];
|
|
@@ -5820,6 +5864,8 @@ export type SingleNftOrderInput = {
|
|
|
5820
5864
|
/** The maker's Seaport counter, which the order is built with. Optional: GONDI looks it up when it is missing. A signed order whose counter is not the maker's current one is rejected. */
|
|
5821
5865
|
counter?: InputMaybe<Scalars['BigInt']>;
|
|
5822
5866
|
currencyAddress: Scalars['Address'];
|
|
5867
|
+
/** Makes a listing's price fall linearly from `price` at `startTime` to this, below `price`, at `expirationTime`. Listings only, not stealth ones. */
|
|
5868
|
+
endPrice?: InputMaybe<Scalars['BigInt']>;
|
|
5823
5869
|
expirationTime: Scalars['BigInt'];
|
|
5824
5870
|
fees?: InputMaybe<Array<OrderFee>>;
|
|
5825
5871
|
isAsk?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -6176,6 +6222,8 @@ export type Trait = Node & {
|
|
|
6176
6222
|
__typename?: 'Trait';
|
|
6177
6223
|
collectionId: Scalars['String'];
|
|
6178
6224
|
id: Scalars['String'];
|
|
6225
|
+
/** Whether GONDI computed the trait instead of reading it from the metadata: the `None` of a type the NFT lacks, or its `Trait count`. */
|
|
6226
|
+
isDerived: Scalars['Boolean'];
|
|
6179
6227
|
isSynthetic: Scalars['Boolean'];
|
|
6180
6228
|
key: Scalars['String'];
|
|
6181
6229
|
sampleAsset?: Maybe<Asset>;
|
|
@@ -6430,6 +6478,8 @@ export type TraitValue = Node & {
|
|
|
6430
6478
|
__typename?: 'TraitValue';
|
|
6431
6479
|
collectionId: Scalars['Int'];
|
|
6432
6480
|
id: Scalars['String'];
|
|
6481
|
+
/** Whether GONDI computed the value instead of reading it from the metadata: the `None` of a type an NFT lacks, or its `Trait count`. */
|
|
6482
|
+
isDerived: Scalars['Boolean'];
|
|
6433
6483
|
isSynthetic: Scalars['Boolean'];
|
|
6434
6484
|
key: Scalars['String'];
|
|
6435
6485
|
rarity: Scalars['Int'];
|
|
@@ -8141,10 +8191,11 @@ export type NftIdBySlugTokenIdQuery = {
|
|
|
8141
8191
|
} | null;
|
|
8142
8192
|
};
|
|
8143
8193
|
export type OwnedNftsQueryVariables = Exact<{
|
|
8194
|
+
owner: Scalars['Address'];
|
|
8144
8195
|
after?: InputMaybe<Scalars['String']>;
|
|
8145
|
-
includeInLoans
|
|
8146
|
-
includeInStash
|
|
8147
|
-
standards
|
|
8196
|
+
includeInLoans: Scalars['Boolean'];
|
|
8197
|
+
includeInStash: Scalars['Boolean'];
|
|
8198
|
+
standards: Array<TokenStandardType> | TokenStandardType;
|
|
8148
8199
|
}>;
|
|
8149
8200
|
export type OwnedNftsQuery = {
|
|
8150
8201
|
__typename?: 'Query';
|
|
@@ -10758,7 +10809,7 @@ export type MultipleTraitOrderFieldPolicy = {
|
|
|
10758
10809
|
traits?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10759
10810
|
updatedDate?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10760
10811
|
};
|
|
10761
|
-
export type MutationKeySpecifier = ('acceptLinkedWallets' | 'addListingsOfNftsFromUser' | 'addOrUpdateListing' | 'addOrUpdateRenegotiationRequest' | 'addOrUpdateTopUpRequest' | 'cancelTradeOrders' | 'completeTwitterVerification' | 'createBidBudget' | 'createGallery' | 'createTelegramLink' | 'deleteGallery' | 'deleteProfilePicture' | 'disconnectTelegram' | 'disconnectTwitter' | 'editUser' | 'followArtist' | 'followCollection' | 'followCollections' | 'followEdition' | 'followNft' | 'followWallet' | 'generateCollectionOfferToBeSigned' | 'generateRenegotiationOfferToBeSigned' | 'generateSignInNonce' | 'generateSingleNftOfferToBeSigned' | 'generateTraitOfferToBeSigned' | 'hideAllOffers' | 'hideOffer' | 'hideOffers' | 'hideOrder' | 'hideRenegotiation' | 'linkWalletAddress' | 'markNotificationIdsAsRead' | 'markNotificationsAsRead' | 'publishBulkOrdersForNfts' | 'publishBuyNowPayLaterOrder' | 'publishDealOrder' | 'publishGallery' | 'publishOrderForCollection' | 'publishOrderForNft' | 'publishOrderForNftSet' | 'publishOrderForTrait' | 'publishSellAndRepayOrder' | 'recordGalleryVisit' | 'recordItemVisit' | 'refreshNftMetadata' | 'removeLinkedWallets' | 'removeListing' | 'removeListingsOfNftsFromUser' | 'removeRenegotiationRequest' | 'removeTopUpRequest' | 'resendVerificationEmail' | 'saveItemBrowseList' | 'saveRenegotiationSignedOffer' | 'saveSignedCollectionOffer' | 'saveSignedSingleNftOffer' | 'saveSignedTraitOffer' | 'setMinimumOfferAmount' | 'setNftWatchNotifications' | 'setNotificationPreferences' | 'setReferral' | 'setWatchNotifications' | 'showOffer' | 'showOrder' | 'showRenegotiation' | 'signInWithEthereum' | 'startTwitterVerification' | 'unfollowArtist' | 'unfollowCollection' | 'unfollowEdition' | 'unfollowNft' | 'unfollowWallet' | 'unpublishGallery' | 'updateGallery' | 'uploadProfilePicture' | 'verifyMailValidationCode' | MutationKeySpecifier)[];
|
|
10812
|
+
export type MutationKeySpecifier = ('acceptLinkedWallets' | 'addListingsOfNftsFromUser' | 'addOrUpdateListing' | 'addOrUpdateRenegotiationRequest' | 'addOrUpdateTopUpRequest' | 'cancelTradeOrders' | 'completeTwitterVerification' | 'createBidBudget' | 'createGallery' | 'createTelegramLink' | 'deleteGallery' | 'deleteProfilePicture' | 'disconnectTelegram' | 'disconnectTwitter' | 'editUser' | 'followArtist' | 'followCollection' | 'followCollections' | 'followEdition' | 'followNft' | 'followWallet' | 'generateCollectionOfferToBeSigned' | 'generateRenegotiationOfferToBeSigned' | 'generateSignInNonce' | 'generateSingleNftOfferToBeSigned' | 'generateTraitOfferToBeSigned' | 'hideAllOffers' | 'hideOffer' | 'hideOffers' | 'hideOrder' | 'hideRenegotiation' | 'linkWalletAddress' | 'markNotificationIdsAsRead' | 'markNotificationsAsRead' | 'publishBulkOrdersForNfts' | 'publishBuyNowPayLaterOrder' | 'publishDealOrder' | 'publishGallery' | 'publishOrderForCollection' | 'publishOrderForNft' | 'publishOrderForNftSet' | 'publishOrderForTrait' | 'publishSellAndRepayOrder' | 'recordGalleryVisit' | 'recordItemVisit' | 'refreshNftMetadata' | 'registerPushSubscription' | 'removeLinkedWallets' | 'removeListing' | 'removeListingsOfNftsFromUser' | 'removeRenegotiationRequest' | 'removeTopUpRequest' | 'resendVerificationEmail' | 'saveItemBrowseList' | 'saveRenegotiationSignedOffer' | 'saveSignedCollectionOffer' | 'saveSignedSingleNftOffer' | 'saveSignedTraitOffer' | 'setMinimumOfferAmount' | 'setNftWatchNotifications' | 'setNotificationPreferences' | 'setReferral' | 'setWatchNotifications' | 'showOffer' | 'showOrder' | 'showRenegotiation' | 'signInWithEthereum' | 'startTwitterVerification' | 'unfollowArtist' | 'unfollowCollection' | 'unfollowEdition' | 'unfollowNft' | 'unfollowWallet' | 'unpublishGallery' | 'unregisterPushSubscription' | 'updateGallery' | 'uploadProfilePicture' | 'verifyMailValidationCode' | MutationKeySpecifier)[];
|
|
10762
10813
|
export type MutationFieldPolicy = {
|
|
10763
10814
|
acceptLinkedWallets?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10764
10815
|
addListingsOfNftsFromUser?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -10806,6 +10857,7 @@ export type MutationFieldPolicy = {
|
|
|
10806
10857
|
recordGalleryVisit?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10807
10858
|
recordItemVisit?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10808
10859
|
refreshNftMetadata?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10860
|
+
registerPushSubscription?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10809
10861
|
removeLinkedWallets?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10810
10862
|
removeListing?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10811
10863
|
removeListingsOfNftsFromUser?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -10833,6 +10885,7 @@ export type MutationFieldPolicy = {
|
|
|
10833
10885
|
unfollowNft?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10834
10886
|
unfollowWallet?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10835
10887
|
unpublishGallery?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10888
|
+
unregisterPushSubscription?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10836
10889
|
updateGallery?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10837
10890
|
uploadProfilePicture?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10838
10891
|
verifyMailValidationCode?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -11119,11 +11172,13 @@ export type OfferValidatorFieldPolicy = {
|
|
|
11119
11172
|
offerId?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11120
11173
|
validator?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11121
11174
|
};
|
|
11122
|
-
export type OpenSeaListingResultKeySpecifier = ('contractAddress' | 'error' | 'orderHash' | 'tokenId' | OpenSeaListingResultKeySpecifier)[];
|
|
11175
|
+
export type OpenSeaListingResultKeySpecifier = ('contractAddress' | 'error' | 'failureReason' | 'orderHash' | 'status' | 'tokenId' | OpenSeaListingResultKeySpecifier)[];
|
|
11123
11176
|
export type OpenSeaListingResultFieldPolicy = {
|
|
11124
11177
|
contractAddress?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11125
11178
|
error?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11179
|
+
failureReason?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11126
11180
|
orderHash?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11181
|
+
status?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11127
11182
|
tokenId?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11128
11183
|
};
|
|
11129
11184
|
export type OpenSeaListingTermsKeySpecifier = ('collectionId' | 'creatorFees' | 'listingCurrency' | 'marketplaceFeeBps' | OpenSeaListingTermsKeySpecifier)[];
|
|
@@ -11280,7 +11335,7 @@ export type PortfolioValuationFieldPolicy = {
|
|
|
11280
11335
|
value?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11281
11336
|
valuedNfts?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11282
11337
|
};
|
|
11283
|
-
export type QueryKeySpecifier = ('collectionMarketDepth' | 'collectorsAlsoBought' | 'dealReadiness' | 'featuredListings' | 'galleries' | 'gallery' | 'geoAccess' | 'getAddressByName' | 'getAddressByUsername' | 'getArtist' | 'getArtistBySlug' | 'getBorrowingPower' | 'getCancelAllNftOrdersCalldata' | 'getCancelOrdersCalldata' | 'getCollectionActivitiesCount' | 'getCollectionBySlug' | 'getCollectionHighestBidMatchingTraits' | 'getCollectionLoansData' | 'getCollectionOfferSteps' | 'getCollectionsByContractAddress' | 'getCurrency' | 'getEditionBySlug' | 'getFeedId' | 'getFulfillManyOrdersCalldata' | 'getLendingMarketPulse' | 'getListingById' | 'getLoanActivitiesStatisticsByMonth' | 'getLoanById' | 'getMarketOverview' | 'getNftByContractAddressAndTokenId' | 'getNftBySlugAndTokenId' | 'getOrderCancelCalldata' | 'getOrderSaleCalldata' | 'getOutstandingDebt' | 'getOutstandingLoanStatistics' | 'getPointsFromReferrals' | 'getPortfolioLeaderboard' | 'getPortfolioValuation' | 'getPurchaseBundlerFromOrder' | 'getRealizedProfitsByDay' | 'getReferredWallets' | 'getSaleManyOrdersCalldata' | 'getSellAndRepayOrderSwapCalldata' | 'getSourcesStatistics' | 'getSourcesStatisticsByCollection' | 'getSwapQuote' | 'getSwapRate' | 'getTopLenders' | 'getUserPointActivities' | 'getUserPoints' | 'getWalletFollowStats' | 'getWalletHoldingsSummary' | 'getWalletLendingSummary' | 'getWalletTradingSummary' | 'globalSearch' | 'globalSearchV2' | 'isUsernameAvailable' | 'itemBrowseList' | 'itemLoanOfferBook' | 'listApprovalExposures' | 'listArtistCatalog' | 'listArtistFollows' | 'listArtistHolderItems' | 'listArtistHolderPopulation' | 'listArtistHolders' | 'listArtistHoldersV2' | 'listArtists' | 'listAuctions' | 'listBids' | 'listBlendLiens' | 'listCollectionFollows' | 'listCollectionHolders' | 'listCollectionTraitFilterOptions' | 'listCollectionTraitKeyOptions' | 'listCollectionTraitTypes' | 'listCollectionTraitValues' | 'listCollections' | 'listCollectionsWithListings' | 'listCollectionsWithLoans' | 'listCurrencies' | 'listDeals' | 'listEditionFollows' | 'listEditions' | 'listEditionsV2' | 'listEvents' | 'listGalleries' | 'listListings' | 'listListingsForSale' | 'listLoanActivities' | 'listLoanEvents' | 'listLoans' | 'listNames' | 'listNftDelegations' | 'listNftFollows' | 'listNftOffersAndRenegotiations' | 'listNftStrategyDeployments' | 'listNfts' | 'listNftsFromCollections' | 'listNftsFromUser' | 'listNotifications' | 'listOffers' | 'listOpenSeaListingTerms' | 'listOrders' | 'listOrdersV2' | 'listPlatformFees' | 'listPopularSearches' | 'listProfiles' | 'listRenegotiations' | 'listSales' | 'listSitemapNfts' | 'listSources' | 'listUsers' | 'listWalletFollowers' | 'listWalletFollowing' | 'loanDealCollections' | 'loanDeals' | 'me' | 'minimumOfferAmount' | 'mostViewedGalleries' | 'nftGalleries' | 'notificationPreferences' | 'previewItemLoanOfferCompetition' | 'previewNftSetCondition' | 'previewRenegotiationCompetition' | 'telegramConnection' | QueryKeySpecifier)[];
|
|
11338
|
+
export type QueryKeySpecifier = ('collectionMarketDepth' | 'collectorsAlsoBought' | 'dealReadiness' | 'featuredListings' | 'galleries' | 'gallery' | 'geoAccess' | 'getAddressByName' | 'getAddressByUsername' | 'getArtist' | 'getArtistBySlug' | 'getBorrowingPower' | 'getCancelAllNftOrdersCalldata' | 'getCancelOrdersCalldata' | 'getCollectionActivitiesCount' | 'getCollectionBySlug' | 'getCollectionHighestBidMatchingTraits' | 'getCollectionLoansData' | 'getCollectionOfferSteps' | 'getCollectionsByContractAddress' | 'getCurrency' | 'getEditionBySlug' | 'getFeedId' | 'getFulfillManyOrdersCalldata' | 'getLendingMarketPulse' | 'getListingById' | 'getLoanActivitiesStatisticsByMonth' | 'getLoanById' | 'getMarketOverview' | 'getNftByContractAddressAndTokenId' | 'getNftBySlugAndTokenId' | 'getOrderCancelCalldata' | 'getOrderSaleCalldata' | 'getOutstandingDebt' | 'getOutstandingLoanStatistics' | 'getPointsFromReferrals' | 'getPortfolioLeaderboard' | 'getPortfolioValuation' | 'getPurchaseBundlerFromOrder' | 'getRealizedProfitsByDay' | 'getReferredWallets' | 'getSaleManyOrdersCalldata' | 'getSellAndRepayOrderSwapCalldata' | 'getSourcesStatistics' | 'getSourcesStatisticsByCollection' | 'getSwapQuote' | 'getSwapRate' | 'getTopLenders' | 'getUserPointActivities' | 'getUserPoints' | 'getWalletFollowStats' | 'getWalletHoldingsSummary' | 'getWalletLendingSummary' | 'getWalletTradingSummary' | 'globalSearch' | 'globalSearchV2' | 'isUsernameAvailable' | 'itemBrowseList' | 'itemLoanOfferBook' | 'listApprovalExposures' | 'listArtistCatalog' | 'listArtistFollows' | 'listArtistHolderItems' | 'listArtistHolderPopulation' | 'listArtistHolders' | 'listArtistHoldersV2' | 'listArtists' | 'listAuctions' | 'listBids' | 'listBlendLiens' | 'listCollectionFollows' | 'listCollectionHolders' | 'listCollectionTraitFilterOptions' | 'listCollectionTraitKeyOptions' | 'listCollectionTraitTypes' | 'listCollectionTraitValues' | 'listCollections' | 'listCollectionsWithListings' | 'listCollectionsWithLoans' | 'listCurrencies' | 'listDeals' | 'listEditionFollows' | 'listEditions' | 'listEditionsV2' | 'listEvents' | 'listGalleries' | 'listListings' | 'listListingsForSale' | 'listLoanActivities' | 'listLoanEvents' | 'listLoans' | 'listNames' | 'listNftDelegations' | 'listNftFollows' | 'listNftOffersAndRenegotiations' | 'listNftStrategyDeployments' | 'listNfts' | 'listNftsFromCollections' | 'listNftsFromUser' | 'listNotifications' | 'listOffers' | 'listOpenSeaListingResults' | 'listOpenSeaListingTerms' | 'listOrders' | 'listOrdersV2' | 'listPlatformFees' | 'listPopularSearches' | 'listProfiles' | 'listRenegotiations' | 'listSales' | 'listSitemapNfts' | 'listSources' | 'listUsers' | 'listWalletFollowers' | 'listWalletFollowing' | 'loanDealCollections' | 'loanDeals' | 'me' | 'minimumOfferAmount' | 'mostViewedGalleries' | 'nftGalleries' | 'notificationPreferences' | 'previewItemLoanOfferCompetition' | 'previewNftSetCondition' | 'previewRenegotiationCompetition' | 'telegramConnection' | 'webPushPublicKey' | QueryKeySpecifier)[];
|
|
11284
11339
|
export type QueryFieldPolicy = {
|
|
11285
11340
|
collectionMarketDepth?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11286
11341
|
collectorsAlsoBought?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -11383,6 +11438,7 @@ export type QueryFieldPolicy = {
|
|
|
11383
11438
|
listNftsFromUser?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11384
11439
|
listNotifications?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11385
11440
|
listOffers?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11441
|
+
listOpenSeaListingResults?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11386
11442
|
listOpenSeaListingTerms?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11387
11443
|
listOrders?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11388
11444
|
listOrdersV2?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -11407,6 +11463,7 @@ export type QueryFieldPolicy = {
|
|
|
11407
11463
|
previewNftSetCondition?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11408
11464
|
previewRenegotiationCompetition?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11409
11465
|
telegramConnection?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11466
|
+
webPushPublicKey?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11410
11467
|
};
|
|
11411
11468
|
export type RealizedProfitDayKeySpecifier = ('currencyAddress' | 'day' | 'netProfit' | 'profit' | RealizedProfitDayKeySpecifier)[];
|
|
11412
11469
|
export type RealizedProfitDayFieldPolicy = {
|
|
@@ -11741,12 +11798,13 @@ export type SingleNFTOfferCollectionOfferSetOfferTraitOfferRenegotiationEdgeFiel
|
|
|
11741
11798
|
cursor?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11742
11799
|
node?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11743
11800
|
};
|
|
11744
|
-
export type SingleNFTOrderKeySpecifier = ('cancelsOffChain' | 'createdDate' | 'currency' | 'currencyAddress' | 'evmOrder' | 'executions' | 'expiration' | 'feeMetadata' | 'fees' | 'hidden' | 'id' | 'isAsk' | 'isPrivate' | 'loanDealOffer' | 'maker' | 'makerName' | 'makerProfilePictureUrl' | 'marketPlace' | 'marketPlaceAddress' | 'maxExecutions' | 'netAmount' | 'nft' | 'nftId' | 'nonce' | 'orderType' | 'originalId' | 'platformFees' | 'price' | 'signature' | 'startTime' | 'status' | 'stealth' | 'steppedNetAmount' | 'steppedPrice' | 'taker' | 'takerName' | 'takerProfilePictureUrl' | 'timestamp' | 'updatedDate' | SingleNFTOrderKeySpecifier)[];
|
|
11801
|
+
export type SingleNFTOrderKeySpecifier = ('cancelsOffChain' | 'createdDate' | 'currency' | 'currencyAddress' | 'endPrice' | 'evmOrder' | 'executions' | 'expiration' | 'feeMetadata' | 'fees' | 'hidden' | 'id' | 'isAsk' | 'isPrivate' | 'loanDealOffer' | 'maker' | 'makerName' | 'makerProfilePictureUrl' | 'marketPlace' | 'marketPlaceAddress' | 'maxExecutions' | 'netAmount' | 'nft' | 'nftId' | 'nonce' | 'orderType' | 'originalId' | 'platformFees' | 'price' | 'signature' | 'startTime' | 'status' | 'stealth' | 'steppedNetAmount' | 'steppedPrice' | 'taker' | 'takerName' | 'takerProfilePictureUrl' | 'timestamp' | 'updatedDate' | SingleNFTOrderKeySpecifier)[];
|
|
11745
11802
|
export type SingleNFTOrderFieldPolicy = {
|
|
11746
11803
|
cancelsOffChain?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11747
11804
|
createdDate?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11748
11805
|
currency?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11749
11806
|
currencyAddress?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11807
|
+
endPrice?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11750
11808
|
evmOrder?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11751
11809
|
executions?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
11752
11810
|
expiration?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -12016,10 +12074,11 @@ export type TopUpRequestedNotificationFieldPolicy = {
|
|
|
12016
12074
|
topUp?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12017
12075
|
user?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12018
12076
|
};
|
|
12019
|
-
export type TraitKeySpecifier = ('collectionId' | 'id' | 'isSynthetic' | 'key' | 'sampleAsset' | 'statistics' | 'traitType' | 'type' | 'value' | TraitKeySpecifier)[];
|
|
12077
|
+
export type TraitKeySpecifier = ('collectionId' | 'id' | 'isDerived' | 'isSynthetic' | 'key' | 'sampleAsset' | 'statistics' | 'traitType' | 'type' | 'value' | TraitKeySpecifier)[];
|
|
12020
12078
|
export type TraitFieldPolicy = {
|
|
12021
12079
|
collectionId?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12022
12080
|
id?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12081
|
+
isDerived?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12023
12082
|
isSynthetic?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12024
12083
|
key?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12025
12084
|
sampleAsset?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -12176,10 +12235,11 @@ export type TraitTypeEdgeFieldPolicy = {
|
|
|
12176
12235
|
cursor?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12177
12236
|
node?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12178
12237
|
};
|
|
12179
|
-
export type TraitValueKeySpecifier = ('collectionId' | 'id' | 'isSynthetic' | 'key' | 'rarity' | 'sampleAsset' | 'sampleAssetId' | 'statistics' | 'value' | TraitValueKeySpecifier)[];
|
|
12238
|
+
export type TraitValueKeySpecifier = ('collectionId' | 'id' | 'isDerived' | 'isSynthetic' | 'key' | 'rarity' | 'sampleAsset' | 'sampleAssetId' | 'statistics' | 'value' | TraitValueKeySpecifier)[];
|
|
12180
12239
|
export type TraitValueFieldPolicy = {
|
|
12181
12240
|
collectionId?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12182
12241
|
id?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12242
|
+
isDerived?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12183
12243
|
isSynthetic?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12184
12244
|
key?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
12185
12245
|
rarity?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -13629,7 +13689,7 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
13629
13689
|
nftFlaggedByContractAddressAndTokenId(variables: NftFlaggedByContractAddressAndTokenIdQueryVariables, options?: C): Promise<NftFlaggedByContractAddressAndTokenIdQuery>;
|
|
13630
13690
|
nftIdByContractAddressAndTokenId(variables: NftIdByContractAddressAndTokenIdQueryVariables, options?: C): Promise<NftIdByContractAddressAndTokenIdQuery>;
|
|
13631
13691
|
nftIdBySlugTokenId(variables: NftIdBySlugTokenIdQueryVariables, options?: C): Promise<NftIdBySlugTokenIdQuery>;
|
|
13632
|
-
ownedNfts(variables
|
|
13692
|
+
ownedNfts(variables: OwnedNftsQueryVariables, options?: C): Promise<OwnedNftsQuery>;
|
|
13633
13693
|
listOffers(variables: ListOffersQueryVariables, options?: C): Promise<ListOffersQuery>;
|
|
13634
13694
|
buyWithLoanListing(variables: BuyWithLoanListingQueryVariables, options?: C): Promise<BuyWithLoanListingQuery>;
|
|
13635
13695
|
getCancelOrdersCalldata(variables: GetCancelOrdersCalldataQueryVariables, options?: C): Promise<GetCancelOrdersCalldataQuery>;
|
package/dist/src/gondi.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Auction, AuctionV8 } from './blockchain';
|
|
|
5
5
|
import { Api, OrderInput, Props as ApiProps } from './clients/api';
|
|
6
6
|
import { Contracts, GondiPublicClient, Wallet } from './clients/contracts';
|
|
7
7
|
import { CrossCurrencyRenegotiationInput, CrossCurrencyRenegotiationQuote } from './clients/contracts/CrossCurrencyRenegotiation';
|
|
8
|
-
import { DealInput, GenerateCollectionOfferHashMutation, LoanOfferPublicationInput, MarketplaceEnum, NftOrderInput, OfferValidatorInput, SingleNftOrderInput, SingleNftSignedOfferInput, TokenStandardType } from './generated/graphql';
|
|
8
|
+
import { DealInput, GenerateCollectionOfferHashMutation, LoanOfferPublicationInput, MarketplaceEnum, NftOrderInput, OfferValidatorInput, OwnedNftsQueryVariables, SingleNftOrderInput, SingleNftSignedOfferInput, TokenStandardType } from './generated/graphql';
|
|
9
9
|
import * as model from './model';
|
|
10
10
|
import { NftStandard } from './model';
|
|
11
11
|
import { BuyWithLoanInput, BuyWithLoanQuote } from './utils/buyWithLoan';
|
|
@@ -339,6 +339,7 @@ export declare class Gondi {
|
|
|
339
339
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
340
340
|
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
341
341
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
342
|
+
endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
342
343
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
343
344
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
344
345
|
isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
|
|
@@ -418,6 +419,7 @@ export declare class Gondi {
|
|
|
418
419
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
419
420
|
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
420
421
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
422
|
+
endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
421
423
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
422
424
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
423
425
|
isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
|
|
@@ -497,6 +499,7 @@ export declare class Gondi {
|
|
|
497
499
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
498
500
|
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
499
501
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
502
|
+
endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
500
503
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
501
504
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
502
505
|
isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
|
|
@@ -576,6 +579,7 @@ export declare class Gondi {
|
|
|
576
579
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
577
580
|
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
578
581
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
582
|
+
endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
579
583
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
580
584
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
581
585
|
isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
|
|
@@ -655,6 +659,7 @@ export declare class Gondi {
|
|
|
655
659
|
contractAddress: import("./generated/graphql").Scalars["Address"];
|
|
656
660
|
counter?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
657
661
|
currencyAddress: import("./generated/graphql").Scalars["Address"];
|
|
662
|
+
endPrice?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["BigInt"]>;
|
|
658
663
|
expirationTime: import("./generated/graphql").Scalars["BigInt"];
|
|
659
664
|
fees?: import("./generated/graphql").InputMaybe<Array<import("./generated/graphql").OrderFee>>;
|
|
660
665
|
isAsk?: import("./generated/graphql").InputMaybe<import("./generated/graphql").Scalars["Boolean"]>;
|
|
@@ -872,19 +877,23 @@ export declare class Gondi {
|
|
|
872
877
|
waitTxInBlock: () => Promise<TransactionReceipt>;
|
|
873
878
|
}>;
|
|
874
879
|
/**
|
|
875
|
-
* Cancels the wallet's trade orders by id, at most
|
|
880
|
+
* Cancels the wallet's trade orders by id, at most 100 per call, with one API call. Every order
|
|
876
881
|
* ends up unfillable: the default only skips the transaction for the bids no one can fill
|
|
877
882
|
* without the API, and cancels every other order on-chain.
|
|
878
883
|
*
|
|
879
884
|
* `cancelTradeOrders` cancels the bids that `cancelsOffChain` (restricted to the GONDI signed
|
|
880
885
|
* zone, so they only fill with a signature the API issues) without a transaction, and returns
|
|
881
|
-
* the Seaport cancel calldata of the rest
|
|
886
|
+
* the Seaport cancel calldata of the rest. Each calldata entry is sent as its own transaction,
|
|
887
|
+
* one after another: usually one per marketplace, and more when the API splits a marketplace's
|
|
888
|
+
* cancel because it would not fit in one transaction. So the number of transactions is only
|
|
889
|
+
* known from the result, and a later one can fail after an earlier one was sent.
|
|
882
890
|
*
|
|
883
891
|
* An off-chain cancel is final once the last fill signature already issued for the bid expires,
|
|
884
892
|
* a few minutes at most. Pass `onChain: true` to cancel every order on-chain instead, final as
|
|
885
893
|
* soon as the transaction is mined.
|
|
886
894
|
*
|
|
887
|
-
* @returns The ids cancelled off-chain, and one `{ txHash, waitTxInBlock }` per
|
|
895
|
+
* @returns The ids cancelled off-chain, and one `{ txHash, waitTxInBlock }` per transaction
|
|
896
|
+
* sent, in the order they were sent.
|
|
888
897
|
*/
|
|
889
898
|
cancelOrders({ orderIds, onChain }: {
|
|
890
899
|
orderIds: number[];
|
|
@@ -3058,7 +3067,16 @@ export declare class Gondi {
|
|
|
3058
3067
|
usdcStep: bigint;
|
|
3059
3068
|
wethStep: bigint;
|
|
3060
3069
|
}>;
|
|
3061
|
-
|
|
3070
|
+
/**
|
|
3071
|
+
* Lists the NFTs the wallet holds, one page at a time.
|
|
3072
|
+
*
|
|
3073
|
+
* @param args.after - The `pageInfo.endCursor` of the previous page; omit it for the first page.
|
|
3074
|
+
* @param args.includeInLoans - Also list the NFTs the wallet borrowed against in an active loan. Defaults to false.
|
|
3075
|
+
* @param args.includeInStash - Also list the NFTs the wallet holds in an old ERC721 wrapper stash. Defaults to false.
|
|
3076
|
+
* @param args.standards - The token standards to list. Defaults to ERC721 only.
|
|
3077
|
+
* @returns The page's NFTs, newest NFT id first, and its `pageInfo`.
|
|
3078
|
+
*/
|
|
3079
|
+
ownedNfts({ after, includeInLoans, includeInStash, standards, }?: OptionalNullable<Omit<OwnedNftsQueryVariables, 'owner'>, 'includeInLoans' | 'includeInStash' | 'standards'>): Promise<{
|
|
3062
3080
|
ownedNfts: {
|
|
3063
3081
|
__typename?: "NFT";
|
|
3064
3082
|
id: string;
|
|
@@ -4119,6 +4137,8 @@ export declare class Gondi {
|
|
|
4119
4137
|
largestTrancheIdx: bigint;
|
|
4120
4138
|
}>;
|
|
4121
4139
|
}>;
|
|
4140
|
+
/** The liquidator contract running `auction` for the collateral `tokenId` of `collectionContractAddress`. */
|
|
4141
|
+
private auctionLiquidator;
|
|
4122
4142
|
getAuctionRemainingLockupSeconds({ auction, }: {
|
|
4123
4143
|
auction: Pick<Auction, 'startTime' | 'loanAddress' | 'loanId'> & Partial<Pick<AuctionV8, 'buyoutWindow'>>;
|
|
4124
4144
|
}): Promise<number>;
|
package/dist/src/utils/loan.d.ts
CHANGED
|
@@ -149,6 +149,15 @@ export declare const loanToMslLoan: (loan: LoanToMslLoanType) => {
|
|
|
149
149
|
};
|
|
150
150
|
export declare const getMslLoanId: (loan: LoanToMslLoanType) => bigint;
|
|
151
151
|
export declare const getRemainingSeconds: (loan: Pick<LoanToMslLoanType, "startTime" | "duration">) => number;
|
|
152
|
+
/**
|
|
153
|
+
* Seconds left before a loan's newest tranche can be refinanced: the lock is `lockPeriodBps`
|
|
154
|
+
* of the time from that tranche's start to the loan's end, counted from the tranche's start.
|
|
155
|
+
*/
|
|
156
|
+
export declare const remainingLockupSeconds: ({ loanEndTime, newestStartTime, lockPeriodBps, }: {
|
|
157
|
+
loanEndTime: bigint;
|
|
158
|
+
newestStartTime: bigint;
|
|
159
|
+
lockPeriodBps: bigint;
|
|
160
|
+
}) => number;
|
|
152
161
|
export declare const isLoanVersion: (address: Address, chainId: number) => {
|
|
153
162
|
isV1: boolean;
|
|
154
163
|
isV2: boolean;
|