Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0c71044
apply pnpm
Zetazzz Aug 15, 2025
15d05ee
fix tests and docs
Zetazzz Aug 15, 2025
538f1c5
fall back docs
Zetazzz Aug 15, 2025
8390f28
use custom starship action for pnpm
Zetazzz Aug 15, 2025
7f848ae
fix github workflows
Zetazzz Aug 15, 2025
f02a6dd
fixed custom action folder
Zetazzz Aug 15, 2025
a536839
add dev deps
Zetazzz Aug 15, 2025
7951d38
fix workflows
Zetazzz Aug 15, 2025
d9991cf
Fix TypeScript TS2688 error by adding explicit types array to tsconfig
Zetazzz Aug 15, 2025
96a1e55
Temporarily add apply-pnpm-1.16 branch to workflow triggers for testing
Zetazzz Aug 15, 2025
033d57b
Add explicit InterchainJS package build step to workflow
Zetazzz Aug 15, 2025
6a5bd2d
Fix TypeScript and Jest configuration issues
Zetazzz Aug 15, 2025
59b4cdf
Add Jest types to packages/math and packages/utils tsconfig
Zetazzz Aug 15, 2025
c7dfdad
Fix module resolution and TypeScript configuration issues
Zetazzz Aug 15, 2025
793697f
Add explicit build step for Ethereum package in E2E workflow
Zetazzz Aug 15, 2025
1f6d547
Fix utils test imports to resolve from local src to avoid package res…
Zetazzz Aug 15, 2025
fe12db2
Apply comprehensive E2E test fixes across all packages
Zetazzz Aug 15, 2025
fac3fe2
Fix circular dependency and TypeScript configuration issues
Zetazzz Aug 16, 2025
1bb756e
Fix Jest moduleNameMapper for cosmos subpath imports
Zetazzz Aug 16, 2025
b5e7eda
Fix Jest moduleNameMapper for cosmos utils path
Zetazzz Aug 16, 2025
692d6c3
docs: add pnpm migration guide with steps, CI changes, and troublesho…
Zetazzz Aug 16, 2025
74e3ddb
upgrade telescope
Zetazzz Aug 16, 2025
dce8b98
remove inj github workflow
Zetazzz Aug 16, 2025
68f2058
Fix cosmos E2E tests by adding missing amino dependency
Zetazzz Aug 16, 2025
7fb606b
Fix cosmos E2E test: use client instead of endpoint for getBalance
Zetazzz Aug 16, 2025
ab36947
Step 1: Migrate E2E workflow from yarn to pnpm
Zetazzz Aug 17, 2025
42ceb83
Step 2: Fix starship action and add workspace linking
Zetazzz Aug 17, 2025
a4f12fc
Step 3: Add network package builds and verification steps
Zetazzz Aug 18, 2025
a5fe9d6
Step 4: Skip prepare scripts during initial install
Zetazzz Aug 18, 2025
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
136 changes: 121 additions & 15 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- apply-pnpm-1.16
pull_request:
branches:
- main
Expand All @@ -21,22 +22,57 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: Build Project
run: yarn build
run: pnpm build

- name: Link Workspace Packages
run: pnpm install

- name: Build Network Packages
run: |
cd ./networks/ethereum && pnpm build
cd ../cosmos && pnpm build
cd ../solana && pnpm build
cd ../injective && pnpm build

- name: Verify Package Links
run: |
echo "Checking if @interchainjs/amino is available..."
ls -la node_modules/@interchainjs/ || echo "No @interchainjs packages found"
echo "Checking if interchainjs package is built..."
ls -la libs/interchainjs/dist/ || echo "interchainjs not built"

- name: Set Up Starship Infrastructure
id: starship-infra
uses: hyperweb-io/starship-action@0.5.5
uses: ./libs/interchainjs/starship/configs/starship-devnet-action
with:
config: libs/interchainjs/starship/configs/config.workflow.yaml

- name: Run E2E Tests
run: cd ./libs/interchainjs && yarn starship:test
run: cd ./libs/interchainjs && pnpm starship:test

networks-cosmos:
runs-on: ubuntu-latest
Expand All @@ -49,22 +85,57 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: Build Project
run: yarn build
run: pnpm build

- name: Link Workspace Packages
run: pnpm install

- name: Build Network Packages
run: |
cd ./networks/ethereum && pnpm build
cd ../cosmos && pnpm build
cd ../solana && pnpm build
cd ../injective && pnpm build

- name: Verify Package Links
run: |
echo "Checking if @interchainjs/amino is available..."
ls -la node_modules/@interchainjs/ || echo "No @interchainjs packages found"
echo "Checking if interchainjs package is built..."
ls -la libs/interchainjs/dist/ || echo "interchainjs not built"

- name: Set Up Starship Infrastructure
id: starship-infra
uses: hyperweb-io/starship-action@0.5.5
uses: ./networks/cosmos/starship/configs/starship-devnet-action
with:
config: networks/cosmos/starship/configs/config.workflow.yaml

- name: Run E2E Tests
run: cd ./networks/cosmos && yarn starship:test
run: cd ./networks/cosmos && pnpm starship:test

networks-ethereum:
runs-on: ubuntu-latest
Expand All @@ -77,19 +148,54 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: Build Project
run: yarn build
run: pnpm build

- name: Link Workspace Packages
run: pnpm install

- name: Build Network Packages
run: |
cd ./networks/ethereum && pnpm build
cd ../cosmos && pnpm build
cd ../solana && pnpm build
cd ../injective && pnpm build

- name: Verify Package Links
run: |
echo "Checking if @interchainjs/amino is available..."
ls -la node_modules/@interchainjs/ || echo "No @interchainjs packages found"
echo "Checking if interchainjs package is built..."
ls -la libs/interchainjs/dist/ || echo "interchainjs not built"

- name: Set Up Starship Infrastructure
id: starship-infra
uses: hyperweb-io/starship-action@0.5.9
uses: ./networks/ethereum/starship/configs/starship-devnet-action
with:
config: networks/ethereum/starship/configs/eth-lite.yaml

- name: Run E2E Tests
run: cd ./networks/ethereum && yarn starship:test && yarn test:utils
run: cd ./networks/ethereum && pnpm starship:test && pnpm test:utils
33 changes: 0 additions & 33 deletions .github/workflows/injective-e2e-tests.yaml

This file was deleted.

26 changes: 22 additions & 4 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,30 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Build Project
run: yarn build
run: pnpm build
- name: test
run: yarn test
run: pnpm test
11 changes: 6 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
**/dist
**/dist_spec
**/yarn-error.log
**/pnpm-error.log
lerna-debug.log

.claude
CLAUDE.md

.cert/
# pnpm
.pnpm-store/
**/node-compile-cache/

.augment/
.claude
CLAUDE.md
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
shamefully-hoist=true
strict-peer-dependencies=false
auto-install-peers=true
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ graph LR

This guide will walk you through the process of installing and setting up interchainjs for your project.

You can install interchainjs using Yarn:
You can install interchainjs using pnpm:

```bash
yarn add interchainjs
yarn add @interchainjs/cosmos
pnpm add interchainjs
pnpm add @interchainjs/cosmos
```

or npm
Expand All @@ -128,6 +128,13 @@ npm i interchainjs
npm i @interchainjs/cosmos
```

or yarn

```bash
yarn add interchainjs
yarn add @interchainjs/cosmos
```

## Quick Start

### Using Signers Directly
Expand Down Expand Up @@ -207,7 +214,7 @@ const result = await signer.signAndBroadcast({
The easiest way to get started is by using the create-interchain-app tool, which sets up a complete project with all necessary dependencies:

```bash
npm install -g create-interchain-app
pnpm install -g create-interchain-app

cia --example authz
```
Expand Down
Loading
Loading