From ca0ac014173bad9485460ef26b639211d7df29eb Mon Sep 17 00:00:00 2001 From: DR497 <47689875+dr497@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:51:04 +0800 Subject: [PATCH 1/3] js: change solscan address --- js/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/constants.ts b/js/src/constants.ts index 589e54fd..132e9ee2 100644 --- a/js/src/constants.ts +++ b/js/src/constants.ts @@ -79,7 +79,7 @@ export const REFERRERS: PublicKey[] = [ new PublicKey("DM1jJCkZZEwY5tmWbgvKRxsDFzXCdbfrYCCH1CtwguEs"), // 4Everland new PublicKey("ADCp4QXFajHrhy4f43pD6GJFtQLkdBY2mjS9DfCk7tNW"), // Bandit network new PublicKey("2XTgjw8yi1E3Etgj4CUyRD7Zk49gynH2U9gA5N2MY4NP"), // Altoscan - new PublicKey("5oDWj8vr3vbcq9JZTtwXqrkCMZggMsDzNietvbr1BNfe"), // Solscan + new PublicKey("5PwNeqQPiygQks9R17jUAodZQNuhvCqqkrxSaeNE8qTR"), // Solscan new PublicKey("8kJqxAbqbPLGLMgB6FhLcnw2SiUEavx2aEGM3WQGhtJF"), // Domain Labs new PublicKey("HemvJzwxvVpWBjPETpaseAH395WAxb2G73MeUfjVkK1u"), // Solflare new PublicKey("7hMiiUtkH4StMPJxyAtvzXTUjecTniQ8czkCPusf5eSW"), // Solnames From ace4cbb5ffdc6de26e83a128f7406aed77ed87d3 Mon Sep 17 00:00:00 2001 From: DR497 <47689875+dr497@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:51:19 +0800 Subject: [PATCH 2/3] js: add CNAME to guardians set --- js/src/record_v2/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/record_v2/index.ts b/js/src/record_v2/index.ts index e9fe2724..0ae91319 100644 --- a/js/src/record_v2/index.ts +++ b/js/src/record_v2/index.ts @@ -21,6 +21,7 @@ import { */ export const GUARDIANS = new Map([ [Record.Url, new PublicKey("ExXjtfdQe8JacoqP9Z535WzQKjF4CzW1TTRKRgpxvya3")], + [Record.CNAME, new PublicKey("ExXjtfdQe8JacoqP9Z535WzQKjF4CzW1TTRKRgpxvya3")], ]); /** From f672246c671e4bf471fec7ad41c94fab766cec86 Mon Sep 17 00:00:00 2001 From: DR497 <47689875+dr497@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:05:42 +0800 Subject: [PATCH 3/3] js: update vault owner --- js/src/bindings.ts | 2 +- js/src/constants.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/js/src/bindings.ts b/js/src/bindings.ts index 49b3a82c..dd7ce078 100644 --- a/js/src/bindings.ts +++ b/js/src/bindings.ts @@ -316,7 +316,7 @@ export const registerDomainName = async ( } } - const vault = getAssociatedTokenAddressSync(mint, VAULT_OWNER); + const vault = getAssociatedTokenAddressSync(mint, VAULT_OWNER, true); const pythFeed = PYTH_FEEDS.get(mint.toBase58()); if (!pythFeed) { diff --git a/js/src/constants.ts b/js/src/constants.ts index 132e9ee2..eb741dae 100644 --- a/js/src/constants.ts +++ b/js/src/constants.ts @@ -176,10 +176,14 @@ export const PYTH_MAPPING_ACC = new PublicKey( "AHtgzX45WTKfkPG53L6WYhGEXwQkN1BVknET3sVsLL8J", ); -export const VAULT_OWNER = new PublicKey( +export const VAULT_OWNER_DEPRECATED = new PublicKey( "GcWEQ9K78FV7LEHteFVciYApERk5YvQuFDQPk1yYJVXi", ); +export const VAULT_OWNER = new PublicKey( + "5D2zKog251d6KPCyFyLMt3KroWwXXPWSgTPyhV22K2gR", +); + export const CUSTOM_BG_TLD = new PublicKey( "BPeXUQDqGbzxeK1LJby6ugvCBuo7kRSEUkjD726mUVsz", );