forked from cerc-io/laconic-sdk
Compare commits
12
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebe628d082 | ||
|
|
b867ea61e8 | ||
|
|
770bca6cc3 | ||
|
|
b73bb3e216 | ||
|
|
f2c7468ba8 | ||
|
|
94920171ae | ||
|
|
2a9223fdd3 | ||
|
|
88ffbbc2b2 | ||
|
|
051a942d03 | ||
|
|
94becf4a5b | ||
|
|
48594a48e6 | ||
|
|
463220ff58 |
+9
-4
@@ -1,13 +1,12 @@
|
||||
{
|
||||
"name": "@cerc-io/laconic-sdk",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.4",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"repository": "git@github.com:cerc-io/laconic-sdk.git",
|
||||
"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",
|
||||
@@ -26,19 +25,25 @@
|
||||
"@ipld/dag-cbor": "^7.0.1",
|
||||
"@ipld/dag-json": "^8.0.9",
|
||||
"@metamask/eth-sig-util": "^4.0.0",
|
||||
"@tharsis/address-converter": "^0.1.7",
|
||||
"@tharsis/eip712": "^0.2.1",
|
||||
"@tharsis/proto": "^0.1.16",
|
||||
"@tharsis/provider": "^0.2.4",
|
||||
"@tharsis/transactions": "^0.2.2",
|
||||
"axios": "^0.26.1",
|
||||
"bip32": "^3.0.1",
|
||||
"bip32": "3.0.1",
|
||||
"bip39": "^3.0.4",
|
||||
"canonical-json": "^0.0.4",
|
||||
"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",
|
||||
"lodash": "^4.17.21",
|
||||
"multiformats": "^9.5.4",
|
||||
"node-yaml": "^4.0.1",
|
||||
"secp256k1": "^4.0.1",
|
||||
"semver": "^7.3.5",
|
||||
"tiny-secp256k1": "^1.1.6"
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user