BN import from util (#3637)
* BN import from util * Update packages/api-derive/src/staking/stakerRewards.ts
This commit is contained in:
@@ -21,16 +21,16 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.0",
|
||||
"@polkadot/types": "4.13.2-5",
|
||||
"@polkadot/util": "^6.7.1",
|
||||
"@polkadot/util-crypto": "^6.7.1",
|
||||
"@polkadot/x-fetch": "^6.7.1",
|
||||
"@polkadot/x-global": "^6.7.1",
|
||||
"@polkadot/x-ws": "^6.7.1",
|
||||
"@polkadot/util": "^6.7.2-7",
|
||||
"@polkadot/util-crypto": "^6.7.2-7",
|
||||
"@polkadot/x-fetch": "^6.7.2-7",
|
||||
"@polkadot/x-global": "^6.7.2-7",
|
||||
"@polkadot/x-ws": "^6.7.2-7",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^6.7.1",
|
||||
"@polkadot/keyring": "^6.7.2-7",
|
||||
"@polkadot/metadata": "4.13.2-5",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.1.0"
|
||||
|
||||
@@ -8,7 +8,6 @@ import type { Codec, Registry } from '@polkadot/types/types';
|
||||
import type { ProviderInterface, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types';
|
||||
import type { MockStateDb, MockStateSubscriptionCallback, MockStateSubscriptions } from './types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import EventEmitter from 'eventemitter3';
|
||||
|
||||
import { createTestKeyring } from '@polkadot/keyring/testing';
|
||||
@@ -17,7 +16,7 @@ import rpcMetadata from '@polkadot/metadata/static';
|
||||
import jsonrpc from '@polkadot/types/interfaces/jsonrpc';
|
||||
import rpcHeader from '@polkadot/types/json/Header.004.json';
|
||||
import rpcSignedBlock from '@polkadot/types/json/SignedBlock.004.immortal.json';
|
||||
import { assert, bnToU8a, logger, u8aToHex } from '@polkadot/util';
|
||||
import { assert, BN, bnToU8a, logger, u8aToHex } from '@polkadot/util';
|
||||
import { randomAsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
const INTERVAL = 1000;
|
||||
|
||||
Reference in New Issue
Block a user