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
|
// @flow
|
||||||
|
|
||||||
module.exports = function echo (value: mixed): mixed {
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
const formatInputs = require('./input');
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceInputType } from '@polkadot/api-jsonrpc/types';
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceOutputType } from '@polkadot/api-jsonrpc/types';
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
// flowlint-next-line unclear-type:off
|
// 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
|
// @flow
|
||||||
|
|
||||||
import type { FormatInputType, FormatOutputType } from '@polkadot/api-jsonrpc/types';
|
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 { format, formatArray } = require('./util');
|
||||||
const echo = require('./echo');
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceMethodDefinition } from '../types';
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceDefinition } from '../types';
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceDefinition } from './types';
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceMethodDefinition } from '../types';
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceMethodDefinition } from '../types';
|
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
|
// @flow
|
||||||
|
|
||||||
import type { InterfaceDefinition } from '../types';
|
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
|
// @flow
|
||||||
|
|
||||||
export type FormatInputType = 'Address' | 'CallData' | 'H256' | 'HeaderHash' | 'String';
|
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
|
// @flow
|
||||||
|
|
||||||
import type { ProviderInterface } from '../types';
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
if (typeof fetch === 'undefined') {
|
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', () => {
|
describe('http/polyfill', () => {
|
||||||
let origFetch;
|
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
|
// @flow
|
||||||
|
|
||||||
const Http = require('./http');
|
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
|
// @flow
|
||||||
|
|
||||||
import type { JsonRpcRequest, JsonRpcResponse } from './types';
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
export type JsonRpcObject = {
|
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
|
// @flow
|
||||||
|
|
||||||
import type { JsonRpcResponse, ProviderInterface } from '../types';
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
if (typeof WebSocket === 'undefined') {
|
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', () => {
|
describe('ws/polyfill', () => {
|
||||||
let origWs;
|
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');
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
import type { ProviderInterface } from '@polkadot/api-provider/types';
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
const Api = require('./api');
|
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');
|
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
|
// @flow
|
||||||
|
|
||||||
export type ApiInterface$Section = {
|
export type ApiInterface$Section = {
|
||||||
|
|||||||
Reference in New Issue
Block a user