Skip to content

Commit

Permalink
cleanup and improve test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jul 9, 2024
1 parent 8e63c45 commit 01648d1
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 410 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
- name: Install Dependencies
run: yarn install

- name: Test
- name: Test (hardhat)
run: yarn test

- name: Test v2 (hardhat)
run: yarn test:prototypes

- name: Test v2 (forge)
run: yarn test:forge



1 change: 1 addition & 0 deletions contracts/zevm/ZRC20.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "./interfaces/IZRC20.sol";
import "./interfaces/ISystem.sol";

/**
* @dev Custom errors for ZRC20
Expand Down
1 change: 1 addition & 0 deletions contracts/zevm/ZRC20New.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "./interfaces/IZRC20.sol";
import "./interfaces/ISystem.sol";

/**
* @dev Custom errors for ZRC20
Expand Down
17 changes: 0 additions & 17 deletions contracts/zevm/interfaces/IZRC20.sol
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

/**
* @dev Interfaces of SystemContract and ZRC20 to make easier to import.
*/
interface ISystem {
function FUNGIBLE_MODULE_ADDRESS() external view returns (address);

function wZetaContractAddress() external view returns (address);

function uniswapv2FactoryAddress() external view returns (address);

function gasPriceByChainId(uint256 chainID) external view returns (uint256);

function gasCoinZRC20ByChainId(uint256 chainID) external view returns (address);

function gasZetaPoolByChainId(uint256 chainID) external view returns (address);
}

interface IZRC20 {
function totalSupply() external view returns (uint256);

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"prepublishOnly": "yarn build",
"test": "npx hardhat test",
"test:prototypes": "yarn compile && npx hardhat test test/prototypes/*",
"test:forge": "forge test -vvv",
"tsc:watch": "npx tsc --watch",
"worker": "npx hardhat run scripts/worker.ts --network localhost"
},
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/prototypes/zevm/senderzevm.sol/senderzevm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 01648d1

Please sign in to comment.