Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use controllers monorepo #110

Merged
merged 2 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/providers": "^5.7.0",
"@metamask/controllers": "^32.0.2",
"@metamask/base-controller": "^1.0.0",
"@metamask/controller-utils": "^1.0.0",
"@metamask/network-controller": "^1.0.0",
"@types/lodash": "^4.14.176",
"bignumber.js": "^9.0.1",
"fast-json-patch": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/SmartTransactionsController.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import nock from 'nock';
import { NetworkState } from '@metamask/controllers';
import { NetworkState } from '@metamask/network-controller';
import SmartTransactionsController, {
DEFAULT_INTERVAL,
} from './SmartTransactionsController';
Expand Down
8 changes: 3 additions & 5 deletions src/SmartTransactionsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
BaseConfig,
BaseController,
BaseState,
NetworkState,
util,
} from '@metamask/controllers';
} from '@metamask/base-controller';
import { safelyExecute } from '@metamask/controller-utils';
import { NetworkState } from '@metamask/network-controller';
import { BigNumber } from 'bignumber.js';
import { BigNumber as ethersBigNumber } from '@ethersproject/bignumber';
import { Web3Provider } from '@ethersproject/providers';
Expand Down Expand Up @@ -36,8 +36,6 @@ import {
} from './utils';
import { CHAIN_IDS } from './constants';

const { safelyExecute } = util;

const SECOND = 1000;
export const DEFAULT_INTERVAL = SECOND * 5;

Expand Down
Loading