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 skip-lint = false
[programs.localnet] [programs.localnet]
solisting = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU"
descro = "DjVR4EuYV6USMJFfsGZwhZ3y8rtWsmG8EvDY96GTqqi3" descro = "DjVR4EuYV6USMJFfsGZwhZ3y8rtWsmG8EvDY96GTqqi3"
descro_ext_resolvers = "GwUPAKs3HHzCpj8uhet4NAnxk9GWNwfrYbpihu5DyFp" descro_ext_resolvers = "GwUPAKs3HHzCpj8uhet4NAnxk9GWNwfrYbpihu5DyFp"
solisting = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ"
[provider] [provider]
cluster = "localnet" cluster = "localnet"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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