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

feat: wallet manager package #12

Merged
merged 52 commits into from
Nov 29, 2023
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
2eac503
chore: setup pipelines, details on package.json file, linter and pret…
wainola Sep 12, 2023
c41a2bc
chore: folder structure for the packages
wainola Sep 14, 2023
3ffdae4
chore: setup for modern yarn and pipelines to check building phase
wainola Sep 15, 2023
4fa5870
chore: remove build step
wainola Sep 15, 2023
0788c62
chore: pipeline for the react component
wainola Sep 15, 2023
c60f73e
chore: scripts and adding some stuff to gitignores
wainola Sep 15, 2023
428f718
chore: eslint
wainola Sep 15, 2023
fe0dc5d
feat: basic implementation for wallet classes
wainola Sep 15, 2023
74c9649
feat: EmvWallet class base implementation
wainola Sep 28, 2023
a8861d0
chore: fix conflicts
wainola Sep 28, 2023
94fd2b0
chore: update package and lock file with vitest
wainola Sep 28, 2023
e6caa8d
feat: substrate wallet class base implementation and some fixes for E…
wainola Sep 28, 2023
43666c3
chore: update tests
wainola Oct 2, 2023
08e7d70
feat: base implementation for reactive controller of wallet manager
wainola Oct 4, 2023
5149995
chore: update Evm base class
wainola Oct 4, 2023
8697e81
chore: basic tests for the reactive controller
wainola Oct 5, 2023
8c9b14b
feat: base implementation for context provider
wainola Oct 11, 2023
e41ebd4
feat: init of providers
wainola Oct 11, 2023
1c3cd31
update package lock
FSM1 Oct 11, 2023
c3e76e3
fix lint and spelling
FSM1 Oct 11, 2023
fa18c10
chore: update on tsconfig and lock file
wainola Oct 11, 2023
c90ab38
feat: public methods to react to change of account and network
wainola Oct 12, 2023
ad4b54a
feat: update yarn lock
wainola Oct 12, 2023
e6c6c0e
update lock
FSM1 Oct 12, 2023
d295070
chore: handling error when connection to provider is rejected and som…
wainola Oct 13, 2023
1386eb8
chore: moving synthetic event creator as util function and removing i…
wainola Oct 18, 2023
b099ce9
chore: addressing comments on pr review
wainola Oct 19, 2023
556c825
chore: removing static methods to instantiate evm wallet class
wainola Oct 19, 2023
797c073
chore: ethers and lit context as peer dependencies
wainola Oct 19, 2023
95b496d
chore: lit context back to dependency definition
wainola Oct 19, 2023
a4cfef5
chore: pr review
wainola Oct 30, 2023
98d0120
chore: ethers as peer dependency and update on lock file
wainola Oct 30, 2023
2c5ad0a
chore: fixating dependencies
wainola Oct 30, 2023
6319a44
chore: versiong yarn
wainola Oct 30, 2023
3f74c0c
chore: going to stable version of yarn
wainola Oct 30, 2023
2a80e1e
chore: update lock file
wainola Oct 30, 2023
eb39261
chore: update yarnrc file
wainola Oct 30, 2023
94d5694
update lock file
FSM1 Oct 30, 2023
2684963
chore: removing checksum behaviour flag
wainola Oct 30, 2023
40592ce
chore: removing js docs comments, adding yarn folder to the gitignore
wainola Nov 2, 2023
fba19a5
chore: changing to removeAllListeners
wainola Nov 2, 2023
f04f2b0
chore: change on gitignore
wainola Nov 2, 2023
909bace
chore: remove reference to yarn release file
wainola Nov 2, 2023
d002ac2
chore: change method names
wainola Nov 2, 2023
244bc78
chore: PR review, changes on constructor implementation
wainola Nov 6, 2023
68ba84d
chore: update gitignore
wainola Nov 7, 2023
ab3e13f
chore: fixing and adding some more basic tests
wainola Nov 7, 2023
c3ab7da
chore: change name of the context provider
wainola Nov 7, 2023
47302b8
chore: init wallet manager on connectedCallback and not the constructor
wainola Nov 23, 2023
7b90cae
chore: default parameter for network value
wainola Nov 23, 2023
3fdf418
chore: pr review last comments
wainola Nov 28, 2023
9405bd5
chore: rename networks property to network
wainola Nov 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: init of providers
  • Loading branch information
wainola committed Oct 11, 2023
commit e41ebd44e8167f66f5f5b11123b9584cbd27456e
12 changes: 9 additions & 3 deletions packages/wallet-manager/src/WalletManagerContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ export class WalletManagerContextProvider extends LitElement {
this.dispatchEvent(event);
};

@property({ type: String })
chainId?: string;

@property({ type: Object })
web3Provider?: ethers.providers.Web3Provider;

@property({ type: Object })
apiPromise?: ApiPromise;

@property({ type: String })
wssProvider?: string;

constructor() {
super();
this.walletManagerController = new WalletManagerController(this);
Expand All @@ -55,6 +55,12 @@ export class WalletManagerContextProvider extends LitElement {
super.connectedCallback();
if (this.web3Provider) {
this.walletManagerController?.initFromWeb3Provider(this.web3Provider);
} else if (this.apiPromise) {
this.walletManagerController?.connectFromApiPromise(this.apiPromise!);
wainola marked this conversation as resolved.
Show resolved Hide resolved
} else if (this.wssProvider) {
this.walletManagerController?.connectFromWssProvider(this.wssProvider!);
} else {
this.walletManagerController?.initFromWindow();
}
}

Expand Down
Loading