Skip to content

Commit

Permalink
Update Watr (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayly authored Nov 1, 2023
1 parent d870c38 commit 9ac8a83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
7 changes: 5 additions & 2 deletions Watr/watr-starter/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ 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
* When developing your project we suggest getting a private API key
* 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: [
{
Expand Down
19 changes: 3 additions & 16 deletions Watr/watr-starter/src/chaintypes.ts
Original file line number Diff line number Diff line change
@@ -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<Hash>",
},
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 } } };

0 comments on commit 9ac8a83

Please sign in to comment.