Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0 review #59

Merged
merged 9 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"compiler-version": ["error", ">=0.8.0"],
"contract-name-camelcase": "off",
"const-name-snakecase": "off",
"custom-errors": "error",
"no-inline-assembly": "off",
"func-name-mixedcase": "error",
"func-visibility": ["error", { "ignoreConstructors": true }],
Expand Down
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ The format is based on [Common Changelog](https://common-changelog.org/).
### Changed

- Refactored multiAttest code
- Standardised naming
- Standardized naming
- Import remappings

### Added

- Gas optimisations of query functions
- Gas optimizations of query functions
- Expanded test coverage

### Removed

- Unchecked increments in loops


## [0.2.0] - 25-10-2023

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ could drastically undermine the objective by opening up a plethora of new attack

The Registry aims to solve this concern by providing a means of verifying the legitimacy and
security of independently built smart account modules for installation and use across any integrated
smart account. It allows entities to attest to statements about modules and smart accounts to query these at module nstallation and/or execution time. The Registry is a Singleton that is free, open and permissionless. It also serves as the reference implementation for [ERC-7484](https://eips.ethereum.org/EIPS/eip-7484).
smart account. It allows entities to attest to statements about modules and smart accounts to query these at module installation and/or execution time. The Registry is a Singleton that is free, open and permissionless. It also serves as the reference implementation for [ERC-7484](https://eips.ethereum.org/EIPS/eip-7484).

## Usage

Expand Down Expand Up @@ -106,7 +106,7 @@ For feature or change requests, feel free to open a PR or get in touch with us.

## Credits & Special Thanks

For the continious support and constructive feedback, we would like to thank:
For the continuous support and constructive feedback, we would like to thank:

- [Ethereum Foundation](https://erc4337.mirror.xyz/hRn_41cef8oKn44ZncN9pXvY3VID6LZOtpLlktXYtmA)
- ERC-4337 Team
Expand Down
55 changes: 55 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"ignorePaths": [
"node_modules/**",
"out/**",
"lib/**",
"broadcast/**",
"cache/**",
"cache/**",
"lcov.info",
"pnpm-lock.yaml",
"natspec-smells.config.js",
"package.json",
"remappings.txt"
],
"useGitignore": true,
"words": [
"SSTORE",
"SLOAD",
"solhint",
"zeroknots",
"Kopp",
"kopy",
"rimeissner",
"Meissner",
"taek",
"Biconomy",
"IERC",
"ERC",
"inheritdoc",
"solady",
"struct",
"keccak",
"mload",
"iszero",
"TYPEHASH",
"chainid",
"natspec",
"remappings",
"UIDs",
"usecase",
"callvalue",
"initcode",
"solmate",
"extcodecopy",
"permissionless",
"structs",
"frontrunners",
"tokenomics",
"uniquify",
"uniquifying",
"ercs",
"SECP",
"doesnt"
]
}
9 changes: 9 additions & 0 deletions natspec-smells.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* List of supported options: https://github.com/defi-wonderland/natspec-smells?tab=readme-ov-file#options
*/

/** @type {import('@defi-wonderland/natspec-smells').Config} */
module.exports = {
include: "src/**/*.sol",
exclude: "(test|scripts)/**/*.sol",
};
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@rhinestone/registry",
"description": "Rhinestone Registry",
"license": "GPL-3.0",
"version": "0.3.1",
"version": "1.0.0",
"author": {
"name": "zeroknots.eth",
"url": "https://rhinestone.wtf"
Expand All @@ -14,11 +14,13 @@
"@openzeppelin/contracts": "5.0.1"
},
"devDependencies": {
"@defi-wonderland/natspec-smells": "^1.1.1",
"cspell": "^8.6.0",
"ds-test": "github:dapphub/ds-test#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "github:foundry-rs/forge-std#v1.7.6",
"solmate": "github:transmissions11/solmate#c892309933b25c03d32b1b0d674df7ae292ba925",
"solady": "github:vectorized/solady#9deb9ed36a27261a8745db5b7cd7f4cdc3b1cd4e",
"solhint": "^4.1.1"
"solhint": "^4.5.2",
"solmate": "github:transmissions11/solmate#c892309933b25c03d32b1b0d674df7ae292ba925"
},
"files": [
"artifacts",
Expand Down Expand Up @@ -53,6 +55,8 @@
"test": "forge test",
"test:lite": "FOUNDRY_PROFILE=lite forge test",
"test:optimized": "pnpm run build:optimized && FOUNDRY_PROFILE=test-optimized forge test",
"build:docs": "forge doc && cd ./docs && rm -rf ./src/src/DataTypes.sol; mdbook build && cd .."
"build:docs": "forge doc && cd ./docs && rm -rf ./src/src/DataTypes.sol; mdbook build && cd ..",
"natspec": "natspec-smells",
"spellcheck": "cspell '**'"
}
}
Loading
Loading