fix: sync program ID to keypair (9uF64...)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"address": "DzwUAbpRvqcbA8QsEkRbZeXG4TEho5782cMySodrUHBU",
|
"address": "9uF64swnFqo34oFJtv8Qx9JDyXXJz73eDFF4cKRBfQBZ",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "solisting",
|
"name": "solisting",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user