@0xsequence/metadata 0.0.0-2021827201516 → 0.0.0-20220418165517
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/0xsequence-metadata.cjs.dev.js +4 -4
- package/dist/0xsequence-metadata.cjs.prod.js +4 -4
- package/dist/0xsequence-metadata.esm.js +4 -4
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/metadata.gen.d.ts +6 -2
- package/package.json +2 -2
- package/src/index.ts +2 -2
- package/src/metadata.gen.ts +7 -3
- package/CHANGELOG.md +0 -6
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-metadata v0.4.0
|
|
30
|
+
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -210,8 +210,8 @@ const buildResponse = res => {
|
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
class SequenceMetadataClient extends Metadata {
|
|
213
|
-
constructor(hostname) {
|
|
214
|
-
super(hostname, fetch__default[
|
|
213
|
+
constructor(hostname = 'https://metadata.sequence.app') {
|
|
214
|
+
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch__default["default"]);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
}
|
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-metadata v0.4.0
|
|
30
|
+
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -210,8 +210,8 @@ const buildResponse = res => {
|
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
class SequenceMetadataClient extends Metadata {
|
|
213
|
-
constructor(hostname) {
|
|
214
|
-
super(hostname, fetch__default[
|
|
213
|
+
constructor(hostname = 'https://metadata.sequence.app') {
|
|
214
|
+
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch__default["default"]);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
}
|
|
@@ -19,7 +19,7 @@ function _extends() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* eslint-disable */
|
|
22
|
-
// sequence-metadata v0.4.0
|
|
22
|
+
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
|
|
23
23
|
// --
|
|
24
24
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
25
25
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -28,7 +28,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
28
28
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
30
30
|
|
|
31
|
-
const WebRPCSchemaHash = "
|
|
31
|
+
const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -202,8 +202,8 @@ const buildResponse = res => {
|
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
class SequenceMetadataClient extends Metadata {
|
|
205
|
-
constructor(hostname) {
|
|
206
|
-
super(hostname, fetch);
|
|
205
|
+
constructor(hostname = 'https://metadata.sequence.app') {
|
|
206
|
+
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767";
|
|
4
4
|
export declare enum SwapType {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
BUY = "BUY",
|
|
@@ -29,7 +29,7 @@ export interface ContractInfo {
|
|
|
29
29
|
name: string;
|
|
30
30
|
type: string;
|
|
31
31
|
symbol: string;
|
|
32
|
-
decimals
|
|
32
|
+
decimals?: number;
|
|
33
33
|
logoURI: string;
|
|
34
34
|
extensions: ContractInfoExtensions;
|
|
35
35
|
}
|
|
@@ -39,6 +39,7 @@ export interface ContractInfoExtensions {
|
|
|
39
39
|
ogImage: string;
|
|
40
40
|
originChainId: number;
|
|
41
41
|
originAddress: string;
|
|
42
|
+
blacklist: boolean;
|
|
42
43
|
}
|
|
43
44
|
export interface TokenMetadata {
|
|
44
45
|
tokenId: string;
|
|
@@ -50,9 +51,12 @@ export interface TokenMetadata {
|
|
|
50
51
|
properties: {
|
|
51
52
|
[key: string]: any;
|
|
52
53
|
};
|
|
54
|
+
video: string;
|
|
55
|
+
audio: string;
|
|
53
56
|
image_data: string;
|
|
54
57
|
external_url: string;
|
|
55
58
|
background_color: string;
|
|
59
|
+
animation_url: string;
|
|
56
60
|
attributes: Array<{
|
|
57
61
|
[key: string]: any;
|
|
58
62
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/metadata",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20220418165517",
|
|
4
4
|
"description": "metadata sub-package for Sequence",
|
|
5
5
|
"repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/metadata",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"cross-fetch": "^3.1.
|
|
16
|
+
"cross-fetch": "^3.1.5"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {},
|
|
19
19
|
"devDependencies": {},
|
package/src/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import fetch from 'cross-fetch'
|
|
|
5
5
|
import { Metadata as BaseSequenceMetadata } from './metadata.gen'
|
|
6
6
|
|
|
7
7
|
export class SequenceMetadataClient extends BaseSequenceMetadata {
|
|
8
|
-
constructor(hostname: string) {
|
|
9
|
-
super(hostname, fetch)
|
|
8
|
+
constructor(hostname: string = 'https://metadata.sequence.app') {
|
|
9
|
+
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch)
|
|
10
10
|
}
|
|
11
11
|
}
|
package/src/metadata.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-metadata v0.4.0
|
|
2
|
+
// sequence-metadata v0.4.0 eaaa99d70565871556a53333df1c49d28c8be767
|
|
3
3
|
// --
|
|
4
4
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
5
5
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -11,7 +11,7 @@ export const WebRPCVersion = "v1"
|
|
|
11
11
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
12
12
|
|
|
13
13
|
// Schema hash generated from your RIDL schema
|
|
14
|
-
export const WebRPCSchemaHash = "
|
|
14
|
+
export const WebRPCSchemaHash = "eaaa99d70565871556a53333df1c49d28c8be767"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -49,7 +49,7 @@ export interface ContractInfo {
|
|
|
49
49
|
name: string
|
|
50
50
|
type: string
|
|
51
51
|
symbol: string
|
|
52
|
-
decimals
|
|
52
|
+
decimals?: number
|
|
53
53
|
logoURI: string
|
|
54
54
|
extensions: ContractInfoExtensions
|
|
55
55
|
}
|
|
@@ -60,6 +60,7 @@ export interface ContractInfoExtensions {
|
|
|
60
60
|
ogImage: string
|
|
61
61
|
originChainId: number
|
|
62
62
|
originAddress: string
|
|
63
|
+
blacklist: boolean
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export interface TokenMetadata {
|
|
@@ -70,9 +71,12 @@ export interface TokenMetadata {
|
|
|
70
71
|
image: string
|
|
71
72
|
decimals: number
|
|
72
73
|
properties: {[key: string]: any}
|
|
74
|
+
video: string
|
|
75
|
+
audio: string
|
|
73
76
|
image_data: string
|
|
74
77
|
external_url: string
|
|
75
78
|
background_color: string
|
|
79
|
+
animation_url: string
|
|
76
80
|
attributes: Array<{[key: string]: any}>
|
|
77
81
|
}
|
|
78
82
|
|