Skip to content

Commit

Permalink
add interface Defly
Browse files Browse the repository at this point in the history
  • Loading branch information
allandiamante committed Feb 3, 2024
1 parent 8793582 commit ec89769
Showing 1 changed file with 6 additions and 46 deletions.
52 changes: 6 additions & 46 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ export interface Pera {
deeplink?: string
}

export interface Defly {
// connector: WalletConnect
uri?: string
deeplink?: string
}

export interface Provider {
myAlgo: MyAlgoConnect
pera: PeraWalletConnect
Expand Down Expand Up @@ -132,50 +138,4 @@ export class Wallet {
}
}

// private setExodus () {
// try {
// const exodusSigner = exodus.algorand

// exodusSigner.on('disconnect', this.disconnectAddress({ wallet: Wallets.EXODUS }))

// return exodusSigner
// } catch {
// return undefined
// }
// }

// Wallet Connect implementation
// private setPera () {
// if (typeof window.global !== "undefined") {
// // Pollyfill for Buffer
// // @ts-ignore
// window.global = window

// const { Buffer } = buffer

// // @ts-ignore
// if (!window.Buffer) window.Buffer = Buffer
// } else {
// const { Buffer } = buffer

// // @ts-ignore
// if (!window.Buffer) window.Buffer = Buffer
// }

// // const connector = new WalletConnect({
// // bridge: "https://bridge.walletconnect.org"
// // })

// // if (connector.connected) {
// // return {
// // connector: connector,
// // uri: connector.uri,
// // deeplink: `algorand://` + connector.uri.split(':')[1]
// // }
// // } else {
// // return {
// // connector: connector
// // }
// // }
// }
}

0 comments on commit ec89769

Please sign in to comment.