Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeexcoin committed Jan 8, 2025
1 parent b1aba9e commit 3e22d18
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ docs/

# Dotenv file
.env

# zksolc
zkout/
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ libs = ["lib"]

[rpc_endpoints]
mainnet = "${MAINNET_RPC_URL}"
abstract = "${ABSTRACT_RPC_URL}"

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
192 changes: 192 additions & 0 deletions lcov.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
TN:
SF:script/Deploy.s.sol
DA:24,0
FN:24,Deploy.setUp
FNDA:0,Deploy.setUp
DA:26,0
FN:26,Deploy.run
FNDA:0,Deploy.run
DA:27,0
DA:31,0
DA:32,0
DA:33,0
FNF:2
FNH:0
LF:6
LH:0
BRF:0
BRH:0
end_of_record
TN:
SF:src/ExclusiveDelegateResolver.sol
DA:39,1
FN:39,ExclusiveDelegateResolver.exclusiveWalletByRights
FNDA:1,ExclusiveDelegateResolver.exclusiveWalletByRights
DA:40,4
DA:41,4
DA:43,4
DA:45,4
DA:47,4
DA:49,4
DA:51,4
BRDA:51,0,0,4
DA:52,4
BRDA:52,1,0,4
DA:55,4
DA:56,4
BRDA:56,2,0,4
DA:57,4
DA:59,0
DA:64,0
DA:79,1
FN:79,ExclusiveDelegateResolver.delegatedWalletsByRights
FNDA:1,ExclusiveDelegateResolver.delegatedWalletsByRights
DA:80,1
DA:81,1
DA:83,1
DA:84,1
DA:86,1
DA:87,3
DA:89,3
BRDA:89,3,0,3
DA:90,3
BRDA:90,4,0,2
DA:91,2
DA:92,2
DA:97,1
DA:98,1
DA:100,1
DA:101,2
BRDA:101,5,0,2
DA:102,2
DA:103,2
DA:106,1
DA:123,13
FN:123,ExclusiveDelegateResolver.exclusiveOwnerByRights
FNDA:13,ExclusiveDelegateResolver.exclusiveOwnerByRights
DA:128,13
DA:130,12
DA:131,12
DA:133,12
DA:135,12
DA:137,15
DA:139,15
DA:141,15
BRDA:141,6,0,10
DA:142,10
BRDA:142,7,0,9
DA:145,9
DA:146,6
DA:147,5
BRDA:147,8,0,5
DA:148,5
DA:151,4
DA:156,7
DA:165,1
FN:165,ExclusiveDelegateResolver.decodeRightsExpiration
FNDA:1,ExclusiveDelegateResolver.decodeRightsExpiration
DA:166,23
DA:167,23
DA:169,23
DA:178,33
FN:178,ExclusiveDelegateResolver.generateRightsWithExpiration
FNDA:33,ExclusiveDelegateResolver.generateRightsWithExpiration
DA:183,33
DA:184,33
DA:187,7
FN:187,ExclusiveDelegateResolver._delegationMatchesRequest
FNDA:7,ExclusiveDelegateResolver._delegationMatchesRequest
DA:192,7
DA:194,7
BRDA:194,9,0,-
BRDA:194,9,1,-
DA:195,0
DA:196,7
BRDA:196,10,0,-
BRDA:196,10,1,-
DA:197,0
DA:198,7
BRDA:198,11,0,7
BRDA:198,11,1,-
DA:199,7
DA:201,0
DA:205,15
FN:205,ExclusiveDelegateResolver._delegationMatchesRequest
FNDA:15,ExclusiveDelegateResolver._delegationMatchesRequest
DA:212,15
DA:214,15
BRDA:214,12,0,1
BRDA:214,12,1,6
DA:215,1
DA:216,14
BRDA:216,13,0,2
BRDA:216,13,1,6
DA:217,2
DA:218,12
BRDA:218,14,0,-
BRDA:218,14,1,6
DA:219,0
DA:220,12
BRDA:220,15,0,4
BRDA:220,15,1,6
DA:221,4
DA:222,8
BRDA:222,16,0,6
BRDA:222,16,1,6
DA:223,6
DA:225,2
DA:229,14
FN:229,ExclusiveDelegateResolver._delegationOutranksCurrent
FNDA:14,ExclusiveDelegateResolver._delegationOutranksCurrent
DA:233,14
DA:234,14
DA:236,14
BRDA:236,17,0,4
BRDA:236,17,1,-
DA:237,4
DA:238,10
BRDA:238,18,0,10
BRDA:238,18,1,-
DA:239,10
DA:241,0
DA:245,13
FN:245,ExclusiveDelegateResolver._getOwner
FNDA:13,ExclusiveDelegateResolver._getOwner
DA:248,13
DA:249,13
DA:250,13
DA:251,13
DA:252,13
BRDA:252,19,0,1
DA:253,1
DA:254,1
DA:256,12
FNF:9
FNH:9
LF:94
LH:87
BRF:30
BRH:22
end_of_record
TN:
SF:test/mocks/MockERC721.sol
DA:8,11
FN:8,MockERC721.mint
FNDA:11,MockERC721.mint
DA:9,11
DA:10,11
DA:13,12
FN:13,MockERC721.ownerOf
FNDA:12,MockERC721.ownerOf
DA:14,12
DA:17,0
FN:17,MockERC721.balanceOf
FNDA:0,MockERC721.balanceOf
DA:18,0
FNF:3
FNH:2
LF:7
LH:5
BRF:0
BRH:0
end_of_record
3 changes: 2 additions & 1 deletion test/ExclusiveDelegateResolver.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ contract ExclusiveDelegateResolverTest is Test {
function setUp() public {
// fork mainnet at block 21388707
vm.createSelectFork("mainnet", 21388707);
vm.etch(address(0x6b176c958fb89Ddca0fc8214150DA4c4D0a32fbe), address(0x00000000000000447e69651d841bD8D104Bed493).code);

resolver = new ExclusiveDelegateResolver();
mockERC721 = new MockERC721();
delegateRegistry = IDelegateRegistry(0x00000000000000447e69651d841bD8D104Bed493);
delegateRegistry = IDelegateRegistry(0x6b176c958fb89Ddca0fc8214150DA4c4D0a32fbe);

rightsWithFutureExpiration = resolver.generateRightsWithExpiration(RIGHTS, FUTURE_EXPIRATION);
rightsWithPastExpiration = resolver.generateRightsWithExpiration(RIGHTS, PAST_EXPIRATION);
Expand Down

0 comments on commit 3e22d18

Please sign in to comment.