Skip to content

Commit

Permalink
MRL interface draft and some more refactoring for v3 (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenigs authored Jul 29, 2024
1 parent eee05de commit 638ba63
Show file tree
Hide file tree
Showing 94 changed files with 9,747 additions and 19,236 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"ignorePatterns": ["**/build"],
"rules": {
"prettier/prettier": "error",
"sort-keys": ["error"],
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"import/no-unresolved": "error",
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ jobs:
- name: 🤘 checkout
uses: actions/checkout@v4

- name: ⚙️ Setup Node.js environment
- uses: pnpm/action-setup@v4

- name: ⚙ Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
cache: 'pnpm'

- run: npm ci --ignore-scripts
- run: pnpm install --ignore-scripts

- name: 🛠️ Build
run: npm run build
run: pnpm run build

- name: 🧪 Run acceptance tests
env:
TESTS_MOONBEAM_PRIVATE_KEY: ${{ secrets.TESTS_MOONBEAM_PRIVATE_KEY }}
TESTS_POLKADOT_SURI: ${{ secrets.TESTS_POLKADOT_SURI }}
run: npm run test:acc
run: pnpm run test:acc
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@ jobs:
- name: 🤘 checkout
uses: actions/checkout@v4

- name: ⚙️ Setup Node.js environment
- uses: pnpm/action-setup@v4

- name: ⚙ Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
cache: 'pnpm'

- run: npm ci --ignore-scripts
- run: pnpm install --ignore-scripts

- name: 🛠️ Build
run: npm run build
run: pnpm run build

- name: 🧪 Run TypeCheck
run: npm run typecheck
run: pnpm run typecheck

- name: 🧪 Run ESLint
run: npm run lint
run: pnpm run lint
28 changes: 13 additions & 15 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,22 @@ jobs:
- name: 🤘 checkout
uses: actions/checkout@v4

- name: ⚙️ Setup Node.js environment
- uses: pnpm/action-setup@v4
- uses: oven-sh/setup-bun@v1

- name: ⚙ Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'

- uses: oven-sh/setup-bun@v1
cache: 'pnpm'

- name: 🔐 Authenticate with NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Update npm
run: npm i -g npm@latest

- name: node/npm version
run: node --version && npm --version
run: node --version && pnpm --version

- run: npm ci --ignore-scripts
- run: pnpm install --ignore-scripts

- name: ✌️ Update versions (BUN)
run: bun ./scripts/update-dev-versions.ts
Expand All @@ -36,24 +34,24 @@ jobs:
run: find ./packages -name 'package.json' -not -path '*/node_modules/*' -exec grep -H 'version' {} +

- name: 🛠️ Build
run: npm run build
run: pnpm run build

- name: 🚀 Publish types
working-directory: ./packages/types
run: npm publish --tag dev
run: pnpm publish --tag dev

- name: 🚀 Publish utils
working-directory: ./packages/utils
run: npm publish --tag dev
run: pnpm publish --tag dev

- name: 🚀 Publish builder
working-directory: ./packages/builder
run: npm publish --tag dev
run: pnpm publish --tag dev

- name: 🚀 Publish config
working-directory: ./packages/config
run: npm publish --tag dev
run: pnpm publish --tag dev

- name: 🚀 Publish sdk
working-directory: ./packages/sdk
run: npm publish --tag dev
run: pnpm publish --tag dev
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
- name: 🤘 checkout
uses: actions/checkout@v4

- name: ⚙️ Setup Node.js environment
- uses: pnpm/action-setup@v4

- name: ⚙ Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'

- run: npm ci --ignore-scripts
cache: 'pnpm'

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npm run changeset:version
publish: npm run changeset:publish
version: pnpm run changeset:version
publish: pnpm run changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
- name: 🤘 checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: ⚙ Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
cache: 'pnpm'

- run: npm ci --ignore-scripts
- run: pnpm install --ignore-scripts

- name: 🛠 Build
run: npm run build
run: pnpm run build

- name: 🧪 Run unit tests
run: npm run test
run: pnpm run test
17 changes: 8 additions & 9 deletions .github/workflows/xcm-wss-endpoints-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,20 @@ jobs:
- name: 🤘 checkout
uses: actions/checkout@v4

- name: ⚙️ Setup Node.js environment
- uses: pnpm/action-setup@v4
- uses: oven-sh/setup-bun@v1

- name: ⚙ Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- uses: oven-sh/setup-bun@v1

- name: Update npm
run: npm i -g npm@9
cache: 'pnpm'

- name: ⬇️ install
run: npm ci --ignore-scripts
run: pnpm install --ignore-scripts

- name: 🛠️ Build
run: npm run build
run: pnpm run build

- name: 💻 Run script
run: bun ./scripts/check-websockets.ts --slack-wh=${{ secrets.SLACK_WEBHOOK_URL }}
run: bun ./scripts/check-websockets.ts --slack-wh=${{ secrets.SLACK_WEBHOOK_URL }}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
link-workspace-packages=true
prefer-workspace-packages=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.14.0
1 change: 0 additions & 1 deletion mkdocs/docs/reference/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ Defines options to initialize the SDK, including EVM and Polkadot signers and a

- `evmSigner` ++"EvmSigner"++ [:material-link-variant:](#the-evm-signer-type) - The signer for transfers involving EVM chains
- `polkadotSigner` ++"Signer | IKeyringPair"++ [:material-link-variant:](#the-polkadot-signer-type) - The signer for transfers involving non-EVM chains
- `configService` ++"IConfigService"++ [:material-link-variant:](#the-config-service-object) - The custom configuration service

</div>

Expand Down
Loading

0 comments on commit 638ba63

Please sign in to comment.