Skip to content

Commit

Permalink
chore: small cleanup/fixes
Browse files Browse the repository at this point in the history
- specify block tag when fetching owner in tenderly sim
- add tenderly to dockerfile
- update foundry command
  • Loading branch information
mds1 committed Feb 8, 2022
1 parent 48d6f6a commit 782d204
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ RUN make benchmark-foundry
RUN make benchmark-hardhat
RUN make benchmark-dapptools
RUN make benchmark-ganache
RUN make benchmark-tenderly

ENTRYPOINT ["make"]
2 changes: 1 addition & 1 deletion scripts/benchmark-foundry.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
. ./.env

time forge test -vv --rpc-url $ETH_RPC_URL --fork-block-number $FORK_BLOCK --gas-limit $GAS_LIMIT
time forge test -vv --fork-url $ETH_RPC_URL --fork-block-number $FORK_BLOCK --gas-limit $GAS_LIMIT
3 changes: 1 addition & 2 deletions scripts/convex.tenderly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import { JsonRpcProvider } from '@ethersproject/providers';
import fetchUrl, { FETCH_OPT } from 'micro-ftch';

async function main(): Promise<void> {
// TODO query this from tenderly API?
const convexAddr = '0xF403C135812408BFbE8713b5A23a04b3D48AAE31';
const provider = new JsonRpcProvider(process.env.ETH_RPC_URL);
const abi = ['function owner() view external returns (address)'];
const convex = new Contract(convexAddr, abi, provider);
const ownerAddr = await convex.owner();
const ownerAddr = await convex.owner({ blockTag: Number(process.env.FORK_BLOCK) });

// Configure tenderly request
const baseUrl = 'https://api.tenderly.co/api/v1';
Expand Down

0 comments on commit 782d204

Please sign in to comment.