Skip to content

solana-threshold-signature-program

Build program

anchor build --skip-lint

Test

RESTAKING_PROGRAM_ID=RestkWeAVL8fRGgzhfeoqFhsqKRchg6aa1XrcH96z4Q VAULT_PROGRAM_ID=Vau1t6sLNxnzB7ZDsef8TLbPLfyZMYXH8WTNqUdm9g8 cargo test --package poa-integration-tests

Run oracle test:

RESTAKING_PROGRAM_ID=RestkWeAVL8fRGgzhfeoqFhsqKRchg6aa1XrcH96z4Q VAULT_PROGRAM_ID=Vau1t6sLNxnzB7ZDsef8TLbPLfyZMYXH8WTNqUdm9g8 cargo test --package poa-integration-tests --tests test_oracle_proposal

Build client

export ANCHOR_IDL_BUILD_PROGRAM_PATH="<PATH_TO_PROJECT>/programs/solana-threshold-signature-program"
export ANCHOR_IDL_BUILD_SKIP_LINT=TRUE
export RESTAKING_PROGRAM_ID=RestkWeAVL8fRGgzhfeoqFhsqKRchg6aa1XrcH96z4Q 
export VAULT_PROGRAM_ID=Vau1t6sLNxnzB7ZDsef8TLbPLfyZMYXH8WTNqUdm9g8

cargo b 

Run examples

Initialize poa with jito restaking

ANCHOR_IDL_BUILD_SKIP_LINT=TRUE RESTAKING_PROGRAM_ID=RestkWeAVL8fRGgzhfeoqFhsqKRchg6aa1XrcH96z4Q VAULT_PROGRAM_ID=Vau1t6sLNxnzB7ZDsef8TLbPLfyZMYXH8WTNqUdm9g8 cargo run --package jito --example init_poa_with_jito

This example write all initialized program keys to app.json file

Run handling local time proposal with oracle program

ANCHOR_IDL_BUILD_SKIP_LINT=TRUE RESTAKING_PROGRAM_ID=RestkWeAVL8fRGgzhfeoqFhsqKRchg6aa1XrcH96z4Q VAULT_PROGRAM_ID=Vau1t6sLNxnzB7ZDsef8TLbPLfyZMYXH8WTNqUdm9g8 cargo run --package jito --example handle_proposal