@redstone-finance/solana-connector
v0.9.0
Published
A tool to inject RedStone data into Solana compatible smart contracts
Readme
solana-connector
Deploying and testing
Requirements
Before use, you will need:
- rust
- solana-cli
- anchor-cli
- node
Tools versions
- anchor-cli 0.30.1
- solana-cli 2.1.4 (src:024d047e; feat:288566304, client:Agave)
- npm 10.9.0
- node v18.20.5
All installation steps are described here
Build and run contract tests
cd solana
make build
make lint
make testRun deployment
Fill envs in file .env. See .env.example for reference.
NETWORK=localnet yarn sample-deploy
NETWORK=localnet yarn sample-runUpgrading program
- Create buffer with new program-data
- Transfer ownership of buffer to multisig
- Upgrade program to use the new buffer
solana program write-buffer <PROGRAM_FILEPATH>
# > Buffer: BUFFER_ADDRESS
solana account <BUFFER_ADDRESS> # shows data of the new buffer account
solana program set-buffer-authority <BUFFER_ADDRESS> --new-buffer-authority <NEW_BUFFER_AUTHORITY> # NEW_BUFFER_AUTHORITY = Multisig Vault Pda
yarn gov-as-multi-sig # multi sig upgrade procedure