-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added initial documentation and tweaks to deprecate account, ne…
…twork-client and localnet functions (#287) Deprecates the following in favour of new `AlgorandClient` exposed functionality: * `algokit.multisigAccount` * `algokit.rekeyedAccount` * `algokit.transactionSignerAccount` * `algokit.randomAccount` * `algokit.mnemonicAccountFromEnvironment` * `algokit.getAccountAddressAsUint8Array` * `algokit.getAccountAddressAsString` * `algokit.getAccountInformation` * `algokit.getAccountAssetInformation` * `algokit.getAccount` * `algokit.getDispenserAccount` * `algokit.mnemonicAccount` * `algokit.getTestNetDispenserApiClient` * `algokit.getKmdWalletAccount` * `algokit.getKmdWalletAccount` * `algokit.getOrCreateKmdWalletAccount` * `algokit.isLocalNet` * `algokit.getConfigFromEnvOrDefaults` * `algokit.getAlgodConfigFromEnvironment` * `algokit.getIndexerConfigFromEnvironment` * `algokit.getAlgoNodeConfig` * `algokit.getDefaultLocalNetConfig` * `algokit.getAlgoClient` * `algokit.getAlgoIndexerClient` * `algokit.getAlgoKmdClient` * `algokit.isTestNet` * `algokit.isMainNet` * `algorandFixture(undefined, config)` override (now you can pass in clients or client configs to the first parameter of `algorandFixture`) * `AccountConfig` in `types/account` Changes: * `getTestAccount` to take an `AlgorandClient` rather than `algod` and `kmd` (no change for `getTestAccount` method exposed from `algorandFixture` though, which is the primary way of accessing it (outside of a tweak to the recently added `accountGetter` parameter to also take an `AlgorandClient`) * `algorandFixture().context` now has an `algorand` property with an `AlgorandClient` instance * `dispenser()` method in `AccountManager` is now called `dispenserFromEnvironment()` to reflect the fact it loads environment variables and expects a Node.js environment Additions: * `getAccountTransactionSigner` method exposed from `types/account-manager` (similar to previous `getSenderTransactionSigner` method) * `AccountManager` has a `kmd` property with an instance of the new `KmdAccountManager` class, and a `rekeyed` method that tracks a `TransactionSignerAccount` to a different sender * `KmdAccountManager` class with `getWalletAccount`, `getOrCreateWalletAccount` and `getLocalNetDispenserAccount` methods * `ClientManager` has new instance methods for `network()`, `isLocalNet()`, `isTestNet()` and `isMainNet()` and static methods for `getConfigFromEnvironmentOrLocalNet`, `getAlgodConfigFromEnvironment`, `getIndexerConfigFromEnvironment`, `getAlgoNodeConfig`, `getDefaultLocalNetConfig`, `getAlgodClient`, `getAlgodClientFromEnvironment`, `getIndexerClient`, `getIndexerClientFromEnvironment`, `getKmdClient`, and `getKmdClientFromEnvironment` --------- Co-authored-by: Neil Campbell <[email protected]>
- Loading branch information
1 parent
6083190
commit 05b8a73
Showing
76 changed files
with
2,732 additions
and
891 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
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.