@rabby-wallet/eth-hd-keyring 3.6.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +14 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -119,7 +119,20 @@ class HdKeyring extends SimpleKeyring {
119
119
  getPreviousPage() {
120
120
  return this.__getPage(-1);
121
121
  }
122
-
122
+ getAddresses(start: number, end: number) {
123
+ const from = start;
124
+ const to = end;
125
+ const accounts: any[] = [];
126
+ for (let i = from; i < to; i++) {
127
+ const [address] = this._addressFromIndex(i);
128
+ accounts.push({
129
+ address,
130
+ index: i,
131
+ });
132
+ }
133
+ return accounts;
134
+ }
135
+
123
136
  async __getPage(
124
137
  increment: number
125
138
  ): Promise<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/eth-hd-keyring",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "A simple standard interface for a seed phrase generated set of Ethereum accounts.",
5
5
  "keywords": [
6
6
  "ethereum",