Skip to content

Commit

Permalink
Merge branch 'main' into sshmatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmatrix authored Aug 21, 2023
2 parents b9cda60 + eb10aa6 commit 02d1713
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Run Forge tests
run: |
forge test --fork-url https://rpc.ankr.com/eth_goerli -vvvv --fork-block-number 8897000
forge test --fork-url https://rpc.ankr.com/eth_goerli -vvvv --fork-block-number 8897777
id: test

- name: Initialise status badge
Expand Down
4 changes: 2 additions & 2 deletions src/CCIP2ETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ contract CCIP2ETH is iCCIP2ETH {
string memory _domain, // String-formatted complete 'a.b.c.domain.eth'
string memory _recType, // Record type
, // Complete reverse-DNS path for __fallback()
, // DNS-encoded domain.eth
, // DNS-encoded full domain.eth
bytes memory _request // Format: <bytes4> + <namehash> + <extradata>
) = abi.decode(extradata, (bytes32, uint256, bytes32, string, string, string, bytes, bytes));
address _owner = ENS.owner(_node);
Expand Down Expand Up @@ -569,12 +569,12 @@ contract CCIP2ETH is iCCIP2ETH {
function updateChainID() public {
chainID = gateway.uintToString(block.chainid);
}

/**
* @dev Sets fees for ownerhash
* Note - Set to 0 at launch
* @param _wei - Fees in WEI per EOA
*/

function updateOwnerhashFees(uint256 _wei) external OnlyDev {
ownerhashFees = _wei;
}
Expand Down
10 changes: 10 additions & 0 deletions src/Interface.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ interface iGatewayManager is iERC173 {
function replaceWeb3Gateway(uint256 _index, string calldata _domain) external;
function formatSubdomain(bytes calldata _recordhash) external pure returns (string memory result);
function isWeb2(bytes calldata _recordhash) external pure returns (bool);

function listWeb2Gateways() external view returns (string[] memory list);
function addWeb2Gateway(string calldata _domain) external;
function removeWeb2Gateway(uint256 _index) external;
function replaceWeb2Gateway(uint256 _index, string calldata _domain) external;

function listWeb3Gateways() external view returns (string[] memory list);
function addWeb3Gateway(string calldata _domain) external;
function removeWeb3Gateway(uint256 _index) external;
function replaceWeb3Gateway(uint256 _index, string calldata _domain) external;
}

interface iResolver {
Expand Down
2 changes: 1 addition & 1 deletion test/goerli.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
forge fmt && source .env && forge test --fork-url $GOERLI_RPC_URL -vvv --fork-block-number 8897777 --gas-report --watch
forge fmt && source .env && forge test --fork-url $GOERLI_RPC_URL -vvv --fork-block-number 8897777 -vvvv --gas-report --watch

0 comments on commit 02d1713

Please sign in to comment.