-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into tudor/performance_fixes
# Conflicts: # go/enclave/storage/enclavedb/block.go # go/enclave/storage/init/sqlite/001_init.sql
- Loading branch information
Showing
68 changed files
with
1,199 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
contracts/deployment_scripts/testing/001_gas_testing_deployment.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {HardhatRuntimeEnvironment} from 'hardhat/types'; | ||
import {DeployFunction} from 'hardhat-deploy/types'; | ||
import { Receipt } from 'hardhat-deploy/dist/types'; | ||
|
||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const l2Network = hre; | ||
const {deployer} = await hre.getNamedAccounts(); | ||
|
||
const gcb = await l2Network.deployments.deploy("GasConsumerBalance", { | ||
from: deployer, | ||
log: true | ||
}) | ||
|
||
|
||
const gasConsumerBalance = await hre.ethers.getContractAt("GasConsumerBalance", gcb.address) | ||
const gasEstimation = await gasConsumerBalance.estimateGas.get_balance({from: deployer}); | ||
|
||
await hre.deployments.execute("GasConsumerBalance", { | ||
from: deployer, | ||
gasLimit: gasEstimation.div(2), | ||
log: true | ||
}, "get_balance"); | ||
}; | ||
|
||
|
||
export default func; | ||
func.tags = ['GasDebug']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.