fix: sync program ID to keypair (9uF64...)
This commit is contained in:
@@ -6,9 +6,9 @@ resolution = true
|
||||
skip-lint = false
|
||||
|
||||
[programs.localnet]
|
||||
solisting = "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU"
|
||||
descro = "DjVR4EuYV6USMJFfsGZwhZ3y8rtWsmG8EvDY96GTqqi3"
|
||||
descro_ext_resolvers = "GwUPAKs3HHzCpj8uhet4NAnxk9GWNwfrYbpihu5DyFp"
|
||||
solisting = "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ"
|
||||
|
||||
[provider]
|
||||
cluster = "localnet"
|
||||
|
||||
@@ -11,7 +11,7 @@ pub use error::*;
|
||||
pub use instructions::*;
|
||||
pub use state::*;
|
||||
|
||||
declare_id!("DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU");
|
||||
declare_id!("9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ");
|
||||
|
||||
#[program]
|
||||
pub mod solisting {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"address": "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU",
|
||||
"address": "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ",
|
||||
"metadata": {
|
||||
"name": "solisting",
|
||||
"version": "0.1.0",
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user