-
Notifications
You must be signed in to change notification settings - Fork 970
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 4 new endpoints and support multichain (#1055)
The API has added 4 new multichain endpoints which are being implemented here: * List NFTS by Collection * List NFTS by Contract * Get an NFT * Refresh Metadata for an NFT
- Loading branch information
1 parent
876845a
commit 3ab45e7
Showing
16 changed files
with
388 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./api"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { ConsiderationItem } from "@opensea/seaport-js/lib/types"; | ||
import { ProtocolData } from "src/orders/types"; | ||
|
||
export type BuildOfferResponse = { | ||
partialParameters: PartialParameters; | ||
}; | ||
|
||
type PartialParameters = { | ||
consideration: ConsiderationItem[]; | ||
zone: string; | ||
zoneHash: string; | ||
}; | ||
|
||
type Criteria = { | ||
collection: CollectionCriteria; | ||
contract?: ContractCriteria; | ||
}; | ||
|
||
type CollectionCriteria = { | ||
slug: string; | ||
}; | ||
|
||
type ContractCriteria = { | ||
address: string; | ||
}; | ||
|
||
export type GetCollectionResponse = { | ||
collection: object; | ||
}; | ||
|
||
export type PostOfferResponse = { | ||
order_hash: string; | ||
chain: string; | ||
criteria: Criteria; | ||
protocol_data: ProtocolData; | ||
protocol_address: string; | ||
}; | ||
|
||
export type ListNFTsResponse = { | ||
nfts: NFT[]; | ||
next: string; | ||
}; | ||
|
||
export type GetNFTResponse = { | ||
nft: NFT; | ||
}; | ||
|
||
type NFT = { | ||
identifier: string; | ||
collection: string; | ||
contract: string; | ||
token_standard: string; | ||
name: string; | ||
description: string; | ||
image_url: string; | ||
metadata_url: string; | ||
created_at: string; | ||
updated_at: string; | ||
is_disabled: boolean; | ||
is_nsfw: boolean; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.