-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a benchmark for factory contracts (#481)
* uni v2 factory benchmarks * compiling subgraph * scripting benchmarks * run benchmarks * update readme for the benchmarks * remove unused abis
- Loading branch information
Showing
42 changed files
with
6,116 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"extends": "ponder" | ||
"extends": "ponder", | ||
"ignorePatterns": ["run-subgraph.sh"] | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,6 @@ data/ | |
dist/ | ||
.ponder/ | ||
generated/ | ||
!apps/subgraph-reth/generated/ | ||
!apps/subgraph-univ2/generated/ | ||
.env.local |
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
File renamed without changes.
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
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
benchmarks/ponder/src/index.ts → benchmarks/apps/ponder-reth/src/index.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
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,193 @@ | ||
export const FactoryAbi = [ | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_feeToSetter", | ||
type: "address", | ||
}, | ||
], | ||
payable: false, | ||
stateMutability: "nonpayable", | ||
type: "constructor", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "token0", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "token1", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "address", | ||
name: "pair", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "totalPairs", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "PairCreated", | ||
type: "event", | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "allPairs", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
payable: false, | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: "allPairsLength", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
payable: false, | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
constant: false, | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "tokenA", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "tokenB", | ||
type: "address", | ||
}, | ||
], | ||
name: "createPair", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "pair", | ||
type: "address", | ||
}, | ||
], | ||
payable: false, | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: "feeTo", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
payable: false, | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [], | ||
name: "feeToSetter", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
payable: false, | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
constant: true, | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
name: "getPair", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
payable: false, | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
constant: false, | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_feeTo", | ||
type: "address", | ||
}, | ||
], | ||
name: "setFeeTo", | ||
outputs: [], | ||
payable: false, | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
constant: false, | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_feeToSetter", | ||
type: "address", | ||
}, | ||
], | ||
name: "setFeeToSetter", | ||
outputs: [], | ||
payable: false, | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
] as const; |
Oops, something went wrong.
c049c4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ponder-docs – ./
ponder-docs-git-main-cantrip.vercel.app
ponder.sh
ponder-docs.vercel.app
ponder-docs-cantrip.vercel.app
www.ponder.sh