You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: connectWith method and playground updates (#53)
* connect with
* add connectWith and update legacy playground to support it
* add connectWith and connectAndSign event types
* make params optional in GenericProviderRequest
* fix onConnect event handler params
* sync wagmi connector
* Apply suggestion from @jiexi
* rename to checksummedAccounts in wagmi connector
* Cleanup/fix connectWith and connectAndSign flow/events?
* changelog
* changelog format fix
---------
Co-authored-by: jiexi <jiexiluan@gmail.com>
Co-authored-by: Alex Donesky <adonesky@gmail.com>
Copy file name to clipboardExpand all lines: packages/connect-evm/CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
+
- Added `connectWith()` method which makes a request for the method to be paired together with a connection request ([#53](https://github.com/MetaMask/connect-monorepo/pull/53))
13
+
- This method expects param options `method`, `params`, `chainId`, and `account`
14
+
-`params` can be a function or a plain value. When it is a function, it will be called with the selected account as the first param and must return a value that will be used as the actual params for the request.
15
+
- Added `eventHandlers.connectAndSign` handler which is called on successful `connectAndSign` request with an object including the `accounts`, `chainId`, and `signResponse` ([#53](https://github.com/MetaMask/connect-monorepo/pull/53))
16
+
- Added `eventHandlers.connectWith` handler which is called on successful `connectWith` request with an object including the `accounts`, `chainId`, and `connectWithResponse` ([#53](https://github.com/MetaMask/connect-monorepo/pull/53))
12
17
- Added analytics tracking of request handling ([#46](https://github.com/MetaMask/connect-monorepo/pull/46))
0 commit comments