-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd21439
commit b13f7ef
Showing
2 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## Gas Costs | ||
|
||
For the most accurate gas estimates, always test with your specific use case and conditions. | ||
|
||
Here are the typical gas costs for key operations in the fault proof system: | ||
|
||
### Game Creation (Propose) | ||
Creating a new game through the factory costs approximately 330,000 gas. This includes: | ||
- Factory proxy delegation (~25,000 gas) | ||
- Game proxy creation (~44,000 gas) | ||
- Game initialization (~175,000 gas) | ||
- Event emissions and state updates | ||
|
||
### Challenge | ||
Challenging a game costs approximately 85,000 gas. This includes: | ||
- State validation checks | ||
- Updating game status | ||
- Setting challenge deadline | ||
- Recording challenger address | ||
- Event emissions | ||
|
||
### Proving | ||
Proving a game costs approximately 280,000~300,000 gas. This includes: | ||
- Proof verification | ||
- State updates | ||
- Event emissions | ||
|
||
### Resolution | ||
Resolving a game costs approximately 85,000 gas for a standard resolution. This includes: | ||
- Parent game validation | ||
- Status checks and updates | ||
- Bond distribution calculations | ||
- Event emissions | ||
|
||
### Credit Claiming | ||
Claiming credit (bonds/rewards) costs approximately 85,000 gas. This includes: | ||
- Game finalization checks | ||
- Credit balance updates | ||
- ETH transfers | ||
- Event emissions |