Bump API (#8164)
This commit is contained in:
parent
f778359cfc
commit
29be6752e5
42
package.json
42
package.json
@ -69,7 +69,7 @@
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.1.26",
|
||||
"@polkadot/dev": "^0.67.130",
|
||||
"@polkadot/dev": "^0.67.132",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jest": "^29.0.3",
|
||||
@ -94,26 +94,26 @@
|
||||
"styled-components": "^5.3.5"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^9.4.1",
|
||||
"@polkadot/api-augment": "^9.4.1",
|
||||
"@polkadot/api-base": "^9.4.1",
|
||||
"@polkadot/api-contract": "^9.4.1",
|
||||
"@polkadot/api-derive": "^9.4.1",
|
||||
"@polkadot/hw-ledger": "^10.1.8",
|
||||
"@polkadot/keyring": "^10.1.8",
|
||||
"@polkadot/networks": "^10.1.8",
|
||||
"@polkadot/phishing": "^0.18.8",
|
||||
"@polkadot/rpc-augment": "^9.4.1",
|
||||
"@polkadot/rpc-core": "^9.4.1",
|
||||
"@polkadot/rpc-provider": "^9.4.1",
|
||||
"@polkadot/types": "^9.4.1",
|
||||
"@polkadot/types-augment": "^9.4.1",
|
||||
"@polkadot/types-codec": "^9.4.1",
|
||||
"@polkadot/types-create": "^9.4.1",
|
||||
"@polkadot/types-known": "^9.4.1",
|
||||
"@polkadot/types-support": "^9.4.1",
|
||||
"@polkadot/util": "^10.1.8",
|
||||
"@polkadot/util-crypto": "^10.1.8",
|
||||
"@polkadot/api": "^9.4.2",
|
||||
"@polkadot/api-augment": "^9.4.2",
|
||||
"@polkadot/api-base": "^9.4.2",
|
||||
"@polkadot/api-contract": "^9.4.2",
|
||||
"@polkadot/api-derive": "^9.4.2",
|
||||
"@polkadot/hw-ledger": "^10.1.9",
|
||||
"@polkadot/keyring": "^10.1.9",
|
||||
"@polkadot/networks": "^10.1.9",
|
||||
"@polkadot/phishing": "^0.18.9",
|
||||
"@polkadot/rpc-augment": "^9.4.2",
|
||||
"@polkadot/rpc-core": "^9.4.2",
|
||||
"@polkadot/rpc-provider": "^9.4.2",
|
||||
"@polkadot/types": "^9.4.2",
|
||||
"@polkadot/types-augment": "^9.4.2",
|
||||
"@polkadot/types-codec": "^9.4.2",
|
||||
"@polkadot/types-create": "^9.4.2",
|
||||
"@polkadot/types-known": "^9.4.2",
|
||||
"@polkadot/types-support": "^9.4.2",
|
||||
"@polkadot/util": "^10.1.9",
|
||||
"@polkadot/util-crypto": "^10.1.9",
|
||||
"@polkadot/wasm-crypto": "^6.3.1",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"styled-components": "^5.3.1",
|
||||
|
||||
@ -31,12 +31,12 @@
|
||||
"@metaverse-network-sdk/type-definitions": "^0.0.1-13",
|
||||
"@parallel-finance/type-definitions": "1.7.13",
|
||||
"@phala/typedefs": "0.2.31",
|
||||
"@polkadot/api": "^9.4.1",
|
||||
"@polkadot/api-derive": "^9.4.1",
|
||||
"@polkadot/networks": "^10.1.8",
|
||||
"@polkadot/types": "^9.4.1",
|
||||
"@polkadot/util": "^10.1.8",
|
||||
"@polkadot/x-fetch": "^10.1.8",
|
||||
"@polkadot/api": "^9.4.2",
|
||||
"@polkadot/api-derive": "^9.4.2",
|
||||
"@polkadot/networks": "^10.1.9",
|
||||
"@polkadot/types": "^9.4.2",
|
||||
"@polkadot/util": "^10.1.9",
|
||||
"@polkadot/x-fetch": "^10.1.9",
|
||||
"@polymathnetwork/polymesh-types": "0.0.2",
|
||||
"@snowfork/snowbridge-types": "0.2.7",
|
||||
"@sora-substrate/type-definitions": "1.10.0-beta.7",
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.19.1",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@polkadot/dev": "^0.67.130",
|
||||
"@polkadot/dev": "^0.67.132",
|
||||
"@polkadot/react-components": "^0.121.2-71-x",
|
||||
"electron-log": "^4.4.8",
|
||||
"electron-updater": "^4.6.5"
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@polkadot/apps-config": "^0.121.2-71-x",
|
||||
"@polkadot/apps-routing": "^0.121.2-71-x",
|
||||
"@polkadot/dev": "^0.67.130",
|
||||
"@polkadot/dev": "^0.67.132",
|
||||
"@polkadot/react-api": "^0.121.2-71-x",
|
||||
"@polkadot/react-components": "^0.121.2-71-x",
|
||||
"@polkadot/react-hooks": "^0.121.2-71-x",
|
||||
|
||||
@ -14,12 +14,12 @@
|
||||
"version": "0.121.2-71-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@polkadot/hw-ledger": "^10.1.8",
|
||||
"@polkadot/phishing": "^0.18.8",
|
||||
"@polkadot/hw-ledger": "^10.1.9",
|
||||
"@polkadot/phishing": "^0.18.9",
|
||||
"@polkadot/react-components": "^0.121.2-71-x",
|
||||
"@polkadot/react-hooks": "^0.121.2-71-x",
|
||||
"@polkadot/util": "^10.1.8",
|
||||
"@polkadot/vanitygen": "^0.52.8",
|
||||
"@polkadot/util": "^10.1.9",
|
||||
"@polkadot/vanitygen": "^0.52.9",
|
||||
"detect-browser": "^5.3.0",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
|
||||
@ -14,6 +14,6 @@
|
||||
"version": "0.121.2-71-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@polkadot/api-contract": "^9.4.1"
|
||||
"@polkadot/api-contract": "^9.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ function Rebag ({ bagUpper, stashIds }: Props): React.ReactElement<Props> | null
|
||||
);
|
||||
const [selectedIds, setSelectedIds] = useState<string[]>([]);
|
||||
const changes = useMemo(
|
||||
() => selectedIds.map((s) => (api.tx.bagsList || api.tx.voterList).rebag(s)),
|
||||
() => selectedIds.map((s) => (api.tx.voterBagsList || api.tx.bagsList || api.tx.voterList).rebag(s)),
|
||||
[api, selectedIds]
|
||||
);
|
||||
const tx = useTxBatch(changes);
|
||||
|
||||
@ -63,7 +63,7 @@ function Stash ({ bagLower, bagUpper, className, isLoading, list, stashId }: Pro
|
||||
isDisabled={isLoading}
|
||||
label={t<string>('Move up {{jumpCount}}', { replace: { jumpCount } })}
|
||||
params={[stashInfo.jump]}
|
||||
tx={(api.tx.bagsList || api.tx.voterList).putInFrontOf}
|
||||
tx={(api.tx.voterBagsList || api.tx.bagsList || api.tx.voterList).putInFrontOf}
|
||||
/>
|
||||
)
|
||||
: null
|
||||
|
||||
@ -7,11 +7,11 @@ import { useMemo } from 'react';
|
||||
|
||||
import { createNamedHook, useApi } from '@polkadot/react-hooks';
|
||||
|
||||
function useModuleImpl (): AugmentedQueries<'promise'>['bagsList'] {
|
||||
function useModuleImpl (): AugmentedQueries<'promise'>['voterBagsList'] {
|
||||
const { api } = useApi();
|
||||
|
||||
return useMemo(
|
||||
() => api.query.bagsList || api.query.voterList,
|
||||
() => api.query.voterBagsList || api.query.bagsList || api.query.voterList,
|
||||
[api]
|
||||
);
|
||||
}
|
||||
|
||||
@ -129,7 +129,7 @@ function StakingApp ({ basePath, className = '' }: Props): React.ReactElement<Pr
|
||||
name: 'targets',
|
||||
text: t<string>('Targets')
|
||||
},
|
||||
hasStashes && isFunction((api.query.bagsList || api.query.voterList)?.counterForListNodes) && {
|
||||
hasStashes && isFunction((api.query.voterBagsList || api.query.bagsList || api.query.voterList)?.counterForListNodes) && {
|
||||
name: 'bags',
|
||||
text: t<string>('Bags')
|
||||
},
|
||||
|
||||
@ -290,7 +290,7 @@ function useSortedTargetsImpl (favorites: string[], withLedger: boolean): Sorted
|
||||
|
||||
const baseInfo = useMemo(
|
||||
() => electedInfo && lastEraInfo && totalIssuance && waitingInfo
|
||||
? extractBaseInfo(api, allAccounts, electedInfo, waitingInfo, favorites, totalIssuance, lastEraInfo, historyDepth)
|
||||
? extractBaseInfo(api, allAccounts, electedInfo, waitingInfo, favorites, totalIssuance, lastEraInfo, api.consts.staking.historyDepth || historyDepth)
|
||||
: EMPTY_PARTIAL,
|
||||
[api, allAccounts, electedInfo, favorites, historyDepth, lastEraInfo, totalIssuance, waitingInfo]
|
||||
);
|
||||
|
||||
@ -18,10 +18,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@polkadot/api": "^9.4.1",
|
||||
"@polkadot/api": "^9.4.2",
|
||||
"@polkadot/extension-compat-metamask": "^0.44.6",
|
||||
"@polkadot/extension-dapp": "^0.44.6",
|
||||
"@polkadot/rpc-provider": "^9.4.1",
|
||||
"@polkadot/rpc-provider": "^9.4.2",
|
||||
"fflate": "^0.7.3",
|
||||
"rxjs": "^7.5.6"
|
||||
}
|
||||
|
||||
@ -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.8",
|
||||
"@polkadot/keyring": "^10.1.9",
|
||||
"@polkadot/react-api": "^0.121.2-71-x",
|
||||
"@polkadot/react-identicon": "^2.9.9",
|
||||
"@polkadot/react-qr": "^2.9.9",
|
||||
"@polkadot/react-identicon": "^2.9.10",
|
||||
"@polkadot/react-qr": "^2.9.10",
|
||||
"@polkadot/react-query": "^0.121.2-71-x",
|
||||
"@polkadot/ui-keyring": "^2.9.9",
|
||||
"@polkadot/ui-settings": "^2.9.9",
|
||||
"@polkadot/util": "^10.1.8",
|
||||
"@polkadot/util-crypto": "^10.1.8",
|
||||
"@polkadot/ui-keyring": "^2.9.10",
|
||||
"@polkadot/ui-settings": "^2.9.10",
|
||||
"@polkadot/util": "^10.1.9",
|
||||
"@polkadot/util-crypto": "^10.1.9",
|
||||
"chart.js": "^3.9.1",
|
||||
"codeflask": "^1.4.1",
|
||||
"i18next": "^21.9.1",
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"version": "0.121.2-71-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@polkadot/hw-ledger": "^10.1.8",
|
||||
"@polkadot/hw-ledger": "^10.1.9",
|
||||
"is-ipfs": "6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"version": "0.121.2-71-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.19.0",
|
||||
"@polkadot/hw-ledger": "^10.1.8",
|
||||
"@polkadot/hw-ledger": "^10.1.9",
|
||||
"@polkadot/react-components": "^0.121.2-71-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
"testcontainers": "^8.13.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "^9.4.1",
|
||||
"@polkadot/types-support": "^9.4.2",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"tsconfig-paths": "^4.1.0"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user