Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
matching linter style of the module template
  • Loading branch information
nikoferro committed May 8, 2024
commit 2ecb8a40f9e58a5e36f4974e745d8731361b8ab0
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ module.exports = {
extends: ['@metamask/eslint-config'],

overrides: [
{
files: ['*.d.ts'],
rules: {
'import/unambiguous': 'off',
},
},
{
files: ['*.ts'],
extends: ['@metamask/eslint-config-typescript'],
Expand Down
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## **Description**

<!--
Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes:

- What is the current state of things and why does it need to change?
- What is the solution your changes offer and how does it work? -->

## **Related issues**

<!-- Are there any issues or other links reviewers should consult to understand this pull request better? For instance:
* Fixes #12345
* See: #67890
-->
46 changes: 45 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
Expand All @@ -7,24 +8,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

## [8.0.0]

### Changed

- **BREAKING**: Replace `@metamask/controllers` with individual controller packages ([#193](https://github.com/MetaMask/swaps-controller/pull/193)) ([#214](https://github.com/MetaMask/swaps-controller/pull/214)) ([#215](https://github.com/MetaMask/swaps-controller/pull/215))
- Bump `async-mutex` from `^0.3.1` to `^0.4.1` ([#194](https://github.com/MetaMask/swaps-controller/pull/194))
- Bump `@metamask/auto-changelog` from `^2.5.0` to `^3.4.4` ([#194](https://github.com/MetaMask/swaps-controller/pull/194))
- Replace `@metamask/ethjs-query` with `@metamask/eth-query` ([#191](https://github.com/MetaMask/swaps-controller/pull/191))
- Move dependencies from/to devDependencies ([#215](https://github.com/MetaMask/swaps-controller/pull/215)) ([#217](https://github.com/MetaMask/swaps-controller/pull/217))
- Fix web3 import ([#212](https://github.com/MetaMask/swaps-controller/pull/212))
- Exclude tests from `dist` and change target on `tsconfig.json` ([#212](https://github.com/MetaMask/swaps-controller/pull/212))
- Exclude tests from `dist` and change target on `tsconfig.json` ([#212](https://github.com/MetaMask/swaps-controller/pull/212))

### Removed

- Remove dependency `ethereumjs-util` ([#192](https://github.com/MetaMask/swaps-controller/pull/192))

## [7.0.1]

### Added

- Add Base constants ([#206](https://github.com/MetaMask/swaps-controller/pull/206))

## [7.0.0]

### Changed

- **BREAKING:** Bump `@metamask/controllers` from 26.0.0 to 33.0.0 ([#139](https://github.com/MetaMask/swaps-controller/pull/139))
- This is breaking because it changes the type of the state property `usedGasEstimate`. Specifically, it is now possible for the `historicalBaseFeeRange`, `baseFeeTrend`, `latestPriorityFeeRange`, `historicalPriorityFeeRange`, `priorityFeeTrend`, and `networkCongestion` properties in this object to be `null`.
- **BREAKING:** Change `chainId` and `supportedChainIds` config options so that they must be `0x`-prefixed hex strings ([#184](https://github.com/MetaMask/swaps-controller/pull/184))
Expand All @@ -49,88 +57,124 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Update Gas API base URL from `https://gas.metaswap.codefi.network` to `https://gas.api.cx.metamask.io` ([#185](https://github.com/MetaMask/swaps-controller/pull/185))

## [6.9.3]

### Added

- Add Linea constants ([#170](https://github.com/MetaMask/swaps-controller/pull/170))

### Changed

- Bump word-wrap from 1.2.3 to 1.2.5 ([#166](https://github.com/MetaMask/swaps-controller/pull/166))

## [6.9.2]

### Changed

- Update dev base url ([#167](https://github.com/MetaMask/swaps-controller/pull/167))
- Update CODEOWNERS ([#156](https://github.com/MetaMask/swaps-controller/pull/156))

## [6.9.1]

### Added

- Enable zkSync ([#160](https://github.com/MetaMask/swaps-controller/pull/160))

### Changed

- Rename ZKSYNC to ZKSYNC_ERA ([#162](https://github.com/MetaMask/swaps-controller/pull/162))
- Bump cookiejar from 2.1.2 to 2.1.4 ([#154](https://github.com/MetaMask/swaps-controller/pull/154))
- Bump json5 from 1.0.1 to 1.0.2 ([#152](https://github.com/MetaMask/swaps-controller/pull/152))

## [6.8.0]

### Added

- Fetch an L1 fee for each quote on Optimism ([#150](https://github.com/MetaMask/swaps-controller/pull/150))

### Changed

- Bump decode-uri-component from 0.2.0 to 0.2.2 ([#148](https://github.com/MetaMask/swaps-controller/pull/148))
- Bump qs from 6.5.2 to 6.5.3 ([#149](https://github.com/MetaMask/swaps-controller/pull/149))

## [6.7.2]

### Fixed

- Handle empty values for sourceToken and destinationToken ([#146](https://github.com/MetaMask/swaps-controller/pull/146))

## [6.7.1]

### Fixed

- Change contract addresses for Arbitrum and Optimism to lowercase ([#144](https://github.com/MetaMask/swaps-controller/pull/144))

## [6.7.0]

### Added

- Add support for new networks - Optimism and Arbitrum ([#141](https://github.com/MetaMask/swaps-controller/pull/141))

### Changed

- Bump minimist from 1.2.5 to 1.2.6 ([#118](https://github.com/MetaMask/swaps-controller/pull/118))

## [6.6.0]

### Added

- Update default supported chains and add check for supported chainId on fetch methods ([#113](https://github.com/MetaMask/swaps-controller/pull/113))

### Changed

- Bump @metamask/controllers from 25.1.0 to 26.0.0 ([#114](https://github.com/MetaMask/swaps-controller/pull/114))

## [6.5.0]

### Added

- Add Avalanche constants ([#111](https://github.com/MetaMask/swaps-controller/pull/111))

### Changed

- Bump @metamask/controllers from 22.0.0 to 25.1.0 ([#109](https://github.com/MetaMask/swaps-controller/pull/109))

## [6.4.0]

### Changed

- Use named api urls for swap and gas ([#99](https://github.com/MetaMask/swaps-controller/pull/99))

### Fixed

- Fix feature liveness types ([#95](https://github.com/MetaMask/swaps-controller/pull/95))

## [6.3.0]

### Added

- License file ([#83](https://github.com/MetaMask/swaps-controller/pull/83))

### Changed

- Set `clientId` on HTTP request headers ([#84](https://github.com/MetaMask/swaps-controller/pull/84))

## [6.2.0]

### Added

- Add Token metadata API endpoint and function ([#80](https://github.com/MetaMask/swaps-controller/pull/80))

## [6.1.1]

### Fixed

- Fix unwrapping by bypassing allowance check ([#76](https://github.com/MetaMask/swaps-controller/pull/76))
- Fix polygon contract address constant ([#76](https://github.com/MetaMask/swaps-controller/pull/76))

## [6.1.0]

### Changed

- Moved wrapped contracts to constants ([#70](https://github.com/MetaMask/swaps-controller/pull/70))
- Use standalone gas API endpoint ([#70](https://github.com/MetaMask/swaps-controller/pull/70))
- Bump @metamask/controllers from 14.1.0 to 14.2.0 ([#69](https://github.com/MetaMask/swaps-controller/pull/69))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"@metamask/eth-query": "^4.0.0",
"@metamask/gas-fee-controller": "^3.0.0",
"@metamask/utils": "^8.3.0",
"abort-controller": "^3.0.0",
"async-mutex": "^0.4.1",
"bignumber.js": "^9.0.1",
"bn.js": "^5.2.1",
Expand Down Expand Up @@ -79,6 +78,7 @@
"eslint-plugin-promise": "^6.1.1",
"jest": "^28.1.3",
"jest-it-up": "^2.0.2",
"node-fetch": "^3.3.2",
"prettier": "^2.7.1",
"prettier-plugin-packagejson": "^2.3.0",
"ts-jest": "^28.0.7",
Expand Down
Loading