0.44.0 • Published 5 months ago

@rango-dev/wallets-core v0.44.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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.41.1-next.1

9 months ago

0.41.1-next.0

9 months ago

0.41.1-next.3

8 months ago

0.41.1-next.2

8 months ago

0.43.0

6 months ago

0.41.1-next.4

8 months ago

0.44.0

5 months ago

0.41.0

9 months ago

0.42.0

8 months ago

0.43.1-next.0

6 months ago

0.43.1-next.1

6 months ago

0.43.1-next.4

6 months ago

0.43.1-next.5

6 months ago

0.43.1-next.2

6 months ago

0.43.1-next.3

6 months ago

0.43.1-next.8

6 months ago

0.43.1-next.9

5 months ago

0.43.1-next.6

6 months ago

0.43.1-next.7

6 months ago

0.40.0

12 months ago

0.40.1-next.9

10 months ago

0.40.1-next.8

10 months ago

0.40.1-next.5

10 months ago

0.40.1-next.3

10 months ago

0.40.1-next.4

10 months ago

0.40.1-next.1

11 months ago

0.40.1-next.2

11 months ago

0.40.1-next.0

11 months ago

0.42.1-next.5

7 months ago

0.42.1-next.6

6 months ago

0.42.1-next.7

6 months ago

0.42.1-next.1

7 months ago

0.42.1-next.2

7 months ago

0.42.1-next.3

7 months ago

0.40.1-next.10

9 months ago

0.42.1-next.4

7 months ago

0.40.1-next.11

9 months ago

0.40.1-next.12

9 months ago

0.40.1-next.13

9 months ago

0.40.1-next.14

9 months ago

0.42.1-next.0

7 months ago

0.39.1-next.0

12 months ago

0.43.1-next.10

5 months ago

0.43.1-next.11

5 months ago

0.38.1-next.2

1 year ago

0.39.0

1 year ago

0.38.1-next.0

1 year ago

0.38.1-next.1

1 year ago

0.38.0

1 year ago

0.35.1-next.5

1 year ago

0.35.1-next.6

1 year ago

0.35.1-next.1

1 year ago

0.35.1-next.2

1 year ago

0.35.1-next.3

1 year ago

0.35.1-next.4

1 year ago

0.36.1

1 year ago

0.36.0

1 year ago

0.35.1-next.0

1 year ago

0.37.1-next.0

1 year ago

0.37.1-next.1

1 year ago

0.37.0

1 year ago

0.36.2-next.3

1 year ago

0.36.2-next.0

1 year ago

0.36.2-next.2

1 year ago

0.36.2-next.1

1 year ago

0.35.0

1 year ago

0.34.1-next.1

1 year ago

0.34.1-next.0

1 year ago

0.34.0

1 year ago

0.33.1-next.3

1 year ago

0.33.1-next.2

2 years ago

0.33.1-next.1

2 years ago

0.33.0

2 years ago

0.33.1-next.0

2 years ago

0.32.0

2 years ago

0.31.1-next.1

2 years ago

0.31.1-next.0

2 years ago

0.31.0

2 years ago

0.30.1-next.0

2 years ago

0.30.0

2 years ago

0.29.1-next.1

2 years ago

0.29.1-next.0

2 years ago

0.29.0

2 years ago

0.28.1-next.2

2 years ago

0.28.1-next.1

2 years ago

0.28.1-next.0

2 years ago

0.28.0

2 years ago

0.27.0

2 years ago

0.26.1-next.1

2 years ago

0.25.0

2 years ago

0.26.1-next.0

2 years ago

0.26.0

2 years ago

0.23.0

2 years ago

0.25.1-next.0

2 years ago

0.24.1-next.0

2 years ago

0.24.0

2 years ago

0.22.1-next.6

2 years ago

0.20.0

2 years ago

0.5.1-next.10

2 years ago

0.5.1-next.13

2 years ago

0.13.0

2 years ago

0.5.1-next.11

2 years ago

0.5.1-next.12

2 years ago

0.17.0

2 years ago

0.7.0

2 years ago

0.9.1-next.0

2 years ago

0.21.0

2 years ago

0.14.0

2 years ago

0.18.0

2 years ago

0.22.1-next.4

2 years ago

0.22.1-next.3

2 years ago

0.22.1-next.5

2 years ago

0.22.1-next.0

2 years ago

0.22.1-next.2

2 years ago

0.22.1-next.1

2 years ago

0.10.0

2 years ago

0.22.0

2 years ago

0.8.0

2 years ago

0.17.1-next.0

2 years ago

0.17.1-next.1

2 years ago

0.17.1-next.2

2 years ago

0.19.0

2 years ago

0.11.0

2 years ago

0.15.0

2 years ago

0.8.1-next.4

2 years ago

0.8.1-next.3

2 years ago

0.8.1-next.6

2 years ago

0.8.1-next.5

2 years ago

0.8.1-next.0

2 years ago

0.8.1-next.2

2 years ago

0.8.1-next.1

2 years ago

0.9.0

2 years ago

0.14.1-next.0

2 years ago

0.15.1-next.4

2 years ago

0.15.1-next.3

2 years ago

0.15.1-next.5

2 years ago

0.12.0

2 years ago

0.16.0

2 years ago

0.15.1-next.0

2 years ago

0.15.1-next.2

2 years ago

0.15.1-next.1

2 years ago

0.6.0

2 years ago

0.5.1-next.7

2 years ago

0.5.1-next.6

2 years ago

0.5.1-next.9

2 years ago

0.5.1-next.8

2 years 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

3 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

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.11-next.71

3 years ago

0.1.11-next.74

3 years ago

0.1.11-next.75

3 years ago

0.1.11-next.72

3 years ago

0.1.11-next.73

3 years ago

0.1.11-next.78

3 years ago

0.1.11-next.79

3 years ago

0.1.11-next.76

3 years ago

0.1.11-next.77

3 years ago

0.1.11-next.81

3 years ago

0.1.11-next.82

3 years ago

0.1.11-next.80

3 years ago

0.1.11-next.85

3 years ago

0.1.11-next.86

3 years ago

0.1.11-next.84

3 years ago

0.1.11-next.89

3 years ago

0.1.11-next.87

3 years ago

0.1.11-next.88

3 years ago

0.1.11-next.70

3 years ago

0.1.11-next.69

3 years ago