essential-eth 0.5.12 → 0.5.13-next.2
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.
- package/dist/cjs/classes/Contract.d.ts +11 -0
- package/{lib → dist}/cjs/classes/Contract.js +0 -0
- package/{lib/esm → dist/cjs}/classes/test/Contract/crv-abi.d.ts +2 -2
- package/{lib → dist}/cjs/classes/test/Contract/crv-abi.js +0 -0
- package/{lib/esm → dist/cjs}/classes/test/Contract/ens-abi.d.ts +2 -2
- package/{lib → dist}/cjs/classes/test/Contract/ens-abi.js +0 -0
- package/{lib/esm → dist/cjs}/classes/test/Contract/fei-abi.d.ts +2 -2
- package/{lib → dist}/cjs/classes/test/Contract/fei-abi.js +0 -0
- package/{lib/esm → dist/cjs}/classes/test/Contract/foo-abi.d.ts +2 -2
- package/{lib → dist}/cjs/classes/test/Contract/foo-abi.js +0 -0
- package/{lib/esm → dist/cjs}/classes/test/Contract/uniswap-abi.d.ts +2 -2
- package/{lib → dist}/cjs/classes/test/Contract/uniswap-abi.js +0 -0
- package/dist/cjs/classes/utils/clean-block.d.ts +3 -0
- package/{lib → dist}/cjs/classes/utils/clean-block.js +0 -0
- package/dist/cjs/classes/utils/clean-log.d.ts +2 -0
- package/{lib → dist}/cjs/classes/utils/clean-log.js +0 -0
- package/dist/cjs/classes/utils/clean-transaction-receipt.d.ts +2 -0
- package/{lib → dist}/cjs/classes/utils/clean-transaction-receipt.js +0 -0
- package/dist/cjs/classes/utils/clean-transaction.d.ts +2 -0
- package/{lib → dist}/cjs/classes/utils/clean-transaction.js +0 -0
- package/{lib → dist}/cjs/classes/utils/encode-decode-transaction.d.ts +4 -16
- package/{lib → dist}/cjs/classes/utils/encode-decode-transaction.js +0 -0
- package/dist/cjs/classes/utils/fetchers.d.ts +9 -0
- package/{lib → dist}/cjs/classes/utils/fetchers.js +0 -0
- package/dist/cjs/classes/utils/hex-to-decimal.d.ts +1 -0
- package/{lib → dist}/cjs/classes/utils/hex-to-decimal.js +0 -0
- package/{lib → dist}/cjs/classes/utils/prepare-transaction.d.ts +2 -6
- package/{lib → dist}/cjs/classes/utils/prepare-transaction.js +0 -0
- package/{lib/esm → dist/cjs}/index.d.ts +25 -25
- package/{lib → dist}/cjs/index.js +0 -0
- package/dist/cjs/index.umd.js +2 -0
- package/dist/cjs/index.umd.js.map +1 -0
- package/{lib/esm → dist/cjs}/logger/logger.d.ts +11 -11
- package/{lib → dist}/cjs/logger/logger.js +0 -0
- package/dist/cjs/logger/package-version.d.ts +1 -0
- package/{lib → dist}/cjs/logger/package-version.js +1 -1
- package/dist/cjs/providers/BaseProvider.d.ts +24 -0
- package/{lib → dist}/cjs/providers/BaseProvider.js +0 -0
- package/{lib → dist}/cjs/providers/FallthroughProvider.d.ts +11 -24
- package/{lib → dist}/cjs/providers/FallthroughProvider.js +0 -0
- package/dist/cjs/providers/JsonRpcProvider.d.ts +7 -0
- package/{lib → dist}/cjs/providers/JsonRpcProvider.js +0 -0
- package/{lib/esm → dist/cjs}/providers/test/rpc-urls.d.ts +11 -11
- package/{lib → dist}/cjs/providers/test/rpc-urls.js +0 -0
- package/{lib/esm → dist/cjs}/providers/utils/chains-info.d.ts +467 -467
- package/{lib → dist}/cjs/providers/utils/chains-info.js +0 -0
- package/dist/cjs/shared/tiny-big/helpers.d.ts +1 -0
- package/{lib → dist}/cjs/shared/tiny-big/helpers.js +0 -0
- package/dist/cjs/shared/tiny-big/tiny-big.d.ts +10 -0
- package/{lib → dist}/cjs/shared/tiny-big/tiny-big.js +0 -0
- package/{lib/esm → dist/cjs}/shared/validate-type.d.ts +3 -3
- package/{lib → dist}/cjs/shared/validate-type.js +0 -0
- package/{lib → dist}/cjs/types/Block.types.d.ts +40 -41
- package/{lib → dist}/cjs/types/Block.types.js +0 -0
- package/{lib/esm → dist/cjs}/types/Contract.types.d.ts +24 -24
- package/{lib → dist}/cjs/types/Contract.types.js +0 -0
- package/{lib → dist}/cjs/types/Filter.types.d.ts +12 -16
- package/{lib → dist}/cjs/types/Filter.types.js +0 -0
- package/{lib → dist}/cjs/types/Network.types.d.ts +5 -8
- package/{lib → dist}/cjs/types/Network.types.js +0 -0
- package/{lib → dist}/cjs/types/Transaction.types.d.ts +113 -123
- package/{lib → dist}/cjs/types/Transaction.types.js +0 -0
- package/dist/cjs/utils/bytes.d.ts +40 -0
- package/{lib → dist}/cjs/utils/bytes.js +0 -0
- package/dist/cjs/utils/compute-address.d.ts +1 -0
- package/{lib → dist}/cjs/utils/compute-address.js +0 -0
- package/dist/cjs/utils/compute-public-key.d.ts +2 -0
- package/{lib → dist}/cjs/utils/compute-public-key.js +0 -0
- package/dist/cjs/utils/ether-to-gwei.d.ts +3 -0
- package/{lib → dist}/cjs/utils/ether-to-gwei.js +0 -0
- package/dist/cjs/utils/ether-to-wei.d.ts +3 -0
- package/{lib → dist}/cjs/utils/ether-to-wei.js +0 -0
- package/dist/cjs/utils/gwei-to-ether.d.ts +3 -0
- package/{lib → dist}/cjs/utils/gwei-to-ether.js +0 -0
- package/dist/cjs/utils/hash-message.d.ts +2 -0
- package/{lib → dist}/cjs/utils/hash-message.js +0 -0
- package/dist/cjs/utils/is-address.d.ts +1 -0
- package/{lib → dist}/cjs/utils/is-address.js +0 -0
- package/dist/cjs/utils/keccak256.d.ts +2 -0
- package/{lib → dist}/cjs/utils/keccak256.js +0 -0
- package/dist/cjs/utils/solidity-keccak256.d.ts +2 -0
- package/{lib → dist}/cjs/utils/solidity-keccak256.js +0 -0
- package/dist/cjs/utils/split-signature.d.ts +2 -0
- package/{lib → dist}/cjs/utils/split-signature.js +0 -0
- package/dist/cjs/utils/to-checksum-address.d.ts +1 -0
- package/{lib → dist}/cjs/utils/to-checksum-address.js +0 -0
- package/dist/cjs/utils/to-utf8-bytes.d.ts +1 -0
- package/{lib → dist}/cjs/utils/to-utf8-bytes.js +0 -0
- package/dist/cjs/utils/wei-to-ether.d.ts +3 -0
- package/{lib → dist}/cjs/utils/wei-to-ether.js +0 -0
- package/{lib → dist}/esm/classes/Contract.d.ts +0 -0
- package/{lib → dist}/esm/classes/Contract.js +0 -0
- package/{lib/cjs → dist/esm}/classes/test/Contract/crv-abi.d.ts +0 -0
- package/{lib → dist}/esm/classes/test/Contract/crv-abi.js +0 -0
- package/{lib/cjs → dist/esm}/classes/test/Contract/ens-abi.d.ts +0 -0
- package/{lib → dist}/esm/classes/test/Contract/ens-abi.js +0 -0
- package/{lib/cjs → dist/esm}/classes/test/Contract/fei-abi.d.ts +0 -0
- package/{lib → dist}/esm/classes/test/Contract/fei-abi.js +0 -0
- package/{lib/cjs → dist/esm}/classes/test/Contract/foo-abi.d.ts +0 -0
- package/{lib → dist}/esm/classes/test/Contract/foo-abi.js +0 -0
- package/{lib/cjs → dist/esm}/classes/test/Contract/uniswap-abi.d.ts +0 -0
- package/{lib → dist}/esm/classes/test/Contract/uniswap-abi.js +0 -0
- package/{lib → dist}/esm/classes/utils/clean-block.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/clean-block.js +0 -0
- package/{lib → dist}/esm/classes/utils/clean-log.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/clean-log.js +0 -0
- package/{lib → dist}/esm/classes/utils/clean-transaction-receipt.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/clean-transaction-receipt.js +0 -0
- package/{lib → dist}/esm/classes/utils/clean-transaction.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/clean-transaction.js +0 -0
- package/{lib → dist}/esm/classes/utils/encode-decode-transaction.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/encode-decode-transaction.js +0 -0
- package/{lib → dist}/esm/classes/utils/fetchers.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/fetchers.js +0 -0
- package/{lib → dist}/esm/classes/utils/hex-to-decimal.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/hex-to-decimal.js +0 -0
- package/{lib → dist}/esm/classes/utils/prepare-transaction.d.ts +0 -0
- package/{lib → dist}/esm/classes/utils/prepare-transaction.js +0 -0
- package/{lib/cjs → dist/esm}/index.d.ts +0 -0
- package/{lib → dist}/esm/index.js +0 -0
- package/{lib/cjs → dist/esm}/logger/logger.d.ts +0 -0
- package/{lib → dist}/esm/logger/logger.js +0 -0
- package/dist/esm/logger/package-version.d.ts +1 -0
- package/dist/esm/logger/package-version.js +1 -0
- package/{lib → dist}/esm/providers/BaseProvider.d.ts +0 -0
- package/{lib → dist}/esm/providers/BaseProvider.js +0 -0
- package/{lib → dist}/esm/providers/FallthroughProvider.d.ts +0 -0
- package/{lib → dist}/esm/providers/FallthroughProvider.js +0 -0
- package/{lib → dist}/esm/providers/JsonRpcProvider.d.ts +0 -0
- package/{lib → dist}/esm/providers/JsonRpcProvider.js +0 -0
- package/{lib/cjs → dist/esm}/providers/test/rpc-urls.d.ts +0 -0
- package/{lib → dist}/esm/providers/test/rpc-urls.js +0 -0
- package/{lib/cjs → dist/esm}/providers/utils/chains-info.d.ts +0 -0
- package/{lib → dist}/esm/providers/utils/chains-info.js +0 -0
- package/{lib → dist}/esm/shared/tiny-big/helpers.d.ts +0 -0
- package/{lib → dist}/esm/shared/tiny-big/helpers.js +0 -0
- package/{lib → dist}/esm/shared/tiny-big/tiny-big.d.ts +0 -0
- package/{lib → dist}/esm/shared/tiny-big/tiny-big.js +0 -0
- package/{lib/cjs → dist/esm}/shared/validate-type.d.ts +0 -0
- package/{lib → dist}/esm/shared/validate-type.js +0 -0
- package/{lib → dist}/esm/types/Block.types.d.ts +0 -0
- package/{lib → dist}/esm/types/Block.types.js +0 -0
- package/{lib/cjs → dist/esm}/types/Contract.types.d.ts +0 -0
- package/{lib → dist}/esm/types/Contract.types.js +0 -0
- package/{lib → dist}/esm/types/Filter.types.d.ts +0 -0
- package/{lib → dist}/esm/types/Filter.types.js +0 -0
- package/{lib → dist}/esm/types/Network.types.d.ts +0 -0
- package/{lib → dist}/esm/types/Network.types.js +0 -0
- package/{lib → dist}/esm/types/Transaction.types.d.ts +0 -0
- package/{lib → dist}/esm/types/Transaction.types.js +0 -0
- package/{lib → dist}/esm/utils/bytes.d.ts +0 -0
- package/{lib → dist}/esm/utils/bytes.js +0 -0
- package/{lib → dist}/esm/utils/compute-address.d.ts +0 -0
- package/{lib → dist}/esm/utils/compute-address.js +0 -0
- package/{lib → dist}/esm/utils/compute-public-key.d.ts +0 -0
- package/{lib → dist}/esm/utils/compute-public-key.js +0 -0
- package/{lib → dist}/esm/utils/ether-to-gwei.d.ts +0 -0
- package/{lib → dist}/esm/utils/ether-to-gwei.js +0 -0
- package/{lib → dist}/esm/utils/ether-to-wei.d.ts +0 -0
- package/{lib → dist}/esm/utils/ether-to-wei.js +0 -0
- package/{lib → dist}/esm/utils/gwei-to-ether.d.ts +0 -0
- package/{lib → dist}/esm/utils/gwei-to-ether.js +0 -0
- package/{lib → dist}/esm/utils/hash-message.d.ts +0 -0
- package/{lib → dist}/esm/utils/hash-message.js +0 -0
- package/{lib → dist}/esm/utils/is-address.d.ts +0 -0
- package/{lib → dist}/esm/utils/is-address.js +0 -0
- package/{lib → dist}/esm/utils/keccak256.d.ts +0 -0
- package/{lib → dist}/esm/utils/keccak256.js +0 -0
- package/{lib → dist}/esm/utils/solidity-keccak256.d.ts +0 -0
- package/{lib → dist}/esm/utils/solidity-keccak256.js +0 -0
- package/{lib → dist}/esm/utils/split-signature.d.ts +0 -0
- package/{lib → dist}/esm/utils/split-signature.js +0 -0
- package/{lib → dist}/esm/utils/to-checksum-address.d.ts +0 -0
- package/{lib → dist}/esm/utils/to-checksum-address.js +0 -0
- package/{lib → dist}/esm/utils/to-utf8-bytes.d.ts +0 -0
- package/{lib → dist}/esm/utils/to-utf8-bytes.js +0 -0
- package/{lib → dist}/esm/utils/wei-to-ether.d.ts +0 -0
- package/{lib → dist}/esm/utils/wei-to-ether.js +0 -0
- package/package.json +25 -13
- package/readme.md +70 -51
- package/lib/cjs/classes/Contract.d.ts +0 -78
- package/lib/cjs/classes/utils/clean-block.d.ts +0 -121
- package/lib/cjs/classes/utils/clean-log.d.ts +0 -9
- package/lib/cjs/classes/utils/clean-transaction-receipt.d.ts +0 -14
- package/lib/cjs/classes/utils/clean-transaction.d.ts +0 -14
- package/lib/cjs/classes/utils/fetchers.d.ts +0 -39
- package/lib/cjs/classes/utils/hex-to-decimal.d.ts +0 -18
- package/lib/cjs/logger/package-version.d.ts +0 -1
- package/lib/cjs/providers/BaseProvider.d.ts +0 -353
- package/lib/cjs/providers/JsonRpcProvider.d.ts +0 -33
- package/lib/cjs/shared/tiny-big/helpers.d.ts +0 -17
- package/lib/cjs/shared/tiny-big/tiny-big.d.ts +0 -58
- package/lib/cjs/utils/bytes.d.ts +0 -289
- package/lib/cjs/utils/compute-address.d.ts +0 -17
- package/lib/cjs/utils/compute-public-key.d.ts +0 -18
- package/lib/cjs/utils/ether-to-gwei.d.ts +0 -27
- package/lib/cjs/utils/ether-to-wei.d.ts +0 -27
- package/lib/cjs/utils/gwei-to-ether.d.ts +0 -27
- package/lib/cjs/utils/hash-message.d.ts +0 -14
- package/lib/cjs/utils/is-address.d.ts +0 -24
- package/lib/cjs/utils/keccak256.d.ts +0 -16
- package/lib/cjs/utils/solidity-keccak256.d.ts +0 -39
- package/lib/cjs/utils/split-signature.d.ts +0 -24
- package/lib/cjs/utils/to-checksum-address.d.ts +0 -17
- package/lib/cjs/utils/to-utf8-bytes.d.ts +0 -15
- package/lib/cjs/utils/wei-to-ether.d.ts +0 -27
- package/lib/esm/logger/package-version.d.ts +0 -1
- package/lib/esm/logger/package-version.js +0 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function scientificStrToDecimalStr(scientificString: string): string;
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Big from 'big.js';
|
|
2
|
+
export declare class TinyBig extends Big {
|
|
3
|
+
constructor(value: string | number | TinyBig | Big);
|
|
4
|
+
toHexString(): string;
|
|
5
|
+
toNumber(): number;
|
|
6
|
+
toString(): string;
|
|
7
|
+
private padAndChop;
|
|
8
|
+
toTwos(bitCount: number): Big;
|
|
9
|
+
}
|
|
10
|
+
export declare function tinyBig(value: string | number | TinyBig | Big): TinyBig;
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type JSPrimitiveTypes = 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function';
|
|
2
|
-
export declare const validateType: (value: unknown, allowedTypes: JSPrimitiveTypes[]) => void;
|
|
3
|
-
export {};
|
|
1
|
+
declare type JSPrimitiveTypes = 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function';
|
|
2
|
+
export declare const validateType: (value: unknown, allowedTypes: JSPrimitiveTypes[]) => void;
|
|
3
|
+
export {};
|
|
File without changes
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import type { TinyBig } from './../shared/tiny-big/tiny-big';
|
|
2
|
-
import type { BlockTransactionResponse, RPCTransaction } from './Transaction.types';
|
|
3
|
-
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
4
|
-
export declare type BlockResponse = Modify<RPCBlock, {
|
|
5
|
-
baseFeePerGas: TinyBig;
|
|
6
|
-
difficulty: TinyBig;
|
|
7
|
-
gasLimit: TinyBig;
|
|
8
|
-
gasUsed: TinyBig;
|
|
9
|
-
nonce: TinyBig;
|
|
10
|
-
number: number;
|
|
11
|
-
size: TinyBig;
|
|
12
|
-
timestamp: TinyBig;
|
|
13
|
-
totalDifficulty: TinyBig;
|
|
14
|
-
transactions: Array<string | BlockTransactionResponse>;
|
|
15
|
-
}>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
export {};
|
|
1
|
+
import type { TinyBig } from './../shared/tiny-big/tiny-big';
|
|
2
|
+
import type { BlockTransactionResponse, RPCTransaction } from './Transaction.types';
|
|
3
|
+
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
4
|
+
export declare type BlockResponse = Modify<RPCBlock, {
|
|
5
|
+
baseFeePerGas: TinyBig;
|
|
6
|
+
difficulty: TinyBig;
|
|
7
|
+
gasLimit: TinyBig;
|
|
8
|
+
gasUsed: TinyBig;
|
|
9
|
+
nonce: TinyBig;
|
|
10
|
+
number: number;
|
|
11
|
+
size: TinyBig;
|
|
12
|
+
timestamp: TinyBig;
|
|
13
|
+
totalDifficulty: TinyBig;
|
|
14
|
+
transactions: Array<string | BlockTransactionResponse>;
|
|
15
|
+
}>;
|
|
16
|
+
export interface RPCBlock {
|
|
17
|
+
baseFeePerGas: string;
|
|
18
|
+
difficulty: string;
|
|
19
|
+
extraData: string;
|
|
20
|
+
gasLimit: string;
|
|
21
|
+
gasUsed: string;
|
|
22
|
+
hash: string;
|
|
23
|
+
logsBloom: string;
|
|
24
|
+
miner: string;
|
|
25
|
+
mixHash: string;
|
|
26
|
+
nonce: string;
|
|
27
|
+
number: string;
|
|
28
|
+
parentHash: string;
|
|
29
|
+
receiptsRoot: string;
|
|
30
|
+
sha3Uncles: string;
|
|
31
|
+
size: string;
|
|
32
|
+
stateRoot: string;
|
|
33
|
+
timestamp: string;
|
|
34
|
+
totalDifficulty: string;
|
|
35
|
+
transactions: Array<string | RPCTransaction>;
|
|
36
|
+
transactionsRoot: string;
|
|
37
|
+
uncles: Array<string>;
|
|
38
|
+
}
|
|
39
|
+
export declare type BlockTag = 'latest' | 'earliest' | 'pending' | number | string;
|
|
40
|
+
export {};
|
|
File without changes
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export declare type ContractTypes = 'bool' | 'bytes1' | 'bytes2' | 'bytes3' | 'bytes4' | 'bytes5' | 'bytes6' | 'bytes7' | 'bytes8' | 'bytes9' | 'bytes10' | 'bytes11' | 'bytes12' | 'bytes13' | 'bytes14' | 'bytes15' | 'bytes16' | 'bytes17' | 'bytes18' | 'bytes19' | 'bytes20' | 'bytes21' | 'bytes22' | 'bytes23' | 'bytes24' | 'bytes25' | 'bytes26' | 'bytes27' | 'bytes28' | 'bytes29' | 'bytes30' | 'bytes31' | 'bytes32' | 'bytes32[]' | 'address' | 'address payable' | 'address[4]' | 'address[100]' | 'uint256' | 'uint256[100]' | 'uint8' | 'uint32' | string;
|
|
2
|
-
export declare type ContractInterface = JSONABI;
|
|
3
|
-
export declare type ContractFunction<T = any> = (...args: Array<any>) => Promise<T>;
|
|
4
|
-
export interface JSONABIArgument {
|
|
5
|
-
anonymous?: false;
|
|
6
|
-
inputs: {
|
|
7
|
-
internalType?: ContractTypes | string;
|
|
8
|
-
name: string;
|
|
9
|
-
type: ContractTypes;
|
|
10
|
-
indexed?: boolean;
|
|
11
|
-
}[];
|
|
12
|
-
name?: string;
|
|
13
|
-
outputs?: {
|
|
14
|
-
internalType?: ContractTypes | string;
|
|
15
|
-
name: string;
|
|
16
|
-
type: ContractTypes;
|
|
17
|
-
}[];
|
|
18
|
-
stateMutability?: 'view' | 'nonpayable' | string;
|
|
19
|
-
type: 'function' | 'event' | 'constructor' | 'error' | 'fallback';
|
|
20
|
-
gas?: number;
|
|
21
|
-
constant?: boolean;
|
|
22
|
-
payable?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare type JSONABI = JSONABIArgument[];
|
|
1
|
+
export declare type ContractTypes = 'bool' | 'bytes1' | 'bytes2' | 'bytes3' | 'bytes4' | 'bytes5' | 'bytes6' | 'bytes7' | 'bytes8' | 'bytes9' | 'bytes10' | 'bytes11' | 'bytes12' | 'bytes13' | 'bytes14' | 'bytes15' | 'bytes16' | 'bytes17' | 'bytes18' | 'bytes19' | 'bytes20' | 'bytes21' | 'bytes22' | 'bytes23' | 'bytes24' | 'bytes25' | 'bytes26' | 'bytes27' | 'bytes28' | 'bytes29' | 'bytes30' | 'bytes31' | 'bytes32' | 'bytes32[]' | 'address' | 'address payable' | 'address[4]' | 'address[100]' | 'uint256' | 'uint256[100]' | 'uint8' | 'uint32' | string;
|
|
2
|
+
export declare type ContractInterface = JSONABI;
|
|
3
|
+
export declare type ContractFunction<T = any> = (...args: Array<any>) => Promise<T>;
|
|
4
|
+
export interface JSONABIArgument {
|
|
5
|
+
anonymous?: false;
|
|
6
|
+
inputs: {
|
|
7
|
+
internalType?: ContractTypes | string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: ContractTypes;
|
|
10
|
+
indexed?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
name?: string;
|
|
13
|
+
outputs?: {
|
|
14
|
+
internalType?: ContractTypes | string;
|
|
15
|
+
name: string;
|
|
16
|
+
type: ContractTypes;
|
|
17
|
+
}[];
|
|
18
|
+
stateMutability?: 'view' | 'nonpayable' | string;
|
|
19
|
+
type: 'function' | 'event' | 'constructor' | 'error' | 'fallback';
|
|
20
|
+
gas?: number;
|
|
21
|
+
constant?: boolean;
|
|
22
|
+
payable?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare type JSONABI = JSONABIArgument[];
|
|
File without changes
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import type { BlockTag } from './Block.types';
|
|
2
|
-
export interface EventFilter {
|
|
3
|
-
address?: string;
|
|
4
|
-
topics?: Array<string | Array<string> | null>;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export interface
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export interface FilterByBlockHash extends EventFilter {
|
|
15
|
-
blockHash?: string;
|
|
16
|
-
}
|
|
1
|
+
import type { BlockTag } from './Block.types';
|
|
2
|
+
export interface EventFilter {
|
|
3
|
+
address?: string;
|
|
4
|
+
topics?: Array<string | Array<string> | null>;
|
|
5
|
+
}
|
|
6
|
+
export interface Filter extends EventFilter {
|
|
7
|
+
fromBlock?: BlockTag;
|
|
8
|
+
toBlock?: BlockTag;
|
|
9
|
+
}
|
|
10
|
+
export interface FilterByBlockHash extends EventFilter {
|
|
11
|
+
blockHash?: string;
|
|
12
|
+
}
|
|
File without changes
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
ensAddress: string | null;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
1
|
+
export interface Network {
|
|
2
|
+
chainId: number;
|
|
3
|
+
ensAddress: string | null;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
File without changes
|
|
@@ -1,123 +1,113 @@
|
|
|
1
|
-
import type Big from 'big.js';
|
|
2
|
-
import type { TinyBig } from '../shared/tiny-big/tiny-big';
|
|
3
|
-
import type { BytesLike } from './../utils/bytes';
|
|
4
|
-
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
5
|
-
export interface RPCTransaction extends RPCBlockTransaction {
|
|
6
|
-
maxFeePerGas: string;
|
|
7
|
-
maxPriorityFeePerGas: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type TransactionResponse = Modify<RPCTransaction, {
|
|
10
|
-
blockNumber: number;
|
|
11
|
-
chainId: number;
|
|
12
|
-
gas: TinyBig;
|
|
13
|
-
gasLimit: TinyBig;
|
|
14
|
-
gasPrice: TinyBig;
|
|
15
|
-
nonce: TinyBig;
|
|
16
|
-
transactionIndex: number;
|
|
17
|
-
type: number;
|
|
18
|
-
v: number;
|
|
19
|
-
value: TinyBig;
|
|
20
|
-
} & {
|
|
21
|
-
maxFeePerGas: TinyBig;
|
|
22
|
-
maxPriorityFeePerGas: TinyBig;
|
|
23
|
-
confirmations: number;
|
|
24
|
-
}>;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
blockHash: string;
|
|
115
|
-
blockNumber: string;
|
|
116
|
-
data: string;
|
|
117
|
-
logIndex: string;
|
|
118
|
-
removed?: boolean;
|
|
119
|
-
topics: Array<string>;
|
|
120
|
-
transactionHash: string;
|
|
121
|
-
transactionIndex: string;
|
|
122
|
-
}
|
|
123
|
-
export {};
|
|
1
|
+
import type Big from 'big.js';
|
|
2
|
+
import type { TinyBig } from '../shared/tiny-big/tiny-big';
|
|
3
|
+
import type { BytesLike } from './../utils/bytes';
|
|
4
|
+
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
5
|
+
export interface RPCTransaction extends RPCBlockTransaction {
|
|
6
|
+
maxFeePerGas: string;
|
|
7
|
+
maxPriorityFeePerGas: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type TransactionResponse = Modify<RPCTransaction, {
|
|
10
|
+
blockNumber: number;
|
|
11
|
+
chainId: number;
|
|
12
|
+
gas: TinyBig;
|
|
13
|
+
gasLimit: TinyBig;
|
|
14
|
+
gasPrice: TinyBig;
|
|
15
|
+
nonce: TinyBig;
|
|
16
|
+
transactionIndex: number;
|
|
17
|
+
type: number;
|
|
18
|
+
v: number;
|
|
19
|
+
value: TinyBig;
|
|
20
|
+
} & {
|
|
21
|
+
maxFeePerGas: TinyBig;
|
|
22
|
+
maxPriorityFeePerGas: TinyBig;
|
|
23
|
+
confirmations: number;
|
|
24
|
+
}>;
|
|
25
|
+
export declare type TransactionReceipt = Modify<RPCTransactionReceipt, {
|
|
26
|
+
blockNumber: number;
|
|
27
|
+
cumulativeGasUsed: TinyBig;
|
|
28
|
+
effectiveGasPrice: TinyBig;
|
|
29
|
+
gasUsed: TinyBig;
|
|
30
|
+
logs: Array<Log>;
|
|
31
|
+
status: number;
|
|
32
|
+
transactionIndex: number;
|
|
33
|
+
type: number;
|
|
34
|
+
} & {
|
|
35
|
+
byzantium: boolean;
|
|
36
|
+
confirmations: number;
|
|
37
|
+
}>;
|
|
38
|
+
export interface RPCTransactionRequest {
|
|
39
|
+
from?: string;
|
|
40
|
+
to: string;
|
|
41
|
+
gas?: string;
|
|
42
|
+
gasPrice?: string;
|
|
43
|
+
value?: string;
|
|
44
|
+
data?: BytesLike;
|
|
45
|
+
nonce?: string;
|
|
46
|
+
maxPriorityFeePerGas?: string;
|
|
47
|
+
maxFeePerGas?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface TransactionRequest {
|
|
50
|
+
to?: string;
|
|
51
|
+
from?: string;
|
|
52
|
+
nonce?: TinyBig | string | Big | number;
|
|
53
|
+
gas?: TinyBig | number | Big | string;
|
|
54
|
+
gasPrice?: TinyBig | Big | string | number;
|
|
55
|
+
data?: BytesLike;
|
|
56
|
+
value?: TinyBig | string | Big | number;
|
|
57
|
+
chainId?: number;
|
|
58
|
+
type?: number;
|
|
59
|
+
maxPriorityFeePerGas?: TinyBig | string | Big | number;
|
|
60
|
+
maxFeePerGas?: TinyBig | string | Big | number;
|
|
61
|
+
}
|
|
62
|
+
export declare type Log = Modify<RPCLog, {
|
|
63
|
+
blockNumber: number;
|
|
64
|
+
logIndex: number;
|
|
65
|
+
transactionIndex: number;
|
|
66
|
+
}>;
|
|
67
|
+
export declare type BlockTransactionResponse = Omit<TransactionResponse, 'maxFeePerGas' | 'maxPriorityFeePerGas'>;
|
|
68
|
+
export interface RPCBlockTransaction {
|
|
69
|
+
blockHash: string;
|
|
70
|
+
blockNumber: string;
|
|
71
|
+
chainId: string;
|
|
72
|
+
from: string;
|
|
73
|
+
gas: string;
|
|
74
|
+
gasPrice: string;
|
|
75
|
+
hash: string;
|
|
76
|
+
input: string;
|
|
77
|
+
nonce: string;
|
|
78
|
+
r: string;
|
|
79
|
+
s: string;
|
|
80
|
+
to: string;
|
|
81
|
+
transactionIndex: string;
|
|
82
|
+
type: string;
|
|
83
|
+
v: string;
|
|
84
|
+
value: string;
|
|
85
|
+
}
|
|
86
|
+
export interface RPCTransactionReceipt {
|
|
87
|
+
blockHash: string;
|
|
88
|
+
blockNumber: string;
|
|
89
|
+
contractAddress: string;
|
|
90
|
+
cumulativeGasUsed: string;
|
|
91
|
+
effectiveGasPrice: string;
|
|
92
|
+
from: string;
|
|
93
|
+
gasUsed: string;
|
|
94
|
+
logs: Array<RPCLog>;
|
|
95
|
+
logsBloom: string;
|
|
96
|
+
status: string;
|
|
97
|
+
to: string;
|
|
98
|
+
transactionHash: string;
|
|
99
|
+
transactionIndex: string;
|
|
100
|
+
type: string;
|
|
101
|
+
}
|
|
102
|
+
export interface RPCLog {
|
|
103
|
+
address: string;
|
|
104
|
+
blockHash: string;
|
|
105
|
+
blockNumber: string;
|
|
106
|
+
data: string;
|
|
107
|
+
logIndex: string;
|
|
108
|
+
removed?: boolean;
|
|
109
|
+
topics: Array<string>;
|
|
110
|
+
transactionHash: string;
|
|
111
|
+
transactionIndex: string;
|
|
112
|
+
}
|
|
113
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare type Bytes = ArrayLike<number>;
|
|
2
|
+
export declare type BytesLike = Bytes | string;
|
|
3
|
+
export declare type BytesLikeWithNumber = BytesLike | number;
|
|
4
|
+
export interface DataOptions {
|
|
5
|
+
allowMissingPrefix?: boolean;
|
|
6
|
+
hexPad?: 'left' | 'right' | null;
|
|
7
|
+
}
|
|
8
|
+
export interface Hexable {
|
|
9
|
+
toHexString(): string;
|
|
10
|
+
}
|
|
11
|
+
export declare type SignatureLike = {
|
|
12
|
+
r: string;
|
|
13
|
+
s?: string;
|
|
14
|
+
_vs?: string;
|
|
15
|
+
recoveryParam?: number;
|
|
16
|
+
v?: number;
|
|
17
|
+
} | BytesLike;
|
|
18
|
+
export interface Signature {
|
|
19
|
+
r: string;
|
|
20
|
+
s: string;
|
|
21
|
+
_vs: string;
|
|
22
|
+
recoveryParam: number;
|
|
23
|
+
v: number;
|
|
24
|
+
yParityAndS: string;
|
|
25
|
+
compact: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function isBytesLike(value: any): value is BytesLike;
|
|
28
|
+
export declare function isBytes(value: any): value is Bytes;
|
|
29
|
+
export declare function arrayify(value: BytesLike | Hexable | number, options?: DataOptions): Uint8Array;
|
|
30
|
+
export declare function concat(arrayOfBytesLike: ReadonlyArray<BytesLikeWithNumber>): Uint8Array;
|
|
31
|
+
export declare function stripZeros(value: BytesLike): Uint8Array;
|
|
32
|
+
export declare function zeroPad(value: BytesLike, length: number): Uint8Array;
|
|
33
|
+
export declare function isHexString(value: any, length?: number): boolean;
|
|
34
|
+
export declare function hexlify(value: BytesLike | Hexable | number | bigint, options?: DataOptions): string;
|
|
35
|
+
export declare function hexDataLength(data: BytesLike): number | null;
|
|
36
|
+
export declare function hexDataSlice(data: BytesLikeWithNumber, offset: number, endOffset?: number): string;
|
|
37
|
+
export declare function hexConcat(items: ReadonlyArray<BytesLike>): string;
|
|
38
|
+
export declare function hexValue(value: BytesLike | Hexable | number | bigint): string;
|
|
39
|
+
export declare function hexStripZeros(value: BytesLike): string;
|
|
40
|
+
export declare function hexZeroPad(value: BytesLikeWithNumber, length: number): string;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function computeAddress(key: string): string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isAddress(address: string): boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toChecksumAddress(address: string): string;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toUtf8Bytes(data: string): Uint8Array;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|