Skip to content

Commit 017bdc3

Browse files
feat(solana): auto deploy programs
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
1 parent 4fd8d9a commit 017bdc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

framework/components/blockchain/blockchain.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type Input struct {
2323
ContractsDir string `toml:"contracts_dir"`
2424
// programs to deploy on solana-test-validator start
2525
// a map of program name to program id
26+
// there needs to be a matching .so file in contracts_dir
2627
SolanaPrograms map[string]string `toml:"solana_programs"`
2728
}
2829

0 commit comments

Comments
 (0)