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: wip draft evm layer
* chore: more wip
* chore: update provider
* basic feature set
* add lint commands and update tsconfig
* clean up and docs
* lint fixes to match new repo
* update build steps
* simplify getEthAccounts and ensure unique addresses
* modify eth_accounts and eth_coinbase logic
* change currentAccount to a getter
* better chain changed handling
* fix chain configuration
* clean up constants
* remove eip155 constants
* remove optional chain id parameter
* explicit error when invoking ignored method
* refactor and clean-up
* set chain id upon connecting
* port legacy react demo app into repo
* clean up build and dts
* use helpers from @metamask/chain-agnostic-permission
* use @metamask/utils
* update utils on provider
* add logging
* fix provider request chain id
* add session recovery
* fix sentTransaction in test dapp
* feat: add send message capability to transports
* chore: add vite --host script to allow access to playground app via other devices on network
* feat: add vite plugign node polyfills for Buffer support
* add transport notification handler after connect
* fix: make sure qr preload function is supported on all build types
* enable revoke permissions on disconnect
* add connectAndSign
* improve jsdoc
* update README
* add dev-watch mode to connect-multichain
* update legacy playground readme
* WIP: EVM Wrapper MwpTransport caching (#29)
* WIP
* WIP
* fix build
* v broken
* a bit less broken
* fix accountsChanged
* clear cache on disconnect
* remove notificationQueue. Attempt to get cached eth_accounts and eth_chainId
* Fix onConnect and disconnect events? Not sure about this one
* fix: de-parametrize TransportResponse for fixing build
* add responses to the default transport
---------
Co-authored-by: Alex Donesky <[email protected]>
Co-authored-by: ffmcgee <[email protected]>
Co-authored-by: Alex Mendonca <[email protected]>
* cleanup listeners and separate listening roles across class
* fix build
* fix: make sure In App Browser uses default transport
* Fix MWP disconnection by moving wallet_revokeSession call out of ConnectEvm and into default transport
* Fix hasExtensionInstalled and resolve resume not working for IAB
* fix: make sure initial chain id matches permitted chain id
* refactor: properly type wallet_getSession response from attemptSessionRecory + minor docs update
* Fix add/switchChain not prompting for deeplink (#30)
* WIP
* WIP
* fix build
* v broken
* a bit less broken
* fix accountsChanged
* clear cache on disconnect
* remove notificationQueue. Attempt to get cached eth_accounts and eth_chainId
* Fix onConnect and disconnect events? Not sure about this one
* fix: de-parametrize TransportResponse for fixing build
* add responses to the default transport
* Add opendeeplink method in core
---------
Co-authored-by: Alex Donesky <[email protected]>
Co-authored-by: ffmcgee <[email protected]>
Co-authored-by: Alex Mendonca <[email protected]>
* feat: add support for read only rpc calls
* refactor: minor clean up
* restore preload
* fix specs
* lint
* changelog
* cleanup console logs
* changelog
* changelog
* changelog
* changelog
* refactor: validate that the chain is configured for all RPC calls
* refactor: typing readonlyRpcMap
* refactor: inline default timeout for RpcClient
* revert: formatting requestRouter.ts
* test: rpcClient test update (expect AbortSignal)
* minor lint reverts
---------
Co-authored-by: Alex Mendonca <[email protected]>
Co-authored-by: Jiexi Luan <[email protected]>
Co-authored-by: Alex Donesky <[email protected]>
@@ -57,9 +57,22 @@ export class EIP1193Provider extends EventEmitter<EIP1193ProviderEvents> {
57
57
}
58
58
59
59
constchainId=hexToNumber(this.#selectedChainId);
60
+
constscope: Scope=`eip155:${chainId}`;
61
+
62
+
// Validate that the chain is configured in readOnlyRpcMap
63
+
// This check is performed here to provide better error messages
64
+
// The RpcClient will also validate, but this gives us a chance to provide
65
+
// a clearer error message before the request is routed
66
+
constcoreOptions=(this.#core asany).options;// TODO: options is `protected readonly` property, this needs to be refactored so `any` type assertion is not necessary
0 commit comments