Skip to content
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

⬆️ Upgrade program id #5

Merged
merged 4 commits into from
Nov 6, 2023
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
10 changes: 5 additions & 5 deletions Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ seeds = false
skip-lint = false

[programs.localnet]
soar = "SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU"
tens = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
soar = "SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk"
tens = "Tensgwm3DY3UJ8nhF7xnD2Wo65VcnLTXjjoyEvs6Zyk"

[programs.devnet]
soar = "SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU"
tens = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
soar = "SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk"
tens = "Tensgwm3DY3UJ8nhF7xnD2Wo65VcnLTXjjoyEvs6Zyk"

[programs.mainnet]
soar = "SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU"
soar = "SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk"

[registry]
url = "https://api.apr.dev"
Expand Down
170 changes: 13 additions & 157 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magicblock-labs/soar-sdk",
"version": "0.1.19",
"version": "0.1.20",
"description": "Sdk bindings for the SOAR smart contract.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion client/sdk/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PublicKey } from "@solana/web3.js";

export const PROGRAM_ADDRESS = "SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU";
export const PROGRAM_ADDRESS = "SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk";
export const PROGRAM_ID = new PublicKey(PROGRAM_ADDRESS);

export const TOKEN_METADATA_PROGRAM_ID = new PublicKey(
Expand Down
2 changes: 1 addition & 1 deletion client/tests/tens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("tens", () => {
anchor.setProvider(provider);

const tensProgramId = new PublicKey(
"Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
"Tensgwm3DY3UJ8nhF7xnD2Wo65VcnLTXjjoyEvs6Zyk"
);
const tensProgram = new Program(IDL, tensProgramId, provider);

Expand Down
2 changes: 1 addition & 1 deletion crates/soar-cpi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "soar-cpi"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
include = ["src/**/*", "idl.json"]
description = "CPI helpers for the SOAR program"
Expand Down
2 changes: 1 addition & 1 deletion crates/soar-cpi/idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,6 @@
}
],
"metadata": {
"address": "SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU"
"address": "SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk"
}
}
2 changes: 1 addition & 1 deletion crates/soar-cpi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ use anchor_lang::declare_id;
use clockwork_anchor_gen::generate_cpi_interface;

generate_cpi_interface!(idl_path = "idl.json");
declare_id!("SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU");
declare_id!("SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk");
2 changes: 1 addition & 1 deletion examples/tens/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use soar::cpi::accounts::{ClaimFtReward, SubmitScore};
use soar::cpi::{self};
use soar::{LeaderTopEntries, PlayerScoresList};

declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
declare_id!("Tensgwm3DY3UJ8nhF7xnD2Wo65VcnLTXjjoyEvs6Zyk");

#[program]
mod tens {
Expand Down
2 changes: 1 addition & 1 deletion programs/soar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use anchor_spl::token::{Mint, Token, TokenAccount};
#[cfg(not(feature = "no-entrypoint"))]
use solana_security_txt::security_txt;

declare_id!("SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU");
declare_id!("SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk");

mod error;
mod instructions;
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ For detailed usage instructions, API reference, and examples, refer to the SOAR

## :floppy_disk: Program

The program is available at [SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU](https://solscan.io/account/SoarmxsvnGcQzLGaiue8mVTko7uuEfTY5zwdKKCnQDU#anchorProgramIDL)
The program is available at [SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk](https://solscan.io/account/SoarNNzwQHMwcfdkdLc6kvbkoMSxcHy89gTHrjhJYkk#anchorProgramIDL)

## 🤝 Contributing
Contributions to SOAR are welcome! To contribute, please follow the guidelines outlined in [CONTRIBUTING.md](https://github.com/magicblock-labs/Solana.Unity-SDK/blob/main/CONTRIBUTING.md).
Expand Down