@0xsequence/indexer
Advanced tools
Comparing version 0.36.4 to 0.36.5
@@ -241,5 +241,14 @@ 'use strict'; | ||
exports.SequenceIndexerServices = void 0; | ||
(function (SequenceIndexerServices) { | ||
SequenceIndexerServices["MAINNET"] = "https://mainnet-indexer.sequence.app"; | ||
SequenceIndexerServices["POLYGON"] = "https://polygon-indexer.sequence.app"; | ||
SequenceIndexerServices["RINKEBY"] = "https://rinkeby-indexer.sequence.app"; | ||
SequenceIndexerServices["POLYGON_MUMBAI"] = "https://mumbai-indexer.sequence.app"; | ||
})(exports.SequenceIndexerServices || (exports.SequenceIndexerServices = {})); | ||
class SequenceIndexerClient extends Indexer { | ||
constructor(hostname, jwtAuth) { | ||
super(hostname, fetch__default["default"]); | ||
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch__default["default"]); | ||
this.jwtAuth = jwtAuth; | ||
@@ -246,0 +255,0 @@ |
@@ -241,5 +241,14 @@ 'use strict'; | ||
exports.SequenceIndexerServices = void 0; | ||
(function (SequenceIndexerServices) { | ||
SequenceIndexerServices["MAINNET"] = "https://mainnet-indexer.sequence.app"; | ||
SequenceIndexerServices["POLYGON"] = "https://polygon-indexer.sequence.app"; | ||
SequenceIndexerServices["RINKEBY"] = "https://rinkeby-indexer.sequence.app"; | ||
SequenceIndexerServices["POLYGON_MUMBAI"] = "https://mumbai-indexer.sequence.app"; | ||
})(exports.SequenceIndexerServices || (exports.SequenceIndexerServices = {})); | ||
class SequenceIndexerClient extends Indexer { | ||
constructor(hostname, jwtAuth) { | ||
super(hostname, fetch__default["default"]); | ||
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch__default["default"]); | ||
this.jwtAuth = jwtAuth; | ||
@@ -246,0 +255,0 @@ |
@@ -233,5 +233,14 @@ import fetch from 'cross-fetch'; | ||
let SequenceIndexerServices; | ||
(function (SequenceIndexerServices) { | ||
SequenceIndexerServices["MAINNET"] = "https://mainnet-indexer.sequence.app"; | ||
SequenceIndexerServices["POLYGON"] = "https://polygon-indexer.sequence.app"; | ||
SequenceIndexerServices["RINKEBY"] = "https://rinkeby-indexer.sequence.app"; | ||
SequenceIndexerServices["POLYGON_MUMBAI"] = "https://mumbai-indexer.sequence.app"; | ||
})(SequenceIndexerServices || (SequenceIndexerServices = {})); | ||
class SequenceIndexerClient extends Indexer { | ||
constructor(hostname, jwtAuth) { | ||
super(hostname, fetch); | ||
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch); | ||
this.jwtAuth = jwtAuth; | ||
@@ -258,2 +267,2 @@ | ||
export { ContractType, EventLogDataType, EventLogType, Indexer, SequenceIndexerClient, SortOrder, TxnTransferType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion }; | ||
export { ContractType, EventLogDataType, EventLogType, Indexer, SequenceIndexerClient, SequenceIndexerServices, SortOrder, TxnTransferType, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion }; |
export * from './indexer.gen'; | ||
import { Indexer as BaseSequenceIndexer } from './indexer.gen'; | ||
export declare enum SequenceIndexerServices { | ||
MAINNET = "https://mainnet-indexer.sequence.app", | ||
POLYGON = "https://polygon-indexer.sequence.app", | ||
RINKEBY = "https://rinkeby-indexer.sequence.app", | ||
POLYGON_MUMBAI = "https://mumbai-indexer.sequence.app" | ||
} | ||
export declare class SequenceIndexerClient extends BaseSequenceIndexer { | ||
@@ -4,0 +10,0 @@ jwtAuth?: string | undefined; |
{ | ||
"name": "@0xsequence/indexer", | ||
"version": "0.36.4", | ||
"version": "0.36.5", | ||
"description": "indexer sub-package for Sequence", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/indexer", |
@@ -7,5 +7,13 @@ export * from './indexer.gen' | ||
export enum SequenceIndexerServices { | ||
MAINNET = 'https://mainnet-indexer.sequence.app', | ||
POLYGON = 'https://polygon-indexer.sequence.app', | ||
RINKEBY = 'https://rinkeby-indexer.sequence.app', | ||
POLYGON_MUMBAI = 'https://mumbai-indexer.sequence.app' | ||
} | ||
export class SequenceIndexerClient extends BaseSequenceIndexer { | ||
constructor(hostname: string, public jwtAuth?: string) { | ||
super(hostname, fetch) | ||
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch) | ||
this.fetch = this._fetch | ||
@@ -12,0 +20,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43846
1365