-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(network): add network config builder for custom configurations
Introduce `NetworkConfigBuilder` to enable customizable network configurations and support for custom networks. This change provides a more flexible way to configure network settings, including CAIP-2 chain IDs, and allows applications to define their own networks beyond the default mainnet/testnet options. - Add `NetworkConfigBuilder` for creating and customizing network configurations - Update all wallet implementations to use new network config system - Add support for CAIP-2 chain IDs in network configurations - Add `isTestnet` flag to network configurations - Update all tests to use string literals for network names - Add `network` property to wallet provider constructor calls - Update `WalletManager` tests to use new network configuration approach - Add support for custom networks via `NetworkConfigBuilder` - Update network-related test assertions - Add proper genesis hash/ID handling from network configs - Maintain `NetworkId` enum for defaultNetwork configuration - Rename config property `network` to `defaultNetwork` - Rename config property `algod` to `networks` BREAKING CHANGE: Network configuration now requires using `NetworkConfigBuilder` instead of the `NetworkId`-keyed mapped object from v3. While `NetworkId` is still exported for use with the `defaultNetwork` property, network configurations must be created using the new builder pattern.
- Loading branch information
Showing
33 changed files
with
567 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.