Skip to content

OilerNetwork/fossil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP of Fossil to Cairo 1

References

The repo structure and files organisation will be reviewed once all the components will be implemented

Testing

  1. Start Anvil in a new terminal with the command anvil.

  2. Install dependencies: requires katana 0.7.0-alpha.4

    cd ethereum
    forge install
  3. Build the project and set up environment variables:

    cd starknet
    scarb build
    source katana/katana.env
  4. I a New Terminal Start the Katana StarkNet node:

    katana --messaging anvil.messaging.json --disable-fee 
  5. In a New Terminal Declare the Cairo contracts:

    cd starknet
    katana/declare.sh
  6. Deploy the Cairo contracts:

    katana/deploy.sh
  7. Initialize the deployed contracts:

    source katana/initialize_contracts.sh 
  8. Set up local Ethereum testing:

    cd ../ethereum
    cp anvil.env .env
    source .env
    forge script script/LocalTesting.s.sol:LocalSetup --broadcast --rpc-url ${ETH_RPC_URL} 
  9. Send a message:

forge script script/SendMessage.s.sol:Value --broadcast --rpc-url ${ETH_RPC_URL}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages