Skip to content

Sushank/chore/update program id #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion peer-token/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SOLANA_NETWORK="devnet"
RPC_ENDPOINT="https://api.devnet.solana.com"

# Program ID
PROGRAM_ID="H6XWocY2ZXxZS8iLbo8iG7nhv34q2mB97DRsmgdRJnG1"
PROGRAM_ID="6DzkgjSCmyaQxaWRgtigzCP4D3MFAVqvDYoij12fBoqC"

#Token Configuration
TOKEN_DECIMALS=9
Expand Down
1 change: 1 addition & 0 deletions peer-token/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ env
keys
utils
*.env

4 changes: 2 additions & 2 deletions peer-token/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ skip-lint = false



peer_token = "H6XWocY2ZXxZS8iLbo8iG7nhv34q2mB97DRsmgdRJnG1"
peer_token = "6DzkgjSCmyaQxaWRgtigzCP4D3MFAVqvDYoij12fBoqC"



Expand All @@ -17,7 +17,7 @@ url = "https://api.apr.dev/"

[provider]
cluster = "https://api.devnet.solana.com"
wallet = "~/peer_rust_backend/peer-token/keys/Wallets/Company.json"
wallet = "keys/Wallets/Company.json"


[scripts]
Expand Down
1 change: 0 additions & 1 deletion peer-token/app/Peer-Token/Peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import * as fs from 'fs';
import path from 'path';
import dotenv from 'dotenv';
import { getPublicKey, getKeypairFromEnvPath, getSolanaConnection, getIdl } from "../../utilss";
import { createConfig } from "../../utils/config/helper";

dotenv.config( { path:path.resolve(__dirname, "../../.env")});

Expand Down
4 changes: 3 additions & 1 deletion peer-token/app/token_operations/mint_to_company_daily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,6 @@ export async function mint(): Promise<MintResponseImpl> {
"60000",
"Undefined error"
)
}
}

// mint();
4 changes: 2 additions & 2 deletions peer-token/programs/peer-token/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ pub use instructions::daily_mint::*;
pub use instructions::airdrop::*;


declare_id!("H6XWocY2ZXxZS8iLbo8iG7nhv34q2mB97DRsmgdRJnG1");
declare_id!("6DzkgjSCmyaQxaWRgtigzCP4D3MFAVqvDYoij12fBoqC");


#[program]
pub mod peer_token {
use super::*;


//token creation functions
pub fn create_token(ctx: Context<MintTokenArgs>) -> Result<()> {
instructions::mint_token::handler(ctx)
}
Expand Down
Loading