diff --git a/Anchor.toml b/Anchor.toml index bfbed5b..f25b88f 100644 --- a/Anchor.toml +++ b/Anchor.toml @@ -6,9 +6,9 @@ resolution = true skip-lint = false [programs.localnet] -solisting = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" descro = "DjVR4EuYV6USMJFfsGZwhZ3y8rtWsmG8EvDY96GTqqi3" descro_ext_resolvers = "GwUPAKs3HHzCpj8uhet4NAnxk9GWNwfrYbpihu5DyFp" +solisting = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ" [provider] cluster = "localnet" diff --git a/programs/solisting/src/lib.rs b/programs/solisting/src/lib.rs index 088c02c..11195c4 100644 --- a/programs/solisting/src/lib.rs +++ b/programs/solisting/src/lib.rs @@ -11,7 +11,7 @@ pub use error::*; pub use instructions::*; pub use state::*; -declare_id!("DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU"); +declare_id!("9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ"); #[program] pub mod solisting { diff --git a/sdk/src/generated/solisting/src/generated/pdas/listingAccount.ts b/sdk/src/generated/solisting/src/generated/pdas/listingAccount.ts index 53f1018..570afc3 100644 --- a/sdk/src/generated/solisting/src/generated/pdas/listingAccount.ts +++ b/sdk/src/generated/solisting/src/generated/pdas/listingAccount.ts @@ -25,7 +25,7 @@ export async function findListingAccountPda( config: { programAddress?: Address | undefined } = {}, ): Promise { const { - programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">, + programAddress = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ" as Address<"9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ">, } = config; return await getProgramDerivedAddress({ programAddress, diff --git a/sdk/src/generated/solisting/src/generated/pdas/orderAccount.ts b/sdk/src/generated/solisting/src/generated/pdas/orderAccount.ts index 8364021..38c9989 100644 --- a/sdk/src/generated/solisting/src/generated/pdas/orderAccount.ts +++ b/sdk/src/generated/solisting/src/generated/pdas/orderAccount.ts @@ -26,7 +26,7 @@ export async function findOrderAccountPda( config: { programAddress?: Address | undefined } = {}, ): Promise { const { - programAddress = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU" as Address<"DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU">, + programAddress = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ" as Address<"9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ">, } = config; return await getProgramDerivedAddress({ programAddress, diff --git a/sdk/src/generated/solisting/src/generated/programs/solisting.ts b/sdk/src/generated/solisting/src/generated/programs/solisting.ts index b89e269..e14175f 100644 --- a/sdk/src/generated/solisting/src/generated/programs/solisting.ts +++ b/sdk/src/generated/solisting/src/generated/programs/solisting.ts @@ -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; diff --git a/sdk/src/idl/solisting.json b/sdk/src/idl/solisting.json index bedd9a7..ba23326 100644 --- a/sdk/src/idl/solisting.json +++ b/sdk/src/idl/solisting.json @@ -1,5 +1,5 @@ { - "address": "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU", + "address": "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ", "metadata": { "name": "solisting", "version": "0.1.0", diff --git a/sdk/src/listing.ts b/sdk/src/listing.ts index 5d78364..bce7f7d 100644 --- a/sdk/src/listing.ts +++ b/sdk/src/listing.ts @@ -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 export type GpaRpc = Rpc diff --git a/sdk/src/order.ts b/sdk/src/order.ts index ba7ff7f..03d0c14 100644 --- a/sdk/src/order.ts +++ b/sdk/src/order.ts @@ -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 type GpaRpc = Rpc diff --git a/sdk/src/pda.ts b/sdk/src/pda.ts index 2eba912..ab1acca 100644 --- a/sdk/src/pda.ts +++ b/sdk/src/pda.ts @@ -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,