Skip to content

Commit

Permalink
Add actual
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Nov 10, 2023
1 parent 65629fb commit 4162efa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions staking/app/deploy/3_create_governance.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
PROGRAM_VERSION_V2,
withCreateGovernance,
GovernanceConfig,
VoteTipping,
VoteThreshold,
Expand All @@ -11,7 +9,7 @@ import {
import { Transaction, Connection, PublicKey } from "@solana/web3.js";
import { BN } from "bn.js";
import { Constants } from "pyth-staking-wasm";
import { AUTHORITY_KEYPAIR, RPC_NODE } from "./mainnet_beta";
import { AUTHORITY_KEYPAIR, RPC_NODE } from "./devnet";

import {
GOVERNANCE_ADDRESS,
Expand All @@ -24,6 +22,7 @@ import {
// devnet : 3gKKKPGAfV15yV1Ce6Tn9vmwbeRnMHcyrvDxDpPhHAEr6L8VAe4N3rkNizhLGa7cM19xQaJykt6rxjx651fFRqXM

async function main() {
console.log(AUTHORITY_KEYPAIR.publicKey.toBase58());
const tx = new Transaction();

let governanceConfig = new GovernanceConfig({
Expand Down Expand Up @@ -62,7 +61,7 @@ async function main() {
STAKING_ADDRESS, // Address of the staking program
governanceConfig, // Governance config
false, // Transfer upgrade authority
new PublicKey(0), // Program authority
AUTHORITY_KEYPAIR.publicKey, // Program authority
new PublicKey(0), // The realm authority is creating it, so this doesn't need to be defined
AUTHORITY_KEYPAIR.publicKey, // Payer address
AUTHORITY_KEYPAIR.publicKey // Realm authority
Expand Down

0 comments on commit 4162efa

Please sign in to comment.