Skip to content

Commit 3e9b7c1

Browse files
committed
feat: 🎸 export AElf.utils.keyStore/transaction
1 parent a1ae6c3 commit 3e9b7c1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aelf-sdk",
3-
"version": "3.5.0-beta.7",
3+
"version": "3.5.0-beta.9",
44
"description": "aelf-sdk js library",
55
"type": "module",
66
"main": "dist/aelf.cjs",

‎src/AElf.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import * as utils from './util/utils.js';
1212
import * as proto from './util/proto.js';
1313
import * as transform from './util/transform.js';
1414
import * as transaction from './util/transaction.js';
15+
import * as keyStore from './util/keyStore.js';
1516
import Settings from './util/settings.js';
1617
import sha256 from './util/sha256.js';
1718

@@ -41,9 +42,10 @@ export default class AElf {
4142
static utils = {
4243
...utils,
4344
...bloom,
44-
...transaction,
4545
sha256,
46-
transform
46+
transform,
47+
keyStore,
48+
transaction,
4749
};
4850

4951
providers = {

‎types/index.d.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as utils from './util/utils';
66
import sha256 from './util/sha256';
77
import * as transform from './util/transform';
88
import * as transaction from './util/transaction';
9+
import * as keyStore from './util/keyStore';
910
import {
1011
arrayToHex,
1112
padLeft,
@@ -81,6 +82,8 @@ type TUtilsType = IUtils &
8182
transform: typeof transform;
8283
} & {
8384
transaction: typeof transaction;
85+
} & {
86+
keyStore: typeof keyStore;
8487
};
8588
interface IVersion {
8689
api?: string;

0 commit comments

Comments
 (0)