Pavel Strakhov 5f3188af2b feat(target_chains/starknet): pyth contract upgrade (#1592) 1 tahun lalu
..
deploy 9854a5de59 feat(target_chains/starknet): verify pyth governance vm (#1569) 1 tahun lalu
src 5f3188af2b feat(target_chains/starknet): pyth contract upgrade (#1592) 1 tahun lalu
tests 5f3188af2b feat(target_chains/starknet): pyth contract upgrade (#1592) 1 tahun lalu
.gitignore 6e62328528 test(target_chains/starknet): add wormhole contract tests 1 tahun lalu
.tool-versions b30604c5ba doc(target_chains/starknet): add local deployment script 1 tahun lalu
README.md 74f02c46ff hore(target_chains/starknet): automate test data generation (#1587) 1 tahun lalu
Scarb.lock 4e630edac0 feat(target_chains/starknet): fee collection (#1527) 1 tahun lalu
Scarb.toml 4e630edac0 feat(target_chains/starknet): fee collection (#1527) 1 tahun lalu

README.md

Pyth Starknet Contract

This directory contains the Pyth contract on Starknet.

Installation

  1. Install Scarb (the Cairo and Starknet development toolchain) by following the installation instructions.
  2. Install Starknet Foundry by following the installation instructions.

The .tool-versions file in this directory specifies the tool versions used by the contract.

Testing

Run snforge test in this directory to run the contract unit tests and integration tests.

The tests/data.cairo file contains input data that was generated with test_vaas tool. To regenerate it, run the following commands from the repository root (requires Rust installation):

cd target_chains/starknet/tools/test_vaas
cargo run --bin generate_test_data > ../../contracts/tests/data.cairo

Formatting

Run scarb fmt to automatically format the source code.

Local deployment

  1. Install Starkli (a cli tool for Starknet) by following the installation instructions.
  2. Install Katana (a local Starknet node) by following the installation instructions.
  3. Run the deploy/local_deploy setup script.