|
|
преди 3 месеца | |
|---|---|---|
| .. | ||
| programs | 788d5fb17c chore(pyth-lazer-client) Upgrade lazer protocol dependency (#2907) | преди 3 месеца |
| 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 | 6ab44570b2 feat: add lazer contracts and sdks (#2119) | преди 1 година |
| .prettierignore | 6ab44570b2 feat: add lazer contracts and sdks (#2119) | преди 1 година |
| Anchor.toml | 6ab44570b2 feat: add lazer contracts and sdks (#2119) | преди 1 година |
| Cargo.lock | cd2b055298 feat(lazer): create js solana sdk package (#2899) | преди 3 месеца |
| Cargo.toml | 71d6a89aea chore: Rust toolchain/CI update and workspace setup (#2830) | преди 4 месеца |
| README.md | c2e05d0526 chore(lazer): update governance scripts to make them work (#2261) | преди 10 месеца |
| package.json | 40aadd6983 feat(lazer): add utils for adding and checking ed25519 signers to solana contract (#2788) | преди 5 месеца |
| tsconfig.json | 65cef165ef feat(lazer/contracts/solana): add setup script (#2125) | преди 1 година |
| 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>