-
Notifications
You must be signed in to change notification settings - Fork 2
feat(v1): add SafeERC20 support for USDT compatibility #11
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
Changes from 3 commits
eb10f9e
d2974f1
cb6fd6f
1ff56f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| require("@nomicfoundation/hardhat-ethers"); | ||
|
|
||
| module.exports = { | ||
| solidity: "0.8.30", | ||
| solidity: { | ||
| version: "0.8.33", | ||
| settings: { | ||
| optimizer: { | ||
| enabled: true, | ||
| runs: 10000 | ||
|
||
| } | ||
| } | ||
| }, | ||
| networks: { | ||
| hardhat: { | ||
| chainId: 1337, // or another number that Remix will accept | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,21 @@ | ||
| { | ||
| "name": "ETOMIC_SWAP", | ||
| "version": "1.0.0", | ||
| "version": "1.1.0", | ||
| "description": "Etomic swap smart contracts and helpers", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "npx hardhat test" | ||
| }, | ||
| "author": "[email protected]", | ||
| "license": "ISC", | ||
| "dependencies": { | ||
| "chai": "^4.3.10", | ||
| "chai-as-promised": "^7.1.1", | ||
| "@openzeppelin/contracts": "^5.0.0", | ||
| "ripemd160": "^2.0.1" | ||
| "@openzeppelin/contracts": "^5.4.0" | ||
| }, | ||
| "devDependencies": { | ||
| "hardhat": "^2.22.18", | ||
| "@nomicfoundation/hardhat-ethers": "^3.0.8", | ||
| "ethers": "^6.10.0" | ||
| "ethers": "^6.10.0", | ||
| "chai": "^4.3.10", | ||
| "chai-as-promised": "^7.1.1", | ||
| "ripemd160": "^2.0.3" | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we better keep
erc165?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ERC165 is for interface detection - lets other contracts query "do you support interface X?".
We had it because the old contract implemented
IERC721Receiver/IERC1155Receiverfor NFT support. Standard ERC20 doesn't require ERC165 (it predates it), and ERC721/ERC1155 are the ones that mandate it for their receiver callbacks.With NFTs removed, there's no interface to advertise. Our contract uses
safeTransferFromto pull tokens (not receive via callback), so no receiver interface is needed.