Skip to content

Commit dd1828f

Browse files
committed
fix: solana verification instructions
Signed-off-by: Reinis Martinsons <[email protected]>
1 parent 1adc5e1 commit dd1828f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,47 @@ anchor run squadsIdlUpgrade -- \
206206
--closeRecipient $(solana address --keypair $KEYPAIR)
207207
```
208208

209+
#### Verify
210+
211+
Start with verifying locally that the deployed program matches the source code of the public repository:
212+
213+
```shell
214+
solana-verify verify-from-repo \
215+
--url $RPC_URL \
216+
--program-id $PROGRAM_ID \
217+
--library-name $PROGRAM \
218+
https://github.com/across-protocol/contracts
219+
solana-verify verify-from-repo \
220+
--url $RPC_URL \
221+
--keypair $KEYPAIR \
222+
--commit-hash 1adc5e132818b523e2b7850afef96ad5ea1712e8 \
223+
--program-id $PROGRAM_ID \
224+
--library-name $PROGRAM \
225+
https://github.com/across-protocol/contracts
226+
```
227+
228+
When prompted, don't yet upload the verification data to the blockchain as that should be done by the multisig. Proceed with creating the upload transaction and then import and sign/execute it in the Squads multisig:
229+
230+
```shell
231+
solana-verify export-pda-tx \
232+
--url $RPC_URL \
233+
--program-id $PROGRAM_ID \
234+
--library-name $PROGRAM \
235+
--uploader $MULTISIG \
236+
https://github.com/across-protocol/contracts
237+
```
238+
239+
Note that the initial upload transaction might fail if the multisig vault does not have enough SOL for PDA creation. In that case, transfer the required funds to the multisig vault before executing the upload transaction.
240+
241+
Finally, submit the verification to OtterSec API (only works on mainnet):
242+
243+
```shell
244+
solana-verify remote submit-job \
245+
--url $RPC_URL \
246+
--program-id $PROGRAM_ID \
247+
--uploader $MULTISIG
248+
```
249+
209250
## Miscellaneous topics
210251

211252
### Manually Finalizing Scroll Claims from L2 -> L1 (Mainnet | Sepolia)

0 commit comments

Comments
 (0)