* Bump API

* Adjust
This commit is contained in:
Jaco 2022-11-13 13:04:24 +02:00 committed by GitHub
parent 556644392c
commit dcc17b2114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 725 additions and 697 deletions

View File

@ -69,7 +69,7 @@
"@babel/runtime": "^7.20.1",
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^1.2.1",
"@polkadot/dev": "^0.67.154",
"@polkadot/dev": "^0.67.156",
"@types/chart.js": "^2.9.37",
"@types/file-saver": "^2.0.5",
"@types/jest": "^29.2.2",
@ -83,7 +83,7 @@
"concurrently": "^7.5.0",
"devtron": "^1.4.0",
"dnslink-cloudflare": "^3.0.0",
"electron": "^21.2.2",
"electron": "^21.2.3",
"electron-builder": "23.6.0",
"electron-builder-notarize": "^1.5.0",
"i18next-scanner": "^4.0.0",
@ -94,26 +94,26 @@
"styled-components": "^5.3.6"
},
"resolutions": {
"@polkadot/api": "^9.7.1",
"@polkadot/api-augment": "^9.7.1",
"@polkadot/api-base": "^9.7.1",
"@polkadot/api-contract": "^9.7.1",
"@polkadot/api-derive": "^9.7.1",
"@polkadot/hw-ledger": "^10.1.11",
"@polkadot/keyring": "^10.1.11",
"@polkadot/networks": "^10.1.11",
"@polkadot/api": "^9.8.1",
"@polkadot/api-augment": "^9.8.1",
"@polkadot/api-base": "^9.8.1",
"@polkadot/api-contract": "^9.8.1",
"@polkadot/api-derive": "^9.8.1",
"@polkadot/hw-ledger": "^10.1.12",
"@polkadot/keyring": "^10.1.12",
"@polkadot/networks": "^10.1.12",
"@polkadot/phishing": "^0.18.10",
"@polkadot/rpc-augment": "^9.7.1",
"@polkadot/rpc-core": "^9.7.1",
"@polkadot/rpc-provider": "^9.7.1",
"@polkadot/types": "^9.7.1",
"@polkadot/types-augment": "^9.7.1",
"@polkadot/types-codec": "^9.7.1",
"@polkadot/types-create": "^9.7.1",
"@polkadot/types-known": "^9.7.1",
"@polkadot/types-support": "^9.7.1",
"@polkadot/util": "^10.1.11",
"@polkadot/util-crypto": "^10.1.11",
"@polkadot/rpc-augment": "^9.8.1",
"@polkadot/rpc-core": "^9.8.1",
"@polkadot/rpc-provider": "^9.8.1",
"@polkadot/types": "^9.8.1",
"@polkadot/types-augment": "^9.8.1",
"@polkadot/types-codec": "^9.8.1",
"@polkadot/types-create": "^9.8.1",
"@polkadot/types-known": "^9.8.1",
"@polkadot/types-support": "^9.8.1",
"@polkadot/util": "^10.1.12",
"@polkadot/util-crypto": "^10.1.12",
"@polkadot/wasm-crypto": "^6.3.1",
"babel-core": "^7.0.0-bridge.0",
"styled-components": "^5.3.1",

View File

@ -31,12 +31,12 @@
"@metaverse-network-sdk/type-definitions": "^0.0.1-13",
"@parallel-finance/type-definitions": "1.7.13",
"@phala/typedefs": "0.2.32",
"@polkadot/api": "^9.7.1",
"@polkadot/api-derive": "^9.7.1",
"@polkadot/networks": "^10.1.11",
"@polkadot/types": "^9.7.1",
"@polkadot/util": "^10.1.11",
"@polkadot/x-fetch": "^10.1.11",
"@polkadot/api": "^9.8.1",
"@polkadot/api-derive": "^9.8.1",
"@polkadot/networks": "^10.1.12",
"@polkadot/types": "^9.8.1",
"@polkadot/util": "^10.1.12",
"@polkadot/x-fetch": "^10.1.12",
"@polymathnetwork/polymesh-types": "0.0.2",
"@snowfork/snowbridge-types": "0.2.7",
"@sora-substrate/type-definitions": "1.10.21",

View File

@ -14,7 +14,7 @@
"dependencies": {
"@babel/core": "^7.20.2",
"@babel/polyfill": "^7.12.1",
"@polkadot/dev": "^0.67.154",
"@polkadot/dev": "^0.67.156",
"@polkadot/react-components": "^0.122.3-7-x",
"electron-log": "^4.4.8",
"electron-updater": "^5.3.0"

View File

@ -18,7 +18,7 @@
"@babel/runtime": "^7.20.1",
"@polkadot/apps-config": "^0.122.3-7-x",
"@polkadot/apps-routing": "^0.122.3-7-x",
"@polkadot/dev": "^0.67.154",
"@polkadot/dev": "^0.67.156",
"@polkadot/react-api": "^0.122.3-7-x",
"@polkadot/react-components": "^0.122.3-7-x",
"@polkadot/react-hooks": "^0.122.3-7-x",

View File

@ -14,12 +14,12 @@
"version": "0.122.3-7-x",
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/hw-ledger": "^10.1.11",
"@polkadot/hw-ledger": "^10.1.12",
"@polkadot/phishing": "^0.18.10",
"@polkadot/react-components": "^0.122.3-7-x",
"@polkadot/react-hooks": "^0.122.3-7-x",
"@polkadot/util": "^10.1.11",
"@polkadot/vanitygen": "^0.52.15",
"@polkadot/util": "^10.1.12",
"@polkadot/vanitygen": "^0.52.16",
"detect-browser": "^5.3.0",
"file-saver": "^2.0.5"
},

View File

@ -14,6 +14,6 @@
"version": "0.122.3-7-x",
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/api-contract": "^9.7.1"
"@polkadot/api-contract": "^9.8.1"
}
}

View File

@ -1,9 +1,10 @@
// Copyright 2017-2022 @polkadot/app-democracy authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Option } from '@polkadot/types';
import type { BlockNumber, Call, Scheduled } from '@polkadot/types/interfaces';
import type { FrameSupportScheduleMaybeHashed, PalletSchedulerScheduledV3 } from '@polkadot/types/lookup';
import type { Bytes, Option, u8, u32 } from '@polkadot/types';
import type { BlockNumber, Call, Hash, Scheduled } from '@polkadot/types/interfaces';
import type { PalletSchedulerScheduled } from '@polkadot/types/lookup';
import type { Codec, ITuple } from '@polkadot/types/types';
import type { ScheduledExt } from './types';
import React, { useMemo, useRef } from 'react';
@ -18,8 +19,28 @@ interface Props {
className?: string;
}
// included here for backwards compat
interface PalletSchedulerScheduledV3 extends Codec {
maybeId: Option<Bytes>;
priority: u8;
call: FrameSupportScheduleMaybeHashed;
maybePeriodic: Option<ITuple<[u32, u32]>>;
origin: Codec;
}
// included here for backwards compat
interface FrameSupportScheduleMaybeHashed extends Codec {
// added here since we use it for detection
inner: Codec;
// enum features
isHash: boolean;
isValue: boolean;
asValue: Call;
asHash: Hash;
}
const OPT_SCHED = {
transform: (entries: [{ args: [BlockNumber] }, Option<Scheduled | PalletSchedulerScheduledV3>[]][]): ScheduledExt[] => {
transform: (entries: [{ args: [BlockNumber] }, Option<Scheduled | PalletSchedulerScheduled | PalletSchedulerScheduledV3>[]][]): ScheduledExt[] => {
return entries
.filter(([, all]) => all.some((o) => o.isSome))
.reduce((items: ScheduledExt[], [key, all]): ScheduledExt[] => {

View File

@ -18,10 +18,10 @@
},
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/api": "^9.7.1",
"@polkadot/api": "^9.8.1",
"@polkadot/extension-compat-metamask": "^0.44.6",
"@polkadot/extension-dapp": "^0.44.6",
"@polkadot/rpc-provider": "^9.7.1",
"@polkadot/rpc-provider": "^9.8.1",
"fflate": "^0.7.4",
"rxjs": "^7.5.7"
}

View File

@ -17,15 +17,15 @@
"@fortawesome/fontawesome-svg-core": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@polkadot/keyring": "^10.1.11",
"@polkadot/keyring": "^10.1.12",
"@polkadot/react-api": "^0.122.3-7-x",
"@polkadot/react-identicon": "^2.9.12",
"@polkadot/react-qr": "^2.9.12",
"@polkadot/react-query": "^0.122.3-7-x",
"@polkadot/ui-keyring": "^2.9.12",
"@polkadot/ui-settings": "^2.9.12",
"@polkadot/util": "^10.1.11",
"@polkadot/util-crypto": "^10.1.11",
"@polkadot/util": "^10.1.12",
"@polkadot/util-crypto": "^10.1.12",
"chart.js": "^3.9.1",
"codeflask": "^1.4.1",
"i18next": "^21.9.2",

View File

@ -14,7 +14,7 @@
"version": "0.122.3-7-x",
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/hw-ledger": "^10.1.11",
"@polkadot/hw-ledger": "^10.1.12",
"is-ipfs": "6.0.2"
}
}

View File

@ -14,7 +14,7 @@
"version": "0.122.3-7-x",
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/hw-ledger": "^10.1.11",
"@polkadot/hw-ledger": "^10.1.12",
"@polkadot/react-components": "^0.122.3-7-x"
}
}

View File

@ -17,7 +17,7 @@
"testcontainers": "^8.16.0"
},
"devDependencies": {
"@polkadot/types-support": "^9.7.1",
"@polkadot/types-support": "^9.8.1",
"@testing-library/jest-dom": "^5.16.5",
"tsconfig-paths": "^4.1.0"
}

1311
yarn.lock

File diff suppressed because it is too large Load Diff