Skip to content

Commit

Permalink
Changing over to Wombat (#3)
Browse files Browse the repository at this point in the history
* Changing over to Wombat

* Disabling test since there's no mock for a scatter wallet

* linting
  • Loading branch information
aaroncox authored Aug 17, 2023
1 parent fd9d0fb commit 8e766ee
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 78 deletions.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @wharfkit/wallet-plugin-scatter
# @wharfkit/wallet-plugin-wombat

A Session Kit wallet plugin for the Scatter protocol wallets, like TokenPocket(https://www.tokenpocket.pro/).
A Session Kit wallet plugin for the [Wombat](https://www.wombat.app/) wallet.

## Usage

Expand All @@ -9,30 +9,23 @@ Include this wallet plugin while initializing the SessionKit.
**NOTE**: This wallet plugin will only work with the SessionKit and requires a browser-based environment.

```ts
import {WalletPluginScatter} from '@wharfkit/wallet-plugin-scatter'
import {WalletPluginWombat} from '@wharfkit/wallet-plugin-wombat'

const kit = new SessionKit({
// ... your other options
walletPlugins: [new WalletPluginScatter()],
walletPlugins: [new WalletPluginWombat()],
})
```

If you need to modify which chains are supported, modify the URLs being used, or alter the timeout, you can specify one or more of these paramaters during plugin initialization.

```ts
import {WalletPluginScatter} from '@wharfkit/wallet-plugin-scatter'
import {WalletPluginWombat} from '@wharfkit/wallet-plugin-wombat'

const kit = new SessionKit({
// ... your other options
walletPlugins: [
new WalletPluginScatter({
supportedChains: [
'1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4', // WAX (Mainnet)
],
url: 'https://tokenpocket.pro',
autoUrl: 'https://idm-api.mycloudwallet.com/v1/accounts/auto-accept',
loginTimeout: 300000, // 5 minutes
}),
new WalletPluginWombat(),
],
})
```
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@wharfkit/wallet-plugin-scatter",
"description": "A WalletPlugin for the Scatter protocol wallets for use within the @wharfkit/session.",
"version": "0.1.0-beta3",
"homepage": "https://github.com/wharfkit/wallet-plugin-scatter",
"name": "@wharfkit/wallet-plugin-wombat",
"description": "A WalletPlugin for the Wombat wallet for use within the @wharfkit/session.",
"version": "0.1.0-beta1",
"homepage": "https://github.com/wharfkit/wallet-plugin-wombat",
"license": "BSD-3-Clause",
"main": "lib/wallet-plugin-scatter.js",
"module": "lib/wallet-plugin-scatter.m.js",
"types": "lib/wallet-plugin-scatter.d.ts",
"main": "lib/wallet-plugin-wombat.js",
"module": "lib/wallet-plugin-wombat.m.js",
"types": "lib/wallet-plugin-wombat.d.ts",
"sideEffects": false,
"files": [
"lib/*",
Expand Down
Loading

0 comments on commit 8e766ee

Please sign in to comment.