Move additional classes to definition-only (#1165)
* Move additional classes to definition-only * Move some additional quick-hit types * Last of the easier type/* conversions * Remove rhd files * Remove commented line * Add injector to types loading * typo * Update comment * Merge master * Rework & organize CHANGELOG * Some small helper cleanups
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
import { Hash } from '@polkadot/types';
|
||||
import Mock from '@polkadot/rpc-provider/mock/index';
|
||||
|
||||
import { ApiPromise } from './..';
|
||||
import { ApiOptions } from './../types';
|
||||
import { ApiPromise } from '..';
|
||||
import { ApiOptions } from '../types';
|
||||
|
||||
describe('Metadata queries', (): void => {
|
||||
let mock: Mock;
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import ApiPromise from '@polkadot/api/promise/Api';
|
||||
import testingPairs from '@polkadot/keyring/testingPairs';
|
||||
import { WsProvider } from '@polkadot/rpc-provider';
|
||||
import { RewardDestination } from '@polkadot/types';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import { HeaderExtended } from '@polkadot/api-derive/type';
|
||||
@@ -185,7 +184,7 @@ describe.skip('derive e2e', (): void => {
|
||||
|
||||
// start by setting the reqred to Staked, so we have a common starting point
|
||||
await api.tx.staking
|
||||
.setPayee(new RewardDestination('Staked'))
|
||||
.setPayee('Staked')
|
||||
.signAndSend(testingPairs().alice, ({ status }): void => {
|
||||
if (status.isFinalized) {
|
||||
console.error('setPayee(Staked) isFinalized');
|
||||
@@ -208,7 +207,7 @@ describe.skip('derive e2e', (): void => {
|
||||
// Wait a bit, and change reward destination
|
||||
setTimeout(async (): Promise<void> => {
|
||||
await api.tx.staking
|
||||
.setPayee(new RewardDestination('Stash'))
|
||||
.setPayee('Stash')
|
||||
.signAndSend(testingPairs().alice, ({ status }): void => {
|
||||
if (status.isFinalized) {
|
||||
console.error('setPayee(Stash) isFinalized');
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { ChainProperties, PendingExtrinsics } from '@polkadot/types';
|
||||
import { ChainProperties, Extrinsic, Vector } from '@polkadot/types';
|
||||
import WsProvider from '@polkadot/rpc-provider/ws';
|
||||
|
||||
import Rpc from '@polkadot/rpc-core';
|
||||
@@ -18,8 +18,8 @@ describe.skip('e2e basics', (): void => {
|
||||
it('retrieves the pending extrinsics', (done): void => {
|
||||
rpc.author
|
||||
.pendingExtrinsics()
|
||||
.subscribe((extrinsics: PendingExtrinsics): void => {
|
||||
expect(extrinsics).toBeInstanceOf(PendingExtrinsics);
|
||||
.subscribe((extrinsics: Vector<Extrinsic>): void => {
|
||||
expect(extrinsics).toBeInstanceOf(Vector);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user