Skip to content
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
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Expose `SmartTransactionsController` methods through its messenger ([#574](https://github.com/MetaMask/smart-transactions-controller/pull/574))
- The following actions are now available:
- `SmartTransactionsController:checkPoll`
- `SmartTransactionsController:initializeSmartTransactionsForChainId`
- `SmartTransactionsController:poll`
- `SmartTransactionsController:stop`
- `SmartTransactionsController:setOptInState`
- `SmartTransactionsController:trackStxStatusChange`
- `SmartTransactionsController:isNewSmartTransaction`
- `SmartTransactionsController:updateSmartTransaction`
- `SmartTransactionsController:updateSmartTransactions`
- `SmartTransactionsController:fetchSmartTransactionsStatus`
- `SmartTransactionsController:clearFees`
- `SmartTransactionsController:getFees`
- `SmartTransactionsController:submitSignedTransactions`
- `SmartTransactionsController:cancelSmartTransaction`
- `SmartTransactionsController:fetchLiveness`
- `SmartTransactionsController:setStatusRefreshInterval`
- `SmartTransactionsController:getTransactions`
- `SmartTransactionsController:getSmartTransactionByMinedTxHash`
- `SmartTransactionsController:wipeSmartTransactions`
- Corresponding action types (e.g. `SmartTransactionsControllerCheckPollAction`) are available as well.

### Changed

- **BREAKING:** Upgrade TypeScript from `~4.8.4` to `~5.3.3` ([#574](https://github.com/MetaMask/smart-transactions-controller/pull/574))
- Consumers on TypeScript 4.x may experience type errors and should upgrade to TypeScript 5.x.

## [23.0.0]

### Changed
Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@
],
"scripts": {
"build": "ts-bridge --project tsconfig.build.json --clean",
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog",
"generate-method-action-types": "tsx ./scripts/generate-method-action-types.ts ./src",
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:changelog && yarn generate-method-action-types --check",
"lint:changelog": "auto-changelog validate --prettier",
"lint:eslint": "eslint . --cache --ext js,ts",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn lint:changelog",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn lint:changelog && yarn generate-method-action-types --fix",
"lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
"prepack": "./scripts/prepack.sh",
"test": "jest && attw --pack",
Expand Down Expand Up @@ -73,6 +74,7 @@
"@metamask/gas-fee-controller": "^26.0.0",
"@metamask/json-rpc-engine": "^10.0.1",
"@ts-bridge/cli": "^0.6.3",
"@types/eslint": "^9.6.1",
"@types/jest": "^26.0.24",
"@types/lodash": "^4.14.194",
"@types/node": "^18.19.17",
Expand All @@ -94,7 +96,9 @@
"prettier-plugin-packagejson": "^2.4.3",
"sinon": "^9.2.4",
"ts-jest": "^29.1.4",
"typescript": "~4.8.4"
"tsx": "^4.20.5",
"typescript": "~5.3.3",
"yargs": "^17.7.2"
},
"peerDependenciesMeta": {
"@metamask/accounts-controller": {
Expand Down Expand Up @@ -125,7 +129,8 @@
"@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>secp256k1": false,
"@metamask/controller-utils>babel-runtime>core-js": false,
"@metamask/transaction-controller>@metamask/core-backend>@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography>keccak": false,
"@metamask/transaction-controller>@metamask/core-backend>@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography>secp256k1": false
"@metamask/transaction-controller>@metamask/core-backend>@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography>secp256k1": false,
"tsx>esbuild": false
}
}
}
Loading
Loading