benduran fd43201cb5 feat!: migrated everything using ts-node to tsx há 1 mês atrás
..
programs 2ebad378c9 feat(lazer-protocol): Add nasdaq_symbol to SymbolMetadata há 1 mês atrás
scripts fd43201cb5 feat!: migrated everything using ts-node to tsx há 1 mês atrás
tests 9c49daf3d5 feat(lazer): add fees to solana contract (#2146) há 11 meses atrás
.gitignore 6ab44570b2 feat: add lazer contracts and sdks (#2119) há 1 ano atrás
.prettierignore 6ab44570b2 feat: add lazer contracts and sdks (#2119) há 1 ano atrás
Anchor.toml 6ab44570b2 feat: add lazer contracts and sdks (#2119) há 1 ano atrás
Cargo.lock d877bed503 chore(api-reference) Revert back cargo.lock changes há 1 mês atrás
Cargo.toml f25035afe6 feat(lazer): upgrade solana contract to anchor 0.31 (#2926) há 3 meses atrás
README.md c2e05d0526 chore(lazer): update governance scripts to make them work (#2261) há 10 meses atrás
package.json fd43201cb5 feat!: migrated everything using ts-node to tsx há 1 mês atrás
tsconfig.json 65cef165ef feat(lazer/contracts/solana): add setup script (#2125) há 1 ano atrás
turbo.json 8a05757929 chore: update turbo config há 8 meses atrás

README.md

Pyth Lazer Solana Receiver

Verifiable Build

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.

Setting up the Pyth Lazer Solana Receiver

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>