@0xsequence/metadata 1.9.9 → 1.9.10
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.
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-metadata v0.4.0
|
|
21
|
+
// sequence-metadata v0.4.0 b7b940d2801967e99878867d2fac3f35a6556bb8
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = 'v1';
|
|
|
31
31
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = '
|
|
34
|
+
const WebRPCSchemaHash = 'b7b940d2801967e99878867d2fac3f35a6556bb8';
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-metadata v0.4.0
|
|
21
|
+
// sequence-metadata v0.4.0 b7b940d2801967e99878867d2fac3f35a6556bb8
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = 'v1';
|
|
|
31
31
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = '
|
|
34
|
+
const WebRPCSchemaHash = 'b7b940d2801967e99878867d2fac3f35a6556bb8';
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -14,7 +14,7 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* eslint-disable */
|
|
17
|
-
// sequence-metadata v0.4.0
|
|
17
|
+
// sequence-metadata v0.4.0 b7b940d2801967e99878867d2fac3f35a6556bb8
|
|
18
18
|
// --
|
|
19
19
|
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
|
|
20
20
|
//
|
|
@@ -27,7 +27,7 @@ const WebRPCVersion = 'v1';
|
|
|
27
27
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
28
28
|
|
|
29
29
|
// Schema hash generated from your RIDL schema
|
|
30
|
-
const WebRPCSchemaHash = '
|
|
30
|
+
const WebRPCSchemaHash = 'b7b940d2801967e99878867d2fac3f35a6556bb8';
|
|
31
31
|
|
|
32
32
|
//
|
|
33
33
|
// Types
|
|
@@ -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 = "b7b940d2801967e99878867d2fac3f35a6556bb8";
|
|
4
4
|
export declare enum ContractType {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
ERC20 = "ERC20",
|
|
@@ -95,22 +95,22 @@ export interface ContractInfoExtensions {
|
|
|
95
95
|
export interface TokenMetadata {
|
|
96
96
|
tokenId: string;
|
|
97
97
|
name: string;
|
|
98
|
-
description
|
|
99
|
-
image
|
|
100
|
-
video
|
|
101
|
-
audio
|
|
102
|
-
properties
|
|
98
|
+
description?: string;
|
|
99
|
+
image?: string;
|
|
100
|
+
video?: string;
|
|
101
|
+
audio?: string;
|
|
102
|
+
properties?: {
|
|
103
103
|
[key: string]: any;
|
|
104
104
|
};
|
|
105
105
|
attributes: Array<{
|
|
106
106
|
[key: string]: any;
|
|
107
107
|
}>;
|
|
108
|
-
image_data
|
|
109
|
-
external_url
|
|
110
|
-
background_color
|
|
111
|
-
animation_url
|
|
108
|
+
image_data?: string;
|
|
109
|
+
external_url?: string;
|
|
110
|
+
background_color?: string;
|
|
111
|
+
animation_url?: string;
|
|
112
112
|
decimals?: number;
|
|
113
|
-
updatedAt
|
|
113
|
+
updatedAt?: string;
|
|
114
114
|
assets?: Array<Asset>;
|
|
115
115
|
}
|
|
116
116
|
export interface PropertyFilter {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export * from './metadata.gen'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
Metadata as MetadataRpc,
|
|
5
|
-
Collections as CollectionsRpc,
|
|
6
|
-
} from './metadata.gen'
|
|
3
|
+
import { Metadata as MetadataRpc, Collections as CollectionsRpc } from './metadata.gen'
|
|
7
4
|
|
|
8
5
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch
|
|
9
6
|
|
|
@@ -68,4 +65,4 @@ export class SequenceCollections extends CollectionsRpc {
|
|
|
68
65
|
|
|
69
66
|
// TODO: add uploadAsset() method similar to,
|
|
70
67
|
// https://github.com/0xsequence/go-sequence/blob/master/metadata/collections.go#L52
|
|
71
|
-
}
|
|
68
|
+
}
|
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 b7b940d2801967e99878867d2fac3f35a6556bb8
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.14.0-dev with typescript@v0.10.0 generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -12,7 +12,7 @@ export const WebRPCVersion = 'v1'
|
|
|
12
12
|
export const WebRPCSchemaVersion = 'v0.4.0'
|
|
13
13
|
|
|
14
14
|
// Schema hash generated from your RIDL schema
|
|
15
|
-
export const WebRPCSchemaHash = '
|
|
15
|
+
export const WebRPCSchemaHash = 'b7b940d2801967e99878867d2fac3f35a6556bb8'
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Types
|
|
@@ -118,18 +118,18 @@ export interface ContractInfoExtensions {
|
|
|
118
118
|
export interface TokenMetadata {
|
|
119
119
|
tokenId: string
|
|
120
120
|
name: string
|
|
121
|
-
description
|
|
122
|
-
image
|
|
123
|
-
video
|
|
124
|
-
audio
|
|
125
|
-
properties
|
|
121
|
+
description?: string
|
|
122
|
+
image?: string
|
|
123
|
+
video?: string
|
|
124
|
+
audio?: string
|
|
125
|
+
properties?: { [key: string]: any }
|
|
126
126
|
attributes: Array<{ [key: string]: any }>
|
|
127
|
-
image_data
|
|
128
|
-
external_url
|
|
129
|
-
background_color
|
|
130
|
-
animation_url
|
|
127
|
+
image_data?: string
|
|
128
|
+
external_url?: string
|
|
129
|
+
background_color?: string
|
|
130
|
+
animation_url?: string
|
|
131
131
|
decimals?: number
|
|
132
|
-
updatedAt
|
|
132
|
+
updatedAt?: string
|
|
133
133
|
assets?: Array<Asset>
|
|
134
134
|
}
|
|
135
135
|
|