Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
921 changes: 921 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"sinon-chai": "^2.14.0"
},
"dependencies": {
"@polkadot/api-format": "^0.2.0",
"@polkadot/jsonrpc": "^0.2.0",
"@polkadot/util": "^0.2.0",
"babel-runtime": "^6.26.0",
Expand Down
3 changes: 2 additions & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import type { InterfaceDefinition } from '@polkadot/jsonrpc/src/types';
import type { ApiInterface } from './types';
import type { ProviderInterface } from './provider/types';

const { formatInputs, formatOutput } = require('@polkadot/api-format');
const interfaces = require('@polkadot/jsonrpc');
const { callSignature } = require('@polkadot/jsonrpc/lib/util');
const { isFunction } = require('@polkadot/util/lib/is');
const { formatInputs, formatOutput } = require('./format');

const { HttpProvider } = require('./provider');

module.exports = class Api implements ApiInterface {
Expand Down
10 changes: 0 additions & 10 deletions src/format/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/format/input/address.js

This file was deleted.

13 changes: 0 additions & 13 deletions src/format/input/address.spec.js

This file was deleted.

33 changes: 0 additions & 33 deletions src/format/input/hex.js

This file was deleted.

53 changes: 0 additions & 53 deletions src/format/input/hex.spec.js

This file was deleted.

24 changes: 0 additions & 24 deletions src/format/input/index.js

This file was deleted.

22 changes: 0 additions & 22 deletions src/format/input/index.spec.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/format/noop.js

This file was deleted.

13 changes: 0 additions & 13 deletions src/format/noop.spec.js

This file was deleted.

18 changes: 0 additions & 18 deletions src/format/output/index.js

This file was deleted.

13 changes: 0 additions & 13 deletions src/format/output/index.spec.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/format/types.js

This file was deleted.

36 changes: 0 additions & 36 deletions src/format/util.js

This file was deleted.

59 changes: 0 additions & 59 deletions src/format/util.spec.js

This file was deleted.

15 changes: 15 additions & 0 deletions src/polyfill.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// ISC, Copyright 2017 Jaco Greeff

/* eslint-disable no-unused-expressions */

describe('polyfill', () => {
it('adds polyfills with no exceptions', () => {
expect(require('./polyfill')).to.be.ok;
});

describe('interfaces', () => {
it('fetch is available', () => {
expect(fetch).to.be.ok;
});
});
});
Loading