* API formatting for inputs & outputs * Shorten naming * getStorage (signle key) operational * Remove api-format (not used in api anymore) * Cleanup creation logic * Cleanup linting * Cleanup storage creation * e2e state test * Add code test * Add isBare flag to toU8a * Uppercase... wtill wrong though * Update metadata json * We are creating keys properly * Cleanup tslint * Type splitting,m handling Tuple & Vector * StorageChangeSet results in-place * Update deps * Allow Tuples to have array constructors * Test for uncloded vec/tuple * Update deps
29 lines
692 B
JavaScript
29 lines
692 B
JavaScript
// Copyright 2017-2018 @polkadot/api-provider authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the ISC license. See the LICENSE file for details.
|
|
|
|
import Api from '../../api/src';
|
|
import Ws from '../src/ws';
|
|
|
|
describe.skip('e2e basics', () => {
|
|
let api;
|
|
|
|
beforeEach(() => {
|
|
jest.setTimeout(30000);
|
|
api = new Api(new Ws('ws://127.0.0.1:9944'));
|
|
});
|
|
|
|
it('retrieves the pending extrinsics', () => {
|
|
return api.author
|
|
.pendingExtrinsics()
|
|
.then((extrinsics) => {
|
|
console.error('extrinsics', extrinsics);
|
|
})
|
|
.catch((error) => {
|
|
console.error(error);
|
|
|
|
throw error;
|
|
});
|
|
});
|
|
});
|