parent
172ca21ce3
commit
d5454f96e6
56
package.json
56
package.json
@ -69,7 +69,7 @@
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.2.1",
|
||||
"@polkadot/dev": "^0.67.187",
|
||||
"@polkadot/dev": "^0.68.2",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jest": "^29.2.6",
|
||||
@ -94,34 +94,34 @@
|
||||
"styled-components": "^5.3.6"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^9.12.1",
|
||||
"@polkadot/api-augment": "^9.12.1",
|
||||
"@polkadot/api-base": "^9.12.1",
|
||||
"@polkadot/api-contract": "^9.12.1",
|
||||
"@polkadot/api-derive": "^9.12.1",
|
||||
"@polkadot/hw-ledger": "^10.2.6",
|
||||
"@polkadot/keyring": "^10.2.6",
|
||||
"@polkadot/networks": "^10.2.6",
|
||||
"@polkadot/phishing": "^0.18.13",
|
||||
"@polkadot/rpc-augment": "^9.12.1",
|
||||
"@polkadot/rpc-core": "^9.12.1",
|
||||
"@polkadot/rpc-provider": "^9.12.1",
|
||||
"@polkadot/types": "^9.12.1",
|
||||
"@polkadot/types-augment": "^9.12.1",
|
||||
"@polkadot/types-codec": "^9.12.1",
|
||||
"@polkadot/types-create": "^9.12.1",
|
||||
"@polkadot/types-known": "^9.12.1",
|
||||
"@polkadot/types-support": "^9.12.1",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"@polkadot/api": "^9.13.2",
|
||||
"@polkadot/api-augment": "^9.13.2",
|
||||
"@polkadot/api-base": "^9.13.2",
|
||||
"@polkadot/api-contract": "^9.13.2",
|
||||
"@polkadot/api-derive": "^9.13.2",
|
||||
"@polkadot/hw-ledger": "^10.3.1",
|
||||
"@polkadot/keyring": "^10.3.1",
|
||||
"@polkadot/networks": "^10.3.1",
|
||||
"@polkadot/phishing": "^0.19.1",
|
||||
"@polkadot/rpc-augment": "^9.13.2",
|
||||
"@polkadot/rpc-core": "^9.13.2",
|
||||
"@polkadot/rpc-provider": "^9.13.2",
|
||||
"@polkadot/types": "^9.13.2",
|
||||
"@polkadot/types-augment": "^9.13.2",
|
||||
"@polkadot/types-codec": "^9.13.2",
|
||||
"@polkadot/types-create": "^9.13.2",
|
||||
"@polkadot/types-known": "^9.13.2",
|
||||
"@polkadot/types-support": "^9.13.2",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@polkadot/wasm-crypto": "^6.4.1",
|
||||
"@polkadot/x-bigint": "^10.2.6",
|
||||
"@polkadot/x-fetch": "^10.2.6",
|
||||
"@polkadot/x-global": "^10.2.6",
|
||||
"@polkadot/x-randomvalues": "^10.2.6",
|
||||
"@polkadot/x-textdecoder": "^10.2.6",
|
||||
"@polkadot/x-textencoder": "^10.2.6",
|
||||
"@polkadot/x-ws": "^10.2.6",
|
||||
"@polkadot/x-bigint": "^10.3.1",
|
||||
"@polkadot/x-fetch": "^10.3.1",
|
||||
"@polkadot/x-global": "^10.3.1",
|
||||
"@polkadot/x-randomvalues": "^10.3.1",
|
||||
"@polkadot/x-textdecoder": "^10.3.1",
|
||||
"@polkadot/x-textencoder": "^10.3.1",
|
||||
"@polkadot/x-ws": "^10.3.1",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"styled-components": "^5.3.1",
|
||||
"typescript": "^4.9.4"
|
||||
|
||||
@ -32,12 +32,12 @@
|
||||
"@metaverse-network-sdk/type-definitions": "^0.0.1-13",
|
||||
"@parallel-finance/type-definitions": "1.7.14",
|
||||
"@phala/typedefs": "0.2.33",
|
||||
"@polkadot/api": "^9.12.1",
|
||||
"@polkadot/api-derive": "^9.12.1",
|
||||
"@polkadot/networks": "^10.2.6",
|
||||
"@polkadot/types": "^9.12.1",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/x-fetch": "^10.2.6",
|
||||
"@polkadot/api": "^9.13.2",
|
||||
"@polkadot/api-derive": "^9.13.2",
|
||||
"@polkadot/networks": "^10.3.1",
|
||||
"@polkadot/types": "^9.13.2",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/x-fetch": "^10.3.1",
|
||||
"@polymathnetwork/polymesh-types": "0.0.2",
|
||||
"@snowfork/snowbridge-types": "0.2.7",
|
||||
"@sora-substrate/type-definitions": "1.12.4",
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@polkadot/dev": "^0.67.187",
|
||||
"@polkadot/dev": "^0.68.2",
|
||||
"@polkadot/react-components": "^0.123.2-34-x",
|
||||
"electron-log": "^4.4.8",
|
||||
"electron-updater": "^5.3.0"
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/apps-config": "^0.123.2-34-x",
|
||||
"@polkadot/apps-routing": "^0.123.2-34-x",
|
||||
"@polkadot/dev": "^0.67.187",
|
||||
"@polkadot/dev": "^0.68.2",
|
||||
"@polkadot/react-api": "^0.123.2-34-x",
|
||||
"@polkadot/react-components": "^0.123.2-34-x",
|
||||
"@polkadot/react-hooks": "^0.123.2-34-x",
|
||||
|
||||
@ -14,12 +14,12 @@
|
||||
"version": "0.123.2-34-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/hw-ledger": "^10.2.6",
|
||||
"@polkadot/phishing": "^0.18.13",
|
||||
"@polkadot/hw-ledger": "^10.3.1",
|
||||
"@polkadot/phishing": "^0.19.1",
|
||||
"@polkadot/react-components": "^0.123.2-34-x",
|
||||
"@polkadot/react-hooks": "^0.123.2-34-x",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/vanitygen": "^0.52.24",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/vanitygen": "^0.52.25",
|
||||
"detect-browser": "^5.3.0",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
|
||||
@ -14,6 +14,6 @@
|
||||
"version": "0.123.2-34-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api-contract": "^9.12.1"
|
||||
"@polkadot/api-contract": "^9.13.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import styled from 'styled-components';
|
||||
|
||||
import { Button, Dropdown, Expander, InputAddress, InputBalance, Modal, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { useAccountId, useDebounce, useFormField, useToggle } from '@polkadot/react-hooks';
|
||||
import { convertWeight } from '@polkadot/react-hooks/useWeight';
|
||||
import { Available } from '@polkadot/react-query';
|
||||
import { BN, BN_ONE, BN_ZERO } from '@polkadot/util';
|
||||
|
||||
@ -69,7 +70,7 @@ function Call ({ className = '', contract, messageIndex, onCallResult, onChangeM
|
||||
.query[message.method](accountId, { gasLimit: -1, storageDepositLimit: null, value: message.isPayable ? dbValue : 0 }, ...dbParams)
|
||||
.then(({ gasRequired, result }) => setEstimatedWeight(
|
||||
result.isOk
|
||||
? gasRequired
|
||||
? convertWeight(gasRequired).v1Weight
|
||||
: null
|
||||
))
|
||||
.catch(() => setEstimatedWeight(null));
|
||||
|
||||
@ -18,10 +18,10 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api": "^9.12.1",
|
||||
"@polkadot/api": "^9.13.2",
|
||||
"@polkadot/extension-compat-metamask": "^0.44.8",
|
||||
"@polkadot/extension-dapp": "^0.44.8",
|
||||
"@polkadot/rpc-provider": "^9.12.1",
|
||||
"@polkadot/rpc-provider": "^9.13.2",
|
||||
"fflate": "^0.7.4",
|
||||
"rxjs": "^7.8.0"
|
||||
}
|
||||
|
||||
@ -17,15 +17,15 @@
|
||||
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
"@polkadot/keyring": "^10.2.6",
|
||||
"@polkadot/keyring": "^10.3.1",
|
||||
"@polkadot/react-api": "^0.123.2-34-x",
|
||||
"@polkadot/react-identicon": "^2.10.1",
|
||||
"@polkadot/react-qr": "^2.10.1",
|
||||
"@polkadot/react-identicon": "^2.11.1",
|
||||
"@polkadot/react-qr": "^2.11.1",
|
||||
"@polkadot/react-query": "^0.123.2-34-x",
|
||||
"@polkadot/ui-keyring": "^2.10.1",
|
||||
"@polkadot/ui-settings": "^2.10.1",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"@polkadot/ui-keyring": "^2.11.1",
|
||||
"@polkadot/ui-settings": "^2.11.1",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@types/chartjs-plugin-crosshair": "^1.1.1",
|
||||
"chart.js": "^3.9.1",
|
||||
"chartjs-plugin-annotation": "^2.1.2",
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"version": "0.123.2-34-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/hw-ledger": "^10.2.6",
|
||||
"@polkadot/hw-ledger": "^10.3.1",
|
||||
"is-ipfs": "6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ function useWeightImpl (call?: Call | null): Result {
|
||||
const { api } = useApi();
|
||||
const mountedRef = useIsMountedRef();
|
||||
const [state, setState] = useState<Result>(() => objectSpread({
|
||||
isWeightV2: !isFunction(api.registry.createType('Weight').toBn)
|
||||
isWeightV2: !isFunction(api.registry.createType<V1Weight>('Weight').toBn)
|
||||
}, EMPTY_STATE));
|
||||
|
||||
useEffect((): void => {
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"version": "0.123.2-34-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/hw-ledger": "^10.2.6",
|
||||
"@polkadot/hw-ledger": "^10.3.1",
|
||||
"@polkadot/react-components": "^0.123.2-34-x"
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
"testcontainers": "^9.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "^9.12.1",
|
||||
"@polkadot/types-support": "^9.13.2",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"tsconfig-paths": "^4.1.2"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user