Skip to content

Commit

Permalink
Adding updated Wombat plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Sep 17, 2024
1 parent d7316ce commit 5ead9a7
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 8 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@wharfkit/wallet-plugin-anchor": "^1.4.0",
"@wharfkit/wallet-plugin-metamask": "1.0.0-rc8",
"@wharfkit/wallet-plugin-privatekey": "^1.1.0",
"@wharfkit/wallet-plugin-wombat": "^1.4.0",
"@wharfkit/web-renderer": "^1.4.1",
"big.js": "^6.2.1",
"chart.js": "^4.4.3",
Expand Down
9 changes: 6 additions & 3 deletions src/lib/state/client/wharf.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import WebRenderer from '@wharfkit/web-renderer';
import { WalletPluginAnchor } from '@wharfkit/wallet-plugin-anchor';
import { WalletPluginMetaMask } from '@wharfkit/wallet-plugin-metamask';
import { WalletPluginPrivateKey } from '@wharfkit/wallet-plugin-privatekey';
import { WalletPluginWombat } from '@wharfkit/wallet-plugin-wombat';
import { AccountCreationPluginMetamask } from '@wharfkit/account-creation-plugin-metamask';
import { AccountCreationPluginGreymass } from '@wharfkit/account-creation-plugin-greymass';

Expand All @@ -33,9 +34,11 @@ import {

import { chainMapper } from '$lib/wharf/chains';

const metamaskWalletPlugin = new WalletPluginMetaMask();

const walletPlugins: WalletPlugin[] = [new WalletPluginAnchor(), metamaskWalletPlugin];
const walletPlugins: WalletPlugin[] = [
new WalletPluginAnchor(),
new WalletPluginMetaMask(),
new WalletPluginWombat()
];

const accountCreationPlugins: AccountCreationPlugin[] = [
new AccountCreationPluginMetamask(),
Expand Down
Loading

0 comments on commit 5ead9a7

Please sign in to comment.