From f3230e3822b55fcc36fbb4bb9a5f98c69349b6c7 Mon Sep 17 00:00:00 2001 From: nikugogoi Date: Fri, 9 Sep 2022 17:13:01 +0530 Subject: [PATCH] Change package name prefixes to cerc-io (#177) --- .github/workflows/on-main.yaml | 2 +- .github/workflows/publish.yaml | 8 ++++---- Makefile | 2 +- README.md | 2 +- package.json | 4 ++-- packages/address-watcher/package.json | 18 +++++++++--------- .../address-watcher/src/cli/watch-address.ts | 2 +- packages/address-watcher/src/fill.ts | 6 +++--- packages/address-watcher/src/indexer.ts | 6 +++--- packages/address-watcher/src/job-runner.ts | 8 ++++---- packages/address-watcher/src/server.ts | 8 ++++---- packages/address-watcher/src/tx-watcher.ts | 4 ++-- packages/cache/package.json | 8 ++++---- packages/codegen/package.json | 10 +++++----- .../src/data/entities/BlockProgress.yaml | 2 +- .../codegen/src/data/entities/IPLDBlock.yaml | 2 +- .../codegen/src/data/entities/SyncStatus.yaml | 2 +- packages/codegen/src/entity.ts | 12 ++++++------ packages/codegen/src/generate-code.ts | 2 +- .../templates/checkpoint-template.handlebars | 4 ++-- .../src/templates/client-template.handlebars | 2 +- .../src/templates/database-template.handlebars | 2 +- .../src/templates/events-template.handlebars | 4 ++-- .../templates/export-state-template.handlebars | 4 ++-- .../src/templates/fill-template.handlebars | 4 ++-- .../src/templates/hooks-template.handlebars | 2 +- .../templates/import-state-template.handlebars | 4 ++-- .../templates/index-block-template.handlebars | 4 ++-- .../src/templates/indexer-template.handlebars | 8 ++++---- .../templates/inspect-cid-template.handlebars | 4 ++-- .../templates/job-runner-template.handlebars | 4 ++-- .../src/templates/package-template.handlebars | 16 ++++++++-------- .../reset-job-queue-template.handlebars | 2 +- .../templates/reset-state-template.handlebars | 4 ++-- .../src/templates/reset-template.handlebars | 2 +- .../templates/resolvers-template.handlebars | 2 +- .../src/templates/server-template.handlebars | 4 ++-- .../watch-contract-template.handlebars | 4 ++-- packages/eden-watcher/package.json | 16 ++++++++-------- packages/eden-watcher/src/cli/checkpoint.ts | 4 ++-- packages/eden-watcher/src/cli/export-state.ts | 4 ++-- packages/eden-watcher/src/cli/import-state.ts | 4 ++-- packages/eden-watcher/src/cli/index-block.ts | 4 ++-- packages/eden-watcher/src/cli/inspect-cid.ts | 4 ++-- .../src/cli/reset-cmds/ipld-state.ts | 2 +- .../src/cli/reset-cmds/job-queue.ts | 2 +- .../eden-watcher/src/cli/reset-cmds/state.ts | 4 ++-- packages/eden-watcher/src/cli/reset.ts | 2 +- .../eden-watcher/src/cli/watch-contract.ts | 4 ++-- packages/eden-watcher/src/client.ts | 2 +- packages/eden-watcher/src/database.ts | 2 +- packages/eden-watcher/src/entity/Account.ts | 2 +- packages/eden-watcher/src/entity/Block.ts | 2 +- .../eden-watcher/src/entity/BlockProgress.ts | 2 +- packages/eden-watcher/src/entity/Claim.ts | 2 +- .../eden-watcher/src/entity/Distribution.ts | 2 +- packages/eden-watcher/src/entity/Epoch.ts | 2 +- packages/eden-watcher/src/entity/IPLDBlock.ts | 2 +- packages/eden-watcher/src/entity/Network.ts | 2 +- packages/eden-watcher/src/entity/Producer.ts | 2 +- .../eden-watcher/src/entity/ProducerEpoch.ts | 2 +- .../entity/ProducerRewardCollectorChange.ts | 2 +- .../src/entity/ProducerSetChange.ts | 2 +- .../src/entity/RewardScheduleEntry.ts | 2 +- packages/eden-watcher/src/entity/Slash.ts | 2 +- packages/eden-watcher/src/entity/Slot.ts | 2 +- packages/eden-watcher/src/entity/SlotClaim.ts | 2 +- packages/eden-watcher/src/entity/Staker.ts | 2 +- packages/eden-watcher/src/entity/SyncStatus.ts | 2 +- packages/eden-watcher/src/events.ts | 4 ++-- packages/eden-watcher/src/fill-state.ts | 2 +- packages/eden-watcher/src/fill.ts | 4 ++-- packages/eden-watcher/src/hooks.ts | 2 +- packages/eden-watcher/src/indexer.ts | 8 ++++---- packages/eden-watcher/src/job-runner.ts | 4 ++-- packages/eden-watcher/src/resolvers.ts | 2 +- packages/eden-watcher/src/server.ts | 4 ++-- packages/erc20-watcher/package.json | 16 ++++++++-------- .../src/cli/reset-cmds/job-queue.ts | 2 +- .../erc20-watcher/src/cli/reset-cmds/state.ts | 2 +- packages/erc20-watcher/src/cli/reset.ts | 2 +- .../erc20-watcher/src/cli/watch-contract.ts | 2 +- packages/erc20-watcher/src/client.ts | 2 +- packages/erc20-watcher/src/database.ts | 2 +- packages/erc20-watcher/src/entity/Allowance.ts | 2 +- packages/erc20-watcher/src/entity/Balance.ts | 2 +- .../erc20-watcher/src/entity/BlockProgress.ts | 2 +- .../erc20-watcher/src/entity/SyncStatus.ts | 2 +- packages/erc20-watcher/src/events.ts | 4 ++-- packages/erc20-watcher/src/fill.ts | 2 +- packages/erc20-watcher/src/indexer.ts | 6 +++--- packages/erc20-watcher/src/job-runner.ts | 2 +- packages/erc20-watcher/src/resolvers.ts | 2 +- packages/erc20-watcher/src/server.ts | 2 +- packages/erc721-watcher/package.json | 14 +++++++------- packages/erc721-watcher/src/cli/checkpoint.ts | 2 +- .../erc721-watcher/src/cli/export-state.ts | 2 +- .../erc721-watcher/src/cli/import-state.ts | 2 +- packages/erc721-watcher/src/cli/index-block.ts | 2 +- packages/erc721-watcher/src/cli/inspect-cid.ts | 2 +- .../src/cli/reset-cmds/job-queue.ts | 2 +- .../erc721-watcher/src/cli/reset-cmds/state.ts | 2 +- packages/erc721-watcher/src/cli/reset.ts | 2 +- .../erc721-watcher/src/cli/watch-contract.ts | 2 +- packages/erc721-watcher/src/client.ts | 2 +- packages/erc721-watcher/src/database.ts | 2 +- .../erc721-watcher/src/entity/BalanceOf.ts | 2 +- .../erc721-watcher/src/entity/BlockProgress.ts | 2 +- .../erc721-watcher/src/entity/GetApproved.ts | 2 +- .../erc721-watcher/src/entity/IPLDBlock.ts | 2 +- packages/erc721-watcher/src/entity/OwnerOf.ts | 2 +- .../erc721-watcher/src/entity/SyncStatus.ts | 2 +- packages/erc721-watcher/src/entity/TokenURI.ts | 2 +- .../erc721-watcher/src/entity/_Balances.ts | 2 +- packages/erc721-watcher/src/entity/_Owners.ts | 2 +- .../src/entity/_TokenApprovals.ts | 2 +- packages/erc721-watcher/src/events.ts | 4 ++-- packages/erc721-watcher/src/fill.ts | 2 +- packages/erc721-watcher/src/hooks.ts | 2 +- packages/erc721-watcher/src/indexer.ts | 6 +++--- packages/erc721-watcher/src/job-runner.ts | 2 +- packages/erc721-watcher/src/resolvers.ts | 2 +- packages/erc721-watcher/src/server.ts | 2 +- packages/graph-node/package.json | 6 +++--- packages/graph-node/src/cli/compare/client.ts | 4 ++-- .../src/cli/compare/compare-blocks.ts | 4 ++-- packages/graph-node/src/cli/compare/utils.ts | 4 ++-- packages/graph-node/src/database.ts | 2 +- packages/graph-node/src/loader.ts | 2 +- packages/graph-node/src/numbers.test.ts | 2 +- packages/graph-node/src/utils.ts | 4 ++-- packages/graph-node/src/watcher.ts | 4 ++-- packages/graph-node/test/utils/index.ts | 6 +++--- packages/graph-node/test/utils/indexer.ts | 6 +++--- packages/graph-test-watcher/package.json | 18 +++++++++--------- .../graph-test-watcher/src/cli/checkpoint.ts | 4 ++-- .../graph-test-watcher/src/cli/export-state.ts | 4 ++-- .../graph-test-watcher/src/cli/import-state.ts | 4 ++-- .../graph-test-watcher/src/cli/index-block.ts | 4 ++-- .../graph-test-watcher/src/cli/inspect-cid.ts | 4 ++-- .../src/cli/reset-cmds/job-queue.ts | 2 +- .../src/cli/reset-cmds/state.ts | 4 ++-- packages/graph-test-watcher/src/cli/reset.ts | 2 +- .../src/cli/watch-contract.ts | 4 ++-- packages/graph-test-watcher/src/client.ts | 2 +- packages/graph-test-watcher/src/database.ts | 2 +- .../graph-test-watcher/src/entity/Author.ts | 2 +- .../src/entity/BlockProgress.ts | 2 +- packages/graph-test-watcher/src/entity/Blog.ts | 2 +- .../graph-test-watcher/src/entity/Category.ts | 2 +- .../graph-test-watcher/src/entity/IPLDBlock.ts | 2 +- .../src/entity/SyncStatus.ts | 2 +- .../graph-test-watcher/src/entity/_Test.ts | 2 +- packages/graph-test-watcher/src/events.ts | 4 ++-- packages/graph-test-watcher/src/fill.ts | 4 ++-- packages/graph-test-watcher/src/indexer.ts | 8 ++++---- packages/graph-test-watcher/src/job-runner.ts | 4 ++-- packages/graph-test-watcher/src/resolvers.ts | 2 +- packages/graph-test-watcher/src/server.ts | 4 ++-- packages/ipld-eth-client/package.json | 10 +++++----- packages/ipld-eth-client/src/eth-client.ts | 2 +- packages/lighthouse-watcher/package.json | 8 ++++---- packages/lighthouse-watcher/src/client.ts | 2 +- packages/lighthouse-watcher/src/events.ts | 2 +- packages/lighthouse-watcher/src/indexer.ts | 4 ++-- packages/lighthouse-watcher/src/server.ts | 6 +++--- packages/lighthouse-watcher/src/smoke.test.ts | 2 +- packages/mobymask-watcher/demo.md | 2 +- packages/mobymask-watcher/package.json | 14 +++++++------- .../mobymask-watcher/src/cli/checkpoint.ts | 2 +- .../mobymask-watcher/src/cli/export-state.ts | 2 +- .../mobymask-watcher/src/cli/import-state.ts | 2 +- .../mobymask-watcher/src/cli/index-block.ts | 2 +- .../mobymask-watcher/src/cli/inspect-cid.ts | 2 +- .../src/cli/reset-cmds/job-queue.ts | 2 +- .../src/cli/reset-cmds/state.ts | 2 +- packages/mobymask-watcher/src/cli/reset.ts | 2 +- .../mobymask-watcher/src/cli/watch-contract.ts | 2 +- packages/mobymask-watcher/src/client.ts | 2 +- packages/mobymask-watcher/src/database.ts | 2 +- .../src/entity/BlockProgress.ts | 2 +- .../mobymask-watcher/src/entity/IPLDBlock.ts | 2 +- .../mobymask-watcher/src/entity/MultiNonce.ts | 2 +- .../mobymask-watcher/src/entity/SyncStatus.ts | 2 +- packages/mobymask-watcher/src/events.ts | 4 ++-- packages/mobymask-watcher/src/fill.ts | 2 +- packages/mobymask-watcher/src/hooks.ts | 2 +- packages/mobymask-watcher/src/indexer.ts | 6 +++--- packages/mobymask-watcher/src/job-runner.ts | 2 +- packages/mobymask-watcher/src/resolvers.ts | 2 +- packages/mobymask-watcher/src/server.ts | 2 +- packages/solidity-mapper/package.json | 4 ++-- packages/solidity-mapper/src/storage.test.ts | 2 +- packages/test/package.json | 2 +- packages/tracing-client/package.json | 8 ++++---- packages/util/package.json | 8 ++++---- packages/util/src/config.ts | 4 ++-- packages/util/src/events.ts | 2 +- packages/util/src/indexer.ts | 4 ++-- packages/util/src/ipld-indexer.ts | 2 +- packages/util/src/misc.ts | 2 +- packages/util/src/types.ts | 2 +- 202 files changed, 359 insertions(+), 359 deletions(-) diff --git a/.github/workflows/on-main.yaml b/.github/workflows/on-main.yaml index 34012bf0..6c6fd85b 100644 --- a/.github/workflows/on-main.yaml +++ b/.github/workflows/on-main.yaml @@ -65,6 +65,6 @@ jobs: - name: Tag docker image run: docker tag ${{steps.vars.outputs.repo}} ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}} - name: Docker Login - run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u vulcanize --password-stdin + run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u cerc-io --password-stdin - name: Docker Push run: docker push ghcr.io/${{steps.vars.outputs.repo}}:${{steps.vars.outputs.sha}} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 75d703fd..2df96eb4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -13,10 +13,10 @@ jobs: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7}) echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/}) - name: Docker Login to Registry - run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u vulcanize --password-stdin + run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u cerc-io --password-stdin - name: Docker Pull - run: docker pull ghcr.io/vulcanize/watcher-ts:${{steps.vars.outputs.sha}} + run: docker pull ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.sha}} - name: Tag docker image - run: docker tag ghcr.io/vulcanize/watcher-ts:${{steps.vars.outputs.sha}} ghcr.io/vulcanize/watcher-ts:${{steps.vars.outputs.tag}} + run: docker tag ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.sha}} ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.tag}} - name: Docker Push to Github Hub - run: docker push ghcr.io/vulcanize/watcher-ts:${{steps.vars.outputs.tag}} + run: docker push ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.tag}} diff --git a/Makefile b/Makefile index bf5466a5..79ff7ef2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ ## Build docker image .PHONY: docker-build docker-build: - docker build -t vulcanize/watcher-ts --build-arg NPM_AUTH_TOKEN=$(NPM_AUTH_TOKEN) . + docker build -t cerc-io/watcher-ts --build-arg NPM_AUTH_TOKEN=$(NPM_AUTH_TOKEN) . diff --git a/README.md b/README.md index e1712e99..48426a5a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ There are packages used from github so we need to follow the following steps to 3. Follow the steps in https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-with-a-personal-access-token to authenticate to github packages. We can also run the follwing to authenticate by logging in to npm. ```bash - $ npm login --scope=@vulcanize --registry=https://npm.pkg.github.com + $ npm login --scope=@cerc-io --registry=https://npm.pkg.github.com > Username: USERNAME > Password: TOKEN diff --git a/package.json b/package.json index bd368f73..51124d9e 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ }, "scripts": { "lint": "lerna run lint --stream", - "test:init": "lerna run test:init --stream --ignore @vulcanize/*-watcher", - "test": "lerna run test --stream --ignore @vulcanize/*-watcher", + "test:init": "lerna run test:init --stream --ignore @cerc-io/*-watcher", + "test": "lerna run test --stream --ignore @cerc-io/*-watcher", "build": "lerna run build --stream", "build:watch": "lerna run build --stream --parallel -- -w", "db:reset": "sudo ./scripts/reset-dbs.sh", diff --git a/packages/address-watcher/package.json b/packages/address-watcher/package.json index 47f4f2d0..ed06bb2e 100644 --- a/packages/address-watcher/package.json +++ b/packages/address-watcher/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/address-watcher", + "name": "@cerc-io/address-watcher", "version": "0.1.0", "description": "Address Watcher", "private": true, @@ -16,22 +16,22 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", "@types/lodash": "^4.14.168", - "@vulcanize/cache": "^0.1.0", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/solidity-mapper": "^0.1.0", - "@vulcanize/tracing-client": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/cache": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", + "@cerc-io/tracing-client": "^0.1.0", + "@cerc-io/util": "^0.1.0", "apollo-server-express": "^2.25.0", "debug": "^4.3.1", "ethers": "^5.4.4", diff --git a/packages/address-watcher/src/cli/watch-address.ts b/packages/address-watcher/src/cli/watch-address.ts index d278dbb0..c77a9071 100644 --- a/packages/address-watcher/src/cli/watch-address.ts +++ b/packages/address-watcher/src/cli/watch-address.ts @@ -7,7 +7,7 @@ import yargs from 'yargs'; import 'reflect-metadata'; import { ethers } from 'ethers'; -import { Config, DEFAULT_CONFIG_PATH, getConfig } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig } from '@cerc-io/util'; import { Database } from '../database'; diff --git a/packages/address-watcher/src/fill.ts b/packages/address-watcher/src/fill.ts index c1af472d..67da0491 100644 --- a/packages/address-watcher/src/fill.ts +++ b/packages/address-watcher/src/fill.ts @@ -8,9 +8,9 @@ import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import debug from 'debug'; -import { getCache } from '@vulcanize/cache'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { DEFAULT_CONFIG_PATH, getConfig, JobQueue } from '@vulcanize/util'; +import { getCache } from '@cerc-io/cache'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { DEFAULT_CONFIG_PATH, getConfig, JobQueue } from '@cerc-io/util'; import { Database } from './database'; import { QUEUE_TX_TRACING } from './tx-watcher'; diff --git a/packages/address-watcher/src/indexer.ts b/packages/address-watcher/src/indexer.ts index c99cd1b2..2f23fb34 100644 --- a/packages/address-watcher/src/indexer.ts +++ b/packages/address-watcher/src/indexer.ts @@ -6,9 +6,9 @@ import assert from 'assert'; import debug from 'debug'; import { ethers } from 'ethers'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { GetStorageAt } from '@vulcanize/solidity-mapper'; -import { TracingClient } from '@vulcanize/tracing-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { GetStorageAt } from '@cerc-io/solidity-mapper'; +import { TracingClient } from '@cerc-io/tracing-client'; import { addressesInTrace } from './util'; import { Database } from './database'; diff --git a/packages/address-watcher/src/job-runner.ts b/packages/address-watcher/src/job-runner.ts index 5506d6d5..b090b556 100644 --- a/packages/address-watcher/src/job-runner.ts +++ b/packages/address-watcher/src/job-runner.ts @@ -8,10 +8,10 @@ import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import debug from 'debug'; -import { getCache } from '@vulcanize/cache'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { TracingClient } from '@vulcanize/tracing-client'; -import { getConfig, JobQueue, DEFAULT_CONFIG_PATH } from '@vulcanize/util'; +import { getCache } from '@cerc-io/cache'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { TracingClient } from '@cerc-io/tracing-client'; +import { getConfig, JobQueue, DEFAULT_CONFIG_PATH } from '@cerc-io/util'; import { Indexer } from './indexer'; import { Database } from './database'; diff --git a/packages/address-watcher/src/server.ts b/packages/address-watcher/src/server.ts index 3d4245d6..c6c08b57 100644 --- a/packages/address-watcher/src/server.ts +++ b/packages/address-watcher/src/server.ts @@ -11,10 +11,10 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { createServer } from 'http'; -import { getCache } from '@vulcanize/cache'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { TracingClient } from '@vulcanize/tracing-client'; -import { getConfig, JobQueue, DEFAULT_CONFIG_PATH } from '@vulcanize/util'; +import { getCache } from '@cerc-io/cache'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { TracingClient } from '@cerc-io/tracing-client'; +import { getConfig, JobQueue, DEFAULT_CONFIG_PATH } from '@cerc-io/util'; import typeDefs from './schema'; diff --git a/packages/address-watcher/src/tx-watcher.ts b/packages/address-watcher/src/tx-watcher.ts index 65fa8eca..870237f7 100644 --- a/packages/address-watcher/src/tx-watcher.ts +++ b/packages/address-watcher/src/tx-watcher.ts @@ -7,8 +7,8 @@ import debug from 'debug'; import _ from 'lodash'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { JobQueue } from '@vulcanize/util'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { JobQueue } from '@cerc-io/util'; import { Indexer } from './indexer'; import { BlockProgress } from './entity/BlockProgress'; diff --git a/packages/cache/package.json b/packages/cache/package.json index ee2598f9..233e0aed 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/cache", + "name": "@cerc-io/cache", "version": "0.1.0", "description": "Generic object cache", "private": true, @@ -11,14 +11,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "canonical-json": "^0.0.4", "debug": "^4.3.1", diff --git a/packages/codegen/package.json b/packages/codegen/package.json index 7838d1aa..620ebf55 100644 --- a/packages/codegen/package.json +++ b/packages/codegen/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/codegen", + "name": "@cerc-io/codegen", "version": "0.1.0", "description": "Code generator", "private": true, @@ -10,19 +10,19 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@graphql-tools/load-files": "^6.5.2", "@poanet/solidity-flattener": "https://github.com/vulcanize/solidity-flattener.git", "@solidity-parser/parser": "^0.13.2", - "@vulcanize/util": "^0.1.0", + "@cerc-io/util": "^0.1.0", "gql-generator": "https://github.com/vulcanize/gql-generator.git", "graphql": "^15.5.0", "graphql-compose": "^9.0.3", diff --git a/packages/codegen/src/data/entities/BlockProgress.yaml b/packages/codegen/src/data/entities/BlockProgress.yaml index 8ee7ffb0..99b4ea83 100644 --- a/packages/codegen/src/data/entities/BlockProgress.yaml +++ b/packages/codegen/src/data/entities/BlockProgress.yaml @@ -74,4 +74,4 @@ imports: from: typeorm - toImport: - BlockProgressInterface - from: '@vulcanize/util' + from: '@cerc-io/util' diff --git a/packages/codegen/src/data/entities/IPLDBlock.yaml b/packages/codegen/src/data/entities/IPLDBlock.yaml index 14ee72bf..6cd15c3c 100644 --- a/packages/codegen/src/data/entities/IPLDBlock.yaml +++ b/packages/codegen/src/data/entities/IPLDBlock.yaml @@ -56,7 +56,7 @@ imports: from: typeorm - toImport: - StateKind - from: '@vulcanize/util' + from: '@cerc-io/util' - toImport: - BlockProgress from: ./BlockProgress diff --git a/packages/codegen/src/data/entities/SyncStatus.yaml b/packages/codegen/src/data/entities/SyncStatus.yaml index d844a71a..3eed455e 100644 --- a/packages/codegen/src/data/entities/SyncStatus.yaml +++ b/packages/codegen/src/data/entities/SyncStatus.yaml @@ -57,4 +57,4 @@ imports: from: typeorm - toImport: - SyncStatusInterface - from: '@vulcanize/util' + from: '@cerc-io/util' diff --git a/packages/codegen/src/entity.ts b/packages/codegen/src/entity.ts index a2d5e556..f717eada 100644 --- a/packages/codegen/src/entity.ts +++ b/packages/codegen/src/entity.ts @@ -290,7 +290,7 @@ export class Entity { _addBigIntTransformerOption (entityObject: any): void { let importObject = entityObject.imports.find((element: any) => { - return element.from === '@vulcanize/util'; + return element.from === '@cerc-io/util'; }); entityObject.columns.forEach((column: any) => { @@ -308,7 +308,7 @@ export class Entity { } else { importObject = { toImport: new Set(['bigintTransformer']), - from: '@vulcanize/util' + from: '@cerc-io/util' }; entityObject.imports.push(importObject); @@ -329,7 +329,7 @@ export class Entity { } else { importObject = { toImport: new Set(['bigintArrayTransformer']), - from: '@vulcanize/util' + from: '@cerc-io/util' }; entityObject.imports.push(importObject); @@ -340,7 +340,7 @@ export class Entity { _addDecimalTransformerOption (entityObject: any): void { let importObject = entityObject.imports.find((element: any) => { - return element.from === '@vulcanize/util'; + return element.from === '@cerc-io/util'; }); let isDecimalRequired = false; @@ -362,7 +362,7 @@ export class Entity { } else { importObject = { toImport: new Set(['decimalTransformer']), - from: '@vulcanize/util' + from: '@cerc-io/util' }; entityObject.imports.push(importObject); @@ -385,7 +385,7 @@ export class Entity { } else { importObject = { toImport: new Set(['decimalArrayTransformer']), - from: '@vulcanize/util' + from: '@cerc-io/util' }; entityObject.imports.push(importObject); diff --git a/packages/codegen/src/generate-code.ts b/packages/codegen/src/generate-code.ts index 041752c7..1fca02f8 100644 --- a/packages/codegen/src/generate-code.ts +++ b/packages/codegen/src/generate-code.ts @@ -14,7 +14,7 @@ import os from 'os'; import { flatten } from '@poanet/solidity-flattener'; import { parse, visit } from '@solidity-parser/parser'; -import { KIND_ACTIVE, KIND_LAZY } from '@vulcanize/util'; +import { KIND_ACTIVE, KIND_LAZY } from '@cerc-io/util'; import { MODE_ETH_CALL, MODE_STORAGE, MODE_ALL, MODE_NONE, DEFAULT_PORT } from './utils/constants'; import { Visitor } from './visitor'; diff --git a/packages/codegen/src/templates/checkpoint-template.handlebars b/packages/codegen/src/templates/checkpoint-template.handlebars index 41e68428..0f600fdf 100644 --- a/packages/codegen/src/templates/checkpoint-template.handlebars +++ b/packages/codegen/src/templates/checkpoint-template.handlebars @@ -10,9 +10,9 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { Database } from '../database'; diff --git a/packages/codegen/src/templates/client-template.handlebars b/packages/codegen/src/templates/client-template.handlebars index 6db20126..355fcf51 100644 --- a/packages/codegen/src/templates/client-template.handlebars +++ b/packages/codegen/src/templates/client-template.handlebars @@ -3,7 +3,7 @@ // import { gql } from '@apollo/client/core'; -import { GraphQLClient, GraphQLConfig } from '@vulcanize/ipld-eth-client'; +import { GraphQLClient, GraphQLConfig } from '@cerc-io/ipld-eth-client'; import { queries, mutations, subscriptions } from './gql'; diff --git a/packages/codegen/src/templates/database-template.handlebars b/packages/codegen/src/templates/database-template.handlebars index 49de41f2..36ceaccc 100644 --- a/packages/codegen/src/templates/database-template.handlebars +++ b/packages/codegen/src/templates/database-template.handlebars @@ -6,7 +6,7 @@ import assert from 'assert'; import { Connection, ConnectionOptions, DeepPartial, FindConditions, QueryRunner, FindManyOptions } from 'typeorm'; import path from 'path'; -import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@vulcanize/util'; +import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@cerc-io/util'; import { Contract } from './entity/Contract'; import { Event } from './entity/Event'; diff --git a/packages/codegen/src/templates/events-template.handlebars b/packages/codegen/src/templates/events-template.handlebars index a23a9f19..0eda7615 100644 --- a/packages/codegen/src/templates/events-template.handlebars +++ b/packages/codegen/src/templates/events-template.handlebars @@ -6,7 +6,7 @@ import assert from 'assert'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JobQueue, EventWatcher as BaseEventWatcher, @@ -15,7 +15,7 @@ import { QUEUE_EVENT_PROCESSING, UNKNOWN_EVENT_NAME, UpstreamConfig -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Event } from './entity/Event'; diff --git a/packages/codegen/src/templates/export-state-template.handlebars b/packages/codegen/src/templates/export-state-template.handlebars index 6d0aad9c..65df18c5 100644 --- a/packages/codegen/src/templates/export-state-template.handlebars +++ b/packages/codegen/src/templates/export-state-template.handlebars @@ -19,9 +19,9 @@ import { verifyCheckpointData, {{/if}} StateKind -} from '@vulcanize/util'; +} from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import * as codec from '@ipld/dag-cbor'; diff --git a/packages/codegen/src/templates/fill-template.handlebars b/packages/codegen/src/templates/fill-template.handlebars index fb1d1e2b..9ffa4490 100644 --- a/packages/codegen/src/templates/fill-template.handlebars +++ b/packages/codegen/src/templates/fill-template.handlebars @@ -12,9 +12,9 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@vulcanize/util'; +import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { Database } from './database'; diff --git a/packages/codegen/src/templates/hooks-template.handlebars b/packages/codegen/src/templates/hooks-template.handlebars index 0bc8a03d..58417cae 100644 --- a/packages/codegen/src/templates/hooks-template.handlebars +++ b/packages/codegen/src/templates/hooks-template.handlebars @@ -4,7 +4,7 @@ import assert from 'assert'; -// import { updateStateForMappingType, updateStateForElementaryType } from '@vulcanize/util'; +// import { updateStateForMappingType, updateStateForElementaryType } from '@cerc-io/util'; import { Indexer, ResultEvent } from './indexer'; diff --git a/packages/codegen/src/templates/import-state-template.handlebars b/packages/codegen/src/templates/import-state-template.handlebars index 72569ba0..4ccd8cc6 100644 --- a/packages/codegen/src/templates/import-state-template.handlebars +++ b/packages/codegen/src/templates/import-state-template.handlebars @@ -11,9 +11,9 @@ import { PubSub } from 'apollo-server-express'; import fs from 'fs'; import path from 'path'; -import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@vulcanize/util'; +import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import * as codec from '@ipld/dag-cbor'; diff --git a/packages/codegen/src/templates/index-block-template.handlebars b/packages/codegen/src/templates/index-block-template.handlebars index ec16942c..32ffa181 100644 --- a/packages/codegen/src/templates/index-block-template.handlebars +++ b/packages/codegen/src/templates/index-block-template.handlebars @@ -10,9 +10,9 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { Database } from '../database'; diff --git a/packages/codegen/src/templates/indexer-template.handlebars b/packages/codegen/src/templates/indexer-template.handlebars index d9762955..a113b5ce 100644 --- a/packages/codegen/src/templates/indexer-template.handlebars +++ b/packages/codegen/src/templates/indexer-template.handlebars @@ -12,8 +12,8 @@ import _ from 'lodash'; import { JsonFragment } from '@ethersproject/abi'; import { BaseProvider } from '@ethersproject/providers'; import * as codec from '@ipld/dag-cbor'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; import { IPLDIndexer as BaseIndexer, IPLDIndexerInterface, @@ -31,9 +31,9 @@ import { IPFSClient, StateKind, IpldStatus as IpldStatusInterface -} from '@vulcanize/util'; +} from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher } from '@vulcanize/graph-node'; +import { GraphWatcher } from '@cerc-io/graph-node'; {{/if}} {{#each contracts as | contract |}} diff --git a/packages/codegen/src/templates/inspect-cid-template.handlebars b/packages/codegen/src/templates/inspect-cid-template.handlebars index ea3d0b2b..129f0b47 100644 --- a/packages/codegen/src/templates/inspect-cid-template.handlebars +++ b/packages/codegen/src/templates/inspect-cid-template.handlebars @@ -11,9 +11,9 @@ import 'reflect-metadata'; import debug from 'debug'; import util from 'util'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { Database } from '../database'; diff --git a/packages/codegen/src/templates/job-runner-template.handlebars b/packages/codegen/src/templates/job-runner-template.handlebars index 3d4d57b0..efbf13d8 100644 --- a/packages/codegen/src/templates/job-runner-template.handlebars +++ b/packages/codegen/src/templates/job-runner-template.handlebars @@ -26,9 +26,9 @@ import { DEFAULT_CONFIG_PATH, initClients, startMetricsServer -} from '@vulcanize/util'; +} from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { Indexer } from './indexer'; diff --git a/packages/codegen/src/templates/package-template.handlebars b/packages/codegen/src/templates/package-template.handlebars index adb83838..59b3936c 100644 --- a/packages/codegen/src/templates/package-template.handlebars +++ b/packages/codegen/src/templates/package-template.handlebars @@ -1,5 +1,5 @@ { - "name": "@vulcanize/{{folderName}}", + "name": "@cerc-io/{{folderName}}", "version": "0.1.0", "description": "{{folderName}}", "private": true, @@ -27,23 +27,23 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", "@ethersproject/providers": "^5.4.4", "@ipld/dag-cbor": "^6.0.12", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/solidity-mapper": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", + "@cerc-io/util": "^0.1.0", {{#if (subgraphPath)}} - "@vulcanize/graph-node": "^0.1.0", + "@cerc-io/graph-node": "^0.1.0", {{/if}} "apollo-server-express": "^2.25.0", "apollo-type-bigint": "^0.1.3", diff --git a/packages/codegen/src/templates/reset-job-queue-template.handlebars b/packages/codegen/src/templates/reset-job-queue-template.handlebars index a8766bcf..520cd8b9 100644 --- a/packages/codegen/src/templates/reset-job-queue-template.handlebars +++ b/packages/codegen/src/templates/reset-job-queue-template.handlebars @@ -4,7 +4,7 @@ import debug from 'debug'; -import { getConfig, resetJobs } from '@vulcanize/util'; +import { getConfig, resetJobs } from '@cerc-io/util'; const log = debug('vulcanize:reset-job-queue'); diff --git a/packages/codegen/src/templates/reset-state-template.handlebars b/packages/codegen/src/templates/reset-state-template.handlebars index bc59607f..7a12988c 100644 --- a/packages/codegen/src/templates/reset-state-template.handlebars +++ b/packages/codegen/src/templates/reset-state-template.handlebars @@ -9,9 +9,9 @@ import debug from 'debug'; import { MoreThan } from 'typeorm'; import assert from 'assert'; -import { getConfig, initClients, resetJobs, JobQueue } from '@vulcanize/util'; +import { getConfig, initClients, resetJobs, JobQueue } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { Database } from '../../database'; diff --git a/packages/codegen/src/templates/reset-template.handlebars b/packages/codegen/src/templates/reset-template.handlebars index 2ddebf10..95648c88 100644 --- a/packages/codegen/src/templates/reset-template.handlebars +++ b/packages/codegen/src/templates/reset-template.handlebars @@ -5,7 +5,7 @@ import 'reflect-metadata'; import debug from 'debug'; -import { getResetYargs } from '@vulcanize/util'; +import { getResetYargs } from '@cerc-io/util'; const log = debug('vulcanize:reset'); diff --git a/packages/codegen/src/templates/resolvers-template.handlebars b/packages/codegen/src/templates/resolvers-template.handlebars index 711f8574..1e9251e0 100644 --- a/packages/codegen/src/templates/resolvers-template.handlebars +++ b/packages/codegen/src/templates/resolvers-template.handlebars @@ -8,7 +8,7 @@ import debug from 'debug'; import Decimal from 'decimal.js'; import { GraphQLScalarType } from 'graphql'; -import { ValueResult, BlockHeight, StateKind, gqlTotalQueryCount, gqlQueryCount, jsonBigIntStringReplacer } from '@vulcanize/util'; +import { ValueResult, BlockHeight, StateKind, gqlTotalQueryCount, gqlQueryCount, jsonBigIntStringReplacer } from '@cerc-io/util'; import { Indexer } from './indexer'; import { EventWatcher } from './events'; diff --git a/packages/codegen/src/templates/server-template.handlebars b/packages/codegen/src/templates/server-template.handlebars index ced80d12..58db08a1 100644 --- a/packages/codegen/src/templates/server-template.handlebars +++ b/packages/codegen/src/templates/server-template.handlebars @@ -14,9 +14,9 @@ import debug from 'debug'; import 'graphql-import-node'; import { createServer } from 'http'; -import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients, startGQLMetricsServer } from '@vulcanize/util'; +import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients, startGQLMetricsServer } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { createResolvers } from './resolvers'; diff --git a/packages/codegen/src/templates/watch-contract-template.handlebars b/packages/codegen/src/templates/watch-contract-template.handlebars index 43d3e19f..33c9728b 100644 --- a/packages/codegen/src/templates/watch-contract-template.handlebars +++ b/packages/codegen/src/templates/watch-contract-template.handlebars @@ -10,9 +10,9 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; {{#if (subgraphPath)}} -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; {{/if}} import { Database } from '../database'; diff --git a/packages/eden-watcher/package.json b/packages/eden-watcher/package.json index dbb06faf..8732e516 100644 --- a/packages/eden-watcher/package.json +++ b/packages/eden-watcher/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/eden-watcher", + "name": "@cerc-io/eden-watcher", "version": "0.1.0", "description": "eden-watcher", "private": true, @@ -25,22 +25,22 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", "@ethersproject/providers": "^5.4.4", "@ipld/dag-cbor": "^6.0.12", - "@vulcanize/graph-node": "^0.1.0", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/solidity-mapper": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/graph-node": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", + "@cerc-io/util": "^0.1.0", "apollo-server-express": "^2.25.0", "apollo-type-bigint": "^0.1.3", "debug": "^4.3.1", diff --git a/packages/eden-watcher/src/cli/checkpoint.ts b/packages/eden-watcher/src/cli/checkpoint.ts index 67888bf7..5319fe9e 100644 --- a/packages/eden-watcher/src/cli/checkpoint.ts +++ b/packages/eden-watcher/src/cli/checkpoint.ts @@ -8,8 +8,8 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/eden-watcher/src/cli/export-state.ts b/packages/eden-watcher/src/cli/export-state.ts index 67928335..45a2a5b5 100644 --- a/packages/eden-watcher/src/cli/export-state.ts +++ b/packages/eden-watcher/src/cli/export-state.ts @@ -9,8 +9,8 @@ import debug from 'debug'; import fs from 'fs'; import path from 'path'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind, verifyCheckpointData } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind, verifyCheckpointData } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/eden-watcher/src/cli/import-state.ts b/packages/eden-watcher/src/cli/import-state.ts index 6890ada6..d6d0aedf 100644 --- a/packages/eden-watcher/src/cli/import-state.ts +++ b/packages/eden-watcher/src/cli/import-state.ts @@ -11,8 +11,8 @@ import { PubSub } from 'apollo-server-express'; import fs from 'fs'; import path from 'path'; -import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/eden-watcher/src/cli/index-block.ts b/packages/eden-watcher/src/cli/index-block.ts index dd5f29e8..99f61de2 100644 --- a/packages/eden-watcher/src/cli/index-block.ts +++ b/packages/eden-watcher/src/cli/index-block.ts @@ -8,8 +8,8 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/eden-watcher/src/cli/inspect-cid.ts b/packages/eden-watcher/src/cli/inspect-cid.ts index 775bbb05..fa4de97d 100644 --- a/packages/eden-watcher/src/cli/inspect-cid.ts +++ b/packages/eden-watcher/src/cli/inspect-cid.ts @@ -9,8 +9,8 @@ import 'reflect-metadata'; import debug from 'debug'; import util from 'util'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/eden-watcher/src/cli/reset-cmds/ipld-state.ts b/packages/eden-watcher/src/cli/reset-cmds/ipld-state.ts index f7de0f2a..4dcc8114 100644 --- a/packages/eden-watcher/src/cli/reset-cmds/ipld-state.ts +++ b/packages/eden-watcher/src/cli/reset-cmds/ipld-state.ts @@ -4,7 +4,7 @@ import debug from 'debug'; -import { getConfig } from '@vulcanize/util'; +import { getConfig } from '@cerc-io/util'; import { Database } from '../../database'; diff --git a/packages/eden-watcher/src/cli/reset-cmds/job-queue.ts b/packages/eden-watcher/src/cli/reset-cmds/job-queue.ts index a8766bcf..520cd8b9 100644 --- a/packages/eden-watcher/src/cli/reset-cmds/job-queue.ts +++ b/packages/eden-watcher/src/cli/reset-cmds/job-queue.ts @@ -4,7 +4,7 @@ import debug from 'debug'; -import { getConfig, resetJobs } from '@vulcanize/util'; +import { getConfig, resetJobs } from '@cerc-io/util'; const log = debug('vulcanize:reset-job-queue'); diff --git a/packages/eden-watcher/src/cli/reset-cmds/state.ts b/packages/eden-watcher/src/cli/reset-cmds/state.ts index fd75fb5d..052804c7 100644 --- a/packages/eden-watcher/src/cli/reset-cmds/state.ts +++ b/packages/eden-watcher/src/cli/reset-cmds/state.ts @@ -7,8 +7,8 @@ import debug from 'debug'; import { MoreThan } from 'typeorm'; import assert from 'assert'; -import { getConfig, initClients, resetJobs, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { getConfig, initClients, resetJobs, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../../database'; import { Indexer } from '../../indexer'; diff --git a/packages/eden-watcher/src/cli/reset.ts b/packages/eden-watcher/src/cli/reset.ts index 2ddebf10..95648c88 100644 --- a/packages/eden-watcher/src/cli/reset.ts +++ b/packages/eden-watcher/src/cli/reset.ts @@ -5,7 +5,7 @@ import 'reflect-metadata'; import debug from 'debug'; -import { getResetYargs } from '@vulcanize/util'; +import { getResetYargs } from '@cerc-io/util'; const log = debug('vulcanize:reset'); diff --git a/packages/eden-watcher/src/cli/watch-contract.ts b/packages/eden-watcher/src/cli/watch-contract.ts index cb39c611..9147dd96 100644 --- a/packages/eden-watcher/src/cli/watch-contract.ts +++ b/packages/eden-watcher/src/cli/watch-contract.ts @@ -8,8 +8,8 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/eden-watcher/src/client.ts b/packages/eden-watcher/src/client.ts index 8946b4f9..8bb2bb00 100644 --- a/packages/eden-watcher/src/client.ts +++ b/packages/eden-watcher/src/client.ts @@ -3,7 +3,7 @@ // import { gql } from '@apollo/client/core'; -import { GraphQLClient, GraphQLConfig } from '@vulcanize/ipld-eth-client'; +import { GraphQLClient, GraphQLConfig } from '@cerc-io/ipld-eth-client'; import { queries, mutations, subscriptions } from './gql'; diff --git a/packages/eden-watcher/src/database.ts b/packages/eden-watcher/src/database.ts index 67d46f88..4c1f807d 100644 --- a/packages/eden-watcher/src/database.ts +++ b/packages/eden-watcher/src/database.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import { Connection, ConnectionOptions, DeepPartial, FindConditions, QueryRunner, FindManyOptions } from 'typeorm'; import path from 'path'; -import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@vulcanize/util'; +import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@cerc-io/util'; import { Contract } from './entity/Contract'; import { Event } from './entity/Event'; diff --git a/packages/eden-watcher/src/entity/Account.ts b/packages/eden-watcher/src/entity/Account.ts index d3a3ac80..3a490daf 100644 --- a/packages/eden-watcher/src/entity/Account.ts +++ b/packages/eden-watcher/src/entity/Account.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/Block.ts b/packages/eden-watcher/src/entity/Block.ts index 4c873396..9424c7ea 100644 --- a/packages/eden-watcher/src/entity/Block.ts +++ b/packages/eden-watcher/src/entity/Block.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/BlockProgress.ts b/packages/eden-watcher/src/entity/BlockProgress.ts index a4ba34c1..1d9d9328 100644 --- a/packages/eden-watcher/src/entity/BlockProgress.ts +++ b/packages/eden-watcher/src/entity/BlockProgress.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index, CreateDateColumn } from 'typeorm'; -import { BlockProgressInterface } from '@vulcanize/util'; +import { BlockProgressInterface } from '@cerc-io/util'; @Entity() @Index(['blockHash'], { unique: true }) diff --git a/packages/eden-watcher/src/entity/Claim.ts b/packages/eden-watcher/src/entity/Claim.ts index b7e6a85e..b7f81aa8 100644 --- a/packages/eden-watcher/src/entity/Claim.ts +++ b/packages/eden-watcher/src/entity/Claim.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/Distribution.ts b/packages/eden-watcher/src/entity/Distribution.ts index 98388406..6300f9e7 100644 --- a/packages/eden-watcher/src/entity/Distribution.ts +++ b/packages/eden-watcher/src/entity/Distribution.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/Epoch.ts b/packages/eden-watcher/src/entity/Epoch.ts index 615cc50c..9f1c4f4a 100644 --- a/packages/eden-watcher/src/entity/Epoch.ts +++ b/packages/eden-watcher/src/entity/Epoch.ts @@ -5,7 +5,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; import Decimal from 'decimal.js'; -import { bigintTransformer, decimalTransformer } from '@vulcanize/util'; +import { bigintTransformer, decimalTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/IPLDBlock.ts b/packages/eden-watcher/src/entity/IPLDBlock.ts index 95454057..ddcf2660 100644 --- a/packages/eden-watcher/src/entity/IPLDBlock.ts +++ b/packages/eden-watcher/src/entity/IPLDBlock.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryGeneratedColumn, Column, Index, ManyToOne } from 'typeorm'; -import { StateKind } from '@vulcanize/util'; +import { StateKind } from '@cerc-io/util'; import { BlockProgress } from './BlockProgress'; diff --git a/packages/eden-watcher/src/entity/Network.ts b/packages/eden-watcher/src/entity/Network.ts index 2c118e93..598d44c5 100644 --- a/packages/eden-watcher/src/entity/Network.ts +++ b/packages/eden-watcher/src/entity/Network.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintArrayTransformer, bigintTransformer } from '@vulcanize/util'; +import { bigintArrayTransformer, bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/Producer.ts b/packages/eden-watcher/src/entity/Producer.ts index c2975b08..716e1fe3 100644 --- a/packages/eden-watcher/src/entity/Producer.ts +++ b/packages/eden-watcher/src/entity/Producer.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/ProducerEpoch.ts b/packages/eden-watcher/src/entity/ProducerEpoch.ts index 84534ba5..b3af425f 100644 --- a/packages/eden-watcher/src/entity/ProducerEpoch.ts +++ b/packages/eden-watcher/src/entity/ProducerEpoch.ts @@ -5,7 +5,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; import Decimal from 'decimal.js'; -import { bigintTransformer, decimalTransformer } from '@vulcanize/util'; +import { bigintTransformer, decimalTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/ProducerRewardCollectorChange.ts b/packages/eden-watcher/src/entity/ProducerRewardCollectorChange.ts index 838366b9..f64f5bc0 100644 --- a/packages/eden-watcher/src/entity/ProducerRewardCollectorChange.ts +++ b/packages/eden-watcher/src/entity/ProducerRewardCollectorChange.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/ProducerSetChange.ts b/packages/eden-watcher/src/entity/ProducerSetChange.ts index dbc60d8d..7a609d2a 100644 --- a/packages/eden-watcher/src/entity/ProducerSetChange.ts +++ b/packages/eden-watcher/src/entity/ProducerSetChange.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; enum ProducerSetChangeType { Added = 'Added', diff --git a/packages/eden-watcher/src/entity/RewardScheduleEntry.ts b/packages/eden-watcher/src/entity/RewardScheduleEntry.ts index 09d2d46e..5cd50052 100644 --- a/packages/eden-watcher/src/entity/RewardScheduleEntry.ts +++ b/packages/eden-watcher/src/entity/RewardScheduleEntry.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/Slash.ts b/packages/eden-watcher/src/entity/Slash.ts index 6900a6c9..adc8b166 100644 --- a/packages/eden-watcher/src/entity/Slash.ts +++ b/packages/eden-watcher/src/entity/Slash.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/Slot.ts b/packages/eden-watcher/src/entity/Slot.ts index f3c7066b..8b4aabcd 100644 --- a/packages/eden-watcher/src/entity/Slot.ts +++ b/packages/eden-watcher/src/entity/Slot.ts @@ -5,7 +5,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; import Decimal from 'decimal.js'; -import { bigintTransformer, decimalTransformer } from '@vulcanize/util'; +import { bigintTransformer, decimalTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/SlotClaim.ts b/packages/eden-watcher/src/entity/SlotClaim.ts index ac2eab43..52f9107b 100644 --- a/packages/eden-watcher/src/entity/SlotClaim.ts +++ b/packages/eden-watcher/src/entity/SlotClaim.ts @@ -5,7 +5,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; import Decimal from 'decimal.js'; -import { bigintTransformer, decimalTransformer } from '@vulcanize/util'; +import { bigintTransformer, decimalTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/Staker.ts b/packages/eden-watcher/src/entity/Staker.ts index 5bfd16db..aa833fd3 100644 --- a/packages/eden-watcher/src/entity/Staker.ts +++ b/packages/eden-watcher/src/entity/Staker.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/eden-watcher/src/entity/SyncStatus.ts b/packages/eden-watcher/src/entity/SyncStatus.ts index 314a662f..1cfacda8 100644 --- a/packages/eden-watcher/src/entity/SyncStatus.ts +++ b/packages/eden-watcher/src/entity/SyncStatus.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; -import { SyncStatusInterface } from '@vulcanize/util'; +import { SyncStatusInterface } from '@cerc-io/util'; @Entity() export class SyncStatus implements SyncStatusInterface { diff --git a/packages/eden-watcher/src/events.ts b/packages/eden-watcher/src/events.ts index a23a9f19..0eda7615 100644 --- a/packages/eden-watcher/src/events.ts +++ b/packages/eden-watcher/src/events.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JobQueue, EventWatcher as BaseEventWatcher, @@ -15,7 +15,7 @@ import { QUEUE_EVENT_PROCESSING, UNKNOWN_EVENT_NAME, UpstreamConfig -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Event } from './entity/Event'; diff --git a/packages/eden-watcher/src/fill-state.ts b/packages/eden-watcher/src/fill-state.ts index c56bef80..bf624613 100644 --- a/packages/eden-watcher/src/fill-state.ts +++ b/packages/eden-watcher/src/fill-state.ts @@ -6,7 +6,7 @@ import 'reflect-metadata'; import debug from 'debug'; import { Between } from 'typeorm'; -import { Database as GraphDatabase, prepareEntityState } from '@vulcanize/graph-node'; +import { Database as GraphDatabase, prepareEntityState } from '@cerc-io/graph-node'; import { Indexer } from './indexer'; diff --git a/packages/eden-watcher/src/fill.ts b/packages/eden-watcher/src/fill.ts index 43a1fc68..fd69d654 100644 --- a/packages/eden-watcher/src/fill.ts +++ b/packages/eden-watcher/src/fill.ts @@ -10,8 +10,8 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from './database'; import { Indexer } from './indexer'; diff --git a/packages/eden-watcher/src/hooks.ts b/packages/eden-watcher/src/hooks.ts index 45faf39b..f80f5b42 100644 --- a/packages/eden-watcher/src/hooks.ts +++ b/packages/eden-watcher/src/hooks.ts @@ -2,7 +2,7 @@ // Copyright 2021 Vulcanize, Inc. // -import { IPLDBlockInterface, StateKind } from '@vulcanize/util'; +import { IPLDBlockInterface, StateKind } from '@cerc-io/util'; import assert from 'assert'; import * as codec from '@ipld/dag-cbor'; import _ from 'lodash'; diff --git a/packages/eden-watcher/src/indexer.ts b/packages/eden-watcher/src/indexer.ts index 65060432..43a69125 100644 --- a/packages/eden-watcher/src/indexer.ts +++ b/packages/eden-watcher/src/indexer.ts @@ -12,8 +12,8 @@ import _ from 'lodash'; import { JsonFragment } from '@ethersproject/abi'; import { BaseProvider } from '@ethersproject/providers'; import * as codec from '@ipld/dag-cbor'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; import { IPLDIndexer as BaseIndexer, UNKNOWN_EVENT_NAME, @@ -27,8 +27,8 @@ import { IPLDIndexerInterface, IpldStatus as IpldStatusInterface, ValueResult -} from '@vulcanize/util'; -import { GraphWatcher } from '@vulcanize/graph-node'; +} from '@cerc-io/util'; +import { GraphWatcher } from '@cerc-io/graph-node'; import { Database } from './database'; import { Contract } from './entity/Contract'; diff --git a/packages/eden-watcher/src/job-runner.ts b/packages/eden-watcher/src/job-runner.ts index cb87b84b..7be46d6a 100644 --- a/packages/eden-watcher/src/job-runner.ts +++ b/packages/eden-watcher/src/job-runner.ts @@ -24,8 +24,8 @@ import { DEFAULT_CONFIG_PATH, initClients, startMetricsServer -} from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +} from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Indexer } from './indexer'; import { Database } from './database'; diff --git a/packages/eden-watcher/src/resolvers.ts b/packages/eden-watcher/src/resolvers.ts index 43ec558f..e4dc8516 100644 --- a/packages/eden-watcher/src/resolvers.ts +++ b/packages/eden-watcher/src/resolvers.ts @@ -8,7 +8,7 @@ import debug from 'debug'; import Decimal from 'decimal.js'; import { GraphQLScalarType } from 'graphql'; -import { BlockHeight, OrderDirection, StateKind, gqlTotalQueryCount, gqlQueryCount, jsonBigIntStringReplacer } from '@vulcanize/util'; +import { BlockHeight, OrderDirection, StateKind, gqlTotalQueryCount, gqlQueryCount, jsonBigIntStringReplacer } from '@cerc-io/util'; import { Indexer } from './indexer'; import { EventWatcher } from './events'; diff --git a/packages/eden-watcher/src/server.ts b/packages/eden-watcher/src/server.ts index d04f0b21..b34b0be6 100644 --- a/packages/eden-watcher/src/server.ts +++ b/packages/eden-watcher/src/server.ts @@ -14,8 +14,8 @@ import debug from 'debug'; import 'graphql-import-node'; import { createServer } from 'http'; -import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients, startGQLMetricsServer } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients, startGQLMetricsServer } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { createResolvers } from './resolvers'; import { Indexer } from './indexer'; diff --git a/packages/erc20-watcher/package.json b/packages/erc20-watcher/package.json index 4cd74bd1..6bd6c506 100644 --- a/packages/erc20-watcher/package.json +++ b/packages/erc20-watcher/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/erc20-watcher", + "name": "@cerc-io/erc20-watcher", "version": "0.1.0", "description": "ERC20 Watcher", "private": true, @@ -32,22 +32,22 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", "@ethersproject/providers": "^5.4.4", "@types/lodash": "^4.14.168", - "@vulcanize/cache": "^0.1.0", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/solidity-mapper": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/cache": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", + "@cerc-io/util": "^0.1.0", "apollo-server-express": "^2.25.0", "apollo-type-bigint": "^0.1.3", "debug": "^4.3.1", diff --git a/packages/erc20-watcher/src/cli/reset-cmds/job-queue.ts b/packages/erc20-watcher/src/cli/reset-cmds/job-queue.ts index a8766bcf..520cd8b9 100644 --- a/packages/erc20-watcher/src/cli/reset-cmds/job-queue.ts +++ b/packages/erc20-watcher/src/cli/reset-cmds/job-queue.ts @@ -4,7 +4,7 @@ import debug from 'debug'; -import { getConfig, resetJobs } from '@vulcanize/util'; +import { getConfig, resetJobs } from '@cerc-io/util'; const log = debug('vulcanize:reset-job-queue'); diff --git a/packages/erc20-watcher/src/cli/reset-cmds/state.ts b/packages/erc20-watcher/src/cli/reset-cmds/state.ts index 6dbdcf86..6dd70016 100644 --- a/packages/erc20-watcher/src/cli/reset-cmds/state.ts +++ b/packages/erc20-watcher/src/cli/reset-cmds/state.ts @@ -6,7 +6,7 @@ import debug from 'debug'; import { MoreThan } from 'typeorm'; import assert from 'assert'; -import { getConfig, initClients, JobQueue, resetJobs } from '@vulcanize/util'; +import { getConfig, initClients, JobQueue, resetJobs } from '@cerc-io/util'; import { Database } from '../../database'; import { Indexer } from '../../indexer'; diff --git a/packages/erc20-watcher/src/cli/reset.ts b/packages/erc20-watcher/src/cli/reset.ts index 2ddebf10..95648c88 100644 --- a/packages/erc20-watcher/src/cli/reset.ts +++ b/packages/erc20-watcher/src/cli/reset.ts @@ -5,7 +5,7 @@ import 'reflect-metadata'; import debug from 'debug'; -import { getResetYargs } from '@vulcanize/util'; +import { getResetYargs } from '@cerc-io/util'; const log = debug('vulcanize:reset'); diff --git a/packages/erc20-watcher/src/cli/watch-contract.ts b/packages/erc20-watcher/src/cli/watch-contract.ts index c218a790..9d682439 100644 --- a/packages/erc20-watcher/src/cli/watch-contract.ts +++ b/packages/erc20-watcher/src/cli/watch-contract.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import yargs from 'yargs'; import 'reflect-metadata'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/erc20-watcher/src/client.ts b/packages/erc20-watcher/src/client.ts index 0010b908..5dca1c57 100644 --- a/packages/erc20-watcher/src/client.ts +++ b/packages/erc20-watcher/src/client.ts @@ -3,7 +3,7 @@ // import { gql } from '@apollo/client/core'; -import { GraphQLClient, GraphQLConfig } from '@vulcanize/ipld-eth-client'; +import { GraphQLClient, GraphQLConfig } from '@cerc-io/ipld-eth-client'; import { queryName, queryDecimals, queryTotalSupply, querySymbol } from './queries'; diff --git a/packages/erc20-watcher/src/database.ts b/packages/erc20-watcher/src/database.ts index bd661a44..f3f95321 100644 --- a/packages/erc20-watcher/src/database.ts +++ b/packages/erc20-watcher/src/database.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import { Connection, ConnectionOptions, DeepPartial, FindConditions, FindManyOptions, QueryRunner } from 'typeorm'; import path from 'path'; -import { Database as BaseDatabase, QueryOptions, Where } from '@vulcanize/util'; +import { Database as BaseDatabase, QueryOptions, Where } from '@cerc-io/util'; import { Allowance } from './entity/Allowance'; import { Balance } from './entity/Balance'; diff --git a/packages/erc20-watcher/src/entity/Allowance.ts b/packages/erc20-watcher/src/entity/Allowance.ts index 76d9e92b..189de634 100644 --- a/packages/erc20-watcher/src/entity/Allowance.ts +++ b/packages/erc20-watcher/src/entity/Allowance.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'blockNumber', 'token', 'owner', 'spender'], { unique: true }) diff --git a/packages/erc20-watcher/src/entity/Balance.ts b/packages/erc20-watcher/src/entity/Balance.ts index 5d8d8588..16ca2cf2 100644 --- a/packages/erc20-watcher/src/entity/Balance.ts +++ b/packages/erc20-watcher/src/entity/Balance.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'blockNumber', 'token', 'owner'], { unique: true }) diff --git a/packages/erc20-watcher/src/entity/BlockProgress.ts b/packages/erc20-watcher/src/entity/BlockProgress.ts index 5851ca0a..a16fb238 100644 --- a/packages/erc20-watcher/src/entity/BlockProgress.ts +++ b/packages/erc20-watcher/src/entity/BlockProgress.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryGeneratedColumn, Column, Index, CreateDateColumn } from 'typeorm'; -import { BlockProgressInterface } from '@vulcanize/util'; +import { BlockProgressInterface } from '@cerc-io/util'; @Entity() @Index(['blockHash'], { unique: true }) diff --git a/packages/erc20-watcher/src/entity/SyncStatus.ts b/packages/erc20-watcher/src/entity/SyncStatus.ts index 56bd3a2a..222e2c84 100644 --- a/packages/erc20-watcher/src/entity/SyncStatus.ts +++ b/packages/erc20-watcher/src/entity/SyncStatus.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; -import { SyncStatusInterface } from '@vulcanize/util'; +import { SyncStatusInterface } from '@cerc-io/util'; @Entity() export class SyncStatus implements SyncStatusInterface { diff --git a/packages/erc20-watcher/src/events.ts b/packages/erc20-watcher/src/events.ts index aaf4fc67..ba09a214 100644 --- a/packages/erc20-watcher/src/events.ts +++ b/packages/erc20-watcher/src/events.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JobQueue, EventWatcher as BaseEventWatcher, @@ -14,7 +14,7 @@ import { QUEUE_EVENT_PROCESSING, UNKNOWN_EVENT_NAME, UpstreamConfig -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Event } from './entity/Event'; diff --git a/packages/erc20-watcher/src/fill.ts b/packages/erc20-watcher/src/fill.ts index a26f21d0..23061b4b 100644 --- a/packages/erc20-watcher/src/fill.ts +++ b/packages/erc20-watcher/src/fill.ts @@ -9,7 +9,7 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@vulcanize/util'; +import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@cerc-io/util'; import { Database } from './database'; import { Indexer } from './indexer'; diff --git a/packages/erc20-watcher/src/indexer.ts b/packages/erc20-watcher/src/indexer.ts index 12fec01b..027ac664 100644 --- a/packages/erc20-watcher/src/indexer.ts +++ b/packages/erc20-watcher/src/indexer.ts @@ -10,9 +10,9 @@ import JSONbig from 'json-bigint'; import { ethers } from 'ethers'; import { BaseProvider } from '@ethersproject/providers'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; -import { IndexerInterface, Indexer as BaseIndexer, ValueResult, UNKNOWN_EVENT_NAME, JobQueue, Where, QueryOptions, ServerConfig } from '@vulcanize/util'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; +import { IndexerInterface, Indexer as BaseIndexer, ValueResult, UNKNOWN_EVENT_NAME, JobQueue, Where, QueryOptions, ServerConfig } from '@cerc-io/util'; import { Database } from './database'; import { Event } from './entity/Event'; diff --git a/packages/erc20-watcher/src/job-runner.ts b/packages/erc20-watcher/src/job-runner.ts index d4258803..3ff3a7ff 100644 --- a/packages/erc20-watcher/src/job-runner.ts +++ b/packages/erc20-watcher/src/job-runner.ts @@ -19,7 +19,7 @@ import { DEFAULT_CONFIG_PATH, initClients, startMetricsServer -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Database } from './database'; diff --git a/packages/erc20-watcher/src/resolvers.ts b/packages/erc20-watcher/src/resolvers.ts index a70fede2..d015df46 100644 --- a/packages/erc20-watcher/src/resolvers.ts +++ b/packages/erc20-watcher/src/resolvers.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import BigInt from 'apollo-type-bigint'; import debug from 'debug'; -import { ValueResult } from '@vulcanize/util'; +import { ValueResult } from '@cerc-io/util'; import { Indexer } from './indexer'; import { EventWatcher } from './events'; diff --git a/packages/erc20-watcher/src/server.ts b/packages/erc20-watcher/src/server.ts index 8ab3f335..317b8b01 100644 --- a/packages/erc20-watcher/src/server.ts +++ b/packages/erc20-watcher/src/server.ts @@ -12,7 +12,7 @@ import debug from 'debug'; import 'graphql-import-node'; import { createServer } from 'http'; -import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients } from '@vulcanize/util'; +import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients } from '@cerc-io/util'; import typeDefs from './schema'; diff --git a/packages/erc721-watcher/package.json b/packages/erc721-watcher/package.json index 30fc64bf..bbed0c66 100644 --- a/packages/erc721-watcher/package.json +++ b/packages/erc721-watcher/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/erc721-watcher", + "name": "@cerc-io/erc721-watcher", "version": "0.1.0", "description": "erc721-watcher", "private": true, @@ -29,21 +29,21 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", "@ethersproject/providers": "^5.4.4", "@ipld/dag-cbor": "^6.0.12", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/solidity-mapper": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", + "@cerc-io/util": "^0.1.0", "apollo-server-express": "^2.25.0", "apollo-type-bigint": "^0.1.3", "debug": "^4.3.1", diff --git a/packages/erc721-watcher/src/cli/checkpoint.ts b/packages/erc721-watcher/src/cli/checkpoint.ts index 990d64f0..17595d71 100644 --- a/packages/erc721-watcher/src/cli/checkpoint.ts +++ b/packages/erc721-watcher/src/cli/checkpoint.ts @@ -7,7 +7,7 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/erc721-watcher/src/cli/export-state.ts b/packages/erc721-watcher/src/cli/export-state.ts index 16c8956e..2344dffb 100644 --- a/packages/erc721-watcher/src/cli/export-state.ts +++ b/packages/erc721-watcher/src/cli/export-state.ts @@ -9,7 +9,7 @@ import debug from 'debug'; import fs from 'fs'; import path from 'path'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind } from '@cerc-io/util'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/erc721-watcher/src/cli/import-state.ts b/packages/erc721-watcher/src/cli/import-state.ts index 4f3aa5d8..6190f4a0 100644 --- a/packages/erc721-watcher/src/cli/import-state.ts +++ b/packages/erc721-watcher/src/cli/import-state.ts @@ -11,7 +11,7 @@ import { PubSub } from 'apollo-server-express'; import fs from 'fs'; import path from 'path'; -import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@vulcanize/util'; +import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@cerc-io/util'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/erc721-watcher/src/cli/index-block.ts b/packages/erc721-watcher/src/cli/index-block.ts index 7b81a9e4..8b00f79f 100644 --- a/packages/erc721-watcher/src/cli/index-block.ts +++ b/packages/erc721-watcher/src/cli/index-block.ts @@ -7,7 +7,7 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/erc721-watcher/src/cli/inspect-cid.ts b/packages/erc721-watcher/src/cli/inspect-cid.ts index d6c1acee..2b48fa32 100644 --- a/packages/erc721-watcher/src/cli/inspect-cid.ts +++ b/packages/erc721-watcher/src/cli/inspect-cid.ts @@ -8,7 +8,7 @@ import 'reflect-metadata'; import debug from 'debug'; import util from 'util'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/erc721-watcher/src/cli/reset-cmds/job-queue.ts b/packages/erc721-watcher/src/cli/reset-cmds/job-queue.ts index a8766bcf..520cd8b9 100644 --- a/packages/erc721-watcher/src/cli/reset-cmds/job-queue.ts +++ b/packages/erc721-watcher/src/cli/reset-cmds/job-queue.ts @@ -4,7 +4,7 @@ import debug from 'debug'; -import { getConfig, resetJobs } from '@vulcanize/util'; +import { getConfig, resetJobs } from '@cerc-io/util'; const log = debug('vulcanize:reset-job-queue'); diff --git a/packages/erc721-watcher/src/cli/reset-cmds/state.ts b/packages/erc721-watcher/src/cli/reset-cmds/state.ts index 61f21b31..68b15384 100644 --- a/packages/erc721-watcher/src/cli/reset-cmds/state.ts +++ b/packages/erc721-watcher/src/cli/reset-cmds/state.ts @@ -6,7 +6,7 @@ import debug from 'debug'; import { MoreThan } from 'typeorm'; import assert from 'assert'; -import { getConfig, initClients, resetJobs, JobQueue } from '@vulcanize/util'; +import { getConfig, initClients, resetJobs, JobQueue } from '@cerc-io/util'; import { Database } from '../../database'; import { Indexer } from '../../indexer'; diff --git a/packages/erc721-watcher/src/cli/reset.ts b/packages/erc721-watcher/src/cli/reset.ts index 2ddebf10..95648c88 100644 --- a/packages/erc721-watcher/src/cli/reset.ts +++ b/packages/erc721-watcher/src/cli/reset.ts @@ -5,7 +5,7 @@ import 'reflect-metadata'; import debug from 'debug'; -import { getResetYargs } from '@vulcanize/util'; +import { getResetYargs } from '@cerc-io/util'; const log = debug('vulcanize:reset'); diff --git a/packages/erc721-watcher/src/cli/watch-contract.ts b/packages/erc721-watcher/src/cli/watch-contract.ts index b22c49c7..440e35a4 100644 --- a/packages/erc721-watcher/src/cli/watch-contract.ts +++ b/packages/erc721-watcher/src/cli/watch-contract.ts @@ -7,7 +7,7 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/erc721-watcher/src/client.ts b/packages/erc721-watcher/src/client.ts index 616a8c94..986e707f 100644 --- a/packages/erc721-watcher/src/client.ts +++ b/packages/erc721-watcher/src/client.ts @@ -3,7 +3,7 @@ // import { gql } from '@apollo/client/core'; -import { GraphQLClient, GraphQLConfig } from '@vulcanize/ipld-eth-client'; +import { GraphQLClient, GraphQLConfig } from '@cerc-io/ipld-eth-client'; import { queries, mutations, subscriptions } from './gql'; diff --git a/packages/erc721-watcher/src/database.ts b/packages/erc721-watcher/src/database.ts index 46eb16eb..2bb0e5f1 100644 --- a/packages/erc721-watcher/src/database.ts +++ b/packages/erc721-watcher/src/database.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import { Connection, ConnectionOptions, DeepPartial, FindConditions, QueryRunner, FindManyOptions, FindOneOptions, LessThanOrEqual } from 'typeorm'; import path from 'path'; -import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@vulcanize/util'; +import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@cerc-io/util'; import { Contract } from './entity/Contract'; import { Event } from './entity/Event'; diff --git a/packages/erc721-watcher/src/entity/BalanceOf.ts b/packages/erc721-watcher/src/entity/BalanceOf.ts index 77f91af1..4578c8c7 100644 --- a/packages/erc721-watcher/src/entity/BalanceOf.ts +++ b/packages/erc721-watcher/src/entity/BalanceOf.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'owner'], { unique: true }) diff --git a/packages/erc721-watcher/src/entity/BlockProgress.ts b/packages/erc721-watcher/src/entity/BlockProgress.ts index a4ba34c1..1d9d9328 100644 --- a/packages/erc721-watcher/src/entity/BlockProgress.ts +++ b/packages/erc721-watcher/src/entity/BlockProgress.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index, CreateDateColumn } from 'typeorm'; -import { BlockProgressInterface } from '@vulcanize/util'; +import { BlockProgressInterface } from '@cerc-io/util'; @Entity() @Index(['blockHash'], { unique: true }) diff --git a/packages/erc721-watcher/src/entity/GetApproved.ts b/packages/erc721-watcher/src/entity/GetApproved.ts index 727c539b..1bfc8048 100644 --- a/packages/erc721-watcher/src/entity/GetApproved.ts +++ b/packages/erc721-watcher/src/entity/GetApproved.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'tokenId'], { unique: true }) diff --git a/packages/erc721-watcher/src/entity/IPLDBlock.ts b/packages/erc721-watcher/src/entity/IPLDBlock.ts index 25e5ca21..0fd42a19 100644 --- a/packages/erc721-watcher/src/entity/IPLDBlock.ts +++ b/packages/erc721-watcher/src/entity/IPLDBlock.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index, ManyToOne } from 'typeorm'; -import { StateKind } from '@vulcanize/util'; +import { StateKind } from '@cerc-io/util'; import { BlockProgress } from './BlockProgress'; @Entity() diff --git a/packages/erc721-watcher/src/entity/OwnerOf.ts b/packages/erc721-watcher/src/entity/OwnerOf.ts index 35e48727..0a15110c 100644 --- a/packages/erc721-watcher/src/entity/OwnerOf.ts +++ b/packages/erc721-watcher/src/entity/OwnerOf.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'tokenId'], { unique: true }) diff --git a/packages/erc721-watcher/src/entity/SyncStatus.ts b/packages/erc721-watcher/src/entity/SyncStatus.ts index 314a662f..1cfacda8 100644 --- a/packages/erc721-watcher/src/entity/SyncStatus.ts +++ b/packages/erc721-watcher/src/entity/SyncStatus.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; -import { SyncStatusInterface } from '@vulcanize/util'; +import { SyncStatusInterface } from '@cerc-io/util'; @Entity() export class SyncStatus implements SyncStatusInterface { diff --git a/packages/erc721-watcher/src/entity/TokenURI.ts b/packages/erc721-watcher/src/entity/TokenURI.ts index d783f321..b0645f93 100644 --- a/packages/erc721-watcher/src/entity/TokenURI.ts +++ b/packages/erc721-watcher/src/entity/TokenURI.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'tokenId'], { unique: true }) diff --git a/packages/erc721-watcher/src/entity/_Balances.ts b/packages/erc721-watcher/src/entity/_Balances.ts index 3b7c9c70..8a572db7 100644 --- a/packages/erc721-watcher/src/entity/_Balances.ts +++ b/packages/erc721-watcher/src/entity/_Balances.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'key0'], { unique: true }) diff --git a/packages/erc721-watcher/src/entity/_Owners.ts b/packages/erc721-watcher/src/entity/_Owners.ts index 3ee73ea4..5ee446eb 100644 --- a/packages/erc721-watcher/src/entity/_Owners.ts +++ b/packages/erc721-watcher/src/entity/_Owners.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'key0'], { unique: true }) diff --git a/packages/erc721-watcher/src/entity/_TokenApprovals.ts b/packages/erc721-watcher/src/entity/_TokenApprovals.ts index 032a16b3..0c992bec 100644 --- a/packages/erc721-watcher/src/entity/_TokenApprovals.ts +++ b/packages/erc721-watcher/src/entity/_TokenApprovals.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'key0'], { unique: true }) diff --git a/packages/erc721-watcher/src/events.ts b/packages/erc721-watcher/src/events.ts index a23a9f19..0eda7615 100644 --- a/packages/erc721-watcher/src/events.ts +++ b/packages/erc721-watcher/src/events.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JobQueue, EventWatcher as BaseEventWatcher, @@ -15,7 +15,7 @@ import { QUEUE_EVENT_PROCESSING, UNKNOWN_EVENT_NAME, UpstreamConfig -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Event } from './entity/Event'; diff --git a/packages/erc721-watcher/src/fill.ts b/packages/erc721-watcher/src/fill.ts index 349d1437..b916f4f4 100644 --- a/packages/erc721-watcher/src/fill.ts +++ b/packages/erc721-watcher/src/fill.ts @@ -9,7 +9,7 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@vulcanize/util'; +import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@cerc-io/util'; import { Database } from './database'; import { Indexer } from './indexer'; diff --git a/packages/erc721-watcher/src/hooks.ts b/packages/erc721-watcher/src/hooks.ts index e347cc26..9865888e 100644 --- a/packages/erc721-watcher/src/hooks.ts +++ b/packages/erc721-watcher/src/hooks.ts @@ -4,7 +4,7 @@ import assert from 'assert'; -import { updateStateForElementaryType } from '@vulcanize/util'; +import { updateStateForElementaryType } from '@cerc-io/util'; import { Indexer, ResultEvent } from './indexer'; import { TransferCount } from './entity/TransferCount'; diff --git a/packages/erc721-watcher/src/indexer.ts b/packages/erc721-watcher/src/indexer.ts index 7ea83b25..70624bad 100644 --- a/packages/erc721-watcher/src/indexer.ts +++ b/packages/erc721-watcher/src/indexer.ts @@ -11,8 +11,8 @@ import { ethers } from 'ethers'; import { JsonFragment } from '@ethersproject/abi'; import { BaseProvider } from '@ethersproject/providers'; import * as codec from '@ipld/dag-cbor'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; import { IPLDIndexer as BaseIndexer, IPLDIndexerInterface, @@ -28,7 +28,7 @@ import { IPFSClient, StateKind, IpldStatus as IpldStatusInterface -} from '@vulcanize/util'; +} from '@cerc-io/util'; import ERC721Artifacts from './artifacts/ERC721.json'; import { Database } from './database'; diff --git a/packages/erc721-watcher/src/job-runner.ts b/packages/erc721-watcher/src/job-runner.ts index 936746ca..42c5c6ed 100644 --- a/packages/erc721-watcher/src/job-runner.ts +++ b/packages/erc721-watcher/src/job-runner.ts @@ -23,7 +23,7 @@ import { DEFAULT_CONFIG_PATH, initClients, startMetricsServer -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Database } from './database'; diff --git a/packages/erc721-watcher/src/resolvers.ts b/packages/erc721-watcher/src/resolvers.ts index e01bc6ed..4581445e 100644 --- a/packages/erc721-watcher/src/resolvers.ts +++ b/packages/erc721-watcher/src/resolvers.ts @@ -8,7 +8,7 @@ import debug from 'debug'; import Decimal from 'decimal.js'; import { GraphQLScalarType } from 'graphql'; -import { ValueResult, BlockHeight, StateKind } from '@vulcanize/util'; +import { ValueResult, BlockHeight, StateKind } from '@cerc-io/util'; import { Indexer } from './indexer'; import { EventWatcher } from './events'; diff --git a/packages/erc721-watcher/src/server.ts b/packages/erc721-watcher/src/server.ts index 6d60c429..b79c9678 100644 --- a/packages/erc721-watcher/src/server.ts +++ b/packages/erc721-watcher/src/server.ts @@ -14,7 +14,7 @@ import debug from 'debug'; import 'graphql-import-node'; import { createServer } from 'http'; -import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients } from '@vulcanize/util'; +import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients } from '@cerc-io/util'; import { createResolvers } from './resolvers'; import { Indexer } from './indexer'; diff --git a/packages/graph-node/package.json b/packages/graph-node/package.json index 9d84e8ee..c6013ea8 100644 --- a/packages/graph-node/package.json +++ b/packages/graph-node/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/graph-node", + "name": "@cerc-io/graph-node", "version": "0.1.0", "main": "dist/index.js", "license": "AGPL-3.0", @@ -50,8 +50,8 @@ "@apollo/client": "^3.3.19", "@types/json-diff": "^0.5.2", "@vulcanize/assemblyscript": "0.0.1", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/util": "^0.1.0", "bn.js": "^4.11.9", "debug": "^4.3.1", "fs-extra": "^10.0.0", diff --git a/packages/graph-node/src/cli/compare/client.ts b/packages/graph-node/src/cli/compare/client.ts index 4b8af9c9..10227e95 100644 --- a/packages/graph-node/src/cli/compare/client.ts +++ b/packages/graph-node/src/cli/compare/client.ts @@ -8,8 +8,8 @@ import path from 'path'; import pluralize from 'pluralize'; import { gql } from '@apollo/client/core'; -import { GraphQLClient, Config } from '@vulcanize/ipld-eth-client'; -import { Cache } from '@vulcanize/cache'; +import { GraphQLClient, Config } from '@cerc-io/ipld-eth-client'; +import { Cache } from '@cerc-io/cache'; export class Client { _config: Config; diff --git a/packages/graph-node/src/cli/compare/compare-blocks.ts b/packages/graph-node/src/cli/compare/compare-blocks.ts index 5bd3a733..826c7006 100644 --- a/packages/graph-node/src/cli/compare/compare-blocks.ts +++ b/packages/graph-node/src/cli/compare/compare-blocks.ts @@ -9,8 +9,8 @@ import path from 'path'; import assert from 'assert'; import { SnakeNamingStrategy } from 'typeorm-naming-strategies'; import _ from 'lodash'; -import { getConfig as getWatcherConfig, wait } from '@vulcanize/util'; -import { GraphQLClient } from '@vulcanize/ipld-eth-client'; +import { getConfig as getWatcherConfig, wait } from '@cerc-io/util'; +import { GraphQLClient } from '@cerc-io/ipld-eth-client'; import { checkEntityInIPLDState, compareQuery, Config, getBlockIPLDState as getIPLDStateByBlock, getClients, getConfig } from './utils'; import { Database } from '../../database'; diff --git a/packages/graph-node/src/cli/compare/utils.ts b/packages/graph-node/src/cli/compare/utils.ts index 6d4c8e65..69e9b8bb 100644 --- a/packages/graph-node/src/cli/compare/utils.ts +++ b/packages/graph-node/src/cli/compare/utils.ts @@ -11,8 +11,8 @@ import { diffString, diff } from 'json-diff'; import _ from 'lodash'; import omitDeep from 'omit-deep'; -import { Config as CacheConfig, getCache } from '@vulcanize/cache'; -import { GraphQLClient } from '@vulcanize/ipld-eth-client'; +import { Config as CacheConfig, getCache } from '@cerc-io/cache'; +import { GraphQLClient } from '@cerc-io/ipld-eth-client'; import { gql } from '@apollo/client/core'; import { Client } from './client'; diff --git a/packages/graph-node/src/database.ts b/packages/graph-node/src/database.ts index b549fe02..46203aff 100644 --- a/packages/graph-node/src/database.ts +++ b/packages/graph-node/src/database.ts @@ -18,7 +18,7 @@ import { Database as BaseDatabase, QueryOptions, Where -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Block, fromEntityValue, toEntityValue } from './utils'; diff --git a/packages/graph-node/src/loader.ts b/packages/graph-node/src/loader.ts index 34caab59..a3885f72 100644 --- a/packages/graph-node/src/loader.ts +++ b/packages/graph-node/src/loader.ts @@ -15,7 +15,7 @@ import debug from 'debug'; import { BaseProvider } from '@ethersproject/providers'; import loader from '@vulcanize/assemblyscript/lib/loader'; -import { IndexerInterface, GraphDecimal, getGraphDigitsAndExp, jsonBigIntStringReplacer } from '@vulcanize/util'; +import { IndexerInterface, GraphDecimal, getGraphDigitsAndExp, jsonBigIntStringReplacer } from '@cerc-io/util'; import { TypeId, Level } from './types'; import { diff --git a/packages/graph-node/src/numbers.test.ts b/packages/graph-node/src/numbers.test.ts index db6d674e..6b58d903 100644 --- a/packages/graph-node/src/numbers.test.ts +++ b/packages/graph-node/src/numbers.test.ts @@ -6,7 +6,7 @@ import path from 'path'; import { expect } from 'chai'; import BN from 'bn.js'; -import { GraphDecimal } from '@vulcanize/util'; +import { GraphDecimal } from '@cerc-io/util'; import { BaseProvider } from '@ethersproject/providers'; import { instantiate } from './loader'; diff --git a/packages/graph-node/src/utils.ts b/packages/graph-node/src/utils.ts index 54a0cb47..79548cc9 100644 --- a/packages/graph-node/src/utils.ts +++ b/packages/graph-node/src/utils.ts @@ -6,10 +6,10 @@ import yaml from 'js-yaml'; import { ColumnMetadata } from 'typeorm/metadata/ColumnMetadata'; import assert from 'assert'; -import { GraphDecimal, jsonBigIntStringReplacer } from '@vulcanize/util'; +import { GraphDecimal, jsonBigIntStringReplacer } from '@cerc-io/util'; import { TypeId, EthereumValueKind, ValueKind } from './types'; -import { MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; +import { MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; const log = debug('vulcanize:utils'); diff --git a/packages/graph-node/src/watcher.ts b/packages/graph-node/src/watcher.ts index a7c521dc..1eaefff8 100644 --- a/packages/graph-node/src/watcher.ts +++ b/packages/graph-node/src/watcher.ts @@ -10,8 +10,8 @@ import fs from 'fs'; import { ContractInterface, utils, providers } from 'ethers'; import { ResultObject } from '@vulcanize/assemblyscript/lib/loader'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { IndexerInterface, getFullBlock, BlockHeight, ServerConfig, getFullTransaction, QueryOptions } from '@vulcanize/util'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { IndexerInterface, getFullBlock, BlockHeight, ServerConfig, getFullTransaction, QueryOptions } from '@cerc-io/util'; import { createBlock, createEvent, getSubgraphConfig, resolveEntityFieldConflicts, Transaction } from './utils'; import { Context, GraphData, instantiate } from './loader'; diff --git a/packages/graph-node/test/utils/index.ts b/packages/graph-node/test/utils/index.ts index 9e94c792..b464f9ba 100644 --- a/packages/graph-node/test/utils/index.ts +++ b/packages/graph-node/test/utils/index.ts @@ -3,9 +3,9 @@ // import { BaseProvider } from '@ethersproject/providers'; -import { getCustomProvider } from '@vulcanize/util'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { StorageLayout } from '@vulcanize/solidity-mapper'; +import { getCustomProvider } from '@cerc-io/util'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { StorageLayout } from '@cerc-io/solidity-mapper'; import { EventData } from '../../src/utils'; import { Database } from '../../src/database'; diff --git a/packages/graph-node/test/utils/indexer.ts b/packages/graph-node/test/utils/indexer.ts index fe1a20a2..9fd6f4c1 100644 --- a/packages/graph-node/test/utils/indexer.ts +++ b/packages/graph-node/test/utils/indexer.ts @@ -8,9 +8,9 @@ import { SyncStatusInterface, ServerConfig as ServerConfigInterface, ValueResult -} from '@vulcanize/util'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { GetStorageAt, getStorageValue, MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; +} from '@cerc-io/util'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { GetStorageAt, getStorageValue, MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; export class Indexer implements IndexerInterface { _getStorageAt: GetStorageAt; diff --git a/packages/graph-test-watcher/package.json b/packages/graph-test-watcher/package.json index 26dabe42..40f2f6ef 100644 --- a/packages/graph-test-watcher/package.json +++ b/packages/graph-test-watcher/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/graph-test-watcher", + "name": "@cerc-io/graph-test-watcher", "version": "0.1.0", "description": "graph-test-watcher", "private": true, @@ -24,23 +24,23 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", "@ethersproject/providers": "^5.4.4", "@ipld/dag-cbor": "^6.0.12", - "@vulcanize/cache": "^0.1.0", - "@vulcanize/graph-node": "^0.1.0", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/solidity-mapper": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/cache": "^0.1.0", + "@cerc-io/graph-node": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", + "@cerc-io/util": "^0.1.0", "apollo-server-express": "^2.25.0", "apollo-type-bigint": "^0.1.3", "debug": "^4.3.1", diff --git a/packages/graph-test-watcher/src/cli/checkpoint.ts b/packages/graph-test-watcher/src/cli/checkpoint.ts index 67888bf7..5319fe9e 100644 --- a/packages/graph-test-watcher/src/cli/checkpoint.ts +++ b/packages/graph-test-watcher/src/cli/checkpoint.ts @@ -8,8 +8,8 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/graph-test-watcher/src/cli/export-state.ts b/packages/graph-test-watcher/src/cli/export-state.ts index 67928335..45a2a5b5 100644 --- a/packages/graph-test-watcher/src/cli/export-state.ts +++ b/packages/graph-test-watcher/src/cli/export-state.ts @@ -9,8 +9,8 @@ import debug from 'debug'; import fs from 'fs'; import path from 'path'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind, verifyCheckpointData } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind, verifyCheckpointData } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/graph-test-watcher/src/cli/import-state.ts b/packages/graph-test-watcher/src/cli/import-state.ts index 6890ada6..d6d0aedf 100644 --- a/packages/graph-test-watcher/src/cli/import-state.ts +++ b/packages/graph-test-watcher/src/cli/import-state.ts @@ -11,8 +11,8 @@ import { PubSub } from 'apollo-server-express'; import fs from 'fs'; import path from 'path'; -import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/graph-test-watcher/src/cli/index-block.ts b/packages/graph-test-watcher/src/cli/index-block.ts index dd5f29e8..99f61de2 100644 --- a/packages/graph-test-watcher/src/cli/index-block.ts +++ b/packages/graph-test-watcher/src/cli/index-block.ts @@ -8,8 +8,8 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/graph-test-watcher/src/cli/inspect-cid.ts b/packages/graph-test-watcher/src/cli/inspect-cid.ts index 775bbb05..fa4de97d 100644 --- a/packages/graph-test-watcher/src/cli/inspect-cid.ts +++ b/packages/graph-test-watcher/src/cli/inspect-cid.ts @@ -9,8 +9,8 @@ import 'reflect-metadata'; import debug from 'debug'; import util from 'util'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/graph-test-watcher/src/cli/reset-cmds/job-queue.ts b/packages/graph-test-watcher/src/cli/reset-cmds/job-queue.ts index a8766bcf..520cd8b9 100644 --- a/packages/graph-test-watcher/src/cli/reset-cmds/job-queue.ts +++ b/packages/graph-test-watcher/src/cli/reset-cmds/job-queue.ts @@ -4,7 +4,7 @@ import debug from 'debug'; -import { getConfig, resetJobs } from '@vulcanize/util'; +import { getConfig, resetJobs } from '@cerc-io/util'; const log = debug('vulcanize:reset-job-queue'); diff --git a/packages/graph-test-watcher/src/cli/reset-cmds/state.ts b/packages/graph-test-watcher/src/cli/reset-cmds/state.ts index 60413dbf..8b876a0b 100644 --- a/packages/graph-test-watcher/src/cli/reset-cmds/state.ts +++ b/packages/graph-test-watcher/src/cli/reset-cmds/state.ts @@ -7,8 +7,8 @@ import debug from 'debug'; import { MoreThan } from 'typeorm'; import assert from 'assert'; -import { getConfig, initClients, resetJobs, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { getConfig, initClients, resetJobs, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../../database'; import { Indexer } from '../../indexer'; diff --git a/packages/graph-test-watcher/src/cli/reset.ts b/packages/graph-test-watcher/src/cli/reset.ts index 2ddebf10..95648c88 100644 --- a/packages/graph-test-watcher/src/cli/reset.ts +++ b/packages/graph-test-watcher/src/cli/reset.ts @@ -5,7 +5,7 @@ import 'reflect-metadata'; import debug from 'debug'; -import { getResetYargs } from '@vulcanize/util'; +import { getResetYargs } from '@cerc-io/util'; const log = debug('vulcanize:reset'); diff --git a/packages/graph-test-watcher/src/cli/watch-contract.ts b/packages/graph-test-watcher/src/cli/watch-contract.ts index cb39c611..9147dd96 100644 --- a/packages/graph-test-watcher/src/cli/watch-contract.ts +++ b/packages/graph-test-watcher/src/cli/watch-contract.ts @@ -8,8 +8,8 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/graph-test-watcher/src/client.ts b/packages/graph-test-watcher/src/client.ts index 877bc2c7..16aad813 100644 --- a/packages/graph-test-watcher/src/client.ts +++ b/packages/graph-test-watcher/src/client.ts @@ -3,7 +3,7 @@ // import { gql } from '@apollo/client/core'; -import { GraphQLClient, GraphQLConfig } from '@vulcanize/ipld-eth-client'; +import { GraphQLClient, GraphQLConfig } from '@cerc-io/ipld-eth-client'; import { queries, mutations, subscriptions } from './gql'; diff --git a/packages/graph-test-watcher/src/database.ts b/packages/graph-test-watcher/src/database.ts index 28ec89e6..4f8409a4 100644 --- a/packages/graph-test-watcher/src/database.ts +++ b/packages/graph-test-watcher/src/database.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import { Connection, ConnectionOptions, DeepPartial, FindConditions, QueryRunner, FindManyOptions } from 'typeorm'; import path from 'path'; -import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@vulcanize/util'; +import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@cerc-io/util'; import { Contract } from './entity/Contract'; import { Event } from './entity/Event'; diff --git a/packages/graph-test-watcher/src/entity/Author.ts b/packages/graph-test-watcher/src/entity/Author.ts index e8e3ea24..aa19feb1 100644 --- a/packages/graph-test-watcher/src/entity/Author.ts +++ b/packages/graph-test-watcher/src/entity/Author.ts @@ -5,7 +5,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; import Decimal from 'decimal.js'; -import { bigintTransformer, decimalTransformer } from '@vulcanize/util'; +import { bigintTransformer, decimalTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/graph-test-watcher/src/entity/BlockProgress.ts b/packages/graph-test-watcher/src/entity/BlockProgress.ts index a4ba34c1..1d9d9328 100644 --- a/packages/graph-test-watcher/src/entity/BlockProgress.ts +++ b/packages/graph-test-watcher/src/entity/BlockProgress.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index, CreateDateColumn } from 'typeorm'; -import { BlockProgressInterface } from '@vulcanize/util'; +import { BlockProgressInterface } from '@cerc-io/util'; @Entity() @Index(['blockHash'], { unique: true }) diff --git a/packages/graph-test-watcher/src/entity/Blog.ts b/packages/graph-test-watcher/src/entity/Blog.ts index 6d8c54bd..6d7ff5c0 100644 --- a/packages/graph-test-watcher/src/entity/Blog.ts +++ b/packages/graph-test-watcher/src/entity/Blog.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintArrayTransformer } from '@vulcanize/util'; +import { bigintArrayTransformer } from '@cerc-io/util'; enum BlogType { short = 'short', diff --git a/packages/graph-test-watcher/src/entity/Category.ts b/packages/graph-test-watcher/src/entity/Category.ts index 1d8a5d7e..f6a39ebb 100644 --- a/packages/graph-test-watcher/src/entity/Category.ts +++ b/packages/graph-test-watcher/src/entity/Category.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockNumber']) diff --git a/packages/graph-test-watcher/src/entity/IPLDBlock.ts b/packages/graph-test-watcher/src/entity/IPLDBlock.ts index 95454057..ddcf2660 100644 --- a/packages/graph-test-watcher/src/entity/IPLDBlock.ts +++ b/packages/graph-test-watcher/src/entity/IPLDBlock.ts @@ -4,7 +4,7 @@ import { Entity, PrimaryGeneratedColumn, Column, Index, ManyToOne } from 'typeorm'; -import { StateKind } from '@vulcanize/util'; +import { StateKind } from '@cerc-io/util'; import { BlockProgress } from './BlockProgress'; diff --git a/packages/graph-test-watcher/src/entity/SyncStatus.ts b/packages/graph-test-watcher/src/entity/SyncStatus.ts index 314a662f..1cfacda8 100644 --- a/packages/graph-test-watcher/src/entity/SyncStatus.ts +++ b/packages/graph-test-watcher/src/entity/SyncStatus.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; -import { SyncStatusInterface } from '@vulcanize/util'; +import { SyncStatusInterface } from '@cerc-io/util'; @Entity() export class SyncStatus implements SyncStatusInterface { diff --git a/packages/graph-test-watcher/src/entity/_Test.ts b/packages/graph-test-watcher/src/entity/_Test.ts index 7681c4bb..64b73bae 100644 --- a/packages/graph-test-watcher/src/entity/_Test.ts +++ b/packages/graph-test-watcher/src/entity/_Test.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress'], { unique: true }) diff --git a/packages/graph-test-watcher/src/events.ts b/packages/graph-test-watcher/src/events.ts index a23a9f19..0eda7615 100644 --- a/packages/graph-test-watcher/src/events.ts +++ b/packages/graph-test-watcher/src/events.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JobQueue, EventWatcher as BaseEventWatcher, @@ -15,7 +15,7 @@ import { QUEUE_EVENT_PROCESSING, UNKNOWN_EVENT_NAME, UpstreamConfig -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Event } from './entity/Event'; diff --git a/packages/graph-test-watcher/src/fill.ts b/packages/graph-test-watcher/src/fill.ts index af2e61a4..19d015f4 100644 --- a/packages/graph-test-watcher/src/fill.ts +++ b/packages/graph-test-watcher/src/fill.ts @@ -10,8 +10,8 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Database } from './database'; import { Indexer } from './indexer'; diff --git a/packages/graph-test-watcher/src/indexer.ts b/packages/graph-test-watcher/src/indexer.ts index bb11c107..2f1643a8 100644 --- a/packages/graph-test-watcher/src/indexer.ts +++ b/packages/graph-test-watcher/src/indexer.ts @@ -12,8 +12,8 @@ import _ from 'lodash'; import { JsonFragment } from '@ethersproject/abi'; import { BaseProvider } from '@ethersproject/providers'; import * as codec from '@ipld/dag-cbor'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { StorageLayout, MappingKey } from '@vulcanize/solidity-mapper'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { StorageLayout, MappingKey } from '@cerc-io/solidity-mapper'; import { IPLDIndexer as BaseIndexer, ValueResult, @@ -28,8 +28,8 @@ import { StateKind, IPLDIndexerInterface, IpldStatus as IpldStatusInterface -} from '@vulcanize/util'; -import { GraphWatcher } from '@vulcanize/graph-node'; +} from '@cerc-io/util'; +import { GraphWatcher } from '@cerc-io/graph-node'; import { Database } from './database'; import { Contract } from './entity/Contract'; diff --git a/packages/graph-test-watcher/src/job-runner.ts b/packages/graph-test-watcher/src/job-runner.ts index cb87b84b..7be46d6a 100644 --- a/packages/graph-test-watcher/src/job-runner.ts +++ b/packages/graph-test-watcher/src/job-runner.ts @@ -24,8 +24,8 @@ import { DEFAULT_CONFIG_PATH, initClients, startMetricsServer -} from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +} from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { Indexer } from './indexer'; import { Database } from './database'; diff --git a/packages/graph-test-watcher/src/resolvers.ts b/packages/graph-test-watcher/src/resolvers.ts index a564184c..b09e3d3a 100644 --- a/packages/graph-test-watcher/src/resolvers.ts +++ b/packages/graph-test-watcher/src/resolvers.ts @@ -8,7 +8,7 @@ import debug from 'debug'; import Decimal from 'decimal.js'; import { GraphQLScalarType } from 'graphql'; -import { ValueResult, BlockHeight, StateKind, jsonBigIntStringReplacer } from '@vulcanize/util'; +import { ValueResult, BlockHeight, StateKind, jsonBigIntStringReplacer } from '@cerc-io/util'; import { Indexer } from './indexer'; import { EventWatcher } from './events'; diff --git a/packages/graph-test-watcher/src/server.ts b/packages/graph-test-watcher/src/server.ts index c2f6e485..be6c5af1 100644 --- a/packages/graph-test-watcher/src/server.ts +++ b/packages/graph-test-watcher/src/server.ts @@ -14,8 +14,8 @@ import debug from 'debug'; import 'graphql-import-node'; import { createServer } from 'http'; -import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients } from '@vulcanize/util'; -import { GraphWatcher, Database as GraphDatabase } from '@vulcanize/graph-node'; +import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients } from '@cerc-io/util'; +import { GraphWatcher, Database as GraphDatabase } from '@cerc-io/graph-node'; import { createResolvers } from './resolvers'; import { Indexer } from './indexer'; diff --git a/packages/ipld-eth-client/package.json b/packages/ipld-eth-client/package.json index 3e1285aa..58a9a570 100644 --- a/packages/ipld-eth-client/package.json +++ b/packages/ipld-eth-client/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/ipld-eth-client", + "name": "@cerc-io/ipld-eth-client", "version": "0.1.0", "description": "IPLD ETH Client", "private": true, @@ -11,17 +11,17 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", - "@vulcanize/cache": "^0.1.0", + "@cerc-io/cache": "^0.1.0", "cross-fetch": "^3.1.4", "ethers": "^5.4.4", "graphql": "^15.5.0", diff --git a/packages/ipld-eth-client/src/eth-client.ts b/packages/ipld-eth-client/src/eth-client.ts index 8883abcf..502a62ab 100644 --- a/packages/ipld-eth-client/src/eth-client.ts +++ b/packages/ipld-eth-client/src/eth-client.ts @@ -4,7 +4,7 @@ import assert from 'assert'; -import { Cache } from '@vulcanize/cache'; +import { Cache } from '@cerc-io/cache'; import ethQueries from './eth-queries'; import { padKey } from './utils'; diff --git a/packages/lighthouse-watcher/package.json b/packages/lighthouse-watcher/package.json index ba90dc6c..cd955db7 100644 --- a/packages/lighthouse-watcher/package.json +++ b/packages/lighthouse-watcher/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/lighthouse-watcher", + "name": "@cerc-io/lighthouse-watcher", "version": "0.1.0", "main": "index.js", "license": "AGPL-3.0", @@ -15,9 +15,9 @@ "lighthouse:store": "hardhat lighthouse-store" }, "dependencies": { - "@vulcanize/cache": "^0.1.0", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/cache": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/util": "^0.1.0", "@apollo/client": "^3.3.19", "apollo-server-express": "^2.25.0", "apollo-type-bigint": "^0.1.3", diff --git a/packages/lighthouse-watcher/src/client.ts b/packages/lighthouse-watcher/src/client.ts index aba19ba8..1be1f42f 100644 --- a/packages/lighthouse-watcher/src/client.ts +++ b/packages/lighthouse-watcher/src/client.ts @@ -3,7 +3,7 @@ // import { gql } from '@apollo/client/core'; -import { GraphQLClient, GraphQLConfig } from '@vulcanize/ipld-eth-client'; +import { GraphQLClient, GraphQLConfig } from '@cerc-io/ipld-eth-client'; import { subscribeEvents } from './queries'; diff --git a/packages/lighthouse-watcher/src/events.ts b/packages/lighthouse-watcher/src/events.ts index c18bbf02..51790a04 100644 --- a/packages/lighthouse-watcher/src/events.ts +++ b/packages/lighthouse-watcher/src/events.ts @@ -7,7 +7,7 @@ import debug from 'debug'; import _ from 'lodash'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { Indexer, ResultEvent, UNKNOWN_EVENT_NAME } from './indexer'; const log = debug('vulcanize:events'); diff --git a/packages/lighthouse-watcher/src/indexer.ts b/packages/lighthouse-watcher/src/indexer.ts index 626e6930..2f333019 100644 --- a/packages/lighthouse-watcher/src/indexer.ts +++ b/packages/lighthouse-watcher/src/indexer.ts @@ -7,8 +7,8 @@ import JSONbig from 'json-bigint'; import { ethers } from 'ethers'; import assert from 'assert'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { Config as BaseConfig } from '@vulcanize/util'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { Config as BaseConfig } from '@cerc-io/util'; import lighthouseABI from './abi/Lighthouse.json'; diff --git a/packages/lighthouse-watcher/src/server.ts b/packages/lighthouse-watcher/src/server.ts index 02761e18..8b9b4fe1 100644 --- a/packages/lighthouse-watcher/src/server.ts +++ b/packages/lighthouse-watcher/src/server.ts @@ -11,9 +11,9 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { createServer } from 'http'; -import { getCache } from '@vulcanize/cache'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { DEFAULT_CONFIG_PATH, getConfig } from '@vulcanize/util'; +import { getCache } from '@cerc-io/cache'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { DEFAULT_CONFIG_PATH, getConfig } from '@cerc-io/util'; import typeDefs from './schema'; diff --git a/packages/lighthouse-watcher/src/smoke.test.ts b/packages/lighthouse-watcher/src/smoke.test.ts index b6dbb9d2..55a84a9a 100644 --- a/packages/lighthouse-watcher/src/smoke.test.ts +++ b/packages/lighthouse-watcher/src/smoke.test.ts @@ -9,7 +9,7 @@ import 'mocha'; import { getConfig -} from '@vulcanize/util'; +} from '@cerc-io/util'; import lighthouseABI from './abi/Lighthouse.json'; import { Config } from './indexer'; diff --git a/packages/mobymask-watcher/demo.md b/packages/mobymask-watcher/demo.md index 7c0c0f5b..f86bc84b 100644 --- a/packages/mobymask-watcher/demo.md +++ b/packages/mobymask-watcher/demo.md @@ -98,7 +98,7 @@ yarn job-runner ``` -* Clone the [MobyMask](https://github.com/vulcanize/MobyMask) repo. +* Clone the [MobyMask](https://github.com/cerc-io/MobyMask) repo. * Checkout to the branch with changes for using this watcher: diff --git a/packages/mobymask-watcher/package.json b/packages/mobymask-watcher/package.json index 435f647c..20834820 100644 --- a/packages/mobymask-watcher/package.json +++ b/packages/mobymask-watcher/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/mobymask-watcher", + "name": "@cerc-io/mobymask-watcher", "version": "0.1.0", "description": "mobymask-watcher", "private": true, @@ -24,21 +24,21 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "@apollo/client": "^3.3.19", "@ethersproject/providers": "^5.4.4", "@ipld/dag-cbor": "^6.0.12", - "@vulcanize/ipld-eth-client": "^0.1.0", - "@vulcanize/solidity-mapper": "^0.1.0", - "@vulcanize/util": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", + "@cerc-io/util": "^0.1.0", "apollo-server-express": "^2.25.0", "apollo-type-bigint": "^0.1.3", "debug": "^4.3.1", diff --git a/packages/mobymask-watcher/src/cli/checkpoint.ts b/packages/mobymask-watcher/src/cli/checkpoint.ts index 990d64f0..17595d71 100644 --- a/packages/mobymask-watcher/src/cli/checkpoint.ts +++ b/packages/mobymask-watcher/src/cli/checkpoint.ts @@ -7,7 +7,7 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/mobymask-watcher/src/cli/export-state.ts b/packages/mobymask-watcher/src/cli/export-state.ts index 16c8956e..2344dffb 100644 --- a/packages/mobymask-watcher/src/cli/export-state.ts +++ b/packages/mobymask-watcher/src/cli/export-state.ts @@ -9,7 +9,7 @@ import debug from 'debug'; import fs from 'fs'; import path from 'path'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, StateKind } from '@cerc-io/util'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/mobymask-watcher/src/cli/import-state.ts b/packages/mobymask-watcher/src/cli/import-state.ts index 4f3aa5d8..6190f4a0 100644 --- a/packages/mobymask-watcher/src/cli/import-state.ts +++ b/packages/mobymask-watcher/src/cli/import-state.ts @@ -11,7 +11,7 @@ import { PubSub } from 'apollo-server-express'; import fs from 'fs'; import path from 'path'; -import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@vulcanize/util'; +import { getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, Config, initClients, StateKind } from '@cerc-io/util'; import * as codec from '@ipld/dag-cbor'; import { Database } from '../database'; diff --git a/packages/mobymask-watcher/src/cli/index-block.ts b/packages/mobymask-watcher/src/cli/index-block.ts index 7b81a9e4..8b00f79f 100644 --- a/packages/mobymask-watcher/src/cli/index-block.ts +++ b/packages/mobymask-watcher/src/cli/index-block.ts @@ -7,7 +7,7 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue, indexBlock } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/mobymask-watcher/src/cli/inspect-cid.ts b/packages/mobymask-watcher/src/cli/inspect-cid.ts index d6c1acee..2b48fa32 100644 --- a/packages/mobymask-watcher/src/cli/inspect-cid.ts +++ b/packages/mobymask-watcher/src/cli/inspect-cid.ts @@ -8,7 +8,7 @@ import 'reflect-metadata'; import debug from 'debug'; import util from 'util'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/mobymask-watcher/src/cli/reset-cmds/job-queue.ts b/packages/mobymask-watcher/src/cli/reset-cmds/job-queue.ts index a8766bcf..520cd8b9 100644 --- a/packages/mobymask-watcher/src/cli/reset-cmds/job-queue.ts +++ b/packages/mobymask-watcher/src/cli/reset-cmds/job-queue.ts @@ -4,7 +4,7 @@ import debug from 'debug'; -import { getConfig, resetJobs } from '@vulcanize/util'; +import { getConfig, resetJobs } from '@cerc-io/util'; const log = debug('vulcanize:reset-job-queue'); diff --git a/packages/mobymask-watcher/src/cli/reset-cmds/state.ts b/packages/mobymask-watcher/src/cli/reset-cmds/state.ts index 680e87d3..5bb02e11 100644 --- a/packages/mobymask-watcher/src/cli/reset-cmds/state.ts +++ b/packages/mobymask-watcher/src/cli/reset-cmds/state.ts @@ -6,7 +6,7 @@ import debug from 'debug'; import { MoreThan } from 'typeorm'; import assert from 'assert'; -import { getConfig, initClients, resetJobs, JobQueue } from '@vulcanize/util'; +import { getConfig, initClients, resetJobs, JobQueue } from '@cerc-io/util'; import { Database } from '../../database'; import { Indexer } from '../../indexer'; diff --git a/packages/mobymask-watcher/src/cli/reset.ts b/packages/mobymask-watcher/src/cli/reset.ts index 2ddebf10..95648c88 100644 --- a/packages/mobymask-watcher/src/cli/reset.ts +++ b/packages/mobymask-watcher/src/cli/reset.ts @@ -5,7 +5,7 @@ import 'reflect-metadata'; import debug from 'debug'; -import { getResetYargs } from '@vulcanize/util'; +import { getResetYargs } from '@cerc-io/util'; const log = debug('vulcanize:reset'); diff --git a/packages/mobymask-watcher/src/cli/watch-contract.ts b/packages/mobymask-watcher/src/cli/watch-contract.ts index b22c49c7..440e35a4 100644 --- a/packages/mobymask-watcher/src/cli/watch-contract.ts +++ b/packages/mobymask-watcher/src/cli/watch-contract.ts @@ -7,7 +7,7 @@ import 'reflect-metadata'; import debug from 'debug'; import assert from 'assert'; -import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@vulcanize/util'; +import { Config, DEFAULT_CONFIG_PATH, getConfig, initClients, JobQueue } from '@cerc-io/util'; import { Database } from '../database'; import { Indexer } from '../indexer'; diff --git a/packages/mobymask-watcher/src/client.ts b/packages/mobymask-watcher/src/client.ts index c747c9bb..7f9555af 100644 --- a/packages/mobymask-watcher/src/client.ts +++ b/packages/mobymask-watcher/src/client.ts @@ -3,7 +3,7 @@ // import { gql } from '@apollo/client/core'; -import { GraphQLClient, GraphQLConfig } from '@vulcanize/ipld-eth-client'; +import { GraphQLClient, GraphQLConfig } from '@cerc-io/ipld-eth-client'; import { queries, mutations, subscriptions } from './gql'; diff --git a/packages/mobymask-watcher/src/database.ts b/packages/mobymask-watcher/src/database.ts index 2366bc67..73c3af12 100644 --- a/packages/mobymask-watcher/src/database.ts +++ b/packages/mobymask-watcher/src/database.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import { Connection, ConnectionOptions, DeepPartial, FindConditions, QueryRunner, FindManyOptions, LessThanOrEqual } from 'typeorm'; import path from 'path'; -import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@vulcanize/util'; +import { IPLDDatabase as BaseDatabase, IPLDDatabaseInterface, QueryOptions, StateKind, Where } from '@cerc-io/util'; import { Contract } from './entity/Contract'; import { Event } from './entity/Event'; diff --git a/packages/mobymask-watcher/src/entity/BlockProgress.ts b/packages/mobymask-watcher/src/entity/BlockProgress.ts index a4ba34c1..1d9d9328 100644 --- a/packages/mobymask-watcher/src/entity/BlockProgress.ts +++ b/packages/mobymask-watcher/src/entity/BlockProgress.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index, CreateDateColumn } from 'typeorm'; -import { BlockProgressInterface } from '@vulcanize/util'; +import { BlockProgressInterface } from '@cerc-io/util'; @Entity() @Index(['blockHash'], { unique: true }) diff --git a/packages/mobymask-watcher/src/entity/IPLDBlock.ts b/packages/mobymask-watcher/src/entity/IPLDBlock.ts index 25e5ca21..0fd42a19 100644 --- a/packages/mobymask-watcher/src/entity/IPLDBlock.ts +++ b/packages/mobymask-watcher/src/entity/IPLDBlock.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index, ManyToOne } from 'typeorm'; -import { StateKind } from '@vulcanize/util'; +import { StateKind } from '@cerc-io/util'; import { BlockProgress } from './BlockProgress'; @Entity() diff --git a/packages/mobymask-watcher/src/entity/MultiNonce.ts b/packages/mobymask-watcher/src/entity/MultiNonce.ts index 48de796c..44254c34 100644 --- a/packages/mobymask-watcher/src/entity/MultiNonce.ts +++ b/packages/mobymask-watcher/src/entity/MultiNonce.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; -import { bigintTransformer } from '@vulcanize/util'; +import { bigintTransformer } from '@cerc-io/util'; @Entity() @Index(['blockHash', 'contractAddress', 'key0', 'key1'], { unique: true }) diff --git a/packages/mobymask-watcher/src/entity/SyncStatus.ts b/packages/mobymask-watcher/src/entity/SyncStatus.ts index 314a662f..1cfacda8 100644 --- a/packages/mobymask-watcher/src/entity/SyncStatus.ts +++ b/packages/mobymask-watcher/src/entity/SyncStatus.ts @@ -3,7 +3,7 @@ // import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; -import { SyncStatusInterface } from '@vulcanize/util'; +import { SyncStatusInterface } from '@cerc-io/util'; @Entity() export class SyncStatus implements SyncStatusInterface { diff --git a/packages/mobymask-watcher/src/events.ts b/packages/mobymask-watcher/src/events.ts index a23a9f19..0eda7615 100644 --- a/packages/mobymask-watcher/src/events.ts +++ b/packages/mobymask-watcher/src/events.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JobQueue, EventWatcher as BaseEventWatcher, @@ -15,7 +15,7 @@ import { QUEUE_EVENT_PROCESSING, UNKNOWN_EVENT_NAME, UpstreamConfig -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Event } from './entity/Event'; diff --git a/packages/mobymask-watcher/src/fill.ts b/packages/mobymask-watcher/src/fill.ts index 349d1437..b916f4f4 100644 --- a/packages/mobymask-watcher/src/fill.ts +++ b/packages/mobymask-watcher/src/fill.ts @@ -9,7 +9,7 @@ import { hideBin } from 'yargs/helpers'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@vulcanize/util'; +import { Config, getConfig, fillBlocks, JobQueue, DEFAULT_CONFIG_PATH, initClients } from '@cerc-io/util'; import { Database } from './database'; import { Indexer } from './indexer'; diff --git a/packages/mobymask-watcher/src/hooks.ts b/packages/mobymask-watcher/src/hooks.ts index 057cd088..c35bb49c 100644 --- a/packages/mobymask-watcher/src/hooks.ts +++ b/packages/mobymask-watcher/src/hooks.ts @@ -5,7 +5,7 @@ import assert from 'assert'; import { utils } from 'ethers'; -// import { updateStateForMappingType, updateStateForElementaryType } from '@vulcanize/util'; +// import { updateStateForMappingType, updateStateForElementaryType } from '@cerc-io/util'; import { Indexer, KIND_PHISHERREGISTRY, ResultEvent } from './indexer'; diff --git a/packages/mobymask-watcher/src/indexer.ts b/packages/mobymask-watcher/src/indexer.ts index 3c704cdb..fc4847f0 100644 --- a/packages/mobymask-watcher/src/indexer.ts +++ b/packages/mobymask-watcher/src/indexer.ts @@ -11,8 +11,8 @@ import { ethers } from 'ethers'; import { JsonFragment } from '@ethersproject/abi'; import { JsonRpcProvider } from '@ethersproject/providers'; import * as codec from '@ipld/dag-cbor'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; import { IPLDIndexer as BaseIndexer, IPLDIndexerInterface, @@ -29,7 +29,7 @@ import { StateKind, IpldStatus as IpldStatusInterface, getFullTransaction -} from '@vulcanize/util'; +} from '@cerc-io/util'; import PhisherRegistryArtifacts from './artifacts/PhisherRegistry.json'; import { Database } from './database'; diff --git a/packages/mobymask-watcher/src/job-runner.ts b/packages/mobymask-watcher/src/job-runner.ts index 936746ca..42c5c6ed 100644 --- a/packages/mobymask-watcher/src/job-runner.ts +++ b/packages/mobymask-watcher/src/job-runner.ts @@ -23,7 +23,7 @@ import { DEFAULT_CONFIG_PATH, initClients, startMetricsServer -} from '@vulcanize/util'; +} from '@cerc-io/util'; import { Indexer } from './indexer'; import { Database } from './database'; diff --git a/packages/mobymask-watcher/src/resolvers.ts b/packages/mobymask-watcher/src/resolvers.ts index 50bab1c0..bbc7d686 100644 --- a/packages/mobymask-watcher/src/resolvers.ts +++ b/packages/mobymask-watcher/src/resolvers.ts @@ -8,7 +8,7 @@ import debug from 'debug'; import Decimal from 'decimal.js'; import { GraphQLScalarType } from 'graphql'; -import { ValueResult, StateKind, gqlTotalQueryCount, gqlQueryCount } from '@vulcanize/util'; +import { ValueResult, StateKind, gqlTotalQueryCount, gqlQueryCount } from '@cerc-io/util'; import { Indexer } from './indexer'; import { EventWatcher } from './events'; diff --git a/packages/mobymask-watcher/src/server.ts b/packages/mobymask-watcher/src/server.ts index 1ddbd68c..e72a7b51 100644 --- a/packages/mobymask-watcher/src/server.ts +++ b/packages/mobymask-watcher/src/server.ts @@ -14,7 +14,7 @@ import debug from 'debug'; import 'graphql-import-node'; import { createServer } from 'http'; -import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients, startGQLMetricsServer } from '@vulcanize/util'; +import { DEFAULT_CONFIG_PATH, getConfig, Config, JobQueue, KIND_ACTIVE, initClients, startGQLMetricsServer } from '@cerc-io/util'; import { createResolvers } from './resolvers'; import { Indexer } from './indexer'; diff --git a/packages/solidity-mapper/package.json b/packages/solidity-mapper/package.json index ddfe09e4..4ca20eea 100644 --- a/packages/solidity-mapper/package.json +++ b/packages/solidity-mapper/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/solidity-mapper", + "name": "@cerc-io/solidity-mapper", "version": "0.1.0", "main": "dist/index.js", "license": "AGPL-3.0", @@ -11,7 +11,7 @@ "@types/mocha": "^8.2.2", "@typescript-eslint/eslint-plugin": "^4.25.0", "@typescript-eslint/parser": "^4.25.0", - "@vulcanize/ipld-eth-client": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", "chai": "^4.3.4", "eslint": "^7.27.0", "eslint-config-semistandard": "^15.0.1", diff --git a/packages/solidity-mapper/src/storage.test.ts b/packages/solidity-mapper/src/storage.test.ts index b5f5a711..8557c9bd 100644 --- a/packages/solidity-mapper/src/storage.test.ts +++ b/packages/solidity-mapper/src/storage.test.ts @@ -8,7 +8,7 @@ import '@nomiclabs/hardhat-ethers'; import { ethers } from 'hardhat'; import { ContractTransaction, Contract } from 'ethers'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { getStorageInfo, getStorageValue, StorageLayout } from './storage'; import { getStorageLayout, getStorageAt as rpcGetStorageAt, generateDummyAddresses, getBlockHash, assertProofData, assertProofArray, assertProofStruct } from '../test/utils'; diff --git a/packages/test/package.json b/packages/test/package.json index a7af6f6b..d6d900c7 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/test", + "name": "@cerc-io/test", "version": "0.1.0", "main": "dist/index.js", "license": "AGPL-3.0", diff --git a/packages/tracing-client/package.json b/packages/tracing-client/package.json index 07d4e76b..02d2c90a 100644 --- a/packages/tracing-client/package.json +++ b/packages/tracing-client/package.json @@ -1,5 +1,5 @@ { - "name": "@vulcanize/tracing-client", + "name": "@cerc-io/tracing-client", "version": "0.1.0", "description": "ETH VM tracing client", "private": true, @@ -11,14 +11,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vulcanize/watcher-ts.git" + "url": "git+https://github.com/cerc-io/watcher-ts.git" }, "author": "", "license": "AGPL-3.0", "bugs": { - "url": "https://github.com/vulcanize/watcher-ts/issues" + "url": "https://github.com/cerc-io/watcher-ts/issues" }, - "homepage": "https://github.com/vulcanize/watcher-ts#readme", + "homepage": "https://github.com/cerc-io/watcher-ts#readme", "dependencies": { "ethers": "^5.4.4", "yargs": "^17.0.1" diff --git a/packages/util/package.json b/packages/util/package.json index 69a09f0c..b9ffd26a 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -1,10 +1,10 @@ { - "name": "@vulcanize/util", + "name": "@cerc-io/util", "version": "0.1.0", "main": "dist/index.js", "license": "AGPL-3.0", "dependencies": { - "@vulcanize/solidity-mapper": "^0.1.0", + "@cerc-io/solidity-mapper": "^0.1.0", "debug": "^4.3.1", "decimal.js": "^10.3.1", "ethers": "^5.4.4", @@ -20,8 +20,8 @@ "@types/fs-extra": "^9.0.11", "@typescript-eslint/eslint-plugin": "^4.25.0", "@typescript-eslint/parser": "^4.25.0", - "@vulcanize/cache": "^0.1.0", - "@vulcanize/ipld-eth-client": "^0.1.0", + "@cerc-io/cache": "^0.1.0", + "@cerc-io/ipld-eth-client": "^0.1.0", "apollo-server-express": "^2.25.0", "decimal.js": "^10.3.1", "eslint": "^7.27.0", diff --git a/packages/util/src/config.ts b/packages/util/src/config.ts index 6854cbe4..7e37d59a 100644 --- a/packages/util/src/config.ts +++ b/packages/util/src/config.ts @@ -9,8 +9,8 @@ import toml from 'toml'; import debug from 'debug'; import { ConnectionOptions } from 'typeorm'; -import { Config as CacheConfig, getCache } from '@vulcanize/cache'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { Config as CacheConfig, getCache } from '@cerc-io/cache'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JsonRpcProvider } from '@ethersproject/providers'; import { getCustomProvider } from './misc'; diff --git a/packages/util/src/events.ts b/packages/util/src/events.ts index baa7b18a..d2c8d87d 100644 --- a/packages/util/src/events.ts +++ b/packages/util/src/events.ts @@ -6,7 +6,7 @@ import assert from 'assert'; import debug from 'debug'; import { PubSub } from 'apollo-server-express'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { JobQueue } from './job-queue'; import { BlockProgressInterface, EventInterface, IndexerInterface } from './types'; diff --git a/packages/util/src/indexer.ts b/packages/util/src/indexer.ts index 7f14f73a..c6d05ee5 100644 --- a/packages/util/src/indexer.ts +++ b/packages/util/src/indexer.ts @@ -7,8 +7,8 @@ import { DeepPartial, FindConditions, FindManyOptions } from 'typeorm'; import debug from 'debug'; import { ethers } from 'ethers'; -import { EthClient } from '@vulcanize/ipld-eth-client'; -import { GetStorageAt, getStorageValue, StorageLayout } from '@vulcanize/solidity-mapper'; +import { EthClient } from '@cerc-io/ipld-eth-client'; +import { GetStorageAt, getStorageValue, StorageLayout } from '@cerc-io/solidity-mapper'; import { BlockProgressInterface, DatabaseInterface, EventInterface, SyncStatusInterface, ContractInterface } from './types'; import { UNKNOWN_EVENT_NAME, JOB_KIND_CONTRACT, QUEUE_EVENT_PROCESSING } from './constants'; diff --git a/packages/util/src/ipld-indexer.ts b/packages/util/src/ipld-indexer.ts index 68bbf2e6..8629a95c 100644 --- a/packages/util/src/ipld-indexer.ts +++ b/packages/util/src/ipld-indexer.ts @@ -8,7 +8,7 @@ import { sha256 } from 'multiformats/hashes/sha2'; import { CID } from 'multiformats/cid'; import _ from 'lodash'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import * as codec from '@ipld/dag-cbor'; import { diff --git a/packages/util/src/misc.ts b/packages/util/src/misc.ts index db873fa9..fd7e2a14 100644 --- a/packages/util/src/misc.ts +++ b/packages/util/src/misc.ts @@ -10,7 +10,7 @@ import { utils, providers } from 'ethers'; import Decimal from 'decimal.js'; import debug from 'debug'; -import { EthClient } from '@vulcanize/ipld-eth-client'; +import { EthClient } from '@cerc-io/ipld-eth-client'; import { DEFAULT_CONFIG_PATH } from './constants'; import { Config } from './config'; diff --git a/packages/util/src/types.ts b/packages/util/src/types.ts index d145483b..5860c94a 100644 --- a/packages/util/src/types.ts +++ b/packages/util/src/types.ts @@ -3,7 +3,7 @@ // import { Connection, DeepPartial, FindConditions, FindManyOptions, QueryRunner } from 'typeorm'; -import { MappingKey, StorageLayout } from '@vulcanize/solidity-mapper'; +import { MappingKey, StorageLayout } from '@cerc-io/solidity-mapper'; import { ServerConfig } from './config'; import { Where, QueryOptions } from './database';