Skip to content

Commit

Permalink
Merge pull request #1375 from DA0-DA0/development
Browse files Browse the repository at this point in the history
Deploy new Cosmos Kit Wallets
  • Loading branch information
NoahSaso authored Sep 12, 2023
2 parents 5d31d66 + da69b50 commit 3a5ba72
Show file tree
Hide file tree
Showing 5 changed files with 664 additions and 497 deletions.
6 changes: 6 additions & 0 deletions packages/stateful/components/WalletProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { wallets as coin98Wallets } from '@cosmos-kit/coin98'
import { Endpoints, SignerOptions } from '@cosmos-kit/core'
import { wallets as cosmostationWallets } from '@cosmos-kit/cosmostation'
import { wallets as finWallets } from '@cosmos-kit/fin'
import { wallets as keplrExtensionWallets } from '@cosmos-kit/keplr-extension'
import { wallets as keplrMobileWallets } from '@cosmos-kit/keplr-mobile'
import { wallets as leapWallets } from '@cosmos-kit/leap'
import { wallets as metamaskWallets } from '@cosmos-kit/leap-metamask-cosmos-snap'
import { wallets as okxWallets } from '@cosmos-kit/okxwallet'
import { wallets as omniWallets } from '@cosmos-kit/omni'
import { ChainProvider, walletContext } from '@cosmos-kit/react-lite'
import { wallets as shellWallets } from '@cosmos-kit/shell'
Expand Down Expand Up @@ -166,6 +169,7 @@ export const WalletProvider = ({
isKeplrMobileWeb
? keplrExtensionWallets
: [
...metamaskWallets,
...keplrExtensionWallets,
// Only allow Keplr Mobile on mainnet since it can't use testnet.
...(MAINNET ? keplrMobileWallets : []),
Expand All @@ -178,6 +182,8 @@ export const WalletProvider = ({
...omniWallets,
...shellWallets,
...xdefiWallets,
...okxWallets,
...finWallets,
// Google, Apple, Discord, Twitter
...web3AuthWallets,
]
Expand Down
32 changes: 18 additions & 14 deletions packages/stateful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,24 @@
"@cosmjs/encoding": "^0.31.0",
"@cosmjs/proto-signing": "^0.31.0",
"@cosmjs/stargate": "^0.31.0",
"@cosmos-kit/coin98": "^2.3.3",
"@cosmos-kit/core": "^2.5.3",
"@cosmos-kit/cosmostation": "^2.3.3",
"@cosmos-kit/keplr-extension": "^2.3.3",
"@cosmos-kit/keplr-mobile": "^2.3.3",
"@cosmos-kit/leap": "^2.3.3",
"@cosmos-kit/omni": "^2.3.3",
"@cosmos-kit/react-lite": "^2.4.5",
"@cosmos-kit/shell": "^2.3.3",
"@cosmos-kit/station": "^2.3.3",
"@cosmos-kit/trust": "^2.3.3",
"@cosmos-kit/vectis": "^2.3.3",
"@cosmos-kit/web3auth": "^2.3.3",
"@cosmos-kit/xdefi-extension": "^2.3.3",
"@cosmos-kit/coin98": "^2.3.6",
"@cosmos-kit/core": "^2.6.2",
"@cosmos-kit/cosmostation": "^2.3.7",
"@cosmos-kit/fin": "^2.3.8",
"@cosmos-kit/keplr-extension": "^2.4.3",
"@cosmos-kit/keplr-mobile": "^2.3.6",
"@cosmos-kit/leap": "^2.3.6",
"@cosmos-kit/leap-metamask-cosmos-snap": "^0.2.0",
"@cosmos-kit/ledger": "^2.4.3",
"@cosmos-kit/okxwallet": "^2.2.7",
"@cosmos-kit/omni": "^2.3.6",
"@cosmos-kit/react-lite": "^2.4.8",
"@cosmos-kit/shell": "^2.3.6",
"@cosmos-kit/station": "^2.3.7",
"@cosmos-kit/trust": "^2.3.6",
"@cosmos-kit/vectis": "^2.3.6",
"@cosmos-kit/web3auth": "^2.3.6",
"@cosmos-kit/xdefi-extension": "^2.4.3",
"@dao-dao/i18n": "2.2.0",
"@dao-dao/protobuf": "2.2.0",
"@dao-dao/state": "2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"devDependencies": {
"@chain-registry/types": "^0.16.0",
"@cosmjs/cosmwasm-stargate": "^0.31.0",
"@cosmos-kit/web3auth": "^2.3.3",
"@cosmos-kit/web3auth": "^2.3.6",
"@dao-dao/config": "2.2.0",
"next-i18next": "^11.0.0",
"pusher-js": "^7.6.0",
Expand Down
7 changes: 5 additions & 2 deletions packages/utils/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const defaultHttpBatchClientOptions = {
export class BatchClient {
protected readonly url: string
protected readonly options: BatchClientOptions
private timer: NodeJS.Timer | number | undefined
private timer: number | undefined
private readonly queue: QueueItem[]

constructor(endpoint: string, options: Partial<BatchClientOptions> = {}) {
Expand All @@ -41,7 +41,10 @@ export class BatchClient {
defaultHttpBatchClientOptions.dispatchInterval,
}
this.url = endpoint
this.timer = setInterval(() => this.tick(), options.dispatchInterval)
this.timer = setInterval(
() => this.tick(),
options.dispatchInterval
) as unknown as number
this.validate()
}

Expand Down
Loading

2 comments on commit 3a5ba72

@vercel
Copy link

@vercel vercel bot commented on 3a5ba72 Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3a5ba72 Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.