Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add echooowallet #2187

Merged
merged 5 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,4 +1017,4 @@ workflows:
- build-particle:
<<: *deploy_production_filters
- build-staging-particle:
<<: *deploy_staging_filters
<<: *deploy_staging_filters
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@web3-onboard/gas": "^2.1.8",
"@web3-onboard/gnosis": "^2.2.2",
"@web3-onboard/infinity-wallet": "^2.0.4",
"@web3-onboard/injected-wallets": "^2.10.16",
"@web3-onboard/injected-wallets": "^2.10.17-alpha.1",
"@web3-onboard/keepkey": "^2.3.7",
"@web3-onboard/keystone": "^2.3.7",
"@web3-onboard/ledger": "^2.6.0",
Expand Down
3 changes: 2 additions & 1 deletion docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const intiOnboard = async (theme) => {
appId: 'b1f0239a-edb0-41f9-b0f5-ab780bb02a9e'
})


return Onboard({
connect: { autoConnectAllPreviousWallet: true },
wallets: [
Expand Down Expand Up @@ -173,7 +174,7 @@ const intiOnboard = async (theme) => {
infinityWallet,
blocto,
capsule,
particle
particle,
// capsule

// venly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ const injected = injectedModule({
- Kayros - _Desktop_
- Lif3Wallet - _Mobile_
- StableWallet - _Mobile_
- Echooo - _Desktop & Mobile_

## Build Environments

Expand Down
3 changes: 2 additions & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@web3-onboard/gas": "^2.1.7",
"@web3-onboard/gnosis": "^2.2.1",
"@web3-onboard/infinity-wallet": "^2.0.3",
"@web3-onboard/injected-wallets": "^2.10.16",
"@web3-onboard/injected-wallets": "^2.10.17-alpha.1",
"@web3-onboard/keepkey": "^2.3.8",
"@web3-onboard/keystone": "^2.3.8",
"@web3-onboard/ledger": "^2.6.0",
Expand All @@ -64,6 +64,7 @@
"@web3-onboard/xdefi": "^2.0.5",
"@web3-onboard/zeal": "^2.0.3",
"@web3-onboard/particle-network": "^2.0.1",
"@web3-onboard/echooo": "2.0.1-alpha.1",
Adamj1232 marked this conversation as resolved.
Show resolved Hide resolved
"vconsole": "^3.15.1"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
arcanaAuth,
blocto,
venly,
particle
particle,
],
// transactionPreview,
gas,
Expand Down
1 change: 1 addition & 0 deletions packages/injected/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ const onboard = Onboard({
- Kayros - _Desktop_
- Lif3Wallet - _Mobile_
- Zodiac Pilot - _Desktop_
- Echooo - _Desktop & Mobile_

## Filtering Wallets

Expand Down
2 changes: 1 addition & 1 deletion packages/injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/injected-wallets",
"version": "2.10.16",
"version": "2.10.17-alpha.1",
"description": "Injected wallet module for connecting browser extension and mobile wallets to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down
3 changes: 2 additions & 1 deletion packages/injected/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ export const WALLET_NAMES: { [key: string]: string } = {
SubWallet: 'SubWallet',
kayros: 'Kayros',
foxwallet: "FoxWallet",
Lif3Wallet: 'Lif3 Wallet'
Lif3Wallet: 'Lif3 Wallet',
Echooo:'Echooo Wallet'
}
11 changes: 11 additions & 0 deletions packages/injected/src/icons/echooo.ts

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions packages/injected/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export enum ProviderIdentityFlag {
FoxWallet = 'isFoxWallet',
Lif3Wallet = 'isLif3Wallet',
ZodiacPilot = 'isZodiacPilot',
StableWallet = 'isStableWallet'
StableWallet = 'isStableWallet',
Echooo = 'isEchooo'
}

/**
Expand Down Expand Up @@ -99,7 +100,8 @@ export enum ProviderExternalUrl {
FoxWallet = 'https://foxwallet.com/download',
Lif3Wallet = 'https://lif3.com',
Rabby = 'https://rabby.io',
ZodiacPilot = 'https://pilot.gnosisguild.org/'
ZodiacPilot = 'https://pilot.gnosisguild.org/',
Echooo = 'https://www.echooo.xyz'
}

export enum ProviderLabel {
Expand Down Expand Up @@ -161,7 +163,8 @@ export enum ProviderLabel {
FoxWallet = 'FoxWallet',
Lif3Wallet = 'Lif3 Wallet',
ZodiacPilot = 'Zodiac Pilot',
StableWallet = 'StableWallet'
StableWallet = 'StableWallet',
Echooo = 'Echooo'
}

export interface MeetOneProvider extends ExternalProvider {
Expand Down Expand Up @@ -198,7 +201,8 @@ export enum InjectedNameSpace {
Coin98Wallet = 'coin98',
SubWallet = 'SubWallet',
Kayros = 'kayros',
FoxWallet = 'foxwallet'
FoxWallet = 'foxwallet',
Echooo = 'echooo'
}

export interface CustomWindow extends Window {
Expand Down Expand Up @@ -248,6 +252,9 @@ export interface CustomWindow extends Window {
}
kayros: InjectedProvider
foxwallet: InjectedProvider
echooo: {
ethereum: InjectedProvider
}
}

export type InjectedProvider = ExternalProvider &
Expand Down
14 changes: 13 additions & 1 deletion packages/injected/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,17 @@ const stablewallet: InjectedWalletModule = {
platforms: ['mobile']
}

const echooo: InjectedWalletModule = {
label: ProviderLabel.Echooo,
injectedNamespace: InjectedNameSpace.Ethereum,
checkProviderIdentity: ({ provider }) =>
!!provider && !!provider[ProviderIdentityFlag.Echooo],
getIcon: async () => (await import('./icons/echooo.js')).default,
getInterface: getInjectedInterface(ProviderIdentityFlag.Echooo),
platforms: ['all'],
externalUrl: ProviderExternalUrl.Echooo
}

const wallets = [
zeal,
exodus,
Expand Down Expand Up @@ -966,7 +977,8 @@ const wallets = [
foxwallet,
Lif3Wallet,
zodiacPilot,
stablewallet
stablewallet,
echooo
]

export default wallets