From d414025a3265975219ed1f5aef82903cb5af21d4 Mon Sep 17 00:00:00 2001 From: James Jia Date: Thu, 7 Sep 2023 12:31:13 -0700 Subject: [PATCH] Change dydxjs to v4-proto-js (v4-proto npm package name) (#196) * Change dydxjs to v4-telescope-js * v4-telescope-js -> v4-proto-js (v4-proto package name) --- .github/workflows/proto.yml | 6 +++--- .github/workflows/protocol-release.yml | 4 ++-- .gitignore | 6 +++--- proto/Makefile | 6 +++--- {dydxjs => v4-proto-js}/.nvmrc | 0 {dydxjs => v4-proto-js}/.telescope.json | 0 {dydxjs => v4-proto-js}/LICENSE | 0 {dydxjs => v4-proto-js}/package-lock.json | 4 ++-- {dydxjs => v4-proto-js}/package.json | 2 +- {dydxjs => v4-proto-js}/scripts/publish-if-not-exists.sh | 0 {dydxjs => v4-proto-js}/tsconfig.json | 0 11 files changed, 14 insertions(+), 14 deletions(-) rename {dydxjs => v4-proto-js}/.nvmrc (100%) rename {dydxjs => v4-proto-js}/.telescope.json (100%) rename {dydxjs => v4-proto-js}/LICENSE (100%) rename {dydxjs => v4-proto-js}/package-lock.json (99%) rename {dydxjs => v4-proto-js}/package.json (97%) rename {dydxjs => v4-proto-js}/scripts/publish-if-not-exists.sh (100%) rename {dydxjs => v4-proto-js}/tsconfig.json (100%) diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml index 4b2854335d..a17602c25b 100644 --- a/.github/workflows/proto.yml +++ b/.github/workflows/proto.yml @@ -9,7 +9,7 @@ on: # yamllint disable-line rule:truthy - '**.pb.gw.go' - 'indexer/packages/v4-protos/**' # Code that affects generation - - 'dydxjs/**' + - 'v4-proto-js/**' - 'dydxpy/**' - 'proto/**' - 'indexer/package.json' @@ -97,7 +97,7 @@ jobs: chmod +x "${BIN}/buf" - run: pip install -r ./dydxpy/requirements.txt - run: make dydxpy-gen - dydxjs-gen: + v4-proto-js-gen: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -109,7 +109,7 @@ jobs: VERSION="1.26.1" && \ curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-Linux-x86_64" -o "${BIN}/buf" && \ chmod +x "${BIN}/buf" - - working-directory: ./dydxjs + - working-directory: ./v4-proto-js run: | npm install npm run transpile diff --git a/.github/workflows/protocol-release.yml b/.github/workflows/protocol-release.yml index 1b03bff847..3844c9f9d4 100644 --- a/.github/workflows/protocol-release.yml +++ b/.github/workflows/protocol-release.yml @@ -121,11 +121,11 @@ jobs: run: | twine upload -r pypi dist/* - dydxjs-release: + v4-proto-js-release: runs-on: ubuntu-latest defaults: run: - working-directory: ./dydxjs + working-directory: ./v4-proto-js steps: - name: Check out repository code diff --git a/.gitignore b/.gitignore index 9b4bc91370..dac17fc408 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,8 @@ dydxpy/build dydxpy/dist dydxpy/dydxpy.egg-info/ dydxpy/dydxpy -dydxjs/build -dydxjs/node_modules -dydxjs/src +v4-proto-js/build +v4-proto-js/node_modules +v4-proto-js/src .idea diff --git a/proto/Makefile b/proto/Makefile index 88328ec9e7..abc93c8570 100644 --- a/proto/Makefile +++ b/proto/Makefile @@ -1,9 +1,9 @@ -# TODO(roy): These are currently not used. Clean this up when moving dydxjs and dydxpy. -# dydxjs needs cosmos protos that aren't depended on by dydx protos. +# TODO(roy): These are currently not used. Clean this up when moving v4-proto-js and dydxpy. +# v4-proto-js needs cosmos protos that aren't depended on by dydx protos. # Running the export command above will only get a subset of cosmos protos. # For now, we will export cosmos protos separately. Note that this doesn't verify the digest. # TODO(DEC-2027): Do this in a more reproducible way. -proto-export-dydxjs: +proto-export-v4-proto-js: rm -rf ./.proto-export buf export --config ./buf.yaml --output ./.proto-export --exclude-imports buf export buf.build/cosmos/cosmos-sdk:v0.47.0 --output ./.proto-export diff --git a/dydxjs/.nvmrc b/v4-proto-js/.nvmrc similarity index 100% rename from dydxjs/.nvmrc rename to v4-proto-js/.nvmrc diff --git a/dydxjs/.telescope.json b/v4-proto-js/.telescope.json similarity index 100% rename from dydxjs/.telescope.json rename to v4-proto-js/.telescope.json diff --git a/dydxjs/LICENSE b/v4-proto-js/LICENSE similarity index 100% rename from dydxjs/LICENSE rename to v4-proto-js/LICENSE diff --git a/dydxjs/package-lock.json b/v4-proto-js/package-lock.json similarity index 99% rename from dydxjs/package-lock.json rename to v4-proto-js/package-lock.json index 6e03aa0102..e69371292f 100644 --- a/dydxjs/package-lock.json +++ b/v4-proto-js/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@dydxprotocol/dydxjs", + "name": "@dydxprotocol/v4-proto", "version": "0.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "@dydxprotocol/dydxjs", + "name": "@dydxprotocol/v4-proto", "version": "0.0.0", "license": "BSL-1.1", "dependencies": { diff --git a/dydxjs/package.json b/v4-proto-js/package.json similarity index 97% rename from dydxjs/package.json rename to v4-proto-js/package.json index a8a770fc66..e681e89650 100644 --- a/dydxjs/package.json +++ b/v4-proto-js/package.json @@ -1,5 +1,5 @@ { - "name": "@dydxprotocol/dydxjs", + "name": "@dydxprotocol/v4-proto", "version": "0.0.0", "description": "Protos for dYdX v4 protocol", "author": "dYdX Trading Inc.", diff --git a/dydxjs/scripts/publish-if-not-exists.sh b/v4-proto-js/scripts/publish-if-not-exists.sh similarity index 100% rename from dydxjs/scripts/publish-if-not-exists.sh rename to v4-proto-js/scripts/publish-if-not-exists.sh diff --git a/dydxjs/tsconfig.json b/v4-proto-js/tsconfig.json similarity index 100% rename from dydxjs/tsconfig.json rename to v4-proto-js/tsconfig.json