Skip to content

Commit

Permalink
Change dydxjs to v4-proto-js (v4-proto npm package name) (#196)
Browse files Browse the repository at this point in the history
* Change dydxjs to v4-telescope-js

* v4-telescope-js -> v4-proto-js (v4-proto package name)
  • Loading branch information
jiajames authored Sep 7, 2023
1 parent f96ef38 commit d414025
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/protocol-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions proto/Makefile
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions dydxjs/package-lock.json → v4-proto-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dydxjs/package.json → v4-proto-js/package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d414025

Please sign in to comment.