jigglyjams-aleo-adapters
v1.1.4
Published
Aleo Wallet Adapters library is an easy to use, yet flexible and robust library of adapters for wallets such as: Leo, Fox, Soter, Puzzle, Avail.
Downloads
4
Maintainers
Readme
Aleo Adapters
Aleo Wallet Adapters library is an easy to use, yet flexible and robust library of adapters for wallets such as: Leo, Fox, Soter, Puzzle, Avail.
This library allows you to simply import wallet adapters and conveniently integrate them into your project.
The major part of the code is largely based on a great job done by Aleo Name Service team
Quick Setup (using React UI)
📲Install
Install aleo adapters library:
npm install aleo-adapters
Export adapters which you want to use
🛠️Quick start
npx create-react-app aleo_dapp
cd aleo_dapp
Install adapters library:
npm install aleo-adapters
Replace code in src/App.js
with:
import { useMemo } from "react";
import { WalletProvider } from "aleo-hooks";
import {
PuzzleWalletAdapter,
LeoWalletAdapter,
FoxWalletAdapter,
SoterWalletAdapter,
AvailWalletAdapter,
configureConnectionForPuzzle
} from 'aleo-adapters';
import "./App.css";
function App() {
const wallets = useMemo(
() => [
new LeoWalletAdapter({
appName: 'Aleo app',
}),
new PuzzleWalletAdapter({
appName: 'Aleo app',
}),
new FoxWalletAdapter({
appName: 'Aleo app',
}),
new SoterWalletAdapter({
appName: 'Aleo app',
}),
new AvailWalletAdapter({
appName: 'Aleo app',
})
],
[],
);
useEffect(() => {
configureConnectionForPuzzle({
dAppName: 'Aleo',
dAppDescription: 'Aleo description',
dAppUrl: `https://${window.location.host}`,
dAppIconURL:
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABCsAAAQsCAYAAAC4zhbpAAAACXBIWXMAAC4jAAAuIwF4pT92AAAgAElEQVR4nOzdjU2c6Zau4TpHJwA7AzoDHMHgDHAEgyMAIgBHUBCBycBkYGdgMmgysDPYR6vc7MYYqL/vZ633vS7JmunRltv91bS06+FeVf9nsVgcLQAAAACSiLHiP14MAAAAIIv/65UAAAAAMjFWAAAAAKkYKwAAAIBUjBUAAABAKsYKAAAAIBVjBQAAAJCKsQIAAABIxVgBAAAApGKsAAAAAFIxVgAAAACp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kiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACkiBUAAABAilgBAAAApIgVAAAAQIpYAQAAAKSIFQAAAECKWAEAAACk/J6m6eIkAAAAQMI0TX8BDu8uxgMCURYAAAAASUVORK5CYII=',
});
}, []);
return (
<WalletProvider wallets={wallets} autoConnect>
<div className="App">
Some content...
</div>
</WalletProvider>
);
}
export default App;
This code uses four reusable most popular wallet aleo adapters
Launch it with:
npm start
and build your next big Aleo dApp!
Supported Wallets
- Leo Wallet: An Aleo wallet adapter for Leo Wallet.
- Fox Wallet: An Aleo wallet adapter for Fox Wallet.
- Puzzle Wallet: An Aleo wallet adapter for Puzzle Wallet.
- Soter Wallet: An Aleo wallet adapter for Soter Wallet.
- Avail Wallet: An Aleo wallet adapter for Avail Wallet.