gondi 0.62.0 → 0.63.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 +221 -68
- package/dist/index.mjs.map +3 -3
- package/dist/src/clients/api/index.d.ts +40 -6
- package/dist/src/clients/api/sdk.d.ts +12 -5
- package/dist/src/errors.d.ts +36 -0
- package/dist/src/generated/graphql/index.d.ts +156 -15
- package/dist/src/gondi.d.ts +52 -5
- package/dist/src/index.d.ts +3 -2
- package/dist/src/model.d.ts +12 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { CreateVaultError, FlaggedNftError } from './errors';
|
|
1
|
+
export { CreateVaultError, FlaggedNftError, RelistOnOpenSeaError } from './errors';
|
|
2
|
+
export type { RelistOnOpenSeaErrorReason } from './errors';
|
|
2
3
|
export { Gondi } from './gondi';
|
|
3
|
-
export { CollectionOrderType, LoanStatusType, OfferStatus, OffersSortField, Ordering, OrderMatchMode, OrderSide, OrderSortField, OrderStatusType, MarketplaceEnum, TokenStandardType, } from './generated/graphql';
|
|
4
|
+
export { CollectionOrderType, LoanStatusType, OfferStatus, OffersSortField, OpenSeaListingFailureReason, OpenSeaListingStatus, Ordering, OrderMatchMode, OrderSide, OrderSortField, OrderStatusType, MarketplaceEnum, TokenStandardType, } from './generated/graphql';
|
|
4
5
|
export type { OnStepChange, Punk721WrapState } from './gondi';
|
|
5
6
|
export type { CreditPurchaseInput, CreditPurchaseQuote } from './utils/creditPurchase';
|
|
6
7
|
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, 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';
|
|
3
|
+
import { CollectionOfferInput as ApiCollectionOfferInput, CollectionOrderType, CollectionSignedOfferInput, ListOpenSeaListingResultsQuery, 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>;
|
|
@@ -91,6 +91,17 @@ export type ListOrdersProps = {
|
|
|
91
91
|
limit?: number;
|
|
92
92
|
cursor?: string | null;
|
|
93
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* What became of the OpenSea listing of one ask signed by `makeOrdersOnOpenSea` or
|
|
96
|
+
* `relistOrdersOnOpenSea`, identified by its NFT (`contractAddress` and `tokenId`).
|
|
97
|
+
*
|
|
98
|
+
* `status` is `PENDING` while the listing waits to be posted to OpenSea, `POSTED` once OpenSea
|
|
99
|
+
* took it (`orderHash` is then its OpenSea order hash), and `FAILED` when it did not, with the
|
|
100
|
+
* text to show in `error`. `failureReason` is set for a failure the caller can act on:
|
|
101
|
+
* `TERMS_CHANGED` when OpenSea refused the listing because the collection's fees changed after
|
|
102
|
+
* it was signed, which `relistOrdersOnOpenSea` signs again.
|
|
103
|
+
*/
|
|
104
|
+
export type OpenSeaListingResult = ListOpenSeaListingResultsQuery['result'][number];
|
|
94
105
|
export type NftStandard = 'ERC721' | 'ERC1155';
|
|
95
106
|
export type TransferNftStandard = NftStandard | 'CryptoPunks' | 'OldERC721';
|
|
96
107
|
export {};
|