Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TxnLab/use-wallet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0-beta.10
Choose a base ref
...
head repository: TxnLab/use-wallet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.0-rc.1
Choose a head ref
  • 14 commits
  • 76 files changed
  • 2 contributors

Commits on Jun 5, 2024

  1. feat: add Custom provider (#181)

    * feat: add Custom provider
    
    * test: handle missing provider option in constructor
    
    * feat: optional methods in `CustomProvider`
    
    * docs: update README with Custom Provider
    
    * fix: add CustomWallet to createWalletMap()
    drichar authored Jun 5, 2024
    Configuration menu
    Copy the full SHA
    bdaf3ee View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. chore: upgrade to pnpm v9 (#182)

    * chore: install dependencies using pnpm v9
    
    * ci: update pnpm to v9
    
    * ci: upgrade to pnpm/action-setup@v4
    
    * chore: set package.json packageManager to [email protected]
    
    * ci: set specific pnpm version to match packageManger
    
    * ci: install Node v20
    drichar authored Jun 6, 2024
    Configuration menu
    Copy the full SHA
    a33ad92 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2024

  1. feat(kibisis): implement avm provider with kibisis client (#175)

    * build(deps): add @agoralabs-sh/avm-web-provider dependency
    
    * feat(kibisis): implement kibisis with avm web provider
    
    * docs(kibisis): add required sdk for kibisis in readme
    
    * chore: squash
    
    * build(deps): update @agoralabs-sh/avm-web-provider to 1.6.2
    
    * build(deps): update pnpm lock file to include merged resources
    
    * test(kibisis): update kibisis tests to reflect new client
    
    * chore: squash
    
    * chore: squash
    
    * chore: fix prettier issues
    
    * test(kibisis): add no-typecheck to kibisis test files
    
    * refactor(kibisis): move wallet to signle file structure
    kieranroneill authored Jun 8, 2024
    Configuration menu
    Copy the full SHA
    9a7203d View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. feat(core): wallet provider updates (#183)

    * feat(core): updates to all wallet clients
    
    * test(core): update wallet tests
    
    * chore: minor type changes
    
    * feat: update signTransactions in adapter packages
    
    * feat: update wallet icons
    
    * feat: update Kibisis logo
    
    * chore: update Kibisis logo
    
    * test: add tests for new utility functions
    
    * chore: remove unused utility functions
    drichar authored Jun 12, 2024
    Configuration menu
    Copy the full SHA
    1b7720a View commit details
    Browse the repository at this point in the history
  2. chore: set @perawallet/connect-beta to ^2.0.11 (#184)

    * chore: set @perawallet/connect-beta to ^2.0.11
    
    * chore: run pnpm install
    drichar authored Jun 12, 2024
    Configuration menu
    Copy the full SHA
    4f2330a View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. fix(walletconnect): handle all possible response types from algo_sign…

    …Txn (#185)
    
    There are no restrictions or rules about the `algo_signTxn` RPC method response type. Each wallet can decide on its own how to format the signed transactions it returns.
    
    (This should probably be spec'd or defined somewhere!)
    
    The WalletConnect provider now handles numerous potential response types, to make sure it always returns an array of encoded signed transactions as `Promise<Uint8Array[]>`.
    
    Its signing function response is now typed as
    
    ```ts
    type SignTxnsResponse = Array<Uint8Array | string | null | undefined>
    ```
    drichar authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    1e246e1 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. fix(walletconnect): get default metadata from window (#186)

    The @walletconnect/utils package exports a function called `getWindowMetadata` which inspects the HTML Document for meta tags, favicon, etc, to populate `metadata` properties if values are not set in the configuration.
    
    This adds a private method to the WalletConnect provider adapted from the implementation from the package to avoid requiring it as a dependency (or peer dependency).
    
    When installing the package as a dependency, tree-shaking does not seem to have an effect. Despite only using this one function, the entire library gets included in the bundle, more than doubling use-wallet's bundle size.
    drichar authored Jun 17, 2024
    Configuration menu
    Copy the full SHA
    2c1762d View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. feat(core): switching networks (#187)

    * feat(react): set algodClient to a useState variable
    
    This also refactors the `useWallet` hook so it directly accesses `WalletContext` (in place of the `useWalletManager` hook).
    
    Both modules are now in a single file - src/index.tsx
    
    * feat(vue): reactive algodClient
    
    * feat(solid): reactive algodClient
    
    * fix(solid): algodClient type
    
    * fix(vue): ensure algodClient is a defined computed value
    
    * fix(solid): fixes activeNetwork reactivity
    
    * feat: add network switcher to example apps
    
    * fix: "Set Active" button visibility in SolidJS example
    
    * feat: disconnect all wallets when switching networks
    
    * test: add/update tests for new setActiveNetwork logic
    
    * test: fix failing tests
    
    * refactor(solid): combine into one file
    drichar authored Jun 19, 2024
    Configuration menu
    Copy the full SHA
    ef07c4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38dc042 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8469c96 View commit details
    Browse the repository at this point in the history
  4. chore: revert Pera provider to Pera Connect v1 (#188)

    * chore: revert Pera provider to Pera Connect v1
    
    While the testing for the Pera Connect v2 beta so far has been very promising, due to an unresolved issue this reverts the Pera provider back to Pera Connect v1.
    
    A dependency of `@perawallet/connect-beta` – `@walletconnect/sign-client` is not included in Vite production builds. Vite's dev mode uses esbuild and everything works fine, but for some reason the Rollup production builds omit the Sign client and an error is thrown when you try to connect.
    
    Instead of removing the new provider, it will remain as an undocumented option, `PERA2`, so it can continue to be tested on an opt-in basis.
    
    * chore: fix TypeScript error
    drichar authored Jun 19, 2024
    Configuration menu
    Copy the full SHA
    4a5c947 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. feat(core): signTransactions response should match length of txnGroup (

    …#189)
    
    * feat: return null for transactions that weren't signed
    
    * refactor: move transactionSigner in BaseWallet
    drichar authored Jun 20, 2024
    Configuration menu
    Copy the full SHA
    5244482 View commit details
    Browse the repository at this point in the history
  2. docs: update README

    drichar committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f042464 View commit details
    Browse the repository at this point in the history
  3. chore: release v3.0.0-rc.1

    drichar committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    568179e View commit details
    Browse the repository at this point in the history
Loading