gondi 0.52.0 → 0.54.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 +142 -59
- package/dist/index.mjs.map +3 -3
- package/dist/src/clients/contracts/OldERC721Wrapper.d.ts +2 -0
- package/dist/src/clients/contracts/PurchaseBundlerV2.d.ts +16 -0
- package/dist/src/generated/graphql/index.d.ts +106 -5
- package/dist/src/gondi.d.ts +16 -4
- package/dist/src/utils/blockchain.d.ts +7 -2
- package/dist/src/utils/creditPurchase.d.ts +0 -16
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -18,4 +18,6 @@ export declare class OldERC721Wrapper extends BaseContract<typeof oldErc721Wrapp
|
|
|
18
18
|
txHash: `0x${string}`;
|
|
19
19
|
waitMined: () => Promise<import("viem").TransactionReceipt>;
|
|
20
20
|
}>;
|
|
21
|
+
/** The wrapper's public shape of {@link minedTransaction}: its wait is named `waitMined`. */
|
|
22
|
+
private _sentTransaction;
|
|
21
23
|
}
|
|
@@ -51,6 +51,22 @@ export declare class PurchaseBundlerV2 extends BaseContract<typeof purchaseBundl
|
|
|
51
51
|
}];
|
|
52
52
|
};
|
|
53
53
|
static ETH_SENTINEL: string;
|
|
54
|
+
/** Decodes the `executionInfo` callback carried by an execution or a seller repayment. */
|
|
55
|
+
static decodePurchaseCallback(data: Hex): {
|
|
56
|
+
reservoirExecutionInfo: {
|
|
57
|
+
module: `0x${string}`;
|
|
58
|
+
data: `0x${string}`;
|
|
59
|
+
value: bigint;
|
|
60
|
+
};
|
|
61
|
+
contractMustBeOwner: boolean;
|
|
62
|
+
purchaseCurrency: `0x${string}`;
|
|
63
|
+
amount: bigint;
|
|
64
|
+
swapData: `0x${string}`;
|
|
65
|
+
swapValue: bigint;
|
|
66
|
+
maxSlippage: bigint;
|
|
67
|
+
};
|
|
68
|
+
/** The callback's purchase currency, with every native spelling (including the ETH sentinel) as `zeroAddress`. */
|
|
69
|
+
static callbackPurchaseCurrency(callback: ReturnType<typeof PurchaseBundlerV2.decodePurchaseCallback>): Address;
|
|
54
70
|
buy({ emitCalldata, value }: {
|
|
55
71
|
emitCalldata: Hex;
|
|
56
72
|
value: bigint;
|
|
@@ -1672,6 +1672,17 @@ export declare enum GalleryColorMode {
|
|
|
1672
1672
|
Dark = "DARK",
|
|
1673
1673
|
Light = "LIGHT"
|
|
1674
1674
|
}
|
|
1675
|
+
export type GalleryConnection = {
|
|
1676
|
+
__typename?: 'GalleryConnection';
|
|
1677
|
+
edges: Array<GalleryEdge>;
|
|
1678
|
+
pageInfo: PageInfo;
|
|
1679
|
+
totalCount: Scalars['Int'];
|
|
1680
|
+
};
|
|
1681
|
+
export type GalleryEdge = {
|
|
1682
|
+
__typename?: 'GalleryEdge';
|
|
1683
|
+
cursor: Scalars['String'];
|
|
1684
|
+
node: Gallery;
|
|
1685
|
+
};
|
|
1675
1686
|
/** Everything a collector writes into a gallery. The works are in the order they are shown, and may be anyone's indexed NFTs. */
|
|
1676
1687
|
export type GalleryInput = {
|
|
1677
1688
|
/** Empty to keep the style's own colour mode. */
|
|
@@ -1695,6 +1706,17 @@ export declare enum GalleryPalette {
|
|
|
1695
1706
|
Phosphor = "PHOSPHOR",
|
|
1696
1707
|
Slate = "SLATE"
|
|
1697
1708
|
}
|
|
1709
|
+
/** What the galleries directory orders by: when a gallery was published, when it was last edited, how many works it shows, or its name. */
|
|
1710
|
+
export declare enum GallerySortField {
|
|
1711
|
+
Name = "NAME",
|
|
1712
|
+
PublishedAt = "PUBLISHED_AT",
|
|
1713
|
+
UpdatedAt = "UPDATED_AT",
|
|
1714
|
+
WorkCount = "WORK_COUNT"
|
|
1715
|
+
}
|
|
1716
|
+
export type GallerySortInput = {
|
|
1717
|
+
field: GallerySortField;
|
|
1718
|
+
order: Ordering;
|
|
1719
|
+
};
|
|
1698
1720
|
/** The typography and colour preset a gallery is shown in. */
|
|
1699
1721
|
export declare enum GalleryStyle {
|
|
1700
1722
|
Elegant = "ELEGANT",
|
|
@@ -1726,6 +1748,11 @@ export type GalleryWorkInput = {
|
|
|
1726
1748
|
nftId: Scalars['Int'];
|
|
1727
1749
|
note?: Scalars['String'];
|
|
1728
1750
|
};
|
|
1751
|
+
export type GeoAccess = {
|
|
1752
|
+
__typename?: 'GeoAccess';
|
|
1753
|
+
blocked: Scalars['Boolean'];
|
|
1754
|
+
country?: Maybe<Scalars['String']>;
|
|
1755
|
+
};
|
|
1729
1756
|
export type GlobalSearchResult = {
|
|
1730
1757
|
id: Scalars['String'];
|
|
1731
1758
|
};
|
|
@@ -2642,6 +2669,7 @@ export declare enum MarketPlaceType {
|
|
|
2642
2669
|
Nftx = "NFTX",
|
|
2643
2670
|
NftStrategy = "NFT_STRATEGY",
|
|
2644
2671
|
OpenSea = "OPEN_SEA",
|
|
2672
|
+
SuperRare = "SUPER_RARE",
|
|
2645
2673
|
X2Y2 = "X2Y2"
|
|
2646
2674
|
}
|
|
2647
2675
|
export declare enum MarketplaceEnum {
|
|
@@ -3373,7 +3401,17 @@ export declare enum NftSearchField {
|
|
|
3373
3401
|
}
|
|
3374
3402
|
export type NftSetConditionInput = {
|
|
3375
3403
|
/** Traits of one key in the collection: the bid fills with any NFT carrying one of them. At least 2, at most 10. */
|
|
3376
|
-
anyTraitIds
|
|
3404
|
+
anyTraitIds?: InputMaybe<Array<Scalars['Int']>>;
|
|
3405
|
+
/** A nested condition over the collection's traits, for example {"all": [{"any": [{"trait": 1}, {"trait": 2}]}, {"any": [{"trait": 3}, {"trait": 4}]}]} for (Background: Blue or Red) and (Fur: Gold or Silver). A node is {"all": [nodes]} (every node matches), {"any": [nodes]} (at least one matches) or {"trait": traitId}; all and any take at least 2 nodes. The root is an all or an any; at most 4 levels and 10 traits. */
|
|
3406
|
+
expression?: InputMaybe<Scalars['JSON']>;
|
|
3407
|
+
};
|
|
3408
|
+
/** What a set bid's trait condition would match if published now. */
|
|
3409
|
+
export type NftSetConditionPreview = {
|
|
3410
|
+
__typename?: 'NftSetConditionPreview';
|
|
3411
|
+
/** How many NFTs of the collection the condition matches. */
|
|
3412
|
+
matchCount: Scalars['Int'];
|
|
3413
|
+
/** Up to 10 of them, in NFT id order. */
|
|
3414
|
+
previewNfts: Array<Nft>;
|
|
3377
3415
|
};
|
|
3378
3416
|
export type NftSetOrderInput = {
|
|
3379
3417
|
amount?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -3996,6 +4034,7 @@ export type Query = {
|
|
|
3996
4034
|
galleries: Array<Gallery>;
|
|
3997
4035
|
/** One gallery by the profile wallet and slug of its URL. A draft is found only by the account that owns it. */
|
|
3998
4036
|
gallery?: Maybe<Gallery>;
|
|
4037
|
+
geoAccess: GeoAccess;
|
|
3999
4038
|
getAddressByName?: Maybe<Scalars['Address']>;
|
|
4000
4039
|
/** The wallet holding a Gondi username, for profile links; never a recipient lookup. */
|
|
4001
4040
|
getAddressByUsername?: Maybe<Scalars['Address']>;
|
|
@@ -4112,6 +4151,8 @@ export type Query = {
|
|
|
4112
4151
|
listEditionsV2: EditionNftConnection;
|
|
4113
4152
|
/** List all activities. Includes loan activities, loan offers, loan renegotiations, trade orders, nft transfers. priceUsd bounds are USD amounts converted with current rates; events without a priced amount (transfers, loan listings, executed trades) are excluded while a price filter is set. */
|
|
4114
4153
|
listEvents: EventConnection;
|
|
4154
|
+
/** The galleries directory: every profile's published galleries that show at least one work. Most recently published first unless `sortBy` says otherwise; ties go to the most recently published. */
|
|
4155
|
+
listGalleries: GalleryConnection;
|
|
4115
4156
|
listListings: ListingConnection;
|
|
4116
4157
|
listListingsForSale: OrderConnection;
|
|
4117
4158
|
/**
|
|
@@ -4171,6 +4212,8 @@ export type Query = {
|
|
|
4171
4212
|
notificationPreferences: Array<NotificationPreference>;
|
|
4172
4213
|
/** Evaluate an item quote before signing; publication rechecks under a transaction lock. */
|
|
4173
4214
|
previewItemLoanOfferCompetition: LoanOfferCompetitionPreview;
|
|
4215
|
+
/** What a set bid's trait condition matches in the collection right now: the count and up to 10 of the NFTs, under the checks publishOrderForNftSet applies (an empty match counts 0 here, where publishing it fails). For a live count while a condition is built. */
|
|
4216
|
+
previewNftSetCondition: NftSetConditionPreview;
|
|
4174
4217
|
previewRenegotiationCompetition: LoanOfferCompetitionPreview;
|
|
4175
4218
|
};
|
|
4176
4219
|
/** Query for the lending module */
|
|
@@ -4272,6 +4315,7 @@ export type QueryGetEditionBySlugArgs = {
|
|
|
4272
4315
|
/** Query for the lending module */
|
|
4273
4316
|
export type QueryGetFulfillManyOrdersCalldataArgs = {
|
|
4274
4317
|
orderIds: Array<Scalars['Int64']>;
|
|
4318
|
+
recipient?: InputMaybe<Scalars['Address']>;
|
|
4275
4319
|
};
|
|
4276
4320
|
/** Query for the lending module */
|
|
4277
4321
|
export type QueryGetListingByIdArgs = {
|
|
@@ -4686,6 +4730,12 @@ export type QueryListEventsArgs = {
|
|
|
4686
4730
|
usersSide?: EventSide;
|
|
4687
4731
|
};
|
|
4688
4732
|
/** Query for the lending module */
|
|
4733
|
+
export type QueryListGalleriesArgs = {
|
|
4734
|
+
after?: InputMaybe<Scalars['String']>;
|
|
4735
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
4736
|
+
sortBy?: InputMaybe<Array<GallerySortInput>>;
|
|
4737
|
+
};
|
|
4738
|
+
/** Query for the lending module */
|
|
4689
4739
|
export type QueryListListingsArgs = {
|
|
4690
4740
|
after?: InputMaybe<Scalars['String']>;
|
|
4691
4741
|
blockchains?: InputMaybe<Array<BlockchainEnum>>;
|
|
@@ -5050,6 +5100,11 @@ export type QueryPreviewItemLoanOfferCompetitionArgs = {
|
|
|
5050
5100
|
replacementIds?: InputMaybe<Array<Scalars['String']>>;
|
|
5051
5101
|
};
|
|
5052
5102
|
/** Query for the lending module */
|
|
5103
|
+
export type QueryPreviewNftSetConditionArgs = {
|
|
5104
|
+
collectionId: Scalars['Int'];
|
|
5105
|
+
condition: NftSetConditionInput;
|
|
5106
|
+
};
|
|
5107
|
+
/** Query for the lending module */
|
|
5053
5108
|
export type QueryPreviewRenegotiationCompetitionArgs = {
|
|
5054
5109
|
renegotiationInput: RenegotiationOfferInput;
|
|
5055
5110
|
replacementIds?: InputMaybe<Array<Scalars['String']>>;
|
|
@@ -5293,11 +5348,15 @@ export type SellAndRepayOrderPlatformFeesArgs = {
|
|
|
5293
5348
|
operation: PlatformFeeOperationType;
|
|
5294
5349
|
};
|
|
5295
5350
|
export type SellAndRepayOrderSignatureRequestExtraSeaportData = ExtraSeaportData | SellAndRepayOrder | SignatureRequest;
|
|
5296
|
-
/**
|
|
5351
|
+
/** The trait condition a set bid was resolved from: the bid fills with any NFT the expression matches. */
|
|
5297
5352
|
export type SetBidCondition = {
|
|
5298
5353
|
__typename?: 'SetBidCondition';
|
|
5299
|
-
/**
|
|
5354
|
+
/** The values of an OR trait bid, an any of traits of one key; empty for any other condition. */
|
|
5300
5355
|
anyTraits: Array<Trait>;
|
|
5356
|
+
/** The condition in its stored form: {"all": [nodes]}, {"any": [nodes]} and {"trait": traitId} nodes. */
|
|
5357
|
+
expression: Scalars['JSON'];
|
|
5358
|
+
/** Every trait the condition names, in id order. */
|
|
5359
|
+
traits: Array<Trait>;
|
|
5301
5360
|
};
|
|
5302
5361
|
export type SetBidOrder = Event & Node & Order & {
|
|
5303
5362
|
__typename?: 'SetBidOrder';
|
|
@@ -9108,6 +9167,17 @@ export type GalleryFieldPolicy = {
|
|
|
9108
9167
|
workCount?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9109
9168
|
works?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9110
9169
|
};
|
|
9170
|
+
export type GalleryConnectionKeySpecifier = ('edges' | 'pageInfo' | 'totalCount' | GalleryConnectionKeySpecifier)[];
|
|
9171
|
+
export type GalleryConnectionFieldPolicy = {
|
|
9172
|
+
edges?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9173
|
+
pageInfo?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9174
|
+
totalCount?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9175
|
+
};
|
|
9176
|
+
export type GalleryEdgeKeySpecifier = ('cursor' | 'node' | GalleryEdgeKeySpecifier)[];
|
|
9177
|
+
export type GalleryEdgeFieldPolicy = {
|
|
9178
|
+
cursor?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9179
|
+
node?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9180
|
+
};
|
|
9111
9181
|
export type GalleryWorkKeySpecifier = ('chapter' | 'heldByOwner' | 'nft' | 'note' | 'position' | GalleryWorkKeySpecifier)[];
|
|
9112
9182
|
export type GalleryWorkFieldPolicy = {
|
|
9113
9183
|
chapter?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -9116,6 +9186,11 @@ export type GalleryWorkFieldPolicy = {
|
|
|
9116
9186
|
note?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9117
9187
|
position?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9118
9188
|
};
|
|
9189
|
+
export type GeoAccessKeySpecifier = ('blocked' | 'country' | GeoAccessKeySpecifier)[];
|
|
9190
|
+
export type GeoAccessFieldPolicy = {
|
|
9191
|
+
blocked?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9192
|
+
country?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
9193
|
+
};
|
|
9119
9194
|
export type GlobalSearchResultKeySpecifier = ('id' | GlobalSearchResultKeySpecifier)[];
|
|
9120
9195
|
export type GlobalSearchResultFieldPolicy = {
|
|
9121
9196
|
id?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -10119,6 +10194,11 @@ export type NewRenegotiationOfferNotificationFieldPolicy = {
|
|
|
10119
10194
|
renegotiationId?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10120
10195
|
user?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10121
10196
|
};
|
|
10197
|
+
export type NftSetConditionPreviewKeySpecifier = ('matchCount' | 'previewNfts' | NftSetConditionPreviewKeySpecifier)[];
|
|
10198
|
+
export type NftSetConditionPreviewFieldPolicy = {
|
|
10199
|
+
matchCount?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10200
|
+
previewNfts?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10201
|
+
};
|
|
10122
10202
|
export type NftStatisticsKeySpecifier = ('highestBid' | 'lastSale' | 'loansTotalVolume' | 'numberOfOffers' | 'numberOfOffersForCurrencies' | 'topTraitFloorPrice' | NftStatisticsKeySpecifier)[];
|
|
10123
10203
|
export type NftStatisticsFieldPolicy = {
|
|
10124
10204
|
highestBid?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -10417,7 +10497,7 @@ export type PortfolioValuationFieldPolicy = {
|
|
|
10417
10497
|
value?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10418
10498
|
valuedNfts?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10419
10499
|
};
|
|
10420
|
-
export type QueryKeySpecifier = ('collectionMarketDepth' | 'collectorsAlsoBought' | 'dealReadiness' | 'featuredListings' | 'galleries' | 'gallery' | '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' | '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' | 'listListings' | 'listListingsForSale' | 'listLoanActivities' | 'listLoanEvents' | 'listLoans' | 'listNames' | 'listNftDelegations' | 'listNftFollows' | 'listNftOffersAndRenegotiations' | 'listNftStrategyDeployments' | 'listNfts' | 'listNftsFromCollections' | 'listNftsFromUser' | 'listNotifications' | 'listOffers' | 'listOrders' | 'listOrdersV2' | 'listPlatformFees' | 'listPopularSearches' | 'listProfiles' | 'listRenegotiations' | 'listSales' | 'listSitemapNfts' | 'listSources' | 'listUsers' | 'listWalletFollowers' | 'listWalletFollowing' | 'loanDealCollections' | 'loanDeals' | 'me' | 'minimumOfferAmount' | 'notificationPreferences' | 'previewItemLoanOfferCompetition' | 'previewRenegotiationCompetition' | QueryKeySpecifier)[];
|
|
10500
|
+
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' | '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' | 'listOrders' | 'listOrdersV2' | 'listPlatformFees' | 'listPopularSearches' | 'listProfiles' | 'listRenegotiations' | 'listSales' | 'listSitemapNfts' | 'listSources' | 'listUsers' | 'listWalletFollowers' | 'listWalletFollowing' | 'loanDealCollections' | 'loanDeals' | 'me' | 'minimumOfferAmount' | 'notificationPreferences' | 'previewItemLoanOfferCompetition' | 'previewNftSetCondition' | 'previewRenegotiationCompetition' | QueryKeySpecifier)[];
|
|
10421
10501
|
export type QueryFieldPolicy = {
|
|
10422
10502
|
collectionMarketDepth?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10423
10503
|
collectorsAlsoBought?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -10425,6 +10505,7 @@ export type QueryFieldPolicy = {
|
|
|
10425
10505
|
featuredListings?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10426
10506
|
galleries?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10427
10507
|
gallery?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10508
|
+
geoAccess?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10428
10509
|
getAddressByName?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10429
10510
|
getAddressByUsername?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10430
10511
|
getArtist?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -10502,6 +10583,7 @@ export type QueryFieldPolicy = {
|
|
|
10502
10583
|
listEditions?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10503
10584
|
listEditionsV2?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10504
10585
|
listEvents?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10586
|
+
listGalleries?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10505
10587
|
listListings?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10506
10588
|
listListingsForSale?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10507
10589
|
listLoanActivities?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
@@ -10535,6 +10617,7 @@ export type QueryFieldPolicy = {
|
|
|
10535
10617
|
minimumOfferAmount?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10536
10618
|
notificationPreferences?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10537
10619
|
previewItemLoanOfferCompetition?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10620
|
+
previewNftSetCondition?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10538
10621
|
previewRenegotiationCompetition?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10539
10622
|
};
|
|
10540
10623
|
export type RealizedProfitDayKeySpecifier = ('currencyAddress' | 'day' | 'netProfit' | 'profit' | RealizedProfitDayKeySpecifier)[];
|
|
@@ -10715,9 +10798,11 @@ export type SellAndRepayOrderFieldPolicy = {
|
|
|
10715
10798
|
timestamp?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10716
10799
|
updatedDate?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10717
10800
|
};
|
|
10718
|
-
export type SetBidConditionKeySpecifier = ('anyTraits' | SetBidConditionKeySpecifier)[];
|
|
10801
|
+
export type SetBidConditionKeySpecifier = ('anyTraits' | 'expression' | 'traits' | SetBidConditionKeySpecifier)[];
|
|
10719
10802
|
export type SetBidConditionFieldPolicy = {
|
|
10720
10803
|
anyTraits?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10804
|
+
expression?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10805
|
+
traits?: FieldPolicy<any> | FieldReadFunction<any>;
|
|
10721
10806
|
};
|
|
10722
10807
|
export type SetBidOrderKeySpecifier = ('cancelsOffChain' | 'collectionId' | 'condition' | 'createdDate' | 'currency' | 'currencyAddress' | 'eligibleTokenCount' | 'evmOrder' | 'executions' | 'expiration' | 'feeMetadata' | 'fees' | 'hidden' | 'id' | 'isAsk' | 'isPrivate' | 'label' | 'maker' | 'makerName' | 'makerProfilePictureUrl' | 'marketPlace' | 'marketPlaceAddress' | 'maxExecutions' | 'netAmount' | 'nonce' | 'orderType' | 'originalId' | 'platformFees' | 'previewNfts' | 'price' | 'signature' | 'startTime' | 'status' | 'stealth' | 'steppedNetAmount' | 'steppedPrice' | 'taker' | 'takerName' | 'takerProfilePictureUrl' | 'timestamp' | 'updatedDate' | SetBidOrderKeySpecifier)[];
|
|
10723
10808
|
export type SetBidOrderFieldPolicy = {
|
|
@@ -11864,10 +11949,22 @@ export type StrictTypedTypePolicies = {
|
|
|
11864
11949
|
keyFields?: false | GalleryKeySpecifier | (() => undefined | GalleryKeySpecifier);
|
|
11865
11950
|
fields?: GalleryFieldPolicy;
|
|
11866
11951
|
};
|
|
11952
|
+
GalleryConnection?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
|
|
11953
|
+
keyFields?: false | GalleryConnectionKeySpecifier | (() => undefined | GalleryConnectionKeySpecifier);
|
|
11954
|
+
fields?: GalleryConnectionFieldPolicy;
|
|
11955
|
+
};
|
|
11956
|
+
GalleryEdge?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
|
|
11957
|
+
keyFields?: false | GalleryEdgeKeySpecifier | (() => undefined | GalleryEdgeKeySpecifier);
|
|
11958
|
+
fields?: GalleryEdgeFieldPolicy;
|
|
11959
|
+
};
|
|
11867
11960
|
GalleryWork?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
|
|
11868
11961
|
keyFields?: false | GalleryWorkKeySpecifier | (() => undefined | GalleryWorkKeySpecifier);
|
|
11869
11962
|
fields?: GalleryWorkFieldPolicy;
|
|
11870
11963
|
};
|
|
11964
|
+
GeoAccess?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
|
|
11965
|
+
keyFields?: false | GeoAccessKeySpecifier | (() => undefined | GeoAccessKeySpecifier);
|
|
11966
|
+
fields?: GeoAccessFieldPolicy;
|
|
11967
|
+
};
|
|
11871
11968
|
GlobalSearchResult?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
|
|
11872
11969
|
keyFields?: false | GlobalSearchResultKeySpecifier | (() => undefined | GlobalSearchResultKeySpecifier);
|
|
11873
11970
|
fields?: GlobalSearchResultFieldPolicy;
|
|
@@ -12196,6 +12293,10 @@ export type StrictTypedTypePolicies = {
|
|
|
12196
12293
|
keyFields?: false | NewRenegotiationOfferNotificationKeySpecifier | (() => undefined | NewRenegotiationOfferNotificationKeySpecifier);
|
|
12197
12294
|
fields?: NewRenegotiationOfferNotificationFieldPolicy;
|
|
12198
12295
|
};
|
|
12296
|
+
NftSetConditionPreview?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
|
|
12297
|
+
keyFields?: false | NftSetConditionPreviewKeySpecifier | (() => undefined | NftSetConditionPreviewKeySpecifier);
|
|
12298
|
+
fields?: NftSetConditionPreviewFieldPolicy;
|
|
12299
|
+
};
|
|
12199
12300
|
NftStatistics?: Omit<TypePolicy, 'fields' | 'keyFields'> & {
|
|
12200
12301
|
keyFields?: false | NftStatisticsKeySpecifier | (() => undefined | NftStatisticsKeySpecifier);
|
|
12201
12302
|
fields?: NftStatisticsFieldPolicy;
|
package/dist/src/gondi.d.ts
CHANGED
|
@@ -288,7 +288,9 @@ export declare class Gondi {
|
|
|
288
288
|
* `nftIds` for a set bid that fills with any of the listed NFTs of
|
|
289
289
|
* `collectionId` (2 to 1,000), `condition.anyTraitIds` for an OR trait bid that
|
|
290
290
|
* fills with any NFT of `collectionId` carrying one of those values of a trait
|
|
291
|
-
* key,
|
|
291
|
+
* key, `condition.expression` for a condition bid that fills with any NFT of
|
|
292
|
+
* `collectionId` an all/any/not tree of traits and NFTs matches, and
|
|
293
|
+
* `collectionId` alone for a collection bid.
|
|
292
294
|
* A trait, set or collection bid fills up to `maxExecutions` times.
|
|
293
295
|
*/
|
|
294
296
|
makeOrder(orderInput: OrderInput): Promise<{
|
|
@@ -3936,10 +3938,20 @@ export declare class Gondi {
|
|
|
3936
3938
|
txHash: `0x${string}`;
|
|
3937
3939
|
waitTxInBlock: () => Promise<TransactionReceipt>;
|
|
3938
3940
|
}>;
|
|
3939
|
-
/**
|
|
3941
|
+
/**
|
|
3942
|
+
* Unwraps the wallet's CryptoPunks 721 token `tokenId` back into a naked CryptoPunk: the 721
|
|
3943
|
+
* contract burns the token and hands the punk to the wallet, in one transaction with no
|
|
3944
|
+
* approval. Refuses unless the wallet holds the 721 token, so a token held by a loan, a vault
|
|
3945
|
+
* or someone else is never sent.
|
|
3946
|
+
*/
|
|
3947
|
+
unwrapPunk721({ tokenId }: {
|
|
3948
|
+
tokenId: bigint;
|
|
3949
|
+
}): Promise<{
|
|
3950
|
+
txHash: `0x${string}`;
|
|
3951
|
+
waitTxInBlock: () => Promise<TransactionReceipt>;
|
|
3952
|
+
}>;
|
|
3953
|
+
/** The punk's wrap state with the addresses the wrap and unwrap transactions need. */
|
|
3940
3954
|
private _punk721Holding;
|
|
3941
|
-
/** A sent transaction whose `waitTxInBlock` resolves with its receipt once it succeeds. */
|
|
3942
|
-
private _minedTransaction;
|
|
3943
3955
|
buyWithSellAndRepay({ repaymentCalldata, purchaseBundlerAddress, mslContractAddress, price, swapData, }: {
|
|
3944
3956
|
repaymentCalldata: Hex;
|
|
3945
3957
|
purchaseBundlerAddress?: Address;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PublicClient, TransactionReceipt } from 'viem';
|
|
1
|
+
import { Hash, PublicClient, TransactionReceipt } from 'viem';
|
|
2
2
|
import { HexString } from '../blockchain';
|
|
3
3
|
export declare const isEmptyCalldata: (calldata: HexString) => calldata is "0x";
|
|
4
4
|
/**
|
|
@@ -11,13 +11,18 @@ export declare const isEmptyCalldata: (calldata: HexString) => calldata is "0x";
|
|
|
11
11
|
* caller that awaits the receipt alone treats a reverted transaction as mined.
|
|
12
12
|
*/
|
|
13
13
|
export declare const assertTransactionSucceeded: (receipt: TransactionReceipt) => TransactionReceipt;
|
|
14
|
+
type ReceiptWaiter = Pick<PublicClient, 'waitForTransactionReceipt'>;
|
|
15
|
+
/** A sent transaction whose `waitTxInBlock` resolves with its receipt once it succeeds. */
|
|
16
|
+
export declare const minedTransaction: (client: ReceiptWaiter, txHash: Hash) => {
|
|
17
|
+
txHash: `0x${string}`;
|
|
18
|
+
waitTxInBlock: () => Promise<TransactionReceipt>;
|
|
19
|
+
};
|
|
14
20
|
/**
|
|
15
21
|
* Total time a receipt wait keeps trying before giving up on a broadcast
|
|
16
22
|
* transaction. Slow-to-mine transactions usually confirm well within this
|
|
17
23
|
* window; viem's own default gives up after 180s.
|
|
18
24
|
*/
|
|
19
25
|
export declare const WAIT_FOR_RECEIPT_TIMEOUT_MILLIS = 360000;
|
|
20
|
-
type ReceiptWaiter = Pick<PublicClient, 'waitForTransactionReceipt'>;
|
|
21
26
|
interface ReceiptWaitOptions {
|
|
22
27
|
timeoutMillis?: number;
|
|
23
28
|
retryDelayMillis?: number;
|
|
@@ -25,22 +25,6 @@ export type CreditPurchaseQuote = Readonly<{
|
|
|
25
25
|
loanSwapData: Hex;
|
|
26
26
|
callbackData: Hex;
|
|
27
27
|
}>;
|
|
28
|
-
/** Decodes the purchase bundler's `executionInfo` callback carried by an execution or a seller repayment. */
|
|
29
|
-
export declare const decodePurchaseCallback: (data: Hex) => {
|
|
30
|
-
reservoirExecutionInfo: {
|
|
31
|
-
module: `0x${string}`;
|
|
32
|
-
data: `0x${string}`;
|
|
33
|
-
value: bigint;
|
|
34
|
-
};
|
|
35
|
-
contractMustBeOwner: boolean;
|
|
36
|
-
purchaseCurrency: `0x${string}`;
|
|
37
|
-
amount: bigint;
|
|
38
|
-
swapData: `0x${string}`;
|
|
39
|
-
swapValue: bigint;
|
|
40
|
-
maxSlippage: bigint;
|
|
41
|
-
};
|
|
42
|
-
/** The callback's purchase currency, with every native spelling (including the ETH sentinel) as `zeroAddress`. */
|
|
43
|
-
export declare const callbackPurchaseCurrency: (callback: ReturnType<typeof decodePurchaseCallback>) => Address;
|
|
44
28
|
/** Compares every ABI field against the confirmed terms before signing or submitting an API execution. */
|
|
45
29
|
export declare const assertCreditPurchaseExecution: (expected: ExecutionDataV7, received: unknown) => void;
|
|
46
30
|
/** Rechecks activation, zero additional taxes and router funding before buyer signing. */
|