Compare commits

...
Author SHA1 Message Date
dboreham ebe628d082 Remove broken is-url dependency 2022-12-21 13:08:09 -07:00
dboreham b867ea61e8 Merge pull request #9 from cerc-io/dboreham/npm-publish-fixes
Add scope to package name
2022-12-09 07:16:13 -07:00
dboreham 770bca6cc3 Merge main 2022-12-09 07:14:14 -07:00
dboreham 88ffbbc2b2 Revert to original version 2022-12-01 20:43:16 -07:00
dboreham 051a942d03 v0.1.23 2022-12-01 20:36:47 -07:00
dboreham 94becf4a5b Add .npmignore file to make publish work 2022-12-01 20:24:58 -07:00
dboreham 48594a48e6 v0.1.2 2022-12-01 20:20:20 -07:00
dboreham 463220ff58 Add scope to package name 2022-12-01 19:40:56 -07:00
4 changed files with 1122 additions and 1020 deletions
View File
-2
View File
@@ -7,7 +7,6 @@
"author": "",
"license": "UNLICENSED",
"devDependencies": {
"@types/is-url": "^1.2.30",
"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.181",
"@types/semver": "^7.3.9",
@@ -38,7 +37,6 @@
"ethers": "^5.6.2",
"evmosjs": "^0.2.5",
"graphql.js": "^0.6.8",
"is-url": "^1.2.4",
"js-sha256": "^0.9.0",
"js-yaml": "^3.14.1",
"jsonschema": "^1.4.0",
-8
View File
@@ -1,4 +1,3 @@
import isUrl from 'is-url';
import { sha256 } from 'js-sha256';
import { generatePostBodyBroadcast, BroadcastMode } from '@tharsis/provider';
import {
@@ -122,13 +121,6 @@ export class Registry {
}
constructor(gqlUrl: string, restUrl: string = "", chainId: string = DEFAULT_CHAIN_ID) {
if (!isUrl(gqlUrl)) {
throw new Error('Path to a GQL endpoint should be provided.');
}
if (restUrl && !isUrl(restUrl)) {
throw new Error('REST endpoint is not a URL string.');
}
this._endpoints = {
rest: restUrl,
+1122 -1010
View File
File diff suppressed because it is too large Load Diff