small fixes
This commit is contained in:
@@ -24,7 +24,9 @@ export async function findListingAccountPda(
|
||||
seeds: ListingAccountSeeds,
|
||||
config: { programAddress?: Address | undefined } = {},
|
||||
): Promise<ProgramDerivedAddress> {
|
||||
const { programAddress = "" as Address<""> } = config;
|
||||
const {
|
||||
programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">,
|
||||
} = config;
|
||||
return await getProgramDerivedAddress({
|
||||
programAddress,
|
||||
seeds: [
|
||||
|
||||
@@ -25,7 +25,9 @@ export async function findOrderAccountPda(
|
||||
seeds: OrderAccountSeeds,
|
||||
config: { programAddress?: Address | undefined } = {},
|
||||
): Promise<ProgramDerivedAddress> {
|
||||
const { programAddress = "" as Address<""> } = config;
|
||||
const {
|
||||
programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">,
|
||||
} = config;
|
||||
return await getProgramDerivedAddress({
|
||||
programAddress,
|
||||
seeds: [
|
||||
|
||||
@@ -81,7 +81,8 @@ import {
|
||||
} from "../instructions";
|
||||
import { findListingAccountPda, findOrderAccountPda } from "../pdas";
|
||||
|
||||
export const SOLISTING_PROGRAM_ADDRESS = "" as Address<"">;
|
||||
export const SOLISTING_PROGRAM_ADDRESS =
|
||||
"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">;
|
||||
|
||||
export enum SolistingAccount {
|
||||
SolistingStateListingAccount,
|
||||
@@ -241,7 +242,9 @@ export function identifySolistingInstruction(
|
||||
);
|
||||
}
|
||||
|
||||
export type ParsedSolistingInstruction<TProgram extends string = ""> =
|
||||
export type ParsedSolistingInstruction<
|
||||
TProgram extends string = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU",
|
||||
> =
|
||||
| ({
|
||||
instructionType: SolistingInstruction.Initialize;
|
||||
} & ParsedInitializeInstruction<TProgram>)
|
||||
|
||||
Reference in New Issue
Block a user