Use published cerc-io/laconic-sdk package (#9)

This commit is contained in:
nikugogoi 2022-12-09 18:59:43 +05:30 committed by GitHub
parent ea55cbdc7a
commit 93df49ec9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 90 additions and 95 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
@cerc-io:registry=https://git.vdb.to/api/packages/cerc-io/npm/

View File

@ -4,24 +4,6 @@
* Run `yarn` to install all dependencies.
* This repo uses laconic-sdk. We will need to use this locally.
* Run the following in [laconic-sdk repo](https://github.com/vulcanize/laconic-sdk):
```bash
$ yarn
$ yarn build
$ yarn link
```
* In laconic-cns-cli repo run:
```bash
$ yarn link laconic-sdk
```
* Create a `config.yml` file from [config.example.yml](./config.example.yml) file.
## Account Setup

View File

@ -15,7 +15,7 @@
},
"dependencies": {
"fs-extra": "^10.1.0",
"laconic-sdk": "https://github.com/cerc-io/laconic-sdk.git#dboreham/release",
"@cerc-io/laconic-sdk": "0.1.4",
"js-yaml": "^3.14.1",
"lodash": "^4.17.21",
"lodash-clean": "^2.2.3",

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Account, Registry } from 'laconic-sdk';
import { Account, Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,7 +1,7 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import path from 'path';
import { Account, createBid, Registry } from 'laconic-sdk';
import { Account, createBid, Registry } from '@cerc-io/laconic-sdk';
import { ensureDir } from 'fs-extra';
import fs from 'fs';

View File

@ -1,7 +1,7 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import path from 'path';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import fs from 'fs';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../../util';

View File

@ -3,7 +3,7 @@ import assert from 'assert';
import path from 'path';
import yaml from 'js-yaml';
import fs from 'fs';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getGasAndFees, getConnectionInfo } from '../../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Registry } from 'laconic-sdk';
import { Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo } from '../../util';

View File

@ -1,6 +1,6 @@
import { Arguments } from 'yargs';
import assert from 'assert';
import { Account, Registry } from 'laconic-sdk';
import { Account, Registry } from '@cerc-io/laconic-sdk';
import { getConfig, getConnectionInfo, getGasAndFees } from '../../../util';

112
yarn.lock
View File

@ -2,6 +2,40 @@
# yarn lockfile v1
"@cerc-io/laconic-sdk@0.1.4":
version "0.1.4"
resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Flaconic-sdk/-/0.1.4/laconic-sdk-0.1.4.tgz#06159cb3c9c48325b53eba9bd642cf63420351d9"
integrity sha512-IsXUnz5S14zF+VPWydKy52PkCdyFqRJiMs9FCv8YEJVtUasXkU9xJLBmGaz7Nuo2MyNyKy2NHM7LoB1A75ZHAQ==
dependencies:
"@cosmjs/amino" "^0.28.1"
"@cosmjs/crypto" "^0.28.1"
"@cosmjs/encoding" "^0.28.1"
"@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"
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"
"@cosmjs/amino@^0.28.1":
version "0.28.4"
resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.28.4.tgz#9315f6876dba80148cf715ced44d1dc7a9b68b94"
@ -574,11 +608,6 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"
argparse@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
axios@^0.26.1:
version "0.26.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"
@ -618,7 +647,14 @@ big-integer@1.6.36:
resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.36.tgz#78631076265d4ae3555c04f85e7d9d2f3a071a36"
integrity sha512-t70bfa7HYEA1D9idDbmuv7YbsbVkQ+Hp+8KFSul4aE5e/i1bjCNIRYJZlA8Q8p0r9T8cF/RVvwUgRA//FydEyg==
bip32@^3.0.1:
bindings@^1.3.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df"
integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==
dependencies:
file-uri-to-path "1.0.0"
bip32@3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/bip32/-/bip32-3.0.1.tgz#1d1121469cce6e910e0ec3a5a1990dd62687e2a3"
integrity sha512-Uhpp9aEx3iyiO7CpbNGFxv9WcMIVdGoHG04doQ5Ln0u60uwDah7jUSc3QMV/fSZGm/Oo01/OeAmYevXV+Gz5jQ==
@ -815,7 +851,7 @@ crypto-addr-codec@^0.1.7:
safe-buffer "^5.2.0"
sha3 "^2.1.1"
elliptic@6.5.4, elliptic@^6.5.2, elliptic@^6.5.3, elliptic@^6.5.4:
elliptic@6.5.4, elliptic@^6.4.0, elliptic@^6.5.2, elliptic@^6.5.3, elliptic@^6.5.4:
version "6.5.4"
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==
@ -956,6 +992,11 @@ evp_bytestokey@^1.0.3:
md5.js "^1.3.4"
safe-buffer "^5.1.1"
file-uri-to-path@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==
follow-redirects@^1.14.8:
version "1.14.9"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7"
@ -1113,13 +1154,6 @@ js-yaml@^3.14.1:
argparse "^1.0.7"
esprima "^4.0.0"
js-yaml@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
dependencies:
argparse "^2.0.1"
jsonfile@^6.0.1:
version "6.1.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
@ -1148,32 +1182,6 @@ keccak@^3.0.0:
node-gyp-build "^4.2.0"
readable-stream "^3.6.0"
"laconic-sdk@https://github.com/cerc-io/laconic-sdk.git#dboreham/release":
version "0.1.0"
resolved "https://github.com/cerc-io/laconic-sdk.git#9176bb1a5a5ba225f021c9e6cca2ccc5dc24f7f2"
dependencies:
"@cosmjs/amino" "^0.28.1"
"@cosmjs/crypto" "^0.28.1"
"@cosmjs/encoding" "^0.28.1"
"@ipld/dag-cbor" "^7.0.1"
"@ipld/dag-json" "^8.0.9"
"@metamask/eth-sig-util" "^4.0.0"
axios "^0.26.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 "^4.1.0"
jsonschema "^1.4.0"
lodash "^4.17.21"
node-yaml "^4.0.1"
semver "^7.3.5"
tiny-secp256k1 "^2.2.1"
libsodium-wrappers@^0.7.6:
version "0.7.10"
resolved "https://registry.yarnpkg.com/libsodium-wrappers/-/libsodium-wrappers-0.7.10.tgz#13ced44cacb0fc44d6ac9ce67d725956089ce733"
@ -1248,6 +1256,11 @@ multiformats@^9.5.4:
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.6.4.tgz#5dce1f11a407dbb69aa612cb7e5076069bb759ca"
integrity sha512-fCCB6XMrr6CqJiHNjfFNGT0v//dxOBMrOMqUIzpPc/mmITweLEyhvMpY9bF+jZ9z3vaMAau5E8B68DW77QMXkg==
nan@^2.13.2:
version "2.17.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb"
integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==
node-addon-api@^2.0.0:
version "2.0.2"
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32"
@ -1474,12 +1487,16 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
tiny-secp256k1@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/tiny-secp256k1/-/tiny-secp256k1-2.2.1.tgz#a61d4791b7031aa08a9453178a131349c3e10f9b"
integrity sha512-/U4xfVqnVxJXN4YVsru0E6t5wVncu2uunB8+RVR40fYUxkKYUPS10f+ePQZgFBoE/Jbf9H1NBveupF2VmB58Ng==
tiny-secp256k1@^1.1.6:
version "1.1.6"
resolved "https://registry.yarnpkg.com/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz#7e224d2bee8ab8283f284e40e6b4acb74ffe047c"
integrity sha512-FmqJZGduTyvsr2cF3375fqGHUovSwDi/QytexX1Se4BPuPZpTE5Ftp5fg+EFSuEf3lhZqgCRjEG3ydUQ/aNiwA==
dependencies:
uint8array-tools "0.0.7"
bindings "^1.3.0"
bn.js "^4.11.8"
create-hmac "^1.1.7"
elliptic "^6.4.0"
nan "^2.13.2"
tweetnacl-util@^0.15.1:
version "0.15.1"
@ -1501,11 +1518,6 @@ typescript@^4.6.3:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.3.tgz#eefeafa6afdd31d725584c67a0eaba80f6fc6c6c"
integrity sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==
uint8array-tools@0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/uint8array-tools/-/uint8array-tools-0.0.7.tgz#a7a2bb5d8836eae2fade68c771454e6a438b390d"
integrity sha512-vrrNZJiusLWoFWBqz5Y5KMCgP9W9hnjZHzZiZRT8oNAkq3d5Z5Oe76jAvVVSRh4U8GGR90N2X1dWtrhvx6L8UQ==
universalify@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"