Skip to content

Commit

Permalink
feat(solana): auto deploy programs
Browse files Browse the repository at this point in the history
By using `--upgradeable-program` , we can auto deploy programs detected in the mounted path `/programs`, this reduces the need for consumer of this library to have to deploy the programs themselves, especially with go sdk where deploying a program is not straightforward and involves a decent amount of code, the alternative is to ssh into the docker container and run `solana deploy ...` but this involves an extra step.

Inspired from https://github.com/smartcontractkit/chainlink-ccip/blob/609f7b0c9734b3cfc1d1a1aea0fd1ddf4c90bd0c/chains/solana/contracts/tests/testutils/anchor.go#L72-L72

JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1458
  • Loading branch information
graham-chainlink committed Dec 30, 2024
1 parent 4fd8d9a commit 017bdc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/components/blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type Input struct {
ContractsDir string `toml:"contracts_dir"`
// programs to deploy on solana-test-validator start
// a map of program name to program id
// there needs to be a matching .so file in contracts_dir
SolanaPrograms map[string]string `toml:"solana_programs"`
}

Expand Down

0 comments on commit 017bdc3

Please sign in to comment.