0.39.0 • Published 2 months ago

@rango-dev/wallets-core v0.39.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Add a type for child classes (Metamask, ..) to ensure they are implementing required methods.

Template

Template for creating a new provider

const WALLET = WalletType.COINBASE;

class TemplateWallet extends Wallet<InstanceType> implements WalletInterface {
  constructor(onChangeState: EventHandler) {
    super(WALLET, onChangeState);

    // let instance = metamask_instance();
    // if (!!instance) {
    //   this.setProvider(instance);
    //   this.subscirbe();
    // }
  }

  async check() {}
  async connect() {}
  async disconnect() {}
  async subscribe() {}
}

export default {
  initializer: TemplateWallet,
  type: WALLET
};

TODO

  • subscirbe -> subscribe
  • add eagerConnect to core (maybe instead of check?)
  • Reading from wallets (like eth_chainId, eth_accounts) should've a timeout. because sometimes wallet doesn't responding corretly. But requesting (like eth_requestAccounts) shouldn't have a timeout, because it opens a popup and it take some time to get a confirmation or rejction from user.
  • add provider to checkWalletProviders
0.38.1-next.2

3 months ago

0.39.0

2 months ago

0.38.1-next.0

3 months ago

0.38.1-next.1

3 months ago

0.38.0

3 months ago

0.35.1-next.5

6 months ago

0.35.1-next.6

6 months ago

0.35.1-next.1

6 months ago

0.35.1-next.2

6 months ago

0.35.1-next.3

6 months ago

0.35.1-next.4

6 months ago

0.36.1

5 months ago

0.36.0

6 months ago

0.35.1-next.0

7 months ago

0.37.1-next.0

4 months ago

0.37.1-next.1

4 months ago

0.37.0

4 months ago

0.36.2-next.3

5 months ago

0.36.2-next.0

5 months ago

0.36.2-next.2

5 months ago

0.36.2-next.1

5 months ago

0.35.0

7 months ago

0.34.1-next.1

7 months ago

0.34.1-next.0

7 months ago

0.34.0

7 months ago

0.33.1-next.3

7 months ago

0.33.1-next.2

8 months ago

0.33.1-next.1

8 months ago

0.33.0

8 months ago

0.33.1-next.0

8 months ago

0.32.0

8 months ago

0.31.1-next.1

8 months ago

0.31.1-next.0

8 months ago

0.31.0

9 months ago

0.30.1-next.0

9 months ago

0.30.0

10 months ago

0.29.1-next.1

10 months ago

0.29.1-next.0

10 months ago

0.29.0

10 months ago

0.28.1-next.2

10 months ago

0.28.1-next.1

10 months ago

0.28.1-next.0

10 months ago

0.28.0

11 months ago

0.27.0

11 months ago

0.26.1-next.1

12 months ago

0.25.0

12 months ago

0.26.1-next.0

12 months ago

0.26.0

12 months ago

0.23.0

12 months ago

0.25.1-next.0

12 months ago

0.24.1-next.0

12 months ago

0.24.0

12 months ago

0.22.1-next.6

1 year ago

0.20.0

1 year ago

0.5.1-next.10

1 year ago

0.5.1-next.13

1 year ago

0.13.0

1 year ago

0.5.1-next.11

1 year ago

0.5.1-next.12

1 year ago

0.17.0

1 year ago

0.7.0

1 year ago

0.9.1-next.0

1 year ago

0.21.0

1 year ago

0.14.0

1 year ago

0.18.0

1 year ago

0.22.1-next.4

1 year ago

0.22.1-next.3

1 year ago

0.22.1-next.5

1 year ago

0.22.1-next.0

1 year ago

0.22.1-next.2

1 year ago

0.22.1-next.1

1 year ago

0.10.0

1 year ago

0.22.0

1 year ago

0.8.0

1 year ago

0.17.1-next.0

1 year ago

0.17.1-next.1

1 year ago

0.17.1-next.2

1 year ago

0.19.0

1 year ago

0.11.0

1 year ago

0.15.0

1 year ago

0.8.1-next.4

1 year ago

0.8.1-next.3

1 year ago

0.8.1-next.6

1 year ago

0.8.1-next.5

1 year ago

0.8.1-next.0

1 year ago

0.8.1-next.2

1 year ago

0.8.1-next.1

1 year ago

0.9.0

1 year ago

0.14.1-next.0

1 year ago

0.15.1-next.4

1 year ago

0.15.1-next.3

1 year ago

0.15.1-next.5

1 year ago

0.12.0

1 year ago

0.16.0

1 year ago

0.15.1-next.0

1 year ago

0.15.1-next.2

1 year ago

0.15.1-next.1

1 year ago

0.6.0

1 year ago

0.5.1-next.7

1 year ago

0.5.1-next.6

1 year ago

0.5.1-next.9

1 year ago

0.5.1-next.8

1 year ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.14-next.11

2 years ago

0.1.14-next.12

2 years ago

0.1.14-next.13

2 years ago

0.1.14-next.14

2 years ago

0.1.14-next.10

2 years ago

0.1.16-next.6

2 years ago

0.1.14-next.15

2 years ago

0.1.16-next.7

2 years ago

0.1.14-next.16

2 years ago

0.1.16-next.8

2 years ago

0.1.16-next.2

2 years ago

0.1.16-next.3

2 years ago

0.1.14-next.2

2 years ago

0.1.16-next.4

2 years ago

0.1.14-next.1

2 years ago

0.1.16-next.5

2 years ago

0.1.14-next.0

2 years ago

0.1.16-next.0

2 years ago

0.1.16-next.1

2 years ago

0.5.1-next.1

2 years ago

0.5.1-next.0

2 years ago

0.5.1-next.3

2 years ago

0.5.1-next.2

2 years ago

0.5.1-next.5

2 years ago

0.5.1-next.4

2 years ago

0.3.0

2 years ago

0.5.0

2 years ago

0.2.0

2 years ago

0.4.0

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.11-next.71

2 years ago

0.1.11-next.74

2 years ago

0.1.11-next.75

2 years ago

0.1.11-next.72

2 years ago

0.1.11-next.73

2 years ago

0.1.11-next.78

2 years ago

0.1.11-next.79

2 years ago

0.1.11-next.76

2 years ago

0.1.11-next.77

2 years ago

0.1.11-next.81

2 years ago

0.1.11-next.82

2 years ago

0.1.11-next.80

2 years ago

0.1.11-next.85

2 years ago

0.1.11-next.86

2 years ago

0.1.11-next.84

2 years ago

0.1.11-next.89

2 years ago

0.1.11-next.87

2 years ago

0.1.11-next.88

2 years ago

0.1.11-next.70

2 years ago

0.1.11-next.69

2 years ago