Skip to content

refactor: enhance SDK with required change and bug fixes#117

Merged
sarvalabs-gokul merged 728 commits intosarvalabs:implement/v0.7.0from
0xhar5h:bug/fixes
Apr 30, 2025
Merged

refactor: enhance SDK with required change and bug fixes#117
sarvalabs-gokul merged 728 commits intosarvalabs:implement/v0.7.0from
0xhar5h:bug/fixes

Conversation

@0xhar5h
Copy link
Copy Markdown
Contributor

@0xhar5h 0xhar5h commented Apr 29, 2025

Enhance SDK and Resolve Bugs

This pull request enhance SDK, remove bugs, update type. That were found while during the development of MOI Wallet and Voyage Development.

Changes:

  • Allow to cancel the wait operation while waiting for interaction to cancel.
  • Added new enum Chain for chain ID
  • Added new example to execute an ix in wallet page

sarvalabs-harshrastogi and others added 30 commits February 6, 2025 14:21
0xhar5h and others added 19 commits April 9, 2025 16:04
- Introduced a new enum `Chain` with values for Testnet, Devnet, and Mainnet in `enums.ts`.
- Updated the corresponding type definitions and source maps.
- Modified the exports in `index.ts` and `index.d.ts` to include the new `Chain` enum.
- Adjusted the generated JavaScript and source maps to reflect the changes.
- Modified the type of `chain_id` in the `NetworkInfo` interface from `number` to `Chain` to ensure type safety and consistency with the updated enums.
- Updated import statements to include the `Chain` type from the enums module.
…method

- Added a private keyIndex property to the BrowserWallet class.
- Modified the constructor to accept WalletOption and initialize keyIndex.
- Updated getKeyId method to return the keyIndex directly instead of fetching from the provider.
- Adjusted type definitions and documentation accordingly.
fix(errors): update errors.d.ts and errors.js.map to reflect new error code

chore(wallet): change getKeyId method visibility to public in BrowserWallet class

chore(wallet): update browser-wallet.d.ts and browser-wallet.js.map for consistency

chore(wallet): regenerate source maps for browser-wallet
- Deleted the getWalletPublicKey method and its associated documentation from the BrowserProvider class in both TypeScript and JavaScript files.
- Updated the corresponding type definitions and source maps to reflect the removal of this method.
- Introduced a new SubAccount interface with inherited_account and accounts properties.
- Updated AccountMetaData to include an array of sub_accounts of type SubAccount.
- Modified related TypeScript definitions in responses.d.ts and responses.ts.
- Updated index.ts to export new types related to account inheritance.
…ORTED error code

- Renamed TimerOption to WaitOption in interaction-response utility.
- Updated methods in InteractionResponse class to accommodate new WaitOption structure.
- Added optional properties to WaitOption for retries, delayInSec, and signal.
- Introduced ACTION_ABORTED error code in ErrorCode enum for better error handling.
@sarvalabs-harshrastogi sarvalabs-harshrastogi changed the base branch from develop to implement/v0.7.0 April 30, 2025 01:27
@sarvalabs-harshrastogi sarvalabs-harshrastogi added bug Something isn't working enhancement New feature or request labels Apr 30, 2025
@sarvalabs-gokul sarvalabs-gokul merged commit 2690361 into sarvalabs:implement/v0.7.0 Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants