|
|
10 tháng trước cách đây | |
|---|---|---|
| .. | ||
| programs | 48690eccf9 feat(pyth-lazer-protocol): remove TMP_EXPONENT (#2221) | 10 tháng trước cách đây |
| scripts | e399a0325f feat(lazer): add solana contract migration script, add message parsing to protocol (#2181) | 11 tháng trước cách đây |
| tests | 9c49daf3d5 feat(lazer): add fees to solana contract (#2146) | 11 tháng trước cách đây |
| .gitignore | 6ab44570b2 feat: add lazer contracts and sdks (#2119) | 1 năm trước cách đây |
| .prettierignore | 6ab44570b2 feat: add lazer contracts and sdks (#2119) | 1 năm trước cách đây |
| Anchor.toml | 6ab44570b2 feat: add lazer contracts and sdks (#2119) | 1 năm trước cách đây |
| README.md | 65cef165ef feat(lazer/contracts/solana): add setup script (#2125) | 1 năm trước cách đây |
| package.json | e399a0325f feat(lazer): add solana contract migration script, add message parsing to protocol (#2181) | 11 tháng trước cách đây |
| tsconfig.json | 65cef165ef feat(lazer/contracts/solana): add setup script (#2125) | 1 năm trước cách đây |
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:
solana-verify build -- --features solana-program
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>