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: add docker for generating governance instructions #428

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kcsongor
Copy link
Contributor

Example usage:

  1. cd solana
  2. Save this file into solana/claimOwnership.ts
import { NTT } from "./ts/sdk";
import * as anchor from "@coral-xyz/anchor";
import { OWNER, serializeInstruction } from "./ts/sdk/utils";

(async () => {
    const connection = new anchor.web3.Connection("https://localhost")
    const ntt = new NTT(connection, {
        nttId: "INSERT_NTT_ADDRESS",
        wormholeId: "INSERT_WORMHOLE_ADDRESS",
    })
    const ix = await ntt.createClaimOwnershipInstruction({
        newOwner: OWNER
    })
    console.log(serializeInstruction(ix).toString("hex"))
})()
  1. docker build --target governance --tag governance .
  2. docker run -i --rm governance < claimOwnership.ts

@kcsongor kcsongor mentioned this pull request Apr 23, 2024
nik-suri
nik-suri previously approved these changes Apr 24, 2024
@kcsongor kcsongor force-pushed the solana/check-in-idl branch from bd495e2 to 9b81197 Compare April 26, 2024 15:28
Base automatically changed from solana/check-in-idl to main April 26, 2024 19:46
@kcsongor kcsongor dismissed nik-suri’s stale review April 26, 2024 19:46

The base branch was changed.

@kcsongor kcsongor force-pushed the solana/governance-generate branch from 184d807 to 7b974cc Compare April 30, 2024 18:59
@nik-suri nik-suri added solana Change to Solana programs sdk P2 labels May 8, 2024
@nik-suri nik-suri added P1 and removed P2 labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 sdk solana Change to Solana programs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants