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

chore: update cbtc example #36

Merged
merged 7 commits into from
Mar 18, 2024
Merged

chore: update cbtc example #36

merged 7 commits into from
Mar 18, 2024

Conversation

lgalabru
Copy link
Contributor

@lgalabru lgalabru commented Feb 19, 2024

This PR is highlighting how to use pyth locally.
When running the clarinet REPL with the following command, loading the default simnet deployment plan:

$ cd example/cbtc
$ clarinet console -d

and evaluating the following expression:

>> (contract-call? 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-governance-v1 get-current-execution-plan)

developers should observe the following versions:

{ 
    pyth-decoder-contract: 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-pnau-decoder-v1, 
    pyth-oracle-contract: 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-oracle-v2, 
    pyth-storage-contract: 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.pyth-store-v1, 
    wormhole-core-contract: 'ST2T5JKWWP3FYYX4YRK8GK5BG2YCNGEAEY1JKX06E.wormhole-core-v2
}

@Patotking12
Copy link

Hey @lgalabru I see you changed everything to testnet, I've been trying to use it on mainnet , but haven't been able to do so... i always get an error

@lgalabru lgalabru marked this pull request as ready for review March 18, 2024 14:50
@lgalabru
Copy link
Contributor Author

@ali-bahjati I'll go ahead and merge this branch, none of these changes are impacting the contracts, we've simply updated the cbtc-example, now outlining how developers can locally build on top of Pyth, and how these integrations can be unit tested.

@lgalabru lgalabru merged commit 2c56988 into main Mar 18, 2024
2 checks passed
@lgalabru lgalabru deleted the chore/update-example branch March 18, 2024 15:27
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.

3 participants