Skip to content

Commit

Permalink
anchor: new program id
Browse files Browse the repository at this point in the history
  • Loading branch information
yurushao committed Jan 28, 2025
1 parent 7ff0fdb commit a507d17
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion anchor/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ seeds = false
skip-lint = false

[programs.mainnet]
glam = "GLAMpLuXu78TA4ao3DPZvT1zQ7woxoQ8ahdYbhnqY9mP"
glam = "GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc"

[programs.devnet]
glam = "Gco1pcjxCMYjKJjSNJ7mKV7qezeUTE7arXJgy7PAPNRc"
Expand Down
2 changes: 1 addition & 1 deletion anchor/programs/glam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub use state::model::*;
use ::drift::{MarketType, OrderParams, PositionDirection};

#[cfg(feature = "mainnet")]
declare_id!("GLAMpLuXu78TA4ao3DPZvT1zQ7woxoQ8ahdYbhnqY9mP");
declare_id!("GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc");

#[cfg(not(feature = "mainnet"))]
declare_id!("Gco1pcjxCMYjKJjSNJ7mKV7qezeUTE7arXJgy7PAPNRc");
Expand Down
4 changes: 1 addition & 3 deletions anchor/src/client/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import {
ShareClassOpenfundsModel,
CreatedModel,
Metadata,
StateIdlModel,
StateModelType,
} from "../models";
import { WSOL } from "../constants";

Expand Down Expand Up @@ -99,7 +97,7 @@ export class StateClient {

// FIXME: setting rawOpenfunds to null is a workarond for
// Access violation in stack frame 5 at address 0x200005ff8 of size 8
// shareClass.rawOpenfunds = null;
shareClass.rawOpenfunds = null;
return await this.base.program.methods
.addShareClass(shareClass)
.accounts({
Expand Down
2 changes: 1 addition & 1 deletion anchor/src/glamExports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const GLAM_PROGRAM_ID_DEV = new PublicKey(
"Gco1pcjxCMYjKJjSNJ7mKV7qezeUTE7arXJgy7PAPNRc",
);
export const GLAM_PROGRAM_ID_MAINNET = new PublicKey(
"GLAMpLuXu78TA4ao3DPZvT1zQ7woxoQ8ahdYbhnqY9mP",
"GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc",
);

export function getGlamProgramId(cluster: ClusterNetwork) {
Expand Down
2 changes: 1 addition & 1 deletion anchor/target/idl/glam.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "GLAMpLuXu78TA4ao3DPZvT1zQ7woxoQ8ahdYbhnqY9mP",
"address": "GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc",
"metadata": {
"name": "glam",
"version": "0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion anchor/target/types/glam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* IDL can be found at `target/idl/glam.json`.
*/
export type Glam = {
"address": "GLAMpLuXu78TA4ao3DPZvT1zQ7woxoQ8ahdYbhnqY9mP",
"address": "GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc",
"metadata": {
"name": "glam",
"version": "0.4.0",
Expand Down

0 comments on commit a507d17

Please sign in to comment.