@0xsequence/marketplace 2.3.30 → 2.3.31
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.
|
@@ -13,14 +13,14 @@ function _extends() {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* eslint-disable */
|
|
16
|
-
// marketplace-api
|
|
16
|
+
// marketplace-api ccc0b2553f66c825eb5241d633975904c9700bd8
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by webrpc-gen@v0.25.4 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
20
20
|
// webrpc-gen -schema=marketplace.ridl -target=typescript -client -out=./clients/marketplace.gen.ts
|
|
21
21
|
|
|
22
22
|
const WebrpcHeader = 'Webrpc';
|
|
23
|
-
const WebrpcHeaderValue = 'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-
|
|
23
|
+
const WebrpcHeaderValue = 'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-ccc0b2553f66c825eb5241d633975904c9700bd8';
|
|
24
24
|
|
|
25
25
|
// WebRPC description and code-gen version
|
|
26
26
|
const WebRPCVersion = 'v1';
|
|
@@ -29,7 +29,7 @@ const WebRPCVersion = 'v1';
|
|
|
29
29
|
const WebRPCSchemaVersion = '';
|
|
30
30
|
|
|
31
31
|
// Schema hash generated from your RIDL schema
|
|
32
|
-
const WebRPCSchemaHash = '
|
|
32
|
+
const WebRPCSchemaHash = 'ccc0b2553f66c825eb5241d633975904c9700bd8';
|
|
33
33
|
function VersionFromHeader(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -70,6 +70,12 @@ function parseWebrpcGenVersions(header) {
|
|
|
70
70
|
// Types
|
|
71
71
|
//
|
|
72
72
|
|
|
73
|
+
let MetadataStatus = /*#__PURE__*/function (MetadataStatus) {
|
|
74
|
+
MetadataStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
|
|
75
|
+
MetadataStatus["REFRESHING"] = "REFRESHING";
|
|
76
|
+
MetadataStatus["AVAILABLE"] = "AVAILABLE";
|
|
77
|
+
return MetadataStatus;
|
|
78
|
+
}({});
|
|
73
79
|
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
74
80
|
SortOrder["ASC"] = "ASC";
|
|
75
81
|
SortOrder["DESC"] = "DESC";
|
|
@@ -106,6 +112,7 @@ let OrderbookKind = /*#__PURE__*/function (OrderbookKind) {
|
|
|
106
112
|
OrderbookKind["looks_rare"] = "looks_rare";
|
|
107
113
|
OrderbookKind["reservoir"] = "reservoir";
|
|
108
114
|
OrderbookKind["x2y2"] = "x2y2";
|
|
115
|
+
OrderbookKind["magic_eden"] = "magic_eden";
|
|
109
116
|
return OrderbookKind;
|
|
110
117
|
}({});
|
|
111
118
|
let SourceKind = /*#__PURE__*/function (SourceKind) {
|
|
@@ -113,6 +120,8 @@ let SourceKind = /*#__PURE__*/function (SourceKind) {
|
|
|
113
120
|
SourceKind["external"] = "external";
|
|
114
121
|
SourceKind["sequence_marketplace_v1"] = "sequence_marketplace_v1";
|
|
115
122
|
SourceKind["sequence_marketplace_v2"] = "sequence_marketplace_v2";
|
|
123
|
+
SourceKind["opensea"] = "opensea";
|
|
124
|
+
SourceKind["magic_eden"] = "magic_eden";
|
|
116
125
|
return SourceKind;
|
|
117
126
|
}({});
|
|
118
127
|
let OrderSide = /*#__PURE__*/function (OrderSide) {
|
|
@@ -121,6 +130,12 @@ let OrderSide = /*#__PURE__*/function (OrderSide) {
|
|
|
121
130
|
OrderSide["offer"] = "offer";
|
|
122
131
|
return OrderSide;
|
|
123
132
|
}({});
|
|
133
|
+
let OfferType = /*#__PURE__*/function (OfferType) {
|
|
134
|
+
OfferType["unknown"] = "unknown";
|
|
135
|
+
OfferType["item"] = "item";
|
|
136
|
+
OfferType["collection"] = "collection";
|
|
137
|
+
return OfferType;
|
|
138
|
+
}({});
|
|
124
139
|
let OrderStatus = /*#__PURE__*/function (OrderStatus) {
|
|
125
140
|
OrderStatus["unknown"] = "unknown";
|
|
126
141
|
OrderStatus["active"] = "active";
|
|
@@ -236,6 +251,9 @@ let TransactionSwapProvider = /*#__PURE__*/function (TransactionSwapProvider) {
|
|
|
236
251
|
let ExecuteType = /*#__PURE__*/function (ExecuteType) {
|
|
237
252
|
ExecuteType["unknown"] = "unknown";
|
|
238
253
|
ExecuteType["order"] = "order";
|
|
254
|
+
ExecuteType["createListing"] = "createListing";
|
|
255
|
+
ExecuteType["createItemOffer"] = "createItemOffer";
|
|
256
|
+
ExecuteType["createTraitOffer"] = "createTraitOffer";
|
|
239
257
|
return ExecuteType;
|
|
240
258
|
}({});
|
|
241
259
|
let ActivityAction = /*#__PURE__*/function (ActivityAction) {
|
|
@@ -259,6 +277,11 @@ let PrimarySaleContractStatus = /*#__PURE__*/function (PrimarySaleContractStatus
|
|
|
259
277
|
PrimarySaleContractStatus["failed"] = "failed";
|
|
260
278
|
return PrimarySaleContractStatus;
|
|
261
279
|
}({});
|
|
280
|
+
let PrimarySaleVersion = /*#__PURE__*/function (PrimarySaleVersion) {
|
|
281
|
+
PrimarySaleVersion["v0"] = "v0";
|
|
282
|
+
PrimarySaleVersion["v1"] = "v1";
|
|
283
|
+
return PrimarySaleVersion;
|
|
284
|
+
}({});
|
|
262
285
|
let PrimarySaleItemDetailType = /*#__PURE__*/function (PrimarySaleItemDetailType) {
|
|
263
286
|
PrimarySaleItemDetailType["unknown"] = "unknown";
|
|
264
287
|
PrimarySaleItemDetailType["global"] = "global";
|
|
@@ -581,6 +604,46 @@ class Marketplace {
|
|
|
581
604
|
});
|
|
582
605
|
});
|
|
583
606
|
};
|
|
607
|
+
this.listOrdersWithCollectibles = (args, headers, signal) => {
|
|
608
|
+
return this.fetch(this.url('ListOrdersWithCollectibles'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
609
|
+
return buildResponse(res).then(_data => {
|
|
610
|
+
return {
|
|
611
|
+
collectibles: _data.collectibles,
|
|
612
|
+
page: _data.page
|
|
613
|
+
};
|
|
614
|
+
});
|
|
615
|
+
}, error => {
|
|
616
|
+
throw WebrpcRequestFailedError.new({
|
|
617
|
+
cause: `fetch(): ${error.message || ''}`
|
|
618
|
+
});
|
|
619
|
+
});
|
|
620
|
+
};
|
|
621
|
+
this.getCountOfAllOrders = (args, headers, signal) => {
|
|
622
|
+
return this.fetch(this.url('GetCountOfAllOrders'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
623
|
+
return buildResponse(res).then(_data => {
|
|
624
|
+
return {
|
|
625
|
+
count: _data.count
|
|
626
|
+
};
|
|
627
|
+
});
|
|
628
|
+
}, error => {
|
|
629
|
+
throw WebrpcRequestFailedError.new({
|
|
630
|
+
cause: `fetch(): ${error.message || ''}`
|
|
631
|
+
});
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
this.getCountOfFilteredOrders = (args, headers, signal) => {
|
|
635
|
+
return this.fetch(this.url('GetCountOfFilteredOrders'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
636
|
+
return buildResponse(res).then(_data => {
|
|
637
|
+
return {
|
|
638
|
+
count: _data.count
|
|
639
|
+
};
|
|
640
|
+
});
|
|
641
|
+
}, error => {
|
|
642
|
+
throw WebrpcRequestFailedError.new({
|
|
643
|
+
cause: `fetch(): ${error.message || ''}`
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
};
|
|
584
647
|
this.listListings = (args, headers, signal) => {
|
|
585
648
|
return this.fetch(this.url('ListListings'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
586
649
|
return buildResponse(res).then(_data => {
|
|
@@ -1348,15 +1411,18 @@ exports.ItemsContractStatus = ItemsContractStatus;
|
|
|
1348
1411
|
exports.Marketplace = Marketplace;
|
|
1349
1412
|
exports.MarketplaceIndexer = MarketplaceIndexer;
|
|
1350
1413
|
exports.MarketplaceKind = MarketplaceKind;
|
|
1414
|
+
exports.MetadataStatus = MetadataStatus;
|
|
1351
1415
|
exports.MethodNotFoundError = MethodNotFoundError;
|
|
1352
1416
|
exports.NotFoundError = NotFoundError;
|
|
1353
1417
|
exports.NotImplementedError = NotImplementedError;
|
|
1418
|
+
exports.OfferType = OfferType;
|
|
1354
1419
|
exports.OrderSide = OrderSide;
|
|
1355
1420
|
exports.OrderStatus = OrderStatus;
|
|
1356
1421
|
exports.OrderbookKind = OrderbookKind;
|
|
1357
1422
|
exports.PermissionDeniedError = PermissionDeniedError;
|
|
1358
1423
|
exports.PrimarySaleContractStatus = PrimarySaleContractStatus;
|
|
1359
1424
|
exports.PrimarySaleItemDetailType = PrimarySaleItemDetailType;
|
|
1425
|
+
exports.PrimarySaleVersion = PrimarySaleVersion;
|
|
1360
1426
|
exports.ProjectLimitReachedError = ProjectLimitReachedError;
|
|
1361
1427
|
exports.ProjectNotFoundError = ProjectNotFoundError;
|
|
1362
1428
|
exports.ProjectStatus = ProjectStatus;
|
|
@@ -13,14 +13,14 @@ function _extends() {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* eslint-disable */
|
|
16
|
-
// marketplace-api
|
|
16
|
+
// marketplace-api ccc0b2553f66c825eb5241d633975904c9700bd8
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by webrpc-gen@v0.25.4 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
20
20
|
// webrpc-gen -schema=marketplace.ridl -target=typescript -client -out=./clients/marketplace.gen.ts
|
|
21
21
|
|
|
22
22
|
const WebrpcHeader = 'Webrpc';
|
|
23
|
-
const WebrpcHeaderValue = 'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-
|
|
23
|
+
const WebrpcHeaderValue = 'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-ccc0b2553f66c825eb5241d633975904c9700bd8';
|
|
24
24
|
|
|
25
25
|
// WebRPC description and code-gen version
|
|
26
26
|
const WebRPCVersion = 'v1';
|
|
@@ -29,7 +29,7 @@ const WebRPCVersion = 'v1';
|
|
|
29
29
|
const WebRPCSchemaVersion = '';
|
|
30
30
|
|
|
31
31
|
// Schema hash generated from your RIDL schema
|
|
32
|
-
const WebRPCSchemaHash = '
|
|
32
|
+
const WebRPCSchemaHash = 'ccc0b2553f66c825eb5241d633975904c9700bd8';
|
|
33
33
|
function VersionFromHeader(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -70,6 +70,12 @@ function parseWebrpcGenVersions(header) {
|
|
|
70
70
|
// Types
|
|
71
71
|
//
|
|
72
72
|
|
|
73
|
+
let MetadataStatus = /*#__PURE__*/function (MetadataStatus) {
|
|
74
|
+
MetadataStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
|
|
75
|
+
MetadataStatus["REFRESHING"] = "REFRESHING";
|
|
76
|
+
MetadataStatus["AVAILABLE"] = "AVAILABLE";
|
|
77
|
+
return MetadataStatus;
|
|
78
|
+
}({});
|
|
73
79
|
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
74
80
|
SortOrder["ASC"] = "ASC";
|
|
75
81
|
SortOrder["DESC"] = "DESC";
|
|
@@ -106,6 +112,7 @@ let OrderbookKind = /*#__PURE__*/function (OrderbookKind) {
|
|
|
106
112
|
OrderbookKind["looks_rare"] = "looks_rare";
|
|
107
113
|
OrderbookKind["reservoir"] = "reservoir";
|
|
108
114
|
OrderbookKind["x2y2"] = "x2y2";
|
|
115
|
+
OrderbookKind["magic_eden"] = "magic_eden";
|
|
109
116
|
return OrderbookKind;
|
|
110
117
|
}({});
|
|
111
118
|
let SourceKind = /*#__PURE__*/function (SourceKind) {
|
|
@@ -113,6 +120,8 @@ let SourceKind = /*#__PURE__*/function (SourceKind) {
|
|
|
113
120
|
SourceKind["external"] = "external";
|
|
114
121
|
SourceKind["sequence_marketplace_v1"] = "sequence_marketplace_v1";
|
|
115
122
|
SourceKind["sequence_marketplace_v2"] = "sequence_marketplace_v2";
|
|
123
|
+
SourceKind["opensea"] = "opensea";
|
|
124
|
+
SourceKind["magic_eden"] = "magic_eden";
|
|
116
125
|
return SourceKind;
|
|
117
126
|
}({});
|
|
118
127
|
let OrderSide = /*#__PURE__*/function (OrderSide) {
|
|
@@ -121,6 +130,12 @@ let OrderSide = /*#__PURE__*/function (OrderSide) {
|
|
|
121
130
|
OrderSide["offer"] = "offer";
|
|
122
131
|
return OrderSide;
|
|
123
132
|
}({});
|
|
133
|
+
let OfferType = /*#__PURE__*/function (OfferType) {
|
|
134
|
+
OfferType["unknown"] = "unknown";
|
|
135
|
+
OfferType["item"] = "item";
|
|
136
|
+
OfferType["collection"] = "collection";
|
|
137
|
+
return OfferType;
|
|
138
|
+
}({});
|
|
124
139
|
let OrderStatus = /*#__PURE__*/function (OrderStatus) {
|
|
125
140
|
OrderStatus["unknown"] = "unknown";
|
|
126
141
|
OrderStatus["active"] = "active";
|
|
@@ -236,6 +251,9 @@ let TransactionSwapProvider = /*#__PURE__*/function (TransactionSwapProvider) {
|
|
|
236
251
|
let ExecuteType = /*#__PURE__*/function (ExecuteType) {
|
|
237
252
|
ExecuteType["unknown"] = "unknown";
|
|
238
253
|
ExecuteType["order"] = "order";
|
|
254
|
+
ExecuteType["createListing"] = "createListing";
|
|
255
|
+
ExecuteType["createItemOffer"] = "createItemOffer";
|
|
256
|
+
ExecuteType["createTraitOffer"] = "createTraitOffer";
|
|
239
257
|
return ExecuteType;
|
|
240
258
|
}({});
|
|
241
259
|
let ActivityAction = /*#__PURE__*/function (ActivityAction) {
|
|
@@ -259,6 +277,11 @@ let PrimarySaleContractStatus = /*#__PURE__*/function (PrimarySaleContractStatus
|
|
|
259
277
|
PrimarySaleContractStatus["failed"] = "failed";
|
|
260
278
|
return PrimarySaleContractStatus;
|
|
261
279
|
}({});
|
|
280
|
+
let PrimarySaleVersion = /*#__PURE__*/function (PrimarySaleVersion) {
|
|
281
|
+
PrimarySaleVersion["v0"] = "v0";
|
|
282
|
+
PrimarySaleVersion["v1"] = "v1";
|
|
283
|
+
return PrimarySaleVersion;
|
|
284
|
+
}({});
|
|
262
285
|
let PrimarySaleItemDetailType = /*#__PURE__*/function (PrimarySaleItemDetailType) {
|
|
263
286
|
PrimarySaleItemDetailType["unknown"] = "unknown";
|
|
264
287
|
PrimarySaleItemDetailType["global"] = "global";
|
|
@@ -581,6 +604,46 @@ class Marketplace {
|
|
|
581
604
|
});
|
|
582
605
|
});
|
|
583
606
|
};
|
|
607
|
+
this.listOrdersWithCollectibles = (args, headers, signal) => {
|
|
608
|
+
return this.fetch(this.url('ListOrdersWithCollectibles'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
609
|
+
return buildResponse(res).then(_data => {
|
|
610
|
+
return {
|
|
611
|
+
collectibles: _data.collectibles,
|
|
612
|
+
page: _data.page
|
|
613
|
+
};
|
|
614
|
+
});
|
|
615
|
+
}, error => {
|
|
616
|
+
throw WebrpcRequestFailedError.new({
|
|
617
|
+
cause: `fetch(): ${error.message || ''}`
|
|
618
|
+
});
|
|
619
|
+
});
|
|
620
|
+
};
|
|
621
|
+
this.getCountOfAllOrders = (args, headers, signal) => {
|
|
622
|
+
return this.fetch(this.url('GetCountOfAllOrders'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
623
|
+
return buildResponse(res).then(_data => {
|
|
624
|
+
return {
|
|
625
|
+
count: _data.count
|
|
626
|
+
};
|
|
627
|
+
});
|
|
628
|
+
}, error => {
|
|
629
|
+
throw WebrpcRequestFailedError.new({
|
|
630
|
+
cause: `fetch(): ${error.message || ''}`
|
|
631
|
+
});
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
this.getCountOfFilteredOrders = (args, headers, signal) => {
|
|
635
|
+
return this.fetch(this.url('GetCountOfFilteredOrders'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
636
|
+
return buildResponse(res).then(_data => {
|
|
637
|
+
return {
|
|
638
|
+
count: _data.count
|
|
639
|
+
};
|
|
640
|
+
});
|
|
641
|
+
}, error => {
|
|
642
|
+
throw WebrpcRequestFailedError.new({
|
|
643
|
+
cause: `fetch(): ${error.message || ''}`
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
};
|
|
584
647
|
this.listListings = (args, headers, signal) => {
|
|
585
648
|
return this.fetch(this.url('ListListings'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
586
649
|
return buildResponse(res).then(_data => {
|
|
@@ -1348,15 +1411,18 @@ exports.ItemsContractStatus = ItemsContractStatus;
|
|
|
1348
1411
|
exports.Marketplace = Marketplace;
|
|
1349
1412
|
exports.MarketplaceIndexer = MarketplaceIndexer;
|
|
1350
1413
|
exports.MarketplaceKind = MarketplaceKind;
|
|
1414
|
+
exports.MetadataStatus = MetadataStatus;
|
|
1351
1415
|
exports.MethodNotFoundError = MethodNotFoundError;
|
|
1352
1416
|
exports.NotFoundError = NotFoundError;
|
|
1353
1417
|
exports.NotImplementedError = NotImplementedError;
|
|
1418
|
+
exports.OfferType = OfferType;
|
|
1354
1419
|
exports.OrderSide = OrderSide;
|
|
1355
1420
|
exports.OrderStatus = OrderStatus;
|
|
1356
1421
|
exports.OrderbookKind = OrderbookKind;
|
|
1357
1422
|
exports.PermissionDeniedError = PermissionDeniedError;
|
|
1358
1423
|
exports.PrimarySaleContractStatus = PrimarySaleContractStatus;
|
|
1359
1424
|
exports.PrimarySaleItemDetailType = PrimarySaleItemDetailType;
|
|
1425
|
+
exports.PrimarySaleVersion = PrimarySaleVersion;
|
|
1360
1426
|
exports.ProjectLimitReachedError = ProjectLimitReachedError;
|
|
1361
1427
|
exports.ProjectNotFoundError = ProjectNotFoundError;
|
|
1362
1428
|
exports.ProjectStatus = ProjectStatus;
|
|
@@ -9,14 +9,14 @@ function _extends() {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/* eslint-disable */
|
|
12
|
-
// marketplace-api
|
|
12
|
+
// marketplace-api ccc0b2553f66c825eb5241d633975904c9700bd8
|
|
13
13
|
// --
|
|
14
14
|
// Code generated by webrpc-gen@v0.25.4 with typescript generator. DO NOT EDIT.
|
|
15
15
|
//
|
|
16
16
|
// webrpc-gen -schema=marketplace.ridl -target=typescript -client -out=./clients/marketplace.gen.ts
|
|
17
17
|
|
|
18
18
|
const WebrpcHeader = 'Webrpc';
|
|
19
|
-
const WebrpcHeaderValue = 'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-
|
|
19
|
+
const WebrpcHeaderValue = 'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-ccc0b2553f66c825eb5241d633975904c9700bd8';
|
|
20
20
|
|
|
21
21
|
// WebRPC description and code-gen version
|
|
22
22
|
const WebRPCVersion = 'v1';
|
|
@@ -25,7 +25,7 @@ const WebRPCVersion = 'v1';
|
|
|
25
25
|
const WebRPCSchemaVersion = '';
|
|
26
26
|
|
|
27
27
|
// Schema hash generated from your RIDL schema
|
|
28
|
-
const WebRPCSchemaHash = '
|
|
28
|
+
const WebRPCSchemaHash = 'ccc0b2553f66c825eb5241d633975904c9700bd8';
|
|
29
29
|
function VersionFromHeader(headers) {
|
|
30
30
|
const headerValue = headers.get(WebrpcHeader);
|
|
31
31
|
if (!headerValue) {
|
|
@@ -66,6 +66,12 @@ function parseWebrpcGenVersions(header) {
|
|
|
66
66
|
// Types
|
|
67
67
|
//
|
|
68
68
|
|
|
69
|
+
let MetadataStatus = /*#__PURE__*/function (MetadataStatus) {
|
|
70
|
+
MetadataStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
|
|
71
|
+
MetadataStatus["REFRESHING"] = "REFRESHING";
|
|
72
|
+
MetadataStatus["AVAILABLE"] = "AVAILABLE";
|
|
73
|
+
return MetadataStatus;
|
|
74
|
+
}({});
|
|
69
75
|
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
70
76
|
SortOrder["ASC"] = "ASC";
|
|
71
77
|
SortOrder["DESC"] = "DESC";
|
|
@@ -102,6 +108,7 @@ let OrderbookKind = /*#__PURE__*/function (OrderbookKind) {
|
|
|
102
108
|
OrderbookKind["looks_rare"] = "looks_rare";
|
|
103
109
|
OrderbookKind["reservoir"] = "reservoir";
|
|
104
110
|
OrderbookKind["x2y2"] = "x2y2";
|
|
111
|
+
OrderbookKind["magic_eden"] = "magic_eden";
|
|
105
112
|
return OrderbookKind;
|
|
106
113
|
}({});
|
|
107
114
|
let SourceKind = /*#__PURE__*/function (SourceKind) {
|
|
@@ -109,6 +116,8 @@ let SourceKind = /*#__PURE__*/function (SourceKind) {
|
|
|
109
116
|
SourceKind["external"] = "external";
|
|
110
117
|
SourceKind["sequence_marketplace_v1"] = "sequence_marketplace_v1";
|
|
111
118
|
SourceKind["sequence_marketplace_v2"] = "sequence_marketplace_v2";
|
|
119
|
+
SourceKind["opensea"] = "opensea";
|
|
120
|
+
SourceKind["magic_eden"] = "magic_eden";
|
|
112
121
|
return SourceKind;
|
|
113
122
|
}({});
|
|
114
123
|
let OrderSide = /*#__PURE__*/function (OrderSide) {
|
|
@@ -117,6 +126,12 @@ let OrderSide = /*#__PURE__*/function (OrderSide) {
|
|
|
117
126
|
OrderSide["offer"] = "offer";
|
|
118
127
|
return OrderSide;
|
|
119
128
|
}({});
|
|
129
|
+
let OfferType = /*#__PURE__*/function (OfferType) {
|
|
130
|
+
OfferType["unknown"] = "unknown";
|
|
131
|
+
OfferType["item"] = "item";
|
|
132
|
+
OfferType["collection"] = "collection";
|
|
133
|
+
return OfferType;
|
|
134
|
+
}({});
|
|
120
135
|
let OrderStatus = /*#__PURE__*/function (OrderStatus) {
|
|
121
136
|
OrderStatus["unknown"] = "unknown";
|
|
122
137
|
OrderStatus["active"] = "active";
|
|
@@ -232,6 +247,9 @@ let TransactionSwapProvider = /*#__PURE__*/function (TransactionSwapProvider) {
|
|
|
232
247
|
let ExecuteType = /*#__PURE__*/function (ExecuteType) {
|
|
233
248
|
ExecuteType["unknown"] = "unknown";
|
|
234
249
|
ExecuteType["order"] = "order";
|
|
250
|
+
ExecuteType["createListing"] = "createListing";
|
|
251
|
+
ExecuteType["createItemOffer"] = "createItemOffer";
|
|
252
|
+
ExecuteType["createTraitOffer"] = "createTraitOffer";
|
|
235
253
|
return ExecuteType;
|
|
236
254
|
}({});
|
|
237
255
|
let ActivityAction = /*#__PURE__*/function (ActivityAction) {
|
|
@@ -255,6 +273,11 @@ let PrimarySaleContractStatus = /*#__PURE__*/function (PrimarySaleContractStatus
|
|
|
255
273
|
PrimarySaleContractStatus["failed"] = "failed";
|
|
256
274
|
return PrimarySaleContractStatus;
|
|
257
275
|
}({});
|
|
276
|
+
let PrimarySaleVersion = /*#__PURE__*/function (PrimarySaleVersion) {
|
|
277
|
+
PrimarySaleVersion["v0"] = "v0";
|
|
278
|
+
PrimarySaleVersion["v1"] = "v1";
|
|
279
|
+
return PrimarySaleVersion;
|
|
280
|
+
}({});
|
|
258
281
|
let PrimarySaleItemDetailType = /*#__PURE__*/function (PrimarySaleItemDetailType) {
|
|
259
282
|
PrimarySaleItemDetailType["unknown"] = "unknown";
|
|
260
283
|
PrimarySaleItemDetailType["global"] = "global";
|
|
@@ -577,6 +600,46 @@ class Marketplace {
|
|
|
577
600
|
});
|
|
578
601
|
});
|
|
579
602
|
};
|
|
603
|
+
this.listOrdersWithCollectibles = (args, headers, signal) => {
|
|
604
|
+
return this.fetch(this.url('ListOrdersWithCollectibles'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
605
|
+
return buildResponse(res).then(_data => {
|
|
606
|
+
return {
|
|
607
|
+
collectibles: _data.collectibles,
|
|
608
|
+
page: _data.page
|
|
609
|
+
};
|
|
610
|
+
});
|
|
611
|
+
}, error => {
|
|
612
|
+
throw WebrpcRequestFailedError.new({
|
|
613
|
+
cause: `fetch(): ${error.message || ''}`
|
|
614
|
+
});
|
|
615
|
+
});
|
|
616
|
+
};
|
|
617
|
+
this.getCountOfAllOrders = (args, headers, signal) => {
|
|
618
|
+
return this.fetch(this.url('GetCountOfAllOrders'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
619
|
+
return buildResponse(res).then(_data => {
|
|
620
|
+
return {
|
|
621
|
+
count: _data.count
|
|
622
|
+
};
|
|
623
|
+
});
|
|
624
|
+
}, error => {
|
|
625
|
+
throw WebrpcRequestFailedError.new({
|
|
626
|
+
cause: `fetch(): ${error.message || ''}`
|
|
627
|
+
});
|
|
628
|
+
});
|
|
629
|
+
};
|
|
630
|
+
this.getCountOfFilteredOrders = (args, headers, signal) => {
|
|
631
|
+
return this.fetch(this.url('GetCountOfFilteredOrders'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
632
|
+
return buildResponse(res).then(_data => {
|
|
633
|
+
return {
|
|
634
|
+
count: _data.count
|
|
635
|
+
};
|
|
636
|
+
});
|
|
637
|
+
}, error => {
|
|
638
|
+
throw WebrpcRequestFailedError.new({
|
|
639
|
+
cause: `fetch(): ${error.message || ''}`
|
|
640
|
+
});
|
|
641
|
+
});
|
|
642
|
+
};
|
|
580
643
|
this.listListings = (args, headers, signal) => {
|
|
581
644
|
return this.fetch(this.url('ListListings'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
582
645
|
return buildResponse(res).then(_data => {
|
|
@@ -1329,4 +1392,4 @@ class MarketplaceIndexer extends Marketplace {
|
|
|
1329
1392
|
}
|
|
1330
1393
|
}
|
|
1331
1394
|
|
|
1332
|
-
export { ActivityAction, Admin, CollectibleSource, CollectibleStatus, CollectionPriority, CollectionStatus, ContractType, CurrencyStatus, ExecuteType, InvalidArgumentError, InvalidTierError, ItemsContractStatus, Marketplace, MarketplaceIndexer, MarketplaceKind, MethodNotFoundError, NotFoundError, NotImplementedError, OrderSide, OrderStatus, OrderbookKind, PermissionDeniedError, PrimarySaleContractStatus, PrimarySaleItemDetailType, ProjectLimitReachedError, ProjectNotFoundError, ProjectStatus, PropertyType, SessionExpiredError, SortOrder, SourceKind, StepType, TimeoutError, TransactionCrypto, TransactionNFTCheckoutProvider, TransactionOnRampProvider, TransactionSwapProvider, UnauthorizedError, UserNotFoundError, VersionFromHeader, WalletKind, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcErrorCodes, WebrpcHeader, WebrpcHeaderValue, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors, webrpcErrorByCode };
|
|
1395
|
+
export { ActivityAction, Admin, CollectibleSource, CollectibleStatus, CollectionPriority, CollectionStatus, ContractType, CurrencyStatus, ExecuteType, InvalidArgumentError, InvalidTierError, ItemsContractStatus, Marketplace, MarketplaceIndexer, MarketplaceKind, MetadataStatus, MethodNotFoundError, NotFoundError, NotImplementedError, OfferType, OrderSide, OrderStatus, OrderbookKind, PermissionDeniedError, PrimarySaleContractStatus, PrimarySaleItemDetailType, PrimarySaleVersion, ProjectLimitReachedError, ProjectNotFoundError, ProjectStatus, PropertyType, SessionExpiredError, SortOrder, SourceKind, StepType, TimeoutError, TransactionCrypto, TransactionNFTCheckoutProvider, TransactionOnRampProvider, TransactionSwapProvider, UnauthorizedError, UserNotFoundError, VersionFromHeader, WalletKind, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcErrorCodes, WebrpcHeader, WebrpcHeaderValue, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors, webrpcErrorByCode };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const WebrpcHeader = "Webrpc";
|
|
2
|
-
export declare const WebrpcHeaderValue = "webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-
|
|
2
|
+
export declare const WebrpcHeaderValue = "webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-ccc0b2553f66c825eb5241d633975904c9700bd8";
|
|
3
3
|
export declare const WebRPCVersion = "v1";
|
|
4
4
|
export declare const WebRPCSchemaVersion = "";
|
|
5
|
-
export declare const WebRPCSchemaHash = "
|
|
5
|
+
export declare const WebRPCSchemaHash = "ccc0b2553f66c825eb5241d633975904c9700bd8";
|
|
6
6
|
type WebrpcGenVersions = {
|
|
7
7
|
webrpcGenVersion: string;
|
|
8
8
|
codeGenName: string;
|
|
@@ -11,6 +11,11 @@ type WebrpcGenVersions = {
|
|
|
11
11
|
schemaVersion: string;
|
|
12
12
|
};
|
|
13
13
|
export declare function VersionFromHeader(headers: Headers): WebrpcGenVersions;
|
|
14
|
+
export declare enum MetadataStatus {
|
|
15
|
+
NOT_AVAILABLE = "NOT_AVAILABLE",
|
|
16
|
+
REFRESHING = "REFRESHING",
|
|
17
|
+
AVAILABLE = "AVAILABLE"
|
|
18
|
+
}
|
|
14
19
|
export interface TokenMetadata {
|
|
15
20
|
tokenId: string;
|
|
16
21
|
name: string;
|
|
@@ -31,6 +36,7 @@ export interface TokenMetadata {
|
|
|
31
36
|
decimals?: number;
|
|
32
37
|
updatedAt?: string;
|
|
33
38
|
assets?: Array<Asset>;
|
|
39
|
+
status: MetadataStatus;
|
|
34
40
|
}
|
|
35
41
|
export interface Asset {
|
|
36
42
|
id: number;
|
|
@@ -77,19 +83,27 @@ export declare enum OrderbookKind {
|
|
|
77
83
|
opensea = "opensea",
|
|
78
84
|
looks_rare = "looks_rare",
|
|
79
85
|
reservoir = "reservoir",
|
|
80
|
-
x2y2 = "x2y2"
|
|
86
|
+
x2y2 = "x2y2",
|
|
87
|
+
magic_eden = "magic_eden"
|
|
81
88
|
}
|
|
82
89
|
export declare enum SourceKind {
|
|
83
90
|
unknown = "unknown",
|
|
84
91
|
external = "external",
|
|
85
92
|
sequence_marketplace_v1 = "sequence_marketplace_v1",
|
|
86
|
-
sequence_marketplace_v2 = "sequence_marketplace_v2"
|
|
93
|
+
sequence_marketplace_v2 = "sequence_marketplace_v2",
|
|
94
|
+
opensea = "opensea",
|
|
95
|
+
magic_eden = "magic_eden"
|
|
87
96
|
}
|
|
88
97
|
export declare enum OrderSide {
|
|
89
98
|
unknown = "unknown",
|
|
90
99
|
listing = "listing",
|
|
91
100
|
offer = "offer"
|
|
92
101
|
}
|
|
102
|
+
export declare enum OfferType {
|
|
103
|
+
unknown = "unknown",
|
|
104
|
+
item = "item",
|
|
105
|
+
collection = "collection"
|
|
106
|
+
}
|
|
93
107
|
export declare enum OrderStatus {
|
|
94
108
|
unknown = "unknown",
|
|
95
109
|
active = "active",
|
|
@@ -189,7 +203,10 @@ export declare enum TransactionSwapProvider {
|
|
|
189
203
|
}
|
|
190
204
|
export declare enum ExecuteType {
|
|
191
205
|
unknown = "unknown",
|
|
192
|
-
order = "order"
|
|
206
|
+
order = "order",
|
|
207
|
+
createListing = "createListing",
|
|
208
|
+
createItemOffer = "createItemOffer",
|
|
209
|
+
createTraitOffer = "createTraitOffer"
|
|
193
210
|
}
|
|
194
211
|
export declare enum ActivityAction {
|
|
195
212
|
unknown = "unknown",
|
|
@@ -210,6 +227,10 @@ export declare enum PrimarySaleContractStatus {
|
|
|
210
227
|
incompatible_type = "incompatible_type",
|
|
211
228
|
failed = "failed"
|
|
212
229
|
}
|
|
230
|
+
export declare enum PrimarySaleVersion {
|
|
231
|
+
v0 = "v0",
|
|
232
|
+
v1 = "v1"
|
|
233
|
+
}
|
|
213
234
|
export declare enum PrimarySaleItemDetailType {
|
|
214
235
|
unknown = "unknown",
|
|
215
236
|
global = "global",
|
|
@@ -247,6 +268,24 @@ export interface CollectiblesFilter {
|
|
|
247
268
|
ordersNotCreatedBy?: Array<string>;
|
|
248
269
|
inCurrencyAddresses?: Array<string>;
|
|
249
270
|
notInCurrencyAddresses?: Array<string>;
|
|
271
|
+
prices?: Array<PriceFilter>;
|
|
272
|
+
}
|
|
273
|
+
export interface OrdersFilter {
|
|
274
|
+
searchText?: string;
|
|
275
|
+
properties?: Array<PropertyFilter>;
|
|
276
|
+
marketplaces?: Array<MarketplaceKind>;
|
|
277
|
+
inAccounts?: Array<string>;
|
|
278
|
+
notInAccounts?: Array<string>;
|
|
279
|
+
ordersCreatedBy?: Array<string>;
|
|
280
|
+
ordersNotCreatedBy?: Array<string>;
|
|
281
|
+
inCurrencyAddresses?: Array<string>;
|
|
282
|
+
notInCurrencyAddresses?: Array<string>;
|
|
283
|
+
prices?: Array<PriceFilter>;
|
|
284
|
+
}
|
|
285
|
+
export interface PriceFilter {
|
|
286
|
+
contractAddress: string;
|
|
287
|
+
min?: string;
|
|
288
|
+
max?: string;
|
|
250
289
|
}
|
|
251
290
|
export interface Order {
|
|
252
291
|
orderId: string;
|
|
@@ -255,6 +294,7 @@ export interface Order {
|
|
|
255
294
|
status: OrderStatus;
|
|
256
295
|
chainId: number;
|
|
257
296
|
originName: string;
|
|
297
|
+
slug: string;
|
|
258
298
|
collectionContractAddress: string;
|
|
259
299
|
tokenId?: string;
|
|
260
300
|
createdBy: string;
|
|
@@ -323,6 +363,10 @@ export interface CollectionConfig {
|
|
|
323
363
|
export interface CollectionLastSynced {
|
|
324
364
|
allOrders: string;
|
|
325
365
|
newOrders: string;
|
|
366
|
+
names: Array<string>;
|
|
367
|
+
cursors: {
|
|
368
|
+
[key: string]: string;
|
|
369
|
+
};
|
|
326
370
|
}
|
|
327
371
|
export interface Project {
|
|
328
372
|
projectId: number;
|
|
@@ -363,6 +407,8 @@ export interface Currency {
|
|
|
363
407
|
exchangeRate: number;
|
|
364
408
|
defaultChainCurrency: boolean;
|
|
365
409
|
nativeCurrency: boolean;
|
|
410
|
+
openseaListing: boolean;
|
|
411
|
+
openseaOffer: boolean;
|
|
366
412
|
createdAt: string;
|
|
367
413
|
updatedAt: string;
|
|
368
414
|
deletedAt?: string;
|
|
@@ -430,6 +476,15 @@ export interface CheckoutOptions {
|
|
|
430
476
|
nftCheckout: Array<TransactionNFTCheckoutProvider>;
|
|
431
477
|
onRamp: Array<TransactionOnRampProvider>;
|
|
432
478
|
}
|
|
479
|
+
export interface ExecuteInput {
|
|
480
|
+
chainId: string;
|
|
481
|
+
signature: string;
|
|
482
|
+
method: string;
|
|
483
|
+
endpoint: string;
|
|
484
|
+
slug: string;
|
|
485
|
+
executeType: ExecuteType;
|
|
486
|
+
body: any;
|
|
487
|
+
}
|
|
433
488
|
export interface Activity {
|
|
434
489
|
chainId: number;
|
|
435
490
|
contractAddress: string;
|
|
@@ -455,6 +510,7 @@ export interface PrimarySaleContract {
|
|
|
455
510
|
contractAddress: string;
|
|
456
511
|
collectionAddress: string;
|
|
457
512
|
contractType: ContractType;
|
|
513
|
+
version: PrimarySaleVersion;
|
|
458
514
|
currencyAddress: string;
|
|
459
515
|
priceDecimals: number;
|
|
460
516
|
status: PrimarySaleContractStatus;
|
|
@@ -474,7 +530,11 @@ export interface PrimarySaleItem {
|
|
|
474
530
|
priceDecimals: number;
|
|
475
531
|
priceAmount: string;
|
|
476
532
|
priceAmountFormatted: string;
|
|
533
|
+
priceUsd: number;
|
|
534
|
+
priceUsdFormatted: string;
|
|
477
535
|
supply: string;
|
|
536
|
+
supplyCap: string;
|
|
537
|
+
unlimitedSupply: boolean;
|
|
478
538
|
createdAt: string;
|
|
479
539
|
updatedAt: string;
|
|
480
540
|
deletedAt?: string;
|
|
@@ -630,6 +690,9 @@ export interface Marketplace {
|
|
|
630
690
|
getHighestPriceListingForCollectible(args: GetHighestPriceListingForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetHighestPriceListingForCollectibleReturn>;
|
|
631
691
|
listListingsForCollectible(args: ListListingsForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsForCollectibleReturn>;
|
|
632
692
|
listOffersForCollectible(args: ListOffersForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersForCollectibleReturn>;
|
|
693
|
+
listOrdersWithCollectibles(args: ListOrdersWithCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<ListOrdersWithCollectiblesReturn>;
|
|
694
|
+
getCountOfAllOrders(args: GetCountOfAllOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfAllOrdersReturn>;
|
|
695
|
+
getCountOfFilteredOrders(args: GetCountOfFilteredOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfFilteredOrdersReturn>;
|
|
633
696
|
listListings(args: ListListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsReturn>;
|
|
634
697
|
listOffers(args: ListOffersArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersReturn>;
|
|
635
698
|
getCountOfListingsForCollectible(args: GetCountOfListingsForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfListingsForCollectibleReturn>;
|
|
@@ -667,7 +730,7 @@ export interface Marketplace {
|
|
|
667
730
|
generateOfferTransaction(args: GenerateOfferTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateOfferTransactionReturn>;
|
|
668
731
|
generateCancelTransaction(args: GenerateCancelTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateCancelTransactionReturn>;
|
|
669
732
|
/**
|
|
670
|
-
* only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market
|
|
733
|
+
* only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market, use onlyu ExecuteInput and leave other inputs empty, they are depracated and kept only for backward compatibility
|
|
671
734
|
*/
|
|
672
735
|
execute(args: ExecuteArgs, headers?: object, signal?: AbortSignal): Promise<ExecuteReturn>;
|
|
673
736
|
/**
|
|
@@ -770,6 +833,34 @@ export interface ListOffersForCollectibleReturn {
|
|
|
770
833
|
offers: Array<Order>;
|
|
771
834
|
page?: Page;
|
|
772
835
|
}
|
|
836
|
+
export interface ListOrdersWithCollectiblesArgs {
|
|
837
|
+
chainId: string;
|
|
838
|
+
side: OrderSide;
|
|
839
|
+
contractAddress: string;
|
|
840
|
+
filter?: OrdersFilter;
|
|
841
|
+
page?: Page;
|
|
842
|
+
}
|
|
843
|
+
export interface ListOrdersWithCollectiblesReturn {
|
|
844
|
+
collectibles: Array<CollectibleOrder>;
|
|
845
|
+
page?: Page;
|
|
846
|
+
}
|
|
847
|
+
export interface GetCountOfAllOrdersArgs {
|
|
848
|
+
chainId: string;
|
|
849
|
+
side: OrderSide;
|
|
850
|
+
contractAddress: string;
|
|
851
|
+
}
|
|
852
|
+
export interface GetCountOfAllOrdersReturn {
|
|
853
|
+
count: number;
|
|
854
|
+
}
|
|
855
|
+
export interface GetCountOfFilteredOrdersArgs {
|
|
856
|
+
chainId: string;
|
|
857
|
+
side: OrderSide;
|
|
858
|
+
contractAddress: string;
|
|
859
|
+
filter?: OrdersFilter;
|
|
860
|
+
}
|
|
861
|
+
export interface GetCountOfFilteredOrdersReturn {
|
|
862
|
+
count: number;
|
|
863
|
+
}
|
|
773
864
|
export interface ListListingsArgs {
|
|
774
865
|
chainId: string;
|
|
775
866
|
contractAddress: string;
|
|
@@ -897,6 +988,7 @@ export interface GenerateListingTransactionArgs {
|
|
|
897
988
|
contractType: ContractType;
|
|
898
989
|
orderbook: OrderbookKind;
|
|
899
990
|
listing: CreateReq;
|
|
991
|
+
additionalFees: Array<AdditionalFee>;
|
|
900
992
|
walletType?: WalletKind;
|
|
901
993
|
}
|
|
902
994
|
export interface GenerateListingTransactionReturn {
|
|
@@ -909,7 +1001,9 @@ export interface GenerateOfferTransactionArgs {
|
|
|
909
1001
|
contractType: ContractType;
|
|
910
1002
|
orderbook: OrderbookKind;
|
|
911
1003
|
offer: CreateReq;
|
|
1004
|
+
additionalFees: Array<AdditionalFee>;
|
|
912
1005
|
walletType?: WalletKind;
|
|
1006
|
+
offerType: OfferType;
|
|
913
1007
|
}
|
|
914
1008
|
export interface GenerateOfferTransactionReturn {
|
|
915
1009
|
steps: Array<Step>;
|
|
@@ -925,6 +1019,7 @@ export interface GenerateCancelTransactionReturn {
|
|
|
925
1019
|
steps: Array<Step>;
|
|
926
1020
|
}
|
|
927
1021
|
export interface ExecuteArgs {
|
|
1022
|
+
params: ExecuteInput;
|
|
928
1023
|
chainId: string;
|
|
929
1024
|
signature: string;
|
|
930
1025
|
method: string;
|
|
@@ -1117,6 +1212,9 @@ export declare class Marketplace implements Marketplace {
|
|
|
1117
1212
|
getHighestPriceListingForCollectible: (args: GetHighestPriceListingForCollectibleArgs, headers?: object, signal?: AbortSignal) => Promise<GetHighestPriceListingForCollectibleReturn>;
|
|
1118
1213
|
listListingsForCollectible: (args: ListListingsForCollectibleArgs, headers?: object, signal?: AbortSignal) => Promise<ListListingsForCollectibleReturn>;
|
|
1119
1214
|
listOffersForCollectible: (args: ListOffersForCollectibleArgs, headers?: object, signal?: AbortSignal) => Promise<ListOffersForCollectibleReturn>;
|
|
1215
|
+
listOrdersWithCollectibles: (args: ListOrdersWithCollectiblesArgs, headers?: object, signal?: AbortSignal) => Promise<ListOrdersWithCollectiblesReturn>;
|
|
1216
|
+
getCountOfAllOrders: (args: GetCountOfAllOrdersArgs, headers?: object, signal?: AbortSignal) => Promise<GetCountOfAllOrdersReturn>;
|
|
1217
|
+
getCountOfFilteredOrders: (args: GetCountOfFilteredOrdersArgs, headers?: object, signal?: AbortSignal) => Promise<GetCountOfFilteredOrdersReturn>;
|
|
1120
1218
|
listListings: (args: ListListingsArgs, headers?: object, signal?: AbortSignal) => Promise<ListListingsReturn>;
|
|
1121
1219
|
listOffers: (args: ListOffersArgs, headers?: object, signal?: AbortSignal) => Promise<ListOffersReturn>;
|
|
1122
1220
|
getCountOfListingsForCollectible: (args: GetCountOfListingsForCollectibleArgs, headers?: object, signal?: AbortSignal) => Promise<GetCountOfListingsForCollectibleReturn>;
|
package/package.json
CHANGED
package/src/marketplace.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// marketplace-api
|
|
2
|
+
// marketplace-api ccc0b2553f66c825eb5241d633975904c9700bd8
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.25.4 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
export const WebrpcHeader = 'Webrpc'
|
|
9
9
|
|
|
10
10
|
export const WebrpcHeaderValue =
|
|
11
|
-
'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-
|
|
11
|
+
'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-ccc0b2553f66c825eb5241d633975904c9700bd8'
|
|
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 = '
|
|
20
|
+
export const WebRPCSchemaHash = 'ccc0b2553f66c825eb5241d633975904c9700bd8'
|
|
21
21
|
|
|
22
22
|
type WebrpcGenVersions = {
|
|
23
23
|
webrpcGenVersion: string
|
|
@@ -71,6 +71,12 @@ function parseWebrpcGenVersions(header: string): WebrpcGenVersions {
|
|
|
71
71
|
// Types
|
|
72
72
|
//
|
|
73
73
|
|
|
74
|
+
export enum MetadataStatus {
|
|
75
|
+
NOT_AVAILABLE = 'NOT_AVAILABLE',
|
|
76
|
+
REFRESHING = 'REFRESHING',
|
|
77
|
+
AVAILABLE = 'AVAILABLE'
|
|
78
|
+
}
|
|
79
|
+
|
|
74
80
|
export interface TokenMetadata {
|
|
75
81
|
tokenId: string
|
|
76
82
|
name: string
|
|
@@ -87,6 +93,7 @@ export interface TokenMetadata {
|
|
|
87
93
|
decimals?: number
|
|
88
94
|
updatedAt?: string
|
|
89
95
|
assets?: Array<Asset>
|
|
96
|
+
status: MetadataStatus
|
|
90
97
|
}
|
|
91
98
|
|
|
92
99
|
export interface Asset {
|
|
@@ -138,14 +145,17 @@ export enum OrderbookKind {
|
|
|
138
145
|
opensea = 'opensea',
|
|
139
146
|
looks_rare = 'looks_rare',
|
|
140
147
|
reservoir = 'reservoir',
|
|
141
|
-
x2y2 = 'x2y2'
|
|
148
|
+
x2y2 = 'x2y2',
|
|
149
|
+
magic_eden = 'magic_eden'
|
|
142
150
|
}
|
|
143
151
|
|
|
144
152
|
export enum SourceKind {
|
|
145
153
|
unknown = 'unknown',
|
|
146
154
|
external = 'external',
|
|
147
155
|
sequence_marketplace_v1 = 'sequence_marketplace_v1',
|
|
148
|
-
sequence_marketplace_v2 = 'sequence_marketplace_v2'
|
|
156
|
+
sequence_marketplace_v2 = 'sequence_marketplace_v2',
|
|
157
|
+
opensea = 'opensea',
|
|
158
|
+
magic_eden = 'magic_eden'
|
|
149
159
|
}
|
|
150
160
|
|
|
151
161
|
export enum OrderSide {
|
|
@@ -154,6 +164,12 @@ export enum OrderSide {
|
|
|
154
164
|
offer = 'offer'
|
|
155
165
|
}
|
|
156
166
|
|
|
167
|
+
export enum OfferType {
|
|
168
|
+
unknown = 'unknown',
|
|
169
|
+
item = 'item',
|
|
170
|
+
collection = 'collection'
|
|
171
|
+
}
|
|
172
|
+
|
|
157
173
|
export enum OrderStatus {
|
|
158
174
|
unknown = 'unknown',
|
|
159
175
|
active = 'active',
|
|
@@ -268,7 +284,10 @@ export enum TransactionSwapProvider {
|
|
|
268
284
|
|
|
269
285
|
export enum ExecuteType {
|
|
270
286
|
unknown = 'unknown',
|
|
271
|
-
order = 'order'
|
|
287
|
+
order = 'order',
|
|
288
|
+
createListing = 'createListing',
|
|
289
|
+
createItemOffer = 'createItemOffer',
|
|
290
|
+
createTraitOffer = 'createTraitOffer'
|
|
272
291
|
}
|
|
273
292
|
|
|
274
293
|
export enum ActivityAction {
|
|
@@ -292,6 +311,11 @@ export enum PrimarySaleContractStatus {
|
|
|
292
311
|
failed = 'failed'
|
|
293
312
|
}
|
|
294
313
|
|
|
314
|
+
export enum PrimarySaleVersion {
|
|
315
|
+
v0 = 'v0',
|
|
316
|
+
v1 = 'v1'
|
|
317
|
+
}
|
|
318
|
+
|
|
295
319
|
export enum PrimarySaleItemDetailType {
|
|
296
320
|
unknown = 'unknown',
|
|
297
321
|
global = 'global',
|
|
@@ -334,6 +358,26 @@ export interface CollectiblesFilter {
|
|
|
334
358
|
ordersNotCreatedBy?: Array<string>
|
|
335
359
|
inCurrencyAddresses?: Array<string>
|
|
336
360
|
notInCurrencyAddresses?: Array<string>
|
|
361
|
+
prices?: Array<PriceFilter>
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface OrdersFilter {
|
|
365
|
+
searchText?: string
|
|
366
|
+
properties?: Array<PropertyFilter>
|
|
367
|
+
marketplaces?: Array<MarketplaceKind>
|
|
368
|
+
inAccounts?: Array<string>
|
|
369
|
+
notInAccounts?: Array<string>
|
|
370
|
+
ordersCreatedBy?: Array<string>
|
|
371
|
+
ordersNotCreatedBy?: Array<string>
|
|
372
|
+
inCurrencyAddresses?: Array<string>
|
|
373
|
+
notInCurrencyAddresses?: Array<string>
|
|
374
|
+
prices?: Array<PriceFilter>
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export interface PriceFilter {
|
|
378
|
+
contractAddress: string
|
|
379
|
+
min?: string
|
|
380
|
+
max?: string
|
|
337
381
|
}
|
|
338
382
|
|
|
339
383
|
export interface Order {
|
|
@@ -343,6 +387,7 @@ export interface Order {
|
|
|
343
387
|
status: OrderStatus
|
|
344
388
|
chainId: number
|
|
345
389
|
originName: string
|
|
390
|
+
slug: string
|
|
346
391
|
collectionContractAddress: string
|
|
347
392
|
tokenId?: string
|
|
348
393
|
createdBy: string
|
|
@@ -415,6 +460,8 @@ export interface CollectionConfig {
|
|
|
415
460
|
export interface CollectionLastSynced {
|
|
416
461
|
allOrders: string
|
|
417
462
|
newOrders: string
|
|
463
|
+
names: Array<string>
|
|
464
|
+
cursors: { [key: string]: string }
|
|
418
465
|
}
|
|
419
466
|
|
|
420
467
|
export interface Project {
|
|
@@ -459,6 +506,8 @@ export interface Currency {
|
|
|
459
506
|
exchangeRate: number
|
|
460
507
|
defaultChainCurrency: boolean
|
|
461
508
|
nativeCurrency: boolean
|
|
509
|
+
openseaListing: boolean
|
|
510
|
+
openseaOffer: boolean
|
|
462
511
|
createdAt: string
|
|
463
512
|
updatedAt: string
|
|
464
513
|
deletedAt?: string
|
|
@@ -538,6 +587,16 @@ export interface CheckoutOptions {
|
|
|
538
587
|
onRamp: Array<TransactionOnRampProvider>
|
|
539
588
|
}
|
|
540
589
|
|
|
590
|
+
export interface ExecuteInput {
|
|
591
|
+
chainId: string
|
|
592
|
+
signature: string
|
|
593
|
+
method: string
|
|
594
|
+
endpoint: string
|
|
595
|
+
slug: string
|
|
596
|
+
executeType: ExecuteType
|
|
597
|
+
body: any
|
|
598
|
+
}
|
|
599
|
+
|
|
541
600
|
export interface Activity {
|
|
542
601
|
chainId: number
|
|
543
602
|
contractAddress: string
|
|
@@ -564,6 +623,7 @@ export interface PrimarySaleContract {
|
|
|
564
623
|
contractAddress: string
|
|
565
624
|
collectionAddress: string
|
|
566
625
|
contractType: ContractType
|
|
626
|
+
version: PrimarySaleVersion
|
|
567
627
|
currencyAddress: string
|
|
568
628
|
priceDecimals: number
|
|
569
629
|
status: PrimarySaleContractStatus
|
|
@@ -584,7 +644,11 @@ export interface PrimarySaleItem {
|
|
|
584
644
|
priceDecimals: number
|
|
585
645
|
priceAmount: string
|
|
586
646
|
priceAmountFormatted: string
|
|
647
|
+
priceUsd: number
|
|
648
|
+
priceUsdFormatted: string
|
|
587
649
|
supply: string
|
|
650
|
+
supplyCap: string
|
|
651
|
+
unlimitedSupply: boolean
|
|
588
652
|
createdAt: string
|
|
589
653
|
updatedAt: string
|
|
590
654
|
deletedAt?: string
|
|
@@ -786,6 +850,17 @@ export interface Marketplace {
|
|
|
786
850
|
headers?: object,
|
|
787
851
|
signal?: AbortSignal
|
|
788
852
|
): Promise<ListOffersForCollectibleReturn>
|
|
853
|
+
listOrdersWithCollectibles(
|
|
854
|
+
args: ListOrdersWithCollectiblesArgs,
|
|
855
|
+
headers?: object,
|
|
856
|
+
signal?: AbortSignal
|
|
857
|
+
): Promise<ListOrdersWithCollectiblesReturn>
|
|
858
|
+
getCountOfAllOrders(args: GetCountOfAllOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfAllOrdersReturn>
|
|
859
|
+
getCountOfFilteredOrders(
|
|
860
|
+
args: GetCountOfFilteredOrdersArgs,
|
|
861
|
+
headers?: object,
|
|
862
|
+
signal?: AbortSignal
|
|
863
|
+
): Promise<GetCountOfFilteredOrdersReturn>
|
|
789
864
|
listListings(args: ListListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsReturn>
|
|
790
865
|
listOffers(args: ListOffersArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersReturn>
|
|
791
866
|
getCountOfListingsForCollectible(
|
|
@@ -875,7 +950,7 @@ export interface Marketplace {
|
|
|
875
950
|
signal?: AbortSignal
|
|
876
951
|
): Promise<GenerateCancelTransactionReturn>
|
|
877
952
|
/**
|
|
878
|
-
* only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market
|
|
953
|
+
* only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market, use onlyu ExecuteInput and leave other inputs empty, they are depracated and kept only for backward compatibility
|
|
879
954
|
*/
|
|
880
955
|
execute(args: ExecuteArgs, headers?: object, signal?: AbortSignal): Promise<ExecuteReturn>
|
|
881
956
|
/**
|
|
@@ -1032,6 +1107,37 @@ export interface ListOffersForCollectibleReturn {
|
|
|
1032
1107
|
offers: Array<Order>
|
|
1033
1108
|
page?: Page
|
|
1034
1109
|
}
|
|
1110
|
+
export interface ListOrdersWithCollectiblesArgs {
|
|
1111
|
+
chainId: string
|
|
1112
|
+
side: OrderSide
|
|
1113
|
+
contractAddress: string
|
|
1114
|
+
filter?: OrdersFilter
|
|
1115
|
+
page?: Page
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export interface ListOrdersWithCollectiblesReturn {
|
|
1119
|
+
collectibles: Array<CollectibleOrder>
|
|
1120
|
+
page?: Page
|
|
1121
|
+
}
|
|
1122
|
+
export interface GetCountOfAllOrdersArgs {
|
|
1123
|
+
chainId: string
|
|
1124
|
+
side: OrderSide
|
|
1125
|
+
contractAddress: string
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
export interface GetCountOfAllOrdersReturn {
|
|
1129
|
+
count: number
|
|
1130
|
+
}
|
|
1131
|
+
export interface GetCountOfFilteredOrdersArgs {
|
|
1132
|
+
chainId: string
|
|
1133
|
+
side: OrderSide
|
|
1134
|
+
contractAddress: string
|
|
1135
|
+
filter?: OrdersFilter
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
export interface GetCountOfFilteredOrdersReturn {
|
|
1139
|
+
count: number
|
|
1140
|
+
}
|
|
1035
1141
|
export interface ListListingsArgs {
|
|
1036
1142
|
chainId: string
|
|
1037
1143
|
contractAddress: string
|
|
@@ -1171,6 +1277,7 @@ export interface GenerateListingTransactionArgs {
|
|
|
1171
1277
|
contractType: ContractType
|
|
1172
1278
|
orderbook: OrderbookKind
|
|
1173
1279
|
listing: CreateReq
|
|
1280
|
+
additionalFees: Array<AdditionalFee>
|
|
1174
1281
|
walletType?: WalletKind
|
|
1175
1282
|
}
|
|
1176
1283
|
|
|
@@ -1184,7 +1291,9 @@ export interface GenerateOfferTransactionArgs {
|
|
|
1184
1291
|
contractType: ContractType
|
|
1185
1292
|
orderbook: OrderbookKind
|
|
1186
1293
|
offer: CreateReq
|
|
1294
|
+
additionalFees: Array<AdditionalFee>
|
|
1187
1295
|
walletType?: WalletKind
|
|
1296
|
+
offerType: OfferType
|
|
1188
1297
|
}
|
|
1189
1298
|
|
|
1190
1299
|
export interface GenerateOfferTransactionReturn {
|
|
@@ -1202,6 +1311,7 @@ export interface GenerateCancelTransactionReturn {
|
|
|
1202
1311
|
steps: Array<Step>
|
|
1203
1312
|
}
|
|
1204
1313
|
export interface ExecuteArgs {
|
|
1314
|
+
params: ExecuteInput
|
|
1205
1315
|
chainId: string
|
|
1206
1316
|
signature: string
|
|
1207
1317
|
method: string
|
|
@@ -1784,6 +1894,64 @@ export class Marketplace implements Marketplace {
|
|
|
1784
1894
|
)
|
|
1785
1895
|
}
|
|
1786
1896
|
|
|
1897
|
+
listOrdersWithCollectibles = (
|
|
1898
|
+
args: ListOrdersWithCollectiblesArgs,
|
|
1899
|
+
headers?: object,
|
|
1900
|
+
signal?: AbortSignal
|
|
1901
|
+
): Promise<ListOrdersWithCollectiblesReturn> => {
|
|
1902
|
+
return this.fetch(this.url('ListOrdersWithCollectibles'), createHTTPRequest(args, headers, signal)).then(
|
|
1903
|
+
res => {
|
|
1904
|
+
return buildResponse(res).then(_data => {
|
|
1905
|
+
return {
|
|
1906
|
+
collectibles: <Array<CollectibleOrder>>_data.collectibles,
|
|
1907
|
+
page: <Page>_data.page
|
|
1908
|
+
}
|
|
1909
|
+
})
|
|
1910
|
+
},
|
|
1911
|
+
error => {
|
|
1912
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1913
|
+
}
|
|
1914
|
+
)
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
getCountOfAllOrders = (
|
|
1918
|
+
args: GetCountOfAllOrdersArgs,
|
|
1919
|
+
headers?: object,
|
|
1920
|
+
signal?: AbortSignal
|
|
1921
|
+
): Promise<GetCountOfAllOrdersReturn> => {
|
|
1922
|
+
return this.fetch(this.url('GetCountOfAllOrders'), createHTTPRequest(args, headers, signal)).then(
|
|
1923
|
+
res => {
|
|
1924
|
+
return buildResponse(res).then(_data => {
|
|
1925
|
+
return {
|
|
1926
|
+
count: <number>_data.count
|
|
1927
|
+
}
|
|
1928
|
+
})
|
|
1929
|
+
},
|
|
1930
|
+
error => {
|
|
1931
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1932
|
+
}
|
|
1933
|
+
)
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
getCountOfFilteredOrders = (
|
|
1937
|
+
args: GetCountOfFilteredOrdersArgs,
|
|
1938
|
+
headers?: object,
|
|
1939
|
+
signal?: AbortSignal
|
|
1940
|
+
): Promise<GetCountOfFilteredOrdersReturn> => {
|
|
1941
|
+
return this.fetch(this.url('GetCountOfFilteredOrders'), createHTTPRequest(args, headers, signal)).then(
|
|
1942
|
+
res => {
|
|
1943
|
+
return buildResponse(res).then(_data => {
|
|
1944
|
+
return {
|
|
1945
|
+
count: <number>_data.count
|
|
1946
|
+
}
|
|
1947
|
+
})
|
|
1948
|
+
},
|
|
1949
|
+
error => {
|
|
1950
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1951
|
+
}
|
|
1952
|
+
)
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1787
1955
|
listListings = (args: ListListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListListingsReturn> => {
|
|
1788
1956
|
return this.fetch(this.url('ListListings'), createHTTPRequest(args, headers, signal)).then(
|
|
1789
1957
|
res => {
|