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

get Parachain balances, refactor getBalance and getDecimals #217

Merged
merged 51 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b80c425
update readme
Rihyx Mar 13, 2024
4b1e027
add function to get chain balances by address
Rihyx Mar 13, 2024
3ace99b
--wip-- [skip ci]
Rihyx Mar 14, 2024
b62f491
add logic to get tokens balances for chain and address, change getBal…
Rihyx Mar 14, 2024
f9623ae
fix unit tests
Rihyx Mar 14, 2024
c0e911c
change sdk to return AssetAmount
Rihyx Mar 14, 2024
22aea6f
add e2e tests for getBalances, remove darwiniaPangoro, fix erc20publi…
Rihyx Mar 15, 2024
f0f74b2
change to map and get balances in parallel
Rihyx Mar 15, 2024
ffd4fdb
add HydraDX Alphanet
Rihyx Mar 18, 2024
7211238
add to chains config
Rihyx Mar 18, 2024
dd750a0
add HydraDX alphanet e2e test
Rihyx Mar 18, 2024
0f31eaf
add HydraDX e2e test with FTM and HDX balances
Rihyx Mar 18, 2024
97b9bca
add hydraDxAlphanet to chainsMap
Rihyx Mar 18, 2024
9a2efe9
add changeset
Rihyx Mar 19, 2024
00ca37a
Merge branch 'main' into riha/get-balance-by-chain-and-token
Rihyx Mar 19, 2024
efe4373
change version to minor
Rihyx Mar 19, 2024
b547687
remove viem from config
Rihyx Mar 19, 2024
72e4b37
Merge branch 'main' into riha/get-balance-by-chain-and-token
Rihyx Mar 20, 2024
fd83323
fix HydraDX Alphanet decimals, add more e2e tests
Rihyx Mar 20, 2024
b7c5b85
Update packages/sdk/README.md
Rihyx Mar 20, 2024
e31eff4
Update packages/sdk/README.md
Rihyx Mar 20, 2024
8105e80
Update packages/sdk/README.md
Rihyx Mar 20, 2024
5c3f0ee
Update packages/config/src/chains.ts
Rihyx Mar 20, 2024
2723eba
fix nativeCurrency
Rihyx Mar 20, 2024
c6f30e1
add usdc wh and ftm wh to moonbase beta
Rihyx Mar 20, 2024
736d6ed
add tokens to config
Rihyx Mar 20, 2024
c2be268
add e2e test for moonbase beta
Rihyx Mar 20, 2024
c3712a8
add wFTM.wh to moonbase-alpha
Rihyx Mar 21, 2024
7aafa02
fix erc20 contract call
Rihyx Mar 21, 2024
04f22ad
add missing configurations for moonbase-alpha
mmaurello Mar 21, 2024
719c6dc
add usdc.wh contract address
Rihyx Mar 21, 2024
82ce0a9
update snapshots
Rihyx Mar 21, 2024
e3a8005
update with main
Rihyx Mar 27, 2024
3858084
add DEV -> HydraDX Alpha to config
Rihyx Apr 2, 2024
64b2a55
Merge branch 'main' of github.com:PureStake/xcm-sdk into riha/get-bal…
mmaurello Apr 8, 2024
c7de67f
fix integrations
mmaurello Apr 8, 2024
c887dff
Merge branch 'main' into riha/get-balance-by-chain-and-token
mmaurello Apr 8, 2024
e2cfa1e
Updated deps and ESLint, TypeScript fixes
ekenigs Apr 12, 2024
f9fa3cf
Updated actions
ekenigs Apr 12, 2024
496d668
Fixed lint action
ekenigs Apr 12, 2024
d84ca20
Updated endpoints monitoring action
ekenigs Apr 12, 2024
a13fa81
Moved viem to peerDeps in types package
ekenigs Apr 12, 2024
c1167fe
Improve Dev version script, fix acc tets, add more info to the pipeline
Rihyx Apr 15, 2024
ed3e661
try to fix pipeline
Rihyx Apr 15, 2024
33052f2
add console.logs to pipeline
Rihyx Apr 15, 2024
60dfdaf
install but to actions
Rihyx Apr 15, 2024
c3bf558
fix the script with dev versions
Rihyx Apr 15, 2024
4e4d482
fix check websockets script
Rihyx Apr 15, 2024
3dd7af2
Merge branch 'main' into riha/get-balance-by-chain-and-token
mmaurello Apr 15, 2024
5499219
merge with main and solve conflicts
mmaurello Apr 15, 2024
4084c95
fix snapshots for acc tests
Rihyx Apr 16, 2024
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
8 changes: 8 additions & 0 deletions .changeset/twelve-bats-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@moonbeam-network/xcm-builder': minor
'@moonbeam-network/xcm-config': minor
'@moonbeam-network/xcm-types': minor
'@moonbeam-network/xcm-sdk': minor
---

Add function to get balances, get balances and decimals without signer, add HydraDX Alphanet
19 changes: 15 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier"],
"plugins": [
// this should be last
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier"
],
"plugins": ["@typescript-eslint", "import", "prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
Expand All @@ -25,6 +30,12 @@
"sort-keys": ["error"],
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"import/no-cycle": "off"
"import/no-unresolved": "error",
"import/no-cycle": [
2,
{
"maxDepth": "∞"
}
]
}
}
6 changes: 3 additions & 3 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- run: npm ci --ignore-scripts
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: build
name: lint

on: push

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
unit:
lint:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- run: npm ci --ignore-scripts
Expand All @@ -25,3 +25,5 @@ jobs:
- name: 🧪 Run TypeCheck
run: npm run typecheck

- name: 🧪 Run ESLint
run: npm run lint
23 changes: 0 additions & 23 deletions .github/workflows/lint.yml

This file was deleted.

21 changes: 16 additions & 5 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- uses: oven-sh/setup-bun@v1

- 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: npm ci --ignore-scripts

- name: ✌️ Update versions
run: npx bun ./scripts/update-dev-versions.ts
- name: ✌️ Update versions (BUN)
run: bun ./scripts/update-dev-versions.ts

- name: ✌️ Print versions
run: find ./packages -name 'package.json' -not -path '*/node_modules/*' -exec grep -H 'version' {} +

- name: 🛠️ Build
run: npm run build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- run: npm ci --ignore-scripts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- run: npm ci --ignore-scripts
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/xcm-wss-endpoints-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ jobs:

steps:
- name: 🤘 checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Update npm
run: npm i -g npm@9
Expand All @@ -30,4 +31,4 @@ jobs:
run: npm run build

- name: 💻 Run script
run: npx bun ./scripts/check-websockets.ts --slack-wh=${{ secrets.SLACK_WEBHOOK_URL }}
run: bun ./scripts/check-websockets.ts --slack-wh=${{ secrets.SLACK_WEBHOOK_URL }}
Loading
Loading