Expand license header (#48)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user