Skip to content

Commit

Permalink
➕ Update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Mar 27, 2024
1 parent f35c575 commit 67ab5d4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lib/accounts
Submodule accounts updated 59 files
+50 −92 .gas-snapshot
+9 −10 README.md
+413 −332 abi/RecoveryValidator.json
+228 −228 abi/Token.json
+9 −10 docs/src/README.md
+5 −10 docs/src/SUMMARY.md
+2 −2 docs/src/src/Account.sol/contract.Account.md
+1 −1 docs/src/src/Accounts.sol/contract.Accounts.md
+1 −1 docs/src/src/authority/Auth.sol/contract.Auth.md
+1 −1 docs/src/src/governance/Points.sol/contract.Points.md
+1 −1 docs/src/src/governance/Points.sol/interface.IERC1271.md
+1 −1 docs/src/src/governance/Points.sol/interface.IERC20.md
+0 −1 docs/src/src/governance/README.md
+5 −2 docs/src/src/governance/Token.sol/contract.Token.md
+1 −1 docs/src/src/governance/Words.sol/contract.Words.md
+1 −1 docs/src/src/ownership/Keys.sol/contract.Keys.md
+1 −1 docs/src/src/ownership/Keys.sol/interface.IAuth.md
+1 −1 docs/src/src/ownership/Keys.sol/interface.IOwnable.md
+1 −1 docs/src/src/ownership/Keysmith.sol/contract.Keysmith.md
+1 −1 docs/src/src/ownership/Keysmith.sol/interface.IAccounts.md
+0 −5 docs/src/src/ownership/README.md
+233 −86 docs/src/src/paymasters/NEETH.sol/contract.NEETH.md
+1 −1 docs/src/src/paymasters/NEETH.sol/enum.PostOpMode.md
+33 −0 docs/src/src/paymasters/NEETH.sol/interface.IEntryPoint.md
+14 −0 docs/src/src/paymasters/NEETH.sol/interface.ISwapRouter.md
+1 −1 docs/src/src/paymasters/NEETH.sol/interface.IUniswapV2.md
+1 −1 docs/src/src/paymasters/NEETH.sol/interface.IWETH.md
+1 −1 docs/src/src/paymasters/Paymaster.sol/contract.Paymaster.md
+2 −4 docs/src/src/paymasters/README.md
+45 −2 docs/src/src/validators/JointValidator.sol/contract.JointValidator.md
+64 −10 docs/src/src/validators/PaymentValidator.sol/contract.PaymentValidator.md
+1 −1 docs/src/src/validators/PaymentValidator.sol/interface.IERC20.md
+1 −1 docs/src/src/validators/PermitValidator.sol/contract.PermitValidator.md
+1 −1 docs/src/src/validators/PermitValidator.sol/interface.IExecutor.md
+3 −0 docs/src/src/validators/README.md
+55 −18 docs/src/src/validators/RecoveryValidator.sol/contract.RecoveryValidator.md
+14 −0 docs/src/src/validators/RecoveryValidator.sol/interface.ITransferOwnership.md
+116 −0 docs/src/src/validators/TimeValidator.sol/contract.TimeValidator.md
+14 −0 docs/src/src/validators/TimeValidator.sol/interface.IOwner.md
+2 −4 foundry.toml
+1 −1 lib/forge-std
+1 −1 lib/solady
+4 −4 src/Account.sol
+0 −199 src/governance/Invites.sol
+6 −6 src/governance/Token.sol
+0 −23 src/ownership/Keysmith.sol
+0 −424 src/ownership/Owners.sol
+244 −165 src/paymasters/NEETH.sol
+0 −140 src/paymasters/Paymaster.sol
+35 −7 src/validators/JointValidator.sol
+64 −41 src/validators/PaymentValidator.sol
+32 −57 src/validators/RecoveryValidator.sol
+103 −0 src/validators/TimeValidator.sol
+6 −6 test/Account.t.sol
+0 −27 test/governance/Invites.t.sol
+4 −4 test/governance/Token.t.sol
+0 −1,210 test/ownership/Owners.t.sol
+3 −3 test/validators/JointValidator.t.sol
+22 −11 test/validators/RecoveryValidator.t.sol
2 changes: 1 addition & 1 deletion lib/forge-std
38 changes: 19 additions & 19 deletions test/Dagon.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ contract DagonTest is Test {
function testIsValidSignature() public {
testInstall();
bytes32 userOpHash = keccak256("OWN");
NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
userOp.signature =
abi.encodePacked(alice, _sign(alicePk, _toEthSignedMessageHash(userOpHash)));
require(userOp.signature.length == 85, "INVALID_LEN");
Expand All @@ -402,7 +402,7 @@ contract DagonTest is Test {
function testIsValidSignatureOnchain() public {
testInstall();
bytes32 userOpHash = keccak256("OWN");
NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
userOp.signature = "";
require(userOp.signature.length == 0, "INVALID_LEN");
userOp.sender = address(account);
Expand All @@ -420,7 +420,7 @@ contract DagonTest is Test {
function testUserVoted() public {
testInstall();
bytes32 userOpHash = keccak256("OWN");
NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
userOp.signature = "";
require(userOp.signature.length == 0, "INVALID_LEN");
userOp.sender = address(account);
Expand Down Expand Up @@ -475,7 +475,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -533,7 +533,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -606,7 +606,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -750,7 +750,7 @@ contract DagonTest is Test {
);

// Prepare for the signature validation
NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);

Expand Down Expand Up @@ -809,7 +809,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -863,7 +863,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -924,7 +924,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -978,7 +978,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -1039,7 +1039,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -1090,7 +1090,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -1146,7 +1146,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -1200,7 +1200,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -1259,7 +1259,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -1313,7 +1313,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
addrs = _sortAddresses(addrs);
Expand Down Expand Up @@ -1374,7 +1374,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
addrs = _sortAddresses(addrs);
userOp.signature = abi.encodePacked("");
Expand Down Expand Up @@ -1426,7 +1426,7 @@ contract DagonTest is Test {
abi.encodeWithSelector(account.completeOwnershipHandover.selector, address(dagon))
);

NaniAccount.UserOperation memory userOp;
NaniAccount.PackedUserOperation memory userOp;
bytes32 userOpHash = keccak256("OWN");
bytes32 signHash = _toEthSignedMessageHash(userOpHash);
userOp.signature = abi.encodePacked(
Expand Down

0 comments on commit 67ab5d4

Please sign in to comment.