@0xsequence/metadata 0.43.33 → 1.0.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.
|
@@ -37,38 +37,36 @@ const WebRPCSchemaHash = "5d87d77b951c5d197544d97d75241bf3d02679d9";
|
|
|
37
37
|
// Types
|
|
38
38
|
//
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
(function (ContractType) {
|
|
40
|
+
let ContractType = /*#__PURE__*/function (ContractType) {
|
|
42
41
|
ContractType["UNKNOWN"] = "UNKNOWN";
|
|
43
42
|
ContractType["ERC20"] = "ERC20";
|
|
44
43
|
ContractType["ERC721"] = "ERC721";
|
|
45
44
|
ContractType["ERC1155"] = "ERC1155";
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
return ContractType;
|
|
46
|
+
}({});
|
|
47
|
+
let PropertyType = /*#__PURE__*/function (PropertyType) {
|
|
49
48
|
PropertyType["INT"] = "INT";
|
|
50
49
|
PropertyType["STRING"] = "STRING";
|
|
51
50
|
PropertyType["ARRAY"] = "ARRAY";
|
|
52
51
|
PropertyType["GENERIC"] = "GENERIC";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return PropertyType;
|
|
53
|
+
}({});
|
|
54
|
+
let SwapType = /*#__PURE__*/function (SwapType) {
|
|
56
55
|
SwapType["UNKNOWN"] = "UNKNOWN";
|
|
57
56
|
SwapType["BUY"] = "BUY";
|
|
58
57
|
SwapType["SELL"] = "SELL";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
return SwapType;
|
|
59
|
+
}({});
|
|
60
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
62
61
|
SortOrder["DESC"] = "DESC";
|
|
63
62
|
SortOrder["ASC"] = "ASC";
|
|
64
|
-
|
|
63
|
+
return SortOrder;
|
|
64
|
+
}({});
|
|
65
65
|
//
|
|
66
66
|
// Client
|
|
67
67
|
//
|
|
68
68
|
class Metadata {
|
|
69
69
|
constructor(hostname, fetch) {
|
|
70
|
-
this.hostname = void 0;
|
|
71
|
-
this.fetch = void 0;
|
|
72
70
|
this.path = '/rpc/Metadata/';
|
|
73
71
|
this.ping = headers => {
|
|
74
72
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -269,8 +267,12 @@ class SequenceMetadataClient extends Metadata {
|
|
|
269
267
|
}
|
|
270
268
|
}
|
|
271
269
|
|
|
270
|
+
exports.ContractType = ContractType;
|
|
272
271
|
exports.Metadata = Metadata;
|
|
272
|
+
exports.PropertyType = PropertyType;
|
|
273
273
|
exports.SequenceMetadataClient = SequenceMetadataClient;
|
|
274
|
+
exports.SortOrder = SortOrder;
|
|
275
|
+
exports.SwapType = SwapType;
|
|
274
276
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
275
277
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
276
278
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -37,38 +37,36 @@ const WebRPCSchemaHash = "5d87d77b951c5d197544d97d75241bf3d02679d9";
|
|
|
37
37
|
// Types
|
|
38
38
|
//
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
(function (ContractType) {
|
|
40
|
+
let ContractType = /*#__PURE__*/function (ContractType) {
|
|
42
41
|
ContractType["UNKNOWN"] = "UNKNOWN";
|
|
43
42
|
ContractType["ERC20"] = "ERC20";
|
|
44
43
|
ContractType["ERC721"] = "ERC721";
|
|
45
44
|
ContractType["ERC1155"] = "ERC1155";
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
return ContractType;
|
|
46
|
+
}({});
|
|
47
|
+
let PropertyType = /*#__PURE__*/function (PropertyType) {
|
|
49
48
|
PropertyType["INT"] = "INT";
|
|
50
49
|
PropertyType["STRING"] = "STRING";
|
|
51
50
|
PropertyType["ARRAY"] = "ARRAY";
|
|
52
51
|
PropertyType["GENERIC"] = "GENERIC";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return PropertyType;
|
|
53
|
+
}({});
|
|
54
|
+
let SwapType = /*#__PURE__*/function (SwapType) {
|
|
56
55
|
SwapType["UNKNOWN"] = "UNKNOWN";
|
|
57
56
|
SwapType["BUY"] = "BUY";
|
|
58
57
|
SwapType["SELL"] = "SELL";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
return SwapType;
|
|
59
|
+
}({});
|
|
60
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
62
61
|
SortOrder["DESC"] = "DESC";
|
|
63
62
|
SortOrder["ASC"] = "ASC";
|
|
64
|
-
|
|
63
|
+
return SortOrder;
|
|
64
|
+
}({});
|
|
65
65
|
//
|
|
66
66
|
// Client
|
|
67
67
|
//
|
|
68
68
|
class Metadata {
|
|
69
69
|
constructor(hostname, fetch) {
|
|
70
|
-
this.hostname = void 0;
|
|
71
|
-
this.fetch = void 0;
|
|
72
70
|
this.path = '/rpc/Metadata/';
|
|
73
71
|
this.ping = headers => {
|
|
74
72
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
|
@@ -269,8 +267,12 @@ class SequenceMetadataClient extends Metadata {
|
|
|
269
267
|
}
|
|
270
268
|
}
|
|
271
269
|
|
|
270
|
+
exports.ContractType = ContractType;
|
|
272
271
|
exports.Metadata = Metadata;
|
|
272
|
+
exports.PropertyType = PropertyType;
|
|
273
273
|
exports.SequenceMetadataClient = SequenceMetadataClient;
|
|
274
|
+
exports.SortOrder = SortOrder;
|
|
275
|
+
exports.SwapType = SwapType;
|
|
274
276
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
275
277
|
exports.WebRPCSchemaVersion = WebRPCSchemaVersion;
|
|
276
278
|
exports.WebRPCVersion = WebRPCVersion;
|
|
@@ -33,38 +33,36 @@ const WebRPCSchemaHash = "5d87d77b951c5d197544d97d75241bf3d02679d9";
|
|
|
33
33
|
// Types
|
|
34
34
|
//
|
|
35
35
|
|
|
36
|
-
let ContractType
|
|
37
|
-
(function (ContractType) {
|
|
36
|
+
let ContractType = /*#__PURE__*/function (ContractType) {
|
|
38
37
|
ContractType["UNKNOWN"] = "UNKNOWN";
|
|
39
38
|
ContractType["ERC20"] = "ERC20";
|
|
40
39
|
ContractType["ERC721"] = "ERC721";
|
|
41
40
|
ContractType["ERC1155"] = "ERC1155";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
return ContractType;
|
|
42
|
+
}({});
|
|
43
|
+
let PropertyType = /*#__PURE__*/function (PropertyType) {
|
|
45
44
|
PropertyType["INT"] = "INT";
|
|
46
45
|
PropertyType["STRING"] = "STRING";
|
|
47
46
|
PropertyType["ARRAY"] = "ARRAY";
|
|
48
47
|
PropertyType["GENERIC"] = "GENERIC";
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
return PropertyType;
|
|
49
|
+
}({});
|
|
50
|
+
let SwapType = /*#__PURE__*/function (SwapType) {
|
|
52
51
|
SwapType["UNKNOWN"] = "UNKNOWN";
|
|
53
52
|
SwapType["BUY"] = "BUY";
|
|
54
53
|
SwapType["SELL"] = "SELL";
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
return SwapType;
|
|
55
|
+
}({});
|
|
56
|
+
let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
58
57
|
SortOrder["DESC"] = "DESC";
|
|
59
58
|
SortOrder["ASC"] = "ASC";
|
|
60
|
-
|
|
59
|
+
return SortOrder;
|
|
60
|
+
}({});
|
|
61
61
|
//
|
|
62
62
|
// Client
|
|
63
63
|
//
|
|
64
64
|
class Metadata {
|
|
65
65
|
constructor(hostname, fetch) {
|
|
66
|
-
this.hostname = void 0;
|
|
67
|
-
this.fetch = void 0;
|
|
68
66
|
this.path = '/rpc/Metadata/';
|
|
69
67
|
this.ping = headers => {
|
|
70
68
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
|
package/package.json
CHANGED