Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding web-authenticator plugin #326

Draft
wants to merge 12 commits into
base: dev
Choose a base branch
from
3 changes: 3 additions & 0 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@wharfkit/wallet-plugin-privatekey": "^1.1.0",
"@wharfkit/wallet-plugin-scatter": "^1.5.1",
"@wharfkit/wallet-plugin-tokenpocket": "^1.5.1",
"@wharfkit/wallet-plugin-web-authenticator": "^0.1.0",
"@wharfkit/wallet-plugin-wombat": "^1.5.1",
"@wharfkit/web-renderer": "^1.4.1",
"big.js": "^6.2.1",
Expand Down Expand Up @@ -513,6 +514,8 @@

"@wharfkit/wallet-plugin-tokenpocket": ["@wharfkit/[email protected]", "", { "dependencies": { "tslib": "^2.1.0" }, "peerDependencies": { "@wharfkit/protocol-scatter": "^1.3.1", "@wharfkit/session": "^1.4.0" } }, "sha512-Rm3ARYMW3vkWUFZe0Q1SKQVDSvGzkvb/hmlcuBdQ8xSmR0fBTRDdcIx9QgD7uc5c9hKBKuk2AecvwB+JVF3A3g=="],

"@wharfkit/wallet-plugin-web-authenticator": ["@wharfkit/[email protected]", "", { "dependencies": { "@wharfkit/protocol-esr": "^1.3.2", "tslib": "^2.1.0" }, "peerDependencies": { "@wharfkit/session": "^1.2.7" } }, "sha512-VxvNI3n8jOZVSJOIFKgKApymARVfS1ijZUc6gA5saq1N96u+afXx15h3K+EifaRt0F4Rx9J8YaWyFNrOtW5tcw=="],

"@wharfkit/wallet-plugin-wombat": ["@wharfkit/[email protected]", "", { "dependencies": { "tslib": "^2.1.0" }, "peerDependencies": { "@wharfkit/protocol-scatter": "^1.3.1", "@wharfkit/session": "^1.4.0" } }, "sha512-zQFBv9Nc/+N2yWLNg35BByA+4mtuU/XcSbQ8UmDcPR8MUQmhn9cRCSUK8y0anDLgZniqIDcML+lgda3MXK+5/w=="],

"@wharfkit/web-renderer": ["@wharfkit/[email protected]", "", { "peerDependencies": { "@wharfkit/session": "^1.4.0" } }, "sha512-ky/keS0rHxJcdIWLo7d9H6eo+rK0l2mQj/3xOCwVaDKBAd/dTQwuqYIzOYMC9azdyMglgNcTRgYWm5PJrU4lIA=="],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"@wharfkit/wallet-plugin-privatekey": "^1.1.0",
"@wharfkit/wallet-plugin-scatter": "^1.5.1",
"@wharfkit/wallet-plugin-tokenpocket": "^1.5.1",
"@wharfkit/wallet-plugin-web-authenticator": "^0.1.0",
"@wharfkit/wallet-plugin-wombat": "^1.5.1",
"@wharfkit/web-renderer": "^1.4.1",
"big.js": "^6.2.1",
Expand Down
6 changes: 5 additions & 1 deletion src/lib/wharf/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { WalletPluginMultiSig } from '$lib/wharf/plugins/multisig';
import { WalletPluginPrivateKey } from '@wharfkit/wallet-plugin-privatekey';
import { WalletPluginScatter } from '@wharfkit/wallet-plugin-scatter';
import { WalletPluginTokenPocket } from '@wharfkit/wallet-plugin-tokenpocket';
import { WalletPluginWebAuthenticator } from '@wharfkit/wallet-plugin-web-authenticator';
import { WalletPluginWombat } from '@wharfkit/wallet-plugin-wombat';

import { TransactPluginResourceProvider } from '@wharfkit/transact-plugin-resource-provider';
Expand All @@ -20,7 +21,10 @@ export const baseWalletPlugins: WalletPlugin[] = [
new WalletPluginMetaMask(),
new WalletPluginScatter(),
new WalletPluginTokenPocket(),
new WalletPluginWombat()
new WalletPluginWombat(),
new WalletPluginWebAuthenticator({
webAuthenticatorUrl: 'https://moving-signing-logic-to-plug.web-authenticator-a83.pages.dev'
})
];

// If a local key is provided, add the private key wallet
Expand Down