You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example can be used as a separate module providing tools for sandbox testing: exports functions for deploying and configuring a local pyth contract
4
+
This example can be used as a standalone module that provides tools for sandbox testing by exporting functions for deploying and configuring a local Pyth contract.
6
5
7
-
It shows techniques how to use the pyth oracle in finacial applications.
8
-
The demonstration is fully sandboxed and doesn't need real on-chain contracts nor testnet neither mainnet.
9
-
Usage of hermes client is also not required: prices can be formed locally, e.g. **{TON: 3.12345, USDC: 0.998, USDT: 0.999}.**
6
+
It demonstrates techniques for using the Pyth oracle in financial applications.
7
+
8
+
The demonstration is fully sandboxed and does not require real on-chain contracts on either testnet or mainnet.
9
+
Using the Hermes client is also not required — prices can be generated locally, for example: **{TON: 3.12345, USDC: 0.998, USDT: 0.999}**.
10
+
11
+
This is achieved by using a patched Pyth contract that accepts simplified prices without a Merkle trie proof, and therefore does not verify the authenticity of the prices.
12
+
Important: This patched contract is intended for testing purposes only. The production version must use the authentic Pyth contract deployed on the mainnet.
10
13
11
14
## Project structure
12
15
@@ -20,7 +23,7 @@ First you need to install dependencies, node v22 is required, you can use nvm to
0 commit comments