浏览代码

Update lockfile (#5615)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
renovate[bot] 5 月之前
父节点
当前提交
d61a349165
共有 5 个文件被更改,包括 421 次插入348 次删除
  1. 1 3
      contracts/mocks/BlockhashMock.sol
  2. 1 5
      contracts/utils/Base64.sol
  3. 405 328
      package-lock.json
  4. 2 2
      solhint.config.js
  5. 12 10
      test/proxy/Clones.test.js

+ 1 - 3
contracts/mocks/BlockhashMock.sol

@@ -4,6 +4,4 @@ pragma solidity ^0.8.20;
 import {Blockhash} from "../utils/Blockhash.sol";
 
 /// @dev This mock is required for upgradeable tests to pass
-contract BlockhashMock {
-
-}
+contract BlockhashMock {}

+ 1 - 5
contracts/utils/Base64.sol

@@ -72,11 +72,7 @@ library Base64 {
             mstore(afterPtr, 0x00)
 
             // Run over the input, 3 bytes at a time
-            for {
-
-            } lt(dataPtr, endPtr) {
-
-            } {
+            for {} lt(dataPtr, endPtr) {} {
                 // Advance 3 bytes
                 dataPtr := add(dataPtr, 3)
                 let input := mload(dataPtr)

文件差异内容过多而无法显示
+ 405 - 328
package-lock.json


+ 2 - 2
solhint.config.js

@@ -3,8 +3,8 @@ const customRules = require('solhint-plugin-openzeppelin');
 const rules = [
   'avoid-tx-origin',
   'const-name-snakecase',
-  'contract-name-camelcase',
-  'event-name-camelcase',
+  'contract-name-capwords',
+  'event-name-capwords',
   'explicit-types',
   'func-name-mixedcase',
   'func-param-name-mixedcase',

+ 12 - 10
test/proxy/Clones.test.js

@@ -31,17 +31,18 @@ async function fixture() {
   const newClone =
     args =>
     async (opts = {}) => {
-      const clone = await (args
-        ? factory.$cloneWithImmutableArgs.staticCall(implementation, args)
-        : factory.$clone.staticCall(implementation)
+      const clone = await (
+        args
+          ? factory.$cloneWithImmutableArgs.staticCall(implementation, args)
+          : factory.$clone.staticCall(implementation)
       ).then(address => implementation.attach(address));
       const tx = await (args
         ? opts.deployValue
           ? factory.$cloneWithImmutableArgs(implementation, args, ethers.Typed.uint256(opts.deployValue))
           : factory.$cloneWithImmutableArgs(implementation, args)
         : opts.deployValue
-        ? factory.$clone(implementation, ethers.Typed.uint256(opts.deployValue))
-        : factory.$clone(implementation));
+          ? factory.$clone(implementation, ethers.Typed.uint256(opts.deployValue))
+          : factory.$clone(implementation));
       if (opts.initData || opts.initValue) {
         await deployer.sendTransaction({ to: clone, value: opts.initValue ?? 0n, data: opts.initData ?? '0x' });
       }
@@ -52,9 +53,10 @@ async function fixture() {
     args =>
     async (opts = {}) => {
       const salt = opts.salt ?? ethers.randomBytes(32);
-      const clone = await (args
-        ? factory.$cloneDeterministicWithImmutableArgs.staticCall(implementation, args, salt)
-        : factory.$cloneDeterministic.staticCall(implementation, salt)
+      const clone = await (
+        args
+          ? factory.$cloneDeterministicWithImmutableArgs.staticCall(implementation, args, salt)
+          : factory.$cloneDeterministic.staticCall(implementation, salt)
       ).then(address => implementation.attach(address));
       const tx = await (args
         ? opts.deployValue
@@ -66,8 +68,8 @@ async function fixture() {
             )
           : factory.$cloneDeterministicWithImmutableArgs(implementation, args, salt)
         : opts.deployValue
-        ? factory.$cloneDeterministic(implementation, salt, ethers.Typed.uint256(opts.deployValue))
-        : factory.$cloneDeterministic(implementation, salt));
+          ? factory.$cloneDeterministic(implementation, salt, ethers.Typed.uint256(opts.deployValue))
+          : factory.$cloneDeterministic(implementation, salt));
       if (opts.initData || opts.initValue) {
         await deployer.sendTransaction({ to: clone, value: opts.initValue ?? 0n, data: opts.initData ?? '0x' });
       }

部分文件因为文件数量过多而无法显示