Skip to content

Commit

Permalink
Merge pull request #2283 from blocknative/release/2.28.0
Browse files Browse the repository at this point in the history
Release 2.28.0
  • Loading branch information
Adamj1232 authored Sep 5, 2024
2 parents 94272ea + a411a35 commit 1c6f8de
Show file tree
Hide file tree
Showing 22 changed files with 1,598 additions and 411 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,38 +106,38 @@ For full documentation, check out the README.md for each package or the [docs pa
**SDK Wallets**

- [Arcana](packages/arcana-auth/README.md)
- [Bitget](packages/bitget/README.md)
- [Blocto](packages/blocto/README.md)
- [Capsule](packages/capsule/README.md)
- [Coinbase](packages/coinbase/README.md)
- [Trust](packages/trust/README.md)
- [OKX](packages/okx/README.md)
- [WalletConnect](packages/walletconnect/README.md)
- [Safe](packages/gnosis/README.md)
- [Magic](packages/magic/README.md)
- [Enkrypt](packages/enkrypt/README.md)
- [FinoaConnect](packages/finoaconnect/README.md)
- [Fortmatic](packages/fortmatic/README.md)
- [Portis](packages/portis/README.md)
- [Frame](packages/frame/README.md)
- [Frontier](packages/frontier/README.md)
- [Infinity Wallet](packages/infinity-wallet/README.md)
- [Magic](packages/magic/README.md)
- [MetaMask](packages/metamask/README.md)
- [MEW-Wallet](packages/mew-wallet/README.md)
- [Web3Auth](packages/web3auth/README.md)
- [Capsule](packages/capsule/README.md)
- [OKX](packages/okx/README.md)
- [Particle Network](packages/particle-network/README.md)
- [Portis](packages/portis/README.md)
- [Safe](packages/gnosis/README.md)
- [Sequence](packages/sequence/README.md)
- [Taho (previously Tally Ho)](packages/tallyho/README.md)
- [Enkrypt](packages/enkrypt/README.md)
- [Trust](packages/trust/README.md)
- [Unstoppable Domains](packages/uauth/README.md)
- [Frontier](packages/frontier/README.md)
- [WalletConnect](packages/walletconnect/README.md)
- [Web3Auth](packages/web3auth/README.md)
- [XDEFI](packages/xdefi/README.md)
- [Infinity Wallet](packages/infinity-wallet/README.md)
- [Frame](packages/frame/README.md)
- [Blocto](packages/blocto/README.md)
- [Particle Network](packages/particle-network/README.md)
- [MetaMask](packages/metamask/README.md)
- [Bitget](packages/bitget/README.md)
- [FinoaConnect](packages/finoaconnect/README.md)

**Hardware Wallets**

- [D'CENT](packages/dcent/README.md)
- [KeepKey](packages/keepkey/README.md)
- [Keystone](packages/keystone/README.md)
- [Ledger](packages/ledger/README.md)
- [Trezor](packages/trezor/README.md)
- [Keystone](packages/keystone/README.md)
- [KeepKey](packages/keepkey/README.md)
- [D'CENT](packages/dcent/README.md)

**Frameworks**

Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@
"@web3-onboard/capsule": "^2.3.0",
"@web3-onboard/cede-store": "^2.3.1",
"@web3-onboard/coinbase": "^2.3.1",
"@web3-onboard/core": "^2.22.1",
"@web3-onboard/core": "^2.22.3-alpha.2",
"@web3-onboard/dcent": "^2.2.8",
"@web3-onboard/enkrypt": "^2.1.1",
"@web3-onboard/finoaconnect": "^2.0.0",
"@web3-onboard/fortmatic": "^2.1.1",
"@web3-onboard/frame": "^2.1.1",
"@web3-onboard/frontier": "^2.1.1",
Expand Down
20 changes: 13 additions & 7 deletions docs/src/lib/services/onboard.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import blocknativeIcon from '../components/icons/blocknative-icon'

let onboard
const getOnboard = async (passedTheme) => {
const getOnboard = async passedTheme => {
const key = 'svelteness::color-scheme'
const scheme = localStorage[key]
let theme = passedTheme || scheme
Expand All @@ -10,8 +10,8 @@ const getOnboard = async (passedTheme) => {
return onboard
}

const classMutationsCheck = (mutationsList) => {
mutationsList.forEach((mutation) => {
const classMutationsCheck = mutationsList => {
mutationsList.forEach(mutation => {
if (onboard && mutation.attributeName === 'class') {
if (mutation.target.className.includes('dark')) {
onboard.state.actions.updateTheme('dark')
Expand All @@ -28,7 +28,7 @@ const classMutationListener = () => {
mutationObserver.observe(document.querySelector('html'), { attributes: true })
}

const intiOnboard = async (theme) => {
const intiOnboard = async theme => {
const { default: Onboard } = await import('@web3-onboard/core')
const { default: injectedModule } = await import('@web3-onboard/injected-wallets')
const { default: trezorModule } = await import('@web3-onboard/trezor')
Expand Down Expand Up @@ -114,8 +114,8 @@ const intiOnboard = async (theme) => {
}
const trezor = trezorModule(trezorOptions)

const finoaConnectOptions = {};
const finoaconnect = finoaConnectModule(finoaConnectOptions);
const finoaConnectOptions = {}
const finoaconnect = finoaConnectModule(finoaConnectOptions)

const uauthOptions = {
clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c',
Expand All @@ -139,7 +139,7 @@ const intiOnboard = async (theme) => {

const capsule = capsuleModule({
environment: Environment.DEVELOPMENT,
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
apiKey: '992bbd9146d5de8ad0419f141d9a7ca7'
})

const particle = particleAuthModule({
Expand Down Expand Up @@ -253,6 +253,12 @@ const intiOnboard = async (theme) => {
token: 'DEGEN',
label: 'Degen',
rpcUrl: 'https://rpc.degen.tips'
},
{
id: 2192,
token: 'SNAXETH',
label: 'SNAX Chain',
rpcUrl: 'https://mainnet.snaxchain.io'
}
],
appMetadata: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Web3 Onboard supports all EVM networks. Supporting a new network is simply a mat
- BNB Chain
- Celo
- Degen
- SNAX
- Fantom
- Gnosis Chain
- Harmony One
Expand Down Expand Up @@ -140,6 +141,12 @@ const onboard = Onboard({
token: 'DEGEN',
label: 'Degen',
rpcUrl: 'https://rpc.degen.tips'
},
{
id: 2192,
token: 'SNAXETH',
label: 'SNAX Chain',
rpcUrl: 'https://mainnet.snaxchain.io'
}
]
})
Expand Down
6 changes: 6 additions & 0 deletions docs/src/routes/docs/[...3]modules/[...1]core/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,12 @@ const onboard = Onboard({
token: 'DEGEN',
label: 'Degen',
rpcUrl: 'https://rpc.degen.tips'
},
{
id: 2192,
token: 'SNAXETH',
label: 'SNAX Chain',
rpcUrl: 'https://mainnet.snaxchain.io'
}
],
appMetadata: {
Expand Down
12 changes: 12 additions & 0 deletions docs/src/routes/examples/[...1]connect-wallet/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ const chains = [
token: 'DEGEN',
label: 'Degen',
rpcUrl: 'https://rpc.degen.tips'
},
{
id: 2192,
token: 'SNAX',
label: 'SNAX Chain',
rpcUrl: 'https://mainnet.snaxchain.io'
}
]

Expand Down Expand Up @@ -441,6 +447,12 @@ const chains = [
token: 'DEGEN',
label: 'Degen',
rpcUrl: 'https://rpc.degen.tips'
},
{
id: 2192,
token: 'SNAXETH',
label: 'SNAX Chain',
rpcUrl: 'https://mainnet.snaxchain.io'
}
]

Expand Down
Loading

0 comments on commit 1c6f8de

Please sign in to comment.