Use BN_* constants in contract default params (#3507)
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@polkadot/api": "4.9.3-5",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/x-rxjs": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"@polkadot/x-rxjs": "^6.3.2-6",
|
||||
"bn.js": "^4.11.9"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { MapConstructorExec } from './types';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import { isUndefined } from '@polkadot/util';
|
||||
import { BN_ZERO, isUndefined } from '@polkadot/util';
|
||||
|
||||
import { Abi } from '../Abi';
|
||||
import { applyOnEvent } from '../util';
|
||||
@@ -52,7 +52,7 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
return this.#tx;
|
||||
}
|
||||
|
||||
#deploy = (constructorOrId: AbiConstructor | string | number, { gasLimit = 0, salt, value = 0 }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, BlueprintSubmittableResult<ApiType>> => {
|
||||
#deploy = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, value = BN_ZERO }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, BlueprintSubmittableResult<ApiType>> => {
|
||||
const encodedSalt = encodeSalt(salt);
|
||||
const withSalt = this.api.tx.contracts.instantiate.meta.args.length === 5;
|
||||
const encoded = this.abi.findConstructor(constructorOrId).toU8a(params, withSalt ? EMPTY_SALT : encodedSalt);
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { MapConstructorExec } from './types';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import { assert, compactAddLength, isFunction, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
||||
import { assert, BN_ZERO, compactAddLength, isFunction, isUndefined, isWasm, u8aToU8a } from '@polkadot/util';
|
||||
import { blake2AsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
import { Abi } from '../Abi';
|
||||
@@ -63,13 +63,13 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
: this.#instantiatePrev(constructorOrId, options, params);
|
||||
}
|
||||
|
||||
#instantiateCurrent = (constructorOrId: AbiConstructor | string | number, { gasLimit = 0, salt, value = 0 }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||
#instantiateCurrent = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, value = BN_ZERO }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||
return this.api.tx.contracts
|
||||
.instantiateWithCode(value, gasLimit, compactAddLength(this.code), this.abi.findConstructor(constructorOrId).toU8a(params), encodeSalt(salt))
|
||||
.withResultTransform(this.#transformEvents);
|
||||
}
|
||||
|
||||
#instantiatePrev = (constructorOrId: AbiConstructor | string | number, { gasLimit = 0, salt, value = 0 }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||
#instantiatePrev = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, value = BN_ZERO }: BlueprintOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||
assert(isFunction(this.api.tx.utility?.batch), 'Your chain does not include the utility pallet, for contracts v2 deployment, this is required');
|
||||
|
||||
const encodedSalt = encodeSalt(salt);
|
||||
|
||||
@@ -13,7 +13,7 @@ import BN from 'bn.js';
|
||||
|
||||
import { SubmittableResult } from '@polkadot/api';
|
||||
import { ApiBase } from '@polkadot/api/base';
|
||||
import { assert, bnToBn, isFunction, isUndefined, logger } from '@polkadot/util';
|
||||
import { assert, BN_HUNDRED, BN_ONE, BN_ZERO, bnToBn, isFunction, isUndefined, logger } from '@polkadot/util';
|
||||
import { map } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { Abi } from '../Abi';
|
||||
@@ -21,7 +21,7 @@ import { applyOnEvent, extractOptions, formatData, isOptions } from '../util';
|
||||
import { Base } from './Base';
|
||||
|
||||
// As per Rust, 5 * GAS_PER_SEC
|
||||
const MAX_CALL_GAS = new BN(5_000_000_000_000).subn(1);
|
||||
const MAX_CALL_GAS = new BN(5_000_000_000_000).isub(BN_ONE);
|
||||
const ERROR_NO_CALL = 'Your node does not expose the contracts.call RPC. This is most probably due to a runtime configuration.';
|
||||
|
||||
const l = logger('Contract');
|
||||
@@ -120,17 +120,17 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
#getGas = (_gasLimit: BigInt | BN | string | number, isCall = false): BN => {
|
||||
const gasLimit = bnToBn(_gasLimit);
|
||||
|
||||
return gasLimit.lten(0)
|
||||
return gasLimit.lte(BN_ZERO)
|
||||
? isCall
|
||||
? MAX_CALL_GAS
|
||||
: (this.api.consts.system.blockWeights
|
||||
? this.api.consts.system.blockWeights.maxBlock
|
||||
: this.api.consts.system.maximumBlockWeight as Weight
|
||||
).muln(64).divn(100)
|
||||
).muln(64).div(BN_HUNDRED)
|
||||
: gasLimit;
|
||||
}
|
||||
|
||||
#exec = (messageOrId: AbiMessage | string | number, { gasLimit = 0, value = 0 }: ContractOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType> => {
|
||||
#exec = (messageOrId: AbiMessage | string | number, { gasLimit = BN_ZERO, value = BN_ZERO }: ContractOptions, params: CodecArg[]): SubmittableExtrinsic<ApiType> => {
|
||||
return this.api.tx.contracts
|
||||
.call(this.address, value, this.#getGas(gasLimit), this.abi.findMessage(messageOrId).toU8a(params))
|
||||
.withResultTransform((result: ISubmittableResult) =>
|
||||
@@ -151,7 +151,7 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
||||
);
|
||||
}
|
||||
|
||||
#read = (messageOrId: AbiMessage | string | number, { gasLimit = 0, value = 0 }: ContractOptions, params: CodecArg[]): ContractCallSend<ApiType> => {
|
||||
#read = (messageOrId: AbiMessage | string | number, { gasLimit = BN_ZERO, value = BN_ZERO }: ContractOptions, params: CodecArg[]): ContractCallSend<ApiType> => {
|
||||
assert(this.hasRpcContractsCall, ERROR_NO_CALL);
|
||||
|
||||
const message = this.abi.findMessage(messageOrId);
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
"@polkadot/api": "4.9.3-5",
|
||||
"@polkadot/rpc-core": "4.9.3-5",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/util-crypto": "^6.3.1",
|
||||
"@polkadot/x-rxjs": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"@polkadot/util-crypto": "^6.3.2-6",
|
||||
"@polkadot/x-rxjs": "^6.3.2-6",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.3.1",
|
||||
"@polkadot/keyring": "^6.3.2-6",
|
||||
"@polkadot/rpc-provider": "4.9.3-5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,15 +21,15 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@polkadot/api-derive": "4.9.3-5",
|
||||
"@polkadot/keyring": "^6.3.1",
|
||||
"@polkadot/keyring": "^6.3.2-6",
|
||||
"@polkadot/metadata": "4.9.3-5",
|
||||
"@polkadot/rpc-core": "4.9.3-5",
|
||||
"@polkadot/rpc-provider": "4.9.3-5",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/types-known": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/util-crypto": "^6.3.1",
|
||||
"@polkadot/x-rxjs": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"@polkadot/util-crypto": "^6.3.2-6",
|
||||
"@polkadot/x-rxjs": "^6.3.2-6",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
}
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/types-known": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/util-crypto": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"@polkadot/util-crypto": "^6.3.2-6",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.3.1"
|
||||
"@polkadot/keyring": "^6.3.2-6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
"@polkadot/metadata": "4.9.3-5",
|
||||
"@polkadot/rpc-provider": "4.9.3-5",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/x-rxjs": "^6.3.1"
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"@polkadot/x-rxjs": "^6.3.2-6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.3.1"
|
||||
"@polkadot/keyring": "^6.3.2-6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,16 +21,16 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/util-crypto": "^6.3.1",
|
||||
"@polkadot/x-fetch": "^6.3.1",
|
||||
"@polkadot/x-global": "^6.3.1",
|
||||
"@polkadot/x-ws": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"@polkadot/util-crypto": "^6.3.2-6",
|
||||
"@polkadot/x-fetch": "^6.3.2-6",
|
||||
"@polkadot/x-global": "^6.3.2-6",
|
||||
"@polkadot/x-ws": "^6.3.2-6",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.3.1",
|
||||
"@polkadot/keyring": "^6.3.2-6",
|
||||
"@polkadot/metadata": "4.9.3-5",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.0.11"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"@polkadot/metadata": "4.9.3-5",
|
||||
"@polkadot/rpc-provider": "4.9.3-5",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.0.1"
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@polkadot/networks": "^6.3.1",
|
||||
"@polkadot/networks": "^6.3.2-6",
|
||||
"@polkadot/types": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -21,13 +21,13 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@polkadot/metadata": "4.9.3-5",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@polkadot/util-crypto": "^6.3.1",
|
||||
"@polkadot/x-rxjs": "^6.3.1",
|
||||
"@polkadot/util": "^6.3.2-6",
|
||||
"@polkadot/util-crypto": "^6.3.2-6",
|
||||
"@polkadot/x-rxjs": "^6.3.2-6",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.3.1"
|
||||
"@polkadot/keyring": "^6.3.2-6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1360,7 +1360,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/runtime@npm:^7.13.17, @babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.14.0, @babel/runtime@npm:^7.8.4":
|
||||
"@babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.14.0, @babel/runtime@npm:^7.8.4":
|
||||
version: 7.14.0
|
||||
resolution: "@babel/runtime@npm:7.14.0"
|
||||
dependencies:
|
||||
@@ -1843,8 +1843,8 @@ __metadata:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/api": 4.9.3-5
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/x-rxjs": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@polkadot/x-rxjs": ^6.3.2-6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -1855,13 +1855,13 @@ __metadata:
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/api": 4.9.3-5
|
||||
"@polkadot/keyring": ^6.3.1
|
||||
"@polkadot/keyring": ^6.3.2-6
|
||||
"@polkadot/rpc-core": 4.9.3-5
|
||||
"@polkadot/rpc-provider": 4.9.3-5
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/util-crypto": ^6.3.1
|
||||
"@polkadot/x-rxjs": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@polkadot/util-crypto": ^6.3.2-6
|
||||
"@polkadot/x-rxjs": ^6.3.2-6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -1872,15 +1872,15 @@ __metadata:
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/api-derive": 4.9.3-5
|
||||
"@polkadot/keyring": ^6.3.1
|
||||
"@polkadot/keyring": ^6.3.2-6
|
||||
"@polkadot/metadata": 4.9.3-5
|
||||
"@polkadot/rpc-core": 4.9.3-5
|
||||
"@polkadot/rpc-provider": 4.9.3-5
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/types-known": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/util-crypto": ^6.3.1
|
||||
"@polkadot/x-rxjs": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@polkadot/util-crypto": ^6.3.2-6
|
||||
"@polkadot/x-rxjs": ^6.3.2-6
|
||||
bn.js: ^4.11.9
|
||||
eventemitter3: ^4.0.7
|
||||
languageName: unknown
|
||||
@@ -1972,17 +1972,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/keyring@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/keyring@npm:6.3.1"
|
||||
"@polkadot/keyring@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/keyring@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/util": 6.3.1
|
||||
"@polkadot/util-crypto": 6.3.1
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/util": 6.3.2-6
|
||||
"@polkadot/util-crypto": 6.3.2-6
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.3.1
|
||||
"@polkadot/util-crypto": 6.3.1
|
||||
checksum: aab63b74f1eebc49ac3c6ddd6b385695ec6d07e15f03ece02f3f516298b07b51ecf47cb8a8f5c38804cc2ae347886716a46f3f0d6ad83281fd11f7494875e1e8
|
||||
"@polkadot/util": 6.3.2-6
|
||||
"@polkadot/util-crypto": 6.3.2-6
|
||||
checksum: 3182e1286d797777870f5ec91368ed95d3953fd62df57661bc9a923bbde7a7c14180a04f9b0b56dc0fc433d14abeb758836e83c20a9c679dd46b9df909177841
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1991,21 +1991,21 @@ __metadata:
|
||||
resolution: "@polkadot/metadata@workspace:packages/metadata"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/keyring": ^6.3.1
|
||||
"@polkadot/keyring": ^6.3.2-6
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/types-known": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/util-crypto": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@polkadot/util-crypto": ^6.3.2-6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/networks@npm:6.3.1, @polkadot/networks@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/networks@npm:6.3.1"
|
||||
"@polkadot/networks@npm:6.3.2-6, @polkadot/networks@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/networks@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
checksum: 24fea684b71efdf77ac7fbe0da0871c4ea617e9c66c5d3fce5ba627005bafc3874d62559689d72f427795a077319aa96c95114f351037f404f3defa0008b8097
|
||||
"@babel/runtime": ^7.14.0
|
||||
checksum: 25cb8a677318d08829d06ccdb861d68782ca755d9e306da9b67343face2eb8221fe6fa39f0e772e4900d7ed0716cab7761c7c5c61cd94d23a93be5def36cc56a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2014,12 +2014,12 @@ __metadata:
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/keyring": ^6.3.1
|
||||
"@polkadot/keyring": ^6.3.2-6
|
||||
"@polkadot/metadata": 4.9.3-5
|
||||
"@polkadot/rpc-provider": 4.9.3-5
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/x-rxjs": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@polkadot/x-rxjs": ^6.3.2-6
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2028,14 +2028,14 @@ __metadata:
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/keyring": ^6.3.1
|
||||
"@polkadot/keyring": ^6.3.2-6
|
||||
"@polkadot/metadata": 4.9.3-5
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/util-crypto": ^6.3.1
|
||||
"@polkadot/x-fetch": ^6.3.1
|
||||
"@polkadot/x-global": ^6.3.1
|
||||
"@polkadot/x-ws": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@polkadot/util-crypto": ^6.3.2-6
|
||||
"@polkadot/x-fetch": ^6.3.2-6
|
||||
"@polkadot/x-global": ^6.3.2-6
|
||||
"@polkadot/x-ws": ^6.3.2-6
|
||||
bn.js: ^4.11.9
|
||||
eventemitter3: ^4.0.7
|
||||
mock-socket: ^9.0.3
|
||||
@@ -2063,7 +2063,7 @@ __metadata:
|
||||
"@polkadot/metadata": 4.9.3-5
|
||||
"@polkadot/rpc-provider": 4.9.3-5
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@types/websocket": ^1.0.2
|
||||
"@types/yargs": ^16.0.1
|
||||
handlebars: ^4.7.7
|
||||
@@ -2083,9 +2083,9 @@ __metadata:
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/networks": ^6.3.1
|
||||
"@polkadot/networks": ^6.3.2-6
|
||||
"@polkadot/types": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
@@ -2096,25 +2096,25 @@ __metadata:
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/keyring": ^6.3.1
|
||||
"@polkadot/keyring": ^6.3.2-6
|
||||
"@polkadot/metadata": 4.9.3-5
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@polkadot/util-crypto": ^6.3.1
|
||||
"@polkadot/x-rxjs": ^6.3.1
|
||||
"@polkadot/util": ^6.3.2-6
|
||||
"@polkadot/util-crypto": ^6.3.2-6
|
||||
"@polkadot/x-rxjs": ^6.3.2-6
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util-crypto@npm:6.3.1, @polkadot/util-crypto@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/util-crypto@npm:6.3.1"
|
||||
"@polkadot/util-crypto@npm:6.3.2-6, @polkadot/util-crypto@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/util-crypto@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/networks": 6.3.1
|
||||
"@polkadot/util": 6.3.1
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/networks": 6.3.2-6
|
||||
"@polkadot/util": 6.3.2-6
|
||||
"@polkadot/wasm-crypto": ^4.0.2
|
||||
"@polkadot/x-randomvalues": 6.3.1
|
||||
"@polkadot/x-randomvalues": 6.3.2-6
|
||||
base-x: ^3.0.8
|
||||
base64-js: ^1.5.1
|
||||
blakejs: ^1.1.0
|
||||
@@ -2127,23 +2127,23 @@ __metadata:
|
||||
tweetnacl: ^1.0.3
|
||||
xxhashjs: ^0.2.2
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.3.1
|
||||
checksum: 69004aaf5a5dd44b909292e671bd357336bfec5ce0d0a5feea09c3c310242a41dd2f69488520510aeba948b80faef0352645a2ca0cdf2c0f5a384bf0dc49a403
|
||||
"@polkadot/util": 6.3.2-6
|
||||
checksum: 5b240b916f9879afe226bdfa3f9955c66d769364f637183215a982eed85e8774b61c86c4c9d8528ec742d335cea56897ea930908fbf406e14345281ebfe65ef8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util@npm:6.3.1, @polkadot/util@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/util@npm:6.3.1"
|
||||
"@polkadot/util@npm:6.3.2-6, @polkadot/util@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/util@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-textdecoder": 6.3.1
|
||||
"@polkadot/x-textencoder": 6.3.1
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/x-textdecoder": 6.3.2-6
|
||||
"@polkadot/x-textencoder": 6.3.2-6
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
camelcase: ^5.3.1
|
||||
ip-regex: ^4.3.0
|
||||
checksum: a4d6e19d9933e70bab809f23dbb0b99d4152333e8c1128b94117cec6e6ea28021379d28ad49c95ab2065743ab4b7555d34e4ab1ae3cb80105b74d490bdb4142a
|
||||
checksum: e0a9c6effc0b5c0965df74620a05dac830d7f791994b2a2d8d5912a7ae4247562f8485551cb21d73df6cb7cfafc9290d17ab8265d592eb62d519ff24e6fde48b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2179,78 +2179,78 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-fetch@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/x-fetch@npm:6.3.1"
|
||||
"@polkadot/x-fetch@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/x-fetch@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/x-global": 6.3.2-6
|
||||
"@types/node-fetch": ^2.5.10
|
||||
node-fetch: ^2.6.1
|
||||
checksum: 74e0957bf96b91aa7db7759a2466f57ee8b31b94993be92efafab3ea2047461331391ba14dd2df12ec62c70449b4ad25cef46073f31bf8963862a15e9d6dcd9f
|
||||
checksum: 95948c3318d0f212843fcb6bc2bbf9a819a106ad6290d56a1cc70f1663672a99632b210a21c27ed04677d43cd2023089bed1b73dc86552854654f15b4ce412ce
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-global@npm:6.3.1, @polkadot/x-global@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/x-global@npm:6.3.1"
|
||||
"@polkadot/x-global@npm:6.3.2-6, @polkadot/x-global@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/x-global@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@types/node-fetch": ^2.5.10
|
||||
node-fetch: ^2.6.1
|
||||
checksum: fa8ffbdc402da35ef5d19716030c8294680abf798d139d17d819f227f7bdcc2b4fb838986c8ce78c2873c12581e5c0af04070b39c3e4f9bc3f0a53e3bcf2f262
|
||||
checksum: 6719f23a7a50b8d41873457f27f0a6aa71d61dc949c72c73e2f05022ec6099c2ef77b6c489d52716decbe6bfa9fc22b6814d1a8faa61f46e69b8034c8baece59
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-randomvalues@npm:6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/x-randomvalues@npm:6.3.1"
|
||||
"@polkadot/x-randomvalues@npm:6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/x-randomvalues@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
checksum: 3f970f8623a917c36283a6301ca9158a47a51ca2d968a7c5a27d66fcb8376d0e86f68284090f37290a8855610f9a29d67a7cdb215cb0a6e8c8b2864612bef466
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/x-global": 6.3.2-6
|
||||
checksum: 52d9762c277415f135147cae0875f4d4201d75e0101087357b30e2e43732af4b13b8ec69b07f0933fc5d9f356cc4983a228f116e01a512c59bfb4fd9ae200e3d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-rxjs@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/x-rxjs@npm:6.3.1"
|
||||
"@polkadot/x-rxjs@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/x-rxjs@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@babel/runtime": ^7.14.0
|
||||
rxjs: ^6.6.7
|
||||
checksum: 6c3e3a0785e583df6e1adfcc667f680ddb55d961883c14f62e49d6970b99a5aa577f6b63f436ae196ed7368ee21314be5c68dc230eeb7d8966dc38afe67561ff
|
||||
checksum: a1f0d3431aa7d65855edb91bb55472f64d71b165bcd1125085e213eaf27606594d5ca20ef9bb4d0da7ba78561c94a3d365d12270ef24ddb4b0652e206b6051e8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-textdecoder@npm:6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/x-textdecoder@npm:6.3.1"
|
||||
"@polkadot/x-textdecoder@npm:6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/x-textdecoder@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
checksum: b917de465bc96c8adae88d36cf9de3bd459bc5987b755246a8e477082edbc74efa468983cff133da3dd6b38d0684c7183ee46aab2d5efd9b2912954266be50c2
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/x-global": 6.3.2-6
|
||||
checksum: ee15bce2158899f837b434f24abb8cdc06d77d20d7387ff057dfd32094d4f5661777a7f73513bb52f281978a40a3578d39b8977873d2adfc0627f3c496dd2e7f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-textencoder@npm:6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/x-textencoder@npm:6.3.1"
|
||||
"@polkadot/x-textencoder@npm:6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/x-textencoder@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
checksum: 80457f236f08cea895919d6cb29535eeece8ff2324956890b4f07dd59745ad2ef8344892ab0b2a9576ce624e576a706ec91a2cc9464c99fecb164c6bc891c8ac
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/x-global": 6.3.2-6
|
||||
checksum: f06ae9c0437f79b86c49112920da7e07c8a9f752275b73418e05eb9bdda0b940b1e58b1754f58327b8ce3d106085bfde352da0a15b144adf5515c39761200360
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-ws@npm:^6.3.1":
|
||||
version: 6.3.1
|
||||
resolution: "@polkadot/x-ws@npm:6.3.1"
|
||||
"@polkadot/x-ws@npm:^6.3.2-6":
|
||||
version: 6.3.2-6
|
||||
resolution: "@polkadot/x-ws@npm:6.3.2-6"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
"@babel/runtime": ^7.14.0
|
||||
"@polkadot/x-global": 6.3.2-6
|
||||
"@types/websocket": ^1.0.2
|
||||
websocket: ^1.0.34
|
||||
checksum: e8a2332ae30698eea4428020203291414ef3fc7be3b676df41fff1c5c4312c6008a2f9240baa92f6f8c542714ee7e39b923d5dd8ec9f0a6811f610a5cb87a45f
|
||||
checksum: e309cab42d81d24dee269013a6cdaa7d78b1df26094705e436056072c7d82ec7d7ffec80d084a3f71f98529be7553916b7432499da648b0bbe7e6304fc65ef17
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user