Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT Marketplace #1696

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

JIT Marketplace #1696

wants to merge 9 commits into from

Conversation

tbro
Copy link
Contributor

@tbro tbro commented Jul 11, 2024

Supersedes #1633 and #1659, bringing in FullNetworkTx and multiple fees per block changes.

This PR:

Adds types and implementations for JIT marketplace. It includes changes for multiple fees per block. It doesn't currently compile due to pending changes in traits defined in HotShot.

Key places to review:

  • auction.rs (impl and v0_3 type)
  • header.rs (impl and v0_3 type)
  • v0_3/chain_config.rs
  • impls/state.rs

How to test this PR:

Currently untestable due to unsatisfied external dependencies.

@tbro tbro requested a review from imabdulbasit July 11, 2024 16:45
@tbro tbro mentioned this pull request Jul 11, 2024
@tbro tbro closed this Jul 11, 2024
@tbro tbro reopened this Jul 11, 2024
@@ -40,6 +40,9 @@ pub struct ChainConfig {
/// regardless of whether or not their is a `fee_contract` deployed. Once deployed, the fee
/// contract can decide what to do with tokens locked in this account in Espresso.
pub fee_recipient: FeeAccount,

/// Account that receives sequencing bids.
pub bid_recipient: FeeAccount,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change so shouldn't we create a new v3 chain config and use that ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

originally fixed in fd74b19 and kinks mostly worked out in f1be763

tbro added 6 commits July 17, 2024 15:07
`BidTx` as a varian of `FullNetworkTx`. Includes some tests.

Closes #1633
  * move NodeState and ValidatedState to `impl`
  * wrap `bid_reciepient` in an `Option`
  * Implement from `v0_1::ResolvableChainConfig` for `v0_3::ResolvableChainConfig`
chain_config: Either::Left(ChainConfig::from(chain_config)),
},
// TODO does this work? is there a better way?
Either::Right(c) => ResolvableChainConfig {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think @jbearer ?

tbro added a commit that referenced this pull request Jul 25, 2024
Most changes are being brought in from #1696. Also includes changes
from #1781. Most compile errors are fixed. Depends on
`hotshot-query-service` pointing to the same hotshot tab (see
Cargo.tmol patch).
tbro added a commit that referenced this pull request Jul 26, 2024
Most changes are being brought in from #1696. Also includes changes
from #1781. Most compile errors are fixed. Depends on
`hotshot-query-service` pointing to the same hotshot tab (see
Cargo.tmol patch).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants