Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submodule conversion #89

Merged
merged 8 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
working-directory: npm

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v3
with:
version: 9
Expand Down
29 changes: 28 additions & 1 deletion .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -29,6 +31,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -44,6 +48,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -52,3 +58,24 @@ jobs:
- name: Run Tests
run: cargo test
working-directory: tools/compiler

execute_and_check:
name: Generate registry and Check for Diffs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Generate registry
run: cargo run
env:
RUST_LOG: info
working-directory: tools/compiler
- name: Check for Uncommitted Changes
run: git diff --exit-code
working-directory: tools/compiler
8 changes: 7 additions & 1 deletion .github/workflows/typescript-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
working-directory: npm

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v3
with:
version: 9
Expand All @@ -40,6 +42,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: pnpm/action-setup@v3
with:
version: 9
Expand All @@ -59,6 +63,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: pnpm/action-setup@v3
with:
version: 9
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tools/compiler/files/chain-registry"]
path = tools/compiler/files/chain-registry
url = https://github.com/cosmos/chain-registry
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ field in the input JSON file.
Let's say you want to add or edit an asset in the registry. Here are the steps you should take.

1. Install pre-requisite deps: [Rust](https://www.rust-lang.org/tools/install) & [pnpm](https://pnpm.io/installation)
2. Fork repository & clone it down locally
2. Fork repository & clone it down locally with `git clone --recurse-submodules`
- If you've pulled the repo before, update the cosmos registry using `git submodule update --remote`
3. In `input/<chain_name>.json`, add your new asset or edit the metadata as needed
4. In `tools/compiler/` directory run `cargo run`
5. In `npm/` run `pnpm install` and `pnpm changeset`. Make a minor (if new chain added) or patch (add/edit to existing)
Expand Down
6 changes: 6 additions & 0 deletions npm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @penumbra-labs/registry

## 11.2.0

### Minor Changes

- c9bf54c: Updating testnet chain id fallback logic

## 11.1.0

### Minor Changes
Expand Down
18 changes: 9 additions & 9 deletions npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@penumbra-labs/registry",
"version": "11.1.0",
"version": "11.2.0",
"description": "Chain and asset registry for Penumbra",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -17,18 +17,18 @@
},
"devDependencies": {
"@bufbuild/protobuf": "^1.10.0",
"@changesets/cli": "^2.27.7",
"@changesets/cli": "^2.27.8",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@eslint/js": "^9.10.0",
"@penumbra-zone/protobuf": "^6.0.0",
"eslint": "^9.9.0",
"fetch-mock": "^11.1.1",
"eslint": "^9.10.0",
"fetch-mock": "^11.1.3",
"prettier": "^3.3.3",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"typescript-eslint": "^8.2.0",
"vite": "^5.4.1",
"vite-plugin-dts": "^4.0.3",
"typescript": "^5.6.2",
"typescript-eslint": "^8.5.0",
"vite": "^5.4.4",
"vite-plugin-dts": "^4.2.1",
"vitest": "^2.0.5"
},
"files": [
Expand Down
Loading
Loading