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
2 changes: 2 additions & 0 deletions src/chains/ethereum/ethereum.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface EthereumNetworkConfig {

export interface EthereumChainConfig {
defaultNetwork: string;
defaultNetworks?: string[];
defaultWallet: string;
rpcProvider: string;
etherscanAPIKey?: string;
Expand Down Expand Up @@ -44,6 +45,7 @@ export function getEthereumNetworkConfig(network: string): EthereumNetworkConfig
export function getEthereumChainConfig(): EthereumChainConfig {
return {
defaultNetwork: ConfigManagerV2.getInstance().get('ethereum.defaultNetwork'),
defaultNetworks: ConfigManagerV2.getInstance().get('ethereum.defaultNetworks'),
defaultWallet: ConfigManagerV2.getInstance().get('ethereum.defaultWallet'),
rpcProvider: ConfigManagerV2.getInstance().get('ethereum.rpcProvider') || 'url',
etherscanAPIKey: ConfigManagerV2.getInstance().get('apiKeys.etherscan'),
Expand Down
2 changes: 2 additions & 0 deletions src/chains/solana/solana.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface SolanaNetworkConfig {

export interface SolanaChainConfig {
defaultNetwork: string;
defaultNetworks?: string[];
defaultWallet: string;
rpcProvider: string;
}
Expand All @@ -41,6 +42,7 @@ export function getSolanaNetworkConfig(network: string): SolanaNetworkConfig {
export function getSolanaChainConfig(): SolanaChainConfig {
return {
defaultNetwork: ConfigManagerV2.getInstance().get('solana.defaultNetwork'),
defaultNetworks: ConfigManagerV2.getInstance().get('solana.defaultNetworks'),
defaultWallet: ConfigManagerV2.getInstance().get('solana.defaultWallet'),
rpcProvider: ConfigManagerV2.getInstance().get('solana.rpcProvider') || 'url',
};
Expand Down
6 changes: 6 additions & 0 deletions src/templates/chains/ethereum.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
defaultNetwork: mainnet
defaultWallet: '<ethereum-wallet-address>'

# Optional: List of networks to query for balance operations
# If not specified, only defaultNetwork is used
# defaultNetworks:
# - mainnet
# - base

# RPC provider: 'url' uses nodeURL from network config, or specify a provider name (e.g., 'infura')
rpcProvider: url
6 changes: 6 additions & 0 deletions src/templates/chains/solana.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
defaultNetwork: mainnet-beta
defaultWallet: '<solana-wallet-address>'

# Optional: List of networks to query for balance operations
# If not specified, only defaultNetwork is used
# defaultNetworks:
# - mainnet-beta
# - devnet

# RPC provider: 'url' uses nodeURL from network config, or specify a provider name (e.g., 'helius')
rpcProvider: url
9 changes: 8 additions & 1 deletion src/templates/namespace/ethereum-chain-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"type": "string",
"description": "Default network for Ethereum operations"
},
"defaultNetworks": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of networks to query for balance operations. If not specified, falls back to defaultNetwork only."
},
"defaultWallet": {
"type": "string",
"description": "Default wallet address for examples and testing"
Expand All @@ -18,5 +25,5 @@
}
},
"required": ["defaultNetwork", "defaultWallet"],
"additionalProperties": false
"additionalProperties": true
}
9 changes: 8 additions & 1 deletion src/templates/namespace/solana-chain-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"type": "string",
"description": "Default network for Solana operations"
},
"defaultNetworks": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of networks to query for balance operations. If not specified, falls back to defaultNetwork only."
},
"defaultWallet": {
"type": "string",
"description": "Default wallet address for examples and testing"
Expand All @@ -18,5 +25,5 @@
}
},
"required": ["defaultNetwork", "defaultWallet"],
"additionalProperties": false
"additionalProperties": true
}