Skip to content

Commit

Permalink
Merge 9a137ae into dc5d4bf
Browse files Browse the repository at this point in the history
  • Loading branch information
livingrockrises authored Oct 14, 2024
2 parents dc5d4bf + 9a137ae commit 8df3d37
Show file tree
Hide file tree
Showing 17 changed files with 182 additions and 786 deletions.
220 changes: 110 additions & 110 deletions .github/gas_report.json

Large diffs are not rendered by default.

607 changes: 0 additions & 607 deletions .github/previous_gas_report.json

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [1.0.0] - 2024-10-14
Code Freeze post audit remediations.

## [1.0.0-beta.1] - 2024-09-30

## [1.0.0-beta] - 2024-06-04
Expand Down
110 changes: 55 additions & 55 deletions GAS_REPORT.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/Nexus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,6 @@ contract Nexus is INexus, BaseAccount, ExecutionHelper, ModuleManager, UUPSUpgra
/// @dev EIP712 domain name and version.
function _domainNameAndVersion() internal pure override returns (string memory name, string memory version) {
name = "Nexus";
version = "1.0.0-beta.1";
version = "1.0.0";
}
}
2 changes: 1 addition & 1 deletion contracts/base/BaseAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { IBaseAccount } from "../interfaces/base/IBaseAccount.sol";
/// Special thanks to the Solady team for foundational contributions: https://github.com/Vectorized/solady
contract BaseAccount is IBaseAccount {
/// @notice Identifier for this implementation on the network
string internal constant _ACCOUNT_IMPLEMENTATION_ID = "biconomy.nexus.1.0.0-beta.1";
string internal constant _ACCOUNT_IMPLEMENTATION_ID = "biconomy.nexus.1.0.0";

/// @notice The canonical address for the ERC4337 EntryPoint contract, version 0.7.
/// This address is consistent across all supported networks.
Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/validators/K1Validator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ contract K1Validator is IValidator, ERC7739Validator {
/// @notice Returns the version of the module
/// @return The version of the module
function version() external pure returns (string memory) {
return "1.0.0-beta.1";
return "1.0.0";
}

/// @notice Checks if the module is of the specified type
Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/NexusBootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ contract NexusBootstrap is ModuleManager {
/// @dev EIP712 domain name and version.
function _domainNameAndVersion() internal pure override returns (string memory name, string memory version) {
name = "NexusBootstrap";
version = "1.0.0-beta.1";
version = "1.0.0";
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nexus",
"description": "Nexus - ERC7579 Modular Smart Account",
"version": "1.0.0-beta.1",
"version": "1.0.0",
"author": {
"name": "Biconomy",
"url": "https://github.com/bcnmy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contract ArbitrumSmartAccountUpgradeTest is NexusTest_Base, ArbitrumSettings {
/// @notice Validates the account ID after the upgrade process.
function test_AccountIdValidationAfterUpgrade() public {
test_UpgradeV2ToV3AndInitialize();
string memory expectedAccountId = "biconomy.nexus.1.0.0-beta.1";
string memory expectedAccountId = "biconomy.nexus.1.0.0";
string memory actualAccountId = IAccountConfig(payable(address(smartAccountV2))).accountId();
assertEq(actualAccountId, expectedAccountId, "Account ID does not match after upgrade.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract TestAccountConfig_AccountId is Test {

/// @notice Tests if the account ID returns the expected value
function test_WhenCheckingTheAccountID() external givenTheAccountConfiguration {
string memory expected = "biconomy.nexus.1.0.0-beta.1";
string memory expected = "biconomy.nexus.1.0.0";
assertEq(accountConfig.accountId(), expected, "AccountConfig should return the expected account ID.");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ contract TestAccountFactory_Deployments is NexusTest_Base {
userOps[0] = buildUserOpWithInitAndCalldata(user, initCode, "", address(VALIDATOR_MODULE));
ENTRYPOINT.depositTo{ value: 1 ether }(address(accountAddress));
ENTRYPOINT.handleOps(userOps, payable(user.addr));
assertEq(IAccountConfig(accountAddress).accountId(), "biconomy.nexus.1.0.0-beta.1", "Not deployed properly");
assertEq(IAccountConfig(accountAddress).accountId(), "biconomy.nexus.1.0.0", "Not deployed properly");
}

/// @notice Tests that deploying an account fails if it already exists.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract TestNexusAccountFactory_Deployments is NexusTest_Base {
userOps[0] = buildUserOpWithInitAndCalldata(user, initCode, "", address(VALIDATOR_MODULE));
ENTRYPOINT.depositTo{ value: 1 ether }(address(accountAddress));
ENTRYPOINT.handleOps(userOps, payable(user.addr));
assertEq(IAccountConfig(accountAddress).accountId(), "biconomy.nexus.1.0.0-beta.1", "Not deployed properly");
assertEq(IAccountConfig(accountAddress).accountId(), "biconomy.nexus.1.0.0", "Not deployed properly");
}

/// @notice Tests that deploying an account fails if it already exists.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ contract TestGas_NexusAccountFactory is TestModuleManagement_Base {
/// @notice Validates the creation of a new account.
/// @param _account The new account address.
function assertValidCreation(Nexus _account) internal {
string memory expected = "biconomy.nexus.1.0.0-beta.1";
string memory expected = "biconomy.nexus.1.0.0";
assertEq(_account.accountId(), expected, "AccountConfig should return the expected account ID.");
assertTrue(
_account.isModuleInstalled(MODULE_TYPE_VALIDATOR, address(VALIDATOR_MODULE), ""), "Account should have the validation module installed"
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/unit/concrete/modules/TestK1Validator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ contract TestK1Validator is NexusTest_Base {
function test_Version() public {
string memory contractVersion = validator.version();

assertEq(contractVersion, "1.0.0-beta.1", "Contract version should be '1.0.0-beta.1'");
assertEq(contractVersion, "1.0.0", "Contract version should be '1.0.0'");
}

/// @notice Tests the isModuleType function to return the correct module type
Expand Down Expand Up @@ -330,7 +330,7 @@ contract TestK1Validator is NexusTest_Base {
abi.encode(
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
keccak256("Nexus"),
keccak256("1.0.0-beta.1"),
keccak256("1.0.0"),
block.chainid,
address(BOB_ACCOUNT)
)
Expand Down
2 changes: 1 addition & 1 deletion test/hardhat/smart-account/Nexus.Basics.specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe("Nexus Basic Specs", function () {
describe("Smart Account Basics", function () {
it("Should correctly return the Nexus's ID", async function () {
expect(await smartAccount.accountId()).to.equal(
"biconomy.nexus.1.0.0-beta.1",
"biconomy.nexus.1.0.0",
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe("K1Validator module tests", () => {

it("should get module version", async () => {
const version = await k1Validator.version();
expect(version).to.equal("1.0.0-beta.1");
expect(version).to.equal("1.0.0");
});

it("should check module type", async () => {
Expand Down

0 comments on commit 8df3d37

Please sign in to comment.