@0xsequence/metadata 0.0.0-20231124154549 → 0.0.0-20231129165039
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.
|
@@ -261,7 +261,7 @@ const buildResponse = res => {
|
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
264
|
-
class
|
|
264
|
+
class SequenceMetadata extends Metadata {
|
|
265
265
|
constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
|
|
266
266
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
267
267
|
this._fetch = (input, init) => {
|
|
@@ -290,7 +290,7 @@ class SequenceMetadataClient extends Metadata {
|
|
|
290
290
|
exports.ContractType = ContractType;
|
|
291
291
|
exports.Metadata = Metadata;
|
|
292
292
|
exports.PropertyType = PropertyType;
|
|
293
|
-
exports.
|
|
293
|
+
exports.SequenceMetadata = SequenceMetadata;
|
|
294
294
|
exports.SortOrder = SortOrder;
|
|
295
295
|
exports.SwapType = SwapType;
|
|
296
296
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
@@ -261,7 +261,7 @@ const buildResponse = res => {
|
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
264
|
-
class
|
|
264
|
+
class SequenceMetadata extends Metadata {
|
|
265
265
|
constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
|
|
266
266
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
267
267
|
this._fetch = (input, init) => {
|
|
@@ -290,7 +290,7 @@ class SequenceMetadataClient extends Metadata {
|
|
|
290
290
|
exports.ContractType = ContractType;
|
|
291
291
|
exports.Metadata = Metadata;
|
|
292
292
|
exports.PropertyType = PropertyType;
|
|
293
|
-
exports.
|
|
293
|
+
exports.SequenceMetadata = SequenceMetadata;
|
|
294
294
|
exports.SortOrder = SortOrder;
|
|
295
295
|
exports.SwapType = SwapType;
|
|
296
296
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
@@ -257,7 +257,7 @@ const buildResponse = res => {
|
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
260
|
-
class
|
|
260
|
+
class SequenceMetadata extends Metadata {
|
|
261
261
|
constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
|
|
262
262
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
263
263
|
this._fetch = (input, init) => {
|
|
@@ -283,4 +283,4 @@ class SequenceMetadataClient extends Metadata {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
export { ContractType, Metadata, PropertyType,
|
|
286
|
+
export { ContractType, Metadata, PropertyType, SequenceMetadata, SortOrder, SwapType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./metadata.gen.js";
|
|
2
2
|
import { Metadata as MetadataRpc } from "./metadata.gen.js";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SequenceMetadata extends MetadataRpc {
|
|
4
4
|
projectAccessKey?: string | undefined;
|
|
5
5
|
jwtAuth?: string | undefined;
|
|
6
6
|
constructor(hostname?: string, projectAccessKey?: string | undefined, jwtAuth?: string | undefined);
|
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-20231129165039",
|
|
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
|
@@ -4,7 +4,7 @@ import { Metadata as MetadataRpc } from './metadata.gen'
|
|
|
4
4
|
|
|
5
5
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch
|
|
6
6
|
|
|
7
|
-
export class
|
|
7
|
+
export class SequenceMetadata extends MetadataRpc {
|
|
8
8
|
constructor(
|
|
9
9
|
hostname: string = 'https://metadata.sequence.app',
|
|
10
10
|
public projectAccessKey?: string,
|