Skip to content

Commit

Permalink
Add more WS endpoints and change endpoint monitoring (#304)
Browse files Browse the repository at this point in the history
* add more ws endpoints to chains and remove equilibrium

* remove glmr to equilibrium

* modify script to send notification only when all endpoints for a chain are failing

* adjust quotes

* fix type error

* fix type errors

* add changeset
  • Loading branch information
mmaurello authored Jul 19, 2024
1 parent 4bf48c4 commit 77dbaf1
Show file tree
Hide file tree
Showing 10 changed files with 236 additions and 242 deletions.
8 changes: 8 additions & 0 deletions .changeset/purple-bears-play.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 WS endpoints, change monitoring script and remove equilibrium
6 changes: 3 additions & 3 deletions packages/builder/fixtures/builderParamsMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const interlayTestnetMock = new Parachain({
name: 'Interlay Testnet',
parachainId: 2032,
ss58Format: 2032,
ws: 'wss://interlay-moonbeam-alphanet.interlay.io/',
ws: ['wss://interlay-moonbeam-alphanet.interlay.io/'],
});

export const alphanetAssetHubMock = new Parachain({
Expand All @@ -26,7 +26,7 @@ export const alphanetAssetHubMock = new Parachain({
name: 'Alphanet Asset Hub',
parachainId: 1001,
ss58Format: 42,
ws: 'wss://frag-moonbase-sm-rpc-ws.g.moonbase.moonbeam.network/',
ws: ['wss://frag-moonbase-sm-rpc-ws.g.moonbase.moonbeam.network/'],
});

export const moonbaseAlphaMock = new EvmParachain({
Expand All @@ -45,7 +45,7 @@ export const moonbaseAlphaMock = new EvmParachain({
parachainId: 1000,
rpc: 'https://rpc.api.moonbase.moonbeam.network',
ss58Format: 1287,
ws: 'wss://wss.api.moonbase.moonbeam.network',
ws: ['wss://wss.api.moonbase.moonbeam.network'],
});

export const buildParamsMock: ExtrinsicConfigBuilderPrams = {
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/ConfigService/ConfigService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const TEST_CHAIN = new Parachain({
name: 'test',
parachainId: 9999,
ss58Format: 1999,
ws: '',
ws: [''],
});

describe('config service', () => {
Expand Down Expand Up @@ -116,7 +116,7 @@ describe('config service', () => {
parachainId: 1000,
rpc: '',
ss58Format: 1287,
ws: '',
ws: [''],
}),
),
).toThrow(new Error('Chain test not found'));
Expand Down
Loading

0 comments on commit 77dbaf1

Please sign in to comment.