Skip to content

Commit 2b5c856

Browse files
rqzrqhAdamj1232ClarkPgOne
authored
add echooowallet (#2187)
* add echooowallet * update inject wallet,delete useless code * Update packages/demo/package.json --------- Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> Co-authored-by: peng <1063629816@qq.com>
1 parent 76a3823 commit 2b5c856

File tree

12 files changed

+46
-12
lines changed

12 files changed

+46
-12
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,4 +1017,4 @@ workflows:
10171017
- build-particle:
10181018
<<: *deploy_production_filters
10191019
- build-staging-particle:
1020-
<<: *deploy_staging_filters
1020+
<<: *deploy_staging_filters

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@web3-onboard/gas": "^2.1.8",
6868
"@web3-onboard/gnosis": "^2.2.2",
6969
"@web3-onboard/infinity-wallet": "^2.0.4",
70-
"@web3-onboard/injected-wallets": "^2.10.16",
70+
"@web3-onboard/injected-wallets": "^2.10.17-alpha.1",
7171
"@web3-onboard/keepkey": "^2.3.7",
7272
"@web3-onboard/keystone": "^2.3.7",
7373
"@web3-onboard/ledger": "^2.6.0",

docs/src/lib/services/onboard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ const intiOnboard = async (theme) => {
142142
appId: 'b1f0239a-edb0-41f9-b0f5-ab780bb02a9e'
143143
})
144144

145+
145146
return Onboard({
146147
connect: { autoConnectAllPreviousWallet: true },
147148
wallets: [
@@ -173,7 +174,7 @@ const intiOnboard = async (theme) => {
173174
infinityWallet,
174175
blocto,
175176
capsule,
176-
particle
177+
particle,
177178
// capsule
178179

179180
// venly

docs/src/routes/docs/[...4]wallets/[...14]injected/+page.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ const injected = injectedModule({
376376
- Kayros - _Desktop_
377377
- Lif3Wallet - _Mobile_
378378
- StableWallet - _Mobile_
379+
- Echooo - _Desktop & Mobile_
379380

380381
## Build Environments
381382

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@web3-onboard/gas": "^2.1.7",
4343
"@web3-onboard/gnosis": "^2.2.1",
4444
"@web3-onboard/infinity-wallet": "^2.0.3",
45-
"@web3-onboard/injected-wallets": "^2.10.16",
45+
"@web3-onboard/injected-wallets": "^2.10.17-alpha.1",
4646
"@web3-onboard/keepkey": "^2.3.8",
4747
"@web3-onboard/keystone": "^2.3.8",
4848
"@web3-onboard/ledger": "^2.6.0",

packages/demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
arcanaAuth,
269269
blocto,
270270
venly,
271-
particle
271+
particle,
272272
],
273273
// transactionPreview,
274274
gas,

packages/injected/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const onboard = Onboard({
107107
- Kayros - _Desktop_
108108
- Lif3Wallet - _Mobile_
109109
- Zodiac Pilot - _Desktop_
110+
- Echooo - _Desktop & Mobile_
110111

111112
## Filtering Wallets
112113

packages/injected/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/injected-wallets",
3-
"version": "2.10.16",
3+
"version": "2.10.17-alpha.1",
44
"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.",
55
"keywords": [
66
"Ethereum",

packages/injected/src/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ export const WALLET_NAMES: { [key: string]: string } = {
3434
SubWallet: 'SubWallet',
3535
kayros: 'Kayros',
3636
foxwallet: "FoxWallet",
37-
Lif3Wallet: 'Lif3 Wallet'
37+
Lif3Wallet: 'Lif3 Wallet',
38+
Echooo:'Echooo Wallet'
3839
}

packages/injected/src/icons/echooo.ts

Lines changed: 11 additions & 0 deletions
Large diffs are not rendered by default.

packages/injected/src/types.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export enum ProviderIdentityFlag {
7070
FoxWallet = 'isFoxWallet',
7171
Lif3Wallet = 'isLif3Wallet',
7272
ZodiacPilot = 'isZodiacPilot',
73-
StableWallet = 'isStableWallet'
73+
StableWallet = 'isStableWallet',
74+
Echooo = 'isEchooo'
7475
}
7576

7677
/**
@@ -99,7 +100,8 @@ export enum ProviderExternalUrl {
99100
FoxWallet = 'https://foxwallet.com/download',
100101
Lif3Wallet = 'https://lif3.com',
101102
Rabby = 'https://rabby.io',
102-
ZodiacPilot = 'https://pilot.gnosisguild.org/'
103+
ZodiacPilot = 'https://pilot.gnosisguild.org/',
104+
Echooo = 'https://www.echooo.xyz'
103105
}
104106

105107
export enum ProviderLabel {
@@ -161,7 +163,8 @@ export enum ProviderLabel {
161163
FoxWallet = 'FoxWallet',
162164
Lif3Wallet = 'Lif3 Wallet',
163165
ZodiacPilot = 'Zodiac Pilot',
164-
StableWallet = 'StableWallet'
166+
StableWallet = 'StableWallet',
167+
Echooo = 'Echooo'
165168
}
166169

167170
export interface MeetOneProvider extends ExternalProvider {
@@ -198,7 +201,8 @@ export enum InjectedNameSpace {
198201
Coin98Wallet = 'coin98',
199202
SubWallet = 'SubWallet',
200203
Kayros = 'kayros',
201-
FoxWallet = 'foxwallet'
204+
FoxWallet = 'foxwallet',
205+
Echooo = 'echooo'
202206
}
203207

204208
export interface CustomWindow extends Window {
@@ -248,6 +252,9 @@ export interface CustomWindow extends Window {
248252
}
249253
kayros: InjectedProvider
250254
foxwallet: InjectedProvider
255+
echooo: {
256+
ethereum: InjectedProvider
257+
}
251258
}
252259

253260
export type InjectedProvider = ExternalProvider &

packages/injected/src/wallets.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,17 @@ const stablewallet: InjectedWalletModule = {
909909
platforms: ['mobile']
910910
}
911911

912+
const echooo: InjectedWalletModule = {
913+
label: ProviderLabel.Echooo,
914+
injectedNamespace: InjectedNameSpace.Ethereum,
915+
checkProviderIdentity: ({ provider }) =>
916+
!!provider && !!provider[ProviderIdentityFlag.Echooo],
917+
getIcon: async () => (await import('./icons/echooo.js')).default,
918+
getInterface: getInjectedInterface(ProviderIdentityFlag.Echooo),
919+
platforms: ['all'],
920+
externalUrl: ProviderExternalUrl.Echooo
921+
}
922+
912923
const wallets = [
913924
zeal,
914925
exodus,
@@ -966,7 +977,8 @@ const wallets = [
966977
foxwallet,
967978
Lif3Wallet,
968979
zodiacPilot,
969-
stablewallet
980+
stablewallet,
981+
echooo
970982
]
971983

972984
export default wallets

0 commit comments

Comments
 (0)