Skip to content

Commit

Permalink
add changes and deploy new sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Oct 30, 2023
1 parent 4debb0b commit 7c041e3
Show file tree
Hide file tree
Showing 27 changed files with 131 additions and 27 deletions.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .github/workflows/ci.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/codegen.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .solhint.json
100644 → 100755
Empty file.
Empty file modified .solhintignore
100644 → 100755
Empty file.
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified Dockerfile.abigen
100644 → 100755
Empty file.
15 changes: 10 additions & 5 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ Swap is deployed on the following networks:

Swap is deployed on the following testnets:

| Network | Factory | Token |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Sepolia | [0x9B3C8D7f0994A336B71b5d35FC0Cff8AEC95DEDA](https://sepolia.etherscan.io/address/0x9B3C8D7f0994A336B71b5d35FC0Cff8AEC95DEDA) | [0xa66be4A7De4DfA5478Cb2308469D90115C45aA23](https://sepolia.etherscan.io/address/0xa66be4A7De4DfA5478Cb2308469D90115C45aA23) |
| Goerli | [0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273](https://goerli.etherscan.io/address/0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273) | [0x2aC3c1d3e24b45c6C310534Bc2Dd84B5ed576335](https://goerli.etherscan.io/address/0x2aC3c1d3e24b45c6C310534Bc2Dd84B5ed576335) |
| Goerli (Legacy) | [0xf0277caffea72734853b834afc9892461ea18474](https://goerli.etherscan.io/address/0xf0277caffea72734853b834afc9892461ea18474) | [0x2aC3c1d3e24b45c6C310534Bc2Dd84B5ed576335](https://goerli.etherscan.io/address/0x2aC3c1d3e24b45c6C310534Bc2Dd84B5ed576335) |
| Network | Factory | Token |
| ------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Sepolia | [0x989F4d301d7333249362B2484BeE0D501AB01DCa](https://sepolia.etherscan.io/address/0x989F4d301d7333249362B2484BeE0D501AB01DCa) | [0x543dDb01Ba47acB11de34891cD86B675F04840db](https://sepolia.etherscan.io/address/0x543dDb01Ba47acB11de34891cD86B675F04840db) |
| Goerli | [0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273](https://goerli.etherscan.io/address/0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273) | [0x2aC3c1d3e24b45c6C310534Bc2Dd84B5ed576335](https://goerli.etherscan.io/address/0x2aC3c1d3e24b45c6C310534Bc2Dd84B5ed576335) |

## Overview

Expand Down Expand Up @@ -122,3 +121,9 @@ For signing purposes the chequebook uses EIP-712 Ethereum typed structured data
## Swear and Swindle

`Swear` and `Swindle` are the contracts for the trial system of sw3. You can find them in the `experimental` branch.

## Releasing

To release a new stable version, tag the commit without the `-rcX` suffix.
For example, to release `v0.4.0`, execute the following command: `git tag v0.4.0 && git push origin v0.4.0`.
This will generate Golang source code for the smart contracts and publish it to the [`ethersphere/go-sw3-abi/`](https://github.com/ethersphere/go-sw3-abi/) repository.
Empty file modified abigen/code.go.js
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion contracts/ERC20SimpleSwap.sol
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity =0.8.10;
pragma solidity =0.8.19;
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/SimpleSwapFactory.sol
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity =0.8.10;
pragma solidity =0.8.19;
import "./ERC20SimpleSwap.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/TestToken.sol
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity =0.8.10;
pragma solidity =0.8.19;

import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol";

Expand Down
5 changes: 3 additions & 2 deletions deploy/000_deploy.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = async ({ getNamedAccounts, deployments }) => {
const waitBlockConfirmations = network.name != "testnet" ? 1 : 6;

log("----------------------------------------------------");
const arguments = ["0xa66be4A7De4DfA5478Cb2308469D90115C45aA23"];
// sBZZ token address
const arguments = ["0x543dDb01Ba47acB11de34891cD86B675F04840db"];
const factory = await deploy("SimpleSwapFactory", {
from: deployer,
args: arguments,
Expand All @@ -26,4 +27,4 @@ module.exports = async ({ getNamedAccounts, deployments }) => {
}
};

module.exports.tags = ["all", "factory"];
module.exports.tags = ["factory"];
Empty file modified deployments/testnet/.chainId
100644 → 100755
Empty file.
30 changes: 15 additions & 15 deletions deployments/testnet/SimpleSwapFactory.json
100644 → 100755

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Empty file.
4 changes: 2 additions & 2 deletions hardhat.config.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const accounts =
module.exports = {
defaultNetwork: "hardhat",
solidity: {
version: "0.8.10",
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
Expand All @@ -44,7 +44,7 @@ module.exports = {
testnet: {
url: PRIVATE_RPC_TESTNET
? PRIVATE_RPC_TESTNET
: "https://rpc2.sepolia.org",
: "https://1rpc.io/sepolia",
accounts,
chainId: 11155111,
},
Expand Down
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified test/ERC20SimpleSwap.behavior.js
100644 → 100755
Empty file.
Empty file modified test/ERC20SimpleSwap.should.js
100644 → 100755
Empty file.
Empty file modified test/ERC20SimpleSwap.test.js
100644 → 100755
Empty file.
Empty file modified test/SimpleSwapFactory.test.js
100644 → 100755
Empty file.
Empty file modified test/swutils.js
100644 → 100755
Empty file.
Empty file modified test/testutils.js
100644 → 100755
Empty file.
Empty file modified utils/verify.js
100644 → 100755
Empty file.

0 comments on commit 7c041e3

Please # to comment.