From 9ac8a83ade50718d7cf005526ccf8b89330fe01d Mon Sep 17 00:00:00 2001 From: James Bayly <46693720+jamesbayly@users.noreply.github.com> Date: Wed, 1 Nov 2023 13:17:04 +0800 Subject: [PATCH] Update Watr (#94) --- Watr/watr-starter/project.ts | 7 +++++-- Watr/watr-starter/src/chaintypes.ts | 19 +++---------------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/Watr/watr-starter/project.ts b/Watr/watr-starter/project.ts index 2afd04bf..b9f0deae 100644 --- a/Watr/watr-starter/project.ts +++ b/Watr/watr-starter/project.ts @@ -27,7 +27,7 @@ const project: SubstrateProject = { network: { /* The genesis hash of the network (hash of block 0) */ chainId: - "0xb53c620c41860278fa3068a5367c8eedceefce8a7c29237d830bc09a71737b5d", + "0x161db6cdc5896fe55ef12b4778fe78dd65d7af43f65c601786b88d7a93ebc58a", /** * This endpoint must be a public non-pruned archive node * Public nodes may be rate limited, which can affect indexing speed @@ -35,7 +35,10 @@ const project: SubstrateProject = { * You can get them from OnFinality for free https://app.onfinality.io * https://documentation.onfinality.io/support/the-enhanced-api-service */ - endpoint: ["wss://rpc.dev.watr.org", "wss://rpc.watr.org"], + endpoint: ["wss://watr-rpc.watr-api.network"], + chaintypes: { + file: "./dist/chaintypes.js", + }, }, dataSources: [ { diff --git a/Watr/watr-starter/src/chaintypes.ts b/Watr/watr-starter/src/chaintypes.ts index e330522a..ad8a5dbc 100644 --- a/Watr/watr-starter/src/chaintypes.ts +++ b/Watr/watr-starter/src/chaintypes.ts @@ -1,30 +1,17 @@ import type { OverrideBundleDefinition } from "@polkadot/types/types"; /* eslint-disable sort-keys */ -/* -// IT APPEARS THAT THERE ARE NO TYPE OVERRIDES FOR WATR - - const definitions: OverrideBundleDefinition = { types: [ { // on all versions minmax: [0, undefined], types: { - ParachainAccountIdOf: "AccountId", - Proof: { - leafHash: "Hash", - sortedHashes: "Vec", - }, - ProxyType: { - _enum: ["Any", "NonTransfer", "Governance", "_Staking", "NonProxy"], - }, - RelayChainAccountId: "AccountId", - RootHashOf: "Hash", + Address: "AccountId", + LookupSource: "AccountId", }, }, ], }; -export default { typesBundle: { spec: { altair: definitions } } }; -*/ +export default { typesBundle: { spec: { watr: definitions } } };