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

🤟 Migrate Information component #8

Merged
merged 9 commits into from
Apr 15, 2024
Merged

Conversation

b-tarczynski
Copy link
Collaborator

@b-tarczynski b-tarczynski commented Apr 12, 2024


@b-tarczynski b-tarczynski requested a review from p-sad April 12, 2024 09:52
Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for devcon-raffle failed.

Name Link
🔨 Latest commit 4bb4fc9
🔍 Latest deploy log https://app.netlify.com/sites/devcon-raffle/deploys/661905098cdc6d000821b1a9

@b-tarczynski b-tarczynski force-pushed the bartek/next-information branch from a604738 to 4bb4fc9 Compare April 12, 2024 09:55
Comment on lines +31 to +50
if (state === ContractState.AWAITING_BIDDING) {
return 'AwaitingBidding'
}

if (state === ContractState.BIDDING_OPEN) {
return getStateUsingWallet(address, chainId, 'BiddingFlow')
}

if (state === ContractState.BIDDING_CLOSED || state === ContractState.AUCTION_SETTLED) {
return 'AwaitingResults'
}

if (state === ContractState.RAFFLE_SETTLED) {
return getStateUsingWallet(address, chainId, 'ClaimingFlow')
}

if (state === ContractState.CLAIMING_CLOSED) {
return 'ClaimingClosed'
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could be a ContractState -> AuctionState map, let's do that later on

@b-tarczynski b-tarczynski merged commit 1b68408 into master Apr 15, 2024
0 of 4 checks passed
@b-tarczynski b-tarczynski deleted the bartek/next-information branch April 15, 2024 10:19
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