- claim all rewards
yarn install
yarn ts-node ./scripts/foo.ts
Only necessary when chain interface/types updated.
- Update
./interfaces/all/definitions.ts
- Run
yarn generate:defs
Dirty hack. This should be fixed.
- Edit
./node_modules/@polkadot/typegen/util/derived.cjs
-const s = new Clazz(registry);
-const obj = s.defKeys.map(key => `${key}?: any`).join('; ');
-possibleTypes.push(`{ ${obj} }`, 'string', 'Uint8Array');
+possibleTypes.push('string', 'Uint8Array');
- Run
yarn generate:meta
- Edit
./interfaces/augment-api*
- Remove
./interfaces/augment-api-rpc.ts
- Delete the rpc line on
./interfaces/augment-api.ts
- Remove