Ver Fonte

Update lockfile (#2384)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
renovate[bot] há 4 anos atrás
pai
commit
3d2e5c0310

+ 1 - 1
contracts/mocks/Create2Impl.sol

@@ -23,5 +23,5 @@ contract Create2Impl {
         return Create2.computeAddress(salt, codeHash, deployer);
     }
 
-    receive() payable external {}
+    receive() external payable {}
 }

+ 3 - 3
contracts/mocks/DummyImplementation.sol

@@ -15,7 +15,7 @@ contract DummyImplementation {
     value = 10;
   }
 
-  function initializePayable() payable public {
+  function initializePayable() public payable {
     value = 100;
   }
 
@@ -23,7 +23,7 @@ contract DummyImplementation {
     value = _value;
   }
 
-  function initializePayable(uint256 _value) payable public {
+  function initializePayable(uint256 _value) public payable {
     value = _value;
   }
 
@@ -47,7 +47,7 @@ contract DummyImplementation {
 }
 
 contract DummyImplementationV2 is DummyImplementation {
-  function migrate(uint256 newVal) payable public {
+  function migrate(uint256 newVal) public payable {
     value = newVal;
   }
 

+ 2 - 2
contracts/proxy/Proxy.sol

@@ -60,7 +60,7 @@ abstract contract Proxy {
      * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
      * function in the contract matches the call data.
      */
-    fallback () payable external {
+    fallback () external payable {
         _fallback();
     }
 
@@ -68,7 +68,7 @@ abstract contract Proxy {
      * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
      * is empty.
      */
-    receive () payable external {
+    receive () external payable {
         _fallback();
     }
 

Diff do ficheiro suprimidas por serem muito extensas
+ 174 - 590
package-lock.json


+ 11 - 0
scripts/prepare-docs-solc.js

@@ -0,0 +1,11 @@
+const path = require('path');
+const bre = require('@nomiclabs/buidler');
+
+const { Compiler } = require('@nomiclabs/buidler/internal/solidity/compiler');
+
+const compiler = new Compiler(
+  bre.config.solc.version,
+  path.join(bre.config.paths.cache, 'compilers'),
+);
+
+module.exports = Object.assign(compiler.getSolc(), { __esModule: true });

+ 8 - 1
scripts/prepare-docs.sh

@@ -9,5 +9,12 @@ if [ ! -d node_modules ]; then
 fi
 
 rm -rf "$OUTDIR"
-solidity-docgen -t docs -o "$OUTDIR" -e contracts/mocks,contracts/examples --output-structure readmes
+
+solidity-docgen \
+  -t docs \
+  -o "$OUTDIR" \
+  -e contracts/mocks,contracts/examples \
+  --output-structure readmes \
+  --solc-module scripts/prepare-docs-solc.js
+
 node scripts/gen-nav.js "$OUTDIR" > "$OUTDIR/../nav.adoc"

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff