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

typescript declaration #112

Open
wants to merge 252 commits into
base: feature/typescript-declaration
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
1822b82
feat: chain types
Jan 11, 2023
2cce34a
feat: add ts
Jan 13, 2023
4daab66
feat: util d.ts
Jan 18, 2023
6ec3b2f
feat: add main.yml
Jan 28, 2023
46fae69
Merge pull request #107 from AElfProject/feature/publish-npm
hzz780 Jan 28, 2023
9e95910
fix: 🐛 support enum
lhoopox Jan 29, 2023
708786f
Merge pull request #109 from lhoopox/fix/support-enum
hzz780 Jan 29, 2023
21cb5b0
chore(release): 3.2.43
Jan 29, 2023
06b8081
feat: fix test
Jan 31, 2023
29f6736
feat: merge ts
Jan 31, 2023
04331b2
feat: add calculateTransactionFee
Feb 1, 2023
1f20b26
feat: add limit
Feb 1, 2023
9580b55
Merge pull request #111 from AElfProject/feature/add-interface
hzz780 Feb 1, 2023
0c8fefb
chore(release): 3.2.44
Feb 1, 2023
8211fad
feat: merge master
Feb 3, 2023
8a44e6b
feat: upgrade jest
Feb 3, 2023
2cadf00
feat: chain util test
Feb 27, 2023
c0bf1ea
feat: transform bloom
Mar 1, 2023
773171a
feat: chain.test.js
Mar 2, 2023
a2ee5ed
feat: chainMethod
Mar 3, 2023
8fe1586
feat: utils test
Mar 6, 2023
f646557
feat: test proto httpProvider
Mar 9, 2023
152b6cd
feat: test
Mar 10, 2023
1609c8b
feat: test utils
Mar 13, 2023
87995c8
feat: transform
Mar 15, 2023
5978c6e
feat: rewire
Mar 16, 2023
af44292
feat: keccak
Mar 17, 2023
11bb00c
feat: httpProvider
Mar 20, 2023
879808c
feat: add deprecated
Mar 20, 2023
c06678b
feat: keccak
Mar 21, 2023
045b833
feat: contract method
Apr 4, 2023
d9617d2
feat: wallet
Apr 11, 2023
dc999b0
feat: contract index
Apr 12, 2023
35cc241
feat: delete hash
Apr 12, 2023
dadfc99
feat: fix chainMethod cross origin problem
Apr 13, 2023
1d00e7a
feat: add jest-github-reporter
Apr 13, 2023
c3aeecc
feat: script
Apr 13, 2023
97dc3eb
feat: exclude
Apr 13, 2023
0113e5d
feat: ci cd test
Apr 13, 2023
fe26118
feat: tests
Apr 13, 2023
fe64070
feat: jest
Apr 13, 2023
290cf72
feat: upper case
Apr 13, 2023
72f412f
feat: ci
Apr 13, 2023
86561d6
feat: reports dir
Apr 13, 2023
ca485f2
feat: httpProvider-node
Apr 14, 2023
3adfaa2
feat: comment with Test Coverage
Apr 14, 2023
96482cd
feat: istanbul-badges-readme
Apr 14, 2023
d0c6846
feat: 'json-summary'
Apr 14, 2023
c2077c3
feat: coverageReporters
Apr 14, 2023
8ff569f
feat: jest-coverage-commenter-action@v1
Apr 14, 2023
b9fb403
feat: delete dependency
Apr 14, 2023
7b802fe
feat: delete readme
Apr 17, 2023
50a669f
feat: jest coverage diff
Apr 17, 2023
acbe989
feat: ci
Apr 17, 2023
115cc21
feat: delete ci
Apr 17, 2023
defa992
feat: yarn run test:coverage
Apr 17, 2023
0ddf36d
feat: install
Apr 17, 2023
872cb77
feat: jest coverage diff
Apr 17, 2023
9b67d8b
feat: jest coverage diff
Apr 17, 2023
4c8a646
feat: jest coverage diff
Apr 17, 2023
355e942
feat: coverage Diff
Apr 17, 2023
f0b735a
feat: base-summary.json
Apr 17, 2023
297a432
feat: coverage Diff
Apr 17, 2023
918e2a3
feat: revert
Apr 17, 2023
41e2ede
feat: update .gitignore
Apr 19, 2023
27dd871
feat: change readme
Apr 19, 2023
eae0f4a
test: 💍 upgrade dependencies
Apr 23, 2023
fa94278
feat: 🎸 test
Apr 23, 2023
73133e3
test: 💍 console
Apr 23, 2023
34dc594
feat: test
Apr 23, 2023
9f2b846
feat: husky upgrade
Apr 23, 2023
121c1ae
feat: husky upgrade
Apr 23, 2023
ee9c6e1
feat: commit-msg
Apr 23, 2023
c911d97
feat: webpack update
Apr 23, 2023
a71a50f
feat: delete useless code
Apr 24, 2023
b51641f
feat: change registry
Apr 24, 2023
0bde829
feat: lower node
Apr 25, 2023
e9dac66
feat: node version
Apr 25, 2023
c5801ad
feat: delete aelf.umd.js.LICENSE.txt
Apr 25, 2023
0c8917d
feat: change pre-commit
Apr 27, 2023
ff72bb5
feat: [email protected]
May 5, 2023
2a93d4f
Update test.yml
AbigailDeng Aug 30, 2023
a5fb22e
feat: test
Aug 30, 2023
aad7900
fix: 🐛 sha256 incorrect in google chrome
potter-sun Aug 30, 2023
5b1c87f
feat: workflow
Aug 30, 2023
d37a7b0
feat: workflow
Aug 30, 2023
9528b0f
feat: workflow
Aug 30, 2023
3fe441d
feat: workflow
Aug 30, 2023
93d96ed
feat: workflow
Aug 30, 2023
ebde628
feat: delete workflow for external pr
Aug 30, 2023
2c68f25
feat: delete workflow for external pr
Aug 30, 2023
a87774c
feat: delete workflow for external pr
Aug 30, 2023
64592b1
refactor: 💡 merge from feature/test-chain-util-workflow
potter-sun Aug 30, 2023
f1a779c
Merge pull request #123 from potter-sun/fix/sha256
AbigailDeng Aug 30, 2023
c9cb5b1
feat: revert workflow for external pr
Aug 30, 2023
5ff62ea
feat: revert workflow for external pr
Aug 30, 2023
e213f61
Merge branch 'feature/test-chain-util' of https://github.com/AElfProj…
Aug 30, 2023
0960945
feat: revert workflow
Aug 30, 2023
4c5b0fa
feat: change workflow
Aug 30, 2023
c74401d
feat: change workflow
Aug 30, 2023
7dff7e3
feat: change workflow
Aug 30, 2023
46532d8
feat: change workflow
Aug 30, 2023
8d90d25
Merge pull request #126 from AElfProject/feature/test-chain-util-work…
AbigailDeng Aug 30, 2023
7e330a5
feat: fix when arg is undefined
Sep 18, 2023
46f7cac
feat: add babel plugin
Sep 18, 2023
3958241
fix: 🐛 transformArrayToMap fieldsArray may undefined
lhoopox Sep 19, 2023
b617162
feat: delete workflow coverage
Sep 19, 2023
aa511e5
Merge pull request #129 from lhoopox/fix/support-enum-array
AbigailDeng Sep 19, 2023
1c8907b
feat: revert workflow
Sep 19, 2023
4a72eeb
feat: merge
Sep 19, 2023
36d0b33
Merge pull request #130 from AElfProject/feature/test-chain-util-work…
AbigailDeng Sep 19, 2023
007dec7
feat: fromMasterSeed hex
Oct 23, 2023
1f151e5
feat: sha256
Oct 23, 2023
5a6b222
feat: remove sha256, change got to get
Oct 23, 2023
2c6438c
Merge pull request #131 from AElfProject/feature/sha256
hzz780 Oct 23, 2023
cc0986b
feat: merge master
Oct 23, 2023
36b98ea
feat: fix test
Oct 23, 2023
1089b98
feat: build
Oct 23, 2023
c383265
feat: node version
Oct 23, 2023
fccb2b3
feat: node version
Oct 23, 2023
f66e315
feat: delete odd
Oct 24, 2023
79e9d83
Merge pull request #132 from AElfProject/feature/fromMasterSeed
hzz780 Oct 24, 2023
07ec600
feat: add chain methods
Oct 25, 2023
c3c77f0
feat: fix ts
Oct 26, 2023
5d0a430
feat: name realPeerEndpoint
Oct 26, 2023
3715191
feat: httpProvider test
Oct 27, 2023
2475ac5
feat: ts fix
Oct 27, 2023
1e1a06d
feat: add files
Oct 30, 2023
ede90ff
feat: merge
Oct 30, 2023
d30bc3f
feat: merge update
Oct 30, 2023
3f0293c
feat: iWallet
Oct 30, 2023
898f938
feat: aws-crypto/[email protected]: The engine "node" Expected version …
Oct 31, 2023
e20c795
feat: getChainStatus
Nov 3, 2023
6012f1e
feat: unpackOutput
Nov 6, 2023
cf6a306
feat: build
Nov 6, 2023
dcc7e74
feat: version
Nov 6, 2023
fc26b52
Merge pull request #133 from AElfProject/feature/view
hzz780 Nov 7, 2023
fa8bd2c
feat: merge master
Nov 8, 2023
4450425
Merge pull request #134 from AElfProject/feature/unpackOutput
hzz780 Nov 8, 2023
c06d462
feat: add semantic type
Nov 14, 2023
4c43b29
feat: tChainId
Nov 14, 2023
a83c03c
feat: sha256
Dec 1, 2023
a95ab60
feat: sha256
Dec 1, 2023
50e83e3
feat: fix sha256
Dec 4, 2023
7ab74cb
Merge pull request #135 from AElfProject/fix/sha256
hzz780 Dec 4, 2023
164db15
feat: types name
Dec 6, 2023
b81382d
feat: gitignore
Dec 7, 2023
b25b6c5
feat: add verify
Dec 29, 2023
3c2a1eb
feat: add verify
Dec 29, 2023
8f39fb2
Merge pull request #136 from AElfProject/feature/test-chain-util-verify
hzz780 Jan 3, 2024
a21e503
Merge pull request #137 from AElfProject/feature/verify
hzz780 Jan 3, 2024
8ca7d8c
feat: change test
Jan 3, 2024
a2f2747
feat: delete useless
Jan 3, 2024
f4b16ab
Merge pull request #138 from AElfProject/feature/test-chain-util-verify
hzz780 Jan 3, 2024
e8e51ed
feat: crypto-js
Jan 8, 2024
15b36ab
feat: crypto-js upgrade
Jan 8, 2024
95cada6
Merge pull request #139 from AElfProject/feature/test-chain-util-crypto
hzz780 Jan 9, 2024
4c2971b
Merge pull request #140 from AElfProject/feature/crypto-upgrade
hzz780 Jan 9, 2024
91586f1
feat: fix type
Jan 11, 2024
eb1f599
feat: pull
Jan 11, 2024
22abcf4
feat: pubKey deprecatedParam
Feb 26, 2024
d3457c1
Merge pull request #141 from AElfProject/feature/test-chain-util-verify
hzz780 Feb 26, 2024
ee2d12a
feat: verify pubKey deprecatedParam
Feb 26, 2024
3b927d1
Merge pull request #143 from AElfProject/release/v3.4.5
hzz780 Feb 26, 2024
8552a94
chore: 🤖 disable implicit-arrow-linebreak
mason-hz Mar 21, 2024
7180fc6
chore: 🤖 add prettierrc
mason-hz Mar 21, 2024
ca9ddc0
feat: 🎸 add seedWithBuffer
mason-hz Mar 21, 2024
c469421
Merge pull request #144 from mason-hz/master
hzz780 Mar 21, 2024
8a731ca
chore: 🤖 v3.4.6
mason-hz Mar 21, 2024
875b832
Merge pull request #145 from AElfProject/feature/v3.4.6
hzz780 Mar 21, 2024
abd2dbd
feat: 🎸 add contract init and send tx option
potter-sun Apr 2, 2024
6638666
fix: 🐛 format code
potter-sun Apr 2, 2024
23189d9
Merge pull request #146 from potter-sun/feature/setBlockHeight
hzz780 Apr 2, 2024
34243be
refactor: 💡 change version
potter-sun Apr 2, 2024
f8f9b7a
Merge pull request #147 from potter-sun/feature/setBlockHeight
hzz780 Apr 2, 2024
ae0c787
feat: 🎸 get transaction id
mason-hz Apr 8, 2024
e9297f5
Merge pull request #148 from AElfProject/feature/get-transactionId
hzz780 Apr 8, 2024
b0b1dc1
feat: virtualTransactionCreated
May 8, 2024
389c049
feat: virtualTransactionCreated
May 8, 2024
f3a2a76
feat: normal contract
May 8, 2024
19894c5
feat: logs
May 8, 2024
5d68968
feat: deserializeLog
May 8, 2024
a45e310
feat: fix conflict
May 8, 2024
bb73d55
feat: proto
May 9, 2024
edbd29f
feat: proto
May 9, 2024
f0be18a
feat: deserializeLog
May 9, 2024
269d5e8
feat: console delete
May 9, 2024
6a62607
feat: if dataType cannot be found and also is not VirtualTransactionC…
May 9, 2024
ebc00b7
feat: change fn name
May 10, 2024
328bf65
feat: unit test
May 10, 2024
eeaaa32
Merge pull request #149 from AElfProject/feature/test-chain-util-dese…
hzz780 May 10, 2024
46666ef
feat: proto
May 10, 2024
ae55dbe
Merge pull request #150 from AElfProject/feature/deserializeLog
hzz780 May 10, 2024
dcedacb
feat: version
May 10, 2024
85e8c0a
Merge pull request #151 from AElfProject/feature/version
hzz780 May 10, 2024
156a0c7
feat: version
May 10, 2024
23091b1
feat: proto -> json
May 10, 2024
ec96a9f
Merge pull request #152 from AElfProject/feature/test-chain-util-dese…
hzz780 May 10, 2024
af11cbb
feat: proto -> json
May 10, 2024
e9dc12a
3.4.11-beta.0
May 10, 2024
acde534
feat: version
May 10, 2024
ef86409
Merge pull request #153 from AElfProject/feature/deserializeLog
hzz780 May 10, 2024
fc2e44c
feat: add address length check
May 22, 2024
097da78
feat: add base58 error
May 22, 2024
68d67e3
Merge pull request #154 from AElfProject/feature/test-chain-util-addr…
hzz780 May 22, 2024
b513ffe
feat: getByteCountByAddress
May 22, 2024
1ee98f0
Merge pull request #155 from AElfProject/feature/addressLength
hzz780 May 22, 2024
437c247
feat: not support optionalChain
May 23, 2024
17feba2
Merge pull request #156 from AElfProject/feature/addressLength
hzz780 May 23, 2024
70c07fa
feat: 🎸 node, use node-fetch instead of xmlhttprequest
hzz780 Jun 20, 2024
65ac284
feat: 🎸 node-fetch in node
hzz780 Jun 20, 2024
daf1677
Merge pull request #160 from AElfProject/feature/node-fetch
hzz780 Jun 20, 2024
645250e
Merge pull request #159 from AElfProject/feature/node-fetch-test
hzz780 Jun 21, 2024
bc3de0d
fix: 🐛 sync, XMLHttp error
hzz780 Jun 21, 2024
1c290a4
feat: add jest config
Jun 21, 2024
5a61939
Merge pull request #161 from AElfProject/feature/node-fetch-test
hzz780 Jun 21, 2024
68df7d1
chore: 🤖 github ISSUE_TEMPLATE & LICENSE
hzz780 Jun 21, 2024
1838db3
fix: 🐛 xml, sync way
hzz780 Jun 21, 2024
5e21556
Merge pull request #162 from AElfProject/feature/node-fetch
hzz780 Jun 21, 2024
2937b92
ci: 🎡 version add .1
hzz780 Jun 21, 2024
469d225
Merge pull request #163 from AElfProject/feature/node-fetch
hzz780 Jun 21, 2024
1b90c59
feat: add chain method ContractViewMethodList
Jun 24, 2024
4148544
feat: merge master, fix conflict
Jun 24, 2024
3cb69fe
feat: fix conflict
Jun 24, 2024
5a9c028
feat: add lock
Jun 24, 2024
a195d31
Merge pull request #166 from AElfProject/feature/test-chain-mergeMaster
hzz780 Jun 24, 2024
2325bf4
feat: add getContractViewMethodList
Jun 24, 2024
09b8404
Merge pull request #169 from AElfProject/feature/getContractViewMetho…
hzz780 Jun 24, 2024
76b6b52
feat: dist
Jun 24, 2024
7b0b1d3
Merge pull request #170 from AElfProject/feature/getContractViewMetho…
hzz780 Jun 24, 2024
435e306
feat: version
Jul 2, 2024
bf4a13e
feat: version
Jul 2, 2024
0e2969b
Merge pull request #172 from AElfProject/feature/version
hzz780 Jul 2, 2024
857060d
feat: fix webpack v5 options
Jul 4, 2024
b896052
feat: fix webpack v5 options
Jul 4, 2024
556f6ac
feat: fix umd
Jul 4, 2024
29da5c6
feat: remove process
Jul 4, 2024
ca686b5
Merge pull request #176 from AElfProject/feature/test-chain-util-fix
hzz780 Jul 5, 2024
bf2b61e
feat: test-badge
aelf-lxy Aug 13, 2024
d8c5492
Merge pull request #183 from AElfProject/feature/test-chain-util-lxy
AbigailDeng Aug 13, 2024
e785773
Resolved conflict
rutvikghaskata18 Aug 14, 2024
7fdc987
feat(test): add new test cases
RutvikGhaskataEalf Aug 14, 2024
5015015
feat: headers
Aug 20, 2024
e7d8303
feat: fix conflict
Aug 20, 2024
a921109
Merge pull request #185 from AElfProject/feature/test-headers
hzz780 Aug 21, 2024
f75be64
feat: extract endpoint
Aug 21, 2024
f832e20
Merge pull request #188 from AElfProject/feature/test-endPoint
hzz780 Aug 21, 2024
13b0c05
feat: delete istanbul-badges-readme
Aug 22, 2024
45403fb
feat: delete console
Aug 22, 2024
4bf7d78
Merge pull request #189 from AElfProject/feature/test-rest
hzz780 Aug 22, 2024
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: util d.ts
  • Loading branch information
AbigailDeng authored and AbigailDeng committed Jan 18, 2023
commit 4daab662f4bb1701ace1f031d1c532be69239ce3
94 changes: 92 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,101 @@
import * as protobuf from "@aelfqueen/protobufjs/light";
import HttpProvider from "./util/httpProvider";
import Wallet from "./wallet/index";

import * as proto from "./util/proto";
import * as utils from "./util/utils";
import { sha256 } from "js-sha256";
import * as transform from "./util/transform";
import {
arrayToHex,
padLeft,
padRight,
decodeAddressRep,
encodeAddressRep,
isBigNumber,
isString,
isFunction,
isObject,
isBoolean,
isJson,
toBigNumber,
getValueOfUnit,
fromWei,
toWei,
toTwosComplement,
uint8ArrayToHex,
noop,
setPath,
unpackSpecifiedTypeData,
deserializeTransaction,
getAuthorization,
} from "./util/utils";
import {
isInBloom,
isEventInBloom,
isIndexedInBloom,
isAddressInBloom,
} from "./util/bloom";
interface IUtils {
base58: utils.base58;
chainIdConvertor: utils.chainIdConvertor;
arrayToHex: typeof arrayToHex;
padLeft: typeof padLeft;
padRight: typeof padRight;
decodeAddressRep: typeof decodeAddressRep;
encodeAddressRep: typeof encodeAddressRep;
isBigNumber: typeof isBigNumber;
isString: typeof isString;
isFunction: typeof isFunction;
isObject: typeof isObject;
isBoolean: typeof isBoolean;
isJson: typeof isJson;
toBigNumber: typeof toBigNumber;
getValueOfUnit: typeof getValueOfUnit;
fromWei: typeof fromWei;
toWei: typeof toWei;
toTwosComplement: typeof toTwosComplement;
uint8ArrayToHex: typeof uint8ArrayToHex;
noop: typeof noop;
setPath: typeof setPath;
unpackSpecifiedTypeData: typeof unpackSpecifiedTypeData;
deserializeTransaction: typeof deserializeTransaction;
getAuthorization: typeof getAuthorization;
}
import Settings from "./util/settings";
interface IBloom {
isInBloom: typeof isInBloom;
isEventInBloom: typeof isEventInBloom;
isIndexedInBloom: typeof isIndexedInBloom;
isAddressInBloom: typeof isAddressInBloom;
}
type TUtil = IUtils &
IBloom & {
sha256: typeof sha256;
} & {
transform: typeof transform;
};
interface IVersion {
api?: string;
}
declare namespace AElf {}
export declare class AElf {
provider: HttpProvider;
constructor(provider: HttpProvider);
static version?: string;
static providers: {
HttpProvider: HttpProvider;
};
static pbjs: typeof protobuf;
static pbUtils: typeof proto;
static wallet: Wallet;
static utils: TUtil;
providers: {
HttpProvider: HttpProvider;
};
settings: Settings;
version: IVersion;
isConnected(): boolean;
// TODO:
// reset 方法不存在
setProvider(provider: HttpProvider): void;
}
export default AElf;
13 changes: 13 additions & 0 deletions types/util/bloom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export declare function isInBloom(bloom: string, hash: string): boolean;
export declare function isEventInBloom(
bloom: string,
eventName: string
): boolean;
export declare function isIndexedInBloom(
bloom: string,
indexed: string
): boolean;
export declare function isAddressInBloom(
bloom: string,
address: string
): boolean;
9 changes: 9 additions & 0 deletions types/util/errors.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
interface IRequestError {
InvalidNumberOfRPCParams(): Error;
InvalidConnection(host: string): Error;
InvalidProvider(): Error;
InvalidResponse(error: Error, result: { [k: string]: any }): Error;
ConnectionTimeout(ms: string | number): Error;
}
declare const RequestError: IRequestError;
export { RequestError };
4 changes: 4 additions & 0 deletions types/util/hash.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export declare function keccak256(bits: Buffer): string;
export declare function keccak512(bits: Buffer): string;
export declare function keccak256s(bits: Buffer): string;
export declare function keccak512s(bits: Buffer): string;
7 changes: 7 additions & 0 deletions types/util/merkleTree.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type Message = string | number[] | ArrayBuffer | Uint8Array;
export declare function computeRoot(data: Array<Buffer>): Buffer;
export declare function getMerklePath(
index: number,
data: Array<Buffer>
): Array<Buffer> | null;
export function node(buffer: Message): Buffer;
4 changes: 4 additions & 0 deletions types/util/settings.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare class Settings {
constructor();
}
export default Settings;
53 changes: 31 additions & 22 deletions types/util/utils.d.ts
Original file line number Diff line number Diff line change
@@ -8,52 +8,61 @@ export interface chainIdConvertor {
chainIdToBase58(chainId: string): string;
base58ToChainId(base58String: string): Buffer;
}
export function arrayToHex(value: Buffer): string;
export function padLeft(string: string, charLen: number, sign?: string): string;
export function padRight(
export declare function arrayToHex(value: Buffer): string;
export declare function padLeft(
string: string,
charLen: number,
sign?: string
): string;
export function decodeAddressRep(address: string): string;
export function encodeAddressRep(hex: string): string;
export function isBigNumber(object: any): boolean;
export function isString(object: any): boolean;
export function isFunction(object: any): boolean;
export function isObject(object: any): boolean;
export function isBoolean(object: any): boolean;
export function isJson(str: string): boolean;
export declare function padRight(
string: string,
charLen: number,
sign?: string
): string;
export declare function decodeAddressRep(address: string): string;
export declare function encodeAddressRep(hex: string): string;
export declare function isBigNumber(object: any): boolean;
export declare function isString(object: any): boolean;
export declare function isFunction(object: any): boolean;
export declare function isObject(object: any): boolean;
export declare function isBoolean(object: any): boolean;
export declare function isJson(str: string): boolean;

export function toBigNumber(number: number | string | BigNumber): BigNumber;
export function getValueOfUnit(unit: string): BigNumber;
export declare function toBigNumber(
number: number | string | BigNumber
): BigNumber;
export declare function getValueOfUnit(unit: string): BigNumber;

export function fromWei(
export declare function fromWei(
number: number | string,
unit: string
): string | BigNumber;
export function toWei(
export declare function toWei(
number: number | string | BigNumber,
unit: string
): string | BigNumber;
export function toTwosComplement(
export declare function toTwosComplement(
number: number | string | BigNumber
): BigNumber;
export function uint8ArrayToHex(uint8Array: Uint8Array): string;
export declare function uint8ArrayToHex(uint8Array: Uint8Array): string;

export function noop(): void;
export function setPath(obj: any, path: string, value: any): void;
export declare function noop(): void;
export declare function setPath(obj: any, path: string, value: any): void;
interface IUnpackSpecifiedParams {
data: ArrayBuffer | SharedArrayBuffer;
dataType: protobuf.Type;
encoding?: string;
}
export function unpackSpecifiedTypeData({
export declare function unpackSpecifiedTypeData({
data,
dataType,
encoding,
}: IUnpackSpecifiedParams): { [k: string]: any };
export function deserializeTransaction(
export declare function deserializeTransaction(
rawTx: ArrayBuffer | SharedArrayBuffer,
paramsDataType: protobuf.Type
): { [k: string]: any };
export function getAuthorization(userName: string, password: string): string;
export declare function getAuthorization(
userName: string,
password: string
): string;