-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from yvonnezhangc/release_v2_2
Fiat Token v2.2
- Loading branch information
Showing
168 changed files
with
12,050 additions
and
6,761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Summary | ||
|
||
## Detail | ||
|
||
## Testing | ||
|
||
## Documentation | ||
|
||
--- | ||
|
||
**Requested Reviewers:** @mention |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Continuous Integration | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
run_ci_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16.14.0" | ||
|
||
- name: Install Yarn | ||
run: npm install -g [email protected] | ||
|
||
- name: Install packages | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Setup local environment | ||
run: cp config.js.example config.js && ./start-ganache.sh | ||
|
||
- name: Run static checks | ||
run: yarn static-check | ||
|
||
- name: Run size check | ||
run: yarn contract-size | ||
|
||
- name: Run tests | ||
run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn precommit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v16.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ coverage.json | |
build/ | ||
.coverage_contracts/ | ||
.coverage_artifacts/ | ||
LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright (c) 2023, Circle Internet Financial, LLC. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import { | ||
FiatTokenV2Instance, | ||
FiatTokenV21Instance, | ||
FiatTokenV22Instance, | ||
} from "./generated"; | ||
|
||
export interface FiatTokenV22InstanceExtended extends FiatTokenV22Instance { | ||
permit?: typeof FiatTokenV2Instance.permit; | ||
transferWithAuthorization?: typeof FiatTokenV2Instance.transferWithAuthorization; | ||
receiveWithAuthorization?: typeof FiatTokenV2Instance.receiveWithAuthorization; | ||
cancelAuthorization?: typeof FiatTokenV2Instance.cancelAuthorization; | ||
} | ||
|
||
export type AnyFiatTokenV2Instance = | ||
| FiatTokenV2Instance | ||
| FiatTokenV21Instance | ||
| FiatTokenV22InstanceExtended; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Changelog | ||
|
||
## 2.2.0 (2023-11-09) | ||
|
||
- Add ERC-1271 signature validation support to EIP-2612 and EIP-3009 functions | ||
- Combine the balance state and the blacklist state for an address in a | ||
`balanceAndBlacklistStates` map to reduce gas usage | ||
- Update `DOMAIN_SEPARATOR` to be a dynamic value | ||
- Remove `notBlacklisted` modifiers for `approve`, `increaseAllowance`, | ||
`decreaseAllowance` and `permit` | ||
- Enable bypassing `TIMESTAMP` opcode in `permit` by using `uint256.max` | ||
|
||
## 2.1.1 (2021-06-03) | ||
|
||
- Add the multi-issuer minter contracts from the `multi-issuer` branch | ||
|
||
## 2.1.0 (2021-02-17) | ||
|
||
- Move locked USDC to a "lost and found" address and blacklists itself so that | ||
accidental sends will no longer be possible | ||
- Conform to EIP-3009 in FiatToken | ||
- Add `receiveWithAuthorization` | ||
- Remove `approveWithAuthorization`, `increaseAllowanceWithAuthorization` and | ||
`decreaseAllowanceWithAuthorization` | ||
|
||
## 2.0.0 (2020-07-30) | ||
|
||
- Add support for EIP-2612 in FiatToken | ||
- Add `transferWithAuthorization`, `approveWithAuthorization`, | ||
`increaseAllowanceWithAuthorization`, `decreaseAllowanceWithAuthorization` to | ||
enable ETH-less transactions | ||
- Add `increaseAllowance` and `decreaseAllowance` to mitigate the | ||
multi-withdrawal attack vulnerability in ERC-20 `approve` function | ||
- Update Solidity version to `0.6.12` | ||
|
||
## 1.1.0 (2020-05-27) | ||
|
||
- Add Rescuable functionalities to FiatToken | ||
- Update Solidity version to `0.6.8` | ||
- Remove `ifAdmin` modifier from admin() and implementation() in FiatTokenProxy | ||
|
||
## 1.0.0 (2018-07-24) | ||
|
||
- Create ERC-20 compliant FiatToken contract | ||
- Add Ownable, Pausable and Blacklistable functionalities to FiatToken | ||
- Create FiatTokenProxy contracts based on Zeppelinos's Unstructured-Storage | ||
Proxy pattern |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.