From 4805f9cb36c6927a050ac40310aabaeaa1ccd5ce Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 21 Nov 2018 13:37:27 +0100 Subject: [PATCH] Update LICENSE and README (#408) * Update LICENSE and README * Bump --- LICENSE | 210 +++++++++++++++++- README.md | 2 +- lerna.json | 2 +- package.json | 4 +- packages/api-observable/LICENSE | 210 +++++++++++++++++- packages/api-observable/package.json | 12 +- packages/api-observable/src/Base.ts | 2 +- packages/api-observable/src/Calls.ts | 2 +- packages/api-observable/src/Combined.ts | 2 +- packages/api-observable/src/Queries.ts | 2 +- packages/api-observable/src/classes.ts | 2 +- packages/api-observable/src/index.ts | 2 +- packages/api-observable/src/types.d.ts | 2 +- packages/api/LICENSE | 210 +++++++++++++++++- packages/api/package.json | 12 +- packages/api/src/Base.ts | 2 +- packages/api/src/index.ts | 2 +- packages/api/src/promise/Combinator.ts | 2 +- packages/api/src/promise/Combinators.spec.ts | 2 +- .../src/promise/SubmittableExtrinsic.spec.ts | 2 +- .../api/src/promise/SubmittableExtrinsic.ts | 2 +- packages/api/src/promise/index.ts | 2 +- packages/api/src/promise/types.d.ts | 2 +- packages/api/src/rx/SubmittableExtrinsic.ts | 2 +- packages/api/src/rx/index.ts | 2 +- packages/api/src/rx/types.d.ts | 2 +- packages/api/src/types.d.ts | 2 +- packages/api/test/e2e/promise-queries.spec.js | 2 +- packages/api/test/e2e/promise-tx.spec.js | 2 +- packages/api/test/e2e/rx-queries.spec.js | 2 +- packages/api/test/e2e/rx-tx.spec.js | 2 +- packages/rpc-core/LICENSE | 210 +++++++++++++++++- packages/rpc-core/package.json | 8 +- packages/rpc-core/src/formatting.spec.js | 2 +- packages/rpc-core/src/index.spec.js | 2 +- packages/rpc-core/src/index.ts | 2 +- packages/rpc-core/src/methodSend.spec.js | 2 +- packages/rpc-core/src/types.d.ts | 2 +- packages/rpc-core/test/e2e/basics.test.js | 2 +- packages/rpc-core/test/e2e/chain.test.js | 2 +- .../rpc-core/test/e2e/krummelanke.test.js | 2 +- packages/rpc-core/test/e2e/state.test.js | 2 +- packages/rpc-core/test/e2e/subscribe.test.js | 2 +- packages/rpc-provider/LICENSE | 210 +++++++++++++++++- packages/rpc-provider/package.json | 6 +- .../src/coder/decodeResponse.spec.ts | 2 +- .../rpc-provider/src/coder/encodeJson.spec.ts | 2 +- .../src/coder/encodeObject.spec.ts | 2 +- packages/rpc-provider/src/coder/index.ts | 2 +- packages/rpc-provider/src/defaults.ts | 2 +- packages/rpc-provider/src/http/index.spec.js | 2 +- packages/rpc-provider/src/http/index.ts | 2 +- .../rpc-provider/src/http/polyfill.spec.js | 2 +- packages/rpc-provider/src/http/polyfill.ts | 2 +- packages/rpc-provider/src/http/send.spec.js | 2 +- packages/rpc-provider/src/http/types.d.ts | 2 +- packages/rpc-provider/src/index.ts | 2 +- packages/rpc-provider/src/mock/index.ts | 2 +- packages/rpc-provider/src/mock/on.spec.ts | 2 +- packages/rpc-provider/src/mock/send.spec.ts | 2 +- .../rpc-provider/src/mock/subscribe.spec.ts | 2 +- packages/rpc-provider/src/mock/types.d.ts | 2 +- .../rpc-provider/src/mock/unsubscribe.spec.ts | 2 +- packages/rpc-provider/src/types.d.ts | 2 +- packages/rpc-provider/src/ws/connect.spec.js | 2 +- packages/rpc-provider/src/ws/index.spec.js | 2 +- packages/rpc-provider/src/ws/index.ts | 2 +- packages/rpc-provider/src/ws/onError.spec.js | 2 +- .../src/ws/onMessageResult.spec.js | 2 +- .../src/ws/onMessageSubscribe.spec.js | 2 +- packages/rpc-provider/src/ws/onOpen.spec.js | 2 +- packages/rpc-provider/src/ws/polyfill.spec.js | 2 +- packages/rpc-provider/src/ws/polyfill.ts | 2 +- packages/rpc-provider/src/ws/send.spec.js | 2 +- packages/rpc-provider/src/ws/state.spec.js | 2 +- .../rpc-provider/src/ws/subscribe.spec.js | 2 +- .../rpc-provider/src/ws/unsubscribe.spec.js | 2 +- packages/rpc-provider/test/mockHttp.ts | 2 +- packages/rpc-provider/test/mockWs.ts | 2 +- packages/rpc-rx/LICENSE | 210 +++++++++++++++++- packages/rpc-rx/package.json | 8 +- packages/rpc-rx/src/cached.spec.js | 2 +- packages/rpc-rx/src/index.spec.js | 2 +- packages/rpc-rx/src/index.ts | 2 +- packages/rpc-rx/src/replay.js | 2 +- packages/rpc-rx/src/types.d.ts | 2 +- packages/rpc-rx/test/e2e/subscribe.test.js | 2 +- packages/type-extrinsics/LICENSE | 210 +++++++++++++++++- packages/type-extrinsics/package.json | 4 +- .../type-extrinsics/src/fromMetadata.spec.js | 2 +- packages/type-extrinsics/src/fromMetadata.ts | 2 +- packages/type-extrinsics/src/index.spec.js | 2 +- packages/type-extrinsics/src/index.ts | 2 +- packages/type-extrinsics/src/static.ts | 2 +- packages/type-extrinsics/src/types.d.ts | 2 +- .../src/utils/createUnchecked.ts | 2 +- .../type-extrinsics/test/e2e/transfer.spec.js | 2 +- packages/type-jsonrpc/LICENSE | 210 +++++++++++++++++- packages/type-jsonrpc/package.json | 4 +- packages/type-jsonrpc/src/author.ts | 2 +- packages/type-jsonrpc/src/chain.ts | 2 +- packages/type-jsonrpc/src/create/method.ts | 2 +- packages/type-jsonrpc/src/create/param.ts | 2 +- packages/type-jsonrpc/src/index.spec.js | 2 +- packages/type-jsonrpc/src/index.ts | 2 +- packages/type-jsonrpc/src/state.ts | 2 +- packages/type-jsonrpc/src/system.ts | 2 +- packages/type-jsonrpc/src/types.d.ts | 2 +- packages/type-storage/LICENSE | 210 +++++++++++++++++- packages/type-storage/package.json | 6 +- .../type-storage/src/fromMetadata.spec.js | 2 +- packages/type-storage/src/fromMetadata.ts | 2 +- packages/type-storage/src/index.ts | 2 +- packages/type-storage/src/static.ts | 2 +- packages/type-storage/src/storage.spec.js | 2 +- packages/type-storage/src/storage.ts | 2 +- packages/type-storage/src/substrate.spec.js | 2 +- packages/type-storage/src/substrate.ts | 2 +- packages/type-storage/src/types.d.ts | 2 +- .../src/utils/createFunction.spec.js | 2 +- .../type-storage/src/utils/createFunction.ts | 2 +- packages/types/LICENSE | 210 +++++++++++++++++- packages/types/babelConfig.js | 2 +- packages/types/package.json | 4 +- packages/types/src/AccountId.spec.ts | 2 +- packages/types/src/AccountId.ts | 2 +- packages/types/src/AccountIndex.spec.ts | 2 +- packages/types/src/AccountIndex.ts | 2 +- packages/types/src/Address.spec.ts | 2 +- packages/types/src/Address.ts | 2 +- packages/types/src/AuthorityId.ts | 2 +- packages/types/src/Balance.ts | 2 +- packages/types/src/Bft.spec.ts | 2 +- packages/types/src/Bft.ts | 2 +- packages/types/src/Block.ts | 2 +- packages/types/src/BlockNumber.ts | 2 +- packages/types/src/Bool.spec.ts | 2 +- packages/types/src/Bool.ts | 2 +- packages/types/src/Bytes.spec.ts | 2 +- packages/types/src/Bytes.ts | 2 +- packages/types/src/Data.ts | 2 +- packages/types/src/Digest.spec.ts | 2 +- packages/types/src/Digest.ts | 2 +- packages/types/src/Event.ts | 2 +- packages/types/src/EventRecord.spec.ts | 2 +- packages/types/src/EventRecord.ts | 2 +- packages/types/src/Extrinsic.spec.ts | 2 +- packages/types/src/Extrinsic.ts | 2 +- packages/types/src/ExtrinsicEra.ts | 2 +- packages/types/src/ExtrinsicSignature.ts | 2 +- packages/types/src/ExtrinsicStatus.spec.ts | 2 +- packages/types/src/ExtrinsicStatus.ts | 2 +- packages/types/src/Extrinsics.ts | 2 +- packages/types/src/Gas.ts | 2 +- packages/types/src/H256.ts | 2 +- packages/types/src/H512.ts | 2 +- packages/types/src/Hash.ts | 2 +- packages/types/src/Header.spec.ts | 2 +- packages/types/src/Header.ts | 2 +- packages/types/src/KeyValue.spec.ts | 2 +- packages/types/src/KeyValue.ts | 2 +- packages/types/src/Metadata.rpc.ts | 2 +- packages/types/src/Metadata.spec.ts | 2 +- packages/types/src/Metadata.ts | 2 +- packages/types/src/Method.spec.ts | 2 +- packages/types/src/Method.ts | 2 +- packages/types/src/MisbehaviorReport.spec.ts | 2 +- packages/types/src/MisbehaviorReport.ts | 2 +- packages/types/src/Moment.spec.ts | 2 +- packages/types/src/Moment.ts | 2 +- packages/types/src/NewAccountOutcome.spec.ts | 2 +- packages/types/src/NewAccountOutcome.ts | 2 +- packages/types/src/Nonce.ts | 2 +- packages/types/src/Null.ts | 2 +- packages/types/src/Origin.spec.ts | 2 +- packages/types/src/Origin.ts | 2 +- packages/types/src/ParachainId.ts | 2 +- packages/types/src/PendingExtrinsics.ts | 2 +- packages/types/src/Perbill.ts | 2 +- packages/types/src/Permill.ts | 2 +- packages/types/src/PropIndex.ts | 2 +- packages/types/src/Proposal.ts | 2 +- packages/types/src/ProposalIndex.ts | 2 +- packages/types/src/ReferendumIndex.ts | 2 +- packages/types/src/RuntimeVersion.spec.ts | 2 +- packages/types/src/RuntimeVersion.ts | 2 +- packages/types/src/Signature.ts | 2 +- packages/types/src/SignaturePayload.ts | 2 +- packages/types/src/SignedBlock.spec.ts | 2 +- packages/types/src/SignedBlock.ts | 2 +- packages/types/src/StorageChangeSet.spec.ts | 2 +- packages/types/src/StorageChangeSet.ts | 2 +- packages/types/src/StorageData.ts | 2 +- packages/types/src/StorageKey.spec.ts | 2 +- packages/types/src/StorageKey.ts | 2 +- packages/types/src/Text.spec.ts | 2 +- packages/types/src/Text.ts | 2 +- packages/types/src/Type.spec.ts | 2 +- packages/types/src/Type.ts | 2 +- packages/types/src/U128.ts | 2 +- packages/types/src/U16.ts | 2 +- packages/types/src/U256.ts | 2 +- packages/types/src/U32.ts | 2 +- packages/types/src/U64.ts | 2 +- packages/types/src/U8.ts | 2 +- packages/types/src/ValidatorPrefs.spec.ts | 2 +- packages/types/src/ValidatorPrefs.ts | 2 +- packages/types/src/VoteIndex.ts | 2 +- packages/types/src/VoteThreshold.spec.ts | 2 +- packages/types/src/VoteThreshold.ts | 2 +- packages/types/src/codec/Base.ts | 2 +- packages/types/src/codec/Compact.spec.ts | 2 +- packages/types/src/codec/Compact.ts | 2 +- packages/types/src/codec/Enum.spec.js | 2 +- packages/types/src/codec/Enum.ts | 2 +- packages/types/src/codec/EnumType.spec.js | 2 +- packages/types/src/codec/EnumType.ts | 2 +- packages/types/src/codec/Option.spec.js | 2 +- packages/types/src/codec/Option.ts | 2 +- packages/types/src/codec/Set.spec.ts | 2 +- packages/types/src/codec/Set.ts | 2 +- packages/types/src/codec/Struct.spec.ts | 2 +- packages/types/src/codec/Struct.ts | 2 +- packages/types/src/codec/Tuple.spec.js | 2 +- packages/types/src/codec/Tuple.ts | 2 +- packages/types/src/codec/U8a.spec.ts | 2 +- packages/types/src/codec/U8a.ts | 2 +- packages/types/src/codec/U8aFixed.spec.ts | 2 +- packages/types/src/codec/U8aFixed.ts | 2 +- packages/types/src/codec/UInt.spec.ts | 2 +- packages/types/src/codec/UInt.ts | 2 +- packages/types/src/codec/Vector.spec.ts | 2 +- packages/types/src/codec/Vector.ts | 2 +- packages/types/src/codec/createType.spec.ts | 2 +- packages/types/src/codec/createType.ts | 2 +- packages/types/src/codec/index.ts | 2 +- packages/types/src/index.ts | 2 +- packages/types/src/json/json.d.ts | 2 +- .../types/src/scripts/MetadataJsonDecode.ts | 2 +- .../src/scripts/MetadataJsonDecodeWrapper.js | 2 +- packages/types/src/scripts/MetadataMd.ts | 2 +- .../types/src/scripts/MetadataMdWrapper.js | 2 +- packages/types/src/types.d.ts | 2 +- yarn.lock | 36 +-- 244 files changed, 2255 insertions(+), 395 deletions(-) diff --git a/LICENSE b/LICENSE index 3d150a620a..0d381b2e97 100644 --- a/LICENSE +++ b/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 Jaco Greeff +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.md b/README.md index bb33ceefda..a8db5bce4b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![polkadotjs](https://img.shields.io/badge/polkadot-js-orange.svg?style=flat-square)](https://polkadot.js.org) -![isc](https://img.shields.io/badge/license-ISC-lightgrey.svg?style=flat-square) +![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square) [![style](https://img.shields.io/badge/code%20style-semistandard-lightgrey.svg?style=flat-square)](https://github.com/Flet/semistandard) [![npm](https://img.shields.io/npm/v/@polkadot/api.svg?style=flat-square)](https://www.npmjs.com/package/@polkadot/api) [![travis](https://img.shields.io/travis/polkadot-js/api.svg?style=flat-square)](https://travis-ci.org/polkadot-js/api) diff --git a/lerna.json b/lerna.json index d5728c0f4b..60aa4b450a 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.31.123" + "version": "0.32.0" } diff --git a/package.json b/package.json index b126cc61f4..9f64a6be3f 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "devDependencies": { "@babel/core": "^7.1.6", - "@polkadot/dev": "^0.21.6", - "@polkadot/ts": "^0.1.38" + "@polkadot/dev": "^0.22.1", + "@polkadot/ts": "^0.1.39" } } diff --git a/packages/api-observable/LICENSE b/packages/api-observable/LICENSE index 55c595033a..0d381b2e97 100644 --- a/packages/api-observable/LICENSE +++ b/packages/api-observable/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/api-observable authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/api-observable/package.json b/packages/api-observable/package.json index 90462ca0fb..b5e722c2ad 100644 --- a/packages/api-observable/package.json +++ b/packages/api-observable/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-observable", - "version": "0.31.123", + "version": "0.32.0", "description": "An Observable wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -12,7 +12,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "engines": { "node": ">=8.0" }, @@ -30,10 +30,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.1.5", - "@polkadot/extrinsics": "^0.31.123", - "@polkadot/rpc-core": "^0.31.123", - "@polkadot/rpc-provider": "^0.31.123", - "@polkadot/storage": "^0.31.123", + "@polkadot/extrinsics": "^0.32.0", + "@polkadot/rpc-core": "^0.32.0", + "@polkadot/rpc-provider": "^0.32.0", + "@polkadot/storage": "^0.32.0", "@types/rx": "^4.1.1", "rxjs": "^6.3.3" } diff --git a/packages/api-observable/src/Base.ts b/packages/api-observable/src/Base.ts index 2add558b25..ba7215af0a 100644 --- a/packages/api-observable/src/Base.ts +++ b/packages/api-observable/src/Base.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api-observable authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Extrinsics } from '@polkadot/extrinsics/types'; import { RpcMethod } from '@polkadot/jsonrpc/types'; diff --git a/packages/api-observable/src/Calls.ts b/packages/api-observable/src/Calls.ts index ee9894452c..037e088eb2 100644 --- a/packages/api-observable/src/Calls.ts +++ b/packages/api-observable/src/Calls.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api-observable authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Observable } from 'rxjs'; import { defaultIfEmpty, map } from 'rxjs/operators'; diff --git a/packages/api-observable/src/Combined.ts b/packages/api-observable/src/Combined.ts index 588a0d247f..062f6f2ace 100644 --- a/packages/api-observable/src/Combined.ts +++ b/packages/api-observable/src/Combined.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api-observable authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RxBalance, RxBalanceMap, RxReferendumVote } from './types'; diff --git a/packages/api-observable/src/Queries.ts b/packages/api-observable/src/Queries.ts index 58553bacd2..5b97b3fbf7 100644 --- a/packages/api-observable/src/Queries.ts +++ b/packages/api-observable/src/Queries.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api-observable authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RxFees } from './types'; diff --git a/packages/api-observable/src/classes.ts b/packages/api-observable/src/classes.ts index 87ab56e78b..d176c7c12a 100644 --- a/packages/api-observable/src/classes.ts +++ b/packages/api-observable/src/classes.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api-observable authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import { AccountId, Balance, BlockNumber, PropIndex, Proposal, ReferendumIndex, VoteThreshold } from '@polkadot/types/index'; diff --git a/packages/api-observable/src/index.ts b/packages/api-observable/src/index.ts index 7ab1c8e8b9..495c032342 100644 --- a/packages/api-observable/src/index.ts +++ b/packages/api-observable/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api-observable authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import ApiCombined from './Combined'; diff --git a/packages/api-observable/src/types.d.ts b/packages/api-observable/src/types.d.ts index 858450028a..f7c40a0f56 100644 --- a/packages/api-observable/src/types.d.ts +++ b/packages/api-observable/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api-observable authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Observable } from 'rxjs'; import { AccountId, Balance, BlockNumber, bool as Bool, Header, PropIndex, Proposal, ReferendumIndex, u32, VoteThreshold } from '@polkadot/types/index'; diff --git a/packages/api/LICENSE b/packages/api/LICENSE index a47c81152d..0d381b2e97 100644 --- a/packages/api/LICENSE +++ b/packages/api/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/api authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/api/package.json b/packages/api/package.json index fdaa643d92..11af600f4c 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.31.123", + "version": "0.32.0", "description": "An RxJS wrapper around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -12,7 +12,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "engines": { "node": ">=8.0" }, @@ -30,10 +30,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.1.5", - "@polkadot/extrinsics": "^0.31.123", - "@polkadot/rpc-provider": "^0.31.123", - "@polkadot/rpc-rx": "^0.31.123", - "@polkadot/storage": "^0.31.123", + "@polkadot/extrinsics": "^0.32.0", + "@polkadot/rpc-provider": "^0.32.0", + "@polkadot/rpc-rx": "^0.32.0", + "@polkadot/storage": "^0.32.0", "@types/rx": "^4.1.1", "rxjs": "^6.3.3" } diff --git a/packages/api/src/Base.ts b/packages/api/src/Base.ts index 32c302e34f..e0cd3e5f53 100644 --- a/packages/api/src/Base.ts +++ b/packages/api/src/Base.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ApiBaseInterface, ApiInterface$Events } from './types'; diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 08c47f113a..85eb3531a9 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. export { default as ApiPromise } from './promise'; export { default as ApiRx } from './rx'; diff --git a/packages/api/src/promise/Combinator.ts b/packages/api/src/promise/Combinator.ts index cd1310b468..6dec68307d 100644 --- a/packages/api/src/promise/Combinator.ts +++ b/packages/api/src/promise/Combinator.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isFunction } from '@polkadot/util'; diff --git a/packages/api/src/promise/Combinators.spec.ts b/packages/api/src/promise/Combinators.spec.ts index 3864a90985..740a6d3718 100644 --- a/packages/api/src/promise/Combinators.spec.ts +++ b/packages/api/src/promise/Combinators.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Combinator from './Combinator'; diff --git a/packages/api/src/promise/SubmittableExtrinsic.spec.ts b/packages/api/src/promise/SubmittableExtrinsic.spec.ts index 4dc66e0b93..3b6e7f57f7 100644 --- a/packages/api/src/promise/SubmittableExtrinsic.spec.ts +++ b/packages/api/src/promise/SubmittableExtrinsic.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import extrinsics from '@polkadot/extrinsics/static'; import Extrinsic from '@polkadot/types/Extrinsic'; diff --git a/packages/api/src/promise/SubmittableExtrinsic.ts b/packages/api/src/promise/SubmittableExtrinsic.ts index c37ca1b4ec..0dfba4790a 100644 --- a/packages/api/src/promise/SubmittableExtrinsic.ts +++ b/packages/api/src/promise/SubmittableExtrinsic.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { KeyringPair } from '@polkadot/keyring/types'; import { AnyNumber, AnyU8a } from '@polkadot/types/types'; diff --git a/packages/api/src/promise/index.ts b/packages/api/src/promise/index.ts index c704ba904e..6a119fd448 100644 --- a/packages/api/src/promise/index.ts +++ b/packages/api/src/promise/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ApiPromiseInterface, QueryableStorageFunction, QueryableModuleStorage, QueryableStorage, SubmittableExtrinsics, SubmittableModuleExtrinsics, SubmittableExtrinsicFunction } from './types'; diff --git a/packages/api/src/promise/types.d.ts b/packages/api/src/promise/types.d.ts index 2a91e43944..f69986a9c2 100644 --- a/packages/api/src/promise/types.d.ts +++ b/packages/api/src/promise/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ApiBaseInterface } from '../types'; diff --git a/packages/api/src/rx/SubmittableExtrinsic.ts b/packages/api/src/rx/SubmittableExtrinsic.ts index c94e61567d..3b0103a8fb 100644 --- a/packages/api/src/rx/SubmittableExtrinsic.ts +++ b/packages/api/src/rx/SubmittableExtrinsic.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { KeyringPair } from '@polkadot/keyring/types'; import { AnyNumber, AnyU8a } from '@polkadot/types/types'; diff --git a/packages/api/src/rx/index.ts b/packages/api/src/rx/index.ts index 96fd8cfdb4..d291120335 100644 --- a/packages/api/src/rx/index.ts +++ b/packages/api/src/rx/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ApiRxInterface, QueryableStorageFunction, QueryableModuleStorage, QueryableStorage, SubmittableExtrinsics, SubmittableModuleExtrinsics, SubmittableExtrinsicFunction } from './types'; diff --git a/packages/api/src/rx/types.d.ts b/packages/api/src/rx/types.d.ts index cb013e00c1..c9fddf98a9 100644 --- a/packages/api/src/rx/types.d.ts +++ b/packages/api/src/rx/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ApiBaseInterface } from '../types'; diff --git a/packages/api/src/types.d.ts b/packages/api/src/types.d.ts index acc4e22bdb..634f0a9e91 100644 --- a/packages/api/src/types.d.ts +++ b/packages/api/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import RpcRx from '@polkadot/rpc-rx/index'; import { RpcRxInterface$Events } from '@polkadot/rpc-rx/types'; diff --git a/packages/api/test/e2e/promise-queries.spec.js b/packages/api/test/e2e/promise-queries.spec.js index a44d51b78c..5b8d380450 100644 --- a/packages/api/test/e2e/promise-queries.spec.js +++ b/packages/api/test/e2e/promise-queries.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import testingPairs from '@polkadot/keyring/testingPairs'; diff --git a/packages/api/test/e2e/promise-tx.spec.js b/packages/api/test/e2e/promise-tx.spec.js index dac92e7310..774781da77 100644 --- a/packages/api/test/e2e/promise-tx.spec.js +++ b/packages/api/test/e2e/promise-tx.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import testingPairs from '@polkadot/keyring/testingPairs'; diff --git a/packages/api/test/e2e/rx-queries.spec.js b/packages/api/test/e2e/rx-queries.spec.js index dc94df4fb5..8de14695a4 100644 --- a/packages/api/test/e2e/rx-queries.spec.js +++ b/packages/api/test/e2e/rx-queries.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import testingPairs from '@polkadot/keyring/testingPairs'; diff --git a/packages/api/test/e2e/rx-tx.spec.js b/packages/api/test/e2e/rx-tx.spec.js index 6b6d66d77e..7f1ab1a6cc 100644 --- a/packages/api/test/e2e/rx-tx.spec.js +++ b/packages/api/test/e2e/rx-tx.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/api authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { first, switchMap } from 'rxjs/operators'; import testingPairs from '@polkadot/keyring/testingPairs'; diff --git a/packages/rpc-core/LICENSE b/packages/rpc-core/LICENSE index fd985c7440..0d381b2e97 100644 --- a/packages/rpc-core/LICENSE +++ b/packages/rpc-core/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/rpc-core authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index fa5cc091ba..2ae6548872 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.31.123", + "version": "0.32.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -12,7 +12,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "engines": { "node": ">=6.4" }, @@ -30,8 +30,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.1.5", - "@polkadot/jsonrpc": "^0.31.123", - "@polkadot/rpc-provider": "^0.31.123", + "@polkadot/jsonrpc": "^0.32.0", + "@polkadot/rpc-provider": "^0.32.0", "@polkadot/util": "^0.32.21" } } diff --git a/packages/rpc-core/src/formatting.spec.js b/packages/rpc-core/src/formatting.spec.js index 02f2df41bc..f8ad4fd084 100644 --- a/packages/rpc-core/src/formatting.spec.js +++ b/packages/rpc-core/src/formatting.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import storage from '@polkadot/storage/static'; diff --git a/packages/rpc-core/src/index.spec.js b/packages/rpc-core/src/index.spec.js index d62ed4dc0b..15367ec0ff 100644 --- a/packages/rpc-core/src/index.spec.js +++ b/packages/rpc-core/src/index.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Api from './index'; diff --git a/packages/rpc-core/src/index.ts b/packages/rpc-core/src/index.ts index 8823505067..12aee8f903 100644 --- a/packages/rpc-core/src/index.ts +++ b/packages/rpc-core/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ProviderInterface, ProviderInterface$Callback } from '@polkadot/rpc-provider/types'; import { RpcSection, RpcMethod } from '@polkadot/jsonrpc/types'; diff --git a/packages/rpc-core/src/methodSend.spec.js b/packages/rpc-core/src/methodSend.spec.js index 0ba08cdae2..a5320bd689 100644 --- a/packages/rpc-core/src/methodSend.spec.js +++ b/packages/rpc-core/src/methodSend.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Api from './index'; diff --git a/packages/rpc-core/src/types.d.ts b/packages/rpc-core/src/types.d.ts index b351359c88..3a9089b80d 100644 --- a/packages/rpc-core/src/types.d.ts +++ b/packages/rpc-core/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import interfaces from '@polkadot/jsonrpc/index'; diff --git a/packages/rpc-core/test/e2e/basics.test.js b/packages/rpc-core/test/e2e/basics.test.js index 9089cb4a79..0dd0318eee 100644 --- a/packages/rpc-core/test/e2e/basics.test.js +++ b/packages/rpc-core/test/e2e/basics.test.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from '@polkadot/rpc-provider/ws'; diff --git a/packages/rpc-core/test/e2e/chain.test.js b/packages/rpc-core/test/e2e/chain.test.js index b75a1fb8b9..9d4de6b8c9 100644 --- a/packages/rpc-core/test/e2e/chain.test.js +++ b/packages/rpc-core/test/e2e/chain.test.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from '@polkadot/rpc-provider/ws'; diff --git a/packages/rpc-core/test/e2e/krummelanke.test.js b/packages/rpc-core/test/e2e/krummelanke.test.js index b1a54c000a..4ccc5645ea 100644 --- a/packages/rpc-core/test/e2e/krummelanke.test.js +++ b/packages/rpc-core/test/e2e/krummelanke.test.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import storage from '@polkadot/storage'; import Ws from '@polkadot/rpc-provider/ws'; diff --git a/packages/rpc-core/test/e2e/state.test.js b/packages/rpc-core/test/e2e/state.test.js index 35e2821d24..9f2eb17795 100644 --- a/packages/rpc-core/test/e2e/state.test.js +++ b/packages/rpc-core/test/e2e/state.test.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from '@polkadot/rpc-provider/ws'; import storage from '@polkadot/storage/static'; diff --git a/packages/rpc-core/test/e2e/subscribe.test.js b/packages/rpc-core/test/e2e/subscribe.test.js index 107097a31e..05f77359eb 100644 --- a/packages/rpc-core/test/e2e/subscribe.test.js +++ b/packages/rpc-core/test/e2e/subscribe.test.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-core authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from '@polkadot/rpc-provider/ws'; import storage from '@polkadot/storage/static'; diff --git a/packages/rpc-provider/LICENSE b/packages/rpc-provider/LICENSE index c0f5736950..0d381b2e97 100644 --- a/packages/rpc-provider/LICENSE +++ b/packages/rpc-provider/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/rpc-provider authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 39d0df7805..6d25fd69a3 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.31.123", + "version": "0.32.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -12,7 +12,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "engines": { "node": ">=6.4" }, @@ -31,7 +31,7 @@ "dependencies": { "@babel/runtime": "^7.1.5", "@polkadot/keyring": "^0.32.21", - "@polkadot/storage": "^0.31.123", + "@polkadot/storage": "^0.32.0", "@polkadot/util": "^0.32.21", "@polkadot/util-crypto": "^0.32.21", "@types/nock": "^9.3.0", diff --git a/packages/rpc-provider/src/coder/decodeResponse.spec.ts b/packages/rpc-provider/src/coder/decodeResponse.spec.ts index 387a756b8d..a8fd9daf8f 100644 --- a/packages/rpc-provider/src/coder/decodeResponse.spec.ts +++ b/packages/rpc-provider/src/coder/decodeResponse.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { JsonRpcResponse } from '../types'; import Coder from './index'; diff --git a/packages/rpc-provider/src/coder/encodeJson.spec.ts b/packages/rpc-provider/src/coder/encodeJson.spec.ts index 9203b27005..a541c2103b 100644 --- a/packages/rpc-provider/src/coder/encodeJson.spec.ts +++ b/packages/rpc-provider/src/coder/encodeJson.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Coder from './index'; diff --git a/packages/rpc-provider/src/coder/encodeObject.spec.ts b/packages/rpc-provider/src/coder/encodeObject.spec.ts index 43dd29db47..142206f43c 100644 --- a/packages/rpc-provider/src/coder/encodeObject.spec.ts +++ b/packages/rpc-provider/src/coder/encodeObject.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Coder from './index'; diff --git a/packages/rpc-provider/src/coder/index.ts b/packages/rpc-provider/src/coder/index.ts index 30fea5f612..c2928756c8 100644 --- a/packages/rpc-provider/src/coder/index.ts +++ b/packages/rpc-provider/src/coder/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { JsonRpcRequest, JsonRpcResponse, JsonRpcResponseBase$Error } from '../types'; diff --git a/packages/rpc-provider/src/defaults.ts b/packages/rpc-provider/src/defaults.ts index 722a5fa01d..45527f3438 100644 --- a/packages/rpc-provider/src/defaults.ts +++ b/packages/rpc-provider/src/defaults.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. const HTTP_URL = 'http://127.0.0.1:9933'; const WS_URL = 'ws://127.0.0.1:9944'; diff --git a/packages/rpc-provider/src/http/index.spec.js b/packages/rpc-provider/src/http/index.spec.js index 21d8211326..2681e34a2f 100644 --- a/packages/rpc-provider/src/http/index.spec.js +++ b/packages/rpc-provider/src/http/index.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { TEST_HTTP_URL } from '../../test/mockHttp'; diff --git a/packages/rpc-provider/src/http/index.ts b/packages/rpc-provider/src/http/index.ts index 25f1a2d74b..eac8f074f7 100644 --- a/packages/rpc-provider/src/http/index.ts +++ b/packages/rpc-provider/src/http/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ProviderInterface, ProviderInterface$Callback, ProviderInterface$Emitted, ProviderInterface$EmitCb } from '../types'; diff --git a/packages/rpc-provider/src/http/polyfill.spec.js b/packages/rpc-provider/src/http/polyfill.spec.js index b85dba8983..619def0b5d 100644 --- a/packages/rpc-provider/src/http/polyfill.spec.js +++ b/packages/rpc-provider/src/http/polyfill.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. describe('http/polyfill', () => { let origFetch; diff --git a/packages/rpc-provider/src/http/polyfill.ts b/packages/rpc-provider/src/http/polyfill.ts index 51ed107008..98b8b54a75 100644 --- a/packages/rpc-provider/src/http/polyfill.ts +++ b/packages/rpc-provider/src/http/polyfill.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. // tslint:disable-next-line if (typeof fetch === 'undefined') { diff --git a/packages/rpc-provider/src/http/send.spec.js b/packages/rpc-provider/src/http/send.spec.js index 75e05770af..8823a35efa 100644 --- a/packages/rpc-provider/src/http/send.spec.js +++ b/packages/rpc-provider/src/http/send.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { mockHttp, TEST_HTTP_URL } from '../../test/mockHttp'; diff --git a/packages/rpc-provider/src/http/types.d.ts b/packages/rpc-provider/src/http/types.d.ts index ff8221fa4a..0f265b006b 100644 --- a/packages/rpc-provider/src/http/types.d.ts +++ b/packages/rpc-provider/src/http/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Logger } from '@polkadot/util/types'; diff --git a/packages/rpc-provider/src/index.ts b/packages/rpc-provider/src/index.ts index 354ffa212e..d3fbd3c67f 100644 --- a/packages/rpc-provider/src/index.ts +++ b/packages/rpc-provider/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. export { default as HttpProvider } from './http'; export { default as WsProvider } from './ws'; diff --git a/packages/rpc-provider/src/mock/index.ts b/packages/rpc-provider/src/mock/index.ts index 6b8be13ccf..98d780bf69 100644 --- a/packages/rpc-provider/src/mock/index.ts +++ b/packages/rpc-provider/src/mock/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ProviderInterface, ProviderInterface$Emitted, ProviderInterface$EmitCb } from '../types'; import { MockState$Subscriptions, MockState$Subscription$Callback, MockState$Db } from './types'; diff --git a/packages/rpc-provider/src/mock/on.spec.ts b/packages/rpc-provider/src/mock/on.spec.ts index ffd97cdccb..322f27a263 100644 --- a/packages/rpc-provider/src/mock/on.spec.ts +++ b/packages/rpc-provider/src/mock/on.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ProviderInterface$Emitted } from '../types'; diff --git a/packages/rpc-provider/src/mock/send.spec.ts b/packages/rpc-provider/src/mock/send.spec.ts index a4c3a2a173..ca33b14d5d 100644 --- a/packages/rpc-provider/src/mock/send.spec.ts +++ b/packages/rpc-provider/src/mock/send.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Mock from './index'; diff --git a/packages/rpc-provider/src/mock/subscribe.spec.ts b/packages/rpc-provider/src/mock/subscribe.spec.ts index 97446b9b83..483b160db3 100644 --- a/packages/rpc-provider/src/mock/subscribe.spec.ts +++ b/packages/rpc-provider/src/mock/subscribe.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Mock from './index'; diff --git a/packages/rpc-provider/src/mock/types.d.ts b/packages/rpc-provider/src/mock/types.d.ts index 49cf29f4e2..70f1593f38 100644 --- a/packages/rpc-provider/src/mock/types.d.ts +++ b/packages/rpc-provider/src/mock/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import EventEmitter from 'eventemitter3'; import { Logger } from '@polkadot/util/types'; diff --git a/packages/rpc-provider/src/mock/unsubscribe.spec.ts b/packages/rpc-provider/src/mock/unsubscribe.spec.ts index 0c35b867d0..693473bc31 100644 --- a/packages/rpc-provider/src/mock/unsubscribe.spec.ts +++ b/packages/rpc-provider/src/mock/unsubscribe.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Mock from './index'; diff --git a/packages/rpc-provider/src/types.d.ts b/packages/rpc-provider/src/types.d.ts index cba5035929..64c4ba1d41 100644 --- a/packages/rpc-provider/src/types.d.ts +++ b/packages/rpc-provider/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. export type JsonRpcObject = { id: number; diff --git a/packages/rpc-provider/src/ws/connect.spec.js b/packages/rpc-provider/src/ws/connect.spec.js index 174c4fdf3c..69ee779ad5 100644 --- a/packages/rpc-provider/src/ws/connect.spec.js +++ b/packages/rpc-provider/src/ws/connect.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { mockWs, TEST_WS_URL } from '../../test/mockWs'; diff --git a/packages/rpc-provider/src/ws/index.spec.js b/packages/rpc-provider/src/ws/index.spec.js index 7745b293d7..b44523edc1 100644 --- a/packages/rpc-provider/src/ws/index.spec.js +++ b/packages/rpc-provider/src/ws/index.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { mockWs, TEST_WS_URL } from '../../test/mockWs'; diff --git a/packages/rpc-provider/src/ws/index.ts b/packages/rpc-provider/src/ws/index.ts index 73307a83a0..321af15ed2 100644 --- a/packages/rpc-provider/src/ws/index.ts +++ b/packages/rpc-provider/src/ws/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { JsonRpcResponse, ProviderInterface, ProviderInterface$Callback, ProviderInterface$Emitted, ProviderInterface$EmitCb } from '../types'; diff --git a/packages/rpc-provider/src/ws/onError.spec.js b/packages/rpc-provider/src/ws/onError.spec.js index 016ac52c4d..e5540129d3 100644 --- a/packages/rpc-provider/src/ws/onError.spec.js +++ b/packages/rpc-provider/src/ws/onError.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from './index'; diff --git a/packages/rpc-provider/src/ws/onMessageResult.spec.js b/packages/rpc-provider/src/ws/onMessageResult.spec.js index 8fb303a740..5fbcdb69d4 100644 --- a/packages/rpc-provider/src/ws/onMessageResult.spec.js +++ b/packages/rpc-provider/src/ws/onMessageResult.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from './index'; diff --git a/packages/rpc-provider/src/ws/onMessageSubscribe.spec.js b/packages/rpc-provider/src/ws/onMessageSubscribe.spec.js index c617bcf3ef..8f04f81e1c 100644 --- a/packages/rpc-provider/src/ws/onMessageSubscribe.spec.js +++ b/packages/rpc-provider/src/ws/onMessageSubscribe.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from './index'; diff --git a/packages/rpc-provider/src/ws/onOpen.spec.js b/packages/rpc-provider/src/ws/onOpen.spec.js index 6bb9a0eab0..e00e7310e3 100644 --- a/packages/rpc-provider/src/ws/onOpen.spec.js +++ b/packages/rpc-provider/src/ws/onOpen.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { mockWs, TEST_WS_URL } from '../../test/mockWs'; diff --git a/packages/rpc-provider/src/ws/polyfill.spec.js b/packages/rpc-provider/src/ws/polyfill.spec.js index bb8691fe74..fea49b68aa 100644 --- a/packages/rpc-provider/src/ws/polyfill.spec.js +++ b/packages/rpc-provider/src/ws/polyfill.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. describe('ws/polyfill', () => { let origWs; diff --git a/packages/rpc-provider/src/ws/polyfill.ts b/packages/rpc-provider/src/ws/polyfill.ts index 8cbe861982..03856a02c5 100644 --- a/packages/rpc-provider/src/ws/polyfill.ts +++ b/packages/rpc-provider/src/ws/polyfill.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. // tslint:disable-next-line if (typeof WebSocket === 'undefined') { diff --git a/packages/rpc-provider/src/ws/send.spec.js b/packages/rpc-provider/src/ws/send.spec.js index 23bae3ec4c..4852ea0701 100644 --- a/packages/rpc-provider/src/ws/send.spec.js +++ b/packages/rpc-provider/src/ws/send.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { mockWs, TEST_WS_URL } from '../../test/mockWs'; diff --git a/packages/rpc-provider/src/ws/state.spec.js b/packages/rpc-provider/src/ws/state.spec.js index 8f96506d62..6fb46ac106 100644 --- a/packages/rpc-provider/src/ws/state.spec.js +++ b/packages/rpc-provider/src/ws/state.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from './index'; diff --git a/packages/rpc-provider/src/ws/subscribe.spec.js b/packages/rpc-provider/src/ws/subscribe.spec.js index f44d82d224..4fab142213 100644 --- a/packages/rpc-provider/src/ws/subscribe.spec.js +++ b/packages/rpc-provider/src/ws/subscribe.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { mockWs, TEST_WS_URL } from '../../test/mockWs'; diff --git a/packages/rpc-provider/src/ws/unsubscribe.spec.js b/packages/rpc-provider/src/ws/unsubscribe.spec.js index 5932f92818..28c5bb7db7 100644 --- a/packages/rpc-provider/src/ws/unsubscribe.spec.js +++ b/packages/rpc-provider/src/ws/unsubscribe.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { mockWs, TEST_WS_URL } from '../../test/mockWs'; diff --git a/packages/rpc-provider/test/mockHttp.ts b/packages/rpc-provider/test/mockHttp.ts index 3738c5753a..9e8e6450b8 100644 --- a/packages/rpc-provider/test/mockHttp.ts +++ b/packages/rpc-provider/test/mockHttp.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import nock from 'nock'; diff --git a/packages/rpc-provider/test/mockWs.ts b/packages/rpc-provider/test/mockWs.ts index cda2cff953..8998025ec8 100644 --- a/packages/rpc-provider/test/mockWs.ts +++ b/packages/rpc-provider/test/mockWs.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-provider authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Server } from 'mock-socket'; diff --git a/packages/rpc-rx/LICENSE b/packages/rpc-rx/LICENSE index b9ab3e9f0c..0d381b2e97 100644 --- a/packages/rpc-rx/LICENSE +++ b/packages/rpc-rx/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/rpc-rx authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/rpc-rx/package.json b/packages/rpc-rx/package.json index c740f189df..bef1d43c45 100644 --- a/packages/rpc-rx/package.json +++ b/packages/rpc-rx/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-rx", - "version": "0.31.123", + "version": "0.32.0", "description": "An RxJs wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -12,7 +12,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "engines": { "node": ">=8.0" }, @@ -30,8 +30,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.1.5", - "@polkadot/rpc-core": "^0.31.123", - "@polkadot/rpc-provider": "^0.31.123", + "@polkadot/rpc-core": "^0.32.0", + "@polkadot/rpc-provider": "^0.32.0", "@types/rx": "^4.1.1", "rxjs": "^6.3.3" } diff --git a/packages/rpc-rx/src/cached.spec.js b/packages/rpc-rx/src/cached.spec.js index a7cb69759c..c40eabcfc7 100644 --- a/packages/rpc-rx/src/cached.spec.js +++ b/packages/rpc-rx/src/cached.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-rx authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. jest.mock('@polkadot/rpc-provider/ws', () => class { isConnected = () => true; diff --git a/packages/rpc-rx/src/index.spec.js b/packages/rpc-rx/src/index.spec.js index 3aa5feb2eb..f34abe1dbb 100644 --- a/packages/rpc-rx/src/index.spec.js +++ b/packages/rpc-rx/src/index.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-rx authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isFunction } from '@polkadot/util'; diff --git a/packages/rpc-rx/src/index.ts b/packages/rpc-rx/src/index.ts index a223bf6b08..bab4bffae1 100644 --- a/packages/rpc-rx/src/index.ts +++ b/packages/rpc-rx/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-rx authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RpcInterface$Section, RpcInterface$Section$Method } from '@polkadot/rpc-core/types'; import { ProviderInterface } from '@polkadot/rpc-provider/types'; diff --git a/packages/rpc-rx/src/replay.js b/packages/rpc-rx/src/replay.js index 1f4629b46f..b4f51720fe 100644 --- a/packages/rpc-rx/src/replay.js +++ b/packages/rpc-rx/src/replay.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-rx authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. jest.mock('@polkadot/rpc-provider/ws', () => class { isConnected = () => true; diff --git a/packages/rpc-rx/src/types.d.ts b/packages/rpc-rx/src/types.d.ts index 7e99d9f679..3fb83a5af9 100644 --- a/packages/rpc-rx/src/types.d.ts +++ b/packages/rpc-rx/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-rx authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ReplaySubject, Observable } from 'rxjs'; diff --git a/packages/rpc-rx/test/e2e/subscribe.test.js b/packages/rpc-rx/test/e2e/subscribe.test.js index 4c6802f07f..ae03c6c322 100644 --- a/packages/rpc-rx/test/e2e/subscribe.test.js +++ b/packages/rpc-rx/test/e2e/subscribe.test.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/rpc-rx authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Ws from '@polkadot/rpc-provider/ws'; import storage from '@polkadot/storage/static'; diff --git a/packages/type-extrinsics/LICENSE b/packages/type-extrinsics/LICENSE index f4c79de42b..0d381b2e97 100644 --- a/packages/type-extrinsics/LICENSE +++ b/packages/type-extrinsics/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/extrinsics authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/type-extrinsics/package.json b/packages/type-extrinsics/package.json index 1d9a2ead0b..d19e96d458 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/extrinsics", - "version": "0.31.123", + "version": "0.32.0", "main": "index.js", "repository": "https://github.com/polkadot-js/api.git", "author": "Jaco Greeff ", @@ -8,7 +8,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.1.5", "@polkadot/util": "^0.32.21" diff --git a/packages/type-extrinsics/src/fromMetadata.spec.js b/packages/type-extrinsics/src/fromMetadata.spec.js index 106b58fe89..1654cc90bd 100644 --- a/packages/type-extrinsics/src/fromMetadata.spec.js +++ b/packages/type-extrinsics/src/fromMetadata.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Metadata from '@polkadot/types/Metadata'; import json from '@polkadot/types/Metadata.rpc'; diff --git a/packages/type-extrinsics/src/fromMetadata.ts b/packages/type-extrinsics/src/fromMetadata.ts index d7aee7477d..f1e9b8502f 100644 --- a/packages/type-extrinsics/src/fromMetadata.ts +++ b/packages/type-extrinsics/src/fromMetadata.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Extrinsics, ModuleExtrinsics } from './types'; diff --git a/packages/type-extrinsics/src/index.spec.js b/packages/type-extrinsics/src/index.spec.js index db0cba9cd3..0dcb336506 100644 --- a/packages/type-extrinsics/src/index.spec.js +++ b/packages/type-extrinsics/src/index.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import testingPairs from '@polkadot/keyring/testingPairs'; import { hexToU8a } from '@polkadot/util'; diff --git a/packages/type-extrinsics/src/index.ts b/packages/type-extrinsics/src/index.ts index 8510b0cfd6..f5aa69d93a 100644 --- a/packages/type-extrinsics/src/index.ts +++ b/packages/type-extrinsics/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Extrinsics } from './types'; diff --git a/packages/type-extrinsics/src/static.ts b/packages/type-extrinsics/src/static.ts index d8480a4883..2b2c93874e 100644 --- a/packages/type-extrinsics/src/static.ts +++ b/packages/type-extrinsics/src/static.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import metadataRpc from '@polkadot/types/Metadata.rpc'; import Metadata from '@polkadot/types/Metadata'; diff --git a/packages/type-extrinsics/src/types.d.ts b/packages/type-extrinsics/src/types.d.ts index 1b60f48f11..d283f2055a 100644 --- a/packages/type-extrinsics/src/types.d.ts +++ b/packages/type-extrinsics/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Extrinsic } from '@polkadot/types/index'; import { FunctionMetadata } from '@polkadot/types/Metadata'; diff --git a/packages/type-extrinsics/src/utils/createUnchecked.ts b/packages/type-extrinsics/src/utils/createUnchecked.ts index 9bd932b4fd..492eabdc88 100644 --- a/packages/type-extrinsics/src/utils/createUnchecked.ts +++ b/packages/type-extrinsics/src/utils/createUnchecked.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ExtrinsicFunction } from '../types'; diff --git a/packages/type-extrinsics/test/e2e/transfer.spec.js b/packages/type-extrinsics/test/e2e/transfer.spec.js index f6e02bfbad..9adf602716 100644 --- a/packages/type-extrinsics/test/e2e/transfer.spec.js +++ b/packages/type-extrinsics/test/e2e/transfer.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Rpc from '@polkadot/rpc-core'; import Ws from '@polkadot/rpc-provider/ws'; diff --git a/packages/type-jsonrpc/LICENSE b/packages/type-jsonrpc/LICENSE index 5291406d40..0d381b2e97 100644 --- a/packages/type-jsonrpc/LICENSE +++ b/packages/type-jsonrpc/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/jsonrpc authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 9973eedced..e1d5be1667 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.31.123", + "version": "0.32.0", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "engines": { @@ -23,7 +23,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "bugs": { "url": "https://github.com/polkadot-js/api/issues" }, diff --git a/packages/type-jsonrpc/src/author.ts b/packages/type-jsonrpc/src/author.ts index a3ad6ed747..4dc845322f 100644 --- a/packages/type-jsonrpc/src/author.ts +++ b/packages/type-jsonrpc/src/author.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RpcMethodOpt, RpcSection } from './types'; diff --git a/packages/type-jsonrpc/src/chain.ts b/packages/type-jsonrpc/src/chain.ts index 2019becd01..879094d625 100644 --- a/packages/type-jsonrpc/src/chain.ts +++ b/packages/type-jsonrpc/src/chain.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RpcMethodOpt, RpcSection } from './types'; diff --git a/packages/type-jsonrpc/src/create/method.ts b/packages/type-jsonrpc/src/create/method.ts index a6903fe577..f6da05a4b1 100644 --- a/packages/type-jsonrpc/src/create/method.ts +++ b/packages/type-jsonrpc/src/create/method.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RpcMethodOpt, RpcMethod } from '../types'; diff --git a/packages/type-jsonrpc/src/create/param.ts b/packages/type-jsonrpc/src/create/param.ts index 48329cfc4c..7a506334ff 100644 --- a/packages/type-jsonrpc/src/create/param.ts +++ b/packages/type-jsonrpc/src/create/param.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { CodecTypes } from '@polkadot/types/types'; import { RpcParam } from '../types'; diff --git a/packages/type-jsonrpc/src/index.spec.js b/packages/type-jsonrpc/src/index.spec.js index bd546e3021..bd9241d612 100644 --- a/packages/type-jsonrpc/src/index.spec.js +++ b/packages/type-jsonrpc/src/index.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import interfaces from './index'; diff --git a/packages/type-jsonrpc/src/index.ts b/packages/type-jsonrpc/src/index.ts index a926ffac3d..a72a15ec9c 100644 --- a/packages/type-jsonrpc/src/index.ts +++ b/packages/type-jsonrpc/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RpcSection } from './types'; diff --git a/packages/type-jsonrpc/src/state.ts b/packages/type-jsonrpc/src/state.ts index 62a9f5c124..20b975b29d 100644 --- a/packages/type-jsonrpc/src/state.ts +++ b/packages/type-jsonrpc/src/state.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RpcMethodOpt, RpcSection } from './types'; diff --git a/packages/type-jsonrpc/src/system.ts b/packages/type-jsonrpc/src/system.ts index 0e35a0fe6f..78363072be 100644 --- a/packages/type-jsonrpc/src/system.ts +++ b/packages/type-jsonrpc/src/system.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { RpcMethodOpt, RpcSection } from './types'; diff --git a/packages/type-jsonrpc/src/types.d.ts b/packages/type-jsonrpc/src/types.d.ts index 023c91f9f8..feb7476d11 100644 --- a/packages/type-jsonrpc/src/types.d.ts +++ b/packages/type-jsonrpc/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/jsonrpc authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { CodecTypes } from '@polkadot/types/types'; diff --git a/packages/type-storage/LICENSE b/packages/type-storage/LICENSE index 2cb93d9248..0d381b2e97 100644 --- a/packages/type-storage/LICENSE +++ b/packages/type-storage/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/storage authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index 170b620dd5..0b8f28bd66 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/storage", - "version": "0.31.123", + "version": "0.32.0", "description": "Generic wrapper wrapper around state storage", "main": "index.js", "engines": { @@ -23,7 +23,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "bugs": { "url": "https://github.com/polkadot-js/api/issues" }, @@ -31,7 +31,7 @@ "dependencies": { "@babel/runtime": "^7.1.5", "@polkadot/keyring": "^0.32.21", - "@polkadot/types": "^0.31.123", + "@polkadot/types": "^0.32.0", "@polkadot/util": "^0.32.21", "@polkadot/util-crypto": "^0.32.21" } diff --git a/packages/type-storage/src/fromMetadata.spec.js b/packages/type-storage/src/fromMetadata.spec.js index 4cff28bd25..e4517c08bf 100644 --- a/packages/type-storage/src/fromMetadata.spec.js +++ b/packages/type-storage/src/fromMetadata.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Metadata from '@polkadot/types/Metadata'; import json from '@polkadot/types/Metadata.rpc'; diff --git a/packages/type-storage/src/fromMetadata.ts b/packages/type-storage/src/fromMetadata.ts index 7ff87d4118..1253e563e4 100644 --- a/packages/type-storage/src/fromMetadata.ts +++ b/packages/type-storage/src/fromMetadata.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ModuleStorage, Storage } from './types'; diff --git a/packages/type-storage/src/index.ts b/packages/type-storage/src/index.ts index 38bb330845..cc9311bc3a 100644 --- a/packages/type-storage/src/index.ts +++ b/packages/type-storage/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { storage } from './storage'; diff --git a/packages/type-storage/src/static.ts b/packages/type-storage/src/static.ts index db40229e77..71c385808a 100644 --- a/packages/type-storage/src/static.ts +++ b/packages/type-storage/src/static.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import metadataRpc from '@polkadot/types/Metadata.rpc'; import Metadata from '@polkadot/types/Metadata'; diff --git a/packages/type-storage/src/storage.spec.js b/packages/type-storage/src/storage.spec.js index d89dd1d59c..85337a56f4 100644 --- a/packages/type-storage/src/storage.spec.js +++ b/packages/type-storage/src/storage.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { storage } from './storage'; diff --git a/packages/type-storage/src/storage.ts b/packages/type-storage/src/storage.ts index 89079b4c82..25c6e75508 100644 --- a/packages/type-storage/src/storage.ts +++ b/packages/type-storage/src/storage.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Storage } from './types'; import * as substrate from './substrate'; diff --git a/packages/type-storage/src/substrate.spec.js b/packages/type-storage/src/substrate.spec.js index 240c78a74f..bf5799ecf8 100644 --- a/packages/type-storage/src/substrate.spec.js +++ b/packages/type-storage/src/substrate.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { authorityCount, authorityPrefix, changesTrieConfig, code, extrinsicIndex, heapPages } from './substrate'; diff --git a/packages/type-storage/src/substrate.ts b/packages/type-storage/src/substrate.ts index 9bafb69a53..73041688d6 100644 --- a/packages/type-storage/src/substrate.ts +++ b/packages/type-storage/src/substrate.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { StorageFunctionMetadata, StorageFunctionModifier, StorageFunctionType } from '@polkadot/types/Metadata'; import { StorageFunction } from '@polkadot/types/StorageKey'; diff --git a/packages/type-storage/src/types.d.ts b/packages/type-storage/src/types.d.ts index ec6f418bc3..b82f617969 100644 --- a/packages/type-storage/src/types.d.ts +++ b/packages/type-storage/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { StorageFunction } from '@polkadot/types/StorageKey'; diff --git a/packages/type-storage/src/utils/createFunction.spec.js b/packages/type-storage/src/utils/createFunction.spec.js index 19359a5c36..6d263c8481 100644 --- a/packages/type-storage/src/utils/createFunction.spec.js +++ b/packages/type-storage/src/utils/createFunction.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import createFunction from './createFunction'; diff --git a/packages/type-storage/src/utils/createFunction.ts b/packages/type-storage/src/utils/createFunction.ts index 13017dcf7a..a642aa60a1 100644 --- a/packages/type-storage/src/utils/createFunction.ts +++ b/packages/type-storage/src/utils/createFunction.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/storage authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Compact from '@polkadot/types/codec/Compact'; import { createType } from '@polkadot/types/codec'; diff --git a/packages/types/LICENSE b/packages/types/LICENSE index 1d31865b2e..0d381b2e97 100644 --- a/packages/types/LICENSE +++ b/packages/types/LICENSE @@ -1,15 +1,201 @@ -ISC License (ISC) + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright 2017-2018 @polkadot/types authors & contributors +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +1. Definitions. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/packages/types/babelConfig.js b/packages/types/babelConfig.js index ac9863dc5e..7a6b03e8f0 100644 --- a/packages/types/babelConfig.js +++ b/packages/types/babelConfig.js @@ -1,7 +1,7 @@ #!/usr/bin/env node // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. require('@babel/register')({ extensions: ['.js', '.ts'], diff --git a/packages/types/package.json b/packages/types/package.json index 9584ce829a..461226392b 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.31.123", + "version": "0.32.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -12,7 +12,7 @@ "Jaco Greeff " ], "contributors": [], - "license": "ISC", + "license": "Apache-2.0", "engines": { "node": ">=6.4" }, diff --git a/packages/types/src/AccountId.spec.ts b/packages/types/src/AccountId.spec.ts index 2c9e15d01d..5a9e413147 100644 --- a/packages/types/src/AccountId.spec.ts +++ b/packages/types/src/AccountId.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { setAddressPrefix } from '@polkadot/keyring'; import U8a from './codec/U8a'; diff --git a/packages/types/src/AccountId.ts b/packages/types/src/AccountId.ts index fb642e79a0..8f8e5d9ac6 100644 --- a/packages/types/src/AccountId.ts +++ b/packages/types/src/AccountId.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyString, AnyU8a } from './types'; diff --git a/packages/types/src/AccountIndex.spec.ts b/packages/types/src/AccountIndex.spec.ts index 0057800098..f13e89bf16 100644 --- a/packages/types/src/AccountIndex.spec.ts +++ b/packages/types/src/AccountIndex.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import AccountIndex from './AccountIndex'; diff --git a/packages/types/src/AccountIndex.ts b/packages/types/src/AccountIndex.ts index 40de8d7252..99bee00fda 100644 --- a/packages/types/src/AccountIndex.ts +++ b/packages/types/src/AccountIndex.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import { decodeAddress, encodeAddress } from '@polkadot/keyring'; diff --git a/packages/types/src/Address.spec.ts b/packages/types/src/Address.spec.ts index fcb83880b4..5656c88577 100644 --- a/packages/types/src/Address.spec.ts +++ b/packages/types/src/Address.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import AccountId from './AccountId'; import AccountIndex from './AccountIndex'; diff --git a/packages/types/src/Address.ts b/packages/types/src/Address.ts index 41ec9ace65..b0d14ea554 100644 --- a/packages/types/src/Address.ts +++ b/packages/types/src/Address.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import { decodeAddress } from '@polkadot/keyring'; diff --git a/packages/types/src/AuthorityId.ts b/packages/types/src/AuthorityId.ts index 815a417d82..ddace22c3a 100644 --- a/packages/types/src/AuthorityId.ts +++ b/packages/types/src/AuthorityId.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import AccountId from './AccountId'; diff --git a/packages/types/src/Balance.ts b/packages/types/src/Balance.ts index 5f1ab8cbb2..fc10e5c88d 100644 --- a/packages/types/src/Balance.ts +++ b/packages/types/src/Balance.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U128 from './U128'; diff --git a/packages/types/src/Bft.spec.ts b/packages/types/src/Bft.spec.ts index 61f46c709d..72c908d22d 100644 --- a/packages/types/src/Bft.spec.ts +++ b/packages/types/src/Bft.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { BftAuthoritySignature, BftHashSignature, Justification } from './Bft'; diff --git a/packages/types/src/Bft.ts b/packages/types/src/Bft.ts index b6af6849f8..3a2ee38c71 100644 --- a/packages/types/src/Bft.ts +++ b/packages/types/src/Bft.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber, AnyU8a } from './types'; diff --git a/packages/types/src/Block.ts b/packages/types/src/Block.ts index 149ce80ee5..90a9a5afa7 100644 --- a/packages/types/src/Block.ts +++ b/packages/types/src/Block.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyU8a } from './types'; diff --git a/packages/types/src/BlockNumber.ts b/packages/types/src/BlockNumber.ts index fa88c75bae..722fbf4323 100644 --- a/packages/types/src/BlockNumber.ts +++ b/packages/types/src/BlockNumber.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U64 from './U64'; diff --git a/packages/types/src/Bool.spec.ts b/packages/types/src/Bool.spec.ts index b3182e2884..43e33030ba 100644 --- a/packages/types/src/Bool.spec.ts +++ b/packages/types/src/Bool.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Bool from './Bool'; import { CodecTo } from './types'; diff --git a/packages/types/src/Bool.ts b/packages/types/src/Bool.ts index ae67cbc3f7..12035eefef 100644 --- a/packages/types/src/Bool.ts +++ b/packages/types/src/Bool.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isU8a, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/Bytes.spec.ts b/packages/types/src/Bytes.spec.ts index 29283705f8..e171b7bafa 100644 --- a/packages/types/src/Bytes.spec.ts +++ b/packages/types/src/Bytes.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Bytes from './Bytes'; diff --git a/packages/types/src/Bytes.ts b/packages/types/src/Bytes.ts index 5a57335a85..9271b30a5f 100644 --- a/packages/types/src/Bytes.ts +++ b/packages/types/src/Bytes.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { hexToU8a, isHex, isString, isU8a, u8aConcat, u8aToU8a } from '@polkadot/util'; diff --git a/packages/types/src/Data.ts b/packages/types/src/Data.ts index 8a5b86a3fe..670fc9ead0 100644 --- a/packages/types/src/Data.ts +++ b/packages/types/src/Data.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U8a from './codec/U8a'; diff --git a/packages/types/src/Digest.spec.ts b/packages/types/src/Digest.spec.ts index fe101b8123..c06956092f 100644 --- a/packages/types/src/Digest.spec.ts +++ b/packages/types/src/Digest.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import json from './json/Header.002.json'; import Digest from './Digest'; diff --git a/packages/types/src/Digest.ts b/packages/types/src/Digest.ts index 6d6a0df4ed..b98a077df1 100644 --- a/packages/types/src/Digest.ts +++ b/packages/types/src/Digest.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import EnumType from './codec/EnumType'; import Struct from './codec/Struct'; diff --git a/packages/types/src/Event.ts b/packages/types/src/Event.ts index 82f5c65773..7a07584f64 100644 --- a/packages/types/src/Event.ts +++ b/packages/types/src/Event.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Constructor, ConstructorDef } from './types'; diff --git a/packages/types/src/EventRecord.spec.ts b/packages/types/src/EventRecord.spec.ts index 8f9f31a057..e2f7226f37 100644 --- a/packages/types/src/EventRecord.spec.ts +++ b/packages/types/src/EventRecord.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import createType from './codec/createType'; import Vector from './codec/Vector'; diff --git a/packages/types/src/EventRecord.ts b/packages/types/src/EventRecord.ts index c2d797d877..ae07528b01 100644 --- a/packages/types/src/EventRecord.ts +++ b/packages/types/src/EventRecord.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import EnumType from './codec/EnumType'; import Struct from './codec/Struct'; diff --git a/packages/types/src/Extrinsic.spec.ts b/packages/types/src/Extrinsic.spec.ts index 69c780d798..9e8100073f 100644 --- a/packages/types/src/Extrinsic.spec.ts +++ b/packages/types/src/Extrinsic.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import extrinsics from '@polkadot/extrinsics/static'; diff --git a/packages/types/src/Extrinsic.ts b/packages/types/src/Extrinsic.ts index 5d2e373990..c408d595c3 100644 --- a/packages/types/src/Extrinsic.ts +++ b/packages/types/src/Extrinsic.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { KeyringPair } from '@polkadot/keyring/types'; import { AnyNumber, AnyU8a, Codec } from './types'; diff --git a/packages/types/src/ExtrinsicEra.ts b/packages/types/src/ExtrinsicEra.ts index 416cbda11b..e8b556fdee 100644 --- a/packages/types/src/ExtrinsicEra.ts +++ b/packages/types/src/ExtrinsicEra.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyU8a } from './types'; diff --git a/packages/types/src/ExtrinsicSignature.ts b/packages/types/src/ExtrinsicSignature.ts index 121e72bc37..cf73911577 100644 --- a/packages/types/src/ExtrinsicSignature.ts +++ b/packages/types/src/ExtrinsicSignature.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { KeyringPair } from '@polkadot/keyring/types'; import { AnyNumber, AnyU8a } from './types'; diff --git a/packages/types/src/ExtrinsicStatus.spec.ts b/packages/types/src/ExtrinsicStatus.spec.ts index d2f6527098..6b3807d760 100644 --- a/packages/types/src/ExtrinsicStatus.spec.ts +++ b/packages/types/src/ExtrinsicStatus.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import rpc from './json/ExtrinsicStatus.001.json'; import ExtrinsicStatus from './ExtrinsicStatus'; diff --git a/packages/types/src/ExtrinsicStatus.ts b/packages/types/src/ExtrinsicStatus.ts index aa9532abb7..b5dfab51e1 100644 --- a/packages/types/src/ExtrinsicStatus.ts +++ b/packages/types/src/ExtrinsicStatus.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import EnumType from './codec/EnumType'; import Vector from './codec/Vector'; diff --git a/packages/types/src/Extrinsics.ts b/packages/types/src/Extrinsics.ts index 6b9cee95f0..078c089dd9 100644 --- a/packages/types/src/Extrinsics.ts +++ b/packages/types/src/Extrinsics.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Vector from './codec/Vector'; import Extrinsic from './Extrinsic'; diff --git a/packages/types/src/Gas.ts b/packages/types/src/Gas.ts index c6ce57f5ee..20b1ada671 100644 --- a/packages/types/src/Gas.ts +++ b/packages/types/src/Gas.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U64 from './U64'; diff --git a/packages/types/src/H256.ts b/packages/types/src/H256.ts index bf82e735b9..347fad3d76 100644 --- a/packages/types/src/H256.ts +++ b/packages/types/src/H256.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyU8a } from './types'; diff --git a/packages/types/src/H512.ts b/packages/types/src/H512.ts index fe145ce339..c48ddcc622 100644 --- a/packages/types/src/H512.ts +++ b/packages/types/src/H512.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyU8a } from './types'; diff --git a/packages/types/src/Hash.ts b/packages/types/src/Hash.ts index f0f7382ce7..a5efe7ed3f 100644 --- a/packages/types/src/Hash.ts +++ b/packages/types/src/Hash.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import H256 from './H256'; diff --git a/packages/types/src/Header.spec.ts b/packages/types/src/Header.spec.ts index 59eb161747..597b153e1b 100644 --- a/packages/types/src/Header.spec.ts +++ b/packages/types/src/Header.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; diff --git a/packages/types/src/Header.ts b/packages/types/src/Header.ts index 9718a4f824..c511544ea8 100644 --- a/packages/types/src/Header.ts +++ b/packages/types/src/Header.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber, AnyU8a } from './types'; diff --git a/packages/types/src/KeyValue.spec.ts b/packages/types/src/KeyValue.spec.ts index 15a25d0ab8..e9776562b8 100644 --- a/packages/types/src/KeyValue.spec.ts +++ b/packages/types/src/KeyValue.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import KeyValue, { KeyValueOption } from './KeyValue'; diff --git a/packages/types/src/KeyValue.ts b/packages/types/src/KeyValue.ts index 84a8118b1a..bb7444c5bd 100644 --- a/packages/types/src/KeyValue.ts +++ b/packages/types/src/KeyValue.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyU8a } from './types'; diff --git a/packages/types/src/Metadata.rpc.ts b/packages/types/src/Metadata.rpc.ts index 8395f5a767..f09c7c922e 100644 --- a/packages/types/src/Metadata.rpc.ts +++ b/packages/types/src/Metadata.rpc.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. const meta = '0x65f5144576656e74281873797374656d084045787472696e7369635375636365737300049420416e2065787472696e73696320636f6d706c65746564207375636365737366756c6c792e3c45787472696e7369634661696c656400045420416e2065787472696e736963206661696c65642e2062616c616e6365730c284e65774163636f756e740c244163636f756e744964304163636f756e74496e646578444e65774163636f756e744f7574636f6d65046c2041206e6577206163636f756e742077617320637265617465642e345265617065644163636f756e7404244163636f756e744964045c20416e206163636f756e7420776173207265617065642e205472616e7366657210244163636f756e744964244163636f756e7449641c42616c616e63651c42616c616e636504b0205472616e7366657220737563636565646564202866726f6d2c20746f2c2076616c75652c2066656573292e1c73657373696f6e04284e657753657373696f6e042c426c6f636b4e756d626572085501204e65772073657373696f6e206861732068617070656e65642e204e6f746520746861742074686520617267756d656e74206973207468652073657373696f6e20696e6465782c206e6f742074686520626c6f636b88206e756d626572206173207468652074797065206d6967687420737567676573742e1c7374616b696e670c18526577617264041c42616c616e636504e020416c6c2076616c696461746f72732068617665206265656e2072657761726465642062792074686520676976656e2062616c616e63652e384f66666c696e655761726e696e6708244163636f756e7449640c753332085501204f6e652076616c696461746f722028616e64207468656972206e6f6d696e61746f72732920686173206265656e20676976656e2061206f66666c696e652d7761726e696e67202874686579277265207374696c6c15012077697468696e207468656972206772616365292e205468652061636372756564206e756d626572206f6620736c6173686573206973207265636f726465642c20746f6f2e304f66666c696e65536c61736808244163636f756e7449641c42616c616e6365042d01204f6e652076616c696461746f722028616e64207468656972206e6f6d696e61746f72732920686173206265656e20736c61736865642062792074686520676976656e20616d6f756e742e2464656d6f637261637918185461626c65640c2450726f70496e6465781c42616c616e6365385665633c4163636f756e7449643e001c53746172746564083c5265666572656e64756d496e64657834566f74655468726573686f6c640018506173736564043c5265666572656e64756d496e64657800244e6f74506173736564043c5265666572656e64756d496e646578002443616e63656c6c6564043c5265666572656e64756d496e64657800204578656375746564083c5265666572656e64756d496e64657810626f6f6c001c636f756e63696c102c566f74657252656170656408244163636f756e744964244163636f756e74496404542072656170656420766f7465722c2072656170657240426164526561706572536c617368656404244163636f756e744964043c20736c6173686564207265617065723054616c6c7953746172746564040c75333204f420412074616c6c792028666f7220617070726f76616c20766f746573206f6620636f756e63696c2073656174287329292068617320737461727465642e3854616c6c7946696e616c6973656408385665633c4163636f756e7449643e385665633c4163636f756e7449643e04690120412074616c6c792028666f7220617070726f76616c20766f746573206f6620636f756e63696c2073656174287329292068617320656e646564202877697468206f6e65206f72206d6f7265206e6577206d656d62657273292e38636f756e63696c5f766f74696e67084054616c6c7943616e63656c6174696f6e1010486173680c7533320c7533320c753332080101204120766f74696e672074616c6c79206861732068617070656e656420666f722061207265666572656e64756d2063616e63656c6c6174696f6e20766f74652ea0204c61737420746872656520617265207965732c206e6f2c206162737461696e20636f756e74732e3c54616c6c795265666572656e64756d1010486173680c7533320c7533320c75333208cc204120766f74696e672074616c6c79206861732068617070656e656420666f722061207265666572656e64756d20766f74652ea0204c61737420746872656520617265207965732c206e6f2c206162737461696e20636f756e74732e3c636f756e63696c5f6d6f74696f6e73142050726f706f73656410244163636f756e7449643450726f706f73616c496e64657810486173680c7533320465012041206d6f74696f6e2028676976656e20686173682920686173206265656e2070726f706f7365642028627920676976656e206163636f756e742920776974682061207468726573686f6c642028676976656e20753332292e14566f74656414244163636f756e744964104861736810626f6f6c0c7533320c7533320809012041206d6f74696f6e2028676976656e20686173682920686173206265656e20766f746564206f6e20627920676976656e206163636f756e742c206c656176696e67f420612074616c6c79202879657320766f74657320616e64206e6f20766f74657320676976656e206173207533327320726573706563746976656c79292e20417070726f76656404104861736804c42041206d6f74696f6e2077617320617070726f76656420627920746865207265717569726564207468726573686f6c642e2c446973617070726f76656404104861736804d42041206d6f74696f6e20776173206e6f7420617070726f76656420627920746865207265717569726564207468726573686f6c642e20457865637574656408104861736810626f6f6c0405012041206d6f74696f6e207761732065786563757465643b2060626f6f6c6020697320747275652069662072657475726e656420776974686f7574206572726f722e207472656173757279142050726f706f736564043450726f706f73616c496e6465780438204e65772070726f706f73616c2e205370656e64696e67041c42616c616e636504e8205765206861766520656e6465642061207370656e6420706572696f6420616e642077696c6c206e6f7720616c6c6f636174652066756e64732e1c417761726465640c3450726f706f73616c496e6465781c42616c616e6365244163636f756e744964048020536f6d652066756e64732068617665206265656e20616c6c6f63617465642e144275726e74041c42616c616e6365048c20536f6d65206f66206f75722066756e64732068617665206265656e206275726e742e20526f6c6c6f766572041c42616c616e6365043101205370656e64696e67206861732066696e69736865643b20746869732069732074686520616d6f756e74207468617420726f6c6c73206f76657220756e74696c206e657874207370656e642e20636f6e747261637404205472616e736665720c244163636f756e744964244163636f756e7449641c42616c616e6365047501205472616e736665722068617070656e6564206066726f6d60202d3e2060746f60207769746820676976656e206076616c7565602061732070617274206f66206120606d6573736167652d63616c6c60206f722060637265617465602e301873797374656d184d6f64756c651043616c6c00011853797374656d28304163636f756e744e6f6e6365010130543a3a4163636f756e74496420543a3a496e646578003845787472696e736963436f756e7400000c7533320024426c6f636b48617368010138543a3a426c6f636b4e756d6265721c543a3a48617368003445787472696e7369634461746101010c7533321c5665633c75383e002852616e646f6d5365656401001c543a3a4861736800184e756d626572010038543a3a426c6f636b4e756d626572040901205468652063757272656e7420626c6f636b206e756d626572206265696e672070726f6365737365642e205365742062792060657865637574655f626c6f636b602e28506172656e744861736801001c543a3a48617368003845787472696e73696373526f6f7401001c543a3a486173680018446967657374010024543a3a44696765737400184576656e74730100685665633c4576656e745265636f72643c543a3a4576656e743e3e0024636f6e73656e737573184d6f64756c651043616c6c140000487265706f72745f6d69736265686176696f7204187265706f7274a84d69736265686176696f725265706f72743c543a3a486173682c20543a3a426c6f636b4e756d6265723e000100306e6f74655f6f66666c696e65044c6f66666c696e655f76616c5f696e6469636573205665633c7533323e0002001872656d61726b041872656d61726b1c5665633c75383e000300207365745f636f6465040c6e65771c5665633c75383e0004002c7365745f73746f7261676504146974656d73345665633c4b657956616c75653e000124436f6e73656e737573044c4f726967696e616c417574686f7269746965730000485665633c543a3a53657373696f6e4b65793e002062616c616e636573184d6f64756c651043616c6c080000207472616e73666572081064657374a4526177416464726573733c543a3a4163636f756e7449642c20543a3a4163636f756e74496e6465783e1476616c756528543a3a42616c616e63650001002c7365745f62616c616e63650c0c77686fa4526177416464726573733c543a3a4163636f756e7449642c20543a3a4163636f756e74496e6465783e106672656528543a3a42616c616e636520726573657276656428543a3a42616c616e636500012042616c616e6365732c34546f74616c49737375616e6365010028543a3a42616c616e636504a42054686520746f74616c20616d6f756e74206f66207374616b65206f6e207468652073797374656d2e484578697374656e7469616c4465706f736974010028543a3a42616c616e636504d020546865206d696e696d756d20616d6f756e7420616c6c6f77656420746f206b65657020616e206163636f756e74206f70656e2e345265636c61696d526562617465010028543a3a42616c616e63650429012054686520616d6f756e7420637265646974656420746f20612064657374696e6174696f6e2773206163636f756e742077686f736520696e64657820776173207265636c61696d65642e2c5472616e73666572466565010028543a3a42616c616e63650494205468652066656520726571756972656420746f206d616b652061207472616e736665722e2c4372656174696f6e466565010028543a3a42616c616e6365042501205468652066656520726571756972656420746f2063726561746520616e206163636f756e742e204174206c6561737420617320626967206173205265636c61696d5265626174652e2c4e657874456e756d53657401003c543a3a4163636f756e74496e646578047c20546865206e657874206672656520656e756d65726174696f6e207365742e1c456e756d53657401013c543a3a4163636f756e74496e646578445665633c543a3a4163636f756e7449643e04582054686520656e756d65726174696f6e20736574732e2c4672656542616c616e6365010130543a3a4163636f756e74496428543a3a42616c616e63652c9c20546865202766726565272062616c616e6365206f66206120676976656e206163636f756e742e004d01205468697320697320746865206f6e6c792062616c616e63652074686174206d61747465727320696e207465726d73206f66206d6f7374206f7065726174696f6e73206f6e20746f6b656e732e204974206973690120616c6f6e65207573656420746f2064657465726d696e65207468652062616c616e6365207768656e20696e2074686520636f6e747261637420657865637574696f6e20656e7669726f6e6d656e742e205768656e207468697355012062616c616e63652066616c6c732062656c6f77207468652076616c7565206f6620604578697374656e7469616c4465706f736974602c207468656e20746865202763757272656e74206163636f756e74272069733d012064656c657465643a207370656369666963616c6c7920604672656542616c616e6365602e20467572746865726d6f72652c20604f6e4672656542616c616e63655a65726f602063616c6c6261636b410120697320696e766f6b65642c20676976696e672061206368616e636520746f2065787465726e616c206d6f64756c657320746f20636c65616e75702064617461206173736f636961746564207769746854207468652064656c65746564206163636f756e742e005d01206073797374656d3a3a4163636f756e744e6f6e63656020697320616c736f2064656c657465642069662060526573657276656442616c616e63656020697320616c736f207a65726f2028697420616c736f2067657473150120636f6c6c617073656420746f207a65726f2069662069742065766572206265636f6d6573206c657373207468616e20604578697374656e7469616c4465706f736974602e3c526573657276656442616c616e6365010130543a3a4163636f756e74496428543a3a42616c616e63653075012054686520616d6f756e74206f66207468652062616c616e6365206f66206120676976656e206163636f756e7420746861742069732065787465726e616c6c792072657365727665643b20746869732063616e207374696c6c206765749c20736c61736865642c20627574206765747320736c6173686564206c617374206f6620616c6c2e006d0120546869732062616c616e63652069732061202772657365727665272062616c616e63652074686174206f746865722073756273797374656d732075736520696e206f7264657220746f2073657420617369646520746f6b656e737101207468617420617265207374696c6c20276f776e65642720627920746865206163636f756e7420686f6c6465722c20627574207768696368206172652073757370656e6461626c652e20285468697320697320646966666572656e74290120616e642077686f6c6c7920756e72656c6174656420746f207468652060426f6e64616765602073797374656d207573656420696e20746865207374616b696e67206d6f64756c652e29007501205768656e20746869732062616c616e63652066616c6c732062656c6f77207468652076616c7565206f6620604578697374656e7469616c4465706f736974602c207468656e2074686973202772657365727665206163636f756e7427b42069732064656c657465643a207370656369666963616c6c792c2060526573657276656442616c616e6365602e004d01206073797374656d3a3a4163636f756e744e6f6e63656020697320616c736f2064656c6574656420696620604672656542616c616e63656020697320616c736f207a65726f2028697420616c736f2067657473150120636f6c6c617073656420746f207a65726f2069662069742065766572206265636f6d6573206c657373207468616e20604578697374656e7469616c4465706f736974602e485472616e73616374696f6e42617365466565010028543a3a42616c616e636504dc205468652066656520746f206265207061696420666f72206d616b696e672061207472616e73616374696f6e3b2074686520626173652e485472616e73616374696f6e42797465466565010028543a3a42616c616e6365040d01205468652066656520746f206265207061696420666f72206d616b696e672061207472616e73616374696f6e3b20746865207065722d6279746520706f7274696f6e2e2474696d657374616d70184d6f64756c651043616c6c0400000c736574040c6e6f7724543a3a4d6f6d656e7400012454696d657374616d700c0c4e6f77010024543a3a4d6f6d656e7404902043757272656e742074696d6520666f72207468652063757272656e7420626c6f636b2e2c426c6f636b506572696f64010024543a3a4d6f6d656e7404c420546865206d696e696d756d2028616e6420616476697365642920706572696f64206265747765656e20626c6f636b732e24446964557064617465010010626f6f6c04b420446964207468652074696d657374616d7020676574207570646174656420696e207468697320626c6f636b3f1c73657373696f6e184d6f64756c651043616c6c0c00001c7365745f6b6579040c6b657934543a3a53657373696f6e4b6579000100287365745f6c656e677468040c6e657738543a3a426c6f636b4e756d62657200020044666f7263655f6e65775f73657373696f6e04346170706c795f7265776172647310626f6f6c00011c53657373696f6e202856616c696461746f72730100445665633c543a3a4163636f756e7449643e047c205468652063757272656e7420736574206f662076616c696461746f72732e3453657373696f6e4c656e677468010038543a3a426c6f636b4e756d626572047c2043757272656e74206c656e677468206f66207468652073657373696f6e2e3043757272656e74496e646578010038543a3a426c6f636b4e756d62657204782043757272656e7420696e646578206f66207468652073657373696f6e2e3043757272656e745374617274010024543a3a4d6f6d656e7404a02054696d657374616d70207768656e2063757272656e742073657373696f6e20737461727465642e44466f7263696e674e657753657373696f6e000010626f6f6c087901204e65772073657373696f6e206973206265696e6720666f72636564206973207468697320656e747279206578697374733b20696e20776869636820636173652c2074686520626f6f6c65616e2076616c75652069732077686574686572810120746865206e65772073657373696f6e2073686f756c6420626520636f6e736964657265642061206e6f726d616c20726f746174696f6e202872657761726461626c6529206f7220657863657074696f6e616c2028736c61736861626c65292e404c6173744c656e6774684368616e6765000038543a3a426c6f636b4e756d62657204c020426c6f636b206174207768696368207468652073657373696f6e206c656e677468206c617374206368616e6765642e284e6578744b6579466f72000130543a3a4163636f756e74496434543a3a53657373696f6e4b6579049020546865206e657874206b657920666f72206120676976656e2076616c696461746f722e444e65787453657373696f6e4c656e677468000038543a3a426c6f636b4e756d626572046420546865206e6578742073657373696f6e206c656e6774682e1c7374616b696e67184d6f64756c651043616c6c280000147374616b65000001001c756e7374616b650440696e74656e74696f6e735f696e6465780c753332000200206e6f6d696e617465041874617267657498416464726573733c543a3a4163636f756e7449642c20543a3a4163636f756e74496e6465783e00030028756e6e6f6d696e61746504307461726765745f696e6465780c7533320004005072656769737465725f707265666572656e6365730840696e74656e74696f6e735f696e6465780c7533321470726566736856616c696461746f7250726566733c543a3a42616c616e63653e000500507365745f73657373696f6e735f7065725f657261040c6e657738543a3a426c6f636b4e756d626572000600507365745f626f6e64696e675f6475726174696f6e040c6e657738543a3a426c6f636b4e756d6265720007004c7365745f76616c696461746f725f636f756e74040c6e65770c75333200080034666f7263655f6e65775f65726104346170706c795f7265776172647310626f6f6c0009005c7365745f6f66666c696e655f736c6173685f6772616365040c6e65770c75333200011c5374616b696e67543856616c696461746f72436f756e7401000c75333204a82054686520696465616c206e756d626572206f66207374616b696e67207061727469636970616e74732e544d696e696d756d56616c696461746f72436f756e7401000c753332044101204d696e696d756d206e756d626572206f66207374616b696e67207061727469636970616e7473206265666f726520656d657267656e637920636f6e646974696f6e732061726520696d706f7365642e3853657373696f6e73506572457261010038543a3a426c6f636b4e756d62657204a420546865206c656e677468206f662061207374616b696e672065726120696e2073657373696f6e732e3453657373696f6e52657761726401001c50657262696c6c042101204d6178696d756d207265776172642c207065722076616c696461746f722c20746861742069732070726f7669646564207065722061636365707461626c652073657373696f6e2e304f66666c696e65536c61736801001c50657262696c6c04510120536c6173682c207065722076616c696461746f7220746861742069732074616b656e20666f72207468652066697273742074696d6520746865792061726520666f756e6420746f206265206f66666c696e652e444f66666c696e65536c617368477261636501000c753332043901204e756d626572206f6620696e7374616e636573206f66206f66666c696e65207265706f727473206265666f726520736c617368696e6720626567696e7320666f722076616c696461746f72732e3c426f6e64696e674475726174696f6e010038543a3a426c6f636b4e756d62657204b820546865206c656e677468206f662074686520626f6e64696e67206475726174696f6e20696e20626c6f636b732e2843757272656e74457261010038543a3a426c6f636b4e756d626572045c205468652063757272656e742065726120696e6465782e5056616c696461746f72507265666572656e636573010130543a3a4163636f756e7449646856616c696461746f7250726566733c543a3a42616c616e63653e048820507265666572656e636573207468617420612076616c696461746f72206861732e28496e74656e74696f6e730100445665633c543a3a4163636f756e7449643e04a420416c6c20746865206163636f756e7473207769746820612064657369726520746f207374616b652e284e6f6d696e6174696e67000130543a3a4163636f756e74496430543a3a4163636f756e74496404a020416c6c206e6f6d696e61746f72202d3e206e6f6d696e65652072656c6174696f6e73686970732e344e6f6d696e61746f7273466f72010130543a3a4163636f756e744964445665633c543a3a4163636f756e7449643e0494204e6f6d696e61746f727320666f72206120706172746963756c6172206163636f756e742e5043757272656e744e6f6d696e61746f7273466f72010130543a3a4163636f756e744964445665633c543a3a4163636f756e7449643e040501204e6f6d696e61746f727320666f72206120706172746963756c6172206163636f756e74207468617420697320696e20616374696f6e207269676874206e6f772e5043757272656e7453657373696f6e526577617264010028543a3a42616c616e6365042101204d6178696d756d207265776172642c207065722076616c696461746f722c20746861742069732070726f7669646564207065722061636365707461626c652073657373696f6e2e4c43757272656e744f66666c696e65536c617368010028543a3a42616c616e636504510120536c6173682c207065722076616c696461746f7220746861742069732074616b656e20666f72207468652066697273742074696d6520746865792061726520666f756e6420746f206265206f66666c696e652e484e65787453657373696f6e73506572457261000038543a3a426c6f636b4e756d626572049020546865206e6578742076616c7565206f662073657373696f6e7320706572206572612e4c4c6173744572614c656e6774684368616e6765010038543a3a426c6f636b4e756d62657204e0205468652073657373696f6e20696e6465782061742077686963682074686520657261206c656e677468206c617374206368616e6765642e285374616b6552616e6765010048506169724f663c543a3a42616c616e63653e04f020546865206869676865737420616e64206c6f77657374207374616b65642076616c696461746f7220736c61736861626c652062616c616e6365732e1c426f6e64616765010130543a3a4163636f756e74496438543a3a426c6f636b4e756d62657204f42054686520626c6f636b20617420776869636820746865206077686f6027732066756e6473206265636f6d6520656e746972656c79206c69717569642e28536c617368436f756e74010130543a3a4163636f756e7449640c75333204d10120546865206e756d626572206f662074696d6573206120676976656e2076616c696461746f7220686173206265656e207265706f72746564206f66666c696e652e205468697320676574732064656372656d656e746564206279206f6e652065616368206572612074686174207061737365732e34466f7263696e674e6577457261000008282904682057652061726520666f7263696e672061206e6577206572612e2464656d6f6372616379184d6f64756c651043616c6c1400001c70726f706f7365082070726f706f73616c40426f783c543a3a50726f706f73616c3e1476616c756528543a3a42616c616e6365000100187365636f6e64042070726f706f73616c2450726f70496e64657800020010766f746508247265665f696e6465783c5265666572656e64756d496e64657840617070726f76655f70726f706f73616c10626f6f6c0003004073746172745f7265666572656e64756d082070726f706f73616c40426f783c543a3a50726f706f73616c3e38766f74655f7468726573686f6c6434566f74655468726573686f6c640004004463616e63656c5f7265666572656e64756d04247265665f696e6465783c5265666572656e64756d496e64657800012444656d6f63726163792c3c5075626c696350726f70436f756e7401002450726f70496e64657804f420546865206e756d626572206f6620287075626c6963292070726f706f73616c7320746861742068617665206265656e206d61646520736f206661722e2c5075626c696350726f70730100ac5665633c2850726f70496e6465782c20543a3a50726f706f73616c2c20543a3a4163636f756e744964293e048020546865207075626c69632070726f706f73616c732e20556e736f727465642e244465706f7369744f6600012450726f70496e6465787c28543a3a42616c616e63652c205665633c543a3a4163636f756e7449643e2904842054686f73652077686f2068617665206c6f636b65642061206465706f7369742e304c61756e6368506572696f64010038543a3a426c6f636b4e756d62657204e420486f77206f6674656e2028696e20626c6f636b7329206e6577207075626c6963207265666572656e646120617265206c61756e636865642e384d696e696d756d4465706f736974010028543a3a42616c616e636504350120546865206d696e696d756d20616d6f756e7420746f20626520757365642061732061206465706f73697420666f722061207075626c6963207265666572656e64756d2070726f706f73616c2e30566f74696e67506572696f64010038543a3a426c6f636b4e756d62657204b820486f77206f6674656e2028696e20626c6f636b732920746f20636865636b20666f72206e657720766f7465732e3c5265666572656e64756d436f756e7401003c5265666572656e64756d496e64657804390120546865206e6578742066726565207265666572656e64756d20696e6465782c20616b6120746865206e756d626572206f66207265666572656e64756d73207374617274656420736f206661722e244e65787454616c6c7901003c5265666572656e64756d496e64657804c820546865206e657874207265666572656e64756d20696e64657820746861742073686f756c642062652074616c6c6965642e405265666572656e64756d496e666f4f6600013c5265666572656e64756d496e646578b028543a3a426c6f636b4e756d6265722c20543a3a50726f706f73616c2c20566f74655468726573686f6c642904b420496e666f726d6174696f6e20636f6e6365726e696e6720616e7920676976656e207265666572656e64756d2e24566f74657273466f7201013c5265666572656e64756d496e646578445665633c543a3a4163636f756e7449643e04a4204765742074686520766f7465727320666f72207468652063757272656e742070726f706f73616c2e18566f74654f6600017c285265666572656e64756d496e6465782c20543a3a4163636f756e7449642910626f6f6c0484204765742074686520766f74652c20696620536f6d652c206f66206077686f602e1c636f756e63696c184d6f64756c651043616c6c240000347365745f617070726f76616c730814766f746573245665633c626f6f6c3e14696e64657824566f7465496e6465780001004c726561705f696e6163746976655f766f74657210387265706f727465725f696e6465780c7533320c77686f98416464726573733c543a3a4163636f756e7449642c20543a3a4163636f756e74496e6465783e2477686f5f696e6465780c75333248617373756d65645f766f74655f696e64657824566f7465496e64657800020034726574726163745f766f7465720414696e6465780c753332000300407375626d69745f63616e6469646163790410736c6f740c7533320004003870726573656e745f77696e6e65720c2463616e64696461746598416464726573733c543a3a4163636f756e7449642c20543a3a4163636f756e74496e6465783e14746f74616c28543a3a42616c616e636514696e64657824566f7465496e646578000500447365745f646573697265645f73656174730414636f756e740c7533320006003472656d6f76655f6d656d626572040c77686f98416464726573733c543a3a4163636f756e7449642c20543a3a4163636f756e74496e6465783e000700647365745f70726573656e746174696f6e5f6475726174696f6e0414636f756e7438543a3a426c6f636b4e756d626572000800447365745f7465726d5f6475726174696f6e0414636f756e7438543a3a426c6f636b4e756d62657200011c436f756e63696c503443616e646964616379426f6e64010028543a3a42616c616e636504050120486f77206d7563682073686f756c64206265206c6f636b656420757020696e206f7264657220746f207375626d6974206f6e6527732063616e6469646163792e28566f74696e67426f6e64010028543a3a42616c616e636504090120486f77206d7563682073686f756c64206265206c6f636b656420757020696e206f7264657220746f2062652061626c6520746f207375626d697420766f7465732e5050726573656e74536c617368506572566f746572010028543a3a42616c616e6365040d01205468652070756e6973686d656e742c2070657220766f7465722c20696620796f752070726f7669646520616e20696e76616c69642070726573656e746174696f6e2e284361727279436f756e7401000c75333204350120486f77206d616e792072756e6e6572732d75702073686f756c64206861766520746865697220617070726f76616c73207065727369737420756e74696c20746865206e65787420766f74652e5050726573656e746174696f6e4475726174696f6e010038543a3a426c6f636b4e756d626572043d0120486f77206c6f6e6720746f2067697665206561636820746f702063616e64696461746520746f2070726573656e74207468656d73656c7665732061667465722074686520766f746520656e64732e4c496e6163746976654772616365506572696f64010024566f7465496e64657808690120486f77206d616e7920766f746573206e65656420746f20676f206279206166746572206120766f7465722773206c61737420766f7465206265666f726520746865792063616e206265207265617065642069662074686569725020617070726f76616c7320617265206d6f6f742e30566f74696e67506572696f64010038543a3a426c6f636b4e756d62657204b820486f77206f6674656e2028696e20626c6f636b732920746f20636865636b20666f72206e657720766f7465732e305465726d4475726174696f6e010038543a3a426c6f636b4e756d626572049820486f77206c6f6e67206561636820706f736974696f6e2069732061637469766520666f722e3044657369726564536561747301000c75333204e8204e756d626572206f66206163636f756e747320746861742073686f756c642062652073697474696e67206f6e2074686520636f756e63696c2e34416374697665436f756e63696c01008c5665633c28543a3a4163636f756e7449642c20543a3a426c6f636b4e756d626572293e086d01205468652063757272656e7420636f756e63696c2e205768656e2074686572652773206120766f746520676f696e67206f6e2c20746869732073686f756c64207374696c6c206265207573656420666f722065786563757469766524206d6174746572732e24566f7465436f756e74010024566f7465496e6465780405012054686520746f74616c206e756d626572206f6620766f746573207468617420686176652068617070656e6564206f722061726520696e2070726f67726573732e2c417070726f76616c734f66010130543a3a4163636f756e744964245665633c626f6f6c3e04010120546865206c61737420636c656172656420766f746520696e6465782074686174207468697320766f74657220776173206c617374206163746976652061742e385265676973746572496e666f4f66000130543a3a4163636f756e7449644028566f7465496e6465782c2075333229087d012054686520766f746520696e64657820616e64206c69737420736c6f742074686174207468652063616e646964617465206077686f60207761732072656769737465726564206f7220604e6f6e6560206966207468657920617265206e6f74582063757272656e746c7920726567697374657265642e304c6173744163746976654f66000130543a3a4163636f756e74496424566f7465496e64657804010120546865206c61737420636c656172656420766f746520696e6465782074686174207468697320766f74657220776173206c617374206163746976652061742e18566f746572730100445665633c543a3a4163636f756e7449643e0460205468652070726573656e7420766f746572206c6973742e2843616e646964617465730100445665633c543a3a4163636f756e7449643e0470205468652070726573656e742063616e646964617465206c6973742e3843616e646964617465436f756e7401000c75333200304e65787446696e616c6973650000a028543a3a426c6f636b4e756d6265722c207533322c205665633c543a3a4163636f756e7449643e2904210120546865206163636f756e747320686f6c64696e672074686520736561747320746861742077696c6c206265636f6d652066726565206f6e20746865206e6578742074616c6c792e40536e617073686f7465645374616b657301003c5665633c543a3a42616c616e63653e04e820546865207374616b6573206173207468657920776572652061742074686520706f696e7420746861742074686520766f746520656e6465642e2c4c6561646572626f61726400007c5665633c28543a3a42616c616e63652c20543a3a4163636f756e744964293e04e02047657420746865206c6561646572626f6172642069662077653b726520696e207468652070726573656e746174696f6e2070686173652e38636f756e63696c5f766f74696e67184d6f64756c651043616c6c1400001c70726f706f7365042070726f706f73616c40426f783c543a3a50726f706f73616c3e00010010766f7465082070726f706f73616c1c543a3a486173681c617070726f766510626f6f6c000200107665746f043470726f706f73616c5f686173681c543a3a48617368000300487365745f636f6f6c6f66665f706572696f640418626c6f636b7338543a3a426c6f636b4e756d626572000400447365745f766f74696e675f706572696f640418626c6f636b7338543a3a426c6f636b4e756d626572000134436f756e63696c566f74696e671c34436f6f6c6f6666506572696f64010038543a3a426c6f636b4e756d6265720030566f74696e67506572696f64010038543a3a426c6f636b4e756d626572002450726f706f73616c730100785665633c28543a3a426c6f636b4e756d6265722c20543a3a48617368293e002850726f706f73616c4f6600011c543a3a486173682c543a3a50726f706f73616c003850726f706f73616c566f7465727301011c543a3a48617368445665633c543a3a4163636f756e7449643e0034436f756e63696c566f74654f6600015c28543a3a486173682c20543a3a4163636f756e7449642910626f6f6c00385665746f656450726f706f73616c00011c543a3a486173688c28543a3a426c6f636b4e756d6265722c205665633c543a3a4163636f756e7449643e29003c636f756e63696c5f6d6f74696f6e73184d6f64756c651043616c6c0800001c70726f706f736508247468726573686f6c640c7533322070726f706f73616c6c426f783c3c542061732054726169743e3a3a50726f706f73616c3e00010010766f74650c2070726f706f73616c1c543a3a4861736814696e6465783450726f706f73616c496e6465781c617070726f766510626f6f6c000138436f756e63696c4d6f74696f6e73102450726f706f73616c730100305665633c543a3a486173683e0498205468652028686173686573206f662920746865206163746976652070726f706f73616c732e2850726f706f73616c4f6600011c543a3a48617368583c542061732054726169743e3a3a50726f706f73616c04cc2041637475616c2070726f706f73616c20666f72206120676976656e20686173682c20696620697427732063757272656e742e18566f74696e6700011c543a3a48617368e82850726f706f73616c496e6465782c207533322c205665633c543a3a4163636f756e7449643e2c205665633c543a3a4163636f756e7449643e2904250120566f74657320666f72206120676976656e2070726f706f73616c3a202872657175697265645f7965735f766f7465732c207965735f766f746572732c206e6f5f766f74657273292e3450726f706f73616c436f756e7401000c75333204482050726f706f73616c7320736f206661722e207472656173757279184d6f64756c651043616c6c1400003470726f706f73655f7370656e64081476616c756528543a3a42616c616e63652c62656e656669636961727930543a3a4163636f756e7449640001001c7365745f706f74041c6e65775f706f7428543a3a42616c616e636500020024636f6e666967757265103470726f706f73616c5f626f6e641c5065726d696c6c5470726f706f73616c5f626f6e645f6d696e696d756d28543a3a42616c616e6365307370656e645f706572696f6438543a3a426c6f636b4e756d626572106275726e1c5065726d696c6c0003003c72656a6563745f70726f706f73616c0428726f706f73616c5f69643450726f706f73616c496e64657800040040617070726f76655f70726f706f73616c042c70726f706f73616c5f69643450726f706f73616c496e6465780001205472656173757279203050726f706f73616c426f6e6401001c5065726d696c6c0851012050726f706f7274696f6e206f662066756e647320746861742073686f756c6420626520626f6e64656420696e206f7264657220746f20706c61636520612070726f706f73616c2e20416e206163636570746564dc2070726f706f73616c2067657473207468657365206261636b2e20412072656a65637465642070726f706f73616c20646f65736e27742e4c50726f706f73616c426f6e644d696e696d756d010028543a3a42616c616e6365044901204d696e696d756d20616d6f756e74206f662066756e647320746861742073686f756c6420626520706c6163656420696e2061206465706f73697420666f72206d616b696e6720612070726f706f73616c2e2c5370656e64506572696f64010038543a3a426c6f636b4e756d626572048820506572696f64206265747765656e2073756363657373697665207370656e64732e104275726e01001c5065726d696c6c0411012050657263656e74616765206f662073706172652066756e64732028696620616e7929207468617420617265206275726e7420706572207370656e6420706572696f642e0c506f74010028543a3a42616c616e636504cc20546f74616c2066756e647320617661696c61626c6520746f2074686973206d6f64756c6520666f72207370656e64696e672e3450726f706f73616c436f756e7401003450726f706f73616c496e64657804a4204e756d626572206f662070726f706f73616c7320746861742068617665206265656e206d6164652e2450726f706f73616c7300013450726f706f73616c496e6465788850726f706f73616c3c543a3a4163636f756e7449642c20543a3a42616c616e63653e047c2050726f706f73616c7320746861742068617665206265656e206d6164652e24417070726f76616c730100485665633c50726f706f73616c496e6465783e04f82050726f706f73616c20696e646963657320746861742068617665206265656e20617070726f76656420627574206e6f742079657420617761726465642e20636f6e7472616374184d6f64756c651043616c6c0800001063616c6c10106465737430543a3a4163636f756e7449641476616c756528543a3a42616c616e6365246761735f6c696d697418543a3a47617310646174611c5665633c75383e00010018637265617465101476616c756528543a3a42616c616e6365246761735f6c696d697418543a3a47617324696e69745f636f64651c5665633c75383e10646174611c5665633c75383e00001043616c6c2c24436f6e73656e73757324636f6e73656e73757300002042616c616e6365732062616c616e63657301002454696d657374616d702474696d657374616d7002001c53657373696f6e1c73657373696f6e03001c5374616b696e671c7374616b696e6704002444656d6f63726163792464656d6f637261637905001c436f756e63696c1c636f756e63696c060034436f756e63696c566f74696e6738636f756e63696c5f766f74696e67070038436f756e63696c4d6f74696f6e733c636f756e63696c5f6d6f74696f6e730800205472656173757279207472656173757279090020436f6e747261637420636f6e74726163740a00'; diff --git a/packages/types/src/Metadata.spec.ts b/packages/types/src/Metadata.spec.ts index ba564e67bc..3a6121e5be 100644 --- a/packages/types/src/Metadata.spec.ts +++ b/packages/types/src/Metadata.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Metadata from './Metadata'; import rpcdata from './Metadata.rpc'; diff --git a/packages/types/src/Metadata.ts b/packages/types/src/Metadata.ts index 4fbe9661df..0550b97642 100644 --- a/packages/types/src/Metadata.ts +++ b/packages/types/src/Metadata.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/Method.spec.ts b/packages/types/src/Method.spec.ts index 70553f9ce6..15ec24fcf7 100644 --- a/packages/types/src/Method.spec.ts +++ b/packages/types/src/Method.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import extrinsics from '@polkadot/extrinsics/static'; diff --git a/packages/types/src/Method.ts b/packages/types/src/Method.ts index 27eaafe108..e68cc169f1 100644 --- a/packages/types/src/Method.ts +++ b/packages/types/src/Method.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/extrinsics authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { ExtrinsicFunction, Extrinsics } from '@polkadot/extrinsics/types'; import { assert, isHex, isObject, isU8a } from '@polkadot/util'; diff --git a/packages/types/src/MisbehaviorReport.spec.ts b/packages/types/src/MisbehaviorReport.spec.ts index 9032e35e1e..34854896d3 100644 --- a/packages/types/src/MisbehaviorReport.spec.ts +++ b/packages/types/src/MisbehaviorReport.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import MisbehaviorReport, { BftAtReport } from './MisbehaviorReport'; diff --git a/packages/types/src/MisbehaviorReport.ts b/packages/types/src/MisbehaviorReport.ts index 1a72096ee9..7ceecaca58 100644 --- a/packages/types/src/MisbehaviorReport.ts +++ b/packages/types/src/MisbehaviorReport.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/Moment.spec.ts b/packages/types/src/Moment.spec.ts index ae27a643b3..36261f3493 100644 --- a/packages/types/src/Moment.spec.ts +++ b/packages/types/src/Moment.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; diff --git a/packages/types/src/Moment.ts b/packages/types/src/Moment.ts index 7057e0fc6f..899d764abe 100644 --- a/packages/types/src/Moment.ts +++ b/packages/types/src/Moment.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import { bnToBn, bnToHex, bnToU8a, isString, isU8a, u8aToBn } from '@polkadot/util'; diff --git a/packages/types/src/NewAccountOutcome.spec.ts b/packages/types/src/NewAccountOutcome.spec.ts index fab5ff9041..5e4735f7c6 100644 --- a/packages/types/src/NewAccountOutcome.spec.ts +++ b/packages/types/src/NewAccountOutcome.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import NewAccountOutcome from './NewAccountOutcome'; diff --git a/packages/types/src/NewAccountOutcome.ts b/packages/types/src/NewAccountOutcome.ts index 878160dc95..a4661b6de6 100644 --- a/packages/types/src/NewAccountOutcome.ts +++ b/packages/types/src/NewAccountOutcome.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Enum from './codec/Enum'; import U8a from './codec/U8a'; diff --git a/packages/types/src/Nonce.ts b/packages/types/src/Nonce.ts index ecff2b1177..b3e5dfd757 100644 --- a/packages/types/src/Nonce.ts +++ b/packages/types/src/Nonce.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U64 from './U64'; diff --git a/packages/types/src/Null.ts b/packages/types/src/Null.ts index d5ae46dd59..b7bad221bd 100644 --- a/packages/types/src/Null.ts +++ b/packages/types/src/Null.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Codec } from './types'; diff --git a/packages/types/src/Origin.spec.ts b/packages/types/src/Origin.spec.ts index a8e98c1c2f..ee38b06191 100644 --- a/packages/types/src/Origin.spec.ts +++ b/packages/types/src/Origin.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Origin from './Origin'; diff --git a/packages/types/src/Origin.ts b/packages/types/src/Origin.ts index 17d2f238f2..a6f9101add 100644 --- a/packages/types/src/Origin.ts +++ b/packages/types/src/Origin.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. // Where Origin occurs, it should be ignored, so it should never actually be constructed export default class Origin { diff --git a/packages/types/src/ParachainId.ts b/packages/types/src/ParachainId.ts index 6e06be5de2..75baba5eac 100644 --- a/packages/types/src/ParachainId.ts +++ b/packages/types/src/ParachainId.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U64 from './U64'; diff --git a/packages/types/src/PendingExtrinsics.ts b/packages/types/src/PendingExtrinsics.ts index a8963a1b75..cd6cf20747 100644 --- a/packages/types/src/PendingExtrinsics.ts +++ b/packages/types/src/PendingExtrinsics.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Extrinsics from './Extrinsics'; diff --git a/packages/types/src/Perbill.ts b/packages/types/src/Perbill.ts index 1a0c01c29f..386a5a486a 100644 --- a/packages/types/src/Perbill.ts +++ b/packages/types/src/Perbill.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U32 from './U32'; diff --git a/packages/types/src/Permill.ts b/packages/types/src/Permill.ts index b9f95c7bf6..c17b5be825 100644 --- a/packages/types/src/Permill.ts +++ b/packages/types/src/Permill.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U32 from './U32'; diff --git a/packages/types/src/PropIndex.ts b/packages/types/src/PropIndex.ts index b4152ac447..58f8811b95 100644 --- a/packages/types/src/PropIndex.ts +++ b/packages/types/src/PropIndex.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U32 from './U32'; diff --git a/packages/types/src/Proposal.ts b/packages/types/src/Proposal.ts index af8c13e803..a19fdc5916 100644 --- a/packages/types/src/Proposal.ts +++ b/packages/types/src/Proposal.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Method from './Method'; diff --git a/packages/types/src/ProposalIndex.ts b/packages/types/src/ProposalIndex.ts index 07ef9e5175..6c4c01dd30 100644 --- a/packages/types/src/ProposalIndex.ts +++ b/packages/types/src/ProposalIndex.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U32 from './U32'; diff --git a/packages/types/src/ReferendumIndex.ts b/packages/types/src/ReferendumIndex.ts index ea0b7a75c1..daf41ed4bf 100644 --- a/packages/types/src/ReferendumIndex.ts +++ b/packages/types/src/ReferendumIndex.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U32 from './U32'; diff --git a/packages/types/src/RuntimeVersion.spec.ts b/packages/types/src/RuntimeVersion.spec.ts index e34c053cba..0cd33f3199 100644 --- a/packages/types/src/RuntimeVersion.spec.ts +++ b/packages/types/src/RuntimeVersion.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import rpc from './json/RuntimeVersion.001.json'; import RuntimeVersion from './RuntimeVersion'; diff --git a/packages/types/src/RuntimeVersion.ts b/packages/types/src/RuntimeVersion.ts index 4c3190657a..06483f0055 100644 --- a/packages/types/src/RuntimeVersion.ts +++ b/packages/types/src/RuntimeVersion.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber, AnyU8a } from './types'; diff --git a/packages/types/src/Signature.ts b/packages/types/src/Signature.ts index d4bc03f717..57785b4aa7 100644 --- a/packages/types/src/Signature.ts +++ b/packages/types/src/Signature.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import H512 from './H512'; diff --git a/packages/types/src/SignaturePayload.ts b/packages/types/src/SignaturePayload.ts index e6000c40d1..b888919f53 100644 --- a/packages/types/src/SignaturePayload.ts +++ b/packages/types/src/SignaturePayload.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { KeyringPair } from '@polkadot/keyring/types'; import { AnyNumber, AnyU8a } from './types'; diff --git a/packages/types/src/SignedBlock.spec.ts b/packages/types/src/SignedBlock.spec.ts index f2bf05a177..21ce016b71 100644 --- a/packages/types/src/SignedBlock.spec.ts +++ b/packages/types/src/SignedBlock.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import extrinsics from '@polkadot/extrinsics/static'; diff --git a/packages/types/src/SignedBlock.ts b/packages/types/src/SignedBlock.ts index 04d627f2c6..6451dad7fb 100644 --- a/packages/types/src/SignedBlock.ts +++ b/packages/types/src/SignedBlock.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Struct from './codec/Struct'; import U8a from './codec/U8a'; diff --git a/packages/types/src/StorageChangeSet.spec.ts b/packages/types/src/StorageChangeSet.spec.ts index 1055366e58..6e9a827ad1 100644 --- a/packages/types/src/StorageChangeSet.spec.ts +++ b/packages/types/src/StorageChangeSet.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import StorageChangeSet from './StorageChangeSet'; diff --git a/packages/types/src/StorageChangeSet.ts b/packages/types/src/StorageChangeSet.ts index beeb2539ca..81f663b14e 100644 --- a/packages/types/src/StorageChangeSet.ts +++ b/packages/types/src/StorageChangeSet.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyU8a } from './types'; diff --git a/packages/types/src/StorageData.ts b/packages/types/src/StorageData.ts index fc844826ee..1a4a5ea63f 100644 --- a/packages/types/src/StorageData.ts +++ b/packages/types/src/StorageData.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Bytes from './Bytes'; diff --git a/packages/types/src/StorageKey.spec.ts b/packages/types/src/StorageKey.spec.ts index 64ccce61ed..f820f0c89a 100644 --- a/packages/types/src/StorageKey.spec.ts +++ b/packages/types/src/StorageKey.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import storage from '@polkadot/storage/static'; diff --git a/packages/types/src/StorageKey.ts b/packages/types/src/StorageKey.ts index f53ce1fd74..cc5fe9d6a4 100644 --- a/packages/types/src/StorageKey.ts +++ b/packages/types/src/StorageKey.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyU8a } from './types'; diff --git a/packages/types/src/Text.spec.ts b/packages/types/src/Text.spec.ts index 3b178628e0..a462bf3fc6 100644 --- a/packages/types/src/Text.spec.ts +++ b/packages/types/src/Text.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { CodecTo } from './types'; import Text from './Text'; diff --git a/packages/types/src/Text.ts b/packages/types/src/Text.ts index 28b3101b30..0b2043a4ba 100644 --- a/packages/types/src/Text.ts +++ b/packages/types/src/Text.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isFunction, isString, stringToU8a, u8aToString, u8aConcat, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/Type.spec.ts b/packages/types/src/Type.spec.ts index dbe3582220..0619ed7ab4 100644 --- a/packages/types/src/Type.spec.ts +++ b/packages/types/src/Type.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Text from './Text'; import Type from './Type'; diff --git a/packages/types/src/Type.ts b/packages/types/src/Type.ts index e57380282a..fcde1ac0eb 100644 --- a/packages/types/src/Type.ts +++ b/packages/types/src/Type.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Compact, { DEFAULT_LENGTH_BITS } from './codec/Compact'; import U8a from './codec/U8a'; diff --git a/packages/types/src/U128.ts b/packages/types/src/U128.ts index 8205782140..5de6d7345d 100644 --- a/packages/types/src/U128.ts +++ b/packages/types/src/U128.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/U16.ts b/packages/types/src/U16.ts index f4465d9631..04856ee04f 100644 --- a/packages/types/src/U16.ts +++ b/packages/types/src/U16.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/U256.ts b/packages/types/src/U256.ts index 90b3285544..92cbacfb17 100644 --- a/packages/types/src/U256.ts +++ b/packages/types/src/U256.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/U32.ts b/packages/types/src/U32.ts index e214fc63e4..487ad68d72 100644 --- a/packages/types/src/U32.ts +++ b/packages/types/src/U32.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/U64.ts b/packages/types/src/U64.ts index 48f2a8c896..b282bd909c 100644 --- a/packages/types/src/U64.ts +++ b/packages/types/src/U64.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/U8.ts b/packages/types/src/U8.ts index b7c2bc3eba..cc24301ba4 100644 --- a/packages/types/src/U8.ts +++ b/packages/types/src/U8.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/ValidatorPrefs.spec.ts b/packages/types/src/ValidatorPrefs.spec.ts index 977ee63588..f7f2d1a6da 100644 --- a/packages/types/src/ValidatorPrefs.spec.ts +++ b/packages/types/src/ValidatorPrefs.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import ValidatorPrefs from './ValidatorPrefs'; diff --git a/packages/types/src/ValidatorPrefs.ts b/packages/types/src/ValidatorPrefs.ts index 1fd1661be3..1fd516dcc0 100644 --- a/packages/types/src/ValidatorPrefs.ts +++ b/packages/types/src/ValidatorPrefs.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber } from './types'; diff --git a/packages/types/src/VoteIndex.ts b/packages/types/src/VoteIndex.ts index bd9df193a2..f2dc241255 100644 --- a/packages/types/src/VoteIndex.ts +++ b/packages/types/src/VoteIndex.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U32 from './U32'; diff --git a/packages/types/src/VoteThreshold.spec.ts b/packages/types/src/VoteThreshold.spec.ts index b375320ec1..7022c20b01 100644 --- a/packages/types/src/VoteThreshold.spec.ts +++ b/packages/types/src/VoteThreshold.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import VoteThreshold from './VoteThreshold'; diff --git a/packages/types/src/VoteThreshold.ts b/packages/types/src/VoteThreshold.ts index 92d6f0caf3..cc01030a65 100644 --- a/packages/types/src/VoteThreshold.ts +++ b/packages/types/src/VoteThreshold.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Enum from './codec/Enum'; import U8a from './codec/U8a'; diff --git a/packages/types/src/codec/Base.ts b/packages/types/src/codec/Base.ts index a92d67ef56..6a587ad418 100644 --- a/packages/types/src/codec/Base.ts +++ b/packages/types/src/codec/Base.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. /** * A type extends the Base class, when it holds a value diff --git a/packages/types/src/codec/Compact.spec.ts b/packages/types/src/codec/Compact.spec.ts index 432bce7ff8..8860594f29 100644 --- a/packages/types/src/codec/Compact.spec.ts +++ b/packages/types/src/codec/Compact.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; diff --git a/packages/types/src/codec/Compact.ts b/packages/types/src/codec/Compact.ts index 772204fde5..7bd6db6027 100644 --- a/packages/types/src/codec/Compact.ts +++ b/packages/types/src/codec/Compact.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import { bnToBn, bnToU8a, hexToBn, isBn, isHex, isNumber, isString, isU8a, u8aToBn, u8aConcat, u8aToU8a } from '@polkadot/util'; diff --git a/packages/types/src/codec/Enum.spec.js b/packages/types/src/codec/Enum.spec.js index 77b3408611..4c8d23f125 100644 --- a/packages/types/src/codec/Enum.spec.js +++ b/packages/types/src/codec/Enum.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Enum from './Enum'; diff --git a/packages/types/src/codec/Enum.ts b/packages/types/src/codec/Enum.ts index 2ddc55c00a..dc5d379667 100644 --- a/packages/types/src/codec/Enum.ts +++ b/packages/types/src/codec/Enum.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isU8a, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/codec/EnumType.spec.js b/packages/types/src/codec/EnumType.spec.js index 4e8ea4d672..99db405465 100644 --- a/packages/types/src/codec/EnumType.spec.js +++ b/packages/types/src/codec/EnumType.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import EnumType from './EnumType'; import Text from '../Text'; diff --git a/packages/types/src/codec/EnumType.ts b/packages/types/src/codec/EnumType.ts index 46d7fadf54..595adc990f 100644 --- a/packages/types/src/codec/EnumType.ts +++ b/packages/types/src/codec/EnumType.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isNumber, isObject, isU8a, isUndefined, u8aConcat, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/codec/Option.spec.js b/packages/types/src/codec/Option.spec.js index 8dc08b6f69..381301939f 100644 --- a/packages/types/src/codec/Option.spec.js +++ b/packages/types/src/codec/Option.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Option from './Option'; import Text from '../Text'; diff --git a/packages/types/src/codec/Option.ts b/packages/types/src/codec/Option.ts index 352c213d7e..b050f8a382 100644 --- a/packages/types/src/codec/Option.ts +++ b/packages/types/src/codec/Option.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isNull, isU8a, isUndefined, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/codec/Set.spec.ts b/packages/types/src/codec/Set.spec.ts index 79cece484b..e6070e7046 100644 --- a/packages/types/src/codec/Set.spec.ts +++ b/packages/types/src/codec/Set.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import Set from './Set'; diff --git a/packages/types/src/codec/Set.ts b/packages/types/src/codec/Set.ts index bc8b388fc2..63a879a593 100644 --- a/packages/types/src/codec/Set.ts +++ b/packages/types/src/codec/Set.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isU8a, isUndefined, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/codec/Struct.spec.ts b/packages/types/src/codec/Struct.spec.ts index 9ff1271b03..e395475659 100644 --- a/packages/types/src/codec/Struct.spec.ts +++ b/packages/types/src/codec/Struct.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { CodecTo } from '../types'; import Struct from './Struct'; diff --git a/packages/types/src/codec/Struct.ts b/packages/types/src/codec/Struct.ts index dc30348e9f..61446fd740 100644 --- a/packages/types/src/codec/Struct.ts +++ b/packages/types/src/codec/Struct.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { hexToU8a, isHex, isObject, isU8a, u8aConcat, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/codec/Tuple.spec.js b/packages/types/src/codec/Tuple.spec.js index c16be5a2d4..1937169f80 100644 --- a/packages/types/src/codec/Tuple.spec.js +++ b/packages/types/src/codec/Tuple.spec.js @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import extrinsics from '@polkadot/extrinsics/static'; diff --git a/packages/types/src/codec/Tuple.ts b/packages/types/src/codec/Tuple.ts index 2e35adc7be..ef7c61bae1 100644 --- a/packages/types/src/codec/Tuple.ts +++ b/packages/types/src/codec/Tuple.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { Codec, Constructor, ConstructorDef } from '../types'; import Struct from './Struct'; diff --git a/packages/types/src/codec/U8a.spec.ts b/packages/types/src/codec/U8a.spec.ts index d2be19bdaa..3feb28cf39 100644 --- a/packages/types/src/codec/U8a.spec.ts +++ b/packages/types/src/codec/U8a.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { CodecTo } from '../types'; import U8a from './U8a'; diff --git a/packages/types/src/codec/U8a.ts b/packages/types/src/codec/U8a.ts index fd5406a3a8..5710ebb276 100644 --- a/packages/types/src/codec/U8a.ts +++ b/packages/types/src/codec/U8a.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isU8a, u8aToHex, u8aToU8a } from '@polkadot/util'; diff --git a/packages/types/src/codec/U8aFixed.spec.ts b/packages/types/src/codec/U8aFixed.spec.ts index c6050e616c..2e4920a10b 100644 --- a/packages/types/src/codec/U8aFixed.spec.ts +++ b/packages/types/src/codec/U8aFixed.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import U8aFixed from './U8aFixed'; diff --git a/packages/types/src/codec/U8aFixed.ts b/packages/types/src/codec/U8aFixed.ts index 77953345be..f0af4da97a 100644 --- a/packages/types/src/codec/U8aFixed.ts +++ b/packages/types/src/codec/U8aFixed.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { isString, isU8a, u8aToU8a } from '@polkadot/util'; diff --git a/packages/types/src/codec/UInt.spec.ts b/packages/types/src/codec/UInt.spec.ts index e4fef4c7f7..fdd51083d8 100644 --- a/packages/types/src/codec/UInt.spec.ts +++ b/packages/types/src/codec/UInt.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import UInt from './UInt'; diff --git a/packages/types/src/codec/UInt.ts b/packages/types/src/codec/UInt.ts index 2640009bfe..9f3c83fb25 100644 --- a/packages/types/src/codec/UInt.ts +++ b/packages/types/src/codec/UInt.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { AnyNumber, Codec } from '../types'; diff --git a/packages/types/src/codec/Vector.spec.ts b/packages/types/src/codec/Vector.spec.ts index a8fb08af05..770ad54559 100644 --- a/packages/types/src/codec/Vector.spec.ts +++ b/packages/types/src/codec/Vector.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import extrinsics from '@polkadot/extrinsics/static'; diff --git a/packages/types/src/codec/Vector.ts b/packages/types/src/codec/Vector.ts index 5822363810..253fa1c552 100644 --- a/packages/types/src/codec/Vector.ts +++ b/packages/types/src/codec/Vector.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { u8aConcat, u8aToU8a, u8aToHex } from '@polkadot/util'; diff --git a/packages/types/src/codec/createType.spec.ts b/packages/types/src/codec/createType.spec.ts index 4f2244edac..43a4124b47 100644 --- a/packages/types/src/codec/createType.spec.ts +++ b/packages/types/src/codec/createType.spec.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { TypeDefInfo, typeSplit, getTypeClass, getTypeDef } from './createType'; diff --git a/packages/types/src/codec/createType.ts b/packages/types/src/codec/createType.ts index be3522d6d8..48bec5c4f8 100644 --- a/packages/types/src/codec/createType.ts +++ b/packages/types/src/codec/createType.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import { assert } from '@polkadot/util'; diff --git a/packages/types/src/codec/index.ts b/packages/types/src/codec/index.ts index 35845471e3..9a050f8caf 100644 --- a/packages/types/src/codec/index.ts +++ b/packages/types/src/codec/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. // NOTE We are not exporting everything here. These _should_ be enough to use the // actual interfaces from a "create-a-working-coder" perspective. If not, we should diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index ecc2cc7851..7bf0d095f6 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. // NOTE We are not re-exporting the index.ts from codec here. The reasoning being // that these should be enough to actually _use_ the codec, i.e. from a api-user diff --git a/packages/types/src/json/json.d.ts b/packages/types/src/json/json.d.ts index 8da566ade6..c5d1899a81 100644 --- a/packages/types/src/json/json.d.ts +++ b/packages/types/src/json/json.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. // Be able to import json in TS // https://stackoverflow.com/questions/49996456/importing-json-file-in-typescript diff --git a/packages/types/src/scripts/MetadataJsonDecode.ts b/packages/types/src/scripts/MetadataJsonDecode.ts index 7b3cda43ee..587c5ac4d1 100644 --- a/packages/types/src/scripts/MetadataJsonDecode.ts +++ b/packages/types/src/scripts/MetadataJsonDecode.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. const fs = require('fs'); diff --git a/packages/types/src/scripts/MetadataJsonDecodeWrapper.js b/packages/types/src/scripts/MetadataJsonDecodeWrapper.js index c4af47e451..2ade35d3f6 100644 --- a/packages/types/src/scripts/MetadataJsonDecodeWrapper.js +++ b/packages/types/src/scripts/MetadataJsonDecodeWrapper.js @@ -1,7 +1,7 @@ #!/usr/bin/env node // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. require('../../babelConfig.js'); require('./MetadataJsonDecode.ts'); diff --git a/packages/types/src/scripts/MetadataMd.ts b/packages/types/src/scripts/MetadataMd.ts index 4b3913c3d1..caf787345b 100644 --- a/packages/types/src/scripts/MetadataMd.ts +++ b/packages/types/src/scripts/MetadataMd.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import fs from 'fs'; import { stringCamelCase, stringLowerFirst } from '@polkadot/util'; diff --git a/packages/types/src/scripts/MetadataMdWrapper.js b/packages/types/src/scripts/MetadataMdWrapper.js index 43eeea7468..5ac2b21a73 100644 --- a/packages/types/src/scripts/MetadataMdWrapper.js +++ b/packages/types/src/scripts/MetadataMdWrapper.js @@ -1,7 +1,7 @@ #!/usr/bin/env node // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. require('../../babelConfig.js'); require('./MetadataMd.ts'); diff --git a/packages/types/src/types.d.ts b/packages/types/src/types.d.ts index c6f93d35d3..2b6700f8b1 100644 --- a/packages/types/src/types.d.ts +++ b/packages/types/src/types.d.ts @@ -1,6 +1,6 @@ // Copyright 2017-2018 @polkadot/types authors & contributors // This software may be modified and distributed under the terms -// of the ISC license. See the LICENSE file for details. +// of the Apache-2.0 license. See the LICENSE file for details. import BN from 'bn.js'; import * as Classes from './index'; diff --git a/yarn.lock b/yarn.lock index 07aaabb88e..a3a0d43422 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1301,10 +1301,10 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.2.tgz#54c5a964462be3d4d78af631363c18d6fa91ac26" integrity sha512-yprFYuno9FtNsSHVlSWd+nRlmGoAbqbeCwOryP6sC/zoCjhpArcRMYp19EvpSUSizJAlsXEwJv+wcWS9XaXdMw== -"@polkadot/dev@^0.21.6": - version "0.21.6" - resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.21.6.tgz#44ebdb4bb5e83aed4398128a05f64780718c6ec7" - integrity sha512-HxnxD19GJ+MoYQGsB7+aAqZwBir2cwVQ2L4RyAuS22T5Nidyh7q8eDQCTRX5+W5LXd76JizCrJjPX7Jq95xWUA== +"@polkadot/dev@^0.22.1": + version "0.22.1" + resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.22.1.tgz#28da715bc509ffb8bfb025207166073453533868" + integrity sha512-S8SiwP27H1Bv3Xmdj/X9miz84kdosGjnN9VgcPPaKFfYwMChMKdZpQamSL+O24poQIlJkiuAVkw7dl5Fs9YfZg== dependencies: "@babel/cli" "^7.1.5" "@babel/core" "^7.1.6" @@ -1317,7 +1317,7 @@ "@babel/register" "^7.0.0" "@babel/runtime" "^7.1.5" "@types/jest" "^23.3.9" - "@types/node" "^10.12.7" + "@types/node" "^10.12.9" babel-core "^7.0.0-bridge.0" babel-eslint "^10.0.1" babel-jest "^23.6.0" @@ -1349,7 +1349,7 @@ tslint "^5.11.0" tslint-config-semistandard "^7.0.0" typedoc "^0.13.0" - typedoc-plugin-markdown "^1.1.18" + typedoc-plugin-markdown "^1.1.19" typescript "^3.1.6" "@polkadot/keyring@^0.32.21": @@ -1363,10 +1363,10 @@ "@types/bs58" "^3.0.30" bs58 "^4.0.1" -"@polkadot/ts@^0.1.38": - version "0.1.38" - resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.38.tgz#468f7520415bc806cc7ebbbe1ae2fd63803a6aec" - integrity sha512-KTK4+YskDHUCldkOEyZi6hPftydER5qBOCR+SdjHq9oS8npVYlHqI3g1UUY1HJYIAJg2K3qokg3OnqDxid8cGw== +"@polkadot/ts@^0.1.39": + version "0.1.39" + resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.39.tgz#39d3578eaafd96cbc0270b1479fabab7e16e5723" + integrity sha512-NQM1uT+qi8onV0jtGjH7QmJvDTNFNYTEzjaoVZN2tDHi1/tVu1CP66qZGSGsS19JZJSK3ERSFb0vP8CkE7EUuA== "@polkadot/util-crypto@^0.32.21": version "0.32.21" @@ -1504,10 +1504,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.0.tgz#ea6dcbddbc5b584c83f06c60e82736d8fbb0c235" integrity sha512-3TUHC3jsBAB7qVRGxT6lWyYo2v96BMmD2PTcl47H25Lu7UXtFH/2qqmKiVrnel6Ne//0TFYf6uvNX+HW2FRkLQ== -"@types/node@^10.12.7": - version "10.12.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.7.tgz#195808b2d4b2e7c33e75e7d9b24aeee88f94660d" - integrity sha512-Zh5Z4kACfbeE8aAOYh9mqotRxaZMro8MbBQtR8vEXOMiZo2rGEh2LayJijKdlu48YnS6y2EFU/oo2NCe5P6jGw== +"@types/node@^10.12.9": + version "10.12.9" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.9.tgz#a07bfa74331471e1dc22a47eb72026843f7b95c8" + integrity sha512-eajkMXG812/w3w4a1OcBlaTwsFPO5F7fJ/amy+tieQxEMWBlbV1JGSjkFM+zkHNf81Cad+dfIRA+IBkvmvdAeA== "@types/rx-core-binding@*": version "4.0.4" @@ -9522,10 +9522,10 @@ typedoc-default-themes@^0.5.0: resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.5.0.tgz#6dc2433e78ed8bea8e887a3acde2f31785bd6227" integrity sha1-bcJDPnjti+qOiHo6zeLzF4W9Yic= -typedoc-plugin-markdown@^1.1.18: - version "1.1.18" - resolved "https://registry.yarnpkg.com/typedoc-plugin-markdown/-/typedoc-plugin-markdown-1.1.18.tgz#dc4cb51b411f3773bcc2ffc45b808fee71e681bf" - integrity sha512-hE/2wM3NzMY/6K2wLtW7koVALLvVYm7w0mx+GFH3Er5gTioEMrUtd70Yf6Mb88fG6IvUWx1mX10ZD/ZR0AXS2w== +typedoc-plugin-markdown@^1.1.19: + version "1.1.19" + resolved "https://registry.yarnpkg.com/typedoc-plugin-markdown/-/typedoc-plugin-markdown-1.1.19.tgz#f0c2e0a390932f80e85a393961849d0e9d372561" + integrity sha512-dk1J9NHW3c1cMmcmTrw55U7ke6zadB3hZL7y7tkLQ6FeJGkz6SEMuexjVOq5rltuW7JeLqt1ngNKAwG9dXiMgQ== dependencies: turndown "^5.0.1"