Skip to content

Commit

Permalink
enable only kernel and safe in demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Sep 26, 2024
1 parent edddbb9 commit 79c14ee
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
32 changes: 16 additions & 16 deletions demo/vue-app-new/src/MainView.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
import {
AccountAbstractionProvider,
BiconomySmartAccount,
// BiconomySmartAccount,
ISmartAccount,
KernelSmartAccount,
LightSmartAccount,
// LightSmartAccount,
SafeSmartAccount,
SimpleSmartAccount,
TrustSmartAccount,
// SimpleSmartAccount,
// TrustSmartAccount,
} from "@web3auth/account-abstraction-provider";
import { CHAIN_NAMESPACES, ChainNamespaceType, IAdapter, IBaseProvider, IProvider, storageAvailable, WALLET_ADAPTERS } from "@web3auth/base";
import { CommonPrivateKeyProvider } from "@web3auth/base-provider";
Expand Down Expand Up @@ -86,21 +86,21 @@ const accountAbstractionProvider = computed((): IBaseProvider<IProvider> | undef
// setup aa provider
let smartAccountInit: ISmartAccount;
switch (formData.smartAccountType) {
case "biconomy":
smartAccountInit = new BiconomySmartAccount();
break;
// case "biconomy":
// smartAccountInit = new BiconomySmartAccount();
// break;
case "kernel":
smartAccountInit = new KernelSmartAccount();
break;
case "trust":
smartAccountInit = new TrustSmartAccount();
break;
case "light":
smartAccountInit = new LightSmartAccount();
break;
case "simple":
smartAccountInit = new SimpleSmartAccount();
break;
// case "trust":
// smartAccountInit = new TrustSmartAccount();
// break;
// case "light":
// smartAccountInit = new LightSmartAccount();
// break;
// case "simple":
// smartAccountInit = new SimpleSmartAccount();
// break;
case "safe":
default:
smartAccountInit = new SafeSmartAccount();
Expand Down
10 changes: 5 additions & 5 deletions demo/vue-app-new/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ export const defaultLoginMethod: Record<LOGIN_PROVIDER_TYPE, FormConfigSettings>
{} as Record<LOGIN_PROVIDER_TYPE, FormConfigSettings>
);

export type SmartAccountType = "safe" | "biconomy" | "kernel" | "trust" | "light" | "simple";
export type SmartAccountType = "safe" | "kernel";

export const SmartAccountOptions: { name: string; value: SmartAccountType }[] = [
{ name: "Safe", value: "safe" },
{ name: "Biconomy", value: "biconomy" },
// { name: "Biconomy", value: "biconomy" },
{ name: "Kernel", value: "kernel" },
{ name: "Trust", value: "trust" },
{ name: "Light", value: "light" },
{ name: "Simple", value: "simple" },
// { name: "Trust", value: "trust" },
// { name: "Light", value: "light" },
// { name: "Simple", value: "simple" },
];

export const getDefaultBundlerUrl = (chainId: string): string => {
Expand Down

0 comments on commit 79c14ee

Please sign in to comment.