Skip to content

Commit

Permalink
Anchor rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbogle committed May 27, 2022
1 parent b2605d9 commit 7fb8aac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .ammanrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const programs = {
programId: programIds.fanout,
deployPath: localDeployPath(
path.join(__dirname, "target", "deploy"),
"hydra"
"hydra_wallet"
),
},
};
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:

- run: mkdir -p target/deploy
- run: cp -r tests/test-keypairs/* target/deploy
- run: find . -type f -name "*" -exec sed -i'' -e "s/hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg/$(solana-keygen pubkey tests/test-keypairs/hydra-keypair.json)/g" {} +
- run: find . -type f -name "*" -exec sed -i'' -e "s/hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg/$(solana-keygen pubkey tests/test-keypairs/hydra_wallet-keypair.json)/g" {} +

- run: yarn build
- run: anchor build
Expand Down
6 changes: 3 additions & 3 deletions Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[programs.localnet]
hydra = "hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg"
hydra_wallet = "hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg"

[programs.devnet]
hydra = "hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg"
hydra_wallet = "hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg"

[programs.mainnet]
hydra = "hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg"
hydra_wallet = "hyDQ4Nz1eYyegS6JfenyKwKzYxRsCWCriYSAjtzP4Vg"


[registry]
Expand Down
4 changes: 2 additions & 2 deletions cli/hydra_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use anchor_client::solana_client::rpc_config::{RpcAccountInfoConfig, RpcProgramA
use anchor_client::solana_client::rpc_filter::{Memcmp, MemcmpEncodedBytes, RpcFilterType};

use clap::{ArgMatches, Error, ErrorKind};
use hydra::state::{Fanout, FanoutMint};
use hydra_wallet::state::{Fanout, FanoutMint};
use solana_account_decoder::UiAccountEncoding;
use solana_sdk::commitment_config::{CommitmentConfig, CommitmentLevel};
use solana_sdk::pubkey::Pubkey;
Expand Down Expand Up @@ -75,7 +75,7 @@ fn main() {
let get_hydra_mints = |rpc: RpcClient| {
move |hydra_pub: Pubkey, _fanout: Fanout| {
rpc.get_program_accounts_with_config(
&hydra::id(),
&hydra_wallet::id(),
RpcProgramAccountsConfig {
filters: Some(vec![RpcFilterType::Memcmp(Memcmp {
offset: 40,
Expand Down
2 changes: 1 addition & 1 deletion programs/hydra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "GPL-3.0"

[lib]
crate-type = ["cdylib", "lib"]
name = "hydra"
name = "hydra_wallet"

[features]
no-entrypoint = []
Expand Down
File renamed without changes.

0 comments on commit 7fb8aac

Please sign in to comment.