Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bukata-sa committed Dec 13, 2024
1 parent c4a10d7 commit f9350f2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
5 changes: 0 additions & 5 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ libs = ['node_modules']
bytecode_hash = "none"
ffi = false



# default is zero, using a non-zero amount enables us to test e.g. billing based on gas prices.
gas_price = 1
block_timestamp = 1234567890
block_number = 12345

[etherscan]
base = { chain = 84532, key = "EKGEZWKTMIKZE7WWE5EYGY8ATB2ED4K5U8", url = "https://api-sepolia.basescan.org/api" }

[fmt]
tab_width = 2
multiline_func_header = "params_first"
Expand Down
25 changes: 17 additions & 8 deletions contracts/src/v0.8/ccip/pools/LBTC/adapters/CLAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,25 @@ contract CLAdapter is AbstractAdapter, Ownable {
/// token pool implementation
constructor(
IBridge bridge_,
LombardTokenPool tokenPool_,
uint128 executionGasLimit_
) AbstractAdapter(bridge_) Ownable() {
uint128 executionGasLimit_,
//
address ccipRouter_,
address[] memory allowlist_,
address rmnProxy_,
bool attestationEnable_
) AbstractAdapter(bridge_) Ownable(_msgSender()) {
_setExecutionGasLimit(executionGasLimit_);
tokenPool = tokenPool_;
emit CLTokenPoolDeployed(address(tokenPool));
}

function setTokenPool(LombardTokenPool tokenPool_) external onlyOwner {
tokenPool = tokenPool_;
tokenPool = new LombardTokenPool(
IERC20(address(bridge_.lbtc())),
ccipRouter_,
allowlist_,
rmnProxy_,
CLAdapter(this),
attestationEnable_
);
tokenPool.transferOwnership(_msgSender());
emit CLTokenPoolDeployed(address(tokenPool));
}

/// USER ACTIONS ///
Expand Down
10 changes: 2 additions & 8 deletions contracts/src/v0.8/ccip/pools/LBTC/adapters/LombardTokenPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,10 @@ contract LombardTokenPool is TokenPool {
address ccipRouter_,
address[] memory allowlist_,
address rmnProxy_,
CLAdapter adapter_,
bool attestationEnable_
) TokenPool(lbtc_, 8, allowlist_, rmnProxy_, ccipRouter_) {
isAttestationEnabled = attestationEnable_;
}

function setAdapter(CLAdapter adapter_) external onlyOwner {
) TokenPool(lbtc_, allowlist_, rmnProxy_, ccipRouter_) {
adapter = adapter_;
}

function setAttestationEnabled(bool attestationEnable_) external onlyOwner {
isAttestationEnabled = attestationEnable_;
}

Expand Down
2 changes: 1 addition & 1 deletion core/gethwrappers/ccip/go_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package ccip
//go:generate go run ../generation/generate/wrap.go ../../../contracts/solc/v0.8.24/TokenPool/TokenPool.abi ../../../contracts/solc/v0.8.24/TokenPool/TokenPool.bin TokenPool token_pool
//go:generate go run ../generation/generate/wrap.go ../../../contracts/solc/v0.8.24/USDCTokenPool/USDCTokenPool.abi ../../../contracts/solc/v0.8.24/USDCTokenPool/USDCTokenPool.bin USDCTokenPool usdc_token_pool
//go:generate go run ../generation/generate/wrap.go ../../../contracts/solc/v0.8.24/CLAdapter/CLAdapter.abi ../../../contracts/solc/v0.8.24/CLAdapter/CLAdapter.bin CLAdapter lbtc_adapter
//go:generate go run ../generation/generate/wrap.go ../../../contracts/solc/v0.8.24/LombardTokenPool/LombardTokenPool.abi ../../../contracts/solc/v0.8.24/CLAdapter/LombardTokenPool.bin LombardTokenPool lbtc_token_pool
//go:generate go run ../generation/generate/wrap.go ../../../contracts/solc/v0.8.24/LombardTokenPool/LombardTokenPool.abi ../../../contracts/solc/v0.8.24/LombardTokenPool/LombardTokenPool.bin LombardTokenPool lbtc_token_pool

// Helpers
//go:generate go run ../generation/generate/wrap.go ../../../contracts/solc/v0.8.24/MockV3Aggregator/MockV3Aggregator.abi ../../../contracts/solc/v0.8.24/MockV3Aggregator/MockV3Aggregator.bin MockV3Aggregator mock_v3_aggregator_contract
Expand Down

0 comments on commit f9350f2

Please sign in to comment.