Skip to content

Commit

Permalink
feat: add setters for evm intents
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAndell committed Oct 28, 2024
1 parent 2a84cfe commit a66d7f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion contracts/evm/contracts/Intents/Intents.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ pragma abicoder v2;
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "openzeppelin-contracts/contracts/utils/Strings.sol";
import "@iconfoundation/xcall-solidity-library/utils/ParseAddress.sol";
import "openzeppelin-contracts/contracts/access/Ownable.sol";


import "./Types.sol";
import "./Encoding.sol";
Expand All @@ -16,7 +18,7 @@ import {console} from "forge-std/console.sol";

/// @title ICONIntents
/// @notice Implements the intent-based swapping protocol for cross-chain swaps.
contract Intents is GeneralizedConnection {
contract Intents is GeneralizedConnection, Ownable {
using Encoding for *;
using Strings for string;
using SafeERC20 for IERC20;
Expand Down Expand Up @@ -71,6 +73,13 @@ contract Intents is GeneralizedConnection {
permit2 = IPermit2(_premit2);
}

function setFeeHandler(address _feeHandler) external onlyOwner {
feeHandler = _feeHandler;
}

function setProtocolFee(uint16 _protocolFee) external onlyOwner {
protocolFee = _protocolFee;
}

function swap(
Types.SwapOrder memory order
Expand Down
2 changes: 1 addition & 1 deletion contracts/evm/remappings.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@xcall/contracts/=./contracts/
@intents/contracts/=./contracts/
@iconfoundation/xcall-solidity-library/=./library/xcall/
@xcall/utils/=./library/utils/
ds-test/=lib/forge-std/lib/ds-test/src/
Expand Down

0 comments on commit a66d7f5

Please sign in to comment.