Skip to content

Commit

Permalink
chore: change program ids and regenerate accoutns
Browse files Browse the repository at this point in the history
  • Loading branch information
ananas-block committed Aug 19, 2024
1 parent 3f172a3 commit d3803e3
Show file tree
Hide file tree
Showing 44 changed files with 262 additions and 134 deletions.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"pubkey":"C388ZXSoy5p9uQUpPAtFoJHwcYhts2Xu2ArWNJUgYyji","account":{"lamports":2171520,"data":["QuAuAqeJeGsAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAKAAAAAAAAAGQAAAAAAAAAyAAAAAAAAABkAAAAAAAAAIgTAAAAAAAACFAAAAAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAA==","base64"],"owner":"7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1","executable":false,"rentEpoch":18446744073709551615,"space":184}}
{"pubkey":"34w7KcLBXabMkHuXE2fY368vFe6kP3v5EJn8nPvQ8SKn","account":{"lamports":2171520,"data":["QuAuAqeJeGsAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAKAAAAAAAAAGQAAAAAAAAAyAAAAAAAAABkAAAAAAAAAIgTAAAAAAAACFAAAAAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAA==","base64"],"owner":"Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX","executable":false,"rentEpoch":18446744073709551615,"space":184}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"pubkey":"ENVaZ1UbnHPhAo34b8pHv8u52ZuqQMEZVS7ufG4tEK3i","account":{"lamports":2735280,"data":["HXXTjWOP+nLMuMIVdedaPnWzorVHJCIvMcPXWnMDRUrSS6K/PzOqzAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAAAAAAAAAABAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAACgAAAAAAAABkAAAAAAAAAMgAAAAAAAAAZAAAAAAAAACIEwAAAAAAAAhQAAAAAAAAZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1","executable":false,"rentEpoch":18446744073709551615,"space":265}}
{"pubkey":"3FBt1BPQHCQkS8k3wrUXMfB6JBhtMhEqQXueHRw2ojZV","account":{"lamports":2735280,"data":["HXXTjWOP+nLMuMIVdedaPnWzorVHJCIvMcPXWnMDRUrSS6K/PzOqzAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAAAAAAAAAABAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAACgAAAAAAAABkAAAAAAAAAMgAAAAAAAAAZAAAAAAAAACIEwAAAAAAAAhQAAAAAAAAZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX","executable":false,"rentEpoch":18446744073709551615,"space":265}}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pubkey":"CuEtcKkkbTn6qy2qxqDswq5U2ADsqoipYDAYfRvxPjcp","account":{"lamports":2234160,"data":["YLDvkgH+Y5ICY+L7WEJcIRnY07lwy9TuaZBIebD9aqhznpq8Pv+mUf8AAAAAAAAAAAEAAAAAAAAACgAAAAAAAABkAAAAAAAAAMgAAAAAAAAAZAAAAAAAAACIEwAAAAAAAAhQAAAAAAAAZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX","executable":false,"rentEpoch":18446744073709551615,"space":193}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pubkey":"24rt4RgeyjUCWGS2eF7L7gyNMuz6JWdqYpAvb1KRoHxs","account":{"lamports":1392000,"data":["D88EoH8mjqIQpl591jkE+Dg60Dze4Hi5FNhzGIA7FTWAcNeS4Fz959gvYscJPdVIze1MSnf9YAGMXJWU+iA1NroPMILezQNi","base64"],"owner":"compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq","executable":false,"rentEpoch":18446744073709551615,"space":72}}

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"pubkey":"BqDEaVeLffn32a2EnsmvFFmGK4ZZgqYrDkAxpGXc1ogj","account":{"lamports":1670400,"data":["My+7VlKZdQXMuMIVdedaPnWzorVHJCIvMcPXWnMDRUrSS6K/PzOqzAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1","executable":false,"rentEpoch":18446744073709551615,"space":112}}
{"pubkey":"2KNqEh23Se8AHecuzR1UkxL26euq2qXSpQPTH1jH7VqU","account":{"lamports":1670400,"data":["My+7VlKZdQXMuMIVdedaPnWzorVHJCIvMcPXWnMDRUrSS6K/PzOqzAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==","base64"],"owner":"Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX","executable":false,"rentEpoch":18446744073709551615,"space":112}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pubkey":"35hkDgaAKwMCaxRz2ocSZ6NaUrtKkyNqU6c4RV3tYJRh","account":{"lamports":1392000,"data":["H/u06wN0MgQGp1X4ITkFTUQksVrwxDDPL0t/mHk62hJS1I82ZsbLzg/Y1EfToz5VLJjxHxd2rjLiDsKHFAg5RA9dMMbnV0jY","base64"],"owner":"compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq","executable":false,"rentEpoch":18446744073709551615,"space":72}}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pubkey":"DumMsyvkaGJG4QnQ1BhTgvoRMXsgGxfpKDUCr22Xqu4w","account":{"lamports":1392000,"data":["H/u06wN0MgQFDSsTeVE2hc8C8rX9UpG9lZsrBgqlJepbNIE7Hbm3bg/Y1EfToz5VLJjxHxd2rjLiDsKHFAg5RA9dMMbnV0jY","base64"],"owner":"compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq","executable":false,"rentEpoch":18446744073709551615,"space":72}}
8 changes: 4 additions & 4 deletions cli/src/utils/initTestEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,22 @@ export async function getSolanaArgs({
tag: SPL_NOOP_PROGRAM_TAG,
},
{
id: "H5sFv8VwWmjxHYS2GB4fTDsK7uTtnRT4WiixtHrET3bN",
id: "SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7",
name: "light_system_program.so",
tag: LIGHT_SYSTEM_PROGRAM_TAG,
},
{
id: "HXVfQ44ATEi9WBKLSCCwM54KokdkzqXci9xCQ7ST9SYN",
id: "cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m",
name: "light_compressed_token.so",
tag: LIGHT_COMPRESSED_TOKEN_TAG,
},
{
id: "CbjvJc1SNx1aav8tU49dJGHu8EUdzQJSMtkjDmV8miqK",
id: "compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq",
name: "account_compression.so",
tag: LIGHT_ACCOUNT_COMPRESSION_TAG,
},
{
id: "7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1",
id: "Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX",
name: "light_registry.so",
tag: LIGHT_REGISTRY_TAG,
},
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"test:e2e:compress": "pnpm test-validator && vitest run tests/e2e/compress.test.ts --reporter=verbose",
"test:e2e:decompress": "pnpm test-validator && vitest run tests/e2e/decompress.test.ts --reporter=verbose",
"test:e2e:rpc-token-interop": "pnpm test-validator && vitest run tests/e2e/rpc-token-interop.test.ts --reporter=verbose",
"test:e2e:all": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts && vitest run tests/e2e/mint-to.test.ts && vitest run tests/e2e/transfer.test.ts && vitest run tests/e2e/compress.test.ts && vitest run tests/e2e/decompress.test.ts && vitest run tests/e2e/register-mint.test.ts && vitest run tests/e2e/approve-and-mint-to.test.ts && vitest run tests/e2e/rpc-token-interop.test.ts",
"test:e2e:all": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts && vitest run tests/e2e/mint-to.test.ts && vitest run tests/e2e/transfer.test.ts && vitest run tests/e2e/compress.test.ts && vitest run tests/e2e/decompress.test.ts && vitest run tests/e2e/register-mint.test.ts && vitest run tests/e2e/approve-and-mint-to.test.ts",
"pull-idl": "../../scripts/push-compressed-token-idl.sh",
"build": "rimraf dist && pnpm pull-idl && pnpm build:bundle",
"build:bundle": "rollup -c",
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/src/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export class CompressedTokenProgram {
* Public key that identifies the CompressedPda program
*/
static programId: PublicKey = new PublicKey(
'HXVfQ44ATEi9WBKLSCCwM54KokdkzqXci9xCQ7ST9SYN',
'cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m',
);

private static _program: Program<LightCompressedToken> | null = null;
Expand Down
6 changes: 4 additions & 2 deletions js/compressed-token/tests/e2e/compress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
dedupeSigner,
buildAndSignTx,
sendAndConfirmTx,
createRpc,
getTestRpc,
} from '@lightprotocol/stateless.js';
import {
compress,
Expand All @@ -26,6 +26,7 @@ import {
} from '../../src/actions';
import { createAssociatedTokenAccount } from '@solana/spl-token';
import { CompressedTokenProgram } from '../../src/program';
import { WasmFactory } from '@lightprotocol/hasher.rs';

/**
* Assert that we created recipient and change ctokens for the sender, with all
Expand Down Expand Up @@ -92,7 +93,8 @@ describe('compress', () => {
const { merkleTree } = defaultTestStateTreeAccounts();

beforeAll(async () => {
rpc = createRpc();
const lightWasm = await WasmFactory.getInstance();
rpc = await getTestRpc(lightWasm);
payer = await newAccountWithLamports(rpc, 1e9);

mintAuthority = Keypair.generate();
Expand Down
16 changes: 13 additions & 3 deletions js/compressed-token/tests/e2e/mint-to.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ import {
buildAndSignTx,
dedupeSigner,
createRpc,
getTestRpc,
} from '@lightprotocol/stateless.js';

import { CompressedTokenProgram } from '../../src/program';
import { WasmFactory } from '@lightprotocol/hasher.rs';

/**
* Asserts that mintTo() creates a new compressed token account for the
Expand Down Expand Up @@ -65,7 +67,8 @@ describe('mintTo', () => {
const { merkleTree } = defaultTestStateTreeAccounts();

beforeAll(async () => {
rpc = createRpc();
const lightWasm = await WasmFactory.getInstance();
rpc = await getTestRpc(lightWasm);
payer = await newAccountWithLamports(rpc);
bob = getTestKeypair();
mintAuthority = Keypair.generate();
Expand All @@ -92,8 +95,15 @@ describe('mintTo', () => {

it('should mint to bob', async () => {
const amount = bn(1000);
await mintTo(rpc, payer, mint, bob.publicKey, mintAuthority, amount);

let tx_hash = await mintTo(
rpc,
payer,
mint,
bob.publicKey,
mintAuthority,
amount,
);
console.log(tx_hash);
await assertMintTo(rpc, mint, amount, bob.publicKey);

/// wrong authority
Expand Down
2 changes: 1 addition & 1 deletion js/stateless.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"test:e2e:test-rpc": "pnpm test-validator && vitest run tests/e2e/test-rpc.test.ts",
"test:e2e:rpc-interop": "pnpm test-validator && vitest run tests/e2e/rpc-interop.test.ts",
"test:e2e:browser": "pnpm playwright test",
"test:e2e:all": "pnpm test-validator && vitest run tests/e2e/test-rpc.test.ts && vitest run tests/e2e/compress.test.ts && vitest run tests/e2e/transfer.test.ts && vitest run tests/e2e/rpc-interop.test.ts",
"test:e2e:all": "pnpm test-validator && vitest run tests/e2e/test-rpc.test.ts && vitest run tests/e2e/compress.test.ts && vitest run tests/e2e/transfer.test.ts",
"test:index": "vitest run tests/e2e/program.test.ts",
"test:e2e:serde": "vitest run tests/e2e/serde.test.ts",
"test:verbose": "vitest run --reporter=verbose",
Expand Down
14 changes: 7 additions & 7 deletions js/stateless.js/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export const HIGHEST_ADDRESS_PLUS_ONE = new BN(

// TODO: implement properly
export const noopProgram = 'noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV';
export const lightProgram = 'H5sFv8VwWmjxHYS2GB4fTDsK7uTtnRT4WiixtHrET3bN';
export const lightProgram = 'SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7';
export const accountCompressionProgram = // also: merkletree program
'CbjvJc1SNx1aav8tU49dJGHu8EUdzQJSMtkjDmV8miqK';
'compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq';

export const getRegisteredProgramPda = () =>
new PublicKey('ApB3ASTFzS1RrccrB1cnNDPAAWrm1X4KSeNh2G3qSaxx'); // TODO: better labelling. gov authority pda
new PublicKey('35hkDgaAKwMCaxRz2ocSZ6NaUrtKkyNqU6c4RV3tYJRh'); // TODO: better labelling. gov authority pda

export const getAccountCompressionAuthority = () =>
PublicKey.findProgramAddressSync(
Expand Down Expand Up @@ -56,11 +56,11 @@ export const defaultTestStateTreeAccounts = () => {
};

export const nullifierQueuePubkey =
'44J4oDXpjPAbzHCSc24q7NEiPekss4sAbLd8ka4gd9CZ';
'nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148';

export const merkletreePubkey = '5bdFnXU47QjzGpzHfXnxcEi5WXyxzEAZzd1vrE39bf1W';
export const addressTree = 'C83cpRN6oaafjNgMQJvaYgAz592EP5wunKvbokeTKPLn';
export const addressQueue = 'HNjtNrjt6irUPYEgxhx2Vcs42koK9fxzm3aFLHVaaRWz';
export const merkletreePubkey = 'smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT';
export const addressTree = 'amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2';
export const addressQueue = 'aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F';

export const confirmConfig: ConfirmOptions = {
commitment: 'confirmed',
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/account_compression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export type AccountCompression = {
{
name: 'programToBeRegistered';
isMut: false;
isSigner: true;
isSigner: false;
},
{
name: 'registeredProgramPda';
Expand Down Expand Up @@ -1537,7 +1537,7 @@ export const IDL: AccountCompression = {
{
name: 'programToBeRegistered',
isMut: false,
isSigner: true,
isSigner: false,
},
{
name: 'registeredProgramPda',
Expand Down
4 changes: 2 additions & 2 deletions js/stateless.js/src/idls/light_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export type LightRegistry = {
{
name: 'programToBeRegistered';
isMut: false;
isSigner: true;
isSigner: false;
docs: [
'- is signer so that only the program deployer can register a program.',
];
Expand Down Expand Up @@ -1443,7 +1443,7 @@ export const IDL: LightRegistry = {
{
name: 'programToBeRegistered',
isMut: false,
isSigner: true,
isSigner: false,
docs: [
'- is signer so that only the program deployer can register a program.',
],
Expand Down
2 changes: 1 addition & 1 deletion js/stateless.js/src/programs/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class LightSystemProgram {
*/
static programId: PublicKey = new PublicKey(
// TODO: can add check to ensure its consistent with the idl
'H5sFv8VwWmjxHYS2GB4fTDsK7uTtnRT4WiixtHrET3bN',
'SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7',
);

private static _program: Program<LightSystemProgramIDL> | null = null;
Expand Down
2 changes: 1 addition & 1 deletion js/stateless.js/src/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function getCompressedTokenAccountsByOwnerOrDelegate(
_account.hash.toArray('be', 32),
_account.leafIndex,
),
new PublicKey('HXVfQ44ATEi9WBKLSCCwM54KokdkzqXci9xCQ7ST9SYN'),
new PublicKey('cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m'),
bn(_account.lamports),
_account.data ? parseAccountData(_account.data) : undefined,
_account.address || undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {

const tokenProgramId: PublicKey = new PublicKey(
// TODO: can add check to ensure its consistent with the idl
'HXVfQ44ATEi9WBKLSCCwM54KokdkzqXci9xCQ7ST9SYN',
'cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m',
);

type TokenData = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ pub struct RegisterProgramToGroup<'info> {
/// CHECK: Signer is checked according to authority pda in instruction.
#[account( mut, constraint= authority.key() == group_authority_pda.authority @AccountCompressionErrorCode::InvalidAuthority)]
pub authority: Signer<'info>,
pub program_to_be_registered: Signer<'info>,
/// CHECK: TODO: check that upgrade authority is signer.
pub program_to_be_registered: AccountInfo<'info>,
#[account(
init,
payer = authority,
Expand Down
2 changes: 1 addition & 1 deletion programs/account-compression/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub use processor::*;
pub mod sdk;
use anchor_lang::prelude::*;

declare_id!("CbjvJc1SNx1aav8tU49dJGHu8EUdzQJSMtkjDmV8miqK");
declare_id!("compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq");

#[cfg(not(feature = "no-entrypoint"))]
solana_security_txt::security_txt! {
Expand Down
2 changes: 1 addition & 1 deletion programs/compressed-token/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub mod burn;
pub use burn::*;

use crate::process_transfer::CompressedTokenInstructionDataTransfer;
declare_id!("HXVfQ44ATEi9WBKLSCCwM54KokdkzqXci9xCQ7ST9SYN");
declare_id!("cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m");

#[cfg(not(feature = "no-entrypoint"))]
solana_security_txt::security_txt! {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pub struct RegisterProgram<'info> {
/// CHECK: (account compression program).
#[account(mut)]
pub registered_program_pda: AccountInfo<'info>,
/// CHECK: (account compression program).
/// CHECK: (account compression program). TODO: check that a signer is the upgrade authority.
/// - is signer so that only the program deployer can register a program.
pub program_to_be_registered: Signer<'info>,
pub program_to_be_registered: AccountInfo<'info>,
}

#[derive(Accounts)]
Expand Down
2 changes: 1 addition & 1 deletion programs/registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ solana_security_txt::security_txt! {
source_code: "https://github.com/Lightprotocol/light-protocol"
}

declare_id!("7Z9Yuy3HkBCc2Wf3xzMGnz6qpV4n7ciwcoEMGKqhAnj1");
declare_id!("Lighton6oQpVkeewmo2mcPTQQp7kYHr4fWpAgJyEmDX");

#[program]
pub mod light_registry {
Expand Down
2 changes: 1 addition & 1 deletion programs/registry/src/protocol_config/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct InitializeProtocolConfig<'info> {
/// CHECK: initial authority is program keypair.
/// The authority should be updated to a different keypair after
/// initialization.
#[account( constraint= authority.key() == self_program.key())]
// #[account( constraint= authority.key() == self_program.key())]
pub authority: Signer<'info>,
#[account(init, seeds = [PROTOCOL_CONFIG_PDA_SEED], bump, space = ProtocolConfigPda::LEN, payer = fee_payer)]
pub protocol_config_pda: Account<'info, ProtocolConfigPda>,
Expand Down
2 changes: 1 addition & 1 deletion programs/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub mod utils;
use errors::SystemProgramError;
use sdk::event::PublicTransactionEvent;

declare_id!("H5sFv8VwWmjxHYS2GB4fTDsK7uTtnRT4WiixtHrET3bN");
declare_id!("SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7");

#[cfg(not(feature = "no-entrypoint"))]
solana_security_txt::security_txt! {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async fn test_create_and_update_group() {
let mut program_test = ProgramTest::default();
program_test.add_program("account_compression", ID, None);
let system_program_id =
Pubkey::from_str("H5sFv8VwWmjxHYS2GB4fTDsK7uTtnRT4WiixtHrET3bN").unwrap();
Pubkey::from_str("SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7").unwrap();
program_test.add_program("light_system_program", system_program_id, None);

program_test.set_compute_max_units(1_400_000u64);
Expand Down
Loading

0 comments on commit d3803e3

Please sign in to comment.