{"_id":"clones-with-immutable-args","_rev":"11-8816286ae23c9371f20771143ae8a412","name":"clones-with-immutable-args","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"clones-with-immutable-args","version":"1.0.0","author":{"name":"wighawag"},"license":"BSD","_id":"clones-with-immutable-args@1.0.0","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"dist":{"shasum":"f2ddaa02214575ceae35f7bfbf976a528d455e3b","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-1.0.0.tgz","fileCount":7,"integrity":"sha512-DYv2cgcmNuNaxa00Q/HSWAnsIc8H0mMjZHyGHxHUuyj3JoApOS2dcEb9SQ53qCy3SvDAhKZdaHSNHxbLvlIawg==","signatures":[{"sig":"MEUCIQDIihiJ2lh/u6DXrQKXQrHBWYH5HuPPzZHERgdDudhsQgIgWfLuSfjRbo2CdDlLRB+0B9PyHUaiKcMmo5UScsN5jOQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6p32CRA9TVsSAnZWagAAEqsP/0zS3tUvy6aDKpeuYokI\n1NZpPblFgQ4mhq9PYzGB0HDq6jPZTNGFjtkCI46/c6z68E8axrcmc5CKc1zi\nAd7X5P1iPng/tGVOLNmGbALuNcX4H8ARQFtfDp/03XNTeCSJ7gXuUbCJvtwh\n8sbFpRk8a8GqiEN7kyntZa1fjmhIicn+mirQUUYpO5vurXlA+tKnf/Ekpig5\nMpieHjJpABdhAe4Y3rk641hiYW7WNcv7r58ZJwIaZx3Ke97K0yypufETYD+5\n0ufDo1ndK+KwGRkHBWh18QuOJKBt3xVj/O4iYBlTK5lOIizeEGIdUY1jdkWL\nkOTPWF9e9690KAba/Aj47HCRtkMx4shamb2QhD3JKv2MEl/u+0B5aoK0kJB4\n1ZRV9oX+q5D187mfdtdB1ig0bKTVPxOKw7Aso4IrqGBeIWD7BxxalDFNMaUT\nc7nlVkd1Xjejh5bmJtWJIQgdYC42p/FWRtNvTjVJj/DWZxFT8nmLsSugJLaZ\nP552lUVqsn0zTxtitL7sa9/aOgjjbCbIahYFdhv5quB1EdeWN0sby9uasaCb\nJIYBq3ykzYzO/JR2ijaFbO8/Q1Arwr/wEQPlHQeVZmuzshPvMQD8GSKH5vc5\nrckz44BFsE8mzVHLCyb+bgwqghNcc1fKFNWjsX4bxvlLAeofBFIVajPaR9bp\noD+e\r\n=0HjH\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"1ca1aaf2ca05c6ac4735394f245dba916ea50609","scripts":{"lint":"yarn prettier && yarn solhint","prepack":"yarn prepublishOnly","solhint":"yarn solhint:check --fix","postpack":"yarn postpublish","prettier":"yarn prettier:check --write","lint:check":"yarn prettier:check && yarn solhint:check","postpublish":"rimraf ./*.sol","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prepublishOnly":"copyfiles -u 1 \"./src/**/*.sol\" --exclude \"./src/test/**/*.sol\" ./","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_npmVersion":"6.14.15","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"14.17.6","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","solhint":"^3.3.6","prettier":"^2.4.1","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.0.5","prettier-plugin-solidity":"^1.0.0-beta.18"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_1.0.0_1642765814517_0.09818515473364076","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"clones-with-immutable-args","version":"1.1.0","author":{"name":"wighawag"},"license":"BSD","_id":"clones-with-immutable-args@1.1.0","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"dist":{"shasum":"1d13115ee080f62c8b597a7e9d280b5a505b1870","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-1.1.0.tgz","fileCount":7,"integrity":"sha512-3p68CuK51e6DUC1fo4gnpgAmD6N4LVaYFyb7MkZSd1YQI5cPEHmbrea3I0L4ktxFUYEWLtEZ1SuL7x3RUZgk6Q==","signatures":[{"sig":"MEQCIALYg6XnsuXSh0iLvZXUGlCES096+EWdo1RI0V5YXAErAiAJIOrv2zVf/uPP4bRdToEJfy0BHVbtidpwZjQb4a7QOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30671},"gitHead":"8e345f19a1694afef1575efb06dc00d1afcee219","scripts":{"lint":"yarn prettier && yarn solhint","prepack":"yarn prepublishOnly","solhint":"yarn solhint:check --fix","postpack":"yarn postpublish","prettier":"yarn prettier:check --write","lint:check":"yarn prettier:check && yarn solhint:check","postpublish":"rimraf ./*.sol","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prepublishOnly":"copyfiles -u 1 \"./src/**/*.sol\" --exclude \"./src/test/**/*.sol\" ./","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_npmVersion":"9.8.1","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","solhint":"^3.3.6","prettier":"^2.4.1","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.0.5","prettier-plugin-solidity":"^1.0.0-beta.18"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_1.1.0_1698740703209_0.7614113039958845","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"clones-with-immutable-args","version":"1.1.1","author":{"name":"wighawag"},"license":"BSD","_id":"clones-with-immutable-args@1.1.1","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"dist":{"shasum":"38f2fb6b17644ca3e209c38469c11942d8b47843","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-1.1.1.tgz","fileCount":7,"integrity":"sha512-qi2P6kGaO8YhtNceL0VVNQOOGNDLWl2J51dLz+FcJzYu6K/e+kEeda8XI1T0BfuqU7ws8cO1o6AJRTcHxxGGhA==","signatures":[{"sig":"MEUCIAgq3QvJNhh09+JcJ3/P9RcLbgAcM/sjOlNoEmk37CWTAiEA2FPmD1tJuTGiEca9In9h2Q3lu7UN16XStG0XgWJlXeM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35884},"gitHead":"f5ca191afea933d50a36d101009b5644dc28bc99","scripts":{"lint":"yarn prettier && yarn solhint","prepack":"yarn prepublishOnly","solhint":"yarn solhint:check --fix","postpack":"yarn postpublish","prettier":"yarn prettier:check --write","lint:check":"yarn prettier:check && yarn solhint:check","postpublish":"rimraf ./*.sol","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prepublishOnly":"copyfiles -u 1 \"./src/**/*.sol\" --exclude \"./src/test/**/*.sol\" ./","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_npmVersion":"10.2.3","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","solhint":"^3.3.6","prettier":"^2.4.1","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.0.5","prettier-plugin-solidity":"^1.0.0-beta.18"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_1.1.1_1705502296144_0.380224021514205","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"clones-with-immutable-args","version":"1.1.2","author":{"name":"wighawag"},"license":"BSD","_id":"clones-with-immutable-args@1.1.2","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"dist":{"shasum":"df1ef974c7b914b01ebfa79931d7b0840edfd630","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-1.1.2.tgz","fileCount":7,"integrity":"sha512-gSTqeawIvTXxwq+CakspWOFyOMKA40mdDPIoMJcD/SQtSDWUD8JlvoHJWfKwkWEDORA+/w19nyqu5J/xjfyjAA==","signatures":[{"sig":"MEUCIFfd30I2PBkdlGJ/K/YYesdV+0iEGz/ZWcdPwONCfMBUAiEAh6HyJm1psbIkmSfqPq/t1x+VXJVDMgMhsAbrFJNdoy8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36552},"gitHead":"2df4bff4eef8c061b9a92a7edbbfe12dbf6bcdb0","scripts":{"lint":"pnpm prettier && pnpm solhint","prepack":"pnpm prepublishOnly","solhint":"pnpm solhint:check --fix","postpack":"pnpm postpublish","prettier":"pnpm prettier:check --write","lint:check":"pnpm prettier:check && pnpm solhint:check","preinstall":"npx only-allow pnpm","postpublish":"rimraf ./*.sol","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prepublishOnly":"copyfiles -u 1 \"./src/**/*.sol\" --exclude \"./src/test/**/*.sol\" ./","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_npmVersion":"10.2.3","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","solhint":"^4.1.1","prettier":"^3.2.5","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.1.0","prettier-plugin-solidity":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_1.1.2_1708423901433_0.8325405843836948","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"clones-with-immutable-args","version":"1.2.0","author":{"name":"wighawag"},"license":"BSD","_id":"clones-with-immutable-args@1.2.0","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"dist":{"shasum":"835498bc6d67770b1f10759ab47b91d07374a104","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-1.2.0.tgz","fileCount":7,"integrity":"sha512-Tb8iOdtTZ8Lq7uAGnyNmmInxyNmk0jMebTEhVY8am/W7U+gZfNf4snXaMQrPeEcQOi+NWmwM6PRiR+1uH3dK9w==","signatures":[{"sig":"MEUCIQD81j+r4atRIBhmFhf0i0seyE9MGH5yJSZF03OszlDI5QIgUtD/Z3+N5bluYTtl/u417U+5gvgIQ5QOR5jDxKgKryQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42325},"_from":"file:clones-with-immutable-args-1.2.0.tgz","scripts":{"lint":"pnpm prettier && pnpm solhint","solhint":"pnpm solhint:check --fix","prettier":"pnpm prettier:check --write","lint:check":"pnpm prettier:check && pnpm solhint:check","preinstall":"npx only-allow pnpm","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_resolved":"/tmp/1ce759e6971c47bd9f43ceb3d4c60eab/clones-with-immutable-args-1.2.0.tgz","_integrity":"sha512-Tb8iOdtTZ8Lq7uAGnyNmmInxyNmk0jMebTEhVY8am/W7U+gZfNf4snXaMQrPeEcQOi+NWmwM6PRiR+1uH3dK9w==","_npmVersion":"11.6.2","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","solhint":"^4.1.1","prettier":"^3.2.5","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.1.0","prettier-plugin-solidity":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_1.2.0_1787066195497_0.6535856147384167","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"clones-with-immutable-args","version":"2.0.0","author":{"name":"wighawag"},"license":"BSD","_id":"clones-with-immutable-args@2.0.0","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"dist":{"shasum":"dc446d3efd136098fc437888684525f20b649d98","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-2.0.0.tgz","fileCount":7,"integrity":"sha512-mE7pBw3ikmkqPE4gX7sW6n4/eV1VVwJSnznSmuXLgmBQDrPFM4G8Pd6dtZz/UjMve+ApOhtLFkET1/LAl4jQmg==","signatures":[{"sig":"MEUCIQDhqGVBlHcCYd/84FrCs+17T5hAk0mBDxlXHHuGc9BmvQIgKsHCHU0h+ehdvC/0j4ePDJBrdawgP/FlVSTDxq+Ct08=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43399},"_from":"file:clones-with-immutable-args-2.0.0.tgz","scripts":{"lint":"pnpm prettier && pnpm solhint","solhint":"pnpm solhint:check --fix","prettier":"pnpm prettier:check --write","lint:check":"pnpm prettier:check && pnpm solhint:check","preinstall":"npx only-allow pnpm","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_resolved":"/tmp/eb579d0dbb8d21dfdcc367e94a2f6370/clones-with-immutable-args-2.0.0.tgz","_integrity":"sha512-mE7pBw3ikmkqPE4gX7sW6n4/eV1VVwJSnznSmuXLgmBQDrPFM4G8Pd6dtZz/UjMve+ApOhtLFkET1/LAl4jQmg==","deprecated":"superseded by 2.0.2: invalid SPDX licence identifier, missing repository metadata","_npmVersion":"11.6.2","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","solhint":"^4.1.1","prettier":"^3.2.5","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.1.0","prettier-plugin-solidity":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_2.0.0_1787066640669_0.46281268997977176","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"clones-with-immutable-args","version":"2.0.1","keywords":["solidity","ethereum","evm","smart-contracts","proxy","minimal-proxy","clone","eip-1167","immutable-args","create2","create3"],"author":{"url":"https://github.com/wighawag","name":"wighawag"},"license":"BSD-3-Clause","_id":"clones-with-immutable-args@2.0.1","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"homepage":"https://github.com/wighawag/clones-with-immutable-args#readme","bugs":{"url":"https://github.com/wighawag/clones-with-immutable-args/issues"},"dist":{"shasum":"35d5f497b7e35847ca8de6791bd9a7cc7f904a44","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-2.0.1.tgz","fileCount":7,"integrity":"sha512-z6IgOjK6CNhaxY65E7Vehf8BuAUpdljeatiJXDE1RvD8nJ3KoW2l+p9MNVWIPxsqypwwSh3hNpJ6IL07pjAq1A==","signatures":[{"sig":"MEUCIGd1DXfN+ipH55LVRzEENJ7w2dx0ucdreGGcLcQrtIE3AiEAn9ytr2kgfZ8RKWIlecTp9gj9wLS4J+LR9YV+xT/4O00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44082},"_from":"file:clones-with-immutable-args-2.0.1.tgz","scripts":{"lint":"pnpm prettier && pnpm solhint","solhint":"pnpm solhint:check --fix","prettier":"pnpm prettier:check --write","lint:check":"pnpm prettier:check && pnpm solhint:check","preinstall":"npx only-allow pnpm","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_resolved":"/tmp/9010c8627fd33be57ea946489ed7f365/clones-with-immutable-args-2.0.1.tgz","_integrity":"sha512-z6IgOjK6CNhaxY65E7Vehf8BuAUpdljeatiJXDE1RvD8nJ3KoW2l+p9MNVWIPxsqypwwSh3hNpJ6IL07pjAq1A==","repository":{"url":"git+https://github.com/wighawag/clones-with-immutable-args.git","type":"git"},"_npmVersion":"11.6.2","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","solhint":"^4.1.1","prettier":"^3.2.5","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.1.0","prettier-plugin-solidity":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_2.0.1_1787137518973_0.4729531431646927","host":"s3://npm-registry-packages-npm-production"},"deprecated":"superseded by 2.0.2: package.json and .sol sources disagreed on the licence identifier"},"2.0.2":{"name":"clones-with-immutable-args","version":"2.0.2","keywords":["solidity","ethereum","evm","smart-contracts","proxy","minimal-proxy","clone","eip-1167","immutable-args","create2","create3"],"author":{"url":"https://github.com/wighawag","name":"wighawag"},"license":"BSD-3-Clause","_id":"clones-with-immutable-args@2.0.2","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"homepage":"https://github.com/wighawag/clones-with-immutable-args#readme","bugs":{"url":"https://github.com/wighawag/clones-with-immutable-args/issues"},"dist":{"shasum":"3464ab0fb2a3a5ce749f28a4a14df1ff07f00ff8","tarball":"https://registry.npmjs.org/clones-with-immutable-args/-/clones-with-immutable-args-2.0.2.tgz","fileCount":7,"integrity":"sha512-FD+/5bJPMlPkz118lpEFWhhe4cxrn05d1IluIeZeNBxXowmQl4eSmbIiNmplyFjh1Otfd7DMR6pLwBgif7Zb1w==","signatures":[{"sig":"MEUCIAjjGISLiMZuXRN//26y/OfvCJozQ3/SC4GzmifEmwW8AiEAqeasvez1i7cRLdAxUVEUjWr8TiXNtbhsym50a36Q2uw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44118},"_from":"file:clones-with-immutable-args-2.0.2.tgz","scripts":{"lint":"pnpm prettier && pnpm solhint","solhint":"pnpm solhint:check --fix","prettier":"pnpm prettier:check --write","lint:check":"pnpm prettier:check && pnpm solhint:check","preinstall":"npx only-allow pnpm","solhint:check":"solhint --config ./.solhint.json \"src/**/*.sol\"","prettier:check":"prettier --check \"src/**/*.sol\""},"_npmUser":{"name":"wighawag","email":"npmdev1234567890@gmail.com"},"_resolved":"/tmp/084739c33761dcbfdd82ba328f09e1c7/clones-with-immutable-args-2.0.2.tgz","_integrity":"sha512-FD+/5bJPMlPkz118lpEFWhhe4cxrn05d1IluIeZeNBxXowmQl4eSmbIiNmplyFjh1Otfd7DMR6pLwBgif7Zb1w==","repository":{"url":"git+https://github.com/wighawag/clones-with-immutable-args.git","type":"git"},"_npmVersion":"11.6.2","description":"Factory for deploying clones with immutable parameters.","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","solhint":"^4.1.1","prettier":"^3.2.5","copyfiles":"^2.4.1","solhint-plugin-prettier":"^0.1.0","prettier-plugin-solidity":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/clones-with-immutable-args_2.0.2_1787137794075_0.1658363593956027","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2022-01-21T11:50:14.517Z","modified":"2026-08-19T11:10:39.450Z","1.0.0":"2022-01-21T11:50:14.686Z","1.1.0":"2023-10-31T08:25:03.433Z","1.1.1":"2024-01-17T14:38:16.323Z","1.1.2":"2024-02-20T10:11:41.603Z","1.2.0":"2026-08-18T15:16:35.851Z","2.0.0":"2026-08-18T15:24:00.813Z","2.0.1":"2026-08-19T11:05:19.131Z","2.0.2":"2026-08-19T11:09:54.223Z"},"bugs":{"url":"https://github.com/wighawag/clones-with-immutable-args/issues"},"author":{"url":"https://github.com/wighawag","name":"wighawag"},"license":"BSD-3-Clause","homepage":"https://github.com/wighawag/clones-with-immutable-args#readme","keywords":["solidity","ethereum","evm","smart-contracts","proxy","minimal-proxy","clone","eip-1167","immutable-args","create2","create3"],"repository":{"url":"git+https://github.com/wighawag/clones-with-immutable-args.git","type":"git"},"description":"Factory for deploying clones with immutable parameters.","maintainers":[{"name":"wighawag","email":"npmdev1234567890@gmail.com"}],"readme":"<p align=\"center\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/wighawag/clones-with-immutable-args/master/assets/logo/cwia-wordmark-dark.svg\">\n    <img alt=\"clones with immutable args\" src=\"https://raw.githubusercontent.com/wighawag/clones-with-immutable-args/master/assets/logo/cwia-wordmark.svg\" width=\"420\">\n  </picture>\n</p>\n\n# clones-with-immutable-args\n\nEnables creating clone contracts with immutable arguments.\n\nThe immutable arguments are stored in the code region of the created proxy contract, and whenever the proxy is called, it reads the arguments into memory, and then appends them to the calldata of the delegate call to the implementation contract. The implementation contract can thus read the arguments straight from calldata.\n\nBy doing so, the gas cost of creating parametrizable clones is reduced. An [EIP-1167](https://eips.ethereum.org/EIPS/eip-1167) clone shares its implementation's code, so its immutables are fixed when the implementation is deployed and cannot differ per clone: the only way to parametrize one is storage, which means paying to write the parameters at creation and to load them on every call. Here the parameters live in the clone's own code instead, so there is no storage write at creation, and reads are calldata reads.\n\nNote the comparison is against a _parametrized_ EIP-1167 clone, not against `immutable` variables on a regular contract. Solidity immutables are read from code and are already cheap, but they are the same for every clone of a given implementation, which is exactly what this library exists to work around.\n\nIn other word, if you know you are not gonna need parametrization and just want exact copies, then you can keep using EIP-1167, otherwise, clones-with-immutables is cheaper.\n\n## Status\n\nThis library is stable and maintained on demand: it is not under active feature development, but issues and security reports are addressed. The API is settled and in production use: no function signature has changed since 1.x, and none is planned to.\n\nNote that the immutable args are appended to the **calldata** of every delegatecall, so an implementation inheriting `Clone.sol` reads them with a plain `calldataload`. This costs a small overhead on every call and makes arg reads very cheap. Other minimal-proxy libraries make different tradeoffs, including storing args in the runtime bytecode and reading them back with `extcodecopy`.\n\n### Compiler requirements\n\n`ClonesWithImmutableArgs.sol` requires Solidity **0.8.13 or newer**, because its inline assembly is annotated with the `memory-safe` dialect string, which lets the via-IR optimizer reason across those blocks.\n\n`Clone.sol` still supports **`^0.8.4`**. It is what a contract intended to be cloned inherits in order to read its immutable args, and it contains no assembly annotations, so implementations do not need a newer compiler than before. Only the factory side is affected.\n\nIf you are pinned below 0.8.13, use `1.2.0`. It is the last release supporting `^0.8.4` throughout, and it contains the same fixes as 2.0.0.\n\n## Usage\n\nClone factory contracts should use the [`ClonesWithImmutableArgs`](src/ClonesWithImmutableArgs.sol) library. `ClonesWithImmutableArgs.clone()` is the main function for creating clones.\n\nContracts intended to be cloned should inherit from [`Clone`](src/Clone.sol) to get access to the helper functions for reading immutable args.\n\nTo see an example usage of the library, check out [`ExampleClone`](src/ExampleClone.sol) and [`ExampleCloneFactory`](src/ExampleCloneFactory.sol).\n\n## Installation\n\nTo install with [DappTools](https://github.com/dapphub/dapptools):\n\n```\ndapp install wighawag/clones-with-immutable-args\n```\n\nTo install with [Foundry](https://github.com/gakonst/foundry):\n\n```\nforge install wighawag/clones-with-immutable-args\n```\n\nTo install with [Hardhat](https://hardhat.org):\n\n```\nnpm i -D clones-with-immutable-args\n```\n\n## Local development\n\nThis project uses [Foundry](https://github.com/gakonst/foundry) as the development framework.\n\n### Dependencies\n\n```\nmake update\n```\n\n### Compilation\n\n```\nmake build\n```\n\n### Testing\n\n```\nmake test\n```\n","readmeFilename":"README.md"}