From 7ba7339d96289bf8a536502993144aa7e22db36c Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 17 Sep 2020 16:46:46 +0200 Subject: [PATCH] SPDX (#3705) --- .babelrc.js | 3 +++ .eslintrc.js | 3 +++ __mocks__/fileMock.js | 3 +-- babel.config.js | 3 +-- env.sh | 2 ++ i18next-scanner.config.js | 3 +-- jest.config.js | 3 +-- jest/globalSetup.ts | 3 +-- jest/globalTeardown.ts | 3 +-- jest/substrateTestsGlobal.ts | 3 +-- package.json | 2 +- packages/apps-config/src/api/chain/beresheet.ts | 3 +-- packages/apps-config/src/api/chain/index.ts | 3 +-- packages/apps-config/src/api/chain/phala.ts | 3 +-- packages/apps-config/src/api/constants.ts | 3 +-- packages/apps-config/src/api/index.ts | 3 +-- packages/apps-config/src/api/spec/acala.ts | 3 +-- .../apps-config/src/api/spec/centrifuge-chain.ts | 3 +-- packages/apps-config/src/api/spec/crab.ts | 3 +-- packages/apps-config/src/api/spec/crust.ts | 3 +-- .../src/api/spec/cumulus-test-parachain.ts | 3 +-- .../apps-config/src/api/spec/darwinia-parachain.ts | 3 +-- packages/apps-config/src/api/spec/edgeware.ts | 3 +-- .../src/api/spec/encointer-node-notee.ts | 3 +-- .../src/api/spec/encointer-node-teeproxy.ts | 3 +-- packages/apps-config/src/api/spec/index.ts | 3 +-- packages/apps-config/src/api/spec/kilt.ts | 3 +-- packages/apps-config/src/api/spec/kulupu.ts | 3 +-- packages/apps-config/src/api/spec/laminar.ts | 3 +-- packages/apps-config/src/api/spec/node-template.ts | 3 +-- packages/apps-config/src/api/spec/nodle.ts | 3 +-- packages/apps-config/src/api/spec/plasm.ts | 3 +-- packages/apps-config/src/api/spec/robonomics.ts | 3 +-- packages/apps-config/src/api/spec/stable-poc.ts | 3 +-- packages/apps-config/src/api/spec/stafi.ts | 3 +-- packages/apps-config/src/api/spec/subsocial.ts | 3 +-- packages/apps-config/src/api/util.ts | 3 +-- packages/apps-config/src/extensions/index.ts | 3 +-- packages/apps-config/src/links/commonwealth.ts | 3 +-- packages/apps-config/src/links/index.ts | 3 +-- packages/apps-config/src/links/polkascan.ts | 3 +-- packages/apps-config/src/links/polkassembly.ts | 3 +-- packages/apps-config/src/links/polkastats.ts | 3 +-- packages/apps-config/src/links/subscan.ts | 3 +-- packages/apps-config/src/links/types.ts | 3 +-- packages/apps-config/src/settings/constants.ts | 3 +-- packages/apps-config/src/settings/endpoints.ts | 3 +-- packages/apps-config/src/settings/index.ts | 3 +-- packages/apps-config/src/settings/languages.ts | 3 +-- packages/apps-config/src/settings/ss58.ts | 3 +-- packages/apps-config/src/settings/types.ts | 3 +-- packages/apps-config/src/ui/general/index.ts | 3 +-- packages/apps-config/src/ui/identityIcons/index.ts | 3 +-- packages/apps-config/src/ui/index.ts | 3 +-- packages/apps-config/src/ui/logos/index.ts | 3 +-- packages/apps-electron/package.json | 2 +- .../apps-electron/src/api/account-store-api.ts | 3 +-- .../apps-electron/src/api/electron-main-api.ts | 3 +-- .../apps-electron/src/api/global-exported-api.ts | 3 +-- packages/apps-electron/src/electron/autoUpdater.ts | 3 +-- .../src/electron/contentSecurityPolicy.ts | 3 +-- packages/apps-electron/src/electron/index.ts | 3 +-- packages/apps-electron/src/electron/window.ts | 3 +-- packages/apps-electron/src/index.tsx | 3 +-- .../apps-electron/src/main/account-store.spec.ts | 3 +-- packages/apps-electron/src/main/account-store.ts | 3 +-- .../apps-electron/src/main/ipc-main-handler.ts | 3 +-- .../apps-electron/src/main/register-ipc-handler.ts | 3 +-- packages/apps-electron/src/preload.ts | 3 +-- .../src/renderer/remote-electron-store.spec.ts | 3 +-- .../src/renderer/remote-electron-store.ts | 3 +-- packages/apps-electron/webpack.main.config.js | 3 +-- packages/apps-electron/webpack.renderer.config.js | 3 +-- packages/apps-routing/src/accounts.ts | 3 +-- packages/apps-routing/src/addresses.ts | 3 +-- packages/apps-routing/src/calendar.ts | 3 +-- packages/apps-routing/src/claims.ts | 3 +-- packages/apps-routing/src/contracts.ts | 3 +-- packages/apps-routing/src/council.ts | 3 +-- packages/apps-routing/src/dashboard.ts | 3 +-- packages/apps-routing/src/democracy.ts | 3 +-- packages/apps-routing/src/explorer.ts | 3 +-- packages/apps-routing/src/extrinsics.ts | 3 +-- packages/apps-routing/src/generic-asset.ts | 3 +-- packages/apps-routing/src/index.ts | 3 +-- packages/apps-routing/src/js.ts | 3 +-- packages/apps-routing/src/parachains.ts | 3 +-- packages/apps-routing/src/poll.ts | 3 +-- packages/apps-routing/src/rpc.ts | 3 +-- packages/apps-routing/src/settings.ts | 3 +-- packages/apps-routing/src/signing.ts | 3 +-- packages/apps-routing/src/society.ts | 3 +-- packages/apps-routing/src/staking.ts | 3 +-- packages/apps-routing/src/storage.ts | 3 +-- packages/apps-routing/src/sudo.ts | 3 +-- packages/apps-routing/src/techcomm.ts | 3 +-- packages/apps-routing/src/transfer.ts | 3 +-- packages/apps-routing/src/treasury.ts | 3 +-- packages/apps-routing/src/types.ts | 3 +-- packages/apps/package.json | 2 +- packages/apps/src/Apps.tsx | 3 +-- packages/apps/src/Content/NotFound.tsx | 3 +-- packages/apps/src/Content/Status.tsx | 3 +-- packages/apps/src/Content/index.tsx | 3 +-- packages/apps/src/Endpoints/Group.tsx | 3 +-- packages/apps/src/Endpoints/Network.tsx | 3 +-- packages/apps/src/Endpoints/Url.tsx | 3 +-- packages/apps/src/Endpoints/index.tsx | 3 +-- packages/apps/src/Endpoints/types.ts | 3 +-- packages/apps/src/Menu/ChainInfo.tsx | 3 +-- packages/apps/src/Menu/Grouping.tsx | 3 +-- packages/apps/src/Menu/Item.tsx | 3 +-- packages/apps/src/Menu/NodeInfo.tsx | 3 +-- packages/apps/src/Menu/index.tsx | 3 +-- packages/apps/src/Menu/types.tsx | 3 +-- packages/apps/src/TopBar.tsx | 3 +-- packages/apps/src/WarmUp.tsx | 3 +-- packages/apps/src/WindowDimensions.tsx | 3 +-- packages/apps/src/endpoint.ts | 3 +-- packages/apps/src/index.tsx | 3 +-- packages/apps/src/initSettings.ts | 3 +-- packages/apps/src/overlays/Base.tsx | 3 +-- packages/apps/src/overlays/Connecting.tsx | 3 +-- packages/apps/src/translate.ts | 3 +-- packages/apps/src/wp-gif.d.ts | 3 +-- packages/apps/src/wp-md.d.ts | 3 +-- packages/apps/src/wp-png.d.ts | 3 +-- packages/apps/src/wp-svg.d.ts | 3 +-- packages/apps/webpack.base.config.js | 3 +-- packages/apps/webpack.config.js | 3 +-- packages/page-accounts/src/Accounts/Account.tsx | 3 +-- packages/page-accounts/src/Accounts/Banner.tsx | 3 +-- .../page-accounts/src/Accounts/BannerClaims.tsx | 3 +-- .../page-accounts/src/Accounts/BannerExtension.tsx | 3 +-- packages/page-accounts/src/Accounts/index.tsx | 3 +-- packages/page-accounts/src/Accounts/types.ts | 3 +-- .../src/Accounts/useKnownAddresses.ts | 3 +-- .../src/Accounts/useMultisigApprovals.ts | 3 +-- packages/page-accounts/src/Accounts/useProxies.ts | 3 +-- packages/page-accounts/src/CreateAccount.spec.tsx | 3 +-- packages/page-accounts/src/Sidebar/Balances.tsx | 3 +-- packages/page-accounts/src/Sidebar/Flags.tsx | 3 +-- packages/page-accounts/src/Sidebar/Identity.tsx | 3 +-- packages/page-accounts/src/Sidebar/Multisig.tsx | 3 +-- .../src/Sidebar/RegistrarJudgement.tsx | 3 +-- packages/page-accounts/src/Sidebar/Sidebar.tsx | 3 +-- packages/page-accounts/src/Sidebar/index.tsx | 3 +-- packages/page-accounts/src/Vanity/Match.tsx | 3 +-- packages/page-accounts/src/Vanity/bipWorker.ts | 3 +-- packages/page-accounts/src/Vanity/index.tsx | 3 +-- packages/page-accounts/src/index.tsx | 3 +-- packages/page-accounts/src/modals/Backup.tsx | 3 +-- packages/page-accounts/src/modals/ChangePass.tsx | 3 +-- packages/page-accounts/src/modals/Create.tsx | 3 +-- .../src/modals/CreateConfirmation.tsx | 3 +-- packages/page-accounts/src/modals/Delegate.tsx | 3 +-- packages/page-accounts/src/modals/Derive.tsx | 3 +-- packages/page-accounts/src/modals/IdentityMain.tsx | 3 +-- packages/page-accounts/src/modals/IdentitySub.tsx | 3 +-- packages/page-accounts/src/modals/Import.tsx | 3 +-- .../src/modals/InputValidateAmount.tsx | 3 +-- packages/page-accounts/src/modals/Ledger.tsx | 3 +-- .../page-accounts/src/modals/MultisigApprove.tsx | 3 +-- .../page-accounts/src/modals/MultisigCreate.tsx | 3 +-- .../page-accounts/src/modals/PasswordInput.tsx | 3 +-- packages/page-accounts/src/modals/ProxiedAdd.tsx | 3 +-- .../page-accounts/src/modals/ProxyOverview.tsx | 3 +-- packages/page-accounts/src/modals/Qr.tsx | 3 +-- .../page-accounts/src/modals/RecoverAccount.tsx | 3 +-- packages/page-accounts/src/modals/RecoverSetup.tsx | 3 +-- packages/page-accounts/src/modals/Transfer.tsx | 3 +-- packages/page-accounts/src/modals/Undelegate.tsx | 3 +-- .../page-accounts/src/test-support/MemoryStore.ts | 3 +-- packages/page-accounts/src/translate.ts | 3 +-- packages/page-accounts/src/types.ts | 3 +-- packages/page-accounts/src/useCounter.ts | 3 +-- packages/page-accounts/src/util.tsx | 3 +-- packages/page-addresses/src/Contacts/Address.tsx | 3 +-- packages/page-addresses/src/Contacts/index.tsx | 3 +-- packages/page-addresses/src/index.tsx | 3 +-- packages/page-addresses/src/modals/Create.tsx | 3 +-- packages/page-addresses/src/translate.ts | 3 +-- packages/page-addresses/src/types.ts | 3 +-- packages/page-addresses/src/util.tsx | 3 +-- packages/page-calendar/src/Day.tsx | 3 +-- packages/page-calendar/src/DayHour.tsx | 3 +-- packages/page-calendar/src/DayItem.tsx | 3 +-- packages/page-calendar/src/DayTime.tsx | 3 +-- packages/page-calendar/src/Month.tsx | 3 +-- packages/page-calendar/src/MonthDay.tsx | 3 +-- packages/page-calendar/src/constants.ts | 3 +-- packages/page-calendar/src/index.tsx | 3 +-- packages/page-calendar/src/translate.ts | 3 +-- packages/page-calendar/src/types.ts | 3 +-- packages/page-calendar/src/useScheduled.ts | 3 +-- packages/page-calendar/src/util.ts | 3 +-- packages/page-claims/src/Attest.tsx | 3 +-- packages/page-claims/src/Claim.tsx | 3 +-- packages/page-claims/src/Statement.tsx | 3 +-- packages/page-claims/src/Warning.tsx | 3 +-- packages/page-claims/src/index.tsx | 3 +-- packages/page-claims/src/secp256k1.d.ts | 3 +-- packages/page-claims/src/translate.ts | 3 +-- packages/page-claims/src/useCounter.ts | 3 +-- packages/page-claims/src/usePolkadotPreclaims.ts | 3 +-- packages/page-claims/src/util.spec.ts | 3 +-- packages/page-claims/src/util.ts | 3 +-- packages/page-contracts/src/Codes/Add.tsx | 3 +-- packages/page-contracts/src/Codes/Code.tsx | 3 +-- packages/page-contracts/src/Codes/Upload.tsx | 3 +-- packages/page-contracts/src/Codes/ValidateCode.tsx | 3 +-- packages/page-contracts/src/Codes/index.tsx | 3 +-- packages/page-contracts/src/Contracts/Add.tsx | 3 +-- packages/page-contracts/src/Contracts/Call.tsx | 3 +-- packages/page-contracts/src/Contracts/Contract.tsx | 3 +-- packages/page-contracts/src/Contracts/Outcome.tsx | 3 +-- .../page-contracts/src/Contracts/ValidateAddr.tsx | 3 +-- packages/page-contracts/src/Contracts/index.tsx | 3 +-- packages/page-contracts/src/Contracts/util.tsx | 3 +-- packages/page-contracts/src/Deploy.tsx | 3 +-- packages/page-contracts/src/RemoveABI.tsx | 3 +-- packages/page-contracts/src/constants.ts | 3 +-- packages/page-contracts/src/index.tsx | 3 +-- packages/page-contracts/src/shared/ABI.tsx | 3 +-- packages/page-contracts/src/shared/CodeRow.tsx | 3 +-- .../page-contracts/src/shared/InputMegaGas.tsx | 3 +-- packages/page-contracts/src/shared/InputName.tsx | 3 +-- .../page-contracts/src/shared/MessageSignature.tsx | 3 +-- packages/page-contracts/src/shared/Messages.tsx | 3 +-- packages/page-contracts/src/shared/Params.tsx | 3 +-- packages/page-contracts/src/shared/index.tsx | 3 +-- packages/page-contracts/src/store.ts | 3 +-- packages/page-contracts/src/translate.ts | 3 +-- packages/page-contracts/src/types.ts | 3 +-- packages/page-contracts/src/useAbi.ts | 3 +-- packages/page-contracts/src/useWeight.ts | 3 +-- packages/page-council/src/Motions/Motion.tsx | 3 +-- .../page-council/src/Motions/ProposeExternal.tsx | 3 +-- .../page-council/src/Motions/ProposeMotion.tsx | 3 +-- packages/page-council/src/Motions/Slashing.tsx | 3 +-- packages/page-council/src/Motions/Voters.tsx | 3 +-- packages/page-council/src/Motions/Voting.tsx | 3 +-- packages/page-council/src/Motions/index.tsx | 3 +-- packages/page-council/src/Overview/Candidate.tsx | 3 +-- packages/page-council/src/Overview/Candidates.tsx | 3 +-- packages/page-council/src/Overview/Members.tsx | 3 +-- .../page-council/src/Overview/SubmitCandidacy.tsx | 3 +-- packages/page-council/src/Overview/Summary.tsx | 3 +-- packages/page-council/src/Overview/Vote.tsx | 3 +-- packages/page-council/src/Overview/Voters.tsx | 3 +-- packages/page-council/src/Overview/index.tsx | 3 +-- packages/page-council/src/Overview/types.ts | 3 +-- packages/page-council/src/index.tsx | 3 +-- packages/page-council/src/thresholds.ts | 3 +-- packages/page-council/src/translate.ts | 3 +-- packages/page-council/src/useCounter.ts | 3 +-- packages/page-dashboard/src/Entry.tsx | 3 +-- packages/page-dashboard/src/Spacer.tsx | 3 +-- packages/page-dashboard/src/index.tsx | 3 +-- packages/page-dashboard/src/translate.ts | 3 +-- .../page-democracy/src/Execute/DispatchEntry.tsx | 3 +-- .../page-democracy/src/Execute/DispatchQueue.tsx | 3 +-- packages/page-democracy/src/Execute/Scheduled.tsx | 3 +-- packages/page-democracy/src/Execute/Scheduler.tsx | 3 +-- packages/page-democracy/src/Execute/index.tsx | 3 +-- packages/page-democracy/src/Execute/types.ts | 3 +-- packages/page-democracy/src/Execute/useCounter.ts | 3 +-- packages/page-democracy/src/Overview/External.tsx | 3 +-- .../page-democracy/src/Overview/ExternalCell.tsx | 3 +-- packages/page-democracy/src/Overview/Externals.tsx | 3 +-- packages/page-democracy/src/Overview/Fasttrack.tsx | 3 +-- packages/page-democracy/src/Overview/PreImage.tsx | 3 +-- .../page-democracy/src/Overview/PreImageButton.tsx | 3 +-- packages/page-democracy/src/Overview/Proposal.tsx | 3 +-- .../page-democracy/src/Overview/ProposalCell.tsx | 3 +-- packages/page-democracy/src/Overview/Proposals.tsx | 3 +-- packages/page-democracy/src/Overview/Propose.tsx | 3 +-- .../page-democracy/src/Overview/Referendum.tsx | 3 +-- .../page-democracy/src/Overview/ReferendumVote.tsx | 3 +-- .../src/Overview/ReferendumVotes.tsx | 3 +-- .../page-democracy/src/Overview/Referendums.tsx | 3 +-- packages/page-democracy/src/Overview/Seconding.tsx | 3 +-- packages/page-democracy/src/Overview/Summary.tsx | 3 +-- .../page-democracy/src/Overview/TreasuryCell.tsx | 3 +-- packages/page-democracy/src/Overview/Voting.tsx | 3 +-- packages/page-democracy/src/Overview/index.tsx | 3 +-- packages/page-democracy/src/index.tsx | 3 +-- packages/page-democracy/src/translate.ts | 3 +-- packages/page-democracy/src/useChangeCalc.ts | 3 +-- packages/page-democracy/src/useCounter.ts | 3 +-- packages/page-democracy/src/util.spec.ts | 3 +-- packages/page-democracy/src/util.ts | 3 +-- packages/page-explorer/src/BestHash.tsx | 3 +-- packages/page-explorer/src/BlockHeader.tsx | 3 +-- packages/page-explorer/src/BlockHeaders.tsx | 3 +-- packages/page-explorer/src/BlockInfo/ByHash.tsx | 3 +-- packages/page-explorer/src/BlockInfo/ByNumber.tsx | 3 +-- packages/page-explorer/src/BlockInfo/Extrinsic.tsx | 3 +-- .../page-explorer/src/BlockInfo/Extrinsics.tsx | 3 +-- packages/page-explorer/src/BlockInfo/Logs.tsx | 3 +-- packages/page-explorer/src/BlockInfo/index.tsx | 3 +-- packages/page-explorer/src/Event.tsx | 3 +-- packages/page-explorer/src/Events.tsx | 3 +-- packages/page-explorer/src/Forks.tsx | 3 +-- packages/page-explorer/src/Main.tsx | 3 +-- packages/page-explorer/src/NodeInfo/Peers.tsx | 3 +-- packages/page-explorer/src/NodeInfo/Summary.tsx | 3 +-- packages/page-explorer/src/NodeInfo/index.tsx | 3 +-- packages/page-explorer/src/NodeInfo/types.ts | 3 +-- packages/page-explorer/src/Query.tsx | 3 +-- packages/page-explorer/src/Summary.tsx | 3 +-- packages/page-explorer/src/SummarySession.tsx | 3 +-- packages/page-explorer/src/index.tsx | 3 +-- packages/page-explorer/src/translate.ts | 3 +-- packages/page-extrinsics/src/Balance.tsx | 3 +-- packages/page-extrinsics/src/Selection.tsx | 3 +-- packages/page-extrinsics/src/index.tsx | 3 +-- packages/page-extrinsics/src/translate.ts | 3 +-- packages/page-generic-asset/src/AssetCard.tsx | 3 +-- packages/page-generic-asset/src/AssetRow.tsx | 3 +-- packages/page-generic-asset/src/Assets.tsx | 3 +-- packages/page-generic-asset/src/Transfer.tsx | 3 +-- packages/page-generic-asset/src/assetsRegistry.tsx | 3 +-- packages/page-generic-asset/src/index.tsx | 3 +-- packages/page-generic-asset/src/modals/Create.tsx | 3 +-- packages/page-generic-asset/src/translate.ts | 3 +-- packages/page-js/src/ActionButtons.tsx | 3 +-- packages/page-js/src/Output.tsx | 3 +-- packages/page-js/src/Playground.tsx | 3 +-- packages/page-js/src/constants.tsx | 3 +-- packages/page-js/src/index.tsx | 3 +-- packages/page-js/src/snippets/consts-examples.ts | 3 +-- .../page-js/src/snippets/extrinsics-examples.ts | 3 +-- packages/page-js/src/snippets/index.ts | 3 +-- packages/page-js/src/snippets/rpc-examples.ts | 3 +-- packages/page-js/src/snippets/storage-examples.ts | 3 +-- packages/page-js/src/snippets/transfer.ts | 3 +-- packages/page-js/src/snippets/wrapping.ts | 3 +-- packages/page-js/src/translate.ts | 3 +-- packages/page-js/src/types.ts | 3 +-- .../page-parachains/src/Overview/Parachain.tsx | 3 +-- .../page-parachains/src/Overview/Parachains.tsx | 3 +-- packages/page-parachains/src/Overview/Proposal.tsx | 3 +-- .../page-parachains/src/Overview/Proposals.tsx | 3 +-- packages/page-parachains/src/Overview/Register.tsx | 3 +-- packages/page-parachains/src/Overview/Summary.tsx | 3 +-- packages/page-parachains/src/Overview/index.tsx | 3 +-- packages/page-parachains/src/Overview/types.ts | 3 +-- .../page-parachains/src/Parachain/Deregister.tsx | 3 +-- packages/page-parachains/src/Parachain/Details.tsx | 3 +-- .../src/Parachain/DispatchQueue.tsx | 3 +-- packages/page-parachains/src/Parachain/index.tsx | 3 +-- packages/page-parachains/src/ParachainInfo.tsx | 3 +-- packages/page-parachains/src/Transfer.tsx | 3 +-- packages/page-parachains/src/index.tsx | 3 +-- packages/page-parachains/src/translate.ts | 3 +-- packages/page-parachains/src/util.ts | 3 +-- packages/page-poll/src/index.tsx | 3 +-- packages/page-poll/src/translate.ts | 3 +-- packages/page-rpc/src/Rpc/Account.tsx | 3 +-- packages/page-rpc/src/Rpc/Results.tsx | 3 +-- packages/page-rpc/src/Rpc/Selection.tsx | 3 +-- packages/page-rpc/src/Rpc/index.tsx | 3 +-- packages/page-rpc/src/index.tsx | 3 +-- packages/page-rpc/src/translate.ts | 3 +-- packages/page-settings/src/Developer.tsx | 3 +-- packages/page-settings/src/General.tsx | 3 +-- packages/page-settings/src/I18n/StringInput.tsx | 3 +-- packages/page-settings/src/I18n/index.tsx | 3 +-- .../src/Metadata/ChainColorIndicator.tsx | 3 +-- packages/page-settings/src/Metadata/Extensions.tsx | 3 +-- .../page-settings/src/Metadata/NetworkSpecs.tsx | 3 +-- packages/page-settings/src/Metadata/iconOption.tsx | 3 +-- packages/page-settings/src/Metadata/index.tsx | 3 +-- packages/page-settings/src/index.tsx | 3 +-- packages/page-settings/src/translate.ts | 3 +-- packages/page-settings/src/types.ts | 3 +-- packages/page-settings/src/useChainInfo.ts | 3 +-- packages/page-settings/src/useCounter.ts | 3 +-- packages/page-settings/src/useExtensions.ts | 3 +-- packages/page-settings/src/util.tsx | 3 +-- packages/page-signing/src/Hash.tsx | 3 +-- packages/page-signing/src/Sign.tsx | 3 +-- packages/page-signing/src/Unlock.tsx | 3 +-- packages/page-signing/src/Verify.tsx | 3 +-- packages/page-signing/src/index.tsx | 3 +-- packages/page-signing/src/translate.ts | 3 +-- packages/page-society/src/Overview/Bid.tsx | 3 +-- packages/page-society/src/Overview/BidNew.tsx | 3 +-- packages/page-society/src/Overview/Bids.tsx | 3 +-- packages/page-society/src/Overview/Candidate.tsx | 3 +-- .../page-society/src/Overview/CandidateVoting.tsx | 3 +-- packages/page-society/src/Overview/Candidates.tsx | 3 +-- packages/page-society/src/Overview/Defender.tsx | 3 +-- .../page-society/src/Overview/DefenderVoting.tsx | 3 +-- packages/page-society/src/Overview/Member.tsx | 3 +-- packages/page-society/src/Overview/Members.tsx | 3 +-- packages/page-society/src/Overview/Summary.tsx | 3 +-- packages/page-society/src/Overview/Votes.tsx | 3 +-- .../page-society/src/Overview/VotesExpander.tsx | 3 +-- packages/page-society/src/Overview/index.tsx | 3 +-- packages/page-society/src/draw/canary.ts | 3 +-- packages/page-society/src/index.tsx | 3 +-- packages/page-society/src/translate.ts | 3 +-- packages/page-society/src/types.ts | 3 +-- packages/page-society/src/useCounter.ts | 3 +-- packages/page-society/src/useMembers.ts | 3 +-- .../page-staking/src/Actions/Account/BondExtra.tsx | 3 +-- .../src/Actions/Account/InjectKeys.tsx | 3 +-- .../src/Actions/Account/InputValidateAmount.tsx | 3 +-- .../Actions/Account/InputValidationController.tsx | 3 +-- .../Actions/Account/InputValidationSessionKey.tsx | 3 +-- .../Account/InputValidationUnstakeThreshold.tsx | 3 +-- .../src/Actions/Account/ListNominees.tsx | 3 +-- .../page-staking/src/Actions/Account/Nominate.tsx | 3 +-- .../src/Actions/Account/SetControllerAccount.tsx | 3 +-- .../src/Actions/Account/SetRewardDestination.tsx | 3 +-- .../src/Actions/Account/SetSessionKey.tsx | 3 +-- .../page-staking/src/Actions/Account/Unbond.tsx | 3 +-- .../page-staking/src/Actions/Account/Validate.tsx | 3 +-- .../page-staking/src/Actions/Account/index.tsx | 3 +-- packages/page-staking/src/Actions/NewNominator.tsx | 3 +-- packages/page-staking/src/Actions/NewStash.tsx | 3 +-- packages/page-staking/src/Actions/NewValidator.tsx | 3 +-- packages/page-staking/src/Actions/destOptions.tsx | 3 +-- packages/page-staking/src/Actions/index.tsx | 3 +-- .../page-staking/src/Actions/partials/Bond.tsx | 3 +-- .../page-staking/src/Actions/partials/Nominate.tsx | 3 +-- .../src/Actions/partials/SessionKey.tsx | 3 +-- .../page-staking/src/Actions/partials/Validate.tsx | 3 +-- .../page-staking/src/Actions/partials/types.ts | 3 +-- packages/page-staking/src/Actions/types.ts | 3 +-- packages/page-staking/src/Actions/useInactives.ts | 3 +-- .../page-staking/src/Actions/useUnbondDuration.ts | 3 +-- packages/page-staking/src/ElectionBanner.tsx | 3 +-- packages/page-staking/src/Filtering.tsx | 3 +-- packages/page-staking/src/Ledgend.tsx | 3 +-- packages/page-staking/src/MaxBadge.tsx | 3 +-- .../page-staking/src/Overview/Address/Favorite.tsx | 3 +-- .../src/Overview/Address/NominatedBy.tsx | 3 +-- .../src/Overview/Address/StakeOther.tsx | 3 +-- .../page-staking/src/Overview/Address/Status.tsx | 3 +-- .../page-staking/src/Overview/Address/index.tsx | 3 +-- packages/page-staking/src/Overview/CurrentList.tsx | 3 +-- packages/page-staking/src/Overview/Summary.tsx | 3 +-- packages/page-staking/src/Overview/index.tsx | 3 +-- packages/page-staking/src/Overview/types.ts | 3 +-- packages/page-staking/src/Payouts/PayButton.tsx | 3 +-- packages/page-staking/src/Payouts/Stash.tsx | 3 +-- packages/page-staking/src/Payouts/Validator.tsx | 3 +-- packages/page-staking/src/Payouts/index.tsx | 3 +-- packages/page-staking/src/Payouts/types.ts | 3 +-- packages/page-staking/src/Payouts/useEraBlocks.ts | 3 +-- .../page-staking/src/Payouts/useStakerPayouts.ts | 3 +-- packages/page-staking/src/Payouts/util.tsx | 3 +-- packages/page-staking/src/Query/ChartPoints.tsx | 3 +-- packages/page-staking/src/Query/ChartPrefs.tsx | 3 +-- packages/page-staking/src/Query/ChartRewards.tsx | 3 +-- packages/page-staking/src/Query/ChartStake.tsx | 3 +-- packages/page-staking/src/Query/Validator.tsx | 3 +-- packages/page-staking/src/Query/index.tsx | 3 +-- packages/page-staking/src/Query/types.ts | 3 +-- packages/page-staking/src/Query/useBlockCounts.tsx | 3 +-- packages/page-staking/src/Query/util.ts | 3 +-- packages/page-staking/src/Slashes/Era.tsx | 3 +-- packages/page-staking/src/Slashes/Row.tsx | 3 +-- packages/page-staking/src/Slashes/Summary.tsx | 3 +-- packages/page-staking/src/Slashes/index.tsx | 3 +-- packages/page-staking/src/Slashes/types.ts | 3 +-- packages/page-staking/src/Targets/Nominate.tsx | 3 +-- packages/page-staking/src/Targets/Summary.tsx | 3 +-- packages/page-staking/src/Targets/Validator.tsx | 3 +-- packages/page-staking/src/Targets/index.tsx | 3 +-- .../page-staking/src/Targets/useOwnNominators.ts | 3 +-- packages/page-staking/src/constants.ts | 3 +-- packages/page-staking/src/index.tsx | 3 +-- packages/page-staking/src/translate.ts | 3 +-- packages/page-staking/src/types.ts | 3 +-- packages/page-staking/src/useSortedTargets.ts | 3 +-- packages/page-storage/src/Queries.tsx | 3 +-- packages/page-storage/src/Query.tsx | 3 +-- packages/page-storage/src/Selection/Consts.tsx | 3 +-- packages/page-storage/src/Selection/Modules.tsx | 3 +-- packages/page-storage/src/Selection/Raw.tsx | 3 +-- packages/page-storage/src/Selection/index.tsx | 3 +-- packages/page-storage/src/index.tsx | 3 +-- packages/page-storage/src/translate.ts | 3 +-- packages/page-storage/src/types.ts | 3 +-- packages/page-sudo/src/SetKey.tsx | 3 +-- packages/page-sudo/src/Sudo.tsx | 3 +-- packages/page-sudo/src/index.tsx | 3 +-- packages/page-sudo/src/translate.ts | 3 +-- packages/page-sudo/src/types.ts | 3 +-- packages/page-tech-comm/src/Overview/Members.tsx | 3 +-- packages/page-tech-comm/src/Overview/Summary.tsx | 3 +-- packages/page-tech-comm/src/Overview/index.tsx | 3 +-- packages/page-tech-comm/src/Proposals/Proposal.tsx | 3 +-- packages/page-tech-comm/src/Proposals/Propose.tsx | 3 +-- packages/page-tech-comm/src/Proposals/Voting.tsx | 3 +-- packages/page-tech-comm/src/Proposals/index.tsx | 3 +-- packages/page-tech-comm/src/index.tsx | 3 +-- packages/page-tech-comm/src/translate.ts | 3 +-- packages/page-tech-comm/src/types.ts | 3 +-- packages/page-tech-comm/src/useCounter.ts | 3 +-- packages/page-treasury/src/Overview/Council.tsx | 3 +-- packages/page-treasury/src/Overview/Proposal.tsx | 3 +-- .../page-treasury/src/Overview/ProposalCreate.tsx | 3 +-- packages/page-treasury/src/Overview/Proposals.tsx | 3 +-- packages/page-treasury/src/Overview/Summary.tsx | 3 +-- packages/page-treasury/src/Overview/index.tsx | 3 +-- packages/page-treasury/src/Tips/Tip.tsx | 3 +-- packages/page-treasury/src/Tips/TipCreate.tsx | 3 +-- packages/page-treasury/src/Tips/TipEndorse.tsx | 3 +-- packages/page-treasury/src/Tips/TipReason.tsx | 3 +-- packages/page-treasury/src/Tips/Tips.tsx | 3 +-- packages/page-treasury/src/Tips/index.tsx | 3 +-- packages/page-treasury/src/index.tsx | 3 +-- packages/page-treasury/src/translate.ts | 3 +-- packages/page-treasury/src/useCounter.ts | 3 +-- packages/react-api/src/Api.tsx | 3 +-- packages/react-api/src/ApiContext.ts | 3 +-- packages/react-api/src/hoc/api.tsx | 3 +-- packages/react-api/src/hoc/call.tsx | 3 +-- packages/react-api/src/hoc/callDiv.tsx | 3 +-- packages/react-api/src/hoc/calls.ts | 3 +-- packages/react-api/src/hoc/index.ts | 3 +-- packages/react-api/src/hoc/multi.ts | 3 +-- packages/react-api/src/hoc/observable.tsx | 3 +-- packages/react-api/src/hoc/onlyOn.tsx | 3 +-- packages/react-api/src/hoc/types.ts | 3 +-- packages/react-api/src/index.ts | 3 +-- packages/react-api/src/ledger.ts | 3 +-- packages/react-api/src/transform/echo.ts | 3 +-- packages/react-api/src/typeRegistry.ts | 3 +-- packages/react-api/src/types.ts | 3 +-- packages/react-api/src/util/getEnvironment.ts | 3 +-- packages/react-api/src/util/historic.ts | 3 +-- packages/react-api/src/util/index.ts | 3 +-- packages/react-api/src/util/intervalObservable.ts | 3 +-- packages/react-api/src/util/isEqual.ts | 3 +-- packages/react-api/src/util/triggerChange.ts | 3 +-- packages/react-api/test/enzyme.js | 3 +-- packages/react-api/test/observable.js | 3 +-- packages/react-api/webpack.config.js | 3 +-- packages/react-components/src/AccountIndex.tsx | 3 +-- packages/react-components/src/AccountName.tsx | 3 +-- packages/react-components/src/ActionItem.tsx | 3 +-- packages/react-components/src/AddressInfo.tsx | 3 +-- packages/react-components/src/AddressMini.tsx | 3 +-- packages/react-components/src/AddressRow.tsx | 3 +-- packages/react-components/src/AddressSmall.tsx | 3 +-- packages/react-components/src/AddressToggle.tsx | 3 +-- packages/react-components/src/Available.tsx | 3 +-- packages/react-components/src/AvatarItem.tsx | 3 +-- packages/react-components/src/Badge.tsx | 3 +-- packages/react-components/src/Balance.tsx | 3 +-- packages/react-components/src/Bonded.tsx | 3 +-- packages/react-components/src/Button/Button.tsx | 3 +-- packages/react-components/src/Button/Group.tsx | 3 +-- packages/react-components/src/Button/index.tsx | 3 +-- packages/react-components/src/Button/types.ts | 3 +-- packages/react-components/src/ButtonCancel.tsx | 3 +-- packages/react-components/src/Call.tsx | 3 +-- packages/react-components/src/CallExpander.tsx | 3 +-- packages/react-components/src/Card.tsx | 3 +-- packages/react-components/src/CardGrid.tsx | 3 +-- packages/react-components/src/CardSummary.tsx | 3 +-- packages/react-components/src/ChainImg.tsx | 3 +-- packages/react-components/src/ChainLock.tsx | 3 +-- packages/react-components/src/Chart/Base.tsx | 3 +-- packages/react-components/src/Chart/Doughnut.tsx | 3 +-- packages/react-components/src/Chart/HorizBar.tsx | 3 +-- packages/react-components/src/Chart/Line.tsx | 3 +-- packages/react-components/src/Chart/index.ts | 3 +-- packages/react-components/src/Chart/types.ts | 3 +-- packages/react-components/src/Checkbox.tsx | 3 +-- packages/react-components/src/Collection.tsx | 3 +-- packages/react-components/src/Columar.tsx | 3 +-- packages/react-components/src/Column.tsx | 3 +-- .../react-components/src/ConvictionDropdown.tsx | 3 +-- packages/react-components/src/CopyButton.tsx | 3 +-- packages/react-components/src/CryptoType.tsx | 3 +-- packages/react-components/src/DemocracyLocks.tsx | 3 +-- packages/react-components/src/Dropdown.tsx | 3 +-- packages/react-components/src/EditButton.tsx | 3 +-- packages/react-components/src/Editor.tsx | 3 +-- packages/react-components/src/ErrorBoundary.tsx | 3 +-- packages/react-components/src/Event.tsx | 3 +-- packages/react-components/src/Expander.tsx | 3 +-- packages/react-components/src/Extrinsic.tsx | 3 +-- packages/react-components/src/FilterOverlay.tsx | 3 +-- packages/react-components/src/Forget.tsx | 3 +-- packages/react-components/src/HelpOverlay.tsx | 3 +-- packages/react-components/src/Icon.tsx | 3 +-- packages/react-components/src/IconLink.tsx | 3 +-- packages/react-components/src/IdentityIcon.tsx | 3 +-- packages/react-components/src/InfoForInput.tsx | 3 +-- packages/react-components/src/Input.tsx | 3 +-- .../react-components/src/InputAddress/KeyPair.tsx | 3 +-- .../src/InputAddress/createHeader.tsx | 3 +-- .../src/InputAddress/createItem.tsx | 3 +-- .../react-components/src/InputAddress/index.tsx | 3 +-- .../react-components/src/InputAddress/types.ts | 3 +-- .../src/InputAddressMulti/Available.tsx | 3 +-- .../src/InputAddressMulti/Selected.tsx | 3 +-- .../src/InputAddressMulti/SelectedDrag.tsx | 3 +-- .../src/InputAddressMulti/index.tsx | 3 +-- .../react-components/src/InputAddressSimple.tsx | 3 +-- packages/react-components/src/InputBalance.tsx | 3 +-- .../react-components/src/InputConsts/SelectKey.tsx | 3 +-- .../src/InputConsts/SelectSection.tsx | 3 +-- .../react-components/src/InputConsts/index.tsx | 3 +-- .../src/InputConsts/options/key.tsx | 3 +-- .../src/InputConsts/options/section.ts | 3 +-- packages/react-components/src/InputConsts/types.ts | 3 +-- packages/react-components/src/InputError.tsx | 3 +-- .../src/InputExtrinsic/LinkedWrapper.tsx | 3 +-- .../src/InputExtrinsic/SelectMethod.tsx | 3 +-- .../src/InputExtrinsic/SelectSection.tsx | 3 +-- .../react-components/src/InputExtrinsic/index.tsx | 3 +-- .../src/InputExtrinsic/options/method.tsx | 3 +-- .../src/InputExtrinsic/options/section.ts | 3 +-- packages/react-components/src/InputFile.tsx | 3 +-- packages/react-components/src/InputNumber.tsx | 3 +-- .../react-components/src/InputRpc/SelectMethod.tsx | 3 +-- .../src/InputRpc/SelectSection.tsx | 3 +-- packages/react-components/src/InputRpc/index.tsx | 3 +-- .../src/InputRpc/options/method.tsx | 3 +-- .../src/InputRpc/options/section.ts | 3 +-- .../src/InputStorage/SelectKey.tsx | 3 +-- .../src/InputStorage/SelectSection.tsx | 3 +-- .../react-components/src/InputStorage/index.tsx | 3 +-- .../src/InputStorage/options/key.tsx | 3 +-- .../src/InputStorage/options/section.ts | 3 +-- packages/react-components/src/InputTags.tsx | 3 +-- packages/react-components/src/InputWasm.tsx | 3 +-- packages/react-components/src/Inset.tsx | 3 +-- packages/react-components/src/Label.tsx | 3 +-- packages/react-components/src/LabelHelp.tsx | 3 +-- packages/react-components/src/Labelled.tsx | 3 +-- packages/react-components/src/LinkExternal.tsx | 3 +-- packages/react-components/src/LockedVote.tsx | 3 +-- packages/react-components/src/Menu.tsx | 3 +-- packages/react-components/src/Modal/Actions.tsx | 3 +-- packages/react-components/src/Modal/Column.tsx | 3 +-- packages/react-components/src/Modal/Columns.tsx | 3 +-- packages/react-components/src/Modal/index.tsx | 3 +-- packages/react-components/src/Modal/types.tsx | 3 +-- packages/react-components/src/Nonce.tsx | 3 +-- packages/react-components/src/Output.tsx | 3 +-- packages/react-components/src/Params/Call.tsx | 3 +-- packages/react-components/src/Params/Extrinsic.tsx | 3 +-- .../react-components/src/Params/OpaqueCall.tsx | 3 +-- packages/react-components/src/Params/Proposal.tsx | 3 +-- packages/react-components/src/Params/index.ts | 3 +-- packages/react-components/src/Password.tsx | 3 +-- packages/react-components/src/PasswordStrength.tsx | 3 +-- packages/react-components/src/Popup.tsx | 3 +-- packages/react-components/src/Progress.tsx | 3 +-- packages/react-components/src/ProposedAction.tsx | 3 +-- packages/react-components/src/Row.tsx | 3 +-- packages/react-components/src/Sidebar.tsx | 3 +-- packages/react-components/src/Spinner.tsx | 3 +-- packages/react-components/src/StakingBonded.tsx | 3 +-- .../react-components/src/StakingRedeemable.tsx | 3 +-- packages/react-components/src/StakingUnbonding.tsx | 3 +-- packages/react-components/src/Static.tsx | 3 +-- packages/react-components/src/Status/Context.ts | 3 +-- packages/react-components/src/Status/Queue.tsx | 3 +-- packages/react-components/src/Status/constants.ts | 3 +-- packages/react-components/src/Status/index.tsx | 3 +-- packages/react-components/src/Status/types.ts | 3 +-- packages/react-components/src/SummaryBox.tsx | 3 +-- packages/react-components/src/Table/Body.tsx | 3 +-- packages/react-components/src/Table/Foot.tsx | 3 +-- packages/react-components/src/Table/Head.tsx | 3 +-- packages/react-components/src/Table/index.tsx | 3 +-- packages/react-components/src/Tabs/Tab.tsx | 3 +-- packages/react-components/src/Tabs/index.tsx | 3 +-- packages/react-components/src/Tabs/types.ts | 3 +-- packages/react-components/src/Tag.tsx | 3 +-- packages/react-components/src/Tags.tsx | 3 +-- packages/react-components/src/Toggle.tsx | 3 +-- packages/react-components/src/ToggleGroup.tsx | 3 +-- packages/react-components/src/Tooltip.tsx | 3 +-- packages/react-components/src/TreasuryProposal.tsx | 3 +-- packages/react-components/src/TxButton.tsx | 3 +-- packages/react-components/src/TxComponent.tsx | 3 +-- packages/react-components/src/TxModal.tsx | 3 +-- packages/react-components/src/TxModalNew.tsx | 3 +-- packages/react-components/src/VoteAccount.tsx | 3 +-- packages/react-components/src/VoteValue.tsx | 3 +-- packages/react-components/src/constants.ts | 3 +-- packages/react-components/src/i18n/Backend.ts | 3 +-- packages/react-components/src/i18n/cache.ts | 3 +-- packages/react-components/src/i18n/index.ts | 3 +-- packages/react-components/src/index.tsx | 3 +-- packages/react-components/src/media.ts | 3 +-- packages/react-components/src/styles/components.ts | 3 +-- packages/react-components/src/styles/form.ts | 3 +-- packages/react-components/src/styles/index.ts | 3 +-- packages/react-components/src/styles/media.ts | 3 +-- packages/react-components/src/styles/rx.ts | 3 +-- packages/react-components/src/styles/semantic.ts | 3 +-- packages/react-components/src/styles/theme.ts | 3 +-- packages/react-components/src/translate.ts | 3 +-- packages/react-components/src/types.ts | 3 +-- .../react-components/src/util/checkVisibility.tsx | 3 +-- packages/react-components/src/util/classes.ts | 3 +-- .../react-components/src/util/getAddressMeta.ts | 3 +-- .../react-components/src/util/getAddressName.ts | 3 +-- .../react-components/src/util/getAddressTags.ts | 3 +-- .../react-components/src/util/getContractAbi.ts | 3 +-- packages/react-components/src/util/index.ts | 3 +-- .../src/util/isTreasuryProposalVote.ts | 3 +-- packages/react-components/src/util/toAddress.ts | 3 +-- .../react-components/src/util/toShortAddress.ts | 3 +-- packages/react-components/src/util/types.ts | 3 +-- packages/react-hooks/src/index.ts | 3 +-- packages/react-hooks/src/memo.ts | 3 +-- packages/react-hooks/src/translate.ts | 3 +-- packages/react-hooks/src/types.ts | 3 +-- packages/react-hooks/src/useAccountId.ts | 3 +-- packages/react-hooks/src/useAccountInfo.ts | 3 +-- packages/react-hooks/src/useAccounts.ts | 3 +-- packages/react-hooks/src/useAddresses.ts | 3 +-- packages/react-hooks/src/useApi.ts | 3 +-- packages/react-hooks/src/useAvailableSlashes.ts | 3 +-- packages/react-hooks/src/useBlockTime.ts | 3 +-- packages/react-hooks/src/useCacheKey.ts | 3 +-- packages/react-hooks/src/useCall.ts | 3 +-- packages/react-hooks/src/useContracts.ts | 3 +-- packages/react-hooks/src/useDebounce.ts | 3 +-- packages/react-hooks/src/useFavorites.ts | 3 +-- packages/react-hooks/src/useFormField.ts | 3 +-- packages/react-hooks/src/useIncrement.ts | 3 +-- packages/react-hooks/src/useIpfs.ts | 3 +-- packages/react-hooks/src/useIsMountedRef.ts | 3 +-- packages/react-hooks/src/useLoadingDelay.ts | 3 +-- packages/react-hooks/src/useMembers.ts | 3 +-- packages/react-hooks/src/useModal.ts | 3 +-- packages/react-hooks/src/useNonEmptyString.ts | 3 +-- packages/react-hooks/src/useNonZeroBn.ts | 3 +-- packages/react-hooks/src/useOwnEraRewards.ts | 3 +-- packages/react-hooks/src/useOwnStashInfos.ts | 3 +-- packages/react-hooks/src/useOwnStashes.ts | 3 +-- packages/react-hooks/src/usePassword.ts | 3 +-- packages/react-hooks/src/useRegistrars.ts | 3 +-- packages/react-hooks/src/useStashIds.ts | 3 +-- packages/react-hooks/src/useSudo.ts | 3 +-- packages/react-hooks/src/useToggle.ts | 3 +-- packages/react-hooks/src/useVotingStatus.ts | 3 +-- packages/react-hooks/src/useWeight.ts | 3 +-- packages/react-params/src/Holder.tsx | 3 +-- packages/react-params/src/Param/Account.tsx | 3 +-- packages/react-params/src/Param/Amount.tsx | 3 +-- packages/react-params/src/Param/Balance.tsx | 3 +-- packages/react-params/src/Param/Bare.tsx | 3 +-- packages/react-params/src/Param/Base.tsx | 3 +-- packages/react-params/src/Param/BaseBytes.tsx | 3 +-- packages/react-params/src/Param/Bool.tsx | 3 +-- packages/react-params/src/Param/Bytes.tsx | 3 +-- packages/react-params/src/Param/Call.tsx | 3 +-- packages/react-params/src/Param/Code.tsx | 3 +-- packages/react-params/src/Param/DispatchError.tsx | 3 +-- packages/react-params/src/Param/Enum.tsx | 3 +-- packages/react-params/src/Param/File.tsx | 3 +-- packages/react-params/src/Param/Hash256.tsx | 3 +-- packages/react-params/src/Param/Hash512.tsx | 3 +-- packages/react-params/src/Param/KeyValue.tsx | 3 +-- packages/react-params/src/Param/KeyValueArray.tsx | 3 +-- packages/react-params/src/Param/Moment.tsx | 3 +-- packages/react-params/src/Param/Null.tsx | 3 +-- packages/react-params/src/Param/OpaqueCall.tsx | 3 +-- packages/react-params/src/Param/Option.tsx | 3 +-- packages/react-params/src/Param/Raw.tsx | 3 +-- packages/react-params/src/Param/Static.tsx | 3 +-- packages/react-params/src/Param/Struct.tsx | 3 +-- packages/react-params/src/Param/Text.tsx | 3 +-- packages/react-params/src/Param/Tuple.tsx | 3 +-- packages/react-params/src/Param/Unknown.tsx | 3 +-- packages/react-params/src/Param/Vector.tsx | 3 +-- packages/react-params/src/Param/VectorFixed.tsx | 3 +-- packages/react-params/src/Param/Vote.tsx | 3 +-- packages/react-params/src/Param/VoteThreshold.tsx | 3 +-- packages/react-params/src/Param/findComponent.ts | 3 +-- packages/react-params/src/Param/index.tsx | 3 +-- packages/react-params/src/Param/useParamDefs.ts | 3 +-- packages/react-params/src/ParamComp.tsx | 3 +-- packages/react-params/src/index.tsx | 3 +-- packages/react-params/src/initValue.ts | 3 +-- packages/react-params/src/translate.ts | 3 +-- packages/react-params/src/types.ts | 3 +-- packages/react-params/src/valueToText.tsx | 3 +-- packages/react-params/src/values.ts | 3 +-- packages/react-query/src/Available.tsx | 3 +-- packages/react-query/src/Balance.tsx | 3 +-- packages/react-query/src/BalanceFree.tsx | 3 +-- packages/react-query/src/BalanceVoting.tsx | 3 +-- packages/react-query/src/BestFinalized.tsx | 3 +-- packages/react-query/src/BestNumber.tsx | 3 +-- packages/react-query/src/BlockAuthors.tsx | 3 +-- packages/react-query/src/BlockToTime.tsx | 3 +-- packages/react-query/src/Bonded.tsx | 3 +-- packages/react-query/src/Chain.tsx | 3 +-- packages/react-query/src/Elapsed.tsx | 3 +-- packages/react-query/src/Events.tsx | 3 +-- packages/react-query/src/FormatBalance.tsx | 3 +-- packages/react-query/src/LockedVote.tsx | 3 +-- packages/react-query/src/NodeName.tsx | 3 +-- packages/react-query/src/NodeVersion.tsx | 3 +-- packages/react-query/src/Nonce.tsx | 3 +-- packages/react-query/src/TimeNow.tsx | 3 +-- packages/react-query/src/TotalIssuance.tsx | 3 +-- packages/react-query/src/index.ts | 3 +-- packages/react-query/src/translate.ts | 3 +-- packages/react-query/src/types.ts | 3 +-- packages/react-query/webpack.config.js | 3 +-- packages/react-signer/src/Address.tsx | 3 +-- packages/react-signer/src/Password.tsx | 3 +-- packages/react-signer/src/PaymentInfo.tsx | 3 +-- packages/react-signer/src/Qr.tsx | 3 +-- packages/react-signer/src/SignFields.tsx | 3 +-- packages/react-signer/src/Tip.tsx | 3 +-- packages/react-signer/src/Transaction.tsx | 3 +-- packages/react-signer/src/TxSigned.tsx | 3 +-- packages/react-signer/src/TxUnsigned.tsx | 3 +-- packages/react-signer/src/index.tsx | 3 +-- packages/react-signer/src/signers/AccountSigner.ts | 3 +-- packages/react-signer/src/signers/ApiSigner.ts | 3 +-- packages/react-signer/src/signers/LedgerSigner.ts | 3 +-- packages/react-signer/src/signers/QrSigner.ts | 3 +-- packages/react-signer/src/signers/index.ts | 3 +-- packages/react-signer/src/translate.ts | 3 +-- packages/react-signer/src/types.ts | 3 +-- packages/react-signer/src/util.ts | 3 +-- scripts/findPackages.js | 3 +-- scripts/i18nLint.js | 3 +-- scripts/i18nSort.js | 3 +-- scripts/ipfsUpload.js | 3 +-- test/enzyme.js | 3 +-- yarn.lock | 14 +++++++------- 842 files changed, 853 insertions(+), 1680 deletions(-) diff --git a/.babelrc.js b/.babelrc.js index 5188ea0422..c60646096a 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -1 +1,4 @@ +// Copyright 2017-2020 @polkadot/apps authors & contributors +// SPDX-License-Identifier: Apache-2.0 + module.exports = require('./babel.config.js'); diff --git a/.eslintrc.js b/.eslintrc.js index b7309d31b6..334aa9bc64 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,6 @@ +// Copyright 2017-2020 @polkadot/apps authors & contributors +// SPDX-License-Identifier: Apache-2.0 + const base = require('@polkadot/dev/config/eslint'); // add override for any (a metric ton of them, initial conversion) diff --git a/__mocks__/fileMock.js b/__mocks__/fileMock.js index 445b8204b0..42639a225d 100644 --- a/__mocks__/fileMock.js +++ b/__mocks__/fileMock.js @@ -1,6 +1,5 @@ // Copyright 2019-2020 @polkadot/extension authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // eslint-disable-line module.exports = ''; diff --git a/babel.config.js b/babel.config.js index 5b479645c9..5f7cbd77eb 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,4 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 module.exports = require('@polkadot/dev/config/babel'); diff --git a/env.sh b/env.sh index e01e134aad..40ea3361f2 100755 --- a/env.sh +++ b/env.sh @@ -1,4 +1,6 @@ #!/bin/bash +# Copyright 2017-2020 @polkadot/apps authors & contributors +# SPDX-License-Identifier: Apache-2.0 # This script is used when the docker container starts and does the magic to # bring the ENV variables to the generated static UI. diff --git a/i18next-scanner.config.js b/i18next-scanner.config.js index 62c25d27da..009ec5f635 100644 --- a/i18next-scanner.config.js +++ b/i18next-scanner.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const fs = require('fs'); const path = require('path'); diff --git a/jest.config.js b/jest.config.js index 3ba8aed0e2..3c770fe7a2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const config = require('@polkadot/dev/config/jest'); diff --git a/jest/globalSetup.ts b/jest/globalSetup.ts index d367e9f939..50cd8d4824 100644 --- a/jest/globalSetup.ts +++ b/jest/globalSetup.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { GenericContainer, Wait } from 'testcontainers'; import { SubstrateTestsGlobal } from './substrateTestsGlobal'; diff --git a/jest/globalTeardown.ts b/jest/globalTeardown.ts index f2d05884a4..20bfa229b2 100644 --- a/jest/globalTeardown.ts +++ b/jest/globalTeardown.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubstrateTestsGlobal } from './substrateTestsGlobal'; diff --git a/jest/substrateTestsGlobal.ts b/jest/substrateTestsGlobal.ts index ac74c52601..2298b060f1 100644 --- a/jest/substrateTestsGlobal.ts +++ b/jest/substrateTestsGlobal.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StartedTestContainer } from 'testcontainers'; diff --git a/package.json b/package.json index 970b8c9e1f..a1a773b6f7 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "@babel/register": "^7.11.5", "@babel/runtime": "^7.11.2", "@pinata/sdk": "^1.1.11", - "@polkadot/dev": "^0.55.52", + "@polkadot/dev": "^0.55.53", "@polkadot/ts": "^0.3.47", "@types/bn.js": "^4.11.6", "@types/chart.js": "^2.9.24", diff --git a/packages/apps-config/src/api/chain/beresheet.ts b/packages/apps-config/src/api/chain/beresheet.ts index 0a12706fa7..324b5d0173 100644 --- a/packages/apps-config/src/api/chain/beresheet.ts +++ b/packages/apps-config/src/api/chain/beresheet.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/chain/index.ts b/packages/apps-config/src/api/chain/index.ts index cf31b998ff..8242933817 100644 --- a/packages/apps-config/src/api/chain/index.ts +++ b/packages/apps-config/src/api/chain/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import Beresheet from './beresheet'; import Phala from './phala'; diff --git a/packages/apps-config/src/api/chain/phala.ts b/packages/apps-config/src/api/chain/phala.ts index 7c7a9fdc41..bf96af84f7 100644 --- a/packages/apps-config/src/api/chain/phala.ts +++ b/packages/apps-config/src/api/chain/phala.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export default { SequenceType: 'u32' diff --git a/packages/apps-config/src/api/constants.ts b/packages/apps-config/src/api/constants.ts index e3b9419256..2e5ce2e55c 100644 --- a/packages/apps-config/src/api/constants.ts +++ b/packages/apps-config/src/api/constants.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/apps-config/src/api/index.ts b/packages/apps-config/src/api/index.ts index fac54eb910..539d7a667f 100644 --- a/packages/apps-config/src/api/index.ts +++ b/packages/apps-config/src/api/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import typesChain from './chain'; import typesSpec from './spec'; diff --git a/packages/apps-config/src/api/spec/acala.ts b/packages/apps-config/src/api/spec/acala.ts index 087f4c0db6..5118d131e6 100644 --- a/packages/apps-config/src/api/spec/acala.ts +++ b/packages/apps-config/src/api/spec/acala.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import * as acalaDefinitions from '@acala-network/type-definitions'; import { typesFromDefs } from '../util'; diff --git a/packages/apps-config/src/api/spec/centrifuge-chain.ts b/packages/apps-config/src/api/spec/centrifuge-chain.ts index 44e6aad109..035a3df305 100644 --- a/packages/apps-config/src/api/spec/centrifuge-chain.ts +++ b/packages/apps-config/src/api/spec/centrifuge-chain.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/crab.ts b/packages/apps-config/src/api/spec/crab.ts index 68a404bdc6..f4b84f559d 100644 --- a/packages/apps-config/src/api/spec/crab.ts +++ b/packages/apps-config/src/api/spec/crab.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/crust.ts b/packages/apps-config/src/api/spec/crust.ts index e46b76481e..2b02859a0b 100644 --- a/packages/apps-config/src/api/spec/crust.ts +++ b/packages/apps-config/src/api/spec/crust.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/cumulus-test-parachain.ts b/packages/apps-config/src/api/spec/cumulus-test-parachain.ts index 8556c23f71..d1493c6857 100644 --- a/packages/apps-config/src/api/spec/cumulus-test-parachain.ts +++ b/packages/apps-config/src/api/spec/cumulus-test-parachain.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/darwinia-parachain.ts b/packages/apps-config/src/api/spec/darwinia-parachain.ts index f8c0301ed6..eb118ec7a0 100644 --- a/packages/apps-config/src/api/spec/darwinia-parachain.ts +++ b/packages/apps-config/src/api/spec/darwinia-parachain.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/edgeware.ts b/packages/apps-config/src/api/spec/edgeware.ts index a65d729ba8..69179dc7e7 100644 --- a/packages/apps-config/src/api/spec/edgeware.ts +++ b/packages/apps-config/src/api/spec/edgeware.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/encointer-node-notee.ts b/packages/apps-config/src/api/spec/encointer-node-notee.ts index f573ab4ce1..00cf93f250 100644 --- a/packages/apps-config/src/api/spec/encointer-node-notee.ts +++ b/packages/apps-config/src/api/spec/encointer-node-notee.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts b/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts index f3de7c7672..7fda9e7111 100644 --- a/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts +++ b/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index b3f32305b5..7804399168 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import acala from './acala'; import centrifugeChain from './centrifuge-chain'; diff --git a/packages/apps-config/src/api/spec/kilt.ts b/packages/apps-config/src/api/spec/kilt.ts index 93034d8503..52bb8fadc7 100644 --- a/packages/apps-config/src/api/spec/kilt.ts +++ b/packages/apps-config/src/api/spec/kilt.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export default { Address: 'AccountId', diff --git a/packages/apps-config/src/api/spec/kulupu.ts b/packages/apps-config/src/api/spec/kulupu.ts index 076685d2c3..c8c09025d4 100644 --- a/packages/apps-config/src/api/spec/kulupu.ts +++ b/packages/apps-config/src/api/spec/kulupu.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/laminar.ts b/packages/apps-config/src/api/spec/laminar.ts index 2824913685..2227eb0397 100644 --- a/packages/apps-config/src/api/spec/laminar.ts +++ b/packages/apps-config/src/api/spec/laminar.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import * as laminarDefinitions from '@laminar/type-definitions'; import { typesFromDefs } from '../util'; diff --git a/packages/apps-config/src/api/spec/node-template.ts b/packages/apps-config/src/api/spec/node-template.ts index 8556c23f71..d1493c6857 100644 --- a/packages/apps-config/src/api/spec/node-template.ts +++ b/packages/apps-config/src/api/spec/node-template.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/nodle.ts b/packages/apps-config/src/api/spec/nodle.ts index 066edfd0ab..8fdaa9ceb8 100644 --- a/packages/apps-config/src/api/spec/nodle.ts +++ b/packages/apps-config/src/api/spec/nodle.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export default { Amendment: 'Call', diff --git a/packages/apps-config/src/api/spec/plasm.ts b/packages/apps-config/src/api/spec/plasm.ts index 777e1bf6fb..d899b50448 100644 --- a/packages/apps-config/src/api/spec/plasm.ts +++ b/packages/apps-config/src/api/spec/plasm.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export default { AuthorityId: 'AccountId', diff --git a/packages/apps-config/src/api/spec/robonomics.ts b/packages/apps-config/src/api/spec/robonomics.ts index 9d24b163f2..bd2a9aa70f 100644 --- a/packages/apps-config/src/api/spec/robonomics.ts +++ b/packages/apps-config/src/api/spec/robonomics.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/stable-poc.ts b/packages/apps-config/src/api/spec/stable-poc.ts index d88f76d975..3688686469 100644 --- a/packages/apps-config/src/api/spec/stable-poc.ts +++ b/packages/apps-config/src/api/spec/stable-poc.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/stafi.ts b/packages/apps-config/src/api/spec/stafi.ts index 8556c23f71..d1493c6857 100644 --- a/packages/apps-config/src/api/spec/stafi.ts +++ b/packages/apps-config/src/api/spec/stafi.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // structs need to be in order /* eslint-disable sort-keys */ diff --git a/packages/apps-config/src/api/spec/subsocial.ts b/packages/apps-config/src/api/spec/subsocial.ts index 9b345cac28..2fedbbb0f6 100644 --- a/packages/apps-config/src/api/spec/subsocial.ts +++ b/packages/apps-config/src/api/spec/subsocial.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import * as subsocialDefinitions from '@subsocial/types/substrate/interfaces/definitions'; import { typesFromDefs } from '../util'; diff --git a/packages/apps-config/src/api/util.ts b/packages/apps-config/src/api/util.ts index 451b492788..43ffd58b27 100644 --- a/packages/apps-config/src/api/util.ts +++ b/packages/apps-config/src/api/util.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export function typesFromDefs (definitions: Record }>): Record { return Object diff --git a/packages/apps-config/src/extensions/index.ts b/packages/apps-config/src/extensions/index.ts index 82417a2e2e..1d1a9ca939 100644 --- a/packages/apps-config/src/extensions/index.ts +++ b/packages/apps-config/src/extensions/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // it would have been really good to import this from detect, however... not exported type Browser = 'chrome' | 'firefox'; diff --git a/packages/apps-config/src/links/commonwealth.ts b/packages/apps-config/src/links/commonwealth.ts index f7d5d8973d..3a4b31ba54 100644 --- a/packages/apps-config/src/links/commonwealth.ts +++ b/packages/apps-config/src/links/commonwealth.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/apps-config/src/links/index.ts b/packages/apps-config/src/links/index.ts index 43eee79628..6e945d743f 100644 --- a/packages/apps-config/src/links/index.ts +++ b/packages/apps-config/src/links/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ExternalDef } from './types'; diff --git a/packages/apps-config/src/links/polkascan.ts b/packages/apps-config/src/links/polkascan.ts index 2d8902002c..b3f4def45f 100644 --- a/packages/apps-config/src/links/polkascan.ts +++ b/packages/apps-config/src/links/polkascan.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/apps-config/src/links/polkassembly.ts b/packages/apps-config/src/links/polkassembly.ts index da8409af9f..a381594523 100644 --- a/packages/apps-config/src/links/polkassembly.ts +++ b/packages/apps-config/src/links/polkassembly.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/apps-config/src/links/polkastats.ts b/packages/apps-config/src/links/polkastats.ts index 6b4f6745c4..b6c208ffdb 100644 --- a/packages/apps-config/src/links/polkastats.ts +++ b/packages/apps-config/src/links/polkastats.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/apps-config/src/links/subscan.ts b/packages/apps-config/src/links/subscan.ts index 416615b48e..408bf1462c 100644 --- a/packages/apps-config/src/links/subscan.ts +++ b/packages/apps-config/src/links/subscan.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/apps-config/src/links/types.ts b/packages/apps-config/src/links/types.ts index 8a889ca31a..84465847d1 100644 --- a/packages/apps-config/src/links/types.ts +++ b/packages/apps-config/src/links/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/apps-config/src/settings/constants.ts b/packages/apps-config/src/settings/constants.ts index 1a0cdc2021..d571c79e3b 100644 --- a/packages/apps-config/src/settings/constants.ts +++ b/packages/apps-config/src/settings/constants.ts @@ -1,5 +1,4 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export const CUSTOM_ENDPOINT_KEY = 'polkadot-app-custom-endpoints'; diff --git a/packages/apps-config/src/settings/endpoints.ts b/packages/apps-config/src/settings/endpoints.ts index 49ae5acd24..70f21def7f 100644 --- a/packages/apps-config/src/settings/endpoints.ts +++ b/packages/apps-config/src/settings/endpoints.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TFunction } from 'i18next'; import { Option } from './types'; diff --git a/packages/apps-config/src/settings/index.ts b/packages/apps-config/src/settings/index.ts index b87ad91432..ba10fc3846 100644 --- a/packages/apps-config/src/settings/index.ts +++ b/packages/apps-config/src/settings/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import createEndpoints from './endpoints'; import createLanguages from './languages'; diff --git a/packages/apps-config/src/settings/languages.ts b/packages/apps-config/src/settings/languages.ts index e0ea4105f8..6284ece624 100644 --- a/packages/apps-config/src/settings/languages.ts +++ b/packages/apps-config/src/settings/languages.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TFunction } from 'i18next'; import { Option } from './types'; diff --git a/packages/apps-config/src/settings/ss58.ts b/packages/apps-config/src/settings/ss58.ts index 7ae2ba3ac3..236aa8b8cc 100644 --- a/packages/apps-config/src/settings/ss58.ts +++ b/packages/apps-config/src/settings/ss58.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/ui-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TFunction } from 'i18next'; import { Option } from './types'; diff --git a/packages/apps-config/src/settings/types.ts b/packages/apps-config/src/settings/types.ts index 3b8a8431c7..e4bec4a374 100644 --- a/packages/apps-config/src/settings/types.ts +++ b/packages/apps-config/src/settings/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export interface Option { info?: string; diff --git a/packages/apps-config/src/ui/general/index.ts b/packages/apps-config/src/ui/general/index.ts index 08238464cc..258d54d8ab 100644 --- a/packages/apps-config/src/ui/general/index.ts +++ b/packages/apps-config/src/ui/general/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // defaults const defaultColor = undefined; // '#f19135' diff --git a/packages/apps-config/src/ui/identityIcons/index.ts b/packages/apps-config/src/ui/identityIcons/index.ts index c3c3b2c6ee..2806ef59b2 100644 --- a/packages/apps-config/src/ui/identityIcons/index.ts +++ b/packages/apps-config/src/ui/identityIcons/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // overrides based on the actual software node type, valid values are one of - // polkadot, substrate, beachball diff --git a/packages/apps-config/src/ui/index.ts b/packages/apps-config/src/ui/index.ts index d28ddbd824..6d3dda3bb1 100644 --- a/packages/apps-config/src/ui/index.ts +++ b/packages/apps-config/src/ui/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { chainColors, nodeColors } from './general'; import { identityNodes } from './identityIcons'; diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index 245dfae014..d21a6806e7 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-config authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable @typescript-eslint/no-unsafe-assignment */ diff --git a/packages/apps-electron/package.json b/packages/apps-electron/package.json index 286a310d9d..1162c4ea70 100644 --- a/packages/apps-electron/package.json +++ b/packages/apps-electron/package.json @@ -6,7 +6,7 @@ "dependencies": { "@babel/core": "^7.11.6", "@babel/polyfill": "^7.11.5", - "@polkadot/dev": "^0.55.52", + "@polkadot/dev": "^0.55.53", "@polkadot/react-components": "0.59.0-beta.16", "electron-log": "^4.2.4", "electron-updater": "^4.3.5" diff --git a/packages/apps-electron/src/api/account-store-api.ts b/packages/apps-electron/src/api/account-store-api.ts index 0093a5a331..2ec6415679 100644 --- a/packages/apps-electron/src/api/account-store-api.ts +++ b/packages/apps-electron/src/api/account-store-api.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringJson } from '@polkadot/ui-keyring/types'; diff --git a/packages/apps-electron/src/api/electron-main-api.ts b/packages/apps-electron/src/api/electron-main-api.ts index 1d315b794c..ebec8af44b 100644 --- a/packages/apps-electron/src/api/electron-main-api.ts +++ b/packages/apps-electron/src/api/electron-main-api.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountStoreApi } from './account-store-api'; diff --git a/packages/apps-electron/src/api/global-exported-api.ts b/packages/apps-electron/src/api/global-exported-api.ts index ade5235c82..55197f0440 100644 --- a/packages/apps-electron/src/api/global-exported-api.ts +++ b/packages/apps-electron/src/api/global-exported-api.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ElectronMainApi } from './electron-main-api'; diff --git a/packages/apps-electron/src/electron/autoUpdater.ts b/packages/apps-electron/src/electron/autoUpdater.ts index 210c6471db..e1a5b88e0e 100644 --- a/packages/apps-electron/src/electron/autoUpdater.ts +++ b/packages/apps-electron/src/electron/autoUpdater.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppUpdater } from 'electron-updater'; diff --git a/packages/apps-electron/src/electron/contentSecurityPolicy.ts b/packages/apps-electron/src/electron/contentSecurityPolicy.ts index 86db8d4303..6d1fbc83bf 100644 --- a/packages/apps-electron/src/electron/contentSecurityPolicy.ts +++ b/packages/apps-electron/src/electron/contentSecurityPolicy.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { HeadersReceivedResponse, session } from 'electron'; diff --git a/packages/apps-electron/src/electron/index.ts b/packages/apps-electron/src/electron/index.ts index 544adb467b..51a464dc09 100644 --- a/packages/apps-electron/src/electron/index.ts +++ b/packages/apps-electron/src/electron/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { app, shell } from 'electron'; import { registerAccountStoreHandlers } from '../main/account-store'; diff --git a/packages/apps-electron/src/electron/window.ts b/packages/apps-electron/src/electron/window.ts index e62d9091de..6161dfddf8 100644 --- a/packages/apps-electron/src/electron/window.ts +++ b/packages/apps-electron/src/electron/window.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BrowserWindow, screen } from 'electron'; import path from 'path'; diff --git a/packages/apps-electron/src/index.tsx b/packages/apps-electron/src/index.tsx index 279485ce6f..16e81c514f 100644 --- a/packages/apps-electron/src/index.tsx +++ b/packages/apps-electron/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // setup these right at front import '@polkadot/apps/initSettings'; diff --git a/packages/apps-electron/src/main/account-store.spec.ts b/packages/apps-electron/src/main/account-store.spec.ts index d6f754ef59..aae3d090b0 100644 --- a/packages/apps-electron/src/main/account-store.spec.ts +++ b/packages/apps-electron/src/main/account-store.spec.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { FileStore } from '@polkadot/ui-keyring/stores'; import { accountStoreIpcHandler } from './account-store'; diff --git a/packages/apps-electron/src/main/account-store.ts b/packages/apps-electron/src/main/account-store.ts index d842b52092..3169ec686f 100644 --- a/packages/apps-electron/src/main/account-store.ts +++ b/packages/apps-electron/src/main/account-store.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { app } from 'electron'; import { FileStore } from '@polkadot/ui-keyring/stores'; diff --git a/packages/apps-electron/src/main/ipc-main-handler.ts b/packages/apps-electron/src/main/ipc-main-handler.ts index 9b752118b6..b2fe0d945c 100644 --- a/packages/apps-electron/src/main/ipc-main-handler.ts +++ b/packages/apps-electron/src/main/ipc-main-handler.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export type IpcMainHandler = { [channel: string]: (...args: any[]) => Promise | any diff --git a/packages/apps-electron/src/main/register-ipc-handler.ts b/packages/apps-electron/src/main/register-ipc-handler.ts index 938657bf72..676ec6fef4 100644 --- a/packages/apps-electron/src/main/register-ipc-handler.ts +++ b/packages/apps-electron/src/main/register-ipc-handler.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ipcMain } from 'electron'; import { IpcMainHandler } from './ipc-main-handler'; diff --git a/packages/apps-electron/src/preload.ts b/packages/apps-electron/src/preload.ts index cfa75dd27c..d8c108e8a7 100644 --- a/packages/apps-electron/src/preload.ts +++ b/packages/apps-electron/src/preload.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringJson } from '@polkadot/ui-keyring/types'; import { contextBridge, ipcRenderer } from 'electron'; diff --git a/packages/apps-electron/src/renderer/remote-electron-store.spec.ts b/packages/apps-electron/src/renderer/remote-electron-store.spec.ts index c546c67cef..6374fd6080 100644 --- a/packages/apps-electron/src/renderer/remote-electron-store.spec.ts +++ b/packages/apps-electron/src/renderer/remote-electron-store.spec.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { RemoteElectronStore } from './remote-electron-store'; diff --git a/packages/apps-electron/src/renderer/remote-electron-store.ts b/packages/apps-electron/src/renderer/remote-electron-store.ts index d0e9a9d2fb..4de3e4f3d5 100644 --- a/packages/apps-electron/src/renderer/remote-electron-store.ts +++ b/packages/apps-electron/src/renderer/remote-electron-store.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringJson, KeyringStore } from '@polkadot/ui-keyring/types'; import { AccountStoreApi } from '../api/account-store-api'; diff --git a/packages/apps-electron/webpack.main.config.js b/packages/apps-electron/webpack.main.config.js index 35f73f488f..c061628742 100644 --- a/packages/apps-electron/webpack.main.config.js +++ b/packages/apps-electron/webpack.main.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable camelcase */ diff --git a/packages/apps-electron/webpack.renderer.config.js b/packages/apps-electron/webpack.renderer.config.js index 1e68c52270..0faac63f33 100644 --- a/packages/apps-electron/webpack.renderer.config.js +++ b/packages/apps-electron/webpack.renderer.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable camelcase */ diff --git a/packages/apps-routing/src/accounts.ts b/packages/apps-routing/src/accounts.ts index 8b2f135378..2ebd4955a9 100644 --- a/packages/apps-routing/src/accounts.ts +++ b/packages/apps-routing/src/accounts.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/addresses.ts b/packages/apps-routing/src/addresses.ts index b0950389c4..e517ac7865 100644 --- a/packages/apps-routing/src/addresses.ts +++ b/packages/apps-routing/src/addresses.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/calendar.ts b/packages/apps-routing/src/calendar.ts index e27ecbd84b..4e12b804e1 100644 --- a/packages/apps-routing/src/calendar.ts +++ b/packages/apps-routing/src/calendar.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/claims.ts b/packages/apps-routing/src/claims.ts index c1ac3f480a..81c1675e55 100644 --- a/packages/apps-routing/src/claims.ts +++ b/packages/apps-routing/src/claims.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/contracts.ts b/packages/apps-routing/src/contracts.ts index 504f7b2c7b..d9ecd12451 100644 --- a/packages/apps-routing/src/contracts.ts +++ b/packages/apps-routing/src/contracts.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/council.ts b/packages/apps-routing/src/council.ts index 4a00089b2a..b3b49fe263 100644 --- a/packages/apps-routing/src/council.ts +++ b/packages/apps-routing/src/council.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/dashboard.ts b/packages/apps-routing/src/dashboard.ts index a68bf7ff00..a5ce2c8dc6 100644 --- a/packages/apps-routing/src/dashboard.ts +++ b/packages/apps-routing/src/dashboard.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/democracy.ts b/packages/apps-routing/src/democracy.ts index 7c10fb1cda..c1c3bab2a9 100644 --- a/packages/apps-routing/src/democracy.ts +++ b/packages/apps-routing/src/democracy.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/explorer.ts b/packages/apps-routing/src/explorer.ts index e14231c218..0e4d98231a 100644 --- a/packages/apps-routing/src/explorer.ts +++ b/packages/apps-routing/src/explorer.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/extrinsics.ts b/packages/apps-routing/src/extrinsics.ts index defdc9567f..a9052f81b6 100644 --- a/packages/apps-routing/src/extrinsics.ts +++ b/packages/apps-routing/src/extrinsics.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/generic-asset.ts b/packages/apps-routing/src/generic-asset.ts index dcf14752a3..2c9e85d3c1 100644 --- a/packages/apps-routing/src/generic-asset.ts +++ b/packages/apps-routing/src/generic-asset.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/index.ts b/packages/apps-routing/src/index.ts index 9b7ce16bb2..af6e1df171 100644 --- a/packages/apps-routing/src/index.ts +++ b/packages/apps-routing/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Routes } from './types'; diff --git a/packages/apps-routing/src/js.ts b/packages/apps-routing/src/js.ts index 0ed7d4c527..5402cc999c 100644 --- a/packages/apps-routing/src/js.ts +++ b/packages/apps-routing/src/js.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/parachains.ts b/packages/apps-routing/src/parachains.ts index a35e5fcfe6..69ca52df34 100644 --- a/packages/apps-routing/src/parachains.ts +++ b/packages/apps-routing/src/parachains.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/poll.ts b/packages/apps-routing/src/poll.ts index 9575b83133..ba7ba1598b 100644 --- a/packages/apps-routing/src/poll.ts +++ b/packages/apps-routing/src/poll.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/rpc.ts b/packages/apps-routing/src/rpc.ts index e97914935f..a98c5484a5 100644 --- a/packages/apps-routing/src/rpc.ts +++ b/packages/apps-routing/src/rpc.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/settings.ts b/packages/apps-routing/src/settings.ts index cc31362c46..6143026134 100644 --- a/packages/apps-routing/src/settings.ts +++ b/packages/apps-routing/src/settings.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/signing.ts b/packages/apps-routing/src/signing.ts index cbd52dd6e1..cf17f5129a 100644 --- a/packages/apps-routing/src/signing.ts +++ b/packages/apps-routing/src/signing.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/society.ts b/packages/apps-routing/src/society.ts index 4022f57edf..4c8cbffadc 100644 --- a/packages/apps-routing/src/society.ts +++ b/packages/apps-routing/src/society.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/staking.ts b/packages/apps-routing/src/staking.ts index a136e2b419..ae0ac5852f 100644 --- a/packages/apps-routing/src/staking.ts +++ b/packages/apps-routing/src/staking.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/storage.ts b/packages/apps-routing/src/storage.ts index 0d3a9df984..319a11d6a5 100644 --- a/packages/apps-routing/src/storage.ts +++ b/packages/apps-routing/src/storage.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/sudo.ts b/packages/apps-routing/src/sudo.ts index 65f1df4899..07ee18d504 100644 --- a/packages/apps-routing/src/sudo.ts +++ b/packages/apps-routing/src/sudo.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/techcomm.ts b/packages/apps-routing/src/techcomm.ts index 6b42e077ea..a00761c889 100644 --- a/packages/apps-routing/src/techcomm.ts +++ b/packages/apps-routing/src/techcomm.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/transfer.ts b/packages/apps-routing/src/transfer.ts index d3d37cd52b..28138eca63 100644 --- a/packages/apps-routing/src/transfer.ts +++ b/packages/apps-routing/src/transfer.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/treasury.ts b/packages/apps-routing/src/treasury.ts index d07338a28f..7a4f83a438 100644 --- a/packages/apps-routing/src/treasury.ts +++ b/packages/apps-routing/src/treasury.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from './types'; diff --git a/packages/apps-routing/src/types.ts b/packages/apps-routing/src/types.ts index 29e40bd015..2ac917e3bd 100644 --- a/packages/apps-routing/src/types.ts +++ b/packages/apps-routing/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps-routing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; import { AppProps, BareProps } from '@polkadot/react-components/types'; diff --git a/packages/apps/package.json b/packages/apps/package.json index 28417e5d55..9c3a185859 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -16,7 +16,7 @@ "@babel/core": "^7.11.6", "@babel/polyfill": "^7.11.5", "@babel/runtime": "^7.11.2", - "@polkadot/dev": "^0.55.52", + "@polkadot/dev": "^0.55.53", "@polkadot/react-components": "0.59.0-beta.16", "@polkadot/react-signer": "0.59.0-beta.16", "punycode": "^2.1.1", diff --git a/packages/apps/src/Apps.tsx b/packages/apps/src/Apps.tsx index ed02e6171f..11a06882e6 100644 --- a/packages/apps/src/Apps.tsx +++ b/packages/apps/src/Apps.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BareProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/apps/src/Content/NotFound.tsx b/packages/apps/src/Content/NotFound.tsx index 369c2c7e7f..a912562fcf 100644 --- a/packages/apps/src/Content/NotFound.tsx +++ b/packages/apps/src/Content/NotFound.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { RouteProps } from '@polkadot/apps-routing/types'; diff --git a/packages/apps/src/Content/Status.tsx b/packages/apps/src/Content/Status.tsx index 534d8dc67a..1a7ea30a10 100644 --- a/packages/apps/src/Content/Status.tsx +++ b/packages/apps/src/Content/Status.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EventRecord } from '@polkadot/types/interfaces'; import { KeyringOptions } from '@polkadot/ui-keyring/options/types'; diff --git a/packages/apps/src/Content/index.tsx b/packages/apps/src/Content/index.tsx index 1325ad6bd6..bf4410b322 100644 --- a/packages/apps/src/Content/index.tsx +++ b/packages/apps/src/Content/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from '@polkadot/apps-routing/types'; diff --git a/packages/apps/src/Endpoints/Group.tsx b/packages/apps/src/Endpoints/Group.tsx index d6f0a83f59..61eb42c25a 100644 --- a/packages/apps/src/Endpoints/Group.tsx +++ b/packages/apps/src/Endpoints/Group.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Group } from './types'; diff --git a/packages/apps/src/Endpoints/Network.tsx b/packages/apps/src/Endpoints/Network.tsx index e80b5a5711..d0c55e6a10 100644 --- a/packages/apps/src/Endpoints/Network.tsx +++ b/packages/apps/src/Endpoints/Network.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Network } from './types'; diff --git a/packages/apps/src/Endpoints/Url.tsx b/packages/apps/src/Endpoints/Url.tsx index 9a56283402..ee3ad325e5 100644 --- a/packages/apps/src/Endpoints/Url.tsx +++ b/packages/apps/src/Endpoints/Url.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/apps/src/Endpoints/index.tsx b/packages/apps/src/Endpoints/index.tsx index 0f8f286e4d..32228e065c 100644 --- a/packages/apps/src/Endpoints/index.tsx +++ b/packages/apps/src/Endpoints/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import type { LinkOption } from '@polkadot/apps-config/settings/endpoints'; import { Group } from './types'; diff --git a/packages/apps/src/Endpoints/types.ts b/packages/apps/src/Endpoints/types.ts index 5c5e33336c..8305d810de 100644 --- a/packages/apps/src/Endpoints/types.ts +++ b/packages/apps/src/Endpoints/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/apps/src/Menu/ChainInfo.tsx b/packages/apps/src/Menu/ChainInfo.tsx index 0512564bdb..be9982908f 100644 --- a/packages/apps/src/Menu/ChainInfo.tsx +++ b/packages/apps/src/Menu/ChainInfo.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { RuntimeVersion } from '@polkadot/types/interfaces'; diff --git a/packages/apps/src/Menu/Grouping.tsx b/packages/apps/src/Menu/Grouping.tsx index c78c6fd0c8..884e066a68 100644 --- a/packages/apps/src/Menu/Grouping.tsx +++ b/packages/apps/src/Menu/Grouping.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Group } from './types'; diff --git a/packages/apps/src/Menu/Item.tsx b/packages/apps/src/Menu/Item.tsx index df30b85cb3..5c6c43c34a 100644 --- a/packages/apps/src/Menu/Item.tsx +++ b/packages/apps/src/Menu/Item.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ItemRoute } from './types'; diff --git a/packages/apps/src/Menu/NodeInfo.tsx b/packages/apps/src/Menu/NodeInfo.tsx index 02082189d1..edad74dafc 100644 --- a/packages/apps/src/Menu/NodeInfo.tsx +++ b/packages/apps/src/Menu/NodeInfo.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BareProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/apps/src/Menu/index.tsx b/packages/apps/src/Menu/index.tsx index b12c079f0f..5ea550a6f7 100644 --- a/packages/apps/src/Menu/index.tsx +++ b/packages/apps/src/Menu/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route, Routes } from '@polkadot/apps-routing/types'; import { ApiProps } from '@polkadot/react-api/types'; diff --git a/packages/apps/src/Menu/types.tsx b/packages/apps/src/Menu/types.tsx index a414b49b71..d3577c1f70 100644 --- a/packages/apps/src/Menu/types.tsx +++ b/packages/apps/src/Menu/types.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; import { Routes } from '@polkadot/apps-routing/types'; diff --git a/packages/apps/src/TopBar.tsx b/packages/apps/src/TopBar.tsx index a6845160ce..fa07cda7c3 100644 --- a/packages/apps/src/TopBar.tsx +++ b/packages/apps/src/TopBar.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // Unused atm, experiment as a replacement for NodeInfo on the SideBar diff --git a/packages/apps/src/WarmUp.tsx b/packages/apps/src/WarmUp.tsx index d33b6c89cd..14817c0800 100644 --- a/packages/apps/src/WarmUp.tsx +++ b/packages/apps/src/WarmUp.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useEffect, useState } from 'react'; import { useApi, useCall } from '@polkadot/react-hooks'; diff --git a/packages/apps/src/WindowDimensions.tsx b/packages/apps/src/WindowDimensions.tsx index 339a4f8aab..bfa36fc4c9 100644 --- a/packages/apps/src/WindowDimensions.tsx +++ b/packages/apps/src/WindowDimensions.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // Adapted from https://hackernoon.com/simplifying-responsive-layouts-with-react-hooks-19db73893a7a diff --git a/packages/apps/src/endpoint.ts b/packages/apps/src/endpoint.ts index 1bacd58763..e1d88cb408 100644 --- a/packages/apps/src/endpoint.ts +++ b/packages/apps/src/endpoint.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiPromise } from '@polkadot/api'; import { isFunction } from '@polkadot/util'; diff --git a/packages/apps/src/index.tsx b/packages/apps/src/index.tsx index f595ef795c..48e9226090 100644 --- a/packages/apps/src/index.tsx +++ b/packages/apps/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // setup these right at front import './initSettings'; diff --git a/packages/apps/src/initSettings.ts b/packages/apps/src/initSettings.ts index a2a98395ea..04c300e297 100644 --- a/packages/apps/src/initSettings.ts +++ b/packages/apps/src/initSettings.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import queryString from 'query-string'; import store from 'store'; diff --git a/packages/apps/src/overlays/Base.tsx b/packages/apps/src/overlays/Base.tsx index 09cb09da2b..f9f178ca56 100644 --- a/packages/apps/src/overlays/Base.tsx +++ b/packages/apps/src/overlays/Base.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/apps/src/overlays/Connecting.tsx b/packages/apps/src/overlays/Connecting.tsx index 3bcd1a1b81..2c258b25bb 100644 --- a/packages/apps/src/overlays/Connecting.tsx +++ b/packages/apps/src/overlays/Connecting.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi } from '@polkadot/react-hooks'; diff --git a/packages/apps/src/translate.ts b/packages/apps/src/translate.ts index c016d62e8b..5e3e299abe 100644 --- a/packages/apps/src/translate.ts +++ b/packages/apps/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/apps/src/wp-gif.d.ts b/packages/apps/src/wp-gif.d.ts index c036fb8490..1e8f9aa86f 100644 --- a/packages/apps/src/wp-gif.d.ts +++ b/packages/apps/src/wp-gif.d.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 declare module '*.gif' { // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/packages/apps/src/wp-md.d.ts b/packages/apps/src/wp-md.d.ts index c0c194f852..ed78774e10 100644 --- a/packages/apps/src/wp-md.d.ts +++ b/packages/apps/src/wp-md.d.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 declare module '*.md' { const content: any; diff --git a/packages/apps/src/wp-png.d.ts b/packages/apps/src/wp-png.d.ts index 4d9bc55bc3..183ca4a1b7 100644 --- a/packages/apps/src/wp-png.d.ts +++ b/packages/apps/src/wp-png.d.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 declare module '*.png' { // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/packages/apps/src/wp-svg.d.ts b/packages/apps/src/wp-svg.d.ts index 9eb2438d3e..94f7fddaa0 100644 --- a/packages/apps/src/wp-svg.d.ts +++ b/packages/apps/src/wp-svg.d.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 declare module '*.svg' { const content: any; diff --git a/packages/apps/webpack.base.config.js b/packages/apps/webpack.base.config.js index 39ffb504d7..f4c95656ae 100644 --- a/packages/apps/webpack.base.config.js +++ b/packages/apps/webpack.base.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable camelcase */ diff --git a/packages/apps/webpack.config.js b/packages/apps/webpack.config.js index afea082bfc..6d62999f9f 100644 --- a/packages/apps/webpack.config.js +++ b/packages/apps/webpack.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const fs = require('fs'); const HtmlWebpackPlugin = require('html-webpack-plugin'); diff --git a/packages/page-accounts/src/Accounts/Account.tsx b/packages/page-accounts/src/Accounts/Account.tsx index 97cdf50537..ebbd2164f9 100644 --- a/packages/page-accounts/src/Accounts/Account.tsx +++ b/packages/page-accounts/src/Accounts/Account.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { DeriveBalancesAll, DeriveDemocracyLock } from '@polkadot/api-derive/types'; diff --git a/packages/page-accounts/src/Accounts/Banner.tsx b/packages/page-accounts/src/Accounts/Banner.tsx index 54c91179c6..5e5216f16a 100644 --- a/packages/page-accounts/src/Accounts/Banner.tsx +++ b/packages/page-accounts/src/Accounts/Banner.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/page-accounts/src/Accounts/BannerClaims.tsx b/packages/page-accounts/src/Accounts/BannerClaims.tsx index d6f0d60a76..7038cc3594 100644 --- a/packages/page-accounts/src/Accounts/BannerClaims.tsx +++ b/packages/page-accounts/src/Accounts/BannerClaims.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import useClaimCounter from '@polkadot/app-claims/useCounter'; // exceptionally CRAP idea diff --git a/packages/page-accounts/src/Accounts/BannerExtension.tsx b/packages/page-accounts/src/Accounts/BannerExtension.tsx index eeff08b22b..8cff3250bb 100644 --- a/packages/page-accounts/src/Accounts/BannerExtension.tsx +++ b/packages/page-accounts/src/Accounts/BannerExtension.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { detect } from 'detect-browser'; import React from 'react'; diff --git a/packages/page-accounts/src/Accounts/index.tsx b/packages/page-accounts/src/Accounts/index.tsx index 14532c7a36..180ec9b87d 100644 --- a/packages/page-accounts/src/Accounts/index.tsx +++ b/packages/page-accounts/src/Accounts/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { AccountId, ProxyDefinition, ProxyType, Voting } from '@polkadot/types/interfaces'; diff --git a/packages/page-accounts/src/Accounts/types.ts b/packages/page-accounts/src/Accounts/types.ts index 23e21d9f41..b5d7c0b2ae 100644 --- a/packages/page-accounts/src/Accounts/types.ts +++ b/packages/page-accounts/src/Accounts/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { KeyringAddress } from '@polkadot/ui-keyring/types'; diff --git a/packages/page-accounts/src/Accounts/useKnownAddresses.ts b/packages/page-accounts/src/Accounts/useKnownAddresses.ts index dcdfbb7316..3a6d5210b0 100644 --- a/packages/page-accounts/src/Accounts/useKnownAddresses.ts +++ b/packages/page-accounts/src/Accounts/useKnownAddresses.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useMemo } from 'react'; import { useAccounts, useAddresses } from '@polkadot/react-hooks'; diff --git a/packages/page-accounts/src/Accounts/useMultisigApprovals.ts b/packages/page-accounts/src/Accounts/useMultisigApprovals.ts index 27ae336842..86ec28411e 100644 --- a/packages/page-accounts/src/Accounts/useMultisigApprovals.ts +++ b/packages/page-accounts/src/Accounts/useMultisigApprovals.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { H256, Multisig } from '@polkadot/types/interfaces'; diff --git a/packages/page-accounts/src/Accounts/useProxies.ts b/packages/page-accounts/src/Accounts/useProxies.ts index 4b73bd6b1c..ae2ce60e60 100644 --- a/packages/page-accounts/src/Accounts/useProxies.ts +++ b/packages/page-accounts/src/Accounts/useProxies.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, BalanceOf, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces'; import { ITuple } from '@polkadot/types/types'; diff --git a/packages/page-accounts/src/CreateAccount.spec.tsx b/packages/page-accounts/src/CreateAccount.spec.tsx index 4b222d9d89..3d3b141bca 100644 --- a/packages/page-accounts/src/CreateAccount.spec.tsx +++ b/packages/page-accounts/src/CreateAccount.spec.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import AccountsApp from '@polkadot/app-accounts'; import { MemoryStore } from '@polkadot/app-accounts/test-support/MemoryStore'; diff --git a/packages/page-accounts/src/Sidebar/Balances.tsx b/packages/page-accounts/src/Sidebar/Balances.tsx index 13fc07c2c6..032c9197e0 100644 --- a/packages/page-accounts/src/Sidebar/Balances.tsx +++ b/packages/page-accounts/src/Sidebar/Balances.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/page-accounts/src/Sidebar/Flags.tsx b/packages/page-accounts/src/Sidebar/Flags.tsx index c46dfd37ec..6259e583f6 100644 --- a/packages/page-accounts/src/Sidebar/Flags.tsx +++ b/packages/page-accounts/src/Sidebar/Flags.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AddressFlags } from '@polkadot/react-hooks/types'; diff --git a/packages/page-accounts/src/Sidebar/Identity.tsx b/packages/page-accounts/src/Sidebar/Identity.tsx index c323b1a1bb..55f314e7b8 100644 --- a/packages/page-accounts/src/Sidebar/Identity.tsx +++ b/packages/page-accounts/src/Sidebar/Identity.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AddressIdentity } from '@polkadot/react-hooks/types'; import { AccountId, BalanceOf } from '@polkadot/types/interfaces'; diff --git a/packages/page-accounts/src/Sidebar/Multisig.tsx b/packages/page-accounts/src/Sidebar/Multisig.tsx index a269ebf417..778e2c7a92 100644 --- a/packages/page-accounts/src/Sidebar/Multisig.tsx +++ b/packages/page-accounts/src/Sidebar/Multisig.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringJson$Meta } from '@polkadot/ui-keyring/types'; diff --git a/packages/page-accounts/src/Sidebar/RegistrarJudgement.tsx b/packages/page-accounts/src/Sidebar/RegistrarJudgement.tsx index d16d331513..00fd8da94f 100644 --- a/packages/page-accounts/src/Sidebar/RegistrarJudgement.tsx +++ b/packages/page-accounts/src/Sidebar/RegistrarJudgement.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useEffect, useState } from 'react'; import { Dropdown, Input, InputAddress, Modal, TxButton } from '@polkadot/react-components'; diff --git a/packages/page-accounts/src/Sidebar/Sidebar.tsx b/packages/page-accounts/src/Sidebar/Sidebar.tsx index 835c336b8a..32bae928a3 100644 --- a/packages/page-accounts/src/Sidebar/Sidebar.tsx +++ b/packages/page-accounts/src/Sidebar/Sidebar.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/page-accounts/src/Sidebar/index.tsx b/packages/page-accounts/src/Sidebar/index.tsx index fa97717ef5..fc614ee8ab 100644 --- a/packages/page-accounts/src/Sidebar/index.tsx +++ b/packages/page-accounts/src/Sidebar/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StringOrNull, VoidFn } from '@polkadot/react-components/types'; diff --git a/packages/page-accounts/src/Vanity/Match.tsx b/packages/page-accounts/src/Vanity/Match.tsx index d9ab2b213c..6d849bc5e1 100644 --- a/packages/page-accounts/src/Vanity/Match.tsx +++ b/packages/page-accounts/src/Vanity/Match.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useMemo } from 'react'; import styled from 'styled-components'; diff --git a/packages/page-accounts/src/Vanity/bipWorker.ts b/packages/page-accounts/src/Vanity/bipWorker.ts index 5333c4c955..193778c4f3 100644 --- a/packages/page-accounts/src/Vanity/bipWorker.ts +++ b/packages/page-accounts/src/Vanity/bipWorker.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { cryptoWaitReady, mnemonicGenerate, mnemonicToMiniSecret, naclKeypairFromSeed, schnorrkelKeypairFromSeed } from '@polkadot/util-crypto'; diff --git a/packages/page-accounts/src/Vanity/index.tsx b/packages/page-accounts/src/Vanity/index.tsx index 46352bd92f..2e502f704f 100644 --- a/packages/page-accounts/src/Vanity/index.tsx +++ b/packages/page-accounts/src/Vanity/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { KeypairType } from '@polkadot/util-crypto/types'; diff --git a/packages/page-accounts/src/index.tsx b/packages/page-accounts/src/index.tsx index b4cb425a9b..76ff8172b0 100644 --- a/packages/page-accounts/src/index.tsx +++ b/packages/page-accounts/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-accounts/src/modals/Backup.tsx b/packages/page-accounts/src/modals/Backup.tsx index d9b1bc05dc..60f751e3e4 100644 --- a/packages/page-accounts/src/modals/Backup.tsx +++ b/packages/page-accounts/src/modals/Backup.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import FileSaver from 'file-saver'; import React, { useCallback, useState } from 'react'; diff --git a/packages/page-accounts/src/modals/ChangePass.tsx b/packages/page-accounts/src/modals/ChangePass.tsx index 24631fde1a..46d951dd2b 100644 --- a/packages/page-accounts/src/modals/ChangePass.tsx +++ b/packages/page-accounts/src/modals/ChangePass.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import { AddressRow, Button, Modal, Password, PasswordStrength } from '@polkadot/react-components'; diff --git a/packages/page-accounts/src/modals/Create.tsx b/packages/page-accounts/src/modals/Create.tsx index 3a5e6ba3bf..2ff63b2d12 100644 --- a/packages/page-accounts/src/modals/Create.tsx +++ b/packages/page-accounts/src/modals/Create.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { CreateResult } from '@polkadot/ui-keyring/types'; diff --git a/packages/page-accounts/src/modals/CreateConfirmation.tsx b/packages/page-accounts/src/modals/CreateConfirmation.tsx index 22567a2251..cae9ca44cc 100644 --- a/packages/page-accounts/src/modals/CreateConfirmation.tsx +++ b/packages/page-accounts/src/modals/CreateConfirmation.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeypairType } from '@polkadot/util-crypto/types'; diff --git a/packages/page-accounts/src/modals/Delegate.tsx b/packages/page-accounts/src/modals/Delegate.tsx index 7ca1208d15..26f90796f2 100644 --- a/packages/page-accounts/src/modals/Delegate.tsx +++ b/packages/page-accounts/src/modals/Delegate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AmountValidateState } from '../Accounts/types'; diff --git a/packages/page-accounts/src/modals/Derive.tsx b/packages/page-accounts/src/modals/Derive.tsx index 95e030213e..ceaa198dbf 100644 --- a/packages/page-accounts/src/modals/Derive.tsx +++ b/packages/page-accounts/src/modals/Derive.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringPair } from '@polkadot/keyring/types'; import { ActionStatus } from '@polkadot/react-components/Status/types'; diff --git a/packages/page-accounts/src/modals/IdentityMain.tsx b/packages/page-accounts/src/modals/IdentityMain.tsx index c086ab3756..c9d32891c9 100644 --- a/packages/page-accounts/src/modals/IdentityMain.tsx +++ b/packages/page-accounts/src/modals/IdentityMain.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Registration } from '@polkadot/types/interfaces'; diff --git a/packages/page-accounts/src/modals/IdentitySub.tsx b/packages/page-accounts/src/modals/IdentitySub.tsx index 1258f49c78..0356193fe0 100644 --- a/packages/page-accounts/src/modals/IdentitySub.tsx +++ b/packages/page-accounts/src/modals/IdentitySub.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Balance } from '@polkadot/types/interfaces'; import { ITuple } from '@polkadot/types/types'; diff --git a/packages/page-accounts/src/modals/Import.tsx b/packages/page-accounts/src/modals/Import.tsx index 55f996552f..eb28779921 100644 --- a/packages/page-accounts/src/modals/Import.tsx +++ b/packages/page-accounts/src/modals/Import.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringPair$Json } from '@polkadot/keyring/types'; import { ActionStatus } from '@polkadot/react-components/Status/types'; diff --git a/packages/page-accounts/src/modals/InputValidateAmount.tsx b/packages/page-accounts/src/modals/InputValidateAmount.tsx index 9978190057..d68800882d 100644 --- a/packages/page-accounts/src/modals/InputValidateAmount.tsx +++ b/packages/page-accounts/src/modals/InputValidateAmount.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AmountValidateState } from '../Accounts/types'; diff --git a/packages/page-accounts/src/modals/Ledger.tsx b/packages/page-accounts/src/modals/Ledger.tsx index 9208700a3c..708d539089 100644 --- a/packages/page-accounts/src/modals/Ledger.tsx +++ b/packages/page-accounts/src/modals/Ledger.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useRef, useState } from 'react'; import keyring from '@polkadot/ui-keyring'; diff --git a/packages/page-accounts/src/modals/MultisigApprove.tsx b/packages/page-accounts/src/modals/MultisigApprove.tsx index b2bb628d7a..f4f8f9f445 100644 --- a/packages/page-accounts/src/modals/MultisigApprove.tsx +++ b/packages/page-accounts/src/modals/MultisigApprove.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Call, H256, Multisig } from '@polkadot/types/interfaces'; import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-accounts/src/modals/MultisigCreate.tsx b/packages/page-accounts/src/modals/MultisigCreate.tsx index 7816d27347..ba9b274227 100644 --- a/packages/page-accounts/src/modals/MultisigCreate.tsx +++ b/packages/page-accounts/src/modals/MultisigCreate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { ModalProps } from '../types'; diff --git a/packages/page-accounts/src/modals/PasswordInput.tsx b/packages/page-accounts/src/modals/PasswordInput.tsx index 5ed4f6d2bc..f1533258d8 100644 --- a/packages/page-accounts/src/modals/PasswordInput.tsx +++ b/packages/page-accounts/src/modals/PasswordInput.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useEffect, useState } from 'react'; import { Modal, Password, PasswordStrength } from '@polkadot/react-components'; diff --git a/packages/page-accounts/src/modals/ProxiedAdd.tsx b/packages/page-accounts/src/modals/ProxiedAdd.tsx index 3a9de479f3..4715d13b48 100644 --- a/packages/page-accounts/src/modals/ProxiedAdd.tsx +++ b/packages/page-accounts/src/modals/ProxiedAdd.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { ModalProps } from '../types'; diff --git a/packages/page-accounts/src/modals/ProxyOverview.tsx b/packages/page-accounts/src/modals/ProxyOverview.tsx index b3cd1412b8..fa246e4874 100644 --- a/packages/page-accounts/src/modals/ProxyOverview.tsx +++ b/packages/page-accounts/src/modals/ProxyOverview.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiPromise } from '@polkadot/api'; import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-accounts/src/modals/Qr.tsx b/packages/page-accounts/src/modals/Qr.tsx index 4a5b884938..1eb9608300 100644 --- a/packages/page-accounts/src/modals/Qr.tsx +++ b/packages/page-accounts/src/modals/Qr.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { ModalProps } from '../types'; diff --git a/packages/page-accounts/src/modals/RecoverAccount.tsx b/packages/page-accounts/src/modals/RecoverAccount.tsx index bbc3314c12..ceafa15666 100644 --- a/packages/page-accounts/src/modals/RecoverAccount.tsx +++ b/packages/page-accounts/src/modals/RecoverAccount.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useState } from 'react'; import { InputAddress, Modal, TxButton } from '@polkadot/react-components'; diff --git a/packages/page-accounts/src/modals/RecoverSetup.tsx b/packages/page-accounts/src/modals/RecoverSetup.tsx index 455a6dd072..24b3a6c30a 100644 --- a/packages/page-accounts/src/modals/RecoverSetup.tsx +++ b/packages/page-accounts/src/modals/RecoverSetup.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useState } from 'react'; diff --git a/packages/page-accounts/src/modals/Transfer.tsx b/packages/page-accounts/src/modals/Transfer.tsx index 7b2375bb6e..3fe669c605 100644 --- a/packages/page-accounts/src/modals/Transfer.tsx +++ b/packages/page-accounts/src/modals/Transfer.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; diff --git a/packages/page-accounts/src/modals/Undelegate.tsx b/packages/page-accounts/src/modals/Undelegate.tsx index 4195eea738..ba1472a523 100644 --- a/packages/page-accounts/src/modals/Undelegate.tsx +++ b/packages/page-accounts/src/modals/Undelegate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { InputAddress, Modal, TxButton } from '@polkadot/react-components'; diff --git a/packages/page-accounts/src/test-support/MemoryStore.ts b/packages/page-accounts/src/test-support/MemoryStore.ts index 121556c975..b0907f8ce5 100644 --- a/packages/page-accounts/src/test-support/MemoryStore.ts +++ b/packages/page-accounts/src/test-support/MemoryStore.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringJson, KeyringStore } from '@polkadot/ui-keyring/types'; diff --git a/packages/page-accounts/src/translate.ts b/packages/page-accounts/src/translate.ts index 829f2fa5ea..d51050068e 100644 --- a/packages/page-accounts/src/translate.ts +++ b/packages/page-accounts/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-accounts/src/types.ts b/packages/page-accounts/src/types.ts index bfab1a9140..1d5674c08b 100644 --- a/packages/page-accounts/src/types.ts +++ b/packages/page-accounts/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { Balance, Conviction } from '@polkadot/types/interfaces'; diff --git a/packages/page-accounts/src/useCounter.ts b/packages/page-accounts/src/useCounter.ts index bfe5fe8bdc..ae9f253d09 100644 --- a/packages/page-accounts/src/useCounter.ts +++ b/packages/page-accounts/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useAccounts } from '@polkadot/react-hooks'; diff --git a/packages/page-accounts/src/util.tsx b/packages/page-accounts/src/util.tsx index 8dc9b93aa5..3ca2cc2b2d 100644 --- a/packages/page-accounts/src/util.tsx +++ b/packages/page-accounts/src/util.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SortedAccount } from './types'; diff --git a/packages/page-addresses/src/Contacts/Address.tsx b/packages/page-addresses/src/Contacts/Address.tsx index 0c0be065ed..e71a0290e5 100644 --- a/packages/page-addresses/src/Contacts/Address.tsx +++ b/packages/page-addresses/src/Contacts/Address.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-addresses authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveAccountInfo, DeriveBalancesAll } from '@polkadot/api-derive/types'; import { KeyringAddress } from '@polkadot/ui-keyring/types'; diff --git a/packages/page-addresses/src/Contacts/index.tsx b/packages/page-addresses/src/Contacts/index.tsx index 88cc94f470..4ad14ef520 100644 --- a/packages/page-addresses/src/Contacts/index.tsx +++ b/packages/page-addresses/src/Contacts/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-addresses authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentProps as Props } from '../types'; diff --git a/packages/page-addresses/src/index.tsx b/packages/page-addresses/src/index.tsx index cfdb064a0f..8ef77ba888 100644 --- a/packages/page-addresses/src/index.tsx +++ b/packages/page-addresses/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-addresses authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-addresses/src/modals/Create.tsx b/packages/page-addresses/src/modals/Create.tsx index 914ff56af6..a602d65929 100644 --- a/packages/page-addresses/src/modals/Create.tsx +++ b/packages/page-addresses/src/modals/Create.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-addresses authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveAccountInfo } from '@polkadot/api-derive/types'; import { ActionStatus } from '@polkadot/react-components/Status/types'; diff --git a/packages/page-addresses/src/translate.ts b/packages/page-addresses/src/translate.ts index 2f62ca28a7..953b1717e7 100644 --- a/packages/page-addresses/src/translate.ts +++ b/packages/page-addresses/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-addresses authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-addresses/src/types.ts b/packages/page-addresses/src/types.ts index 053bfa22c3..dbdb3814c4 100644 --- a/packages/page-addresses/src/types.ts +++ b/packages/page-addresses/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-addresses authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; import { Balance, Conviction } from '@polkadot/types/interfaces'; diff --git a/packages/page-addresses/src/util.tsx b/packages/page-addresses/src/util.tsx index 122dfcb562..5580aa3f1f 100644 --- a/packages/page-addresses/src/util.tsx +++ b/packages/page-addresses/src/util.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-addresses authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SortedAccount } from './types'; diff --git a/packages/page-calendar/src/Day.tsx b/packages/page-calendar/src/Day.tsx index 00fccaebff..d6ac4430f4 100644 --- a/packages/page-calendar/src/Day.tsx +++ b/packages/page-calendar/src/Day.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EntryInfo } from './types'; diff --git a/packages/page-calendar/src/DayHour.tsx b/packages/page-calendar/src/DayHour.tsx index edd799853c..2f2f74d1f9 100644 --- a/packages/page-calendar/src/DayHour.tsx +++ b/packages/page-calendar/src/DayHour.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EntryInfo } from './types'; diff --git a/packages/page-calendar/src/DayItem.tsx b/packages/page-calendar/src/DayItem.tsx index 189dd96cb8..4af5e0b2a0 100644 --- a/packages/page-calendar/src/DayItem.tsx +++ b/packages/page-calendar/src/DayItem.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EntryInfo } from './types'; diff --git a/packages/page-calendar/src/DayTime.tsx b/packages/page-calendar/src/DayTime.tsx index b25f6a49d5..60ade78909 100644 --- a/packages/page-calendar/src/DayTime.tsx +++ b/packages/page-calendar/src/DayTime.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useEffect, useState } from 'react'; diff --git a/packages/page-calendar/src/Month.tsx b/packages/page-calendar/src/Month.tsx index 66dc479d62..669203a4fe 100644 --- a/packages/page-calendar/src/Month.tsx +++ b/packages/page-calendar/src/Month.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DateState, EntryInfo } from './types'; diff --git a/packages/page-calendar/src/MonthDay.tsx b/packages/page-calendar/src/MonthDay.tsx index 79ef7da020..3a609ff2e5 100644 --- a/packages/page-calendar/src/MonthDay.tsx +++ b/packages/page-calendar/src/MonthDay.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EntryInfo } from './types'; diff --git a/packages/page-calendar/src/constants.ts b/packages/page-calendar/src/constants.ts index 4d6d516de6..bcd7622815 100644 --- a/packages/page-calendar/src/constants.ts +++ b/packages/page-calendar/src/constants.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export const DAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; export const MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; diff --git a/packages/page-calendar/src/index.tsx b/packages/page-calendar/src/index.tsx index b9587da33f..5a5031d4b7 100644 --- a/packages/page-calendar/src/index.tsx +++ b/packages/page-calendar/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DateState } from './types'; diff --git a/packages/page-calendar/src/translate.ts b/packages/page-calendar/src/translate.ts index c9aec95baa..1c6d9c8d03 100644 --- a/packages/page-calendar/src/translate.ts +++ b/packages/page-calendar/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-calendar/src/types.ts b/packages/page-calendar/src/types.ts index b870fb5604..b1eb5d0075 100644 --- a/packages/page-calendar/src/types.ts +++ b/packages/page-calendar/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/page-calendar/src/useScheduled.ts b/packages/page-calendar/src/useScheduled.ts index ffc745d38f..3c1953a525 100644 --- a/packages/page-calendar/src/useScheduled.ts +++ b/packages/page-calendar/src/useScheduled.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveCollectiveProposal, DeriveDispatch, DeriveReferendumExt, DeriveSessionProgress } from '@polkadot/api-derive/types'; import { BlockNumber, EraIndex, Scheduled, UnappliedSlash } from '@polkadot/types/interfaces'; diff --git a/packages/page-calendar/src/util.ts b/packages/page-calendar/src/util.ts index e8e53ede35..e395e15029 100644 --- a/packages/page-calendar/src/util.ts +++ b/packages/page-calendar/src/util.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-calendar authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DateState } from './types'; diff --git a/packages/page-claims/src/Attest.tsx b/packages/page-claims/src/Attest.tsx index ed31beac08..58a895768c 100644 --- a/packages/page-claims/src/Attest.tsx +++ b/packages/page-claims/src/Attest.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useEffect, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/page-claims/src/Claim.tsx b/packages/page-claims/src/Claim.tsx index a104cc62d1..1ce2a87590 100644 --- a/packages/page-claims/src/Claim.tsx +++ b/packages/page-claims/src/Claim.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Option } from '@polkadot/types'; import { BalanceOf, EthereumAddress, StatementKind } from '@polkadot/types/interfaces'; diff --git a/packages/page-claims/src/Statement.tsx b/packages/page-claims/src/Statement.tsx index e411788260..ee7ce15dd7 100644 --- a/packages/page-claims/src/Statement.tsx +++ b/packages/page-claims/src/Statement.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StatementKind } from '@polkadot/types/interfaces'; diff --git a/packages/page-claims/src/Warning.tsx b/packages/page-claims/src/Warning.tsx index a2b76c825b..7fcd3d8d6c 100644 --- a/packages/page-claims/src/Warning.tsx +++ b/packages/page-claims/src/Warning.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AddressMini, Card } from '@polkadot/react-components'; diff --git a/packages/page-claims/src/index.tsx b/packages/page-claims/src/index.tsx index 67e44425a5..980739ba4f 100644 --- a/packages/page-claims/src/index.tsx +++ b/packages/page-claims/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; import { Option } from '@polkadot/types'; diff --git a/packages/page-claims/src/secp256k1.d.ts b/packages/page-claims/src/secp256k1.d.ts index f555d4d441..49e3e722bc 100644 --- a/packages/page-claims/src/secp256k1.d.ts +++ b/packages/page-claims/src/secp256k1.d.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 declare module 'secp256k1/elliptic' { export function publicKeyConvert (publicKey: Buffer, expanded: boolean): Buffer; diff --git a/packages/page-claims/src/translate.ts b/packages/page-claims/src/translate.ts index 7fd3ffee73..53f7f78594 100644 --- a/packages/page-claims/src/translate.ts +++ b/packages/page-claims/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/page-claims/src/useCounter.ts b/packages/page-claims/src/useCounter.ts index fac1288565..6adc385650 100644 --- a/packages/page-claims/src/useCounter.ts +++ b/packages/page-claims/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import usePolkadotPreclaims from './usePolkadotPreclaims'; diff --git a/packages/page-claims/src/usePolkadotPreclaims.ts b/packages/page-claims/src/usePolkadotPreclaims.ts index a45261b05a..4e2f189720 100644 --- a/packages/page-claims/src/usePolkadotPreclaims.ts +++ b/packages/page-claims/src/usePolkadotPreclaims.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryableStorageEntry } from '@polkadot/api/types'; import { Codec } from '@polkadot/types/types'; diff --git a/packages/page-claims/src/util.spec.ts b/packages/page-claims/src/util.spec.ts index fa31a72004..a2407971b7 100644 --- a/packages/page-claims/src/util.spec.ts +++ b/packages/page-claims/src/util.spec.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { hexToU8a } from '@polkadot/util'; diff --git a/packages/page-claims/src/util.ts b/packages/page-claims/src/util.ts index bab2f02b00..62af60d55d 100644 --- a/packages/page-claims/src/util.ts +++ b/packages/page-claims/src/util.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-claims authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EthereumAddress, EcdsaSignature, StatementKind } from '@polkadot/types/interfaces'; diff --git a/packages/page-contracts/src/Codes/Add.tsx b/packages/page-contracts/src/Codes/Add.tsx index 1066af01da..233bc0d948 100644 --- a/packages/page-contracts/src/Codes/Add.tsx +++ b/packages/page-contracts/src/Codes/Add.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StringOrNull } from '@polkadot/react-components/types'; diff --git a/packages/page-contracts/src/Codes/Code.tsx b/packages/page-contracts/src/Codes/Code.tsx index 1201bda8a6..a2e6d7cfbe 100644 --- a/packages/page-contracts/src/Codes/Code.tsx +++ b/packages/page-contracts/src/Codes/Code.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { CodeStored } from '../types'; diff --git a/packages/page-contracts/src/Codes/Upload.tsx b/packages/page-contracts/src/Codes/Upload.tsx index ef0ee47405..14d865758e 100644 --- a/packages/page-contracts/src/Codes/Upload.tsx +++ b/packages/page-contracts/src/Codes/Upload.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-contracts/src/Codes/ValidateCode.tsx b/packages/page-contracts/src/Codes/ValidateCode.tsx index 3aad1b2bc7..841572e71d 100644 --- a/packages/page-contracts/src/Codes/ValidateCode.tsx +++ b/packages/page-contracts/src/Codes/ValidateCode.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 /* eslint-disable camelcase */ diff --git a/packages/page-contracts/src/Codes/index.tsx b/packages/page-contracts/src/Codes/index.tsx index e67f6125b4..58c8944528 100644 --- a/packages/page-contracts/src/Codes/index.tsx +++ b/packages/page-contracts/src/Codes/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentProps as Props } from '../types'; diff --git a/packages/page-contracts/src/Contracts/Add.tsx b/packages/page-contracts/src/Contracts/Add.tsx index 490988343b..57b596ed47 100644 --- a/packages/page-contracts/src/Contracts/Add.tsx +++ b/packages/page-contracts/src/Contracts/Add.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StringOrNull } from '@polkadot/react-components/types'; import { ActionStatus } from '@polkadot/react-components/Status/types'; diff --git a/packages/page-contracts/src/Contracts/Call.tsx b/packages/page-contracts/src/Contracts/Call.tsx index 76cc48b625..b89686c1de 100644 --- a/packages/page-contracts/src/Contracts/Call.tsx +++ b/packages/page-contracts/src/Contracts/Call.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractCallOutcome } from '@polkadot/api-contract/types'; import { StringOrNull } from '@polkadot/react-components/types'; diff --git a/packages/page-contracts/src/Contracts/Contract.tsx b/packages/page-contracts/src/Contracts/Contract.tsx index 8b89d71091..1652083dd7 100644 --- a/packages/page-contracts/src/Contracts/Contract.tsx +++ b/packages/page-contracts/src/Contracts/Contract.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; diff --git a/packages/page-contracts/src/Contracts/Outcome.tsx b/packages/page-contracts/src/Contracts/Outcome.tsx index 43b0ae493f..3b97117cff 100644 --- a/packages/page-contracts/src/Contracts/Outcome.tsx +++ b/packages/page-contracts/src/Contracts/Outcome.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractCallOutcome } from '@polkadot/api-contract/types'; diff --git a/packages/page-contracts/src/Contracts/ValidateAddr.tsx b/packages/page-contracts/src/Contracts/ValidateAddr.tsx index 7205d24398..8d7d5c8fad 100644 --- a/packages/page-contracts/src/Contracts/ValidateAddr.tsx +++ b/packages/page-contracts/src/Contracts/ValidateAddr.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractInfo } from '@polkadot/types/interfaces'; diff --git a/packages/page-contracts/src/Contracts/index.tsx b/packages/page-contracts/src/Contracts/index.tsx index a560b035b6..bf11eae183 100644 --- a/packages/page-contracts/src/Contracts/index.tsx +++ b/packages/page-contracts/src/Contracts/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StringOrNull } from '@polkadot/react-components/types'; import { ComponentProps as Props } from '../types'; diff --git a/packages/page-contracts/src/Contracts/util.tsx b/packages/page-contracts/src/Contracts/util.tsx index bdfa3cb6d2..0b9d0565e4 100644 --- a/packages/page-contracts/src/Contracts/util.tsx +++ b/packages/page-contracts/src/Contracts/util.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractABIFn, ContractABIMessage } from '@polkadot/api-contract/types'; import { StringOrNull } from '@polkadot/react-components/types'; diff --git a/packages/page-contracts/src/Deploy.tsx b/packages/page-contracts/src/Deploy.tsx index ff5131db09..7a9221773d 100644 --- a/packages/page-contracts/src/Deploy.tsx +++ b/packages/page-contracts/src/Deploy.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StringOrNull, VoidFn } from '@polkadot/react-components/types'; import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/page-contracts/src/RemoveABI.tsx b/packages/page-contracts/src/RemoveABI.tsx index a11e633bc6..3aa5dcee7a 100644 --- a/packages/page-contracts/src/RemoveABI.tsx +++ b/packages/page-contracts/src/RemoveABI.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { CodeStored } from '@polkadot/app-contracts/types'; diff --git a/packages/page-contracts/src/constants.ts b/packages/page-contracts/src/constants.ts index 36da5a56e4..90092cbb96 100644 --- a/packages/page-contracts/src/constants.ts +++ b/packages/page-contracts/src/constants.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export const ENDOWMENT = 1000; export const GAS_LIMIT = '100000000000'; diff --git a/packages/page-contracts/src/index.tsx b/packages/page-contracts/src/index.tsx index f4c4bb0635..45f04ca7da 100644 --- a/packages/page-contracts/src/index.tsx +++ b/packages/page-contracts/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; import { ComponentProps } from './types'; diff --git a/packages/page-contracts/src/shared/ABI.tsx b/packages/page-contracts/src/shared/ABI.tsx index 169eaf0f16..0fa6728a9d 100644 --- a/packages/page-contracts/src/shared/ABI.tsx +++ b/packages/page-contracts/src/shared/ABI.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/page-contracts/src/shared/CodeRow.tsx b/packages/page-contracts/src/shared/CodeRow.tsx index 5844843d84..e3da8f7f6d 100644 --- a/packages/page-contracts/src/shared/CodeRow.tsx +++ b/packages/page-contracts/src/shared/CodeRow.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { CodeStored } from '@polkadot/app-contracts/types'; diff --git a/packages/page-contracts/src/shared/InputMegaGas.tsx b/packages/page-contracts/src/shared/InputMegaGas.tsx index 509fa42953..1b94cca3b0 100644 --- a/packages/page-contracts/src/shared/InputMegaGas.tsx +++ b/packages/page-contracts/src/shared/InputMegaGas.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React from 'react'; diff --git a/packages/page-contracts/src/shared/InputName.tsx b/packages/page-contracts/src/shared/InputName.tsx index 4834c63c02..bbe5f621ac 100644 --- a/packages/page-contracts/src/shared/InputName.tsx +++ b/packages/page-contracts/src/shared/InputName.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { VoidFn } from '@polkadot/react-components/types'; diff --git a/packages/page-contracts/src/shared/MessageSignature.tsx b/packages/page-contracts/src/shared/MessageSignature.tsx index f82fa8be4a..db6aacaf76 100644 --- a/packages/page-contracts/src/shared/MessageSignature.tsx +++ b/packages/page-contracts/src/shared/MessageSignature.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractABIMessage } from '@polkadot/api-contract/types'; diff --git a/packages/page-contracts/src/shared/Messages.tsx b/packages/page-contracts/src/shared/Messages.tsx index c1182a3264..315273c9a6 100644 --- a/packages/page-contracts/src/shared/Messages.tsx +++ b/packages/page-contracts/src/shared/Messages.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractABIMessage } from '@polkadot/api-contract/types'; diff --git a/packages/page-contracts/src/shared/Params.tsx b/packages/page-contracts/src/shared/Params.tsx index 8fc3f477f7..678a5a4b19 100644 --- a/packages/page-contracts/src/shared/Params.tsx +++ b/packages/page-contracts/src/shared/Params.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractABIFnArg } from '@polkadot/api-contract/types'; import { TypeDef } from '@polkadot/types/types'; diff --git a/packages/page-contracts/src/shared/index.tsx b/packages/page-contracts/src/shared/index.tsx index 1e14b18ac5..9f795bc2a6 100644 --- a/packages/page-contracts/src/shared/index.tsx +++ b/packages/page-contracts/src/shared/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as ABI } from './ABI'; export { default as CodeRow } from './CodeRow'; diff --git a/packages/page-contracts/src/store.ts b/packages/page-contracts/src/store.ts index 408594b7e3..91774d7636 100644 --- a/packages/page-contracts/src/store.ts +++ b/packages/page-contracts/src/store.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractABIPre } from '@polkadot/api-contract/types'; import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-contracts/src/translate.ts b/packages/page-contracts/src/translate.ts index aefa4878b1..43c01a71df 100644 --- a/packages/page-contracts/src/translate.ts +++ b/packages/page-contracts/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/page-contracts/src/types.ts b/packages/page-contracts/src/types.ts index 71b0e7638b..5ca9fbde51 100644 --- a/packages/page-contracts/src/types.ts +++ b/packages/page-contracts/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import { Abi } from '@polkadot/api-contract'; diff --git a/packages/page-contracts/src/useAbi.ts b/packages/page-contracts/src/useAbi.ts index 191fbf9c51..1085563f05 100644 --- a/packages/page-contracts/src/useAbi.ts +++ b/packages/page-contracts/src/useAbi.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StringOrNull } from '@polkadot/react-components/types'; diff --git a/packages/page-contracts/src/useWeight.ts b/packages/page-contracts/src/useWeight.ts index 63c7f94f2b..e7acc73fa3 100644 --- a/packages/page-contracts/src/useWeight.ts +++ b/packages/page-contracts/src/useWeight.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { UseWeight } from './types'; diff --git a/packages/page-council/src/Motions/Motion.tsx b/packages/page-council/src/Motions/Motion.tsx index 7eb8238639..2a23f708f6 100644 --- a/packages/page-council/src/Motions/Motion.tsx +++ b/packages/page-council/src/Motions/Motion.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId } from '@polkadot/types/interfaces'; import { DeriveCollectiveProposal } from '@polkadot/api-derive/types'; diff --git a/packages/page-council/src/Motions/ProposeExternal.tsx b/packages/page-council/src/Motions/ProposeExternal.tsx index cafb735c26..716e15bc85 100644 --- a/packages/page-council/src/Motions/ProposeExternal.tsx +++ b/packages/page-council/src/Motions/ProposeExternal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-council/src/Motions/ProposeMotion.tsx b/packages/page-council/src/Motions/ProposeMotion.tsx index 7c4851066c..1ee8006db7 100644 --- a/packages/page-council/src/Motions/ProposeMotion.tsx +++ b/packages/page-council/src/Motions/ProposeMotion.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-council/src/Motions/Slashing.tsx b/packages/page-council/src/Motions/Slashing.tsx index 1f66d17eac..9bf565d688 100644 --- a/packages/page-council/src/Motions/Slashing.tsx +++ b/packages/page-council/src/Motions/Slashing.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-council/src/Motions/Voters.tsx b/packages/page-council/src/Motions/Voters.tsx index 4efb2e6b4c..eb6d367530 100644 --- a/packages/page-council/src/Motions/Voters.tsx +++ b/packages/page-council/src/Motions/Voters.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, MemberCount } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Motions/Voting.tsx b/packages/page-council/src/Motions/Voting.tsx index 6c6a41308b..6a489e0f3a 100644 --- a/packages/page-council/src/Motions/Voting.tsx +++ b/packages/page-council/src/Motions/Voting.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Hash, Proposal, ProposalIndex } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Motions/index.tsx b/packages/page-council/src/Motions/index.tsx index f6cca0924b..ba6253ebb1 100644 --- a/packages/page-council/src/Motions/index.tsx +++ b/packages/page-council/src/Motions/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveCollectiveProposals, DeriveCollectiveProposal } from '@polkadot/api-derive/types'; import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Overview/Candidate.tsx b/packages/page-council/src/Overview/Candidate.tsx index 79570d2442..3afe000811 100644 --- a/packages/page-council/src/Overview/Candidate.tsx +++ b/packages/page-council/src/Overview/Candidate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Balance } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Overview/Candidates.tsx b/packages/page-council/src/Overview/Candidates.tsx index 13aa466da2..7802412c09 100644 --- a/packages/page-council/src/Overview/Candidates.tsx +++ b/packages/page-council/src/Overview/Candidates.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveElectionsInfo } from '@polkadot/api-derive/types'; import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Overview/Members.tsx b/packages/page-council/src/Overview/Members.tsx index 202887f7e0..1d2c6891b4 100644 --- a/packages/page-council/src/Overview/Members.tsx +++ b/packages/page-council/src/Overview/Members.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveElectionsInfo } from '@polkadot/api-derive/types'; import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Overview/SubmitCandidacy.tsx b/packages/page-council/src/Overview/SubmitCandidacy.tsx index a37aeb14fc..81e2881bb6 100644 --- a/packages/page-council/src/Overview/SubmitCandidacy.tsx +++ b/packages/page-council/src/Overview/SubmitCandidacy.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentProps as Props } from './types'; diff --git a/packages/page-council/src/Overview/Summary.tsx b/packages/page-council/src/Overview/Summary.tsx index c32edc006e..703c025bde 100644 --- a/packages/page-council/src/Overview/Summary.tsx +++ b/packages/page-council/src/Overview/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveElectionsInfo } from '@polkadot/api-derive/types'; import { BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Overview/Vote.tsx b/packages/page-council/src/Overview/Vote.tsx index e6f535a129..584c66db30 100644 --- a/packages/page-council/src/Overview/Vote.tsx +++ b/packages/page-council/src/Overview/Vote.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveElectionsInfo } from '@polkadot/api-derive/types'; diff --git a/packages/page-council/src/Overview/Voters.tsx b/packages/page-council/src/Overview/Voters.tsx index 0b6f7c0039..70036616c8 100644 --- a/packages/page-council/src/Overview/Voters.tsx +++ b/packages/page-council/src/Overview/Voters.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Balance } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Overview/index.tsx b/packages/page-council/src/Overview/index.tsx index 95db8797dc..6ec88be4a3 100644 --- a/packages/page-council/src/Overview/index.tsx +++ b/packages/page-council/src/Overview/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveCouncilVotes, DeriveElectionsInfo } from '@polkadot/api-derive/types'; import { AccountId, BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/Overview/types.ts b/packages/page-council/src/Overview/types.ts index f6c73e60b3..82c9c123e9 100644 --- a/packages/page-council/src/Overview/types.ts +++ b/packages/page-council/src/Overview/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SetIndex } from '@polkadot/types/interfaces'; import { DeriveElectionsInfo } from '@polkadot/api-derive/types'; diff --git a/packages/page-council/src/index.tsx b/packages/page-council/src/index.tsx index 1dcba6672c..60c9920a08 100644 --- a/packages/page-council/src/index.tsx +++ b/packages/page-council/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Option } from '@polkadot/types'; import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/page-council/src/thresholds.ts b/packages/page-council/src/thresholds.ts index 7ed6aa571b..0d95a2c98c 100644 --- a/packages/page-council/src/thresholds.ts +++ b/packages/page-council/src/thresholds.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiPromise } from '@polkadot/api'; import { POLKADOT_GENESIS, KULUPU_GENESIS, KUSAMA_GENESIS } from '@polkadot/apps-config/api/constants'; diff --git a/packages/page-council/src/translate.ts b/packages/page-council/src/translate.ts index b063267f43..4303e035ac 100644 --- a/packages/page-council/src/translate.ts +++ b/packages/page-council/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-council/src/useCounter.ts b/packages/page-council/src/useCounter.ts index 35fd26ddf6..c982b940e5 100644 --- a/packages/page-council/src/useCounter.ts +++ b/packages/page-council/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveCollectiveProposals } from '@polkadot/api-derive/types'; diff --git a/packages/page-dashboard/src/Entry.tsx b/packages/page-dashboard/src/Entry.tsx index e23a66560c..816d927819 100644 --- a/packages/page-dashboard/src/Entry.tsx +++ b/packages/page-dashboard/src/Entry.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-dashboard authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from '@polkadot/apps-routing/types'; diff --git a/packages/page-dashboard/src/Spacer.tsx b/packages/page-dashboard/src/Spacer.tsx index 829a3d6e1a..dd6dedf2ac 100644 --- a/packages/page-dashboard/src/Spacer.tsx +++ b/packages/page-dashboard/src/Spacer.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-dashboard authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/page-dashboard/src/index.tsx b/packages/page-dashboard/src/index.tsx index 32c174a90c..e7321ea350 100644 --- a/packages/page-dashboard/src/index.tsx +++ b/packages/page-dashboard/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-dashboard authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Route } from '@polkadot/apps-routing/types'; import { AppProps } from '@polkadot/react-components/types'; diff --git a/packages/page-dashboard/src/translate.ts b/packages/page-dashboard/src/translate.ts index e45fd33b4b..2d9ccf99cd 100644 --- a/packages/page-dashboard/src/translate.ts +++ b/packages/page-dashboard/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-dashboard authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-democracy/src/Execute/DispatchEntry.tsx b/packages/page-democracy/src/Execute/DispatchEntry.tsx index d39fa99fc8..6eeb815dd6 100644 --- a/packages/page-democracy/src/Execute/DispatchEntry.tsx +++ b/packages/page-democracy/src/Execute/DispatchEntry.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveDispatch } from '@polkadot/api-derive/types'; import { BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Execute/DispatchQueue.tsx b/packages/page-democracy/src/Execute/DispatchQueue.tsx index 8f89449c0b..81bfed5a41 100644 --- a/packages/page-democracy/src/Execute/DispatchQueue.tsx +++ b/packages/page-democracy/src/Execute/DispatchQueue.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveDispatch } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/Execute/Scheduled.tsx b/packages/page-democracy/src/Execute/Scheduled.tsx index 62fe274c05..9ee0899b08 100644 --- a/packages/page-democracy/src/Execute/Scheduled.tsx +++ b/packages/page-democracy/src/Execute/Scheduled.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber } from '@polkadot/types/interfaces'; import { ScheduledExt } from './types'; diff --git a/packages/page-democracy/src/Execute/Scheduler.tsx b/packages/page-democracy/src/Execute/Scheduler.tsx index 5695168edf..165089abb7 100644 --- a/packages/page-democracy/src/Execute/Scheduler.tsx +++ b/packages/page-democracy/src/Execute/Scheduler.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, Scheduled } from '@polkadot/types/interfaces'; import { ScheduledExt } from './types'; diff --git a/packages/page-democracy/src/Execute/index.tsx b/packages/page-democracy/src/Execute/index.tsx index 5c1bb4e6d4..2919910595 100644 --- a/packages/page-democracy/src/Execute/index.tsx +++ b/packages/page-democracy/src/Execute/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi } from '@polkadot/react-hooks'; diff --git a/packages/page-democracy/src/Execute/types.ts b/packages/page-democracy/src/Execute/types.ts index bde0370b46..ca66d9d683 100644 --- a/packages/page-democracy/src/Execute/types.ts +++ b/packages/page-democracy/src/Execute/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, Call, SchedulePeriod, SchedulePriority } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Execute/useCounter.ts b/packages/page-democracy/src/Execute/useCounter.ts index 4a91a285fc..603ddbbc96 100644 --- a/packages/page-democracy/src/Execute/useCounter.ts +++ b/packages/page-democracy/src/Execute/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useApi, useCall } from '@polkadot/react-hooks'; diff --git a/packages/page-democracy/src/Overview/External.tsx b/packages/page-democracy/src/Overview/External.tsx index dd4cb9b1d2..178c8bed7a 100644 --- a/packages/page-democracy/src/Overview/External.tsx +++ b/packages/page-democracy/src/Overview/External.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveProposalExternal } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/Overview/ExternalCell.tsx b/packages/page-democracy/src/Overview/ExternalCell.tsx index 3af86cd300..9649921085 100644 --- a/packages/page-democracy/src/Overview/ExternalCell.tsx +++ b/packages/page-democracy/src/Overview/ExternalCell.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveProposalImage } from '@polkadot/api-derive/types'; import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/Externals.tsx b/packages/page-democracy/src/Overview/Externals.tsx index b2ef4af2e0..219c0435b1 100644 --- a/packages/page-democracy/src/Overview/Externals.tsx +++ b/packages/page-democracy/src/Overview/Externals.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveProposalExternal } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/Overview/Fasttrack.tsx b/packages/page-democracy/src/Overview/Fasttrack.tsx index a1926748c2..fbd875a61b 100644 --- a/packages/page-democracy/src/Overview/Fasttrack.tsx +++ b/packages/page-democracy/src/Overview/Fasttrack.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { Hash, VoteThreshold } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/PreImage.tsx b/packages/page-democracy/src/Overview/PreImage.tsx index db2ad48f2f..c0bb1f0140 100644 --- a/packages/page-democracy/src/Overview/PreImage.tsx +++ b/packages/page-democracy/src/Overview/PreImage.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/PreImageButton.tsx b/packages/page-democracy/src/Overview/PreImageButton.tsx index f20aada090..38b70f709b 100644 --- a/packages/page-democracy/src/Overview/PreImageButton.tsx +++ b/packages/page-democracy/src/Overview/PreImageButton.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/Proposal.tsx b/packages/page-democracy/src/Overview/Proposal.tsx index 0b2ef714af..1d3ef84176 100644 --- a/packages/page-democracy/src/Overview/Proposal.tsx +++ b/packages/page-democracy/src/Overview/Proposal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveProposal } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/Overview/ProposalCell.tsx b/packages/page-democracy/src/Overview/ProposalCell.tsx index 3f765123ff..de164e3bd6 100644 --- a/packages/page-democracy/src/Overview/ProposalCell.tsx +++ b/packages/page-democracy/src/Overview/ProposalCell.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash, Proposal, ProposalIndex } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/Proposals.tsx b/packages/page-democracy/src/Overview/Proposals.tsx index f4f21e2237..2be64e85d2 100644 --- a/packages/page-democracy/src/Overview/Proposals.tsx +++ b/packages/page-democracy/src/Overview/Proposals.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveProposal } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/Overview/Propose.tsx b/packages/page-democracy/src/Overview/Propose.tsx index 0752eea642..c7ab0f3bde 100644 --- a/packages/page-democracy/src/Overview/Propose.tsx +++ b/packages/page-democracy/src/Overview/Propose.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useCallback, useState } from 'react'; diff --git a/packages/page-democracy/src/Overview/Referendum.tsx b/packages/page-democracy/src/Overview/Referendum.tsx index 4c66c091bf..3038874aa1 100644 --- a/packages/page-democracy/src/Overview/Referendum.tsx +++ b/packages/page-democracy/src/Overview/Referendum.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveReferendumExt } from '@polkadot/api-derive/types'; import { Balance, BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/ReferendumVote.tsx b/packages/page-democracy/src/Overview/ReferendumVote.tsx index edfdcfe1da..063f994c75 100644 --- a/packages/page-democracy/src/Overview/ReferendumVote.tsx +++ b/packages/page-democracy/src/Overview/ReferendumVote.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveReferendumVote } from '@polkadot/api-derive/types'; import { Vote } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/ReferendumVotes.tsx b/packages/page-democracy/src/Overview/ReferendumVotes.tsx index 605eb13128..b3b9543edd 100644 --- a/packages/page-democracy/src/Overview/ReferendumVotes.tsx +++ b/packages/page-democracy/src/Overview/ReferendumVotes.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveReferendumVote } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/Overview/Referendums.tsx b/packages/page-democracy/src/Overview/Referendums.tsx index 973c9d8f62..e1ba36f6b4 100644 --- a/packages/page-democracy/src/Overview/Referendums.tsx +++ b/packages/page-democracy/src/Overview/Referendums.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveReferendumExt } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/Overview/Seconding.tsx b/packages/page-democracy/src/Overview/Seconding.tsx index 3f843c52ff..6b8d039e43 100644 --- a/packages/page-democracy/src/Overview/Seconding.tsx +++ b/packages/page-democracy/src/Overview/Seconding.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveProposalImage } from '@polkadot/api-derive/types'; import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/Summary.tsx b/packages/page-democracy/src/Overview/Summary.tsx index ca150762c9..a96fc6f9ed 100644 --- a/packages/page-democracy/src/Overview/Summary.tsx +++ b/packages/page-democracy/src/Overview/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React from 'react'; diff --git a/packages/page-democracy/src/Overview/TreasuryCell.tsx b/packages/page-democracy/src/Overview/TreasuryCell.tsx index 07f561319f..b1439098fe 100644 --- a/packages/page-democracy/src/Overview/TreasuryCell.tsx +++ b/packages/page-democracy/src/Overview/TreasuryCell.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ProposalIndex, TreasuryProposal } from '@polkadot/types/interfaces'; import { TypeDef } from '@polkadot/types/types'; diff --git a/packages/page-democracy/src/Overview/Voting.tsx b/packages/page-democracy/src/Overview/Voting.tsx index 12479fae96..cb3df80300 100644 --- a/packages/page-democracy/src/Overview/Voting.tsx +++ b/packages/page-democracy/src/Overview/Voting.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { PropIndex, Proposal } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/Overview/index.tsx b/packages/page-democracy/src/Overview/index.tsx index 46e75298f9..c1c8eefe27 100644 --- a/packages/page-democracy/src/Overview/index.tsx +++ b/packages/page-democracy/src/Overview/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveReferendumExt } from '@polkadot/api-derive/types'; diff --git a/packages/page-democracy/src/index.tsx b/packages/page-democracy/src/index.tsx index 23aab890a1..1b306cfd73 100644 --- a/packages/page-democracy/src/index.tsx +++ b/packages/page-democracy/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useMemo } from 'react'; import { Route, Switch } from 'react-router'; diff --git a/packages/page-democracy/src/translate.ts b/packages/page-democracy/src/translate.ts index 69928bf4bf..c83da7bc95 100644 --- a/packages/page-democracy/src/translate.ts +++ b/packages/page-democracy/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-democracy/src/useChangeCalc.ts b/packages/page-democracy/src/useChangeCalc.ts index fbc51ba906..e27e00e528 100644 --- a/packages/page-democracy/src/useChangeCalc.ts +++ b/packages/page-democracy/src/useChangeCalc.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { VoteThreshold } from '@polkadot/types/interfaces'; diff --git a/packages/page-democracy/src/useCounter.ts b/packages/page-democracy/src/useCounter.ts index dd0e8c30ae..476ef35aa9 100644 --- a/packages/page-democracy/src/useCounter.ts +++ b/packages/page-democracy/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useState, useEffect } from 'react'; import { useAccounts, useApi, useCall, useIsMountedRef } from '@polkadot/react-hooks'; diff --git a/packages/page-democracy/src/util.spec.ts b/packages/page-democracy/src/util.spec.ts index 137568a4cd..105ecd0620 100644 --- a/packages/page-democracy/src/util.spec.ts +++ b/packages/page-democracy/src/util.spec.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import { TypeRegistry } from '@polkadot/types'; diff --git a/packages/page-democracy/src/util.ts b/packages/page-democracy/src/util.ts index 11510d4ee8..492671a6a9 100644 --- a/packages/page-democracy/src/util.ts +++ b/packages/page-democracy/src/util.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { VoteThreshold } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/BestHash.tsx b/packages/page-explorer/src/BestHash.tsx index 0580396389..e5c26686f7 100644 --- a/packages/page-explorer/src/BestHash.tsx +++ b/packages/page-explorer/src/BestHash.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Header } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/BlockHeader.tsx b/packages/page-explorer/src/BlockHeader.tsx index d50c21e326..b18f787986 100644 --- a/packages/page-explorer/src/BlockHeader.tsx +++ b/packages/page-explorer/src/BlockHeader.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { Link } from 'react-router-dom'; diff --git a/packages/page-explorer/src/BlockHeaders.tsx b/packages/page-explorer/src/BlockHeaders.tsx index 51d23c6fd6..b3eadfa544 100644 --- a/packages/page-explorer/src/BlockHeaders.tsx +++ b/packages/page-explorer/src/BlockHeaders.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useRef } from 'react'; import { HeaderExtended } from '@polkadot/api-derive'; diff --git a/packages/page-explorer/src/BlockInfo/ByHash.tsx b/packages/page-explorer/src/BlockInfo/ByHash.tsx index b1233092d1..684efcd262 100644 --- a/packages/page-explorer/src/BlockInfo/ByHash.tsx +++ b/packages/page-explorer/src/BlockInfo/ByHash.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EventRecord, SignedBlock } from '@polkadot/types/interfaces'; import { KeyedEvent } from '@polkadot/react-query/types'; diff --git a/packages/page-explorer/src/BlockInfo/ByNumber.tsx b/packages/page-explorer/src/BlockInfo/ByNumber.tsx index cf66e49b71..01cc51eb4b 100644 --- a/packages/page-explorer/src/BlockInfo/ByNumber.tsx +++ b/packages/page-explorer/src/BlockInfo/ByNumber.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/BlockInfo/Extrinsic.tsx b/packages/page-explorer/src/BlockInfo/Extrinsic.tsx index ada767cd57..fbcf6f2955 100644 --- a/packages/page-explorer/src/BlockInfo/Extrinsic.tsx +++ b/packages/page-explorer/src/BlockInfo/Extrinsic.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, Extrinsic } from '@polkadot/types/interfaces'; import { KeyedEvent } from '@polkadot/react-query/types'; diff --git a/packages/page-explorer/src/BlockInfo/Extrinsics.tsx b/packages/page-explorer/src/BlockInfo/Extrinsics.tsx index 2e1f3457bc..096aed5eda 100644 --- a/packages/page-explorer/src/BlockInfo/Extrinsics.tsx +++ b/packages/page-explorer/src/BlockInfo/Extrinsics.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, Extrinsic } from '@polkadot/types/interfaces'; import { KeyedEvent } from '@polkadot/react-query/types'; diff --git a/packages/page-explorer/src/BlockInfo/Logs.tsx b/packages/page-explorer/src/BlockInfo/Logs.tsx index b4cce86fc0..853dcd2181 100644 --- a/packages/page-explorer/src/BlockInfo/Logs.tsx +++ b/packages/page-explorer/src/BlockInfo/Logs.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DigestItem } from '@polkadot/types/interfaces'; import { Codec, TypeDef } from '@polkadot/types/types'; diff --git a/packages/page-explorer/src/BlockInfo/index.tsx b/packages/page-explorer/src/BlockInfo/index.tsx index 58a0b86539..6d6155dadb 100644 --- a/packages/page-explorer/src/BlockInfo/index.tsx +++ b/packages/page-explorer/src/BlockInfo/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/Event.tsx b/packages/page-explorer/src/Event.tsx index 0b9390ec9a..9d1702ceb2 100644 --- a/packages/page-explorer/src/Event.tsx +++ b/packages/page-explorer/src/Event.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EventRecord } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/Events.tsx b/packages/page-explorer/src/Events.tsx index 646fbd21ec..650e70f052 100644 --- a/packages/page-explorer/src/Events.tsx +++ b/packages/page-explorer/src/Events.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyedEvent } from '@polkadot/react-query/types'; diff --git a/packages/page-explorer/src/Forks.tsx b/packages/page-explorer/src/Forks.tsx index 7dac218c2c..94fb20d6c7 100644 --- a/packages/page-explorer/src/Forks.tsx +++ b/packages/page-explorer/src/Forks.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiProps } from '@polkadot/react-api/types'; import { Header } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/Main.tsx b/packages/page-explorer/src/Main.tsx index 91d5330b54..f5ab83fbbd 100644 --- a/packages/page-explorer/src/Main.tsx +++ b/packages/page-explorer/src/Main.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyedEvent } from '@polkadot/react-query/types'; diff --git a/packages/page-explorer/src/NodeInfo/Peers.tsx b/packages/page-explorer/src/NodeInfo/Peers.tsx index 922282a8c9..cbf0a599a8 100644 --- a/packages/page-explorer/src/NodeInfo/Peers.tsx +++ b/packages/page-explorer/src/NodeInfo/Peers.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-nodeinfo authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { PeerInfo } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/NodeInfo/Summary.tsx b/packages/page-explorer/src/NodeInfo/Summary.tsx index b09bb241d3..577cd15e5d 100644 --- a/packages/page-explorer/src/NodeInfo/Summary.tsx +++ b/packages/page-explorer/src/NodeInfo/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-nodeinfo authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Info } from './types'; diff --git a/packages/page-explorer/src/NodeInfo/index.tsx b/packages/page-explorer/src/NodeInfo/index.tsx index 4eed9ac9ad..e3238ba3e3 100644 --- a/packages/page-explorer/src/NodeInfo/index.tsx +++ b/packages/page-explorer/src/NodeInfo/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-nodeinfo authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Info } from './types'; diff --git a/packages/page-explorer/src/NodeInfo/types.ts b/packages/page-explorer/src/NodeInfo/types.ts index bc89c05e99..5dba5c43c3 100644 --- a/packages/page-explorer/src/NodeInfo/types.ts +++ b/packages/page-explorer/src/NodeInfo/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-nodeinfo authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, Extrinsic, Health, PeerInfo } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/Query.tsx b/packages/page-explorer/src/Query.tsx index e52ec1e306..c6b34e6868 100644 --- a/packages/page-explorer/src/Query.tsx +++ b/packages/page-explorer/src/Query.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/page-explorer/src/Summary.tsx b/packages/page-explorer/src/Summary.tsx index 4bf8fbab14..8816b382a7 100644 --- a/packages/page-explorer/src/Summary.tsx +++ b/packages/page-explorer/src/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi } from '@polkadot/react-hooks'; diff --git a/packages/page-explorer/src/SummarySession.tsx b/packages/page-explorer/src/SummarySession.tsx index b830acdbab..eb38fc8925 100644 --- a/packages/page-explorer/src/SummarySession.tsx +++ b/packages/page-explorer/src/SummarySession.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionProgress } from '@polkadot/api-derive/types'; import { Forcing } from '@polkadot/types/interfaces'; diff --git a/packages/page-explorer/src/index.tsx b/packages/page-explorer/src/index.tsx index 91ef5cd7a2..f711078945 100644 --- a/packages/page-explorer/src/index.tsx +++ b/packages/page-explorer/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyedEvent } from '@polkadot/react-query/types'; diff --git a/packages/page-explorer/src/translate.ts b/packages/page-explorer/src/translate.ts index 8bd1bb16b5..1720b9bb4e 100644 --- a/packages/page-explorer/src/translate.ts +++ b/packages/page-explorer/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-extrinsics/src/Balance.tsx b/packages/page-extrinsics/src/Balance.tsx index 9f81a1c833..670d1b1cc2 100644 --- a/packages/page-extrinsics/src/Balance.tsx +++ b/packages/page-extrinsics/src/Balance.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { DeriveBalancesAll } from '@polkadot/api-derive/types'; diff --git a/packages/page-extrinsics/src/Selection.tsx b/packages/page-extrinsics/src/Selection.tsx index a5a2fadedb..a697201c9b 100644 --- a/packages/page-extrinsics/src/Selection.tsx +++ b/packages/page-extrinsics/src/Selection.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-extrinsics/src/index.tsx b/packages/page-extrinsics/src/index.tsx index 084942d27c..3f99da5bf3 100644 --- a/packages/page-extrinsics/src/index.tsx +++ b/packages/page-extrinsics/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-extrinsics/src/translate.ts b/packages/page-extrinsics/src/translate.ts index abd048e021..85b93ed1c4 100644 --- a/packages/page-extrinsics/src/translate.ts +++ b/packages/page-extrinsics/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-generic-asset/src/AssetCard.tsx b/packages/page-generic-asset/src/AssetCard.tsx index 4afe0ebb1a..203300344a 100644 --- a/packages/page-generic-asset/src/AssetCard.tsx +++ b/packages/page-generic-asset/src/AssetCard.tsx @@ -1,6 +1,5 @@ // Copyright 2019 @polkadot/app-generic-asset authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import { Card, Button } from '@polkadot/react-components'; diff --git a/packages/page-generic-asset/src/AssetRow.tsx b/packages/page-generic-asset/src/AssetRow.tsx index b8e1a57808..2520d62057 100644 --- a/packages/page-generic-asset/src/AssetRow.tsx +++ b/packages/page-generic-asset/src/AssetRow.tsx @@ -1,6 +1,5 @@ // Copyright 2019 @polkadot/app-generic-asset authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useState } from 'react'; import { CopyButton } from '@polkadot/react-components'; diff --git a/packages/page-generic-asset/src/Assets.tsx b/packages/page-generic-asset/src/Assets.tsx index 9636085649..429d5ff3e6 100644 --- a/packages/page-generic-asset/src/Assets.tsx +++ b/packages/page-generic-asset/src/Assets.tsx @@ -1,6 +1,5 @@ // Copyright 2019 @polkadot/app-generic-asset authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { I18nProps } from '@polkadot/react-components/types'; diff --git a/packages/page-generic-asset/src/Transfer.tsx b/packages/page-generic-asset/src/Transfer.tsx index 01649986e8..7122c1d0be 100644 --- a/packages/page-generic-asset/src/Transfer.tsx +++ b/packages/page-generic-asset/src/Transfer.tsx @@ -1,6 +1,5 @@ // Copyright 2019 @polkadot/app-generic-asset authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; diff --git a/packages/page-generic-asset/src/assetsRegistry.tsx b/packages/page-generic-asset/src/assetsRegistry.tsx index 8357c88e92..f076764cb4 100644 --- a/packages/page-generic-asset/src/assetsRegistry.tsx +++ b/packages/page-generic-asset/src/assetsRegistry.tsx @@ -1,6 +1,5 @@ // Copyright 2019 @polkadot/app-generic-asset authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BehaviorSubject } from 'rxjs'; diff --git a/packages/page-generic-asset/src/index.tsx b/packages/page-generic-asset/src/index.tsx index 055143a467..a72a1fba93 100644 --- a/packages/page-generic-asset/src/index.tsx +++ b/packages/page-generic-asset/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2019 @polkadot/app-generic-asset authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useRef } from 'react'; import { Route, Switch } from 'react-router'; diff --git a/packages/page-generic-asset/src/modals/Create.tsx b/packages/page-generic-asset/src/modals/Create.tsx index 8c90f7cbbc..d534283f98 100644 --- a/packages/page-generic-asset/src/modals/Create.tsx +++ b/packages/page-generic-asset/src/modals/Create.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-address-book authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useState } from 'react'; diff --git a/packages/page-generic-asset/src/translate.ts b/packages/page-generic-asset/src/translate.ts index 422b042ac8..ee2c388529 100644 --- a/packages/page-generic-asset/src/translate.ts +++ b/packages/page-generic-asset/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2019 @polkadot/app-generic-asset authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/page-js/src/ActionButtons.tsx b/packages/page-js/src/ActionButtons.tsx index a9178e05f4..7e4e7e2dae 100644 --- a/packages/page-js/src/ActionButtons.tsx +++ b/packages/page-js/src/ActionButtons.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import { Button, Input, Popup } from '@polkadot/react-components'; diff --git a/packages/page-js/src/Output.tsx b/packages/page-js/src/Output.tsx index df241b27a5..63d23f0df8 100644 --- a/packages/page-js/src/Output.tsx +++ b/packages/page-js/src/Output.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Log } from './types'; diff --git a/packages/page-js/src/Playground.tsx b/packages/page-js/src/Playground.tsx index f8ff381fb2..7e65940b3a 100644 --- a/packages/page-js/src/Playground.tsx +++ b/packages/page-js/src/Playground.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiPromise } from '@polkadot/api'; import { KeyringInstance } from '@polkadot/keyring/types'; diff --git a/packages/page-js/src/constants.tsx b/packages/page-js/src/constants.tsx index b07227c1e0..8dc84b89f8 100644 --- a/packages/page-js/src/constants.tsx +++ b/packages/page-js/src/constants.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import type { StrictLabelProps } from 'semantic-ui-react/dist/commonjs/elements/Label'; diff --git a/packages/page-js/src/index.tsx b/packages/page-js/src/index.tsx index fdec61e21a..717f9515b6 100644 --- a/packages/page-js/src/index.tsx +++ b/packages/page-js/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-js/src/snippets/consts-examples.ts b/packages/page-js/src/snippets/consts-examples.ts index 3af458ee19..008c259b54 100644 --- a/packages/page-js/src/snippets/consts-examples.ts +++ b/packages/page-js/src/snippets/consts-examples.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Snippet } from '@polkadot/app-js/types'; diff --git a/packages/page-js/src/snippets/extrinsics-examples.ts b/packages/page-js/src/snippets/extrinsics-examples.ts index 322ca52187..43aab5366a 100644 --- a/packages/page-js/src/snippets/extrinsics-examples.ts +++ b/packages/page-js/src/snippets/extrinsics-examples.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Snippet } from '@polkadot/app-js/types'; diff --git a/packages/page-js/src/snippets/index.ts b/packages/page-js/src/snippets/index.ts index 647a059d41..e512c345d6 100644 --- a/packages/page-js/src/snippets/index.ts +++ b/packages/page-js/src/snippets/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Snippet } from './../types'; diff --git a/packages/page-js/src/snippets/rpc-examples.ts b/packages/page-js/src/snippets/rpc-examples.ts index 4b557f5c06..cbdc3dbf0a 100644 --- a/packages/page-js/src/snippets/rpc-examples.ts +++ b/packages/page-js/src/snippets/rpc-examples.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Snippet } from '@polkadot/app-js/types'; diff --git a/packages/page-js/src/snippets/storage-examples.ts b/packages/page-js/src/snippets/storage-examples.ts index e5b5017dd4..9bb6476ec1 100644 --- a/packages/page-js/src/snippets/storage-examples.ts +++ b/packages/page-js/src/snippets/storage-examples.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Snippet } from '@polkadot/app-js/types'; diff --git a/packages/page-js/src/snippets/transfer.ts b/packages/page-js/src/snippets/transfer.ts index 7441ca61dc..1065671281 100644 --- a/packages/page-js/src/snippets/transfer.ts +++ b/packages/page-js/src/snippets/transfer.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export default `// transfer const sender = '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'; diff --git a/packages/page-js/src/snippets/wrapping.ts b/packages/page-js/src/snippets/wrapping.ts index a273b6e5d0..c67fe57ee2 100644 --- a/packages/page-js/src/snippets/wrapping.ts +++ b/packages/page-js/src/snippets/wrapping.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export default function makeWrapper (isDevelopment: boolean): string { const args = `api, hashing, ${isDevelopment ? 'keyring, ' : ''}types, util`; diff --git a/packages/page-js/src/translate.ts b/packages/page-js/src/translate.ts index 0bca0fb789..0a80b51bf8 100644 --- a/packages/page-js/src/translate.ts +++ b/packages/page-js/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-js/src/types.ts b/packages/page-js/src/types.ts index 1a6173c22c..cf62f01801 100644 --- a/packages/page-js/src/types.ts +++ b/packages/page-js/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import type { SemanticShorthandItem } from 'semantic-ui-react/dist/commonjs/generic'; import type { LabelProps } from 'semantic-ui-react/dist/commonjs/elements/Label'; diff --git a/packages/page-parachains/src/Overview/Parachain.tsx b/packages/page-parachains/src/Overview/Parachain.tsx index dc3c74081c..cce66778ce 100644 --- a/packages/page-parachains/src/Overview/Parachain.tsx +++ b/packages/page-parachains/src/Overview/Parachain.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { HeadData } from '@polkadot/types/interfaces'; import { DeriveParachain } from '@polkadot/api-derive/types'; diff --git a/packages/page-parachains/src/Overview/Parachains.tsx b/packages/page-parachains/src/Overview/Parachains.tsx index ef102c3667..108bc3aa5e 100644 --- a/packages/page-parachains/src/Overview/Parachains.tsx +++ b/packages/page-parachains/src/Overview/Parachains.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveParachain } from '@polkadot/api-derive/types'; diff --git a/packages/page-parachains/src/Overview/Proposal.tsx b/packages/page-parachains/src/Overview/Proposal.tsx index d512226020..f99e6fb8b7 100644 --- a/packages/page-parachains/src/Overview/Proposal.tsx +++ b/packages/page-parachains/src/Overview/Proposal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ProposalExt } from './types'; diff --git a/packages/page-parachains/src/Overview/Proposals.tsx b/packages/page-parachains/src/Overview/Proposals.tsx index 01b7b21e08..fbeb707fb4 100644 --- a/packages/page-parachains/src/Overview/Proposals.tsx +++ b/packages/page-parachains/src/Overview/Proposals.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ProposalExt } from './types'; diff --git a/packages/page-parachains/src/Overview/Register.tsx b/packages/page-parachains/src/Overview/Register.tsx index c34a17e4e1..4d929c36cd 100644 --- a/packages/page-parachains/src/Overview/Register.tsx +++ b/packages/page-parachains/src/Overview/Register.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ParaInfo } from '@polkadot/types/interfaces'; import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; diff --git a/packages/page-parachains/src/Overview/Summary.tsx b/packages/page-parachains/src/Overview/Summary.tsx index da15dc12e2..a1c91d05ac 100644 --- a/packages/page-parachains/src/Overview/Summary.tsx +++ b/packages/page-parachains/src/Overview/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React from 'react'; diff --git a/packages/page-parachains/src/Overview/index.tsx b/packages/page-parachains/src/Overview/index.tsx index 161a3cf32a..dd2f4fe1f6 100644 --- a/packages/page-parachains/src/Overview/index.tsx +++ b/packages/page-parachains/src/Overview/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveParachain } from '@polkadot/api-derive/types'; import { ParaId, ParachainProposal } from '@polkadot/types/interfaces'; diff --git a/packages/page-parachains/src/Overview/types.ts b/packages/page-parachains/src/Overview/types.ts index 7a1892598f..855eb12b3b 100644 --- a/packages/page-parachains/src/Overview/types.ts +++ b/packages/page-parachains/src/Overview/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ParaId, ParachainProposal } from '@polkadot/types/interfaces'; diff --git a/packages/page-parachains/src/Parachain/Deregister.tsx b/packages/page-parachains/src/Parachain/Deregister.tsx index f5dbcf57c1..a5dec0188b 100644 --- a/packages/page-parachains/src/Parachain/Deregister.tsx +++ b/packages/page-parachains/src/Parachain/Deregister.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveParachainInfo } from '@polkadot/api-derive/types'; import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; diff --git a/packages/page-parachains/src/Parachain/Details.tsx b/packages/page-parachains/src/Parachain/Details.tsx index a95dfaa45d..9b38ac3612 100644 --- a/packages/page-parachains/src/Parachain/Details.tsx +++ b/packages/page-parachains/src/Parachain/Details.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveParachainFull } from '@polkadot/api-derive/types'; import { Bytes, Option } from '@polkadot/types'; diff --git a/packages/page-parachains/src/Parachain/DispatchQueue.tsx b/packages/page-parachains/src/Parachain/DispatchQueue.tsx index 6588719d02..f67b68516d 100644 --- a/packages/page-parachains/src/Parachain/DispatchQueue.tsx +++ b/packages/page-parachains/src/Parachain/DispatchQueue.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { UpwardMessage } from '@polkadot/types/interfaces'; diff --git a/packages/page-parachains/src/Parachain/index.tsx b/packages/page-parachains/src/Parachain/index.tsx index 778de7d47b..d505ee22f4 100644 --- a/packages/page-parachains/src/Parachain/index.tsx +++ b/packages/page-parachains/src/Parachain/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveParachainInfo, DeriveParachainFull } from '@polkadot/api-derive/types'; diff --git a/packages/page-parachains/src/ParachainInfo.tsx b/packages/page-parachains/src/ParachainInfo.tsx index caa66eb472..5c26116a01 100644 --- a/packages/page-parachains/src/ParachainInfo.tsx +++ b/packages/page-parachains/src/ParachainInfo.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveParachainInfo } from '@polkadot/api-derive/types'; diff --git a/packages/page-parachains/src/Transfer.tsx b/packages/page-parachains/src/Transfer.tsx index f5429a88b1..7d17397613 100644 --- a/packages/page-parachains/src/Transfer.tsx +++ b/packages/page-parachains/src/Transfer.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { DeriveParachain } from '@polkadot/api-derive/types'; diff --git a/packages/page-parachains/src/index.tsx b/packages/page-parachains/src/index.tsx index 23606a4aa9..26050c85e3 100644 --- a/packages/page-parachains/src/index.tsx +++ b/packages/page-parachains/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveParachainInfo } from '@polkadot/api-derive/types'; diff --git a/packages/page-parachains/src/translate.ts b/packages/page-parachains/src/translate.ts index 08ff4d1303..e8e9b98843 100644 --- a/packages/page-parachains/src/translate.ts +++ b/packages/page-parachains/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-parachains/src/util.ts b/packages/page-parachains/src/util.ts index df669f8ddb..95ca752c8d 100644 --- a/packages/page-parachains/src/util.ts +++ b/packages/page-parachains/src/util.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TFunction } from 'i18next'; import { DeriveParachainInfo } from '@polkadot/api-derive/types'; diff --git a/packages/page-poll/src/index.tsx b/packages/page-poll/src/index.tsx index 7bbc70b18c..303fdee767 100644 --- a/packages/page-poll/src/index.tsx +++ b/packages/page-poll/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-poll authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Approvals, Balance, BlockNumber } from '@polkadot/types/interfaces'; import { ITuple } from '@polkadot/types/types'; diff --git a/packages/page-poll/src/translate.ts b/packages/page-poll/src/translate.ts index c1e6e065c5..00e9dc8844 100644 --- a/packages/page-poll/src/translate.ts +++ b/packages/page-poll/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-poll authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-rpc/src/Rpc/Account.tsx b/packages/page-rpc/src/Rpc/Account.tsx index d8f320545a..8b97aefbdb 100644 --- a/packages/page-rpc/src/Rpc/Account.tsx +++ b/packages/page-rpc/src/Rpc/Account.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-rpc authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useEffect, useState } from 'react'; diff --git a/packages/page-rpc/src/Rpc/Results.tsx b/packages/page-rpc/src/Rpc/Results.tsx index c21a666cfd..1bccf27917 100644 --- a/packages/page-rpc/src/Rpc/Results.tsx +++ b/packages/page-rpc/src/Rpc/Results.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-rpc authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueueTx } from '@polkadot/react-components/Status/types'; import { Codec } from '@polkadot/types/types'; diff --git a/packages/page-rpc/src/Rpc/Selection.tsx b/packages/page-rpc/src/Rpc/Selection.tsx index b566b5c10f..e576ede924 100644 --- a/packages/page-rpc/src/Rpc/Selection.tsx +++ b/packages/page-rpc/src/Rpc/Selection.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-rpc authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ParamDef, RawParam } from '@polkadot/react-params/types'; import { QueueTxRpcAdd } from '@polkadot/react-components/Status/types'; diff --git a/packages/page-rpc/src/Rpc/index.tsx b/packages/page-rpc/src/Rpc/index.tsx index b7aba076fb..eec9aec4ab 100644 --- a/packages/page-rpc/src/Rpc/index.tsx +++ b/packages/page-rpc/src/Rpc/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-rpc authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useContext } from 'react'; import { StatusContext } from '@polkadot/react-components'; diff --git a/packages/page-rpc/src/index.tsx b/packages/page-rpc/src/index.tsx index 51beb51e46..0615e2fe05 100644 --- a/packages/page-rpc/src/index.tsx +++ b/packages/page-rpc/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-rpc authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-rpc/src/translate.ts b/packages/page-rpc/src/translate.ts index 9a892aedf8..2b787d6824 100644 --- a/packages/page-rpc/src/translate.ts +++ b/packages/page-rpc/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-rpc authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-settings/src/Developer.tsx b/packages/page-settings/src/Developer.tsx index 50c9245e8e..ea024260fa 100644 --- a/packages/page-settings/src/Developer.tsx +++ b/packages/page-settings/src/Developer.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionStatus } from '@polkadot/react-components/Status/types'; diff --git a/packages/page-settings/src/General.tsx b/packages/page-settings/src/General.tsx index 8ffa2681ed..93aa675147 100644 --- a/packages/page-settings/src/General.tsx +++ b/packages/page-settings/src/General.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Option } from '@polkadot/apps-config/settings/types'; diff --git a/packages/page-settings/src/I18n/StringInput.tsx b/packages/page-settings/src/I18n/StringInput.tsx index f0a8d7daf2..84561cc024 100644 --- a/packages/page-settings/src/I18n/StringInput.tsx +++ b/packages/page-settings/src/I18n/StringInput.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/page-settings/src/I18n/index.tsx b/packages/page-settings/src/I18n/index.tsx index a8ba3db6b9..b2b6963994 100644 --- a/packages/page-settings/src/I18n/index.tsx +++ b/packages/page-settings/src/I18n/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import FileSaver from 'file-saver'; import React, { useCallback, useEffect, useState } from 'react'; diff --git a/packages/page-settings/src/Metadata/ChainColorIndicator.tsx b/packages/page-settings/src/Metadata/ChainColorIndicator.tsx index b6feeb8e32..72be91fcf6 100644 --- a/packages/page-settings/src/Metadata/ChainColorIndicator.tsx +++ b/packages/page-settings/src/Metadata/ChainColorIndicator.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/page-settings/src/Metadata/Extensions.tsx b/packages/page-settings/src/Metadata/Extensions.tsx index e804105abf..b3f9fb4ce5 100644 --- a/packages/page-settings/src/Metadata/Extensions.tsx +++ b/packages/page-settings/src/Metadata/Extensions.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ChainInfo } from '../types'; diff --git a/packages/page-settings/src/Metadata/NetworkSpecs.tsx b/packages/page-settings/src/Metadata/NetworkSpecs.tsx index 99f66938d8..d8d859eadd 100644 --- a/packages/page-settings/src/Metadata/NetworkSpecs.tsx +++ b/packages/page-settings/src/Metadata/NetworkSpecs.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ChainInfo } from '../types'; diff --git a/packages/page-settings/src/Metadata/iconOption.tsx b/packages/page-settings/src/Metadata/iconOption.tsx index fa04a1dfb0..718b61823b 100644 --- a/packages/page-settings/src/Metadata/iconOption.tsx +++ b/packages/page-settings/src/Metadata/iconOption.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/page-settings/src/Metadata/index.tsx b/packages/page-settings/src/Metadata/index.tsx index 8b0879d6f7..892a2c0316 100644 --- a/packages/page-settings/src/Metadata/index.tsx +++ b/packages/page-settings/src/Metadata/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi } from '@polkadot/react-hooks'; diff --git a/packages/page-settings/src/index.tsx b/packages/page-settings/src/index.tsx index 982f35a3eb..ef3e0aa9f2 100644 --- a/packages/page-settings/src/index.tsx +++ b/packages/page-settings/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-settings/src/translate.ts b/packages/page-settings/src/translate.ts index 939a2094e3..d6efc80cdd 100644 --- a/packages/page-settings/src/translate.ts +++ b/packages/page-settings/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-settings/src/types.ts b/packages/page-settings/src/types.ts index 467ed2ea6c..af03151710 100644 --- a/packages/page-settings/src/types.ts +++ b/packages/page-settings/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { MetadataDef } from '@polkadot/extension-inject/types'; diff --git a/packages/page-settings/src/useChainInfo.ts b/packages/page-settings/src/useChainInfo.ts index 72a34a04e8..f52e4ebefa 100644 --- a/packages/page-settings/src/useChainInfo.ts +++ b/packages/page-settings/src/useChainInfo.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ChainInfo } from './types'; diff --git a/packages/page-settings/src/useCounter.ts b/packages/page-settings/src/useCounter.ts index e40659ff64..acdd87e1db 100644 --- a/packages/page-settings/src/useCounter.ts +++ b/packages/page-settings/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import useExtensions from './useExtensions'; diff --git a/packages/page-settings/src/useExtensions.ts b/packages/page-settings/src/useExtensions.ts index 23832f16a6..14288f4348 100644 --- a/packages/page-settings/src/useExtensions.ts +++ b/packages/page-settings/src/useExtensions.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { InjectedExtension, InjectedMetadataKnown, MetadataDef } from '@polkadot/extension-inject/types'; diff --git a/packages/page-settings/src/util.tsx b/packages/page-settings/src/util.tsx index afa3759712..bc55be9257 100644 --- a/packages/page-settings/src/util.tsx +++ b/packages/page-settings/src/util.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-settings authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Option } from '@polkadot/apps-config/settings/types'; import { SettingsStruct } from '@polkadot/ui-settings/types'; diff --git a/packages/page-signing/src/Hash.tsx b/packages/page-signing/src/Hash.tsx index 4a8c88c471..7b2f91934c 100644 --- a/packages/page-signing/src/Hash.tsx +++ b/packages/page-signing/src/Hash.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-signing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import { Input, Output, Static } from '@polkadot/react-components'; diff --git a/packages/page-signing/src/Sign.tsx b/packages/page-signing/src/Sign.tsx index 8e9b6f29d1..8b4fff3b44 100644 --- a/packages/page-signing/src/Sign.tsx +++ b/packages/page-signing/src/Sign.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-signing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer } from '@polkadot/api/types'; import { KeyringPair } from '@polkadot/keyring/types'; diff --git a/packages/page-signing/src/Unlock.tsx b/packages/page-signing/src/Unlock.tsx index 0a6650e079..d6bef4962e 100644 --- a/packages/page-signing/src/Unlock.tsx +++ b/packages/page-signing/src/Unlock.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-signing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringPair } from '@polkadot/keyring/types'; diff --git a/packages/page-signing/src/Verify.tsx b/packages/page-signing/src/Verify.tsx index 8b24e5bc17..cafbbcb632 100644 --- a/packages/page-signing/src/Verify.tsx +++ b/packages/page-signing/src/Verify.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-signing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeypairType } from '@polkadot/util-crypto/types'; diff --git a/packages/page-signing/src/index.tsx b/packages/page-signing/src/index.tsx index 8a93d972a0..e6ab8401fd 100644 --- a/packages/page-signing/src/index.tsx +++ b/packages/page-signing/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-signing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-signing/src/translate.ts b/packages/page-signing/src/translate.ts index be415a95fd..ecfd93224f 100644 --- a/packages/page-signing/src/translate.ts +++ b/packages/page-signing/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-signing authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-society/src/Overview/Bid.tsx b/packages/page-society/src/Overview/Bid.tsx index 39df0b42b0..47dfca750d 100644 --- a/packages/page-society/src/Overview/Bid.tsx +++ b/packages/page-society/src/Overview/Bid.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Bid } from '@polkadot/types/interfaces'; diff --git a/packages/page-society/src/Overview/BidNew.tsx b/packages/page-society/src/Overview/BidNew.tsx index b7cf6c2d6d..76d492ea37 100644 --- a/packages/page-society/src/Overview/BidNew.tsx +++ b/packages/page-society/src/Overview/BidNew.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useState } from 'react'; diff --git a/packages/page-society/src/Overview/Bids.tsx b/packages/page-society/src/Overview/Bids.tsx index b7de5cb6e2..9279bcd81d 100644 --- a/packages/page-society/src/Overview/Bids.tsx +++ b/packages/page-society/src/Overview/Bids.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Bid } from '@polkadot/types/interfaces'; diff --git a/packages/page-society/src/Overview/Candidate.tsx b/packages/page-society/src/Overview/Candidate.tsx index 16d27293ff..0f35232f12 100644 --- a/packages/page-society/src/Overview/Candidate.tsx +++ b/packages/page-society/src/Overview/Candidate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSocietyCandidate } from '@polkadot/api-derive/types'; import { AccountId, SocietyVote } from '@polkadot/types/interfaces'; diff --git a/packages/page-society/src/Overview/CandidateVoting.tsx b/packages/page-society/src/Overview/CandidateVoting.tsx index fb96215e3b..9d61a4dae5 100644 --- a/packages/page-society/src/Overview/CandidateVoting.tsx +++ b/packages/page-society/src/Overview/CandidateVoting.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useRef, useState } from 'react'; import { useToggle } from '@polkadot/react-hooks'; diff --git a/packages/page-society/src/Overview/Candidates.tsx b/packages/page-society/src/Overview/Candidates.tsx index 56719e82b9..b3e4a762a5 100644 --- a/packages/page-society/src/Overview/Candidates.tsx +++ b/packages/page-society/src/Overview/Candidates.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSocietyCandidate } from '@polkadot/api-derive/types'; diff --git a/packages/page-society/src/Overview/Defender.tsx b/packages/page-society/src/Overview/Defender.tsx index a8fe3a741f..607cb2044a 100644 --- a/packages/page-society/src/Overview/Defender.tsx +++ b/packages/page-society/src/Overview/Defender.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSociety, DeriveSocietyMember } from '@polkadot/api-derive/types'; import { SocietyVote } from '@polkadot/types/interfaces'; diff --git a/packages/page-society/src/Overview/DefenderVoting.tsx b/packages/page-society/src/Overview/DefenderVoting.tsx index 18ea68e232..b1376c04f8 100644 --- a/packages/page-society/src/Overview/DefenderVoting.tsx +++ b/packages/page-society/src/Overview/DefenderVoting.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useRef, useState } from 'react'; import { useToggle } from '@polkadot/react-hooks'; diff --git a/packages/page-society/src/Overview/Member.tsx b/packages/page-society/src/Overview/Member.tsx index 3cedbfa0e7..7c3b207078 100644 --- a/packages/page-society/src/Overview/Member.tsx +++ b/packages/page-society/src/Overview/Member.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSocietyMember } from '@polkadot/api-derive/types'; diff --git a/packages/page-society/src/Overview/Members.tsx b/packages/page-society/src/Overview/Members.tsx index 8ea9a58d45..8ee2fe5c36 100644 --- a/packages/page-society/src/Overview/Members.tsx +++ b/packages/page-society/src/Overview/Members.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSociety, DeriveSocietyMember } from '@polkadot/api-derive/types'; diff --git a/packages/page-society/src/Overview/Summary.tsx b/packages/page-society/src/Overview/Summary.tsx index 0c789b080d..e1eebbd225 100644 --- a/packages/page-society/src/Overview/Summary.tsx +++ b/packages/page-society/src/Overview/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSociety } from '@polkadot/api-derive/types'; import { BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/page-society/src/Overview/Votes.tsx b/packages/page-society/src/Overview/Votes.tsx index 94c7ed6c9e..c49a8f175e 100644 --- a/packages/page-society/src/Overview/Votes.tsx +++ b/packages/page-society/src/Overview/Votes.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { VoteSplit, VoteType } from '../types'; diff --git a/packages/page-society/src/Overview/VotesExpander.tsx b/packages/page-society/src/Overview/VotesExpander.tsx index 25ccc78ce5..9355787f8e 100644 --- a/packages/page-society/src/Overview/VotesExpander.tsx +++ b/packages/page-society/src/Overview/VotesExpander.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { VoteType } from '../types'; diff --git a/packages/page-society/src/Overview/index.tsx b/packages/page-society/src/Overview/index.tsx index 0b7c26411d..d7ace4346b 100644 --- a/packages/page-society/src/Overview/index.tsx +++ b/packages/page-society/src/Overview/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSociety } from '@polkadot/api-derive/types'; diff --git a/packages/page-society/src/draw/canary.ts b/packages/page-society/src/draw/canary.ts index 5fb8513d7e..740fb71d41 100644 --- a/packages/page-society/src/draw/canary.ts +++ b/packages/page-society/src/draw/canary.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // Adapted (wih permission) from https://www.w3schools.com/code/tryit.asp?filename=GGIGKE2GG7N1 diff --git a/packages/page-society/src/index.tsx b/packages/page-society/src/index.tsx index c97a3187bf..5b9cea7919 100644 --- a/packages/page-society/src/index.tsx +++ b/packages/page-society/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useRef } from 'react'; import { Route, Switch } from 'react-router'; diff --git a/packages/page-society/src/translate.ts b/packages/page-society/src/translate.ts index 453ac62692..11dcb9681c 100644 --- a/packages/page-society/src/translate.ts +++ b/packages/page-society/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-society/src/types.ts b/packages/page-society/src/types.ts index 37f6a15ae2..63afaa01b7 100644 --- a/packages/page-society/src/types.ts +++ b/packages/page-society/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SocietyVote } from '@polkadot/types/interfaces'; diff --git a/packages/page-society/src/useCounter.ts b/packages/page-society/src/useCounter.ts index 21004d46dd..dd213d565e 100644 --- a/packages/page-society/src/useCounter.ts +++ b/packages/page-society/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Bid } from '@polkadot/types/interfaces'; diff --git a/packages/page-society/src/useMembers.ts b/packages/page-society/src/useMembers.ts index f152d683ad..458dfbd431 100644 --- a/packages/page-society/src/useMembers.ts +++ b/packages/page-society/src/useMembers.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-society authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSocietyMember } from '@polkadot/api-derive/types'; import { OwnMembers } from './types'; diff --git a/packages/page-staking/src/Actions/Account/BondExtra.tsx b/packages/page-staking/src/Actions/Account/BondExtra.tsx index c4e1872e21..a969df0dcf 100644 --- a/packages/page-staking/src/Actions/Account/BondExtra.tsx +++ b/packages/page-staking/src/Actions/Account/BondExtra.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll, DeriveStakingAccount } from '@polkadot/api-derive/types'; import { AmountValidateState } from '../types'; diff --git a/packages/page-staking/src/Actions/Account/InjectKeys.tsx b/packages/page-staking/src/Actions/Account/InjectKeys.tsx index ab09eec681..99f3e827fc 100644 --- a/packages/page-staking/src/Actions/Account/InjectKeys.tsx +++ b/packages/page-staking/src/Actions/Account/InjectKeys.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeypairType } from '@polkadot/util-crypto/types'; diff --git a/packages/page-staking/src/Actions/Account/InputValidateAmount.tsx b/packages/page-staking/src/Actions/Account/InputValidateAmount.tsx index ba8a65be50..f308460f8e 100644 --- a/packages/page-staking/src/Actions/Account/InputValidateAmount.tsx +++ b/packages/page-staking/src/Actions/Account/InputValidateAmount.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AmountValidateState } from '../types'; diff --git a/packages/page-staking/src/Actions/Account/InputValidationController.tsx b/packages/page-staking/src/Actions/Account/InputValidationController.tsx index e005e67fb1..971890f4ae 100644 --- a/packages/page-staking/src/Actions/Account/InputValidationController.tsx +++ b/packages/page-staking/src/Actions/Account/InputValidationController.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AccountId, StakingLedger } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Actions/Account/InputValidationSessionKey.tsx b/packages/page-staking/src/Actions/Account/InputValidationSessionKey.tsx index b9fbb02ca5..909001f573 100644 --- a/packages/page-staking/src/Actions/Account/InputValidationSessionKey.tsx +++ b/packages/page-staking/src/Actions/Account/InputValidationSessionKey.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { I18nProps } from '@polkadot/react-components/types'; diff --git a/packages/page-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx b/packages/page-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx index 6985e2318c..39089b97f9 100644 --- a/packages/page-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx +++ b/packages/page-staking/src/Actions/Account/InputValidationUnstakeThreshold.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useEffect, useState } from 'react'; diff --git a/packages/page-staking/src/Actions/Account/ListNominees.tsx b/packages/page-staking/src/Actions/Account/ListNominees.tsx index 50845a2f7a..478325fef3 100644 --- a/packages/page-staking/src/Actions/Account/ListNominees.tsx +++ b/packages/page-staking/src/Actions/Account/ListNominees.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { AddressMini, Expander } from '@polkadot/react-components'; diff --git a/packages/page-staking/src/Actions/Account/Nominate.tsx b/packages/page-staking/src/Actions/Account/Nominate.tsx index 108912b626..4889c2f22d 100644 --- a/packages/page-staking/src/Actions/Account/Nominate.tsx +++ b/packages/page-staking/src/Actions/Account/Nominate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { NominateInfo } from '../partials/types'; import { SortedTargets } from '../../types'; diff --git a/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx b/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx index 5a0cad3767..5562e4eb43 100644 --- a/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx +++ b/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import { InputAddress, Modal, TxButton } from '@polkadot/react-components'; diff --git a/packages/page-staking/src/Actions/Account/SetRewardDestination.tsx b/packages/page-staking/src/Actions/Account/SetRewardDestination.tsx index aa2d0083d5..96d6f81ed1 100644 --- a/packages/page-staking/src/Actions/Account/SetRewardDestination.tsx +++ b/packages/page-staking/src/Actions/Account/SetRewardDestination.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { RewardDestination } from '@polkadot/types/interfaces'; import { DestinationType } from '../types'; diff --git a/packages/page-staking/src/Actions/Account/SetSessionKey.tsx b/packages/page-staking/src/Actions/Account/SetSessionKey.tsx index b7005c4b09..5d6c068870 100644 --- a/packages/page-staking/src/Actions/Account/SetSessionKey.tsx +++ b/packages/page-staking/src/Actions/Account/SetSessionKey.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SessionInfo } from '../partials/types'; diff --git a/packages/page-staking/src/Actions/Account/Unbond.tsx b/packages/page-staking/src/Actions/Account/Unbond.tsx index bfab8916f3..2dc4db5080 100644 --- a/packages/page-staking/src/Actions/Account/Unbond.tsx +++ b/packages/page-staking/src/Actions/Account/Unbond.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, StakingLedger } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Actions/Account/Validate.tsx b/packages/page-staking/src/Actions/Account/Validate.tsx index 461c2a845f..f0d831c193 100644 --- a/packages/page-staking/src/Actions/Account/Validate.tsx +++ b/packages/page-staking/src/Actions/Account/Validate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ValidateInfo } from '../partials/types'; diff --git a/packages/page-staking/src/Actions/Account/index.tsx b/packages/page-staking/src/Actions/Account/index.tsx index c76154f455..e88cad6938 100644 --- a/packages/page-staking/src/Actions/Account/index.tsx +++ b/packages/page-staking/src/Actions/Account/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll, DeriveStakingAccount } from '@polkadot/api-derive/types'; import { SlashingSpans, UnappliedSlash } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Actions/NewNominator.tsx b/packages/page-staking/src/Actions/NewNominator.tsx index 9263f24337..b5f73e0d78 100644 --- a/packages/page-staking/src/Actions/NewNominator.tsx +++ b/packages/page-staking/src/Actions/NewNominator.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BondInfo, NominateInfo } from './partials/types'; import { SortedTargets } from '../types'; diff --git a/packages/page-staking/src/Actions/NewStash.tsx b/packages/page-staking/src/Actions/NewStash.tsx index 7c8d9d25f2..a33e981757 100644 --- a/packages/page-staking/src/Actions/NewStash.tsx +++ b/packages/page-staking/src/Actions/NewStash.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BondInfo } from './partials/types'; diff --git a/packages/page-staking/src/Actions/NewValidator.tsx b/packages/page-staking/src/Actions/NewValidator.tsx index d3d6985e07..0015b93dff 100644 --- a/packages/page-staking/src/Actions/NewValidator.tsx +++ b/packages/page-staking/src/Actions/NewValidator.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BondInfo, SessionInfo, ValidateInfo } from './partials/types'; diff --git a/packages/page-staking/src/Actions/destOptions.tsx b/packages/page-staking/src/Actions/destOptions.tsx index 46ff2ef8be..55daf1b156 100644 --- a/packages/page-staking/src/Actions/destOptions.tsx +++ b/packages/page-staking/src/Actions/destOptions.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TFunction } from 'i18next'; diff --git a/packages/page-staking/src/Actions/index.tsx b/packages/page-staking/src/Actions/index.tsx index 9605398660..a491892e95 100644 --- a/packages/page-staking/src/Actions/index.tsx +++ b/packages/page-staking/src/Actions/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StakerState } from '@polkadot/react-hooks/types'; import { SortedTargets } from '../types'; diff --git a/packages/page-staking/src/Actions/partials/Bond.tsx b/packages/page-staking/src/Actions/partials/Bond.tsx index 3e32d08a5a..7d0a2b0738 100644 --- a/packages/page-staking/src/Actions/partials/Bond.tsx +++ b/packages/page-staking/src/Actions/partials/Bond.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AmountValidateState, DestinationType } from '../types'; diff --git a/packages/page-staking/src/Actions/partials/Nominate.tsx b/packages/page-staking/src/Actions/partials/Nominate.tsx index 12b159fe82..93d8d1c825 100644 --- a/packages/page-staking/src/Actions/partials/Nominate.tsx +++ b/packages/page-staking/src/Actions/partials/Nominate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { NominateInfo } from './types'; import { SortedTargets } from '../../types'; diff --git a/packages/page-staking/src/Actions/partials/SessionKey.tsx b/packages/page-staking/src/Actions/partials/SessionKey.tsx index 327ee4784c..d8b61c22f2 100644 --- a/packages/page-staking/src/Actions/partials/SessionKey.tsx +++ b/packages/page-staking/src/Actions/partials/SessionKey.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SessionInfo } from './types'; diff --git a/packages/page-staking/src/Actions/partials/Validate.tsx b/packages/page-staking/src/Actions/partials/Validate.tsx index ffa21fd720..013858846f 100644 --- a/packages/page-staking/src/Actions/partials/Validate.tsx +++ b/packages/page-staking/src/Actions/partials/Validate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ValidateInfo } from './types'; diff --git a/packages/page-staking/src/Actions/partials/types.ts b/packages/page-staking/src/Actions/partials/types.ts index b14523d4d6..a0069d9df3 100644 --- a/packages/page-staking/src/Actions/partials/types.ts +++ b/packages/page-staking/src/Actions/partials/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-staking/src/Actions/types.ts b/packages/page-staking/src/Actions/types.ts index 704ac25d8b..f68305ab0a 100644 --- a/packages/page-staking/src/Actions/types.ts +++ b/packages/page-staking/src/Actions/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Balance, UnappliedSlashOther } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Actions/useInactives.ts b/packages/page-staking/src/Actions/useInactives.ts index 1fea485ca4..25dcbc02b6 100644 --- a/packages/page-staking/src/Actions/useInactives.ts +++ b/packages/page-staking/src/Actions/useInactives.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionIndexes } from '@polkadot/api-derive/types'; import { EraIndex, Exposure, Nominations, SlashingSpans } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Actions/useUnbondDuration.ts b/packages/page-staking/src/Actions/useUnbondDuration.ts index 96765fda6f..13a6af70df 100644 --- a/packages/page-staking/src/Actions/useUnbondDuration.ts +++ b/packages/page-staking/src/Actions/useUnbondDuration.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionInfo } from '@polkadot/api-derive/types'; diff --git a/packages/page-staking/src/ElectionBanner.tsx b/packages/page-staking/src/ElectionBanner.tsx index 986b458f1d..d83e028c6e 100644 --- a/packages/page-staking/src/ElectionBanner.tsx +++ b/packages/page-staking/src/ElectionBanner.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/page-staking/src/Filtering.tsx b/packages/page-staking/src/Filtering.tsx index fa07c48a02..eacad814a0 100644 --- a/packages/page-staking/src/Filtering.tsx +++ b/packages/page-staking/src/Filtering.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import queryString from 'query-string'; import React, { useEffect } from 'react'; diff --git a/packages/page-staking/src/Ledgend.tsx b/packages/page-staking/src/Ledgend.tsx index 9d73a10265..12722b4183 100644 --- a/packages/page-staking/src/Ledgend.tsx +++ b/packages/page-staking/src/Ledgend.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/page-staking/src/MaxBadge.tsx b/packages/page-staking/src/MaxBadge.tsx index 2de9e9ba45..23b629de16 100644 --- a/packages/page-staking/src/MaxBadge.tsx +++ b/packages/page-staking/src/MaxBadge.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { Badge } from '@polkadot/react-components'; diff --git a/packages/page-staking/src/Overview/Address/Favorite.tsx b/packages/page-staking/src/Overview/Address/Favorite.tsx index a13dbadd38..2c29d2cd3a 100644 --- a/packages/page-staking/src/Overview/Address/Favorite.tsx +++ b/packages/page-staking/src/Overview/Address/Favorite.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/page-staking/src/Overview/Address/NominatedBy.tsx b/packages/page-staking/src/Overview/Address/NominatedBy.tsx index bde901e1f0..616a1ca8ab 100644 --- a/packages/page-staking/src/Overview/Address/NominatedBy.tsx +++ b/packages/page-staking/src/Overview/Address/NominatedBy.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EraIndex, SlashingSpans } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Overview/Address/StakeOther.tsx b/packages/page-staking/src/Overview/Address/StakeOther.tsx index 573b16dc7d..2f6da1c26a 100644 --- a/packages/page-staking/src/Overview/Address/StakeOther.tsx +++ b/packages/page-staking/src/Overview/Address/StakeOther.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Balance } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Overview/Address/Status.tsx b/packages/page-staking/src/Overview/Address/Status.tsx index e77e5afd1a..fce8448572 100644 --- a/packages/page-staking/src/Overview/Address/Status.tsx +++ b/packages/page-staking/src/Overview/Address/Status.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useMemo } from 'react'; diff --git a/packages/page-staking/src/Overview/Address/index.tsx b/packages/page-staking/src/Overview/Address/index.tsx index 5288170e76..0b152da957 100644 --- a/packages/page-staking/src/Overview/Address/index.tsx +++ b/packages/page-staking/src/Overview/Address/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Balance, EraIndex, SlashingSpans, ValidatorPrefs } from '@polkadot/types/interfaces'; import { DeriveAccountInfo } from '@polkadot/api-derive/types'; diff --git a/packages/page-staking/src/Overview/CurrentList.tsx b/packages/page-staking/src/Overview/CurrentList.tsx index 40b7abc70c..c56d66024f 100644 --- a/packages/page-staking/src/Overview/CurrentList.tsx +++ b/packages/page-staking/src/Overview/CurrentList.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveHeartbeats, DeriveStakingOverview } from '@polkadot/api-derive/types'; import { AccountId, EraIndex, Nominations } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Overview/Summary.tsx b/packages/page-staking/src/Overview/Summary.tsx index 92136fc9ff..4bd262ad81 100644 --- a/packages/page-staking/src/Overview/Summary.tsx +++ b/packages/page-staking/src/Overview/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakingOverview } from '@polkadot/api-derive/types'; diff --git a/packages/page-staking/src/Overview/index.tsx b/packages/page-staking/src/Overview/index.tsx index 28e7161ee9..4579659704 100644 --- a/packages/page-staking/src/Overview/index.tsx +++ b/packages/page-staking/src/Overview/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakingOverview } from '@polkadot/api-derive/types'; import { SortedTargets } from '../types'; diff --git a/packages/page-staking/src/Overview/types.ts b/packages/page-staking/src/Overview/types.ts index f9ce4ee373..a424670b6e 100644 --- a/packages/page-staking/src/Overview/types.ts +++ b/packages/page-staking/src/Overview/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export interface AddressDetails { address: string; diff --git a/packages/page-staking/src/Payouts/PayButton.tsx b/packages/page-staking/src/Payouts/PayButton.tsx index 1f354bc521..54caa56b16 100644 --- a/packages/page-staking/src/Payouts/PayButton.tsx +++ b/packages/page-staking/src/Payouts/PayButton.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { EraIndex } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Payouts/Stash.tsx b/packages/page-staking/src/Payouts/Stash.tsx index a758a0fc6a..a05440c4cd 100644 --- a/packages/page-staking/src/Payouts/Stash.tsx +++ b/packages/page-staking/src/Payouts/Stash.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { DeriveStakerReward, DeriveStakingAccount } from '@polkadot/api-derive/types'; diff --git a/packages/page-staking/src/Payouts/Validator.tsx b/packages/page-staking/src/Payouts/Validator.tsx index eff4195561..1b80fbd0d2 100644 --- a/packages/page-staking/src/Payouts/Validator.tsx +++ b/packages/page-staking/src/Payouts/Validator.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { PayoutValidator } from './types'; diff --git a/packages/page-staking/src/Payouts/index.tsx b/packages/page-staking/src/Payouts/index.tsx index 5fb997b130..b2a497e3cd 100644 --- a/packages/page-staking/src/Payouts/index.tsx +++ b/packages/page-staking/src/Payouts/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import type { TFunction } from 'i18next'; import { DeriveStakerReward } from '@polkadot/api-derive/types'; diff --git a/packages/page-staking/src/Payouts/types.ts b/packages/page-staking/src/Payouts/types.ts index e8e808668b..8d2f4cd7f5 100644 --- a/packages/page-staking/src/Payouts/types.ts +++ b/packages/page-staking/src/Payouts/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakerReward } from '@polkadot/api-derive/types'; import { Balance, EraIndex } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Payouts/useEraBlocks.ts b/packages/page-staking/src/Payouts/useEraBlocks.ts index eb39c4af0c..239a324d95 100644 --- a/packages/page-staking/src/Payouts/useEraBlocks.ts +++ b/packages/page-staking/src/Payouts/useEraBlocks.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Forcing } from '@polkadot/types/interfaces'; import { DeriveSessionProgress } from '@polkadot/api-derive/types'; diff --git a/packages/page-staking/src/Payouts/useStakerPayouts.ts b/packages/page-staking/src/Payouts/useStakerPayouts.ts index d507fe3798..025b43969a 100644 --- a/packages/page-staking/src/Payouts/useStakerPayouts.ts +++ b/packages/page-staking/src/Payouts/useStakerPayouts.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EraIndex } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Payouts/util.tsx b/packages/page-staking/src/Payouts/util.tsx index 2601b79c3a..264a2f1792 100644 --- a/packages/page-staking/src/Payouts/util.tsx +++ b/packages/page-staking/src/Payouts/util.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import BN from 'bn.js'; diff --git a/packages/page-staking/src/Query/ChartPoints.tsx b/packages/page-staking/src/Query/ChartPoints.tsx index 4b39a30110..ceccd4b3a1 100644 --- a/packages/page-staking/src/Query/ChartPoints.tsx +++ b/packages/page-staking/src/Query/ChartPoints.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakerPoints } from '@polkadot/api-derive/types'; import { ChartInfo, LineDataEntry, Props } from './types'; diff --git a/packages/page-staking/src/Query/ChartPrefs.tsx b/packages/page-staking/src/Query/ChartPrefs.tsx index 24fbc46bc9..ceefb5cfec 100644 --- a/packages/page-staking/src/Query/ChartPrefs.tsx +++ b/packages/page-staking/src/Query/ChartPrefs.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakerPrefs } from '@polkadot/api-derive/types'; import { ChartInfo, LineDataEntry, Props } from './types'; diff --git a/packages/page-staking/src/Query/ChartRewards.tsx b/packages/page-staking/src/Query/ChartRewards.tsx index adc06cb397..51e8a7270f 100644 --- a/packages/page-staking/src/Query/ChartRewards.tsx +++ b/packages/page-staking/src/Query/ChartRewards.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveEraRewards, DeriveOwnSlashes, DeriveStakerPoints } from '@polkadot/api-derive/types'; import { ChartInfo, LineDataEntry, Props } from './types'; diff --git a/packages/page-staking/src/Query/ChartStake.tsx b/packages/page-staking/src/Query/ChartStake.tsx index c7d4b95e59..bedb9c213d 100644 --- a/packages/page-staking/src/Query/ChartStake.tsx +++ b/packages/page-staking/src/Query/ChartStake.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveOwnExposure } from '@polkadot/api-derive/types'; import { ChartInfo, LineDataEntry, Props } from './types'; diff --git a/packages/page-staking/src/Query/Validator.tsx b/packages/page-staking/src/Query/Validator.tsx index 1f589ffd6f..b1fa01c03e 100644 --- a/packages/page-staking/src/Query/Validator.tsx +++ b/packages/page-staking/src/Query/Validator.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from './types'; diff --git a/packages/page-staking/src/Query/index.tsx b/packages/page-staking/src/Query/index.tsx index 36c25563c5..b27a7424f1 100644 --- a/packages/page-staking/src/Query/index.tsx +++ b/packages/page-staking/src/Query/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import { useParams } from 'react-router-dom'; diff --git a/packages/page-staking/src/Query/types.ts b/packages/page-staking/src/Query/types.ts index a46f67e61c..490eaca2df 100644 --- a/packages/page-staking/src/Query/types.ts +++ b/packages/page-staking/src/Query/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/page-staking/src/Query/useBlockCounts.tsx b/packages/page-staking/src/Query/useBlockCounts.tsx index 398d23655e..670cbcf847 100644 --- a/packages/page-staking/src/Query/useBlockCounts.tsx +++ b/packages/page-staking/src/Query/useBlockCounts.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionIndexes } from '@polkadot/api-derive/types'; import { SessionRewards } from '../types'; diff --git a/packages/page-staking/src/Query/util.ts b/packages/page-staking/src/Query/util.ts index 9b525397a3..1012fcf337 100644 --- a/packages/page-staking/src/Query/util.ts +++ b/packages/page-staking/src/Query/util.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/page-staking/src/Slashes/Era.tsx b/packages/page-staking/src/Slashes/Era.tsx index b51765fcf9..387f89958c 100644 --- a/packages/page-staking/src/Slashes/Era.tsx +++ b/packages/page-staking/src/Slashes/Era.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { SlashEra } from './types'; diff --git a/packages/page-staking/src/Slashes/Row.tsx b/packages/page-staking/src/Slashes/Row.tsx index 2b32cfa725..09ef9aea3e 100644 --- a/packages/page-staking/src/Slashes/Row.tsx +++ b/packages/page-staking/src/Slashes/Row.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Slash } from './types'; diff --git a/packages/page-staking/src/Slashes/Summary.tsx b/packages/page-staking/src/Slashes/Summary.tsx index 93f7860cd6..b6cc719726 100644 --- a/packages/page-staking/src/Slashes/Summary.tsx +++ b/packages/page-staking/src/Slashes/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionProgress } from '@polkadot/api-derive/types'; import { SlashEra } from './types'; diff --git a/packages/page-staking/src/Slashes/index.tsx b/packages/page-staking/src/Slashes/index.tsx index c2771104c2..4ba3b4ab18 100644 --- a/packages/page-staking/src/Slashes/index.tsx +++ b/packages/page-staking/src/Slashes/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StakerState } from '@polkadot/react-hooks/types'; import { UnappliedSlash } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Slashes/types.ts b/packages/page-staking/src/Slashes/types.ts index 05703f98d6..0fca9c9e98 100644 --- a/packages/page-staking/src/Slashes/types.ts +++ b/packages/page-staking/src/Slashes/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { UnappliedSlash } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Targets/Nominate.tsx b/packages/page-staking/src/Targets/Nominate.tsx index 8120211f36..6fdfec218d 100644 --- a/packages/page-staking/src/Targets/Nominate.tsx +++ b/packages/page-staking/src/Targets/Nominate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StakerState } from '@polkadot/react-hooks/types'; diff --git a/packages/page-staking/src/Targets/Summary.tsx b/packages/page-staking/src/Targets/Summary.tsx index a2beb504bc..351db54e2c 100644 --- a/packages/page-staking/src/Targets/Summary.tsx +++ b/packages/page-staking/src/Targets/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Balance } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Targets/Validator.tsx b/packages/page-staking/src/Targets/Validator.tsx index e1fbd03cc6..272566ea57 100644 --- a/packages/page-staking/src/Targets/Validator.tsx +++ b/packages/page-staking/src/Targets/Validator.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveAccountInfo } from '@polkadot/api-derive/types'; import { UnappliedSlash } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/Targets/index.tsx b/packages/page-staking/src/Targets/index.tsx index a8c1db4aa2..c594c8225d 100644 --- a/packages/page-staking/src/Targets/index.tsx +++ b/packages/page-staking/src/Targets/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakingOverview } from '@polkadot/api-derive/types'; import { StakerState } from '@polkadot/react-hooks/types'; diff --git a/packages/page-staking/src/Targets/useOwnNominators.ts b/packages/page-staking/src/Targets/useOwnNominators.ts index 22942e1bf5..b84c750df4 100644 --- a/packages/page-staking/src/Targets/useOwnNominators.ts +++ b/packages/page-staking/src/Targets/useOwnNominators.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StakerState } from '@polkadot/react-hooks/types'; diff --git a/packages/page-staking/src/constants.ts b/packages/page-staking/src/constants.ts index 46f86d0d9a..3cb8967949 100644 --- a/packages/page-staking/src/constants.ts +++ b/packages/page-staking/src/constants.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export const MAX_NOMINATIONS = 16; diff --git a/packages/page-staking/src/index.tsx b/packages/page-staking/src/index.tsx index 3c05a402fa..cc118a87e7 100644 --- a/packages/page-staking/src/index.tsx +++ b/packages/page-staking/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakingOverview } from '@polkadot/api-derive/types'; import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-staking/src/translate.ts b/packages/page-staking/src/translate.ts index 5a280dcc37..0a9b0c4f48 100644 --- a/packages/page-staking/src/translate.ts +++ b/packages/page-staking/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-staking/src/types.ts b/packages/page-staking/src/types.ts index 9faa26b277..e16e5df223 100644 --- a/packages/page-staking/src/types.ts +++ b/packages/page-staking/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Balance, BlockNumber, Exposure, Hash, SessionIndex, ValidatorPrefs, ValidatorPrefsTo196 } from '@polkadot/types/interfaces'; diff --git a/packages/page-staking/src/useSortedTargets.ts b/packages/page-staking/src/useSortedTargets.ts index 49c60aebf2..fb4111f792 100644 --- a/packages/page-staking/src/useSortedTargets.ts +++ b/packages/page-staking/src/useSortedTargets.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionIndexes, DeriveStakingElected, DeriveStakingWaiting } from '@polkadot/api-derive/types'; import { Balance, ValidatorPrefsTo196 } from '@polkadot/types/interfaces'; diff --git a/packages/page-storage/src/Queries.tsx b/packages/page-storage/src/Queries.tsx index 83c4762de5..5865621809 100644 --- a/packages/page-storage/src/Queries.tsx +++ b/packages/page-storage/src/Queries.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryTypes } from './types'; diff --git a/packages/page-storage/src/Query.tsx b/packages/page-storage/src/Query.tsx index 2a94542d69..3e5197afa2 100644 --- a/packages/page-storage/src/Query.tsx +++ b/packages/page-storage/src/Query.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryableStorageEntry } from '@polkadot/api/types'; import { RenderFn, DefaultProps, ComponentRenderer } from '@polkadot/react-api/hoc/types'; diff --git a/packages/page-storage/src/Selection/Consts.tsx b/packages/page-storage/src/Selection/Consts.tsx index 2ad1ba04ba..19bef47838 100644 --- a/packages/page-storage/src/Selection/Consts.tsx +++ b/packages/page-storage/src/Selection/Consts.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ConstantCodec } from '@polkadot/metadata/Decorated/types'; import { ConstValue } from '@polkadot/react-components/InputConsts/types'; diff --git a/packages/page-storage/src/Selection/Modules.tsx b/packages/page-storage/src/Selection/Modules.tsx index 6597d2b253..cdf2f9ab14 100644 --- a/packages/page-storage/src/Selection/Modules.tsx +++ b/packages/page-storage/src/Selection/Modules.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryableStorageEntry } from '@polkadot/api/types'; import { StorageEntryTypeLatest } from '@polkadot/types/interfaces'; diff --git a/packages/page-storage/src/Selection/Raw.tsx b/packages/page-storage/src/Selection/Raw.tsx index 93d0d6e4bf..4614b2ccc7 100644 --- a/packages/page-storage/src/Selection/Raw.tsx +++ b/packages/page-storage/src/Selection/Raw.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentProps as Props } from '../types'; diff --git a/packages/page-storage/src/Selection/index.tsx b/packages/page-storage/src/Selection/index.tsx index b1f2165ef7..6882e29103 100644 --- a/packages/page-storage/src/Selection/index.tsx +++ b/packages/page-storage/src/Selection/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryTypes, ParitalQueryTypes } from '../types'; diff --git a/packages/page-storage/src/index.tsx b/packages/page-storage/src/index.tsx index 1f07753a95..d1dd5a4b98 100644 --- a/packages/page-storage/src/index.tsx +++ b/packages/page-storage/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; import { QueryTypes } from './types'; diff --git a/packages/page-storage/src/translate.ts b/packages/page-storage/src/translate.ts index 7617b45081..f9aaa1ae76 100644 --- a/packages/page-storage/src/translate.ts +++ b/packages/page-storage/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-storage/src/types.ts b/packages/page-storage/src/types.ts index 6a62b74ea5..f550030ad4 100644 --- a/packages/page-storage/src/types.ts +++ b/packages/page-storage/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-storage authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryableStorageEntry } from '@polkadot/api/types'; import { ConstValue } from '@polkadot/react-components/InputConsts/types'; diff --git a/packages/page-sudo/src/SetKey.tsx b/packages/page-sudo/src/SetKey.tsx index 0b6662e75c..5694de979b 100644 --- a/packages/page-sudo/src/SetKey.tsx +++ b/packages/page-sudo/src/SetKey.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useEffect, useState } from 'react'; import { AddressMini, InputAddress, Labelled, TxButton } from '@polkadot/react-components'; diff --git a/packages/page-sudo/src/Sudo.tsx b/packages/page-sudo/src/Sudo.tsx index 078070a2f3..9c2a21b58c 100644 --- a/packages/page-sudo/src/Sudo.tsx +++ b/packages/page-sudo/src/Sudo.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-sudo/src/index.tsx b/packages/page-sudo/src/index.tsx index 515e802bc9..1b215bb586 100644 --- a/packages/page-sudo/src/index.tsx +++ b/packages/page-sudo/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-js authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AppProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/page-sudo/src/translate.ts b/packages/page-sudo/src/translate.ts index 169cf8ce73..151a9fdaab 100644 --- a/packages/page-sudo/src/translate.ts +++ b/packages/page-sudo/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-sudo authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-sudo/src/types.ts b/packages/page-sudo/src/types.ts index 420658dd9d..7277bf5e4f 100644 --- a/packages/page-sudo/src/types.ts +++ b/packages/page-sudo/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export interface ComponentProps { allAccounts: string[]; diff --git a/packages/page-tech-comm/src/Overview/Members.tsx b/packages/page-tech-comm/src/Overview/Members.tsx index 640cbe4966..f871ab74b0 100644 --- a/packages/page-tech-comm/src/Overview/Members.tsx +++ b/packages/page-tech-comm/src/Overview/Members.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/page-tech-comm/src/Overview/Summary.tsx b/packages/page-tech-comm/src/Overview/Summary.tsx index 18544eeff4..0600ffddea 100644 --- a/packages/page-tech-comm/src/Overview/Summary.tsx +++ b/packages/page-tech-comm/src/Overview/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentProps as Props } from '../types'; diff --git a/packages/page-tech-comm/src/Overview/index.tsx b/packages/page-tech-comm/src/Overview/index.tsx index 29302522a3..7409d97e7f 100644 --- a/packages/page-tech-comm/src/Overview/index.tsx +++ b/packages/page-tech-comm/src/Overview/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentProps as Props } from '../types'; diff --git a/packages/page-tech-comm/src/Proposals/Proposal.tsx b/packages/page-tech-comm/src/Proposals/Proposal.tsx index 25226bb72c..b2f5fe0644 100644 --- a/packages/page-tech-comm/src/Proposals/Proposal.tsx +++ b/packages/page-tech-comm/src/Proposals/Proposal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Hash, Proposal as ProposalType, Votes } from '@polkadot/types/interfaces'; diff --git a/packages/page-tech-comm/src/Proposals/Propose.tsx b/packages/page-tech-comm/src/Proposals/Propose.tsx index db1a9fdab5..f76680dbde 100644 --- a/packages/page-tech-comm/src/Proposals/Propose.tsx +++ b/packages/page-tech-comm/src/Proposals/Propose.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-tech-comm/src/Proposals/Voting.tsx b/packages/page-tech-comm/src/Proposals/Voting.tsx index 264caac5bc..388a7fa7a6 100644 --- a/packages/page-tech-comm/src/Proposals/Voting.tsx +++ b/packages/page-tech-comm/src/Proposals/Voting.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-tech-comm/src/Proposals/index.tsx b/packages/page-tech-comm/src/Proposals/index.tsx index 4cbbe7cb1a..360c05aaa6 100644 --- a/packages/page-tech-comm/src/Proposals/index.tsx +++ b/packages/page-tech-comm/src/Proposals/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; import { ComponentProps as Props } from '../types'; diff --git a/packages/page-tech-comm/src/index.tsx b/packages/page-tech-comm/src/index.tsx index c5dcd5305a..fcef29adb6 100644 --- a/packages/page-tech-comm/src/index.tsx +++ b/packages/page-tech-comm/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Option } from '@polkadot/types'; import { AccountId, Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-tech-comm/src/translate.ts b/packages/page-tech-comm/src/translate.ts index 202548a801..6d79378cb9 100644 --- a/packages/page-tech-comm/src/translate.ts +++ b/packages/page-tech-comm/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-tech-comm/src/types.ts b/packages/page-tech-comm/src/types.ts index 06889a9cd9..ef02e81f62 100644 --- a/packages/page-tech-comm/src/types.ts +++ b/packages/page-tech-comm/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-tech-comm/src/useCounter.ts b/packages/page-tech-comm/src/useCounter.ts index 057db158c9..762d45b412 100644 --- a/packages/page-tech-comm/src/useCounter.ts +++ b/packages/page-tech-comm/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-treasury/src/Overview/Council.tsx b/packages/page-treasury/src/Overview/Council.tsx index 4449862ef4..e3f9285bad 100644 --- a/packages/page-treasury/src/Overview/Council.tsx +++ b/packages/page-treasury/src/Overview/Council.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { ProposalIndex } from '@polkadot/types/interfaces'; diff --git a/packages/page-treasury/src/Overview/Proposal.tsx b/packages/page-treasury/src/Overview/Proposal.tsx index 5e7c610561..c04417c564 100644 --- a/packages/page-treasury/src/Overview/Proposal.tsx +++ b/packages/page-treasury/src/Overview/Proposal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveTreasuryProposal } from '@polkadot/api-derive/types'; diff --git a/packages/page-treasury/src/Overview/ProposalCreate.tsx b/packages/page-treasury/src/Overview/ProposalCreate.tsx index ca82483b21..3f2570e3fe 100644 --- a/packages/page-treasury/src/Overview/ProposalCreate.tsx +++ b/packages/page-treasury/src/Overview/ProposalCreate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useMemo, useState } from 'react'; diff --git a/packages/page-treasury/src/Overview/Proposals.tsx b/packages/page-treasury/src/Overview/Proposals.tsx index cee57ceee3..a249557dc5 100644 --- a/packages/page-treasury/src/Overview/Proposals.tsx +++ b/packages/page-treasury/src/Overview/Proposals.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveTreasuryProposal } from '@polkadot/api-derive/types'; diff --git a/packages/page-treasury/src/Overview/Summary.tsx b/packages/page-treasury/src/Overview/Summary.tsx index c92941fd05..e8aa18e572 100644 --- a/packages/page-treasury/src/Overview/Summary.tsx +++ b/packages/page-treasury/src/Overview/Summary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAccount } from '@polkadot/api-derive/types'; import { Balance } from '@polkadot/types/interfaces'; diff --git a/packages/page-treasury/src/Overview/index.tsx b/packages/page-treasury/src/Overview/index.tsx index 0279a13616..4284ab1e70 100644 --- a/packages/page-treasury/src/Overview/index.tsx +++ b/packages/page-treasury/src/Overview/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveTreasuryProposals } from '@polkadot/api-derive/types'; diff --git a/packages/page-treasury/src/Tips/Tip.tsx b/packages/page-treasury/src/Tips/Tip.tsx index 67090d5597..34a4655475 100644 --- a/packages/page-treasury/src/Tips/Tip.tsx +++ b/packages/page-treasury/src/Tips/Tip.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Balance, BlockNumber, OpenTip, OpenTipTo225 } from '@polkadot/types/interfaces'; diff --git a/packages/page-treasury/src/Tips/TipCreate.tsx b/packages/page-treasury/src/Tips/TipCreate.tsx index dc260a7332..89df626fe9 100644 --- a/packages/page-treasury/src/Tips/TipCreate.tsx +++ b/packages/page-treasury/src/Tips/TipCreate.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useEffect, useState } from 'react'; diff --git a/packages/page-treasury/src/Tips/TipEndorse.tsx b/packages/page-treasury/src/Tips/TipEndorse.tsx index fba684cad6..70094115c3 100644 --- a/packages/page-treasury/src/Tips/TipEndorse.tsx +++ b/packages/page-treasury/src/Tips/TipEndorse.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useState } from 'react'; diff --git a/packages/page-treasury/src/Tips/TipReason.tsx b/packages/page-treasury/src/Tips/TipReason.tsx index 5e2990897a..19a2555b1c 100644 --- a/packages/page-treasury/src/Tips/TipReason.tsx +++ b/packages/page-treasury/src/Tips/TipReason.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; diff --git a/packages/page-treasury/src/Tips/Tips.tsx b/packages/page-treasury/src/Tips/Tips.tsx index f244c8fcf0..d1504945c4 100644 --- a/packages/page-treasury/src/Tips/Tips.tsx +++ b/packages/page-treasury/src/Tips/Tips.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, OpenTip, OpenTipTo225 } from '@polkadot/types/interfaces'; diff --git a/packages/page-treasury/src/Tips/index.tsx b/packages/page-treasury/src/Tips/index.tsx index 39dfd9eb48..47c54b9482 100644 --- a/packages/page-treasury/src/Tips/index.tsx +++ b/packages/page-treasury/src/Tips/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; diff --git a/packages/page-treasury/src/index.tsx b/packages/page-treasury/src/index.tsx index 8fc94a9737..e8bec54bd1 100644 --- a/packages/page-treasury/src/index.tsx +++ b/packages/page-treasury/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useEffect, useMemo, useState } from 'react'; import { Route, Switch } from 'react-router'; diff --git a/packages/page-treasury/src/translate.ts b/packages/page-treasury/src/translate.ts index f73eefc222..cd2922c597 100644 --- a/packages/page-treasury/src/translate.ts +++ b/packages/page-treasury/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-explorer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next'; diff --git a/packages/page-treasury/src/useCounter.ts b/packages/page-treasury/src/useCounter.ts index 13597269d0..048da4f523 100644 --- a/packages/page-treasury/src/useCounter.ts +++ b/packages/page-treasury/src/useCounter.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-treasury authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveTreasuryProposals } from '@polkadot/api-derive/types'; diff --git a/packages/react-api/src/Api.tsx b/packages/react-api/src/Api.tsx index 1f9f6449f4..bc8289b49f 100644 --- a/packages/react-api/src/Api.tsx +++ b/packages/react-api/src/Api.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { InjectedExtension } from '@polkadot/extension-inject/types'; import { ChainProperties, ChainType } from '@polkadot/types/interfaces'; diff --git a/packages/react-api/src/ApiContext.ts b/packages/react-api/src/ApiContext.ts index 770212abf7..277feabbe7 100644 --- a/packages/react-api/src/ApiContext.ts +++ b/packages/react-api/src/ApiContext.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiProps } from './types'; diff --git a/packages/react-api/src/hoc/api.tsx b/packages/react-api/src/hoc/api.tsx index 0284f2d0f4..c14a27d307 100644 --- a/packages/react-api/src/hoc/api.tsx +++ b/packages/react-api/src/hoc/api.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiProps, SubtractProps } from '../types'; import { DefaultProps } from './types'; diff --git a/packages/react-api/src/hoc/call.tsx b/packages/react-api/src/hoc/call.tsx index 07b74f56d5..26029d09a2 100644 --- a/packages/react-api/src/hoc/call.tsx +++ b/packages/react-api/src/hoc/call.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // SInce this file is deemed deprecated (and awaiting removal), we just don't care diff --git a/packages/react-api/src/hoc/callDiv.tsx b/packages/react-api/src/hoc/callDiv.tsx index 8be6241cdb..07eb7ac403 100644 --- a/packages/react-api/src/hoc/callDiv.tsx +++ b/packages/react-api/src/hoc/callDiv.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DefaultProps, Options } from './types'; import { BaseProps } from '../types'; diff --git a/packages/react-api/src/hoc/calls.ts b/packages/react-api/src/hoc/calls.ts index 78ac2fe9dd..7ba7146bf6 100644 --- a/packages/react-api/src/hoc/calls.ts +++ b/packages/react-api/src/hoc/calls.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiProps, SubtractProps } from '../types'; import { Options } from './types'; diff --git a/packages/react-api/src/hoc/index.ts b/packages/react-api/src/hoc/index.ts index 41ac35f765..59e146a5f1 100644 --- a/packages/react-api/src/hoc/index.ts +++ b/packages/react-api/src/hoc/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as withApi } from './api'; export { default as withCall } from './call'; diff --git a/packages/react-api/src/hoc/multi.ts b/packages/react-api/src/hoc/multi.ts index c9c4267ad4..4dc61bf544 100644 --- a/packages/react-api/src/hoc/multi.ts +++ b/packages/react-api/src/hoc/multi.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-api/src/hoc/observable.tsx b/packages/react-api/src/hoc/observable.tsx index ff0f537df0..57adb89e6d 100644 --- a/packages/react-api/src/hoc/observable.tsx +++ b/packages/react-api/src/hoc/observable.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // TODO: Lots of duplicated code between this and withObservable, surely there is a better way of doing this? diff --git a/packages/react-api/src/hoc/onlyOn.tsx b/packages/react-api/src/hoc/onlyOn.tsx index 4b1e2cfc35..91b3b00eb2 100644 --- a/packages/react-api/src/hoc/onlyOn.tsx +++ b/packages/react-api/src/hoc/onlyOn.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentType } from 'react'; import { Environment } from '../types'; diff --git a/packages/react-api/src/hoc/types.ts b/packages/react-api/src/hoc/types.ts index 63014f14ae..b1e526a6ca 100644 --- a/packages/react-api/src/hoc/types.ts +++ b/packages/react-api/src/hoc/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { OnChangeCb } from '../types'; diff --git a/packages/react-api/src/index.ts b/packages/react-api/src/index.ts index 570d631080..69bc284124 100644 --- a/packages/react-api/src/index.ts +++ b/packages/react-api/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import Api, { api } from './Api'; import ApiContext from './ApiContext'; diff --git a/packages/react-api/src/ledger.ts b/packages/react-api/src/ledger.ts index eb87dd9d83..831cca89d7 100644 --- a/packages/react-api/src/ledger.ts +++ b/packages/react-api/src/ledger.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KUSAMA_GENESIS, POLKADOT_GENESIS } from '@polkadot/apps-config/api/constants'; import { Ledger } from '@polkadot/ui-keyring'; diff --git a/packages/react-api/src/transform/echo.ts b/packages/react-api/src/transform/echo.ts index 2e9a78c372..8faf51db08 100644 --- a/packages/react-api/src/transform/echo.ts +++ b/packages/react-api/src/transform/echo.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // eslint-disable-next-line @typescript-eslint/no-unused-vars export default function echoTransform (x: T, index: number): T { diff --git a/packages/react-api/src/typeRegistry.ts b/packages/react-api/src/typeRegistry.ts index 166778a45a..e817584f72 100644 --- a/packages/react-api/src/typeRegistry.ts +++ b/packages/react-api/src/typeRegistry.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeRegistry } from '@polkadot/types'; diff --git a/packages/react-api/src/types.ts b/packages/react-api/src/types.ts index 0892d3db3f..75e50b004f 100644 --- a/packages/react-api/src/types.ts +++ b/packages/react-api/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { InjectedExtension } from '@polkadot/extension-inject/types'; import { SubmittableExtrinsicFunction } from '@polkadot/api/promise/types'; diff --git a/packages/react-api/src/util/getEnvironment.ts b/packages/react-api/src/util/getEnvironment.ts index e07d8bc8ff..b9170313ea 100644 --- a/packages/react-api/src/util/getEnvironment.ts +++ b/packages/react-api/src/util/getEnvironment.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Environment } from '../types'; diff --git a/packages/react-api/src/util/historic.ts b/packages/react-api/src/util/historic.ts index 228bf68418..7a9ae28b31 100644 --- a/packages/react-api/src/util/historic.ts +++ b/packages/react-api/src/util/historic.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; import { Codec } from '@polkadot/types/types'; diff --git a/packages/react-api/src/util/index.ts b/packages/react-api/src/util/index.ts index 0f42075d1b..7182fdd2cc 100644 --- a/packages/react-api/src/util/index.ts +++ b/packages/react-api/src/util/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import getEnvironment from './getEnvironment'; import getHistoric from './historic'; diff --git a/packages/react-api/src/util/intervalObservable.ts b/packages/react-api/src/util/intervalObservable.ts index 85396bbc48..a6ea9ac4b5 100644 --- a/packages/react-api/src/util/intervalObservable.ts +++ b/packages/react-api/src/util/intervalObservable.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { CallState } from '../types'; diff --git a/packages/react-api/src/util/isEqual.ts b/packages/react-api/src/util/isEqual.ts index 0e9f9411fe..9485a76025 100644 --- a/packages/react-api/src/util/isEqual.ts +++ b/packages/react-api/src/util/isEqual.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 function flatten (key: string | null, value?: unknown): unknown { if (!value) { diff --git a/packages/react-api/src/util/triggerChange.ts b/packages/react-api/src/util/triggerChange.ts index 0f371c4e74..5a79f8319c 100644 --- a/packages/react-api/src/util/triggerChange.ts +++ b/packages/react-api/src/util/triggerChange.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { OnChangeCb } from '../types'; diff --git a/packages/react-api/test/enzyme.js b/packages/react-api/test/enzyme.js index ef94e07cf4..e75ba335f8 100644 --- a/packages/react-api/test/enzyme.js +++ b/packages/react-api/test/enzyme.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const Adapter = require('enzyme-adapter-react-16'); const Enzyme = require('enzyme'); diff --git a/packages/react-api/test/observable.js b/packages/react-api/test/observable.js index c88456d6ed..e7b6ef2468 100644 --- a/packages/react-api/test/observable.js +++ b/packages/react-api/test/observable.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-api authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const createObservable = require('@polkadot/api-rx/observable'); diff --git a/packages/react-api/webpack.config.js b/packages/react-api/webpack.config.js index 23a59b621d..b8c4b37a96 100644 --- a/packages/react-api/webpack.config.js +++ b/packages/react-api/webpack.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const ENV = process.env.NODE_ENV || 'development'; const isProd = ENV === 'production'; diff --git a/packages/react-components/src/AccountIndex.tsx b/packages/react-components/src/AccountIndex.tsx index c2209495a7..8250ce16a9 100644 --- a/packages/react-components/src/AccountIndex.tsx +++ b/packages/react-components/src/AccountIndex.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, Address } from '@polkadot/types/interfaces'; import { DeriveAccountInfo } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/AccountName.tsx b/packages/react-components/src/AccountName.tsx index 1f9c7a8a94..568ccff396 100644 --- a/packages/react-components/src/AccountName.tsx +++ b/packages/react-components/src/AccountName.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; import { DeriveAccountInfo, DeriveAccountRegistration } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/ActionItem.tsx b/packages/react-components/src/ActionItem.tsx index 029b9a16a7..f8bf3a63de 100644 --- a/packages/react-components/src/ActionItem.tsx +++ b/packages/react-components/src/ActionItem.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Proposal } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/AddressInfo.tsx b/packages/react-components/src/AddressInfo.tsx index 92c6f45ed4..203fb62aa0 100644 --- a/packages/react-components/src/AddressInfo.tsx +++ b/packages/react-components/src/AddressInfo.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll, DeriveDemocracyLock, DeriveStakingAccount } from '@polkadot/api-derive/types'; import { BlockNumber, LockIdentifier, ValidatorPrefsTo145 } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/AddressMini.tsx b/packages/react-components/src/AddressMini.tsx index 7c93562e16..7e777b84cf 100644 --- a/packages/react-components/src/AddressMini.tsx +++ b/packages/react-components/src/AddressMini.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/AddressRow.tsx b/packages/react-components/src/AddressRow.tsx index 3f4cab1352..5baccf6d1b 100644 --- a/packages/react-components/src/AddressRow.tsx +++ b/packages/react-components/src/AddressRow.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/AddressSmall.tsx b/packages/react-components/src/AddressSmall.tsx index 8e2005c3f3..7685ec1ab1 100644 --- a/packages/react-components/src/AddressSmall.tsx +++ b/packages/react-components/src/AddressSmall.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Address, AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/AddressToggle.tsx b/packages/react-components/src/AddressToggle.tsx index 152fbac71a..e7b63c4033 100644 --- a/packages/react-components/src/AddressToggle.tsx +++ b/packages/react-components/src/AddressToggle.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveAccountInfo } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/Available.tsx b/packages/react-components/src/Available.tsx index 49900c0967..599d235300 100644 --- a/packages/react-components/src/Available.tsx +++ b/packages/react-components/src/Available.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/AvatarItem.tsx b/packages/react-components/src/AvatarItem.tsx index b4605a8682..f3c856a1da 100644 --- a/packages/react-components/src/AvatarItem.tsx +++ b/packages/react-components/src/AvatarItem.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-parachains authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Badge.tsx b/packages/react-components/src/Badge.tsx index 0ef36f268b..1a0c05dee5 100644 --- a/packages/react-components/src/Badge.tsx +++ b/packages/react-components/src/Badge.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; diff --git a/packages/react-components/src/Balance.tsx b/packages/react-components/src/Balance.tsx index 6ab0d5a3e3..cd56f3d4d2 100644 --- a/packages/react-components/src/Balance.tsx +++ b/packages/react-components/src/Balance.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/Bonded.tsx b/packages/react-components/src/Bonded.tsx index 9f41dc1c29..d525a32448 100644 --- a/packages/react-components/src/Bonded.tsx +++ b/packages/react-components/src/Bonded.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/Button/Button.tsx b/packages/react-components/src/Button/Button.tsx index dee4c77c24..cbd32441ba 100644 --- a/packages/react-components/src/Button/Button.tsx +++ b/packages/react-components/src/Button/Button.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ButtonProps } from './types'; diff --git a/packages/react-components/src/Button/Group.tsx b/packages/react-components/src/Button/Group.tsx index 868f29ec27..22ecb29d8f 100644 --- a/packages/react-components/src/Button/Group.tsx +++ b/packages/react-components/src/Button/Group.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { GroupProps } from './types'; diff --git a/packages/react-components/src/Button/index.tsx b/packages/react-components/src/Button/index.tsx index 2eac47cd0a..11af920363 100644 --- a/packages/react-components/src/Button/index.tsx +++ b/packages/react-components/src/Button/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ButtonType } from './types'; diff --git a/packages/react-components/src/Button/types.ts b/packages/react-components/src/Button/types.ts index 86ca6b4e91..22123544d1 100644 --- a/packages/react-components/src/Button/types.ts +++ b/packages/react-components/src/Button/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; import { BareProps } from '../types'; diff --git a/packages/react-components/src/ButtonCancel.tsx b/packages/react-components/src/ButtonCancel.tsx index 9e0bd9e9d1..e386aaa12e 100644 --- a/packages/react-components/src/ButtonCancel.tsx +++ b/packages/react-components/src/ButtonCancel.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/Call.tsx b/packages/react-components/src/Call.tsx index f3cff57b43..f888a2dba5 100644 --- a/packages/react-components/src/Call.tsx +++ b/packages/react-components/src/Call.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Hash } from '@polkadot/types/interfaces'; import { Codec, IExtrinsic, IMethod, TypeDef } from '@polkadot/types/types'; diff --git a/packages/react-components/src/CallExpander.tsx b/packages/react-components/src/CallExpander.tsx index c8984a7709..3ec0351396 100644 --- a/packages/react-components/src/CallExpander.tsx +++ b/packages/react-components/src/CallExpander.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Call } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/Card.tsx b/packages/react-components/src/Card.tsx index b29102d562..e4a36c887e 100644 --- a/packages/react-components/src/Card.tsx +++ b/packages/react-components/src/Card.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/CardGrid.tsx b/packages/react-components/src/CardGrid.tsx index 3aa9fa21ff..c51c4c2c2d 100644 --- a/packages/react-components/src/CardGrid.tsx +++ b/packages/react-components/src/CardGrid.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/CardSummary.tsx b/packages/react-components/src/CardSummary.tsx index 830ce812d4..f842fca076 100644 --- a/packages/react-components/src/CardSummary.tsx +++ b/packages/react-components/src/CardSummary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React from 'react'; diff --git a/packages/react-components/src/ChainImg.tsx b/packages/react-components/src/ChainImg.tsx index bffbddf347..d82511e82d 100644 --- a/packages/react-components/src/ChainImg.tsx +++ b/packages/react-components/src/ChainImg.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useMemo } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/ChainLock.tsx b/packages/react-components/src/ChainLock.tsx index aea530904b..06ca0f43bd 100644 --- a/packages/react-components/src/ChainLock.tsx +++ b/packages/react-components/src/ChainLock.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useMemo } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Chart/Base.tsx b/packages/react-components/src/Chart/Base.tsx index c10e28ef64..792c0d0d57 100644 --- a/packages/react-components/src/Chart/Base.tsx +++ b/packages/react-components/src/Chart/Base.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BaseProps } from './types'; diff --git a/packages/react-components/src/Chart/Doughnut.tsx b/packages/react-components/src/Chart/Doughnut.tsx index b732a7522f..2666b6d296 100644 --- a/packages/react-components/src/Chart/Doughnut.tsx +++ b/packages/react-components/src/Chart/Doughnut.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DoughnutProps } from './types'; diff --git a/packages/react-components/src/Chart/HorizBar.tsx b/packages/react-components/src/Chart/HorizBar.tsx index c0215353f2..16f69f29e1 100644 --- a/packages/react-components/src/Chart/HorizBar.tsx +++ b/packages/react-components/src/Chart/HorizBar.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { HorizBarProps, HorizBarValue } from './types'; diff --git a/packages/react-components/src/Chart/Line.tsx b/packages/react-components/src/Chart/Line.tsx index ec642c75ce..83302d8b3f 100644 --- a/packages/react-components/src/Chart/Line.tsx +++ b/packages/react-components/src/Chart/Line.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { LineProps } from './types'; diff --git a/packages/react-components/src/Chart/index.ts b/packages/react-components/src/Chart/index.ts index f0ed77197c..3560a628c6 100644 --- a/packages/react-components/src/Chart/index.ts +++ b/packages/react-components/src/Chart/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import Doughnut from './Doughnut'; import HorizBar from './HorizBar'; diff --git a/packages/react-components/src/Chart/types.ts b/packages/react-components/src/Chart/types.ts index 50679e020f..efa03e1cae 100644 --- a/packages/react-components/src/Chart/types.ts +++ b/packages/react-components/src/Chart/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; diff --git a/packages/react-components/src/Checkbox.tsx b/packages/react-components/src/Checkbox.tsx index aada87cddb..32f1e4b34c 100644 --- a/packages/react-components/src/Checkbox.tsx +++ b/packages/react-components/src/Checkbox.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Collection.tsx b/packages/react-components/src/Collection.tsx index 8ae0f7b71f..b3c444d262 100644 --- a/packages/react-components/src/Collection.tsx +++ b/packages/react-components/src/Collection.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { I18nProps } from '@polkadot/react-components/types'; diff --git a/packages/react-components/src/Columar.tsx b/packages/react-components/src/Columar.tsx index 9fc3e2f8a2..ec15c3b059 100644 --- a/packages/react-components/src/Columar.tsx +++ b/packages/react-components/src/Columar.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Column.tsx b/packages/react-components/src/Column.tsx index f84643fb14..9a74997e6f 100644 --- a/packages/react-components/src/Column.tsx +++ b/packages/react-components/src/Column.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/ConvictionDropdown.tsx b/packages/react-components/src/ConvictionDropdown.tsx index fcf10e7825..201269371c 100644 --- a/packages/react-components/src/ConvictionDropdown.tsx +++ b/packages/react-components/src/ConvictionDropdown.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import { TFunction } from 'i18next'; diff --git a/packages/react-components/src/CopyButton.tsx b/packages/react-components/src/CopyButton.tsx index edb93b04f6..6b5d0d1d29 100644 --- a/packages/react-components/src/CopyButton.tsx +++ b/packages/react-components/src/CopyButton.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; diff --git a/packages/react-components/src/CryptoType.tsx b/packages/react-components/src/CryptoType.tsx index 5438cdeb52..d8c5a761a5 100644 --- a/packages/react-components/src/CryptoType.tsx +++ b/packages/react-components/src/CryptoType.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/DemocracyLocks.tsx b/packages/react-components/src/DemocracyLocks.tsx index 72bf018202..cc9f0dfa48 100644 --- a/packages/react-components/src/DemocracyLocks.tsx +++ b/packages/react-components/src/DemocracyLocks.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveDemocracyLock } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/Dropdown.tsx b/packages/react-components/src/Dropdown.tsx index ff4a4c27c3..aaa43738e1 100644 --- a/packages/react-components/src/Dropdown.tsx +++ b/packages/react-components/src/Dropdown.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useEffect, useRef, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/EditButton.tsx b/packages/react-components/src/EditButton.tsx index 7d40f1446b..6d89a609d3 100644 --- a/packages/react-components/src/EditButton.tsx +++ b/packages/react-components/src/EditButton.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; import { VoidFn } from './types'; diff --git a/packages/react-components/src/Editor.tsx b/packages/react-components/src/Editor.tsx index f6ca5dff7e..c4e5e8431e 100644 --- a/packages/react-components/src/Editor.tsx +++ b/packages/react-components/src/Editor.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // Something is seriously going wrong here... /* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */ diff --git a/packages/react-components/src/ErrorBoundary.tsx b/packages/react-components/src/ErrorBoundary.tsx index 75c7d1ff8d..3118b6f41d 100644 --- a/packages/react-components/src/ErrorBoundary.tsx +++ b/packages/react-components/src/ErrorBoundary.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { I18nProps } from './types'; diff --git a/packages/react-components/src/Event.tsx b/packages/react-components/src/Event.tsx index ccbdae436d..8d769246f3 100644 --- a/packages/react-components/src/Event.tsx +++ b/packages/react-components/src/Event.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Event } from '@polkadot/types/interfaces'; import { Codec, TypeDef } from '@polkadot/types/types'; diff --git a/packages/react-components/src/Expander.tsx b/packages/react-components/src/Expander.tsx index 264ecfc1b0..67a4d8730d 100644 --- a/packages/react-components/src/Expander.tsx +++ b/packages/react-components/src/Expander.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; import React, { useMemo } from 'react'; diff --git a/packages/react-components/src/Extrinsic.tsx b/packages/react-components/src/Extrinsic.tsx index e7a65725db..49a8d24cee 100644 --- a/packages/react-components/src/Extrinsic.tsx +++ b/packages/react-components/src/Extrinsic.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { RawParam } from '@polkadot/react-params/types'; diff --git a/packages/react-components/src/FilterOverlay.tsx b/packages/react-components/src/FilterOverlay.tsx index fedc1e1937..d681cbc5b0 100644 --- a/packages/react-components/src/FilterOverlay.tsx +++ b/packages/react-components/src/FilterOverlay.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Forget.tsx b/packages/react-components/src/Forget.tsx index 1648490be7..8855abf482 100644 --- a/packages/react-components/src/Forget.tsx +++ b/packages/react-components/src/Forget.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { AddressRow, Button, Modal } from '@polkadot/react-components'; diff --git a/packages/react-components/src/HelpOverlay.tsx b/packages/react-components/src/HelpOverlay.tsx index d91b58944e..d97c27c239 100644 --- a/packages/react-components/src/HelpOverlay.tsx +++ b/packages/react-components/src/HelpOverlay.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import ReactMd from 'react-markdown'; diff --git a/packages/react-components/src/Icon.tsx b/packages/react-components/src/Icon.tsx index f16b37b492..1ad59786d8 100644 --- a/packages/react-components/src/Icon.tsx +++ b/packages/react-components/src/Icon.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { IconName, library } from '@fortawesome/fontawesome-svg-core'; diff --git a/packages/react-components/src/IconLink.tsx b/packages/react-components/src/IconLink.tsx index 003fc58725..da7811e089 100644 --- a/packages/react-components/src/IconLink.tsx +++ b/packages/react-components/src/IconLink.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/IdentityIcon.tsx b/packages/react-components/src/IdentityIcon.tsx index 69e390083c..91dceb34d2 100644 --- a/packages/react-components/src/IdentityIcon.tsx +++ b/packages/react-components/src/IdentityIcon.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IdentityProps as Props } from '@polkadot/react-identicon/types'; diff --git a/packages/react-components/src/InfoForInput.tsx b/packages/react-components/src/InfoForInput.tsx index c2276a1ead..5a0086fcf8 100644 --- a/packages/react-components/src/InfoForInput.tsx +++ b/packages/react-components/src/InfoForInput.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Input.tsx b/packages/react-components/src/Input.tsx index 82daec1c6a..acd0d9348b 100644 --- a/packages/react-components/src/Input.tsx +++ b/packages/react-components/src/Input.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { VoidFn } from './types'; diff --git a/packages/react-components/src/InputAddress/KeyPair.tsx b/packages/react-components/src/InputAddress/KeyPair.tsx index 2c2849bd17..b484cc6ddd 100644 --- a/packages/react-components/src/InputAddress/KeyPair.tsx +++ b/packages/react-components/src/InputAddress/KeyPair.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/InputAddress/createHeader.tsx b/packages/react-components/src/InputAddress/createHeader.tsx index 034206d5e9..fc96e8e9a3 100644 --- a/packages/react-components/src/InputAddress/createHeader.tsx +++ b/packages/react-components/src/InputAddress/createHeader.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringSectionOption } from '@polkadot/ui-keyring/options/types'; diff --git a/packages/react-components/src/InputAddress/createItem.tsx b/packages/react-components/src/InputAddress/createItem.tsx index 5134333cbd..36b8e08c56 100644 --- a/packages/react-components/src/InputAddress/createItem.tsx +++ b/packages/react-components/src/InputAddress/createItem.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringSectionOption } from '@polkadot/ui-keyring/options/types'; import { Option } from './types'; diff --git a/packages/react-components/src/InputAddress/index.tsx b/packages/react-components/src/InputAddress/index.tsx index 36b7081a86..48c99e5302 100644 --- a/packages/react-components/src/InputAddress/index.tsx +++ b/packages/react-components/src/InputAddress/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringOptions, KeyringSectionOption, KeyringSectionOptions, KeyringOption$Type } from '@polkadot/ui-keyring/options/types'; import { Option } from './types'; diff --git a/packages/react-components/src/InputAddress/types.ts b/packages/react-components/src/InputAddress/types.ts index 4b8b983c74..08b60c6cd8 100644 --- a/packages/react-components/src/InputAddress/types.ts +++ b/packages/react-components/src/InputAddress/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringSectionOption, KeyringOption$Type } from '@polkadot/ui-keyring/options/types'; diff --git a/packages/react-components/src/InputAddressMulti/Available.tsx b/packages/react-components/src/InputAddressMulti/Available.tsx index 29eb81cbb5..4304543199 100644 --- a/packages/react-components/src/InputAddressMulti/Available.tsx +++ b/packages/react-components/src/InputAddressMulti/Available.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; diff --git a/packages/react-components/src/InputAddressMulti/Selected.tsx b/packages/react-components/src/InputAddressMulti/Selected.tsx index c46cd850c4..d96cbc4f2e 100644 --- a/packages/react-components/src/InputAddressMulti/Selected.tsx +++ b/packages/react-components/src/InputAddressMulti/Selected.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; diff --git a/packages/react-components/src/InputAddressMulti/SelectedDrag.tsx b/packages/react-components/src/InputAddressMulti/SelectedDrag.tsx index 38327e9097..11e4078485 100644 --- a/packages/react-components/src/InputAddressMulti/SelectedDrag.tsx +++ b/packages/react-components/src/InputAddressMulti/SelectedDrag.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/packages/react-components/src/InputAddressMulti/index.tsx b/packages/react-components/src/InputAddressMulti/index.tsx index 9a7d0d9d40..664d8c4aaf 100644 --- a/packages/react-components/src/InputAddressMulti/index.tsx +++ b/packages/react-components/src/InputAddressMulti/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useEffect, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/InputAddressSimple.tsx b/packages/react-components/src/InputAddressSimple.tsx index c74ac62955..d032071ef4 100644 --- a/packages/react-components/src/InputAddressSimple.tsx +++ b/packages/react-components/src/InputAddressSimple.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/InputBalance.tsx b/packages/react-components/src/InputBalance.tsx index 3622de887b..200f04601a 100644 --- a/packages/react-components/src/InputBalance.tsx +++ b/packages/react-components/src/InputBalance.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BitLength } from './types'; diff --git a/packages/react-components/src/InputConsts/SelectKey.tsx b/packages/react-components/src/InputConsts/SelectKey.tsx index 9aa62c2598..c01875bf30 100644 --- a/packages/react-components/src/InputConsts/SelectKey.tsx +++ b/packages/react-components/src/InputConsts/SelectKey.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOptions } from '../util/types'; import { ConstValueBase } from './types'; diff --git a/packages/react-components/src/InputConsts/SelectSection.tsx b/packages/react-components/src/InputConsts/SelectSection.tsx index e6fdec0e0b..8990258f6f 100644 --- a/packages/react-components/src/InputConsts/SelectSection.tsx +++ b/packages/react-components/src/InputConsts/SelectSection.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOptions } from '../util/types'; import { ConstValueBase, StorageEntryPromise } from './types'; diff --git a/packages/react-components/src/InputConsts/index.tsx b/packages/react-components/src/InputConsts/index.tsx index 60a6a29ae1..576ceb06c9 100644 --- a/packages/react-components/src/InputConsts/index.tsx +++ b/packages/react-components/src/InputConsts/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ConstantCodec } from '@polkadot/metadata/Decorated/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputConsts/options/key.tsx b/packages/react-components/src/InputConsts/options/key.tsx index b91759a3ed..929641114f 100644 --- a/packages/react-components/src/InputConsts/options/key.tsx +++ b/packages/react-components/src/InputConsts/options/key.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ConstantCodec } from '@polkadot/metadata/Decorated/types'; import { DropdownOptions, DropdownOption } from '../../util/types'; diff --git a/packages/react-components/src/InputConsts/options/section.ts b/packages/react-components/src/InputConsts/options/section.ts index 97b29b9367..55a47c97f4 100644 --- a/packages/react-components/src/InputConsts/options/section.ts +++ b/packages/react-components/src/InputConsts/options/section.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOptions } from '../../util/types'; diff --git a/packages/react-components/src/InputConsts/types.ts b/packages/react-components/src/InputConsts/types.ts index e565150b82..7642c6a820 100644 --- a/packages/react-components/src/InputConsts/types.ts +++ b/packages/react-components/src/InputConsts/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StorageEntryBase } from '@polkadot/api/types'; import { ModuleConstantMetadataV7 } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/InputError.tsx b/packages/react-components/src/InputError.tsx index fb7a13354c..bafb2aa315 100644 --- a/packages/react-components/src/InputError.tsx +++ b/packages/react-components/src/InputError.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import Label from 'semantic-ui-react/dist/commonjs/elements/Label/Label'; diff --git a/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx b/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx index d2fc549797..e1f3527e80 100644 --- a/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx +++ b/packages/react-components/src/InputExtrinsic/LinkedWrapper.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/InputExtrinsic/SelectMethod.tsx b/packages/react-components/src/InputExtrinsic/SelectMethod.tsx index 5244b35564..4b150cbca5 100644 --- a/packages/react-components/src/InputExtrinsic/SelectMethod.tsx +++ b/packages/react-components/src/InputExtrinsic/SelectMethod.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputExtrinsic/SelectSection.tsx b/packages/react-components/src/InputExtrinsic/SelectSection.tsx index 44dfa29fa9..e93a445fbe 100644 --- a/packages/react-components/src/InputExtrinsic/SelectSection.tsx +++ b/packages/react-components/src/InputExtrinsic/SelectSection.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputExtrinsic/index.tsx b/packages/react-components/src/InputExtrinsic/index.tsx index 3fb832c261..787153e553 100644 --- a/packages/react-components/src/InputExtrinsic/index.tsx +++ b/packages/react-components/src/InputExtrinsic/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputExtrinsic/options/method.tsx b/packages/react-components/src/InputExtrinsic/options/method.tsx index 56202ee58c..47e0b1e168 100644 --- a/packages/react-components/src/InputExtrinsic/options/method.tsx +++ b/packages/react-components/src/InputExtrinsic/options/method.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOption, DropdownOptions } from '../../util/types'; diff --git a/packages/react-components/src/InputExtrinsic/options/section.ts b/packages/react-components/src/InputExtrinsic/options/section.ts index 2414c15378..b45f987b36 100644 --- a/packages/react-components/src/InputExtrinsic/options/section.ts +++ b/packages/react-components/src/InputExtrinsic/options/section.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOptions } from '../../util/types'; diff --git a/packages/react-components/src/InputFile.tsx b/packages/react-components/src/InputFile.tsx index 8aa477ff72..55ebf56010 100644 --- a/packages/react-components/src/InputFile.tsx +++ b/packages/react-components/src/InputFile.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState, createRef } from 'react'; import Dropzone, { DropzoneRef } from 'react-dropzone'; diff --git a/packages/react-components/src/InputNumber.tsx b/packages/react-components/src/InputNumber.tsx index 672ae50432..fc94aff48f 100644 --- a/packages/react-components/src/InputNumber.tsx +++ b/packages/react-components/src/InputNumber.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SiDef } from '@polkadot/util/types'; import { BitLength } from './types'; diff --git a/packages/react-components/src/InputRpc/SelectMethod.tsx b/packages/react-components/src/InputRpc/SelectMethod.tsx index 3640bd9930..fe89f46e9a 100644 --- a/packages/react-components/src/InputRpc/SelectMethod.tsx +++ b/packages/react-components/src/InputRpc/SelectMethod.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DefinitionRpcExt } from '@polkadot/types/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputRpc/SelectSection.tsx b/packages/react-components/src/InputRpc/SelectSection.tsx index 0a1e173f39..44fa6e2dba 100644 --- a/packages/react-components/src/InputRpc/SelectSection.tsx +++ b/packages/react-components/src/InputRpc/SelectSection.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DefinitionRpcExt } from '@polkadot/types/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputRpc/index.tsx b/packages/react-components/src/InputRpc/index.tsx index 2915a34151..5855db3f48 100644 --- a/packages/react-components/src/InputRpc/index.tsx +++ b/packages/react-components/src/InputRpc/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // TODO: We have a lot shared between this and InputExtrinsic & InputStorage diff --git a/packages/react-components/src/InputRpc/options/method.tsx b/packages/react-components/src/InputRpc/options/method.tsx index dfed8bd247..725bf2e5ef 100644 --- a/packages/react-components/src/InputRpc/options/method.tsx +++ b/packages/react-components/src/InputRpc/options/method.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DefinitionRpcExt } from '@polkadot/types/types'; import { DropdownOption, DropdownOptions } from '../../util/types'; diff --git a/packages/react-components/src/InputRpc/options/section.ts b/packages/react-components/src/InputRpc/options/section.ts index 9aefbf4236..7cd6a60cc8 100644 --- a/packages/react-components/src/InputRpc/options/section.ts +++ b/packages/react-components/src/InputRpc/options/section.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOptions } from '../../util/types'; diff --git a/packages/react-components/src/InputStorage/SelectKey.tsx b/packages/react-components/src/InputStorage/SelectKey.tsx index 1339bb72f1..47be537ff2 100644 --- a/packages/react-components/src/InputStorage/SelectKey.tsx +++ b/packages/react-components/src/InputStorage/SelectKey.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryableStorageEntry } from '@polkadot/api/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputStorage/SelectSection.tsx b/packages/react-components/src/InputStorage/SelectSection.tsx index 6124f8510e..72d0fa8916 100644 --- a/packages/react-components/src/InputStorage/SelectSection.tsx +++ b/packages/react-components/src/InputStorage/SelectSection.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueryableStorageEntry } from '@polkadot/api/types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/react-components/src/InputStorage/index.tsx b/packages/react-components/src/InputStorage/index.tsx index 37305ae31e..752e057aab 100644 --- a/packages/react-components/src/InputStorage/index.tsx +++ b/packages/react-components/src/InputStorage/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 // TODO: We have a lot shared between this and InputExtrinsic diff --git a/packages/react-components/src/InputStorage/options/key.tsx b/packages/react-components/src/InputStorage/options/key.tsx index 47be84c976..766425ab01 100644 --- a/packages/react-components/src/InputStorage/options/key.tsx +++ b/packages/react-components/src/InputStorage/options/key.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOptions, DropdownOption } from '../../util/types'; diff --git a/packages/react-components/src/InputStorage/options/section.ts b/packages/react-components/src/InputStorage/options/section.ts index ade0e5c26b..b474e86928 100644 --- a/packages/react-components/src/InputStorage/options/section.ts +++ b/packages/react-components/src/InputStorage/options/section.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DropdownOptions } from '../../util/types'; diff --git a/packages/react-components/src/InputTags.tsx b/packages/react-components/src/InputTags.tsx index 57740ec16a..c45f36ccfa 100644 --- a/packages/react-components/src/InputTags.tsx +++ b/packages/react-components/src/InputTags.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import store from 'store'; diff --git a/packages/react-components/src/InputWasm.tsx b/packages/react-components/src/InputWasm.tsx index 3f3525bf9d..5aae467531 100644 --- a/packages/react-components/src/InputWasm.tsx +++ b/packages/react-components/src/InputWasm.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import { compactAddLength, isWasm } from '@polkadot/util'; diff --git a/packages/react-components/src/Inset.tsx b/packages/react-components/src/Inset.tsx index 278feeb3ed..371dc46405 100644 --- a/packages/react-components/src/Inset.tsx +++ b/packages/react-components/src/Inset.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; diff --git a/packages/react-components/src/Label.tsx b/packages/react-components/src/Label.tsx index 3c8b6ae6e6..b3b53867b3 100644 --- a/packages/react-components/src/Label.tsx +++ b/packages/react-components/src/Label.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/LabelHelp.tsx b/packages/react-components/src/LabelHelp.tsx index 14515d1ef3..953b1eb27b 100644 --- a/packages/react-components/src/LabelHelp.tsx +++ b/packages/react-components/src/LabelHelp.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IconName } from '@fortawesome/fontawesome-svg-core'; import React, { useState } from 'react'; diff --git a/packages/react-components/src/Labelled.tsx b/packages/react-components/src/Labelled.tsx index ffde778381..710935bcbe 100644 --- a/packages/react-components/src/Labelled.tsx +++ b/packages/react-components/src/Labelled.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/LinkExternal.tsx b/packages/react-components/src/LinkExternal.tsx index 34871689ab..af2cf10548 100644 --- a/packages/react-components/src/LinkExternal.tsx +++ b/packages/react-components/src/LinkExternal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { LinkTypes } from '@polkadot/apps-config/links/types'; diff --git a/packages/react-components/src/LockedVote.tsx b/packages/react-components/src/LockedVote.tsx index d727360a1e..1a3cf084d0 100644 --- a/packages/react-components/src/LockedVote.tsx +++ b/packages/react-components/src/LockedVote.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/Menu.tsx b/packages/react-components/src/Menu.tsx index a104366cfd..08d1634c32 100644 --- a/packages/react-components/src/Menu.tsx +++ b/packages/react-components/src/Menu.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import SUIDivider from 'semantic-ui-react/dist/commonjs/elements/Divider/Divider'; import SUIMenu from 'semantic-ui-react/dist/commonjs/collections/Menu/Menu'; diff --git a/packages/react-components/src/Modal/Actions.tsx b/packages/react-components/src/Modal/Actions.tsx index 86b9d1e4e3..c28870ae37 100644 --- a/packages/react-components/src/Modal/Actions.tsx +++ b/packages/react-components/src/Modal/Actions.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionsProps } from './types'; diff --git a/packages/react-components/src/Modal/Column.tsx b/packages/react-components/src/Modal/Column.tsx index 4c6897cb75..548f7bf211 100644 --- a/packages/react-components/src/Modal/Column.tsx +++ b/packages/react-components/src/Modal/Column.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ColumnProps } from './types'; diff --git a/packages/react-components/src/Modal/Columns.tsx b/packages/react-components/src/Modal/Columns.tsx index 48a048ba48..48c89e8905 100644 --- a/packages/react-components/src/Modal/Columns.tsx +++ b/packages/react-components/src/Modal/Columns.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ColumnProps } from './types'; diff --git a/packages/react-components/src/Modal/index.tsx b/packages/react-components/src/Modal/index.tsx index 77637aa726..84af474f6c 100644 --- a/packages/react-components/src/Modal/index.tsx +++ b/packages/react-components/src/Modal/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ActionsProps, ColumnProps, ModalProps } from './types'; diff --git a/packages/react-components/src/Modal/types.tsx b/packages/react-components/src/Modal/types.tsx index f01cd8e180..2f777a68f5 100644 --- a/packages/react-components/src/Modal/types.tsx +++ b/packages/react-components/src/Modal/types.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/Nonce.tsx b/packages/react-components/src/Nonce.tsx index 6a93657054..3e6910ed12 100644 --- a/packages/react-components/src/Nonce.tsx +++ b/packages/react-components/src/Nonce.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/Output.tsx b/packages/react-components/src/Output.tsx index ece21a39f8..75003bebc7 100644 --- a/packages/react-components/src/Output.tsx +++ b/packages/react-components/src/Output.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Params/Call.tsx b/packages/react-components/src/Params/Call.tsx index 0f4c968108..521de61bf0 100644 --- a/packages/react-components/src/Params/Call.tsx +++ b/packages/react-components/src/Params/Call.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { Props } from '@polkadot/react-params/types'; diff --git a/packages/react-components/src/Params/Extrinsic.tsx b/packages/react-components/src/Params/Extrinsic.tsx index 1426e9ab6d..4310fb2f3a 100644 --- a/packages/react-components/src/Params/Extrinsic.tsx +++ b/packages/react-components/src/Params/Extrinsic.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { RawParamOnChange, RawParamOnEnter, RawParamOnEscape } from '@polkadot/react-params/types'; diff --git a/packages/react-components/src/Params/OpaqueCall.tsx b/packages/react-components/src/Params/OpaqueCall.tsx index 16ef78a0d5..402d144f3b 100644 --- a/packages/react-components/src/Params/OpaqueCall.tsx +++ b/packages/react-components/src/Params/OpaqueCall.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { Props, RawParam } from '@polkadot/react-params/types'; diff --git a/packages/react-components/src/Params/Proposal.tsx b/packages/react-components/src/Params/Proposal.tsx index 7d2eafa0ab..89b2bb1af9 100644 --- a/packages/react-components/src/Params/Proposal.tsx +++ b/packages/react-components/src/Params/Proposal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props, RawParam } from '@polkadot/react-params/types'; diff --git a/packages/react-components/src/Params/index.ts b/packages/react-components/src/Params/index.ts index 13fd30e9f4..1742d5fd6d 100644 --- a/packages/react-components/src/Params/index.ts +++ b/packages/react-components/src/Params/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ComponentMap } from '@polkadot/react-params/types'; diff --git a/packages/react-components/src/Password.tsx b/packages/react-components/src/Password.tsx index e976d346f5..a81cc52f1c 100644 --- a/packages/react-components/src/Password.tsx +++ b/packages/react-components/src/Password.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/PasswordStrength.tsx b/packages/react-components/src/PasswordStrength.tsx index efcad466eb..8c7693d87d 100644 --- a/packages/react-components/src/PasswordStrength.tsx +++ b/packages/react-components/src/PasswordStrength.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Popup.tsx b/packages/react-components/src/Popup.tsx index fc61f2a0a9..07e5492af0 100644 --- a/packages/react-components/src/Popup.tsx +++ b/packages/react-components/src/Popup.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import SUIPopup, { PopupProps } from 'semantic-ui-react/dist/commonjs/modules/Popup/Popup'; diff --git a/packages/react-components/src/Progress.tsx b/packages/react-components/src/Progress.tsx index 797173570c..2e86843afb 100644 --- a/packages/react-components/src/Progress.tsx +++ b/packages/react-components/src/Progress.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React from 'react'; diff --git a/packages/react-components/src/ProposedAction.tsx b/packages/react-components/src/ProposedAction.tsx index 61ac81e03c..b7e5fe7af4 100644 --- a/packages/react-components/src/ProposedAction.tsx +++ b/packages/react-components/src/ProposedAction.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Proposal } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/Row.tsx b/packages/react-components/src/Row.tsx index 163c56fe66..fe4f09321d 100644 --- a/packages/react-components/src/Row.tsx +++ b/packages/react-components/src/Row.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Sidebar.tsx b/packages/react-components/src/Sidebar.tsx index 1853967a50..9fe36bad1c 100644 --- a/packages/react-components/src/Sidebar.tsx +++ b/packages/react-components/src/Sidebar.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Spinner.tsx b/packages/react-components/src/Spinner.tsx index c32550d2a3..16291b1827 100644 --- a/packages/react-components/src/Spinner.tsx +++ b/packages/react-components/src/Spinner.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/StakingBonded.tsx b/packages/react-components/src/StakingBonded.tsx index fb1fa2958b..c5aa9c0f16 100644 --- a/packages/react-components/src/StakingBonded.tsx +++ b/packages/react-components/src/StakingBonded.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakingAccount } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/StakingRedeemable.tsx b/packages/react-components/src/StakingRedeemable.tsx index 808592c21b..8b7c629a3f 100644 --- a/packages/react-components/src/StakingRedeemable.tsx +++ b/packages/react-components/src/StakingRedeemable.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakingAccount } from '@polkadot/api-derive/types'; import { SlashingSpans } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/StakingUnbonding.tsx b/packages/react-components/src/StakingUnbonding.tsx index f95823bf0e..60fa86fecf 100644 --- a/packages/react-components/src/StakingUnbonding.tsx +++ b/packages/react-components/src/StakingUnbonding.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionProgress, DeriveStakingAccount, DeriveUnlocking } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/Static.tsx b/packages/react-components/src/Static.tsx index a692fcaf25..584d7644c9 100644 --- a/packages/react-components/src/Static.tsx +++ b/packages/react-components/src/Static.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/Status/Context.ts b/packages/react-components/src/Status/Context.ts index 59718d815f..9405a84753 100644 --- a/packages/react-components/src/Status/Context.ts +++ b/packages/react-components/src/Status/Context.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueueProps, QueueStatus, QueueTx } from './types'; diff --git a/packages/react-components/src/Status/Queue.tsx b/packages/react-components/src/Status/Queue.tsx index 1182d652f6..8ad0fd0a0c 100644 --- a/packages/react-components/src/Status/Queue.tsx +++ b/packages/react-components/src/Status/Queue.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import { DispatchError } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/Status/constants.ts b/packages/react-components/src/Status/constants.ts index 0273f895b8..64f6c432b8 100644 --- a/packages/react-components/src/Status/constants.ts +++ b/packages/react-components/src/Status/constants.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueueTxStatus } from './types'; diff --git a/packages/react-components/src/Status/index.tsx b/packages/react-components/src/Status/index.tsx index 3204d3f5cc..45e390df1e 100644 --- a/packages/react-components/src/Status/index.tsx +++ b/packages/react-components/src/Status/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueueStatus, QueueTx, QueueTxStatus } from './types'; diff --git a/packages/react-components/src/Status/types.ts b/packages/react-components/src/Status/types.ts index 0d6ec3ec8a..a96242bd0f 100644 --- a/packages/react-components/src/Status/types.ts +++ b/packages/react-components/src/Status/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableResult } from '@polkadot/api'; import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; diff --git a/packages/react-components/src/SummaryBox.tsx b/packages/react-components/src/SummaryBox.tsx index 2298579e51..b36ba0e45c 100644 --- a/packages/react-components/src/SummaryBox.tsx +++ b/packages/react-components/src/SummaryBox.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Table/Body.tsx b/packages/react-components/src/Table/Body.tsx index e759e713e6..c9f317e4d0 100644 --- a/packages/react-components/src/Table/Body.tsx +++ b/packages/react-components/src/Table/Body.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Table/Foot.tsx b/packages/react-components/src/Table/Foot.tsx index a2b016a4ac..59b29df068 100644 --- a/packages/react-components/src/Table/Foot.tsx +++ b/packages/react-components/src/Table/Foot.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Table/Head.tsx b/packages/react-components/src/Table/Head.tsx index 5d76827da6..24978c19fc 100644 --- a/packages/react-components/src/Table/Head.tsx +++ b/packages/react-components/src/Table/Head.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Table/index.tsx b/packages/react-components/src/Table/index.tsx index 805acc91a5..9e40848f5a 100644 --- a/packages/react-components/src/Table/index.tsx +++ b/packages/react-components/src/Table/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Tabs/Tab.tsx b/packages/react-components/src/Tabs/Tab.tsx index d1f86d0618..d1e96e84c4 100644 --- a/packages/react-components/src/Tabs/Tab.tsx +++ b/packages/react-components/src/Tabs/Tab.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TabItem } from './types'; diff --git a/packages/react-components/src/Tabs/index.tsx b/packages/react-components/src/Tabs/index.tsx index 9bb9ca9606..1ae6e85ffe 100644 --- a/packages/react-components/src/Tabs/index.tsx +++ b/packages/react-components/src/Tabs/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TabItem } from './types'; diff --git a/packages/react-components/src/Tabs/types.ts b/packages/react-components/src/Tabs/types.ts index 457f0efc88..89a2b06280 100644 --- a/packages/react-components/src/Tabs/types.ts +++ b/packages/react-components/src/Tabs/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/Tag.tsx b/packages/react-components/src/Tag.tsx index 76dcf8462f..fbb98e4991 100644 --- a/packages/react-components/src/Tag.tsx +++ b/packages/react-components/src/Tag.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Tags.tsx b/packages/react-components/src/Tags.tsx index cf3132cb7b..ca4cb55034 100644 --- a/packages/react-components/src/Tags.tsx +++ b/packages/react-components/src/Tags.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { VoidFn } from './types'; diff --git a/packages/react-components/src/Toggle.tsx b/packages/react-components/src/Toggle.tsx index 111110c561..5a67c3387d 100644 --- a/packages/react-components/src/Toggle.tsx +++ b/packages/react-components/src/Toggle.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/ToggleGroup.tsx b/packages/react-components/src/ToggleGroup.tsx index 8c5e7bf186..df4abfd315 100644 --- a/packages/react-components/src/ToggleGroup.tsx +++ b/packages/react-components/src/ToggleGroup.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-components/src/Tooltip.tsx b/packages/react-components/src/Tooltip.tsx index 0eab068c86..5c6083692e 100644 --- a/packages/react-components/src/Tooltip.tsx +++ b/packages/react-components/src/Tooltip.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useEffect, useState } from 'react'; import ReactDOM from 'react-dom'; diff --git a/packages/react-components/src/TreasuryProposal.tsx b/packages/react-components/src/TreasuryProposal.tsx index d689281d19..33c8235234 100644 --- a/packages/react-components/src/TreasuryProposal.tsx +++ b/packages/react-components/src/TreasuryProposal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TreasuryProposal as TreasuryProposalType } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/TxButton.tsx b/packages/react-components/src/TxButton.tsx index bb5658baec..538e10269b 100644 --- a/packages/react-components/src/TxButton.tsx +++ b/packages/react-components/src/TxButton.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { TxButtonProps as Props } from './types'; diff --git a/packages/react-components/src/TxComponent.tsx b/packages/react-components/src/TxComponent.tsx index 3f9eeb4c49..681e42a797 100644 --- a/packages/react-components/src/TxComponent.tsx +++ b/packages/react-components/src/TxComponent.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/TxModal.tsx b/packages/react-components/src/TxModal.tsx index f6b0c23b09..1b03049bae 100644 --- a/packages/react-components/src/TxModal.tsx +++ b/packages/react-components/src/TxModal.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { I18nProps } from '@polkadot/react-components/types'; diff --git a/packages/react-components/src/TxModalNew.tsx b/packages/react-components/src/TxModalNew.tsx index 2b33f0117a..f29a0ba8b4 100644 --- a/packages/react-components/src/TxModalNew.tsx +++ b/packages/react-components/src/TxModalNew.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-contracts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TxModalProps as Props } from './types'; diff --git a/packages/react-components/src/VoteAccount.tsx b/packages/react-components/src/VoteAccount.tsx index 0596e03391..ef013161d1 100644 --- a/packages/react-components/src/VoteAccount.tsx +++ b/packages/react-components/src/VoteAccount.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; diff --git a/packages/react-components/src/VoteValue.tsx b/packages/react-components/src/VoteValue.tsx index 1b83df5ecf..7cd41e2287 100644 --- a/packages/react-components/src/VoteValue.tsx +++ b/packages/react-components/src/VoteValue.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/constants.ts b/packages/react-components/src/constants.ts index b81f71f2e7..8ea179023d 100644 --- a/packages/react-components/src/constants.ts +++ b/packages/react-components/src/constants.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export enum BitLengthOption { CHAIN_SPEC = 128, diff --git a/packages/react-components/src/i18n/Backend.ts b/packages/react-components/src/i18n/Backend.ts index 966a5de9f5..29f721d031 100644 --- a/packages/react-components/src/i18n/Backend.ts +++ b/packages/react-components/src/i18n/Backend.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import languageCache from './cache'; diff --git a/packages/react-components/src/i18n/cache.ts b/packages/react-components/src/i18n/cache.ts index a7bf6e7af1..0264ab89dc 100644 --- a/packages/react-components/src/i18n/cache.ts +++ b/packages/react-components/src/i18n/cache.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const languageCache: Record> = {}; diff --git a/packages/react-components/src/i18n/index.ts b/packages/react-components/src/i18n/index.ts index ffad25eb25..06a6211df6 100644 --- a/packages/react-components/src/i18n/index.ts +++ b/packages/react-components/src/i18n/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import i18next from 'i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; diff --git a/packages/react-components/src/index.tsx b/packages/react-components/src/index.tsx index 3e04fce2e4..844b342cf2 100644 --- a/packages/react-components/src/index.tsx +++ b/packages/react-components/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export * from '@polkadot/react-qr'; diff --git a/packages/react-components/src/media.ts b/packages/react-components/src/media.ts index 8951d5c50b..f2709a0e76 100644 --- a/packages/react-components/src/media.ts +++ b/packages/react-components/src/media.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { css } from 'styled-components'; diff --git a/packages/react-components/src/styles/components.ts b/packages/react-components/src/styles/components.ts index 5bb2692f48..53f74c7039 100644 --- a/packages/react-components/src/styles/components.ts +++ b/packages/react-components/src/styles/components.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { css } from 'styled-components'; diff --git a/packages/react-components/src/styles/form.ts b/packages/react-components/src/styles/form.ts index 3a95d5127e..36c6c43650 100644 --- a/packages/react-components/src/styles/form.ts +++ b/packages/react-components/src/styles/form.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { css } from 'styled-components'; diff --git a/packages/react-components/src/styles/index.ts b/packages/react-components/src/styles/index.ts index a9547435a8..f8e47471dc 100644 --- a/packages/react-components/src/styles/index.ts +++ b/packages/react-components/src/styles/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { createGlobalStyle } from 'styled-components'; diff --git a/packages/react-components/src/styles/media.ts b/packages/react-components/src/styles/media.ts index d4bc05c60c..8805367fc5 100644 --- a/packages/react-components/src/styles/media.ts +++ b/packages/react-components/src/styles/media.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { css } from 'styled-components'; diff --git a/packages/react-components/src/styles/rx.ts b/packages/react-components/src/styles/rx.ts index 4078a837ef..7b245c65c4 100644 --- a/packages/react-components/src/styles/rx.ts +++ b/packages/react-components/src/styles/rx.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { css } from 'styled-components'; diff --git a/packages/react-components/src/styles/semantic.ts b/packages/react-components/src/styles/semantic.ts index ade4c7e1c2..8694b53d52 100644 --- a/packages/react-components/src/styles/semantic.ts +++ b/packages/react-components/src/styles/semantic.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { css } from 'styled-components'; diff --git a/packages/react-components/src/styles/theme.ts b/packages/react-components/src/styles/theme.ts index b565b06dd8..0b3fcd1cf6 100644 --- a/packages/react-components/src/styles/theme.ts +++ b/packages/react-components/src/styles/theme.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { css } from 'styled-components'; diff --git a/packages/react-components/src/translate.ts b/packages/react-components/src/translate.ts index 8c6592c5a4..8d9340fec8 100644 --- a/packages/react-components/src/translate.ts +++ b/packages/react-components/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/react-components/src/types.ts b/packages/react-components/src/types.ts index 4d0e053639..993cb6b206 100644 --- a/packages/react-components/src/types.ts +++ b/packages/react-components/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { WithTranslation } from 'react-i18next'; import { IconName } from '@fortawesome/fontawesome-svg-core'; diff --git a/packages/react-components/src/util/checkVisibility.tsx b/packages/react-components/src/util/checkVisibility.tsx index 350b924baa..e9bfbc8102 100644 --- a/packages/react-components/src/util/checkVisibility.tsx +++ b/packages/react-components/src/util/checkVisibility.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-staking authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveAccountInfo } from '@polkadot/api-derive/types'; diff --git a/packages/react-components/src/util/classes.ts b/packages/react-components/src/util/classes.ts index 2d6205a8ce..58292ee021 100644 --- a/packages/react-components/src/util/classes.ts +++ b/packages/react-components/src/util/classes.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export default function classes (...classNames: (boolean | null | string | undefined)[]): string { return classNames diff --git a/packages/react-components/src/util/getAddressMeta.ts b/packages/react-components/src/util/getAddressMeta.ts index b24de61c51..82836e9f3a 100644 --- a/packages/react-components/src/util/getAddressMeta.ts +++ b/packages/react-components/src/util/getAddressMeta.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringItemType, KeyringJson$Meta } from '@polkadot/ui-keyring/types'; diff --git a/packages/react-components/src/util/getAddressName.ts b/packages/react-components/src/util/getAddressName.ts index f98a81137c..b6a9343f8b 100644 --- a/packages/react-components/src/util/getAddressName.ts +++ b/packages/react-components/src/util/getAddressName.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringItemType } from '@polkadot/ui-keyring/types'; diff --git a/packages/react-components/src/util/getAddressTags.ts b/packages/react-components/src/util/getAddressTags.ts index bb8761a47d..78844c50a9 100644 --- a/packages/react-components/src/util/getAddressTags.ts +++ b/packages/react-components/src/util/getAddressTags.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringItemType } from '@polkadot/ui-keyring/types'; diff --git a/packages/react-components/src/util/getContractAbi.ts b/packages/react-components/src/util/getContractAbi.ts index 991fb08a48..c53f8bd3e5 100644 --- a/packages/react-components/src/util/getContractAbi.ts +++ b/packages/react-components/src/util/getContractAbi.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ContractABIPre } from '@polkadot/api-contract/types'; diff --git a/packages/react-components/src/util/index.ts b/packages/react-components/src/util/index.ts index 98f270bc12..525b59a46f 100644 --- a/packages/react-components/src/util/index.ts +++ b/packages/react-components/src/util/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as checkVisibility } from './checkVisibility'; export { default as classes } from './classes'; diff --git a/packages/react-components/src/util/isTreasuryProposalVote.ts b/packages/react-components/src/util/isTreasuryProposalVote.ts index 69a73414a3..e88e170f47 100644 --- a/packages/react-components/src/util/isTreasuryProposalVote.ts +++ b/packages/react-components/src/util/isTreasuryProposalVote.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Proposal } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/util/toAddress.ts b/packages/react-components/src/util/toAddress.ts index edd70f4c3c..637a87722a 100644 --- a/packages/react-components/src/util/toAddress.ts +++ b/packages/react-components/src/util/toAddress.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import keyring from '@polkadot/ui-keyring'; import { hexToU8a, isHex, assert } from '@polkadot/util'; diff --git a/packages/react-components/src/util/toShortAddress.ts b/packages/react-components/src/util/toShortAddress.ts index 27347ebd4a..b45fb265bb 100644 --- a/packages/react-components/src/util/toShortAddress.ts +++ b/packages/react-components/src/util/toShortAddress.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-components/src/util/types.ts b/packages/react-components/src/util/types.ts index b123d3361a..660c279a24 100644 --- a/packages/react-components/src/util/types.ts +++ b/packages/react-components/src/util/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export interface DropdownOption { className?: string; diff --git a/packages/react-hooks/src/index.ts b/packages/react-hooks/src/index.ts index 171a889739..8588167085 100644 --- a/packages/react-hooks/src/index.ts +++ b/packages/react-hooks/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as useAccountId } from './useAccountId'; export { default as useAccountInfo } from './useAccountInfo'; diff --git a/packages/react-hooks/src/memo.ts b/packages/react-hooks/src/memo.ts index 35eec05991..de977af681 100644 --- a/packages/react-hooks/src/memo.ts +++ b/packages/react-hooks/src/memo.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import createMemo from 'memoizee'; diff --git a/packages/react-hooks/src/translate.ts b/packages/react-hooks/src/translate.ts index 6c15badd6f..34a84d3e08 100644 --- a/packages/react-hooks/src/translate.ts +++ b/packages/react-hooks/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/react-hooks/src/types.ts b/packages/react-hooks/src/types.ts index 3b78cef8b0..16ba99308d 100644 --- a/packages/react-hooks/src/types.ts +++ b/packages/react-hooks/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-components authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import { DeriveAccountFlags, DeriveAccountRegistration } from '@polkadot/api-derive/types'; diff --git a/packages/react-hooks/src/useAccountId.ts b/packages/react-hooks/src/useAccountId.ts index 1275ca859a..afc0ea3bf6 100644 --- a/packages/react-hooks/src/useAccountId.ts +++ b/packages/react-hooks/src/useAccountId.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { StringOrNull } from '@polkadot/react-components/types'; diff --git a/packages/react-hooks/src/useAccountInfo.ts b/packages/react-hooks/src/useAccountInfo.ts index 82ba27ad38..3854febe38 100644 --- a/packages/react-hooks/src/useAccountInfo.ts +++ b/packages/react-hooks/src/useAccountInfo.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveAccountFlags, DeriveAccountInfo } from '@polkadot/api-derive/types'; import { StringOrNull } from '@polkadot/react-components/types'; diff --git a/packages/react-hooks/src/useAccounts.ts b/packages/react-hooks/src/useAccounts.ts index 807a8cf227..cbda1a1afb 100644 --- a/packages/react-hooks/src/useAccounts.ts +++ b/packages/react-hooks/src/useAccounts.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useEffect, useState } from 'react'; import accountObservable from '@polkadot/ui-keyring/observable/accounts'; diff --git a/packages/react-hooks/src/useAddresses.ts b/packages/react-hooks/src/useAddresses.ts index fc1901644b..db9e5695d5 100644 --- a/packages/react-hooks/src/useAddresses.ts +++ b/packages/react-hooks/src/useAddresses.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useEffect, useState } from 'react'; import addressObservable from '@polkadot/ui-keyring/observable/addresses'; diff --git a/packages/react-hooks/src/useApi.ts b/packages/react-hooks/src/useApi.ts index 0b4a0444ca..32a7cce047 100644 --- a/packages/react-hooks/src/useApi.ts +++ b/packages/react-hooks/src/useApi.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ApiProps } from '@polkadot/react-api/types'; diff --git a/packages/react-hooks/src/useAvailableSlashes.ts b/packages/react-hooks/src/useAvailableSlashes.ts index 21188d6586..8d1ce5ac91 100644 --- a/packages/react-hooks/src/useAvailableSlashes.ts +++ b/packages/react-hooks/src/useAvailableSlashes.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-council authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveSessionIndexes } from '@polkadot/api-derive/types'; import { EraIndex, UnappliedSlash } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/useBlockTime.ts b/packages/react-hooks/src/useBlockTime.ts index 8c9e29c228..07ffc55c0e 100644 --- a/packages/react-hooks/src/useBlockTime.ts +++ b/packages/react-hooks/src/useBlockTime.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import { useMemo } from 'react'; diff --git a/packages/react-hooks/src/useCacheKey.ts b/packages/react-hooks/src/useCacheKey.ts index 621b3630bd..5a58b12d80 100644 --- a/packages/react-hooks/src/useCacheKey.ts +++ b/packages/react-hooks/src/useCacheKey.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useCallback, useMemo } from 'react'; diff --git a/packages/react-hooks/src/useCall.ts b/packages/react-hooks/src/useCall.ts index 69e5862ffa..020390eb46 100644 --- a/packages/react-hooks/src/useCall.ts +++ b/packages/react-hooks/src/useCall.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Codec } from '@polkadot/types/types'; // eslint-disable-next-line @typescript-eslint/no-unused-vars diff --git a/packages/react-hooks/src/useContracts.ts b/packages/react-hooks/src/useContracts.ts index 2095d61d0b..a9d9f9d0bf 100644 --- a/packages/react-hooks/src/useContracts.ts +++ b/packages/react-hooks/src/useContracts.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useEffect, useState } from 'react'; import contractObservable from '@polkadot/ui-keyring/observable/contracts'; diff --git a/packages/react-hooks/src/useDebounce.ts b/packages/react-hooks/src/useDebounce.ts index 8eb46bdfc3..cc41a98b67 100644 --- a/packages/react-hooks/src/useDebounce.ts +++ b/packages/react-hooks/src/useDebounce.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useState, useEffect } from 'react'; diff --git a/packages/react-hooks/src/useFavorites.ts b/packages/react-hooks/src/useFavorites.ts index 850b6300a0..dd3cf6656a 100644 --- a/packages/react-hooks/src/useFavorites.ts +++ b/packages/react-hooks/src/useFavorites.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useCallback, useState } from 'react'; diff --git a/packages/react-hooks/src/useFormField.ts b/packages/react-hooks/src/useFormField.ts index cd0bcb4193..1282c1b586 100644 --- a/packages/react-hooks/src/useFormField.ts +++ b/packages/react-hooks/src/useFormField.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useMemo, useState } from 'react'; import { isUndefined } from '@polkadot/util'; diff --git a/packages/react-hooks/src/useIncrement.ts b/packages/react-hooks/src/useIncrement.ts index ec35220bc7..a5c3ed50ff 100644 --- a/packages/react-hooks/src/useIncrement.ts +++ b/packages/react-hooks/src/useIncrement.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useCallback, useState } from 'react'; import useIsMountedRef from './useIsMountedRef'; diff --git a/packages/react-hooks/src/useIpfs.ts b/packages/react-hooks/src/useIpfs.ts index 8238ac9912..4f5068561e 100644 --- a/packages/react-hooks/src/useIpfs.ts +++ b/packages/react-hooks/src/useIpfs.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-accounts authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useState } from 'react'; diff --git a/packages/react-hooks/src/useIsMountedRef.ts b/packages/react-hooks/src/useIsMountedRef.ts index 739ba2ac54..557f3b4373 100644 --- a/packages/react-hooks/src/useIsMountedRef.ts +++ b/packages/react-hooks/src/useIsMountedRef.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useEffect, useRef } from 'react'; diff --git a/packages/react-hooks/src/useLoadingDelay.ts b/packages/react-hooks/src/useLoadingDelay.ts index c8589a3d6a..a565ae4f89 100644 --- a/packages/react-hooks/src/useLoadingDelay.ts +++ b/packages/react-hooks/src/useLoadingDelay.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useEffect, useState } from 'react'; import useIsMountedRef from './useIsMountedRef'; diff --git a/packages/react-hooks/src/useMembers.ts b/packages/react-hooks/src/useMembers.ts index 284dc55138..c5acbf0fdc 100644 --- a/packages/react-hooks/src/useMembers.ts +++ b/packages/react-hooks/src/useMembers.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/app-democracy authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/useModal.ts b/packages/react-hooks/src/useModal.ts index b3244fbb55..8cd11a3b7a 100644 --- a/packages/react-hooks/src/useModal.ts +++ b/packages/react-hooks/src/useModal.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ModalState } from './types'; diff --git a/packages/react-hooks/src/useNonEmptyString.ts b/packages/react-hooks/src/useNonEmptyString.ts index e873b025e6..8272531181 100644 --- a/packages/react-hooks/src/useNonEmptyString.ts +++ b/packages/react-hooks/src/useNonEmptyString.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import useFormField, { FormField } from './useFormField'; diff --git a/packages/react-hooks/src/useNonZeroBn.ts b/packages/react-hooks/src/useNonZeroBn.ts index 5ae6b4400c..9a4c8bd3a3 100644 --- a/packages/react-hooks/src/useNonZeroBn.ts +++ b/packages/react-hooks/src/useNonZeroBn.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import useFormField, { FormField } from './useFormField'; diff --git a/packages/react-hooks/src/useOwnEraRewards.ts b/packages/react-hooks/src/useOwnEraRewards.ts index d53a06d0bb..a17997faaa 100644 --- a/packages/react-hooks/src/useOwnEraRewards.ts +++ b/packages/react-hooks/src/useOwnEraRewards.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveEraPoints, DeriveEraRewards, DeriveStakerReward } from '@polkadot/api-derive/types'; import { EraIndex } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/useOwnStashInfos.ts b/packages/react-hooks/src/useOwnStashInfos.ts index 0d92b80087..ddd6b277b2 100644 --- a/packages/react-hooks/src/useOwnStashInfos.ts +++ b/packages/react-hooks/src/useOwnStashInfos.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveStakingAccount } from '@polkadot/api-derive/types'; import { AccountId, ValidatorPrefs } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/useOwnStashes.ts b/packages/react-hooks/src/useOwnStashes.ts index 4cda45085b..bac08c6a4f 100644 --- a/packages/react-hooks/src/useOwnStashes.ts +++ b/packages/react-hooks/src/useOwnStashes.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, StakingLedger } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/usePassword.ts b/packages/react-hooks/src/usePassword.ts index eb8d3c70cd..c56207d833 100644 --- a/packages/react-hooks/src/usePassword.ts +++ b/packages/react-hooks/src/usePassword.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useEffect, useState } from 'react'; import keyring from '@polkadot/ui-keyring'; diff --git a/packages/react-hooks/src/useRegistrars.ts b/packages/react-hooks/src/useRegistrars.ts index 5dbd426f82..a9e1fa41b0 100644 --- a/packages/react-hooks/src/useRegistrars.ts +++ b/packages/react-hooks/src/useRegistrars.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { RegistrarInfo } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/useStashIds.ts b/packages/react-hooks/src/useStashIds.ts index 26652753af..f5aca9b246 100644 --- a/packages/react-hooks/src/useStashIds.ts +++ b/packages/react-hooks/src/useStashIds.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/useSudo.ts b/packages/react-hooks/src/useSudo.ts index ba4f2f1853..74589e993a 100644 --- a/packages/react-hooks/src/useSudo.ts +++ b/packages/react-hooks/src/useSudo.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId } from '@polkadot/types/interfaces'; import { UseSudo } from './types'; diff --git a/packages/react-hooks/src/useToggle.ts b/packages/react-hooks/src/useToggle.ts index 89842022d4..815fc04c36 100644 --- a/packages/react-hooks/src/useToggle.ts +++ b/packages/react-hooks/src/useToggle.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useCallback, useState } from 'react'; diff --git a/packages/react-hooks/src/useVotingStatus.ts b/packages/react-hooks/src/useVotingStatus.ts index 48216cd5a6..4a33e48a65 100644 --- a/packages/react-hooks/src/useVotingStatus.ts +++ b/packages/react-hooks/src/useVotingStatus.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, Votes } from '@polkadot/types/interfaces'; diff --git a/packages/react-hooks/src/useWeight.ts b/packages/react-hooks/src/useWeight.ts index 6e143f84df..39d43754ec 100644 --- a/packages/react-hooks/src/useWeight.ts +++ b/packages/react-hooks/src/useWeight.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-hooks authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Call } from '@polkadot/types/interfaces'; diff --git a/packages/react-params/src/Holder.tsx b/packages/react-params/src/Holder.tsx index 43aa963a67..16e10e496c 100644 --- a/packages/react-params/src/Holder.tsx +++ b/packages/react-params/src/Holder.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-params/src/Param/Account.tsx b/packages/react-params/src/Param/Account.tsx index cecdc6016b..a026b7b4c7 100644 --- a/packages/react-params/src/Param/Account.tsx +++ b/packages/react-params/src/Param/Account.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Amount.tsx b/packages/react-params/src/Param/Amount.tsx index f55c5351e2..326dca5180 100644 --- a/packages/react-params/src/Param/Amount.tsx +++ b/packages/react-params/src/Param/Amount.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Balance.tsx b/packages/react-params/src/Param/Balance.tsx index ad41480832..ddc3a82e57 100644 --- a/packages/react-params/src/Param/Balance.tsx +++ b/packages/react-params/src/Param/Balance.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Bare.tsx b/packages/react-params/src/Param/Bare.tsx index 60da1d93cd..a47f8aa597 100644 --- a/packages/react-params/src/Param/Bare.tsx +++ b/packages/react-params/src/Param/Bare.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import styled from 'styled-components'; diff --git a/packages/react-params/src/Param/Base.tsx b/packages/react-params/src/Param/Base.tsx index 21c9ca4cd4..897ba7b124 100644 --- a/packages/react-params/src/Param/Base.tsx +++ b/packages/react-params/src/Param/Base.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Size } from '../types'; diff --git a/packages/react-params/src/Param/BaseBytes.tsx b/packages/react-params/src/Param/BaseBytes.tsx index ac8e769e0b..d841207524 100644 --- a/packages/react-params/src/Param/BaseBytes.tsx +++ b/packages/react-params/src/Param/BaseBytes.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef } from '@polkadot/types/types'; import { RawParam, RawParamOnChange, RawParamOnEnter, RawParamOnEscape, Size } from '../types'; diff --git a/packages/react-params/src/Param/Bool.tsx b/packages/react-params/src/Param/Bool.tsx index ca2ab8fea8..57035627a0 100644 --- a/packages/react-params/src/Param/Bool.tsx +++ b/packages/react-params/src/Param/Bool.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Bytes.tsx b/packages/react-params/src/Param/Bytes.tsx index b2134b8a84..1af761cd03 100644 --- a/packages/react-params/src/Param/Bytes.tsx +++ b/packages/react-params/src/Param/Bytes.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Call.tsx b/packages/react-params/src/Param/Call.tsx index 4a8658099f..86ad8bccd8 100644 --- a/packages/react-params/src/Param/Call.tsx +++ b/packages/react-params/src/Param/Call.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Extrinsic } from '@polkadot/types/interfaces'; import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Code.tsx b/packages/react-params/src/Param/Code.tsx index a5a8b40bba..1c37b72660 100644 --- a/packages/react-params/src/Param/Code.tsx +++ b/packages/react-params/src/Param/Code.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/DispatchError.tsx b/packages/react-params/src/Param/DispatchError.tsx index 25c6094e51..4dd1d088e3 100644 --- a/packages/react-params/src/Param/DispatchError.tsx +++ b/packages/react-params/src/Param/DispatchError.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DispatchError } from '@polkadot/types/interfaces'; import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Enum.tsx b/packages/react-params/src/Param/Enum.tsx index eefe4527b0..03aea2608b 100644 --- a/packages/react-params/src/Param/Enum.tsx +++ b/packages/react-params/src/Param/Enum.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef } from '@polkadot/types/types'; import { ParamDef, Props, RawParam } from '../types'; diff --git a/packages/react-params/src/Param/File.tsx b/packages/react-params/src/Param/File.tsx index 2c6a9e2e75..94877a1c73 100644 --- a/packages/react-params/src/Param/File.tsx +++ b/packages/react-params/src/Param/File.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { InputFile } from '@polkadot/react-components'; diff --git a/packages/react-params/src/Param/Hash256.tsx b/packages/react-params/src/Param/Hash256.tsx index 585cbfff64..2b44abc04b 100644 --- a/packages/react-params/src/Param/Hash256.tsx +++ b/packages/react-params/src/Param/Hash256.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Hash512.tsx b/packages/react-params/src/Param/Hash512.tsx index d6a3f0ae0d..6e9d8dd52c 100644 --- a/packages/react-params/src/Param/Hash512.tsx +++ b/packages/react-params/src/Param/Hash512.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/KeyValue.tsx b/packages/react-params/src/Param/KeyValue.tsx index b0e8f48e67..8134683eb7 100644 --- a/packages/react-params/src/Param/KeyValue.tsx +++ b/packages/react-params/src/Param/KeyValue.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/KeyValueArray.tsx b/packages/react-params/src/Param/KeyValueArray.tsx index 1feae19780..85a972e78a 100644 --- a/packages/react-params/src/Param/KeyValueArray.tsx +++ b/packages/react-params/src/Param/KeyValueArray.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyValue as Pair } from '@polkadot/types/interfaces'; import { Props, RawParam } from '../types'; diff --git a/packages/react-params/src/Param/Moment.tsx b/packages/react-params/src/Param/Moment.tsx index 9773c3a597..af9ba59b1b 100644 --- a/packages/react-params/src/Param/Moment.tsx +++ b/packages/react-params/src/Param/Moment.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props, RawParamOnChangeValue } from '../types'; diff --git a/packages/react-params/src/Param/Null.tsx b/packages/react-params/src/Param/Null.tsx index 4249496aa9..d4176fdda7 100644 --- a/packages/react-params/src/Param/Null.tsx +++ b/packages/react-params/src/Param/Null.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/OpaqueCall.tsx b/packages/react-params/src/Param/OpaqueCall.tsx index f33337e14c..28c249a55d 100644 --- a/packages/react-params/src/Param/OpaqueCall.tsx +++ b/packages/react-params/src/Param/OpaqueCall.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Option.tsx b/packages/react-params/src/Param/Option.tsx index b217328ac8..debd38718d 100644 --- a/packages/react-params/src/Param/Option.tsx +++ b/packages/react-params/src/Param/Option.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef } from '@polkadot/types/types'; import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Raw.tsx b/packages/react-params/src/Param/Raw.tsx index d3f2062ec0..3d121f6b96 100644 --- a/packages/react-params/src/Param/Raw.tsx +++ b/packages/react-params/src/Param/Raw.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Codec } from '@polkadot/types/types'; import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Static.tsx b/packages/react-params/src/Param/Static.tsx index 6b9b70c4df..234ec3a406 100644 --- a/packages/react-params/src/Param/Static.tsx +++ b/packages/react-params/src/Param/Static.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Codec } from '@polkadot/types/types'; import { RawParam } from '../types'; diff --git a/packages/react-params/src/Param/Struct.tsx b/packages/react-params/src/Param/Struct.tsx index fd4805dd5b..60ffc4bf04 100644 --- a/packages/react-params/src/Param/Struct.tsx +++ b/packages/react-params/src/Param/Struct.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props, RawParam } from '../types'; diff --git a/packages/react-params/src/Param/Text.tsx b/packages/react-params/src/Param/Text.tsx index 3547a3fe16..fd81ea914f 100644 --- a/packages/react-params/src/Param/Text.tsx +++ b/packages/react-params/src/Param/Text.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Tuple.tsx b/packages/react-params/src/Param/Tuple.tsx index 3431946d5c..f3f68d601f 100644 --- a/packages/react-params/src/Param/Tuple.tsx +++ b/packages/react-params/src/Param/Tuple.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props, RawParam } from '../types'; diff --git a/packages/react-params/src/Param/Unknown.tsx b/packages/react-params/src/Param/Unknown.tsx index 9cc9bf7a53..3846e81c2b 100644 --- a/packages/react-params/src/Param/Unknown.tsx +++ b/packages/react-params/src/Param/Unknown.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/Vector.tsx b/packages/react-params/src/Param/Vector.tsx index ff9cb9dca8..0a1a56e034 100644 --- a/packages/react-params/src/Param/Vector.tsx +++ b/packages/react-params/src/Param/Vector.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ParamDef, Props, RawParam } from '../types'; diff --git a/packages/react-params/src/Param/VectorFixed.tsx b/packages/react-params/src/Param/VectorFixed.tsx index 979a747c0c..fdd2f7d21d 100644 --- a/packages/react-params/src/Param/VectorFixed.tsx +++ b/packages/react-params/src/Param/VectorFixed.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { ParamDef, Props, RawParam } from '../types'; diff --git a/packages/react-params/src/Param/Vote.tsx b/packages/react-params/src/Param/Vote.tsx index 4f2091a763..677577cc2c 100644 --- a/packages/react-params/src/Param/Vote.tsx +++ b/packages/react-params/src/Param/Vote.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/VoteThreshold.tsx b/packages/react-params/src/Param/VoteThreshold.tsx index 7550c2035a..a7e4c2c36e 100644 --- a/packages/react-params/src/Param/VoteThreshold.tsx +++ b/packages/react-params/src/Param/VoteThreshold.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props } from '../types'; diff --git a/packages/react-params/src/Param/findComponent.ts b/packages/react-params/src/Param/findComponent.ts index 4f781fb2cd..ade5a582b4 100644 --- a/packages/react-params/src/Param/findComponent.ts +++ b/packages/react-params/src/Param/findComponent.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef, TypeDefInfo } from '@polkadot/types/types'; import { Props, ComponentMap } from '../types'; diff --git a/packages/react-params/src/Param/index.tsx b/packages/react-params/src/Param/index.tsx index fab4cdb1a1..79918d7187 100644 --- a/packages/react-params/src/Param/index.tsx +++ b/packages/react-params/src/Param/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Props, Props as CProps } from '../types'; diff --git a/packages/react-params/src/Param/useParamDefs.ts b/packages/react-params/src/Param/useParamDefs.ts index 5fc8b1f8ff..2ce9f0f80b 100644 --- a/packages/react-params/src/Param/useParamDefs.ts +++ b/packages/react-params/src/Param/useParamDefs.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef } from '@polkadot/types/types'; import { ParamDef } from '../types'; diff --git a/packages/react-params/src/ParamComp.tsx b/packages/react-params/src/ParamComp.tsx index a8a15ed8c0..5cf6be0fbe 100644 --- a/packages/react-params/src/ParamComp.tsx +++ b/packages/react-params/src/ParamComp.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef } from '@polkadot/types/types'; import { ComponentMap, RawParam, RawParams, RawParamOnChangeValue } from './types'; diff --git a/packages/react-params/src/index.tsx b/packages/react-params/src/index.tsx index 588966e49f..eed644972d 100644 --- a/packages/react-params/src/index.tsx +++ b/packages/react-params/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { I18nProps } from '@polkadot/react-components/types'; import { ComponentMap, ParamDef, RawParam, RawParams, RawParamOnChangeValue } from './types'; diff --git a/packages/react-params/src/initValue.ts b/packages/react-params/src/initValue.ts index 52ecaa40d9..2953a8de76 100644 --- a/packages/react-params/src/initValue.ts +++ b/packages/react-params/src/initValue.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef, TypeDefInfo } from '@polkadot/types/types'; diff --git a/packages/react-params/src/translate.ts b/packages/react-params/src/translate.ts index 5d34b0acdf..f2b0c2dfa5 100644 --- a/packages/react-params/src/translate.ts +++ b/packages/react-params/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/react-params/src/types.ts b/packages/react-params/src/types.ts index 1728e2d675..4b91af2e57 100644 --- a/packages/react-params/src/types.ts +++ b/packages/react-params/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef } from '@polkadot/types/types'; diff --git a/packages/react-params/src/valueToText.tsx b/packages/react-params/src/valueToText.tsx index 27af8bc617..d907a7c1cb 100644 --- a/packages/react-params/src/valueToText.tsx +++ b/packages/react-params/src/valueToText.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Keys, ValidatorId } from '@polkadot/types/interfaces'; import { Codec } from '@polkadot/types/types'; diff --git a/packages/react-params/src/values.ts b/packages/react-params/src/values.ts index f05c95e164..8144c6b005 100644 --- a/packages/react-params/src/values.ts +++ b/packages/react-params/src/values.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-params authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { TypeDef } from '@polkadot/types/types'; import { RawParam } from './types'; diff --git a/packages/react-query/src/Available.tsx b/packages/react-query/src/Available.tsx index c3b502cdc9..4aadb6d0e2 100644 --- a/packages/react-query/src/Available.tsx +++ b/packages/react-query/src/Available.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/Balance.tsx b/packages/react-query/src/Balance.tsx index 0bec751379..832c675c4a 100644 --- a/packages/react-query/src/Balance.tsx +++ b/packages/react-query/src/Balance.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/BalanceFree.tsx b/packages/react-query/src/BalanceFree.tsx index c89f4b3df4..edb8548ae7 100644 --- a/packages/react-query/src/BalanceFree.tsx +++ b/packages/react-query/src/BalanceFree.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/BalanceVoting.tsx b/packages/react-query/src/BalanceVoting.tsx index 226f65a868..3dc4582418 100644 --- a/packages/react-query/src/BalanceVoting.tsx +++ b/packages/react-query/src/BalanceVoting.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/BestFinalized.tsx b/packages/react-query/src/BestFinalized.tsx index 5bce4edb6f..77b4ae8f24 100644 --- a/packages/react-query/src/BestFinalized.tsx +++ b/packages/react-query/src/BestFinalized.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/BestNumber.tsx b/packages/react-query/src/BestNumber.tsx index 18a07b490b..d2a0a3d320 100644 --- a/packages/react-query/src/BestNumber.tsx +++ b/packages/react-query/src/BestNumber.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/BlockAuthors.tsx b/packages/react-query/src/BlockAuthors.tsx index 3ccd32e484..ccfe862f48 100644 --- a/packages/react-query/src/BlockAuthors.tsx +++ b/packages/react-query/src/BlockAuthors.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { EraRewardPoints } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/BlockToTime.tsx b/packages/react-query/src/BlockToTime.tsx index d09f2dbeba..a534563288 100644 --- a/packages/react-query/src/BlockToTime.tsx +++ b/packages/react-query/src/BlockToTime.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React from 'react'; diff --git a/packages/react-query/src/Bonded.tsx b/packages/react-query/src/Bonded.tsx index c5dcb474fb..d07eb87e17 100644 --- a/packages/react-query/src/Bonded.tsx +++ b/packages/react-query/src/Bonded.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { AccountId, AccountIndex, Address, StakingLedger } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/Chain.tsx b/packages/react-query/src/Chain.tsx index 019cd4814d..37b89a8002 100644 --- a/packages/react-query/src/Chain.tsx +++ b/packages/react-query/src/Chain.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi } from '@polkadot/react-hooks'; diff --git a/packages/react-query/src/Elapsed.tsx b/packages/react-query/src/Elapsed.tsx index b698c1d586..4ac3a9b034 100644 --- a/packages/react-query/src/Elapsed.tsx +++ b/packages/react-query/src/Elapsed.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useEffect, useState } from 'react'; diff --git a/packages/react-query/src/Events.tsx b/packages/react-query/src/Events.tsx index bb08b7e63a..a4721cf706 100644 --- a/packages/react-query/src/Events.tsx +++ b/packages/react-query/src/Events.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { IndexedEvent, KeyedEvent } from './types'; diff --git a/packages/react-query/src/FormatBalance.tsx b/packages/react-query/src/FormatBalance.tsx index 5a7133e301..8b569566bc 100644 --- a/packages/react-query/src/FormatBalance.tsx +++ b/packages/react-query/src/FormatBalance.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React from 'react'; diff --git a/packages/react-query/src/LockedVote.tsx b/packages/react-query/src/LockedVote.tsx index 9d9b1ae37e..de9d010486 100644 --- a/packages/react-query/src/LockedVote.tsx +++ b/packages/react-query/src/LockedVote.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveCouncilVote } from '@polkadot/api-derive/types'; import { AccountId, AccountIndex, Address } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/NodeName.tsx b/packages/react-query/src/NodeName.tsx index 6d52db87d9..7e7e8095f4 100644 --- a/packages/react-query/src/NodeName.tsx +++ b/packages/react-query/src/NodeName.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi } from '@polkadot/react-hooks'; diff --git a/packages/react-query/src/NodeVersion.tsx b/packages/react-query/src/NodeVersion.tsx index 156e1df655..a0014c6e77 100644 --- a/packages/react-query/src/NodeVersion.tsx +++ b/packages/react-query/src/NodeVersion.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi } from '@polkadot/react-hooks'; diff --git a/packages/react-query/src/Nonce.tsx b/packages/react-query/src/Nonce.tsx index e6dac661ee..b62ffc64ff 100644 --- a/packages/react-query/src/Nonce.tsx +++ b/packages/react-query/src/Nonce.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { DeriveBalancesAll } from '@polkadot/api-derive/types'; diff --git a/packages/react-query/src/TimeNow.tsx b/packages/react-query/src/TimeNow.tsx index 13000b594d..13d87dfd5e 100644 --- a/packages/react-query/src/TimeNow.tsx +++ b/packages/react-query/src/TimeNow.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Moment } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/src/TotalIssuance.tsx b/packages/react-query/src/TotalIssuance.tsx index 94c898f032..873a4393b9 100644 --- a/packages/react-query/src/TotalIssuance.tsx +++ b/packages/react-query/src/TotalIssuance.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { useApi, useCall } from '@polkadot/react-hooks'; diff --git a/packages/react-query/src/index.ts b/packages/react-query/src/index.ts index 9b0cf81062..fc9cfc4c79 100644 --- a/packages/react-query/src/index.ts +++ b/packages/react-query/src/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as Available } from './Available'; export { default as Balance } from './Balance'; diff --git a/packages/react-query/src/translate.ts b/packages/react-query/src/translate.ts index 9c1cac3dfe..8a95025cd1 100644 --- a/packages/react-query/src/translate.ts +++ b/packages/react-query/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/react-query/src/types.ts b/packages/react-query/src/types.ts index 686dc1041e..882e0f19b1 100644 --- a/packages/react-query/src/types.ts +++ b/packages/react-query/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { BlockNumber, EventRecord } from '@polkadot/types/interfaces'; diff --git a/packages/react-query/webpack.config.js b/packages/react-query/webpack.config.js index 23a59b621d..b8c4b37a96 100644 --- a/packages/react-query/webpack.config.js +++ b/packages/react-query/webpack.config.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-query authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const ENV = process.env.NODE_ENV || 'development'; const isProd = ENV === 'production'; diff --git a/packages/react-signer/src/Address.tsx b/packages/react-signer/src/Address.tsx index f52052a25c..d51a701228 100644 --- a/packages/react-signer/src/Address.tsx +++ b/packages/react-signer/src/Address.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { QueueTx } from '@polkadot/react-components/Status/types'; diff --git a/packages/react-signer/src/Password.tsx b/packages/react-signer/src/Password.tsx index 2780b0fc06..484bdcc17e 100644 --- a/packages/react-signer/src/Password.tsx +++ b/packages/react-signer/src/Password.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { KeyringPair } from '@polkadot/keyring/types'; diff --git a/packages/react-signer/src/PaymentInfo.tsx b/packages/react-signer/src/PaymentInfo.tsx index d2a69bcf2e..3c988f789e 100644 --- a/packages/react-signer/src/PaymentInfo.tsx +++ b/packages/react-signer/src/PaymentInfo.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import { RuntimeDispatchInfo } from '@polkadot/types/interfaces'; diff --git a/packages/react-signer/src/Qr.tsx b/packages/react-signer/src/Qr.tsx index d138b916f2..3d89a56a75 100644 --- a/packages/react-signer/src/Qr.tsx +++ b/packages/react-signer/src/Qr.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import styled from 'styled-components'; diff --git a/packages/react-signer/src/SignFields.tsx b/packages/react-signer/src/SignFields.tsx index 34e4c2242c..935a900e36 100644 --- a/packages/react-signer/src/SignFields.tsx +++ b/packages/react-signer/src/SignFields.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SignerOptions } from '@polkadot/api/submittable/types'; diff --git a/packages/react-signer/src/Tip.tsx b/packages/react-signer/src/Tip.tsx index 4660c729f2..38d2a17f64 100644 --- a/packages/react-signer/src/Tip.tsx +++ b/packages/react-signer/src/Tip.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import BN from 'bn.js'; import React, { useEffect, useState } from 'react'; diff --git a/packages/react-signer/src/Transaction.tsx b/packages/react-signer/src/Transaction.tsx index 2023559ddc..43ae68aa7b 100644 --- a/packages/react-signer/src/Transaction.tsx +++ b/packages/react-signer/src/Transaction.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueueTx } from '@polkadot/react-components/Status/types'; diff --git a/packages/react-signer/src/TxSigned.tsx b/packages/react-signer/src/TxSigned.tsx index b336849583..a069dcd99d 100644 --- a/packages/react-signer/src/TxSigned.tsx +++ b/packages/react-signer/src/TxSigned.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { SignerOptions } from '@polkadot/api/submittable/types'; diff --git a/packages/react-signer/src/TxUnsigned.tsx b/packages/react-signer/src/TxUnsigned.tsx index b38b22d63c..8bdf5dbf66 100644 --- a/packages/react-signer/src/TxUnsigned.tsx +++ b/packages/react-signer/src/TxUnsigned.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SubmittableExtrinsic } from '@polkadot/api/types'; import { QueueTx, QueueTxMessageSetStatus } from '@polkadot/react-components/Status/types'; diff --git a/packages/react-signer/src/index.tsx b/packages/react-signer/src/index.tsx index 0ad89c49f9..d84c54f671 100644 --- a/packages/react-signer/src/index.tsx +++ b/packages/react-signer/src/index.tsx @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueueTx, QueueTxMessageSetStatus, QueueTxResult } from '@polkadot/react-components/Status/types'; import { BareProps as Props } from '@polkadot/react-components/types'; diff --git a/packages/react-signer/src/signers/AccountSigner.ts b/packages/react-signer/src/signers/AccountSigner.ts index 030bf36290..d44f4957df 100644 --- a/packages/react-signer/src/signers/AccountSigner.ts +++ b/packages/react-signer/src/signers/AccountSigner.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer, SignerResult } from '@polkadot/api/types'; import { KeyringPair } from '@polkadot/keyring/types'; diff --git a/packages/react-signer/src/signers/ApiSigner.ts b/packages/react-signer/src/signers/ApiSigner.ts index 6dc9a00350..476515028f 100644 --- a/packages/react-signer/src/signers/ApiSigner.ts +++ b/packages/react-signer/src/signers/ApiSigner.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer, SignerResult } from '@polkadot/api/types'; import { SubmittableResult } from '@polkadot/api'; diff --git a/packages/react-signer/src/signers/LedgerSigner.ts b/packages/react-signer/src/signers/LedgerSigner.ts index 605ee84b10..fcaed9600c 100644 --- a/packages/react-signer/src/signers/LedgerSigner.ts +++ b/packages/react-signer/src/signers/LedgerSigner.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer, SignerResult } from '@polkadot/api/types'; import { SignerPayloadJSON } from '@polkadot/types/types'; diff --git a/packages/react-signer/src/signers/QrSigner.ts b/packages/react-signer/src/signers/QrSigner.ts index a5981be3bc..d08e4fd34f 100644 --- a/packages/react-signer/src/signers/QrSigner.ts +++ b/packages/react-signer/src/signers/QrSigner.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { Signer, SignerResult } from '@polkadot/api/types'; import { SignerPayloadJSON } from '@polkadot/types/types'; diff --git a/packages/react-signer/src/signers/index.ts b/packages/react-signer/src/signers/index.ts index e1e584a37b..aad625c88e 100644 --- a/packages/react-signer/src/signers/index.ts +++ b/packages/react-signer/src/signers/index.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 export { default as AccountSigner } from './AccountSigner'; export { default as ApiSigner } from './ApiSigner'; diff --git a/packages/react-signer/src/translate.ts b/packages/react-signer/src/translate.ts index 9a415ab4da..bc8d5eec02 100644 --- a/packages/react-signer/src/translate.ts +++ b/packages/react-signer/src/translate.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next'; diff --git a/packages/react-signer/src/types.ts b/packages/react-signer/src/types.ts index 7fb07e0006..1bee8000b9 100644 --- a/packages/react-signer/src/types.ts +++ b/packages/react-signer/src/types.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { SignerResult } from '@polkadot/api/types'; diff --git a/packages/react-signer/src/util.ts b/packages/react-signer/src/util.ts index 3668e68506..3600175c88 100644 --- a/packages/react-signer/src/util.ts +++ b/packages/react-signer/src/util.ts @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/react-signer authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 import { QueueTx, QueueTxMessageSetStatus, QueueTxStatus } from '@polkadot/react-components/Status/types'; import { AddressFlags } from './types'; diff --git a/scripts/findPackages.js b/scripts/findPackages.js index fd7f2ff717..0ea06d1f10 100644 --- a/scripts/findPackages.js +++ b/scripts/findPackages.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const fs = require('fs'); const path = require('path'); diff --git a/scripts/i18nLint.js b/scripts/i18nLint.js index 99e3664513..ea4dbe3f82 100644 --- a/scripts/i18nLint.js +++ b/scripts/i18nLint.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const fs = require('fs'); const path = require('path'); diff --git a/scripts/i18nSort.js b/scripts/i18nSort.js index 228bc11b8e..9da45e02f4 100644 --- a/scripts/i18nSort.js +++ b/scripts/i18nSort.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const fs = require('fs'); const path = require('path'); diff --git a/scripts/ipfsUpload.js b/scripts/ipfsUpload.js index 3bed620e5a..27575ecd77 100644 --- a/scripts/ipfsUpload.js +++ b/scripts/ipfsUpload.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const fs = require('fs'); const pinataSDK = require('@pinata/sdk'); diff --git a/test/enzyme.js b/test/enzyme.js index 4c1e3e1667..9ca3593e0e 100644 --- a/test/enzyme.js +++ b/test/enzyme.js @@ -1,6 +1,5 @@ // Copyright 2017-2020 @polkadot/apps authors & contributors -// This software may be modified and distributed under the terms -// of the Apache-2.0 license. See the LICENSE file for details. +// SPDX-License-Identifier: Apache-2.0 const Adapter = require('enzyme-adapter-react-16'); const Enzyme = require('enzyme'); diff --git a/yarn.lock b/yarn.lock index 40454dc682..8fd2a173a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3365,7 +3365,7 @@ __metadata: dependencies: "@babel/core": ^7.11.6 "@babel/polyfill": ^7.11.5 - "@polkadot/dev": ^0.55.52 + "@polkadot/dev": ^0.55.53 "@polkadot/react-components": 0.59.0-beta.16 "@types/react": ^16.9.49 "@types/react-dom": ^16.9.8 @@ -3398,7 +3398,7 @@ __metadata: "@babel/core": ^7.11.6 "@babel/polyfill": ^7.11.5 "@babel/runtime": ^7.11.2 - "@polkadot/dev": ^0.55.52 + "@polkadot/dev": ^0.55.53 "@polkadot/react-components": 0.59.0-beta.16 "@polkadot/react-signer": 0.59.0-beta.16 "@types/punycode": ^2.1.0 @@ -3421,9 +3421,9 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev@npm:^0.55.52": - version: 0.55.52 - resolution: "@polkadot/dev@npm:0.55.52" +"@polkadot/dev@npm:^0.55.53": + version: 0.55.53 + resolution: "@polkadot/dev@npm:0.55.53" dependencies: "@babel/cli": ^7.11.6 "@babel/core": ^7.11.6 @@ -3513,7 +3513,7 @@ __metadata: polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js polkadot-exec-webpack: scripts/polkadot-exec-webpack.js - checksum: 72d8af9ad50913285743bead3ccbfc7cf49c1e90ecdec78e9ab1f97701b2589408c769341e66fcc09a8c3a229fabc268ba3734355091aa11f927cba93143c00c + checksum: 99de00bb9f821cd4566b98720b1d840cf59ddb3e1702e54addf9753015e46c1ebccbdfaee0d63e67f8ee92cfa8948558703fd5877e9dd17b17a7316f45f552c2 languageName: node linkType: hard @@ -18311,7 +18311,7 @@ fsevents@^1.2.7: "@babel/register": ^7.11.5 "@babel/runtime": ^7.11.2 "@pinata/sdk": ^1.1.11 - "@polkadot/dev": ^0.55.52 + "@polkadot/dev": ^0.55.53 "@polkadot/ts": ^0.3.47 "@types/bn.js": ^4.11.6 "@types/chart.js": ^2.9.24