|
|
8 сар өмнө | |
|---|---|---|
| .. | ||
| sources | c9964d9c90 feat: init Lazer Aptos contract (#2381) | 8 сар өмнө |
| tests | 761fd6c9ba fix: add coin conversion map to tests (#2470) | 8 сар өмнө |
| Move.toml | 761fd6c9ba fix: add coin conversion map to tests (#2470) | 8 сар өмнө |
| README.md | c9964d9c90 feat: init Lazer Aptos contract (#2381) | 8 сар өмнө |
This package is built using the Move language and Aptos framework.
PythLazer is an Aptos contract that allows consumers to easily verify Pyth Lazer updates for use on-chain.
Install Aptos CLI and set it up:
brew install aptos
aptos --version
aptos init --network devnet
Compile the contract and run tests:
aptos move compile
aptos move test
Deploy to the network configured in your aptos profile:
aptos move publish
Invoke deployed contract functions on-chain:
aptos move run --function-id 'default::pyth_lazer::update_trusted_signer' --args 'hex:0x8731685005cfb169b4da4bbfab0c91c5ba59508bbd6d26990ee2be7225cb34d1' 'u64:9999999999'
The contract uses the following error codes: