Skip to content

Commit c5fd66e

Browse files
committed
remove sdk utils
1 parent 441e552 commit c5fd66e

File tree

3 files changed

+5
-285
lines changed

3 files changed

+5
-285
lines changed

solana/ts/lib/ntt.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import { Ntt } from "@wormhole-foundation/sdk-definitions-ntt";
3131
import { getAssociatedTokenAddressSync } from "@solana/spl-token";
3232
import { SolanaTransaction } from "@wormhole-foundation/sdk-solana";
3333
import { utils } from "@wormhole-foundation/sdk-solana-core";
34-
import { programVersionLayout } from "../sdk/utils.js";
3534
import {
3635
IdlVersion,
3736
IdlVersions,
@@ -43,6 +42,7 @@ import {
4342
chainToBytes,
4443
derivePda,
4544
programDataAddress,
45+
programVersionLayout,
4646
} from "./utils.js";
4747

4848
export namespace NTT {

solana/ts/lib/utils.ts

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export const programDataLayout = [
4747
],
4848
},
4949
] as const satisfies Layout;
50+
export const programVersionLayout = [
51+
{ name: "length", binary: "uint", endianness: "little", size: 4 },
52+
{ name: "version", binary: "bytes" },
53+
] as const satisfies Layout;
5054

5155
export const U64 = {
5256
MAX: new BN((2n ** 64n - 1n).toString()),

solana/ts/sdk/utils.ts

-284
This file was deleted.

0 commit comments

Comments
 (0)