Skip to content
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

[solana] Scripts to update parameters and vesting tests #253

Merged
merged 16 commits into from
Mar 6, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update Program ID
zpoken committed Feb 11, 2025
commit a5c31115cf4d607b400b46364449961a3cb84420
4 changes: 2 additions & 2 deletions solana/Anchor.toml
Original file line number Diff line number Diff line change
@@ -7,10 +7,10 @@ seeds = true
members = ["programs/staking"]

[programs.localnet]
staking = "DgCSKsLDXXufYeEkvf21YSX5DMnFK89xans5WdSsUbeY"
staking = "AFuHPdrQGsW8rNQ4oEFF35sm5fg36gwrxyqjkjKvi6ap"

[programs.devnet]
staking = "DgCSKsLDXXufYeEkvf21YSX5DMnFK89xans5WdSsUbeY"
staking = "AFuHPdrQGsW8rNQ4oEFF35sm5fg36gwrxyqjkjKvi6ap"
external_program = "eLUV8cwhgUC2Bcu4UA16uhuMwK8zPkx3XSzt4hd3JJ3"

[registry]
2 changes: 1 addition & 1 deletion solana/app/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PublicKey } from "@solana/web3.js";

export const STAKING_ADDRESS = new PublicKey(
"DgCSKsLDXXufYeEkvf21YSX5DMnFK89xans5WdSsUbeY",
"AFuHPdrQGsW8rNQ4oEFF35sm5fg36gwrxyqjkjKvi6ap",
);

export const CORE_BRIDGE_ADDRESS = new PublicKey(
2 changes: 1 addition & 1 deletion solana/app/deploy/051_tx_list.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { getProgramTransactions } from "../utils/parse_transactions";

async function main() {
const connection = new Connection(RPC_NODE, "confirmed");
const programId = "DgCSKsLDXXufYeEkvf21YSX5DMnFK89xans5WdSsUbeY";
const programId = "AFuHPdrQGsW8rNQ4oEFF35sm5fg36gwrxyqjkjKvi6ap";
const limit = 15;

getProgramTransactions(connection, programId, limit)
2 changes: 1 addition & 1 deletion solana/app/deploy/052_tx_events.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ async function main() {
// const transactionSignature = '3er1rCAdfVkKjmyURX4HJJxqFsY4EjnCdyC3M4NCqMb4RErKh7USgacYQAsb42W6Syf9Dx1hn4kk3wzSPQrcGpsw';
// await printTransactionEvents(connection, transactionSignature);

const programId = "DgCSKsLDXXufYeEkvf21YSX5DMnFK89xans5WdSsUbeY";
const programId = "AFuHPdrQGsW8rNQ4oEFF35sm5fg36gwrxyqjkjKvi6ap";
const limit = 3;

try {
2 changes: 1 addition & 1 deletion solana/app/deploy/053_tx_details.ts
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ import {

async function main() {
const connection = new Connection(RPC_NODE, "confirmed");
const programId = "DgCSKsLDXXufYeEkvf21YSX5DMnFK89xans5WdSsUbeY";
const programId = "AFuHPdrQGsW8rNQ4oEFF35sm5fg36gwrxyqjkjKvi6ap";
const limit = 2;

try {
2 changes: 1 addition & 1 deletion solana/programs/staking/src/lib.rs
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ pub struct ProposalCreated {
pub vote_start: u64,
}

declare_id!("DgCSKsLDXXufYeEkvf21YSX5DMnFK89xans5WdSsUbeY");
declare_id!("AFuHPdrQGsW8rNQ4oEFF35sm5fg36gwrxyqjkjKvi6ap");
#[program]
pub mod staking {
/// Creates a global config for the program