@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 ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2
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 = 'ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2';
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 ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2
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 = 'ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2';
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 ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2
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 = 'ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2';
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 = "ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2";
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: string;
99
- image: string;
100
- video: string;
101
- audio: string;
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: string;
109
- external_url: string;
110
- background_color: string;
111
- animation_url: string;
108
+ image_data?: string;
109
+ external_url?: string;
110
+ background_color?: string;
111
+ animation_url?: string;
112
112
  decimals?: number;
113
- updatedAt: string;
113
+ updatedAt?: string;
114
114
  assets?: Array<Asset>;
115
115
  }
116
116
  export interface PropertyFilter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/metadata",
3
- "version": "1.9.9",
3
+ "version": "1.9.10",
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",
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
+ }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- // sequence-metadata v0.4.0 ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2
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 = 'ae7e843bd6e50f2634c3f663d49c5c7d1678c2b2'
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: string
122
- image: string
123
- video: string
124
- audio: string
125
- properties: { [key: string]: any }
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: string
128
- external_url: string
129
- background_color: string
130
- animation_url: string
127
+ image_data?: string
128
+ external_url?: string
129
+ background_color?: string
130
+ animation_url?: string
131
131
  decimals?: number
132
- updatedAt: string
132
+ updatedAt?: string
133
133
  assets?: Array<Asset>
134
134
  }
135
135