Skip to content

Commit

Permalink
Update to latest set of program_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Feb 22, 2022
1 parent 0cfea04 commit 763d5af
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions contracts/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ test = "yarn run test"
# TODO: add pubkeys

[programs.localnet]
ocr2 = "HW3ipKzeeduJq6f1NqRCw4doknMeWkfrM4WxobtG3o5v"
store = "CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT"
access_controller = "DzzjdPWNfwHZmzPVxnmqkkMJraYQQRCpgFZajqkqmU6G"
ocr2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ"
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
2 changes: 1 addition & 1 deletion contracts/crates/chainlink-solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use solana_program::{
};

// The library uses this to verify the keys
solana_program::declare_id!("CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT");
solana_program::declare_id!("HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny");

#[derive(BorshSerialize, BorshDeserialize)]
enum Query {
Expand Down
2 changes: 1 addition & 1 deletion contracts/examples/hello-world/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

# TODO: clone from devnet once available
[[test.genesis]]
address = "CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT"
address = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
program = "../../target/deploy/store.so"
2 changes: 1 addition & 1 deletion contracts/examples/hello-world/client.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const anchor = require("@project-serum/anchor");

// devnet IDs
const CHAINLINK_PROGRAM_ID = "CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT";
const CHAINLINK_PROGRAM_ID = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny";
// USDT/USD
const CHAINLINK_FEED = "CwBg8pxL73LvuJ781cWBGF1e64G2z7AbZ22J2g8Lp35a";

Expand Down
2 changes: 1 addition & 1 deletion contracts/examples/hello-world/tests/hello-world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fs from 'fs';
import { Program, BN } from '@project-serum/anchor';
import { HelloWorld } from '../target/types/hello_world';

const CHAINLINK_PROGRAM_ID = "CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT";
const CHAINLINK_PROGRAM_ID = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny";

describe('hello-world', () => {
const provider = anchor.Provider.env();
Expand Down
2 changes: 1 addition & 1 deletion contracts/programs/access-controller/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::mem;

use arrayvec::arrayvec;

declare_id!("DzzjdPWNfwHZmzPVxnmqkkMJraYQQRCpgFZajqkqmU6G");
declare_id!("9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW");

#[constant]
pub const MAX_ADDRS: usize = 64;
Expand Down
2 changes: 1 addition & 1 deletion contracts/programs/ocr2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anchor_spl::token;
use arrayref::{array_ref, array_refs};
use state::{Billing, Proposal, ProposedOracle};

declare_id!("HW3ipKzeeduJq6f1NqRCw4doknMeWkfrM4WxobtG3o5v");
declare_id!("cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ");

mod context;
pub mod event;
Expand Down
2 changes: 1 addition & 1 deletion contracts/programs/store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod state;
use crate::state::with_store;
pub use crate::state::{NewTransmission, Store as State, Transmission, Transmissions};

declare_id!("CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT");
declare_id!("HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny");

static THRESHOLD_MULTIPLIER: u128 = 100000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@
}
],
"metadata": {
"address": "DzzjdPWNfwHZmzPVxnmqkkMJraYQQRCpgFZajqkqmU6G"
"address": "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,6 @@
}
],
"metadata": {
"address": "HW3ipKzeeduJq6f1NqRCw4doknMeWkfrM4WxobtG3o5v"
"address": "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ"
}
}
6 changes: 3 additions & 3 deletions scripts/programs-keys-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ mkdir -p ./contracts/target/deploy
cp ./contracts/artifacts/$network/*.json ./contracts/target/deploy

# Replace existing declare_id!()
sed -i.bak "s/DzzjdPWNfwHZmzPVxnmqkkMJraYQQRCpgFZajqkqmU6G/$ACCESS_CONTROLLER_PROGRAM_ID/" contracts/programs/access-controller/src/lib.rs
sed -i.bak "s/CaH12fwNTKJAG8PxEvo9R96Zc2j8qNHZaFj8ZW49yZNT/$STORE_PROGRAM_ID/" contracts/programs/store/src/lib.rs
sed -i.bak "s/HW3ipKzeeduJq6f1NqRCw4doknMeWkfrM4WxobtG3o5v/$OCR2_PROGRAM_ID/" contracts/programs/ocr2/src/lib.rs
sed -i.bak "s/9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW/$ACCESS_CONTROLLER_PROGRAM_ID/" contracts/programs/access-controller/src/lib.rs
sed -i.bak "s/HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny/$STORE_PROGRAM_ID/" contracts/programs/store/src/lib.rs
sed -i.bak "s/cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ/$OCR2_PROGRAM_ID/" contracts/programs/ocr2/src/lib.rs

0 comments on commit 763d5af

Please sign in to comment.