Closed spencercap closed 11 months ago
ideas:
enable
enableWallet('inkey');
enableWallet(WALLET_ID.Pera);
enableWallet(WALLET_ID.Mnemonic, 'twenty five words ...');
connect
let accts = await algonaut.connect('inkey', {
src: 'localhost:5200'
});
? should .connect also enable the wallet if its not enabled? what enable really does it sets init params IF connect is called w/out a 2nd init params arg. so... there should only be 1 method for ease for devs and better overall api. thus, get rid of .enable
thus...
setInitParams('inkey', {
src: 'http://localhost:5200/',
align: 'center'
});
await a.connect('inkey');
did most of this work here: https://github.com/thencc/any-wallet/pull/25
left TODO... update algjs to use the latest aw + remove the .connect() api complexity in algjs
any-wallet
thinks of ENABLING and CONNECTING wallets as 2 separate things..connect
logic into any-wallet.connect
take different args than enable?