Skip to content

fix(svm): update svm_spoke program id #1049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: oz-review-june-25
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ skip-lint = false

[programs.localnet]
multicall_handler = "Fk1RpqsfeWt8KnFCTW9NQVdVxYvxuqjGn6iPB9wrmM8h"
svm_spoke = "JAZWcGrpSWNPTBj8QtJ9UyQqhJCDhG9GJkDeMf5NQBiq"
svm_spoke = "4Jg83Lhggz2EdzSsDX2NVcEK56F25jJKK5btUbHAU4Xu"
test = "8tsEfDSiE4WUMf97oyyyasLAvWwjeRZb2GByh4w7HckA"

[programs.devnet]
multicall_handler = "Fk1RpqsfeWt8KnFCTW9NQVdVxYvxuqjGn6iPB9wrmM8h"
svm_spoke = "JAZWcGrpSWNPTBj8QtJ9UyQqhJCDhG9GJkDeMf5NQBiq"
svm_spoke = "4Jg83Lhggz2EdzSsDX2NVcEK56F25jJKK5btUbHAU4Xu"

[programs.mainnet]
multicall_handler = "Fk1RpqsfeWt8KnFCTW9NQVdVxYvxuqjGn6iPB9wrmM8h"
svm_spoke = "JAZWcGrpSWNPTBj8QtJ9UyQqhJCDhG9GJkDeMf5NQBiq"
svm_spoke = "4Jg83Lhggz2EdzSsDX2NVcEK56F25jJKK5btUbHAU4Xu"

[registry]
url = "https://api.apr.dev"
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export SVM_CHAIN_ID=$(cast to-dec $(cast shr $(cast shl $(cast keccak solana-dev
export HUB_POOL=0x14224e63716afAcE30C9a417E0542281869f7d9e # This is for sepolia, update for mainnet
export DEPOSIT_QUOTE_TIME_BUFFER=3600
export FILL_DEADLINE_BUFFER=21600
export MAX_LEN=$(( 2 * $(stat -c %s target/deploy/$PROGRAM.so) )) # Reserve twice the size of the program for future upgrades
```

#### Initial deployment
Expand All @@ -103,11 +104,14 @@ Deploy the program and set the upgrade authority to the multisig:

```shell
solana program deploy \
--url $RPC_URL target/deploy/$PROGRAM.so \
--url $RPC_URL \
--keypair $KEYPAIR \
--program-id target/deploy/$PROGRAM-keypair.json \
--max-len $MAX_LEN \
--with-compute-unit-price 50000 \
--max-sign-attempts 100
--max-sign-attempts 100 \
--use-rpc \
target/deploy/$PROGRAM.so
solana program set-upgrade-authority \
--url $RPC_URL \
--keypair $KEYPAIR \
Expand Down
8 changes: 4 additions & 4 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@
},
"133268194659241": {
"SvmSpoke": {
"address": "JAZWcGrpSWNPTBj8QtJ9UyQqhJCDhG9GJkDeMf5NQBiq",
"blockNumber": 356313770
"address": "4Jg83Lhggz2EdzSsDX2NVcEK56F25jJKK5btUbHAU4Xu",
"blockNumber": 388467389
},
"MulticallHandler": {
"address": "Fk1RpqsfeWt8KnFCTW9NQVdVxYvxuqjGn6iPB9wrmM8h",
Expand All @@ -226,8 +226,8 @@
},
"34268394551451": {
"SvmSpoke": {
"address": "JAZWcGrpSWNPTBj8QtJ9UyQqhJCDhG9GJkDeMf5NQBiq",
"blockNumber": 317101505
"address": "4Jg83Lhggz2EdzSsDX2NVcEK56F25jJKK5btUbHAU4Xu",
"blockNumber": 347611576
},
"MulticallHandler": {
"address": "Fk1RpqsfeWt8KnFCTW9NQVdVxYvxuqjGn6iPB9wrmM8h",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@across-protocol/contracts",
"version": "4.0.12",
"version": "4.0.14-alpha.1",
"author": "UMA Team",
"license": "AGPL-3.0-only",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion programs/svm-spoke/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ security_txt! {
auditors: "OpenZeppelin"
}

declare_id!("JAZWcGrpSWNPTBj8QtJ9UyQqhJCDhG9GJkDeMf5NQBiq");
declare_id!("4Jg83Lhggz2EdzSsDX2NVcEK56F25jJKK5btUbHAU4Xu");

// External programs from idls directory (requires anchor run generateExternalTypes).
declare_program!(message_transmitter);
Expand Down
Loading