← Back to home

CCIP Flip-A-Coin

This is a simple game to demonstrate chainlink CCIP, the idea is to use a Contract which is deployed on Chain A to interact with another contract deployed on Chain B

Screenshots

CCIP Flip-A-Coin screenshot 1
CCIP Flip-A-Coin screenshot 2
CCIP Flip-A-Coin screenshot 3
CCIP Flip-A-Coin screenshot 4
CCIP Flip-A-Coin screenshot 5
CCIP Flip-A-Coin screenshot 6

Problem Statement

This is a simple game to demonstrate chainlink CCIP, the idea is to use a Contract which is deployed on Chain A to interact with another contract deployed on Chain Bhere, we can chose to interact with dapp on either Ethereum Sepolia or Base sepoliaif we interact with contract on base sepolia ,it propagates the data cross chain to do randomness calculation & state changes on contract on ethereum sepolia

Solution

It is a simple game to demonstrate Chainlink CCIP It also uses thirdweb for in-app wallet for social login Blockscout is used as explorer & for contract verifications There are multiple subgraphs deployed on Goldsky Contracts are deployed on Base sepolia & Ethereum sepoliaBase sepolia contains contract called CrossChainFlipACoinSender which is responsible for sending message to Ethereum sepoliaCrossChainFlipACoinReceiver contract deployed on Ethereum sepolia will listen to this message and do randomness calculation and state changes

Hackathon

Superhack 2024

2024

Prizes

  • 🏆

    Use Blockscout Block Explorer!

    Blockscout

Contributors