viem 0.0.1-alpha.8 → 0.0.1-cjs.10
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/actions/package.json +1 -1
- package/chains/package.json +1 -1
- package/clients/package.json +1 -1
- package/dist/actions/index.d.ts +5 -4
- package/dist/actions/index.js +125 -124
- package/dist/actions/index.mjs +125 -0
- package/dist/chains.d.ts +2 -2
- package/dist/chains.js +75 -76
- package/dist/chains.mjs +133 -0
- package/dist/chunk-2FDH6XP5.mjs +2616 -0
- package/dist/chunk-46ZFLVHC.js +1084 -0
- package/dist/chunk-5ZBNF5WM.js +2616 -0
- package/dist/{chunk-BIQ5KSX5.js → chunk-CWCWWGBC.mjs} +1 -1
- package/dist/{chunk-N6PIT2C5.js → chunk-HLVCJ7RV.mjs} +49 -12
- package/dist/chunk-SGTIBKHG.js +258 -0
- package/dist/clients/index.d.ts +3 -3
- package/dist/clients/index.js +23 -23
- package/dist/clients/index.mjs +23 -0
- package/dist/{createWalletClient-b5c3c89e.d.ts → createWalletClient-d612fe08.d.ts} +1 -1
- package/dist/{eip1193-100454ab.d.ts → eip1193-020a6f13.d.ts} +1 -1
- package/dist/index.d.ts +40 -18
- package/dist/index.js +374 -374
- package/dist/index.mjs +374 -0
- package/dist/{parseGwei-14f716fc.d.ts → parseGwei-7c87ff41.d.ts} +40 -118
- package/dist/transactionRequest-08d30731.d.ts +132 -0
- package/dist/utils/index.d.ts +38 -5
- package/dist/utils/index.js +148 -138
- package/dist/utils/index.mjs +148 -0
- package/dist/{watchAsset-e99e744d.d.ts → watchAsset-bc6373f4.d.ts} +17 -5
- package/dist/{webSocket-f4abf66c.d.ts → webSocket-7f88e9e0.d.ts} +1 -1
- package/dist/window.d.ts +1 -1
- package/dist/window.js +1 -0
- package/dist/window.mjs +0 -0
- package/package.json +9 -3
- package/utils/package.json +1 -1
- package/window/package.json +1 -1
- package/dist/chunk-4Z43OTO6.js +0 -1349
- package/dist/chunk-ALVD6MNU.js +0 -1113
- package/dist/transactionRequest-3e463099.d.ts +0 -44
@@ -0,0 +1,132 @@
|
|
1
|
+
import { Abi, AbiFunction, ExtractAbiFunction, AbiParametersToPrimitiveTypes, AbiError, ExtractAbiError, AbiEvent, ExtractAbiEvent, AbiStateMutability, ExtractAbiFunctionNames, AbiParameter, AbiParameterToPrimitiveType } from 'abitype';
|
2
|
+
import { v as TransactionRequest, O as OptionalNullable, d as Block, R as RpcBlock, D as Transaction, q as RpcTransaction, T as TransactionReceipt, s as RpcTransactionRequest } from './rpc-b77c5aee.js';
|
3
|
+
import { Chain, Formatter, Formatters } from './chains.js';
|
4
|
+
|
5
|
+
type AbiItem = Abi[number];
|
6
|
+
type AbiEventParametersToPrimitiveTypes<TAbiParameters extends readonly AbiParameter[], TBase = TAbiParameters[0] extends {
|
7
|
+
name: string;
|
8
|
+
} ? {} : []> = TAbiParameters extends readonly [infer Head, ...infer Tail] ? Head extends {
|
9
|
+
indexed: true;
|
10
|
+
} ? Head extends AbiParameter ? Head extends {
|
11
|
+
name: infer Name;
|
12
|
+
} ? Name extends string ? {
|
13
|
+
[name in Name]?: AbiParameterToPrimitiveType<Head> | AbiParameterToPrimitiveType<Head>[] | null;
|
14
|
+
} & (Tail extends readonly [] ? {} : Tail extends readonly AbiParameter[] ? AbiEventParametersToPrimitiveTypes<Tail> : {}) : never : [
|
15
|
+
(AbiParameterToPrimitiveType<Head> | AbiParameterToPrimitiveType<Head>[] | null),
|
16
|
+
...(Tail extends readonly [] ? [] : Tail extends readonly AbiParameter[] ? AbiEventParametersToPrimitiveTypes<Tail> : [])
|
17
|
+
] : TBase : TBase : TBase;
|
18
|
+
type ExtractArgsFromAbi<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiFunction extends AbiFunction & {
|
19
|
+
type: 'function';
|
20
|
+
} = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction & {
|
21
|
+
type: 'function';
|
22
|
+
}, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
23
|
+
/**
|
24
|
+
* Arguments to pass contract method
|
25
|
+
*
|
26
|
+
* Use a [const assertion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions) on {@link abi} for type inference.
|
27
|
+
*/
|
28
|
+
args?: readonly unknown[];
|
29
|
+
} : TArgs extends readonly [] ? {
|
30
|
+
args?: never;
|
31
|
+
} : {
|
32
|
+
/** Arguments to pass contract method */ args: TArgs;
|
33
|
+
};
|
34
|
+
type ExtractConstructorArgsFromAbi<TAbi extends Abi | readonly unknown[], TAbiFunction extends AbiFunction & {
|
35
|
+
type: 'constructor';
|
36
|
+
} = TAbi extends Abi ? Extract<TAbi[number], {
|
37
|
+
type: 'constructor';
|
38
|
+
}> : AbiFunction & {
|
39
|
+
type: 'constructor';
|
40
|
+
}, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
41
|
+
/**
|
42
|
+
* Arguments to pass contract method
|
43
|
+
*
|
44
|
+
* Use a [const assertion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions) on {@link abi} for type inference.
|
45
|
+
*/
|
46
|
+
args?: readonly unknown[];
|
47
|
+
} : TArgs extends readonly [] ? {
|
48
|
+
args?: never;
|
49
|
+
} : {
|
50
|
+
/** Arguments to pass contract method */ args: TArgs;
|
51
|
+
};
|
52
|
+
type ExtractErrorArgsFromAbi<TAbi extends Abi | readonly unknown[], TErrorName extends string, TAbiError extends AbiError = TAbi extends Abi ? ExtractAbiError<TAbi, TErrorName> : AbiError, TArgs = AbiParametersToPrimitiveTypes<TAbiError['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
53
|
+
/**
|
54
|
+
* Arguments to pass contract method
|
55
|
+
*
|
56
|
+
* Use a [const assertion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions) on {@link abi} for type inference.
|
57
|
+
*/
|
58
|
+
args?: readonly unknown[];
|
59
|
+
} : TArgs extends readonly [] ? {
|
60
|
+
args?: never;
|
61
|
+
} : {
|
62
|
+
/** Arguments to pass contract method */ args: TArgs;
|
63
|
+
};
|
64
|
+
type ExtractEventArgsFromAbi<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiEvent extends AbiEvent & {
|
65
|
+
type: 'event';
|
66
|
+
} = TAbi extends Abi ? ExtractAbiEvent<TAbi, TFunctionName> : AbiEvent & {
|
67
|
+
type: 'event';
|
68
|
+
}, TArgs = AbiEventParametersToPrimitiveTypes<TAbiEvent['inputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? {
|
69
|
+
/**
|
70
|
+
* Arguments to pass contract method
|
71
|
+
*
|
72
|
+
* Use a [const assertion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions) on {@link abi} for type inference.
|
73
|
+
*/
|
74
|
+
args?: readonly unknown[];
|
75
|
+
} : TArgs extends readonly [] ? {
|
76
|
+
args?: never;
|
77
|
+
} : {
|
78
|
+
args?: TArgs;
|
79
|
+
};
|
80
|
+
type ExtractFunctionNameFromAbi<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TAbiStateMutability extends AbiStateMutability = AbiStateMutability> = TAbi extends Abi ? ExtractAbiFunctionNames<TAbi, TAbiStateMutability> extends infer AbiFunctionNames ? AbiFunctionNames | (TFunctionName extends AbiFunctionNames ? TFunctionName : never) | (Abi extends TAbi ? string : never) : never : TFunctionName;
|
81
|
+
type ExtractResultFromAbi<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TAbiFunction extends AbiFunction & {
|
82
|
+
type: 'function';
|
83
|
+
} = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction & {
|
84
|
+
type: 'function';
|
85
|
+
}, TArgs = AbiParametersToPrimitiveTypes<TAbiFunction['outputs']>, FailedToParseArgs = ([TArgs] extends [never] ? true : false) | (readonly unknown[] extends TArgs ? true : false)> = true extends FailedToParseArgs ? unknown : TArgs extends readonly [] ? void : TArgs extends readonly [infer Arg] ? Arg : TArgs;
|
86
|
+
type GetValue<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TValueType = TransactionRequest['value'], TAbiFunction extends AbiFunction & {
|
87
|
+
type: 'function';
|
88
|
+
} = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction & {
|
89
|
+
type: 'function';
|
90
|
+
}> = TAbiFunction['stateMutability'] extends 'payable' ? TValueType : TAbiFunction['payable'] extends true ? TValueType : never;
|
91
|
+
|
92
|
+
type ExtractFormatter<TChain extends Chain, TKey extends keyof NonNullable<TChain['formatters']>, TFallbackFormatter extends Formatter = Formatter> = NonNullable<TChain['formatters']>[TKey] extends NonNullable<unknown> ? NonNullable<TChain['formatters']>[TKey] : TFallbackFormatter;
|
93
|
+
type FormatOptions<TSource, TTarget> = {
|
94
|
+
formatter: Formatter<TSource, TTarget>;
|
95
|
+
};
|
96
|
+
/**
|
97
|
+
* Creates a type that is the result of applying `TFormatter` to `TSource`.
|
98
|
+
*
|
99
|
+
* @example
|
100
|
+
* Formatted<() => { a: undefined, b: bigint }, { a: bigint }>
|
101
|
+
* => { a: undefined, b: bigint }
|
102
|
+
*
|
103
|
+
* @example
|
104
|
+
* Formatted<() => {}, { a: bigint }>
|
105
|
+
* => { a: bigint }
|
106
|
+
*
|
107
|
+
* @example
|
108
|
+
* Formatted<() => { a: bigint | undefined, b: bigint }, { a: bigint, b: bigint }, true>
|
109
|
+
* => { a?: bigint | undefined, b: bigint }
|
110
|
+
*/
|
111
|
+
type Formatted<TFormatter, TFallback, TAllowOptional = false> = TFormatter extends Formatter ? ReturnType<TFormatter> extends Record<string, never> ? TFallback : TAllowOptional extends true ? OptionalNullable<ReturnType<TFormatter>> : ReturnType<TFormatter> : never;
|
112
|
+
/**
|
113
|
+
* @description Formats a data object using the given replacer and an optional formatter.
|
114
|
+
*/
|
115
|
+
declare function format<TFormatter, TSource extends Record<string, any>, TTarget>(data: TSource, { formatter }: FormatOptions<TSource, TTarget>): Formatted<TFormatter, TTarget, false>;
|
116
|
+
|
117
|
+
type BlockFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'block', NonNullable<Formatters['block']>>;
|
118
|
+
type FormattedBlock<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Block>;
|
119
|
+
declare function formatBlock(block: Partial<RpcBlock>): Block<bigint, Transaction<bigint, number>>;
|
120
|
+
|
121
|
+
type TransactionFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transaction', NonNullable<Formatters['transaction']>>;
|
122
|
+
type FormattedTransaction<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Transaction>;
|
123
|
+
declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction<bigint, number>;
|
124
|
+
|
125
|
+
type TransactionReceiptFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transactionReceipt', NonNullable<Formatters['transactionReceipt']>>;
|
126
|
+
type FormattedTransactionReceipt<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, TransactionReceipt>;
|
127
|
+
|
128
|
+
type TransactionRequestFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transactionRequest', NonNullable<Formatters['transactionRequest']>>;
|
129
|
+
type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, RpcTransactionRequest>;
|
130
|
+
declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
|
131
|
+
|
132
|
+
export { AbiItem as A, BlockFormatter as B, ExtractFunctionNameFromAbi as E, FormattedBlock as F, GetValue as G, TransactionRequestFormatter as T, FormattedTransaction as a, FormattedTransactionRequest as b, formatTransaction as c, formatTransactionRequest as d, Formatted as e, formatBlock as f, ExtractArgsFromAbi as g, ExtractResultFromAbi as h, TransactionFormatter as i, FormattedTransactionReceipt as j, TransactionReceiptFormatter as k, ExtractFormatter as l, ExtractConstructorArgsFromAbi as m, ExtractErrorArgsFromAbi as n, ExtractEventArgsFromAbi as o, format as p };
|
package/dist/utils/index.d.ts
CHANGED
@@ -1,13 +1,36 @@
|
|
1
|
-
export { E as EncodeRlpResponse, G as GetContractAddressOptions,
|
2
|
-
|
1
|
+
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeFunctionDataArgs, c as DecodeFunctionResultArgs, d as DecodeFunctionResultResponse, E as EncodeAbiArgs, e as EncodeDeployDataArgs, f as EncodeErrorResultArgs, g as EncodeEventTopicsArgs, h as EncodeFunctionDataArgs, i as EncodeFunctionResultArgs, l as EncodeRlpResponse, G as GetContractAddressOptions, k as GetCreate2AddressOptions, j as GetCreateAddressOptions, o as boolToBytes, p as boolToHex, q as bytesToBigint, r as bytesToBool, m as bytesToHex, s as bytesToNumber, n as bytesToString, t as decodeAbi, u as decodeBytes, v as decodeErrorResult, w as decodeFunctionData, x as decodeFunctionResult, y as decodeHex, z as decodeRlp, A as encodeAbi, B as encodeBytes, C as encodeDeployData, F as encodeErrorResult, H as encodeEventTopics, I as encodeFunctionData, J as encodeFunctionResult, K as encodeHex, L as encodeRlp, S as formatEther, a7 as formatGwei, a8 as formatUnit, M as getAddress, N as getContractAddress, P as getCreate2Address, O as getCreateAddress, Q as getEventSignature, R as getFunctionSignature, X as hexToBigInt, Y as hexToBool, Z as hexToBytes, a9 as hexToNumber, _ as hexToString, T as isAddress, U as isAddressEqual, V as isBytes, W as isHex, $ as keccak256, a0 as numberToBytes, aa as numberToHex, a1 as pad, a2 as padBytes, a3 as padHex, a4 as parseEther, a5 as parseGwei, a6 as parseUnit, ab as size, ac as slice, ad as sliceBytes, ae as sliceHex, af as stringToBytes, ag as stringToHex, ah as trim } from '../parseGwei-7c87ff41.js';
|
2
|
+
import { A as AbiItem } from '../transactionRequest-08d30731.js';
|
3
|
+
export { B as BlockFormatter, l as ExtractFormatter, e as Formatted, F as FormattedBlock, a as FormattedTransaction, j as FormattedTransactionReceipt, b as FormattedTransactionRequest, i as TransactionFormatter, k as TransactionReceiptFormatter, T as TransactionRequestFormatter, p as format, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from '../transactionRequest-08d30731.js';
|
4
|
+
import * as abitype_dist_abi_b1bae27f from 'abitype/dist/abi-b1bae27f';
|
5
|
+
import { Abi } from 'abitype';
|
6
|
+
import { A as Address } from '../rpc-b77c5aee.js';
|
3
7
|
export { r as rpc } from '../rpc-26932bae.js';
|
4
|
-
import 'abitype';
|
5
|
-
import '../rpc-b77c5aee.js';
|
6
8
|
import '../chains.js';
|
7
9
|
import '@wagmi/chains';
|
8
10
|
|
11
|
+
declare function formatAbiItemWithArgs({ abiItem, args, includeFunctionName, includeName, }: {
|
12
|
+
abiItem: AbiItem;
|
13
|
+
args: readonly unknown[];
|
14
|
+
includeFunctionName?: boolean;
|
15
|
+
includeName?: boolean;
|
16
|
+
}): string | undefined;
|
17
|
+
|
18
|
+
declare function formatAbiItemWithParams(abiItem: AbiItem, { includeName }?: {
|
19
|
+
includeName?: boolean;
|
20
|
+
}): string;
|
21
|
+
|
22
|
+
declare function getAbiItem({ abi, name }: {
|
23
|
+
abi: Abi;
|
24
|
+
name: string;
|
25
|
+
}): abitype_dist_abi_b1bae27f.q | abitype_dist_abi_b1bae27f.p | abitype_dist_abi_b1bae27f.o | undefined;
|
26
|
+
|
9
27
|
declare function buildRequest<TRequest extends (args: any) => Promise<any>>(request: TRequest): TRequest;
|
10
28
|
|
29
|
+
declare function extractFunctionParts(def: string): {
|
30
|
+
type: string | undefined;
|
31
|
+
name: string | undefined;
|
32
|
+
params: string | undefined;
|
33
|
+
};
|
11
34
|
declare function extractFunctionName(def: string): string | undefined;
|
12
35
|
declare function extractFunctionParams(def: string): {
|
13
36
|
indexed?: boolean | undefined;
|
@@ -16,4 +39,14 @@ declare function extractFunctionParams(def: string): {
|
|
16
39
|
}[] | undefined;
|
17
40
|
declare function extractFunctionType(def: string): string | undefined;
|
18
41
|
|
19
|
-
|
42
|
+
declare function getContractError(err: unknown, { abi, address, args, functionName, sender, }: {
|
43
|
+
abi: Abi;
|
44
|
+
args: any;
|
45
|
+
address?: Address;
|
46
|
+
functionName: string;
|
47
|
+
sender?: Address;
|
48
|
+
}): unknown;
|
49
|
+
|
50
|
+
declare function stringify(value: unknown): string;
|
51
|
+
|
52
|
+
export { buildRequest, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, formatAbiItemWithArgs, formatAbiItemWithParams, getAbiItem, getContractError, stringify };
|
package/dist/utils/index.js
CHANGED
@@ -1,138 +1,148 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
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
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
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
|
+
|
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
|
+
var _chunk5ZBNF5WMjs = require('../chunk-5ZBNF5WM.js');
|
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
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
exports.boolToBytes = _chunk5ZBNF5WMjs.boolToBytes; exports.boolToHex = _chunk5ZBNF5WMjs.boolToHex; exports.buildRequest = _chunk5ZBNF5WMjs.buildRequest; exports.bytesToBigint = _chunk5ZBNF5WMjs.bytesToBigint; exports.bytesToBool = _chunk5ZBNF5WMjs.bytesToBool; exports.bytesToHex = _chunk5ZBNF5WMjs.bytesToHex; exports.bytesToNumber = _chunk5ZBNF5WMjs.bytesToNumber; exports.bytesToString = _chunk5ZBNF5WMjs.bytesToString; exports.decodeAbi = _chunk5ZBNF5WMjs.decodeAbi; exports.decodeBytes = _chunk5ZBNF5WMjs.decodeBytes; exports.decodeErrorResult = _chunk5ZBNF5WMjs.decodeErrorResult; exports.decodeFunctionData = _chunk5ZBNF5WMjs.decodeFunctionData; exports.decodeFunctionResult = _chunk5ZBNF5WMjs.decodeFunctionResult; exports.decodeHex = _chunk5ZBNF5WMjs.decodeHex; exports.decodeRlp = _chunk5ZBNF5WMjs.decodeRlp; exports.encodeAbi = _chunk5ZBNF5WMjs.encodeAbi; exports.encodeBytes = _chunk5ZBNF5WMjs.encodeBytes; exports.encodeDeployData = _chunk5ZBNF5WMjs.encodeDeployData; exports.encodeErrorResult = _chunk5ZBNF5WMjs.encodeErrorResult; exports.encodeEventTopics = _chunk5ZBNF5WMjs.encodeEventTopics; exports.encodeFunctionData = _chunk5ZBNF5WMjs.encodeFunctionData; exports.encodeFunctionResult = _chunk5ZBNF5WMjs.encodeFunctionResult; exports.encodeHex = _chunk5ZBNF5WMjs.encodeHex; exports.encodeRlp = _chunk5ZBNF5WMjs.encodeRlp; exports.extractFunctionName = _chunk5ZBNF5WMjs.extractFunctionName; exports.extractFunctionParams = _chunk5ZBNF5WMjs.extractFunctionParams; exports.extractFunctionParts = _chunk5ZBNF5WMjs.extractFunctionParts; exports.extractFunctionType = _chunk5ZBNF5WMjs.extractFunctionType; exports.format = _chunk5ZBNF5WMjs.format; exports.formatAbiItemWithArgs = _chunk5ZBNF5WMjs.formatAbiItemWithArgs; exports.formatAbiItemWithParams = _chunk5ZBNF5WMjs.formatAbiItemWithParams; exports.formatBlock = _chunk5ZBNF5WMjs.formatBlock; exports.formatEther = _chunk5ZBNF5WMjs.formatEther; exports.formatGwei = _chunk5ZBNF5WMjs.formatGwei; exports.formatTransaction = _chunk5ZBNF5WMjs.formatTransaction; exports.formatTransactionRequest = _chunk5ZBNF5WMjs.formatTransactionRequest; exports.formatUnit = _chunk5ZBNF5WMjs.formatUnit; exports.getAbiItem = _chunk5ZBNF5WMjs.getAbiItem; exports.getAddress = _chunk5ZBNF5WMjs.getAddress; exports.getContractAddress = _chunk5ZBNF5WMjs.getContractAddress; exports.getContractError = _chunk5ZBNF5WMjs.getContractError; exports.getCreate2Address = _chunk5ZBNF5WMjs.getCreate2Address; exports.getCreateAddress = _chunk5ZBNF5WMjs.getCreateAddress; exports.getEventSignature = _chunk5ZBNF5WMjs.getEventSignature; exports.getFunctionSignature = _chunk5ZBNF5WMjs.getFunctionSignature; exports.hexToBigInt = _chunk5ZBNF5WMjs.hexToBigInt; exports.hexToBool = _chunk5ZBNF5WMjs.hexToBool; exports.hexToBytes = _chunk5ZBNF5WMjs.hexToBytes; exports.hexToNumber = _chunk5ZBNF5WMjs.hexToNumber; exports.hexToString = _chunk5ZBNF5WMjs.hexToString; exports.isAddress = _chunk5ZBNF5WMjs.isAddress; exports.isAddressEqual = _chunk5ZBNF5WMjs.isAddressEqual; exports.isBytes = _chunk5ZBNF5WMjs.isBytes; exports.isHex = _chunk5ZBNF5WMjs.isHex; exports.keccak256 = _chunk5ZBNF5WMjs.keccak256; exports.numberToBytes = _chunk5ZBNF5WMjs.numberToBytes; exports.numberToHex = _chunk5ZBNF5WMjs.numberToHex; exports.pad = _chunk5ZBNF5WMjs.pad; exports.padBytes = _chunk5ZBNF5WMjs.padBytes; exports.padHex = _chunk5ZBNF5WMjs.padHex; exports.parseEther = _chunk5ZBNF5WMjs.parseEther; exports.parseGwei = _chunk5ZBNF5WMjs.parseGwei; exports.parseUnit = _chunk5ZBNF5WMjs.parseUnit; exports.rpc = _chunk5ZBNF5WMjs.rpc; exports.size = _chunk5ZBNF5WMjs.size; exports.slice = _chunk5ZBNF5WMjs.slice; exports.sliceBytes = _chunk5ZBNF5WMjs.sliceBytes; exports.sliceHex = _chunk5ZBNF5WMjs.sliceHex; exports.stringToBytes = _chunk5ZBNF5WMjs.stringToBytes; exports.stringToHex = _chunk5ZBNF5WMjs.stringToHex; exports.stringify = _chunk5ZBNF5WMjs.stringify; exports.trim = _chunk5ZBNF5WMjs.trim;
|
@@ -0,0 +1,148 @@
|
|
1
|
+
import {
|
2
|
+
boolToBytes,
|
3
|
+
boolToHex,
|
4
|
+
buildRequest,
|
5
|
+
bytesToBigint,
|
6
|
+
bytesToBool,
|
7
|
+
bytesToHex,
|
8
|
+
bytesToNumber,
|
9
|
+
bytesToString,
|
10
|
+
decodeAbi,
|
11
|
+
decodeBytes,
|
12
|
+
decodeErrorResult,
|
13
|
+
decodeFunctionData,
|
14
|
+
decodeFunctionResult,
|
15
|
+
decodeHex,
|
16
|
+
decodeRlp,
|
17
|
+
encodeAbi,
|
18
|
+
encodeBytes,
|
19
|
+
encodeDeployData,
|
20
|
+
encodeErrorResult,
|
21
|
+
encodeEventTopics,
|
22
|
+
encodeFunctionData,
|
23
|
+
encodeFunctionResult,
|
24
|
+
encodeHex,
|
25
|
+
encodeRlp,
|
26
|
+
extractFunctionName,
|
27
|
+
extractFunctionParams,
|
28
|
+
extractFunctionParts,
|
29
|
+
extractFunctionType,
|
30
|
+
format,
|
31
|
+
formatAbiItemWithArgs,
|
32
|
+
formatAbiItemWithParams,
|
33
|
+
formatBlock,
|
34
|
+
formatEther,
|
35
|
+
formatGwei,
|
36
|
+
formatTransaction,
|
37
|
+
formatTransactionRequest,
|
38
|
+
formatUnit,
|
39
|
+
getAbiItem,
|
40
|
+
getAddress,
|
41
|
+
getContractAddress,
|
42
|
+
getContractError,
|
43
|
+
getCreate2Address,
|
44
|
+
getCreateAddress,
|
45
|
+
getEventSignature,
|
46
|
+
getFunctionSignature,
|
47
|
+
hexToBigInt,
|
48
|
+
hexToBool,
|
49
|
+
hexToBytes,
|
50
|
+
hexToNumber,
|
51
|
+
hexToString,
|
52
|
+
isAddress,
|
53
|
+
isAddressEqual,
|
54
|
+
isBytes,
|
55
|
+
isHex,
|
56
|
+
keccak256,
|
57
|
+
numberToBytes,
|
58
|
+
numberToHex,
|
59
|
+
pad,
|
60
|
+
padBytes,
|
61
|
+
padHex,
|
62
|
+
parseEther,
|
63
|
+
parseGwei,
|
64
|
+
parseUnit,
|
65
|
+
rpc,
|
66
|
+
size,
|
67
|
+
slice,
|
68
|
+
sliceBytes,
|
69
|
+
sliceHex,
|
70
|
+
stringToBytes,
|
71
|
+
stringToHex,
|
72
|
+
stringify,
|
73
|
+
trim
|
74
|
+
} from "../chunk-2FDH6XP5.mjs";
|
75
|
+
export {
|
76
|
+
boolToBytes,
|
77
|
+
boolToHex,
|
78
|
+
buildRequest,
|
79
|
+
bytesToBigint,
|
80
|
+
bytesToBool,
|
81
|
+
bytesToHex,
|
82
|
+
bytesToNumber,
|
83
|
+
bytesToString,
|
84
|
+
decodeAbi,
|
85
|
+
decodeBytes,
|
86
|
+
decodeErrorResult,
|
87
|
+
decodeFunctionData,
|
88
|
+
decodeFunctionResult,
|
89
|
+
decodeHex,
|
90
|
+
decodeRlp,
|
91
|
+
encodeAbi,
|
92
|
+
encodeBytes,
|
93
|
+
encodeDeployData,
|
94
|
+
encodeErrorResult,
|
95
|
+
encodeEventTopics,
|
96
|
+
encodeFunctionData,
|
97
|
+
encodeFunctionResult,
|
98
|
+
encodeHex,
|
99
|
+
encodeRlp,
|
100
|
+
extractFunctionName,
|
101
|
+
extractFunctionParams,
|
102
|
+
extractFunctionParts,
|
103
|
+
extractFunctionType,
|
104
|
+
format,
|
105
|
+
formatAbiItemWithArgs,
|
106
|
+
formatAbiItemWithParams,
|
107
|
+
formatBlock,
|
108
|
+
formatEther,
|
109
|
+
formatGwei,
|
110
|
+
formatTransaction,
|
111
|
+
formatTransactionRequest,
|
112
|
+
formatUnit,
|
113
|
+
getAbiItem,
|
114
|
+
getAddress,
|
115
|
+
getContractAddress,
|
116
|
+
getContractError,
|
117
|
+
getCreate2Address,
|
118
|
+
getCreateAddress,
|
119
|
+
getEventSignature,
|
120
|
+
getFunctionSignature,
|
121
|
+
hexToBigInt,
|
122
|
+
hexToBool,
|
123
|
+
hexToBytes,
|
124
|
+
hexToNumber,
|
125
|
+
hexToString,
|
126
|
+
isAddress,
|
127
|
+
isAddressEqual,
|
128
|
+
isBytes,
|
129
|
+
isHex,
|
130
|
+
keccak256,
|
131
|
+
numberToBytes,
|
132
|
+
numberToHex,
|
133
|
+
pad,
|
134
|
+
padBytes,
|
135
|
+
padHex,
|
136
|
+
parseEther,
|
137
|
+
parseGwei,
|
138
|
+
parseUnit,
|
139
|
+
rpc,
|
140
|
+
size,
|
141
|
+
slice,
|
142
|
+
sliceBytes,
|
143
|
+
sliceHex,
|
144
|
+
stringToBytes,
|
145
|
+
stringToHex,
|
146
|
+
stringify,
|
147
|
+
trim
|
148
|
+
};
|