fix: sync program ID to keypair (9uF64...)

This commit is contained in:
thesn10
2026-06-25 18:53:06 +02:00
parent 627e08b192
commit f30a0eb823
9 changed files with 10 additions and 10 deletions

View File

@@ -6,9 +6,9 @@ resolution = true
skip-lint = false
[programs.localnet]
solisting = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU"
descro = "DjVR4EuYV6USMJFfsGZwhZ3y8rtWsmG8EvDY96GTqqi3"
descro_ext_resolvers = "GwUPAKs3HHzCpj8uhet4NAnxk9GWNwfrYbpihu5DyFp"
solisting = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ"
[provider]
cluster = "localnet"

View File

@@ -11,7 +11,7 @@ pub use error::*;
pub use instructions::*;
pub use state::*;
declare_id!("DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU");
declare_id!("9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ");
#[program]
pub mod solisting {

View File

@@ -25,7 +25,7 @@ export async function findListingAccountPda(
config: { programAddress?: Address | undefined } = {},
): Promise<ProgramDerivedAddress> {
const {
programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">,
programAddress = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ" as Address<"9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ">,
} = config;
return await getProgramDerivedAddress({
programAddress,

View File

@@ -26,7 +26,7 @@ export async function findOrderAccountPda(
config: { programAddress?: Address | undefined } = {},
): Promise<ProgramDerivedAddress> {
const {
programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">,
programAddress = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ" as Address<"9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ">,
} = config;
return await getProgramDerivedAddress({
programAddress,

View File

@@ -82,7 +82,7 @@ import {
import { findListingAccountPda, findOrderAccountPda } from "../pdas";
export const SOLISTING_PROGRAM_ADDRESS =
"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">;
"9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ" as Address<"9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ">;
export enum SolistingAccount {
SolistingStateListingAccount,
@@ -243,7 +243,7 @@ export function identifySolistingInstruction(
}
export type ParsedSolistingInstruction<
TProgram extends string = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU",
TProgram extends string = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ",
> =
| ({
instructionType: SolistingInstruction.Initialize;

View File

@@ -1,5 +1,5 @@
{
"address": "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU",
"address": "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ",
"metadata": {
"name": "solisting",
"version": "0.1.0",

View File

@@ -9,7 +9,7 @@ import {
type SolistingStateListingAccount,
} from './generated/solisting/src/generated/index'
const PROGRAM_ADDRESS = address('DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU')
const PROGRAM_ADDRESS = address('9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ')
export type ListingAccountWithPda = Account<SolistingStateListingAccount>
export type GpaRpc = Rpc<GetProgramAccountsApi>

View File

@@ -10,7 +10,7 @@ import {
} from './generated/solisting/src/generated/index'
import { deriveEscrowId } from './pda'
const PROGRAM_ADDRESS = address('DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU')
const PROGRAM_ADDRESS = address('9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ')
export type OrderAccountWithPda = Account<SolistingStateOrderAccount>
type GpaRpc = Rpc<GetProgramAccountsApi>

View File

@@ -1,7 +1,7 @@
import { address, getAddressEncoder, type Address, type ProgramDerivedAddress } from '@solana/kit'
import { findListingAccountPda, findOrderAccountPda } from './generated/solisting/src/generated/index'
const PROGRAM_ADDRESS = address('DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU')
const PROGRAM_ADDRESS = address('9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ')
export async function findListingPda(
seller: Address,