Skip to content

Commit c7ebfc3

Browse files
punithbmAdamj1232
andauthored
Add Frontier Wallet Package (#1454)
* Add Frontier Wallet Package * frontier wallet sdk added * logo minor UI update * feedback updates, added docs file & removed frontier from onboard.js * Update readme * Cleanup package.json * Revert changes for testing locally Co-authored-by: Adam Carpenter <[email protected]>
1 parent b17cc40 commit c7ebfc3

File tree

20 files changed

+263
-5
lines changed

20 files changed

+263
-5
lines changed

.circleci/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ jobs:
243243
working_directory: ~/web3-onboard-monorepo/packages/trezor
244244
steps:
245245
- node-build-steps
246+
build-frontier:
247+
docker:
248+
- image: cimg/node:16.13.1
249+
working_directory: ~/web3-onboard-monorepo/packages/frontier
250+
steps:
251+
- node-build-steps
246252
build-walletconnect:
247253
docker:
248254
- image: cimg/node:16.13.1
@@ -425,6 +431,12 @@ jobs:
425431
working_directory: ~/web3-onboard-monorepo/packages/trezor
426432
steps:
427433
- node-staging-build-steps
434+
build-staging-frontier:
435+
docker:
436+
- image: cimg/node:16.13.1
437+
working_directory: ~/web3-onboard-monorepo/packages/frontier
438+
steps:
439+
- node-staging-build-steps
428440
build-staging-walletconnect:
429441
docker:
430442
- image: cimg/node:16.13.1
@@ -609,6 +621,12 @@ workflows:
609621
<<: *deploy_production_filters
610622
- build-staging-trezor:
611623
<<: *deploy_staging_filters
624+
frontier:
625+
jobs:
626+
- build-frontier:
627+
<<: *deploy_production_filters
628+
- build-staging-frontier:
629+
<<: *deploy_staging_filters
612630
walletconnect:
613631
jobs:
614632
- build-walletconnect:

.github/ISSUE_TEMPLATE/BUG.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ body:
5656
- "@web3-onboard/react"
5757
- "@web3-onboard/torus"
5858
- "@web3-onboard/trezor"
59+
- "@web3-onboard/frontier"
5960
- "@web3-onboard/vue"
6061
- "@web3-onboard/walletconnect"
6162
- "@web3-onboard/walletlink"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ For full documentation, check out the README.md for each package or the [docs pa
9999
- [TallyHo](packages/tallyho/README.md)
100100
- [Enkrypt](packages/enkrypt/README.md)
101101
- [Unstoppable Domains](packages/uauth/README.md)
102+
- [Frontier](packages/frontier/README.md)
102103

103104
**Hardware Wallets**
104105

docs/src/lib/components/examples/connect-wallet/ReactConnectWallet.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import web3authModule from '@web3-onboard/web3auth'
2222
import dcentModule from '@web3-onboard/dcent'
2323
import sequenceModule from '@web3-onboard/sequence'
2424
import tallyHoModule from '@web3-onboard/tallyho'
25+
import frontierModule from '@web3-onboard/frontier'
2526

2627
const INFURA_KEY = ''
2728

@@ -44,6 +45,7 @@ const keepkey = keepkeyModule()
4445
const gnosis = gnosisModule()
4546
const sequence = sequenceModule()
4647
const tally = tallyModule()
48+
const frontier = frontierModule()
4749

4850
const trezorOptions = {
4951
@@ -63,6 +65,7 @@ const wallets = [
6365
keepkey,
6466
sequence,
6567
injected,
68+
frontier,
6669
tally,
6770
ledger,
6871
coinbase,

docs/src/lib/components/examples/connect-wallet/SvelteConnectWallet.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import web3authModule from '@web3-onboard/web3auth'
2121
import dcentModule from '@web3-onboard/dcent'
2222
import sequenceModule from '@web3-onboard/sequence'
2323
import tallyHoModule from '@web3-onboard/tallyho'
24+
import frontierModule from '@web3-onboard/frontier'
2425

2526
const INFURA_KEY = ''
2627

@@ -43,6 +44,7 @@ const keepkey = keepkeyModule()
4344
const gnosis = gnosisModule()
4445
const sequence = sequenceModule()
4546
const tally = tallyModule()
47+
const frontier = frontierModule()
4648

4749
const trezorOptions = {
4850
@@ -66,6 +68,7 @@ const wallets = [
6668
ledger,
6769
coinbase,
6870
dcent,
71+
frontier,
6972
trezor,
7073
walletConnect,
7174
enkrypt,

docs/src/lib/services/onboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const intiOnboard = async () => {
7070
'openid wallet email:optional humanity_check:optional profile:optional social:optional'
7171
}
7272
const uauth = uauthModule(uauthOptions)
73-
73+
7474
const magic = magicModule({
7575
apiKey: 'pk_live_02207D744E81C2BA'
7676
})
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Frontier
2+
3+
[Frontier](https://frontier.xyz/) is a Crypto, DeFi, and NFT wallet browser extension where you can send, store & invest in crypto assets across multiple chains. Explore DeFi in multiple ecosystems, collect and display NFTs, and browse all of Web3 from a single place.
4+
For more information on Frontier, please refer to the [Frontier support](https://help.frontier.xyz/).
5+
6+
### Install
7+
8+
```sh copy
9+
yarn add @web3-onboard/core @web3-onboard/frontier
10+
```
11+
12+
or
13+
14+
```sh copy
15+
npm install @web3-onboard/core @web3-onboard/frontier
16+
```
17+
18+
## Usage
19+
20+
```typescript
21+
import Onboard from '@web3-onboard/core'
22+
import frontierModule from '@web3-onboard/frontier'
23+
24+
// initialize the module
25+
const frontier = frontierModule()
26+
27+
const onboard = Onboard({
28+
// ... other Onboard options
29+
wallets: [
30+
frontier
31+
//... other wallets
32+
]
33+
})
34+
35+
const connectedWallets = await onboard.connectWallet()
36+
console.log(connectedWallets)
37+
```

packages/demo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
"@web3-onboard/coinbase": "^2.1.4",
2828
"@web3-onboard/transaction-preview": "^2.0.0",
2929
"@web3-onboard/dcent": "^2.2.2",
30+
"@web3-onboard/frontier": "^2.0.0-alpha.1",
3031
"@web3-onboard/fortmatic": "^2.0.14",
3132
"@web3-onboard/gas": "^2.1.3",
3233
"@web3-onboard/gnosis": "^2.1.5",
33-
"@web3-onboard/injected-wallets": "^2.6.0-alpha.2",
34+
"@web3-onboard/injected-wallets": "^2.6.0-alpha.3",
3435
"@web3-onboard/keepkey": "^2.3.2",
3536
"@web3-onboard/keystone": "^2.3.2",
3637
"@web3-onboard/ledger": "^2.4.1-alpha.1",

packages/demo/src/App.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import mewWalletModule from '@web3-onboard/mew-wallet'
2424
import uauthModule from '@web3-onboard/uauth'
2525
import phantomModule from '@web3-onboard/phantom'
26+
import frontierModule from '@web3-onboard/frontier'
2627
import {
2728
recoverAddress,
2829
arrayify,
@@ -127,6 +128,7 @@
127128
const tallyho = tallyHoModule()
128129
const zeal = zealModule()
129130
const phantom = phantomModule()
131+
const frontier = frontierModule()
130132
131133
const trezorOptions = {
132134
@@ -158,8 +160,6 @@
158160
const onboard = Onboard({
159161
wallets: [
160162
injected,
161-
zeal,
162-
web3auth,
163163
ledger,
164164
trezor,
165165
walletConnect,
@@ -177,6 +177,9 @@
177177
sequence,
178178
tallyho,
179179
uauth,
180+
web3auth,
181+
zeal,
182+
frontier,
180183
phantom
181184
],
182185
transactionPreview,

packages/frontier/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# @web3-onboard/frontier
2+
3+
## Wallet module for connecting Frontier Wallet through web3-onboard
4+
5+
Frontier Wallet SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized 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.
6+
7+
### Install
8+
9+
**NPM**
10+
`npm i @web3-onboard/core @web3-onboard/frontier`
11+
12+
**Yarn**
13+
`yarn add @web3-onboard/core @web3-onboard/frontier`
14+
15+
## Usage
16+
17+
```typescript
18+
import Onboard from '@web3-onboard/core'
19+
import frontierModule from '@web3-onboard/frontier'
20+
21+
const frontier = frontierModule()
22+
23+
const onboard = Onboard({
24+
// ... other Onboard options
25+
wallets: [
26+
frontier
27+
//... other wallets
28+
]
29+
})
30+
31+
const connectedWallets = await onboard.connectWallet()
32+
console.log(connectedWallets)
33+
```

0 commit comments

Comments
 (0)