-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(voyager): evm state lens modules
- Loading branch information
1 parent
2ff517d
commit 3da82b1
Showing
16 changed files
with
980 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.27; | ||
|
||
import "forge-std/Test.sol"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pragma solidity ^0.8.27; | ||
|
||
import "forge-std/Test.sol"; | ||
import "../core/IBCHandler.sol"; | ||
import "../core/Relay.sol"; | ||
import "../../../contracts/clients/EvmInCosmosClient.sol"; | ||
import "@openzeppelin/proxy/ERC1967/ERC1967Proxy.sol"; | ||
|
||
contract EvmInCosmosClientTest is Test { | ||
EvmInCosmosClient client; | ||
address admin = address(0xABCD); | ||
address ibcHandler; | ||
|
||
function setUp() public { | ||
ibcHandler = address(0xC0DE); | ||
EvmInCosmosClient implementation = new EvmInCosmosClient(); | ||
ERC1967Proxy proxy = new ERC1967Proxy( | ||
address(implementation), | ||
abi.encodeWithSelector( | ||
EvmInCosmosClient.initialize.selector, ibcHandler, admin | ||
) | ||
); | ||
client = EvmInCosmosClient(address(proxy)); | ||
} | ||
|
||
function test_initialize_ok() public { | ||
assertEq(client.owner(), admin); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.