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
4 changes: 3 additions & 1 deletion packages/api-format/src/echo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

module.exports = function echo (value: mixed): mixed {
Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/echo.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const echo = require('./echo');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

const formatInputs = require('./input');
Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/input.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceInputType } from '@polkadot/api-jsonrpc/types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/input.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const { formatInputs } = require('./index');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/output.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceOutputType } from '@polkadot/api-jsonrpc/types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/output.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const BN = require('bn.js');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

// flowlint-next-line unclear-type:off
Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { FormatInputType, FormatOutputType } from '@polkadot/api-jsonrpc/types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-format/src/util.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const { format, formatArray } = require('./util');
const echo = require('./echo');
Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/chain/getHeader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceMethodDefinition } from '../types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/chain/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceDefinition } from '../types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceDefinition } from './types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const interfaces = require('./index');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/state/call.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceMethodDefinition } from '../types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/state/getStorage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceMethodDefinition } from '../types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/state/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { InterfaceDefinition } from '../types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-jsonrpc/src/types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

export type FormatInputType = 'Address' | 'CallData' | 'H256' | 'HeaderHash' | 'String';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/http/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { ProviderInterface } from '../types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/http/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const { mockHttp, TEST_HTTP_URL } = require('../../test/mockHttp');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/http/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

if (typeof fetch === 'undefined') {
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/http/polyfill.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

describe('http/polyfill', () => {
let origFetch;
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

const Http = require('./http');
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/jsonRpcCoder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { JsonRpcRequest, JsonRpcResponse } from './types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/jsonRpcCoder.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const JsonRpcCoder = require('./jsonRpcCoder');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

export type JsonRpcObject = {
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/ws/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { JsonRpcResponse, ProviderInterface } from '../types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/ws/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const { mockWs, TEST_WS_URL } = require('../../test/mockWs');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/ws/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

if (typeof WebSocket === 'undefined') {
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/src/ws/polyfill.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

describe('ws/polyfill', () => {
let origWs;
Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/test/mockHttp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const nock = require('nock');

Expand Down
4 changes: 3 additions & 1 deletion packages/api-provider/test/mockWs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const { Server } = require('mock-socket');

Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/api.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

import type { ProviderInterface } from '@polkadot/api-provider/types';
Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/api.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const isFunction = require('@polkadot/util/is/function');

Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

const Api = require('./api');
Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

const Api = require('./index');

Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// ISC, Copyright 2017-2018 Jaco Greeff
// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
// @flow

export type ApiInterface$Section = {
Expand Down