1
1
/* eslint-disable */
2
- // marketplace-api 3b866b34dc1d85930d40846e76af67657017beb6
2
+ // marketplace-api 6b46374337129883386b9668e652237c3b31eda1
3
3
// --
4
4
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
5
5
//
8
8
export const WebrpcHeader = 'Webrpc'
9
9
10
10
export const WebrpcHeaderValue =
11
-
11
+
12
12
13
13
// WebRPC description and code-gen version
14
14
export const WebRPCVersion = 'v1'
@@ -17,7 +17,7 @@ export const WebRPCVersion = 'v1'
17
17
export const WebRPCSchemaVersion = ''
18
18
19
19
// Schema hash generated from your RIDL schema
20
- export const WebRPCSchemaHash = '3b866b34dc1d85930d40846e76af67657017beb6 '
20
+ export const WebRPCSchemaHash = '6b46374337129883386b9668e652237c3b31eda1 '
21
21
22
22
type WebrpcGenVersions = {
23
23
webrpcGenVersion : string
@@ -584,7 +584,7 @@ export interface PrimarySaleItem {
584
584
priceDecimals : number
585
585
priceAmount : string
586
586
priceAmountFormatted : string
587
- supplyCap : string
587
+ supply : string
588
588
createdAt : string
589
589
updatedAt : string
590
590
deletedAt ?: string
@@ -786,6 +786,8 @@ export interface Marketplace {
786
786
headers ?: object ,
787
787
signal ?: AbortSignal
788
788
) : Promise < ListOffersForCollectibleReturn >
789
+ listListings ( args : ListListingsArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListListingsReturn >
790
+ listOffers ( args : ListOffersArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListOffersReturn >
789
791
getCountOfListingsForCollectible (
790
792
args : GetCountOfListingsForCollectibleArgs ,
791
793
headers ?: object ,
@@ -929,6 +931,7 @@ export interface Marketplace {
929
931
headers ?: object ,
930
932
signal ?: AbortSignal
931
933
) : Promise < SupportedMarketplacesReturn >
934
+ getPrimarySaleItem ( args : GetPrimarySaleItemArgs , headers ?: object , signal ?: AbortSignal ) : Promise < GetPrimarySaleItemReturn >
932
935
listPrimarySaleItems (
933
936
args : ListPrimarySaleItemsArgs ,
934
937
headers ?: object ,
@@ -1029,6 +1032,28 @@ export interface ListOffersForCollectibleReturn {
1029
1032
offers : Array < Order >
1030
1033
page ?: Page
1031
1034
}
1035
+ export interface ListListingsArgs {
1036
+ chainId : string
1037
+ contractAddress : string
1038
+ filter ?: OrderFilter
1039
+ page ?: Page
1040
+ }
1041
+
1042
+ export interface ListListingsReturn {
1043
+ listings : Array < Order >
1044
+ page ?: Page
1045
+ }
1046
+ export interface ListOffersArgs {
1047
+ chainId : string
1048
+ contractAddress : string
1049
+ filter ?: OrderFilter
1050
+ page ?: Page
1051
+ }
1052
+
1053
+ export interface ListOffersReturn {
1054
+ offers : Array < Order >
1055
+ page ?: Page
1056
+ }
1032
1057
export interface GetCountOfListingsForCollectibleArgs {
1033
1058
chainId : string
1034
1059
contractAddress : string
@@ -1320,6 +1345,15 @@ export interface SupportedMarketplacesArgs {
1320
1345
export interface SupportedMarketplacesReturn {
1321
1346
marketplaces : Array < MarketplaceKind >
1322
1347
}
1348
+ export interface GetPrimarySaleItemArgs {
1349
+ chainId : string
1350
+ primarySaleContractAddress : string
1351
+ tokenId : string
1352
+ }
1353
+
1354
+ export interface GetPrimarySaleItemReturn {
1355
+ item : CollectiblePrimarySaleItem
1356
+ }
1323
1357
export interface ListPrimarySaleItemsArgs {
1324
1358
chainId : string
1325
1359
primarySaleContractAddress : string
@@ -1750,6 +1784,38 @@ export class Marketplace implements Marketplace {
1750
1784
)
1751
1785
}
1752
1786
1787
+ listListings = ( args : ListListingsArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListListingsReturn > => {
1788
+ return this . fetch ( this . url ( 'ListListings' ) , createHTTPRequest ( args , headers , signal ) ) . then (
1789
+ res => {
1790
+ return buildResponse ( res ) . then ( _data => {
1791
+ return {
1792
+ listings : < Array < Order > > _data . listings ,
1793
+ page : < Page > _data . page
1794
+ }
1795
+ } )
1796
+ } ,
1797
+ error => {
1798
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
1799
+ }
1800
+ )
1801
+ }
1802
+
1803
+ listOffers = ( args : ListOffersArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListOffersReturn > => {
1804
+ return this . fetch ( this . url ( 'ListOffers' ) , createHTTPRequest ( args , headers , signal ) ) . then (
1805
+ res => {
1806
+ return buildResponse ( res ) . then ( _data => {
1807
+ return {
1808
+ offers : < Array < Order > > _data . offers ,
1809
+ page : < Page > _data . page
1810
+ }
1811
+ } )
1812
+ } ,
1813
+ error => {
1814
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
1815
+ }
1816
+ )
1817
+ }
1818
+
1753
1819
getCountOfListingsForCollectible = (
1754
1820
args : GetCountOfListingsForCollectibleArgs ,
1755
1821
headers ?: object ,
@@ -2262,6 +2328,25 @@ export class Marketplace implements Marketplace {
2262
2328
)
2263
2329
}
2264
2330
2331
+ getPrimarySaleItem = (
2332
+ args : GetPrimarySaleItemArgs ,
2333
+ headers ?: object ,
2334
+ signal ?: AbortSignal
2335
+ ) : Promise < GetPrimarySaleItemReturn > => {
2336
+ return this . fetch ( this . url ( 'GetPrimarySaleItem' ) , createHTTPRequest ( args , headers , signal ) ) . then (
2337
+ res => {
2338
+ return buildResponse ( res ) . then ( _data => {
2339
+ return {
2340
+ item : < CollectiblePrimarySaleItem > _data . item
2341
+ }
2342
+ } )
2343
+ } ,
2344
+ error => {
2345
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
2346
+ }
2347
+ )
2348
+ }
2349
+
2265
2350
listPrimarySaleItems = (
2266
2351
args : ListPrimarySaleItemsArgs ,
2267
2352
headers ?: object ,
0 commit comments