|
|
1 هفته پیش | |
|---|---|---|
| .. | ||
| programs | f3f6da500c refactor(lazer): add exponent to AggregatedPriceFeedData (#3193) | 1 هفته پیش |
| scripts | 40aadd6983 feat(lazer): add utils for adding and checking ed25519 signers to solana contract (#2788) | 5 ماه پیش |
| tests | 9c49daf3d5 feat(lazer): add fees to solana contract (#2146) | 11 ماه پیش |
| .gitignore | ab0cf6f7d8 chore: updated gitignore to excluse the built dist/ folder | 3 هفته پیش |
| .prettierignore | 6efbe89542 chore: updated prettier ignores to prevent bikeshedding | 2 هفته پیش |
| Anchor.toml | 6ab44570b2 feat: add lazer contracts and sdks (#2119) | 1 سال پیش |
| Cargo.lock | d877bed503 chore(api-reference) Revert back cargo.lock changes | 1 ماه پیش |
| Cargo.toml | f25035afe6 feat(lazer): upgrade solana contract to anchor 0.31 (#2926) | 3 ماه پیش |
| README.md | c2e05d0526 chore(lazer): update governance scripts to make them work (#2261) | 10 ماه پیش |
| package.json | 1eeca8ea7d chore: responded to offline PR feedback | 2 هفته پیش |
| tsconfig.json | fe92275443 chore: migrated all package.json and tsconfig files to a single, modern standard | 3 هفته پیش |
| turbo.json | 8a05757929 chore: update turbo config | 8 ماه پیش |
To build the program in a verifiable way, use Solana Verify CLI. This tool builds the program in a docker container to ensure that the resulting binary is deterministic and verifiable. Run the following command to build the program in the lazer root directory:
solana-verify build --library-name pyth_lazer_solana_contract
Once the build is complete, the program binary will be located in the target/deploy directory.
Run the following command to deploy the Pyth Lazer Solana Receiver program:
solana -u <RPC_URL> program deploy target/deploy/pyth_lazer_solana_contract.so --program-id <PROGRAM_ID>
Once deployed, run the following Anchor script to setup the program. This script initializes the program if it is uninitialized and updates one trusted signer of the program.
pnpm run setup --url <RPC_URL> --keypair-path <PATH/TO/KEYPAIR> --trusted-signer <Pubkey> --expiry-time-seconds <UNIX_TIMESTAMP>