From bf2e349009a0909b80c4c6bc683af2f4551ea4c9 Mon Sep 17 00:00:00 2001 From: JaredBorders Date: Fri, 29 Sep 2023 16:43:21 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B8=20Add=20gas-snapshot/lcov?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lcov.info | 362 +++++++++++++++++++++++++++++++++++++++++++-------- package.json | 8 +- 2 files changed, 313 insertions(+), 57 deletions(-) diff --git a/lcov.info b/lcov.info index 5f13c71..d86b288 100644 --- a/lcov.info +++ b/lcov.info @@ -1,60 +1,305 @@ TN: SF:script/Deploy.s.sol -FN:17,Setup.deploySystem +FN:62,DeployOptimism.run +FNDA:0,DeployOptimism.run +DA:63,0 +DA:64,0 +DA:66,0 +DA:68,0 +FN:77,DeployOptimismGoerli.run +FNDA:0,DeployOptimismGoerli.run +DA:78,0 +DA:79,0 +DA:81,0 +DA:83,0 +FN:48,DeployBaseGoerli.run +FNDA:0,DeployBaseGoerli.run +DA:49,0 +DA:50,0 +DA:52,0 +DA:54,0 +FN:18,Setup.deploySystem FNDA:0,Setup.deploySystem -DA:18,0 DA:19,0 -FN:55,DeployOptimism.run -FNDA:0,DeployOptimism.run +DA:20,0 +DA:21,0 +DA:22,0 +DA:23,0 +FN:34,DeployBase.run +FNDA:0,DeployBase.run +DA:35,0 +DA:36,0 +DA:38,0 +DA:40,0 +FNF:5 +FNH:0 +LF:21 +LH:0 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/SMv2SessionValidationModule.sol +FN:30,SMv2SessionValidationModule.validateSessionParams +FNDA:7,SMv2SessionValidationModule.validateSessionParams +DA:37,7 +DA:41,7 +DA:44,7 +BRDA:44,0,0,2 +BRDA:44,0,1,5 +DA:45,2 +DA:49,5 +BRDA:49,1,0,2 +BRDA:49,1,1,3 +DA:50,2 +DA:54,3 +BRDA:54,2,0,1 +BRDA:54,2,1,2 +DA:55,1 +DA:65,2 +FN:78,SMv2SessionValidationModule.validateSessionUserOp +FNDA:10,SMv2SessionValidationModule.validateSessionUserOp +DA:86,10 +DA:87,1 +BRDA:85,3,0,1 +BRDA:85,3,1,9 +DA:89,1 +DA:92,9 +DA:96,9 +DA:100,9 +DA:106,9 +BRDA:106,4,0,2 +BRDA:106,4,1,7 +DA:107,2 +DA:111,7 +BRDA:111,5,0,1 +BRDA:111,5,1,6 +DA:112,1 +DA:118,6 +DA:120,6 +DA:121,6 +DA:122,6 +DA:124,6 +DA:128,6 +BRDA:128,6,0,2 +BRDA:128,6,1,4 +DA:129,2 +DA:134,4 +FNF:2 +FNH:2 +LF:27 +LH:27 +BRF:14 +BRH:14 +end_of_record +TN: +SF:src/SMv3SessionValidationModule.sol +FN:35,SMv3SessionValidationModule.validateSessionParams +FNDA:0,SMv3SessionValidationModule.validateSessionParams +DA:42,0 +DA:49,0 +DA:54,0 +BRDA:54,0,0,- +BRDA:54,0,1,- +DA:55,0 +DA:59,0 +DA:61,0 +DA:62,0 +DA:63,0 +DA:64,0 +BRDA:60,1,0,- +BRDA:60,1,1,- +DA:66,0 +DA:70,0 +BRDA:70,2,0,- +BRDA:70,2,1,- +DA:71,0 +DA:74,0 +FN:87,SMv3SessionValidationModule.validateSessionUserOp +FNDA:0,SMv3SessionValidationModule.validateSessionUserOp +DA:95,0 +DA:96,0 +BRDA:94,3,0,- +BRDA:94,3,1,- +DA:98,0 +DA:101,0 +DA:106,0 +DA:112,0 +BRDA:112,4,0,- +BRDA:112,4,1,- +DA:113,0 +DA:117,0 +BRDA:117,5,0,- +BRDA:117,5,1,- +DA:118,0 +DA:124,0 +DA:126,0 +DA:127,0 +DA:128,0 +DA:129,0 +DA:133,0 +DA:140,0 +DA:146,0 +DA:148,0 +DA:149,0 +DA:150,0 +DA:151,0 +BRDA:147,6,0,- +BRDA:147,6,1,- +DA:153,0 +DA:159,0 +FNF:2 +FNH:0 +LF:36 +LH:0 +BRF:14 +BRH:0 +end_of_record +TN: +SF:src/biconomy/interfaces/UserOperation.sol +FN:34,UserOperationLib.getSender +FNDA:0,UserOperationLib.getSender +DA:39,0 +DA:42,0 +DA:44,0 +FN:49,UserOperationLib.gasPrice +FNDA:0,UserOperationLib.gasPrice +DA:55,0 DA:56,0 DA:57,0 +BRDA:57,0,0,- +BRDA:57,0,1,- DA:59,0 DA:61,0 -FN:41,DeployBaseGoerli.run -FNDA:0,DeployBaseGoerli.run -DA:42,0 -DA:43,0 -DA:45,0 -DA:47,0 -FN:70,DeployOptimismGoerli.run -FNDA:0,DeployOptimismGoerli.run +FN:65,UserOperationLib.pack +FNDA:0,UserOperationLib.pack DA:71,0 -DA:72,0 -DA:74,0 -DA:76,0 -FN:27,DeployBase.run -FNDA:0,DeployBase.run -DA:28,0 -DA:29,0 -DA:31,0 -DA:33,0 +DA:78,0 +FN:85,UserOperationLib.hash +FNDA:0,UserOperationLib.hash +DA:90,0 +FN:93,UserOperationLib.min +FNDA:0,UserOperationLib.min +DA:94,0 FNF:5 FNH:0 -LF:18 +LF:12 LH:0 -BRF:0 +BRF:2 BRH:0 end_of_record TN: -SF:src/Counter.sol -FN:10,Counter.setNumber -FNDA:256,Counter.setNumber -DA:11,256 -FN:14,Counter.increment -FNDA:1,Counter.increment -DA:15,1 -FNF:2 -FNH:2 -LF:2 -LH:2 +SF:src/openzeppelin/ECDSA.sol +FN:56,ECDSA.tryRecover +FNDA:4,ECDSA.tryRecover +DA:61,4 +BRDA:61,0,0,4 +BRDA:61,0,1,- +DA:62,4 +DA:63,4 +DA:64,4 +DA:69,4 +DA:70,4 +DA:71,4 +DA:73,4 +DA:75,0 +FN:97,ECDSA.recover +FNDA:4,ECDSA.recover +DA:102,4 +DA:103,4 +DA:104,4 +DA:105,4 +FN:113,ECDSA.tryRecover +FNDA:0,ECDSA.tryRecover +DA:119,0 +DA:120,0 +DA:124,0 +DA:125,0 +FN:132,ECDSA.recover +FNDA:0,ECDSA.recover +DA:137,0 +DA:138,0 +DA:139,0 +DA:140,0 +FN:147,ECDSA.tryRecover +FNDA:4,ECDSA.tryRecover +DA:162,4 +BRDA:161,1,0,- +BRDA:161,1,1,4 +DA:165,0 +DA:169,4 +DA:170,4 +BRDA:170,2,0,- +BRDA:170,2,1,4 +DA:171,0 +DA:174,4 +FN:181,ECDSA.recover +FNDA:0,ECDSA.recover +DA:186,0 +DA:187,0 +DA:188,0 +DA:189,0 +FN:195,ECDSA._throwError +FNDA:4,ECDSA._throwError +DA:196,4 +BRDA:196,3,0,- +BRDA:196,3,1,4 +DA:197,4 +DA:198,0 +BRDA:198,4,0,- +BRDA:198,4,1,- +DA:199,0 +DA:200,0 +BRDA:200,5,0,- +BRDA:200,5,1,- +DA:201,0 +DA:202,0 +BRDA:202,6,0,- +BRDA:202,6,1,- +DA:203,0 +FN:212,ECDSA.toEthSignedMessageHash +FNDA:4,ECDSA.toEthSignedMessageHash +DA:219,4 +FNF:8 +FNH:5 +LF:40 +LH:19 +BRF:14 +BRH:4 +end_of_record +TN: +SF:test/SMv2SessionValidationModule.t.sol +FN:38,SMv2SessionValidationModuleTest.setUp +FNDA:0,SMv2SessionValidationModuleTest.setUp +DA:39,0 +DA:41,0 +DA:44,0 +DA:45,0 +DA:46,0 +DA:47,0 +DA:50,0 +DA:51,0 +DA:52,0 +DA:55,0 +DA:56,0 +DA:57,0 +DA:58,0 +DA:60,0 +DA:63,0 +DA:66,0 +DA:67,0 +FNF:1 +FNH:0 +LF:17 +LH:0 BRF:0 BRH:0 end_of_record TN: -SF:test/Counter.t.sol -FN:7,CounterTest.setUp -FNDA:0,CounterTest.setUp -DA:12,0 +SF:test/SMv3SessionValidationModule.t.sol +FN:7,SMv3SessionValidationModuleTest.setUp +FNDA:0,SMv3SessionValidationModuleTest.setUp +DA:8,0 FNF:1 FNH:0 LF:1 @@ -64,28 +309,39 @@ BRH:0 end_of_record TN: SF:test/utils/Bootstrap.sol -FN:36,BootstrapOptimism.init -FNDA:0,BootstrapOptimism.init -DA:37,0 -DA:39,0 -FN:44,BootstrapOptimismGoerli.init +FN:37,BootstrapOptimismGoerli.init FNDA:0,BootstrapOptimismGoerli.init -DA:45,0 -DA:47,0 -FN:18,Bootstrap.initializeOptimismGoerli +DA:38,0 +DA:41,0 +DA:43,0 +FN:20,Bootstrap.initializeOptimismGoerli FNDA:0,Bootstrap.initializeOptimismGoerli -DA:19,0 -DA:20,0 +DA:21,0 DA:22,0 -FN:25,Bootstrap.initializeOptimism -FNDA:0,Bootstrap.initializeOptimism -DA:26,0 +DA:25,0 DA:27,0 DA:29,0 -FNF:4 +FNF:2 FNH:0 -LF:10 +LF:8 LH:0 BRF:0 BRH:0 end_of_record +TN: +SF:test/utils/UserOperationSignature.sol +FN:18,UserOperationSignature.getUserOperationSignature +FNDA:1,UserOperationSignature.getUserOperationSignature +DA:22,1 +DA:24,1 +DA:26,1 +FN:29,UserOperationSignature.hashUserOperation +FNDA:0,UserOperationSignature.hashUserOperation +DA:34,1 +FNF:2 +FNH:1 +LF:4 +LH:4 +BRF:0 +BRH:0 +end_of_record diff --git a/package.json b/package.json index 3488d2a..e380a82 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "foundry-scaffold", + "name": "scw-contracts", "version": "1.0.0", "license": "GPL-3.0-or-later", - "homepage": "https://github.com/Kwenta/foundry-scaffold#readme", + "homepage": "https://github.com/Kwenta/scw-contracts#readme", "scripts": { "compile": "forge build", "test": "forge test --fork-url $(grep OPTIMISM_GOERLI_RPC_URL .env | cut -d '=' -f2) --etherscan-api-key $(grep OPTIMISM_ETHERSCAN_API_KEY .env | cut -d '=' -f2) --gas-report -vvv", @@ -15,10 +15,10 @@ }, "repository": { "type": "git", - "url": "https://github.com/Kwenta/foundry-scaffold" + "url": "https://github.com/Kwenta/scw-contracts" }, "bugs": { - "url": "https://github.com/Kwenta/foundry-scaffold/issues" + "url": "https://github.com/Kwenta/scw-contracts/issues" }, "devDependencies": {}, "dependencies": {}