Skip to content
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
17 changes: 0 additions & 17 deletions cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ impl<T> std::ops::DerefMut for WithPath<T> {
pub struct Config {
pub toolchain: ToolchainConfig,
pub features: FeaturesConfig,
pub registry: RegistryConfig,
pub provider: ProviderConfig,
pub programs: ProgramsConfig,
pub scripts: ScriptsConfig,
Expand Down Expand Up @@ -404,19 +403,6 @@ impl Default for FeaturesConfig {
}
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct RegistryConfig {
pub url: String,
}

impl Default for RegistryConfig {
fn default() -> Self {
Self {
url: "https://api.apr.dev".to_string(),
}
}
}

#[derive(Debug, Default)]
pub struct ProviderConfig {
pub cluster: Cluster,
Expand Down Expand Up @@ -622,7 +608,6 @@ struct _Config {
toolchain: Option<ToolchainConfig>,
features: Option<FeaturesConfig>,
programs: Option<BTreeMap<String, BTreeMap<String, serde_json::Value>>>,
registry: Option<RegistryConfig>,
provider: Provider,
workspace: Option<WorkspaceConfig>,
scripts: Option<ScriptsConfig>,
Expand Down Expand Up @@ -716,7 +701,6 @@ impl fmt::Display for Config {
let cfg = _Config {
toolchain: Some(self.toolchain.clone()),
features: Some(self.features.clone()),
registry: Some(self.registry.clone()),
provider: Provider {
cluster: self.provider.cluster.clone(),
wallet: self.provider.wallet.stringify_with_tilde(),
Expand Down Expand Up @@ -747,7 +731,6 @@ impl FromStr for Config {
Ok(Config {
toolchain: cfg.toolchain.unwrap_or_default(),
features: cfg.features.unwrap_or_default(),
registry: cfg.registry.unwrap_or_default(),
provider: ProviderConfig {
cluster: cfg.provider.cluster,
wallet: shellexpand::tilde(&cfg.provider.wallet).parse()?,
Expand Down
3 changes: 0 additions & 3 deletions docs/content/docs/quickstart/local.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,6 @@ skip-lint = false
[programs.localnet]
my_program = "3ynNB373Q3VAzKp7m4x238po36hjAGFXFJB4ybN2iTyg"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
Expand Down
3 changes: 0 additions & 3 deletions tests/custom-discriminator/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ skip-lint = false
ambiguous-discriminator = "AmbiguousDiscriminator111111111111111111111"
custom_discriminator = "CustomDiscriminator111111111111111111111111"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
Expand Down
3 changes: 0 additions & 3 deletions tests/safety-checks/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ skip-lint = false
account_info = "99YPYSHjNekPHmMB7yrTxZCV2k2pRMKEqwwcqE62NqdA"
unchecked_account = "4es8ojkX4URUyar2pbuLXQ4WoFtUizb5EupfaEgHjYQF"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json"
Expand Down
3 changes: 0 additions & 3 deletions tests/test-instruction-validation/fail-args-count/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ skip-lint = false
[programs.localnet]
test_instruction_validation = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
3 changes: 0 additions & 3 deletions tests/test-instruction-validation/fail-type/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ skip-lint = false
[programs.localnet]
test_instruction_validation = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
3 changes: 0 additions & 3 deletions tests/test-instruction-validation/pass-args-count/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ skip-lint = false
[programs.localnet]
test_instruction_validation = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
3 changes: 0 additions & 3 deletions tests/test-instruction-validation/pass-type/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ skip-lint = false
[programs.localnet]
test_instruction_validation = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"

[registry]
url = "https://api.apr.dev"

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"