-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from lidofinance/feature/si-1729-support-ambi…
…re-extension Support ambire extension
- Loading branch information
Showing
8 changed files
with
65 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# reef-knot | ||
|
||
## 7.1.1 | ||
|
||
### Patch Changes | ||
|
||
- @reef-knot/wallets-list@4.1.1 | ||
|
||
## 7.1.0 | ||
|
||
### Minor Changes | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
import { WalletAdapterType } from '@reef-knot/types'; | ||
import { getWalletConnectConnector } from '@reef-knot/wallets-helpers'; | ||
import { injected } from 'wagmi/connectors'; | ||
import type { WalletAdapterType } from '@reef-knot/types'; | ||
import { | ||
getTargetEIP6963, | ||
isProviderExistsEIP6963, | ||
} from '@reef-knot/wallets-helpers'; | ||
import WalletIcon from './icons/ambire.svg'; | ||
|
||
export const id = 'ambire'; | ||
export const name = 'Ambire'; | ||
export const rdns = 'com.ambire.wallet'; | ||
|
||
export const Ambire: WalletAdapterType = ({ walletconnectProjectId }) => ({ | ||
export const Ambire: WalletAdapterType = ({ providersStore }) => ({ | ||
walletName: name, | ||
walletId: id, | ||
type: getWalletConnectConnector.type, | ||
type: injected.type, | ||
icon: WalletIcon, | ||
createConnectorFn: getWalletConnectConnector({ | ||
projectId: walletconnectProjectId, | ||
}), | ||
walletconnectExtras: { | ||
connectionViaURI: { | ||
createConnectorFn: getWalletConnectConnector({ | ||
qrcode: false, | ||
projectId: walletconnectProjectId, | ||
}), | ||
condition: true, // Actually, Ambire will always use this connector | ||
redirectLink: 'https://wallet.ambire.com/?uri=', | ||
closeRedirectionWindow: false, | ||
}, | ||
detector: () => isProviderExistsEIP6963(providersStore, rdns), | ||
downloadURLs: { | ||
default: 'https://www.ambire.com/', | ||
}, | ||
createConnectorFn: injected({ | ||
target: () => getTargetEIP6963(providersStore, rdns), | ||
}), | ||
}); |