Skip to content

Commit

Permalink
feat(protocol): alpha-4 with staking-based tokenomics (#13981)
Browse files Browse the repository at this point in the history
Co-authored-by: D <[email protected]>
Co-authored-by: dantaik <[email protected]>
Co-authored-by: dave | d1onys1us <[email protected]>
Co-authored-by: adaki2004 <[email protected]>
Co-authored-by: jeff <[email protected]>
Co-authored-by: Francisco Ramos <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: Kenk <[email protected]>
Co-authored-by: mfinestone <[email protected]>
Co-authored-by: hideonbug <[email protected]>
Co-authored-by: megumii <[email protected]>
Co-authored-by: Tomaž <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Daniel Wang <[email protected]>
Co-authored-by: adaki2004 <[email protected]>
Co-authored-by: Jeffery Walsh <[email protected]>
Co-authored-by: cyberhorsey <[email protected]>
Co-authored-by: Brecht Devos <[email protected]>
  • Loading branch information
19 people committed Jun 28, 2023
1 parent e6a7945 commit d96e4bd
Show file tree
Hide file tree
Showing 53 changed files with 3,736 additions and 824 deletions.
1 change: 1 addition & 0 deletions packages/branding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ Look inside of this package for some common files you can use. Otherwise, please
## Colors

Our primary hex color is `#E81899`. For the full color palette and further details, please resort to the [Figma](<https://www.figma.com/file/qVALIk5srW9nvOJwl6NF6F/Taiko-Brand-Guidelines-(External)>).

2 changes: 1 addition & 1 deletion packages/eventindexer/indexer/save_block_proven_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (svc *Service) updateAverageProofTime(ctx context.Context, event *taikol1.T
new(big.Int).SetUint64(proofTime),
)

log.Infof("avgProofTime update: id: %v, prover: %v, proposedAt: %v, provenAt: %v, proofTIme: %v, avg: %v, newAvg: %v",
log.Infof("avgProofWindow update: id: %v, prover: %v, proposedAt: %v, provenAt: %v, proofTIme: %v, avg: %v, newAvg: %v",
event.Id.Int64(),
event.Prover.Hex(),
proposedAt,
Expand Down
10 changes: 10 additions & 0 deletions packages/protocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

This package contains rollup contracts on both L1 and L2, along with other assisting code. Taiko L2's chain ID is [167](https://github.com/ethereum-lists/chains/pull/1611).


## Compile

To compile smart contracts, run:
```sh
pnpm compile
```

If you run into `Error: Unknown version provided`, you should upgrade your foundry installation by running `curl -L https://foundry.paradigm.xyz | bash`.

## Deploy

Deploy TaikoL1 on hardhat network:
Expand Down
19 changes: 19 additions & 0 deletions packages/protocol/contracts/L1/IProverPool.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// _____ _ _ _ _
// |_ _|_ _(_) |_____ | | __ _| |__ ___
// | |/ _` | | / / _ \ | |__/ _` | '_ (_-<
// |_|\__,_|_|_\_\___/ |____\__,_|_.__/__/

pragma solidity ^0.8.20;

interface IProverPool {
function assignProver(
uint64 blockId,
uint32 feePerGas
)
external
returns (address prover, uint32 rewardPerGas);

function releaseProver(address prover) external;

function slashProver(address prover) external;
}
Loading

0 comments on commit d96e4bd

Please sign in to comment.