@0xsequence/metadata 1.4.7 → 1.4.9
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.
|
@@ -270,7 +270,7 @@ const buildResponse = res => {
|
|
|
270
270
|
};
|
|
271
271
|
|
|
272
272
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
273
|
-
class
|
|
273
|
+
class SequenceMetadata extends Metadata {
|
|
274
274
|
constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
|
|
275
275
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
276
276
|
this._fetch = (input, init) => {
|
|
@@ -299,7 +299,7 @@ class SequenceMetadataClient extends Metadata {
|
|
|
299
299
|
exports.ContractType = ContractType;
|
|
300
300
|
exports.Metadata = Metadata;
|
|
301
301
|
exports.PropertyType = PropertyType;
|
|
302
|
-
exports.
|
|
302
|
+
exports.SequenceMetadata = SequenceMetadata;
|
|
303
303
|
exports.SortOrder = SortOrder;
|
|
304
304
|
exports.SwapType = SwapType;
|
|
305
305
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
@@ -270,7 +270,7 @@ const buildResponse = res => {
|
|
|
270
270
|
};
|
|
271
271
|
|
|
272
272
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
273
|
-
class
|
|
273
|
+
class SequenceMetadata extends Metadata {
|
|
274
274
|
constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
|
|
275
275
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
276
276
|
this._fetch = (input, init) => {
|
|
@@ -299,7 +299,7 @@ class SequenceMetadataClient extends Metadata {
|
|
|
299
299
|
exports.ContractType = ContractType;
|
|
300
300
|
exports.Metadata = Metadata;
|
|
301
301
|
exports.PropertyType = PropertyType;
|
|
302
|
-
exports.
|
|
302
|
+
exports.SequenceMetadata = SequenceMetadata;
|
|
303
303
|
exports.SortOrder = SortOrder;
|
|
304
304
|
exports.SwapType = SwapType;
|
|
305
305
|
exports.WebRPCSchemaHash = WebRPCSchemaHash;
|
|
@@ -266,7 +266,7 @@ const buildResponse = res => {
|
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
const fetch = typeof global === 'object' ? global.fetch : window.fetch;
|
|
269
|
-
class
|
|
269
|
+
class SequenceMetadata extends Metadata {
|
|
270
270
|
constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
|
|
271
271
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
272
272
|
this._fetch = (input, init) => {
|
|
@@ -292,4 +292,4 @@ class SequenceMetadataClient extends Metadata {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
export { ContractType, Metadata, PropertyType,
|
|
295
|
+
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
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,
|