web3-tools-mcp 1.2.3 → 1.3.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.
- package/README.md +18 -5
- package/dist/client.d.ts +483 -411
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +107 -14
- package/dist/client.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/advanced.d.ts +12 -12
- package/dist/tools/balance.d.ts +6 -6
- package/dist/tools/contract-info.d.ts +12 -12
- package/dist/tools/contract.d.ts +10 -10
- package/dist/tools/ens.d.ts +20 -20
- package/dist/tools/gas.d.ts +99 -0
- package/dist/tools/gas.d.ts.map +1 -0
- package/dist/tools/gas.js +229 -0
- package/dist/tools/gas.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/logs.d.ts +4 -4
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +128 -14
- package/src/index.ts +1 -1
- package/src/tools/gas.ts +267 -0
- package/src/tools/index.ts +3 -1
- package/src/types.ts +14 -1
package/dist/client.d.ts
CHANGED
|
@@ -740,42 +740,206 @@ export declare const CHAINS: (config: Config) => {
|
|
|
740
740
|
};
|
|
741
741
|
readonly rpc: string;
|
|
742
742
|
};
|
|
743
|
-
|
|
743
|
+
avalanche: {
|
|
744
744
|
chain: {
|
|
745
745
|
blockExplorers: {
|
|
746
746
|
readonly default: {
|
|
747
|
-
readonly name: "
|
|
748
|
-
readonly url: "https://
|
|
749
|
-
readonly apiUrl: "https://api.
|
|
747
|
+
readonly name: "SnowTrace";
|
|
748
|
+
readonly url: "https://snowtrace.io";
|
|
749
|
+
readonly apiUrl: "https://api.snowtrace.io";
|
|
750
750
|
};
|
|
751
751
|
};
|
|
752
|
-
blockTime
|
|
752
|
+
blockTime?: number | undefined | undefined;
|
|
753
753
|
contracts: {
|
|
754
754
|
readonly multicall3: {
|
|
755
|
-
readonly address: "
|
|
756
|
-
readonly blockCreated:
|
|
755
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
756
|
+
readonly blockCreated: 11907934;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
ensTlds?: readonly string[] | undefined;
|
|
760
|
+
id: 43114;
|
|
761
|
+
name: "Avalanche";
|
|
762
|
+
nativeCurrency: {
|
|
763
|
+
readonly decimals: 18;
|
|
764
|
+
readonly name: "Avalanche";
|
|
765
|
+
readonly symbol: "AVAX";
|
|
766
|
+
};
|
|
767
|
+
rpcUrls: {
|
|
768
|
+
readonly default: {
|
|
769
|
+
readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
sourceId?: number | undefined | undefined;
|
|
773
|
+
testnet?: boolean | undefined | undefined;
|
|
774
|
+
custom?: Record<string, unknown> | undefined;
|
|
775
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
776
|
+
formatters?: undefined;
|
|
777
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
778
|
+
};
|
|
779
|
+
readonly rpc: string;
|
|
780
|
+
};
|
|
781
|
+
bnb: {
|
|
782
|
+
chain: {
|
|
783
|
+
blockExplorers: {
|
|
784
|
+
readonly default: {
|
|
785
|
+
readonly name: "BscScan";
|
|
786
|
+
readonly url: "https://bscscan.com";
|
|
787
|
+
readonly apiUrl: "https://api.bscscan.com/api";
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
blockTime?: number | undefined | undefined;
|
|
791
|
+
contracts: {
|
|
792
|
+
readonly multicall3: {
|
|
793
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
794
|
+
readonly blockCreated: 15921452;
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
ensTlds?: readonly string[] | undefined;
|
|
798
|
+
id: 56;
|
|
799
|
+
name: "BNB Smart Chain";
|
|
800
|
+
nativeCurrency: {
|
|
801
|
+
readonly decimals: 18;
|
|
802
|
+
readonly name: "BNB";
|
|
803
|
+
readonly symbol: "BNB";
|
|
804
|
+
};
|
|
805
|
+
rpcUrls: {
|
|
806
|
+
readonly default: {
|
|
807
|
+
readonly http: readonly ["https://56.rpc.thirdweb.com"];
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
sourceId?: number | undefined | undefined;
|
|
811
|
+
testnet?: boolean | undefined | undefined;
|
|
812
|
+
custom?: Record<string, unknown> | undefined;
|
|
813
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
814
|
+
formatters?: undefined;
|
|
815
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
816
|
+
};
|
|
817
|
+
readonly rpc: string;
|
|
818
|
+
};
|
|
819
|
+
gnosis: {
|
|
820
|
+
chain: {
|
|
821
|
+
blockExplorers: {
|
|
822
|
+
readonly default: {
|
|
823
|
+
readonly name: "Gnosisscan";
|
|
824
|
+
readonly url: "https://gnosisscan.io";
|
|
825
|
+
readonly apiUrl: "https://api.gnosisscan.io/api";
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
blockTime?: number | undefined | undefined;
|
|
829
|
+
contracts: {
|
|
830
|
+
readonly multicall3: {
|
|
831
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
832
|
+
readonly blockCreated: 21022491;
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
ensTlds?: readonly string[] | undefined;
|
|
836
|
+
id: 100;
|
|
837
|
+
name: "Gnosis";
|
|
838
|
+
nativeCurrency: {
|
|
839
|
+
readonly decimals: 18;
|
|
840
|
+
readonly name: "xDAI";
|
|
841
|
+
readonly symbol: "XDAI";
|
|
842
|
+
};
|
|
843
|
+
rpcUrls: {
|
|
844
|
+
readonly default: {
|
|
845
|
+
readonly http: readonly ["https://rpc.gnosischain.com"];
|
|
846
|
+
readonly webSocket: readonly ["wss://rpc.gnosischain.com/wss"];
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
sourceId?: number | undefined | undefined;
|
|
850
|
+
testnet?: boolean | undefined | undefined;
|
|
851
|
+
custom?: Record<string, unknown> | undefined;
|
|
852
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
853
|
+
formatters?: undefined;
|
|
854
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
855
|
+
};
|
|
856
|
+
readonly rpc: string;
|
|
857
|
+
};
|
|
858
|
+
sonic: {
|
|
859
|
+
chain: {
|
|
860
|
+
blockExplorers: {
|
|
861
|
+
readonly default: {
|
|
862
|
+
readonly name: "Sonic Explorer";
|
|
863
|
+
readonly url: "https://sonicscan.org";
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
blockTime?: number | undefined | undefined;
|
|
867
|
+
contracts: {
|
|
868
|
+
readonly multicall3: {
|
|
869
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
870
|
+
readonly blockCreated: 60;
|
|
757
871
|
};
|
|
758
872
|
};
|
|
759
873
|
ensTlds?: readonly string[] | undefined;
|
|
760
|
-
id:
|
|
761
|
-
name: "
|
|
874
|
+
id: 146;
|
|
875
|
+
name: "Sonic";
|
|
762
876
|
nativeCurrency: {
|
|
763
877
|
readonly decimals: 18;
|
|
764
|
-
readonly name: "
|
|
765
|
-
readonly symbol: "
|
|
878
|
+
readonly name: "Sonic";
|
|
879
|
+
readonly symbol: "S";
|
|
766
880
|
};
|
|
767
881
|
rpcUrls: {
|
|
768
882
|
readonly default: {
|
|
769
|
-
readonly http: readonly ["https://
|
|
883
|
+
readonly http: readonly ["https://rpc.soniclabs.com"];
|
|
770
884
|
};
|
|
771
885
|
};
|
|
772
886
|
sourceId?: number | undefined | undefined;
|
|
773
887
|
testnet: false;
|
|
774
888
|
custom?: Record<string, unknown> | undefined;
|
|
775
|
-
fees
|
|
889
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
890
|
+
formatters?: undefined;
|
|
891
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
892
|
+
};
|
|
893
|
+
readonly rpc: string;
|
|
894
|
+
};
|
|
895
|
+
zksync: {
|
|
896
|
+
chain: {
|
|
897
|
+
blockExplorers: {
|
|
898
|
+
readonly default: {
|
|
899
|
+
readonly name: "Etherscan";
|
|
900
|
+
readonly url: "https://era.zksync.network/";
|
|
901
|
+
readonly apiUrl: "https://api-era.zksync.network/api";
|
|
902
|
+
};
|
|
903
|
+
readonly native: {
|
|
904
|
+
readonly name: "ZKsync Explorer";
|
|
905
|
+
readonly url: "https://explorer.zksync.io/";
|
|
906
|
+
readonly apiUrl: "https://block-explorer-api.mainnet.zksync.io/api";
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
blockTime: 1000;
|
|
910
|
+
contracts: {
|
|
911
|
+
readonly multicall3: {
|
|
912
|
+
readonly address: "0xF9cda624FBC7e059355ce98a31693d299FACd963";
|
|
913
|
+
};
|
|
914
|
+
readonly universalSignatureVerifier: {
|
|
915
|
+
readonly address: "0xfB688330379976DA81eB64Fe4BF50d7401763B9C";
|
|
916
|
+
readonly blockCreated: 45659388;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
ensTlds?: readonly string[] | undefined;
|
|
920
|
+
id: 324;
|
|
921
|
+
name: "ZKsync Era";
|
|
922
|
+
nativeCurrency: {
|
|
923
|
+
readonly decimals: 18;
|
|
924
|
+
readonly name: "Ether";
|
|
925
|
+
readonly symbol: "ETH";
|
|
926
|
+
};
|
|
927
|
+
rpcUrls: {
|
|
928
|
+
readonly default: {
|
|
929
|
+
readonly http: readonly ["https://mainnet.era.zksync.io"];
|
|
930
|
+
readonly webSocket: readonly ["wss://mainnet.era.zksync.io/ws"];
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
sourceId?: number | undefined | undefined;
|
|
934
|
+
testnet?: boolean | undefined | undefined;
|
|
935
|
+
custom: {
|
|
936
|
+
readonly getEip712Domain: import("viem/zksync").EIP712DomainFn<import("viem/chains").ZkSyncTransactionSerializable, import("viem/chains").ZkSyncEIP712TransactionSignable>;
|
|
937
|
+
};
|
|
938
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
939
|
+
formatters: {
|
|
776
940
|
readonly block: {
|
|
777
941
|
exclude: [] | undefined;
|
|
778
|
-
format: (args: import("viem/chains").
|
|
942
|
+
format: (args: import("viem/chains").ZkSyncRpcBlock) => {
|
|
779
943
|
baseFeePerGas: bigint | null;
|
|
780
944
|
blobGasUsed: bigint;
|
|
781
945
|
difficulty: bigint;
|
|
@@ -798,17 +962,19 @@ export declare const CHAINS: (config: Config) => {
|
|
|
798
962
|
stateRoot: import("viem").Hash;
|
|
799
963
|
timestamp: bigint;
|
|
800
964
|
totalDifficulty: bigint | null;
|
|
801
|
-
transactions: `0x${string}`[] | import("viem/chains").
|
|
965
|
+
transactions: `0x${string}`[] | import("viem/chains").ZkSyncTransaction<boolean>[];
|
|
802
966
|
transactionsRoot: import("viem").Hash;
|
|
803
967
|
uncles: import("viem").Hash[];
|
|
804
968
|
withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
|
|
805
969
|
withdrawalsRoot?: `0x${string}` | undefined;
|
|
970
|
+
l1BatchNumber: bigint | null;
|
|
971
|
+
l1BatchTimestamp: bigint | null;
|
|
806
972
|
} & {};
|
|
807
973
|
type: "block";
|
|
808
974
|
};
|
|
809
975
|
readonly transaction: {
|
|
810
976
|
exclude: [] | undefined;
|
|
811
|
-
format: (args: import("viem/chains").
|
|
977
|
+
format: (args: import("viem/chains").ZkSyncRpcTransaction) => ({
|
|
812
978
|
r: import("viem").Hex;
|
|
813
979
|
s: import("viem").Hex;
|
|
814
980
|
v: bigint;
|
|
@@ -833,12 +999,8 @@ export declare const CHAINS: (config: Config) => {
|
|
|
833
999
|
maxFeePerBlobGas?: undefined | undefined;
|
|
834
1000
|
maxFeePerGas?: undefined | undefined;
|
|
835
1001
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
isSystemTx?: undefined;
|
|
839
|
-
sourceHash?: undefined;
|
|
840
|
-
gatewayFee?: undefined;
|
|
841
|
-
gatewayFeeRecipient?: undefined;
|
|
1002
|
+
l1BatchNumber: bigint | null;
|
|
1003
|
+
l1BatchTxIndex: bigint | null;
|
|
842
1004
|
} | {
|
|
843
1005
|
blockHash: `0x${string}` | null;
|
|
844
1006
|
blockNumber: bigint | null;
|
|
@@ -864,12 +1026,8 @@ export declare const CHAINS: (config: Config) => {
|
|
|
864
1026
|
maxFeePerBlobGas?: undefined | undefined;
|
|
865
1027
|
maxFeePerGas?: undefined | undefined;
|
|
866
1028
|
maxPriorityFeePerGas?: undefined | undefined;
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
isSystemTx?: undefined;
|
|
870
|
-
sourceHash?: undefined;
|
|
871
|
-
gatewayFee?: undefined;
|
|
872
|
-
gatewayFeeRecipient?: undefined;
|
|
1029
|
+
l1BatchNumber: bigint | null;
|
|
1030
|
+
l1BatchTxIndex: bigint | null;
|
|
873
1031
|
} | {
|
|
874
1032
|
blockHash: `0x${string}` | null;
|
|
875
1033
|
blockNumber: bigint | null;
|
|
@@ -895,12 +1053,8 @@ export declare const CHAINS: (config: Config) => {
|
|
|
895
1053
|
maxFeePerBlobGas?: undefined | undefined;
|
|
896
1054
|
maxFeePerGas: bigint;
|
|
897
1055
|
maxPriorityFeePerGas: bigint;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
isSystemTx?: undefined;
|
|
901
|
-
sourceHash?: undefined;
|
|
902
|
-
gatewayFee?: undefined;
|
|
903
|
-
gatewayFeeRecipient?: undefined;
|
|
1056
|
+
l1BatchNumber: bigint | null;
|
|
1057
|
+
l1BatchTxIndex: bigint | null;
|
|
904
1058
|
} | {
|
|
905
1059
|
blockHash: `0x${string}` | null;
|
|
906
1060
|
blockNumber: bigint | null;
|
|
@@ -926,12 +1080,8 @@ export declare const CHAINS: (config: Config) => {
|
|
|
926
1080
|
maxFeePerBlobGas: bigint;
|
|
927
1081
|
maxFeePerGas: bigint;
|
|
928
1082
|
maxPriorityFeePerGas: bigint;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
isSystemTx?: undefined;
|
|
932
|
-
sourceHash?: undefined;
|
|
933
|
-
gatewayFee?: undefined;
|
|
934
|
-
gatewayFeeRecipient?: undefined;
|
|
1083
|
+
l1BatchNumber: bigint | null;
|
|
1084
|
+
l1BatchTxIndex: bigint | null;
|
|
935
1085
|
} | {
|
|
936
1086
|
blockHash: `0x${string}` | null;
|
|
937
1087
|
blockNumber: bigint | null;
|
|
@@ -957,43 +1107,8 @@ export declare const CHAINS: (config: Config) => {
|
|
|
957
1107
|
maxFeePerBlobGas?: undefined | undefined;
|
|
958
1108
|
maxFeePerGas: bigint;
|
|
959
1109
|
maxPriorityFeePerGas: bigint;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
isSystemTx?: undefined;
|
|
963
|
-
sourceHash?: undefined;
|
|
964
|
-
gatewayFee?: undefined;
|
|
965
|
-
gatewayFeeRecipient?: undefined;
|
|
966
|
-
} | {
|
|
967
|
-
blockHash: `0x${string}` | null;
|
|
968
|
-
blockNumber: bigint | null;
|
|
969
|
-
from: import("viem").Address;
|
|
970
|
-
gas: bigint;
|
|
971
|
-
hash: import("viem").Hash;
|
|
972
|
-
input: import("viem").Hex;
|
|
973
|
-
nonce: number;
|
|
974
|
-
r: import("viem").Hex;
|
|
975
|
-
s: import("viem").Hex;
|
|
976
|
-
to: import("viem").Address | null;
|
|
977
|
-
transactionIndex: number | null;
|
|
978
|
-
typeHex: import("viem").Hex | null;
|
|
979
|
-
v: bigint;
|
|
980
|
-
value: bigint;
|
|
981
|
-
yParity: number;
|
|
982
|
-
gasPrice?: undefined | undefined;
|
|
983
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
984
|
-
maxFeePerGas: bigint;
|
|
985
|
-
maxPriorityFeePerGas: bigint;
|
|
986
|
-
accessList: import("viem").AccessList;
|
|
987
|
-
chainId: number;
|
|
988
|
-
feeCurrency: import("viem").Address | null;
|
|
989
|
-
gatewayFee: bigint | null;
|
|
990
|
-
gatewayFeeRecipient: import("viem").Address | null;
|
|
991
|
-
type: "cip42";
|
|
992
|
-
blobVersionedHashes?: undefined;
|
|
993
|
-
authorizationList?: undefined;
|
|
994
|
-
mint?: undefined;
|
|
995
|
-
isSystemTx?: undefined;
|
|
996
|
-
sourceHash?: undefined;
|
|
1110
|
+
l1BatchNumber: bigint | null;
|
|
1111
|
+
l1BatchTxIndex: bigint | null;
|
|
997
1112
|
} | {
|
|
998
1113
|
blockHash: `0x${string}` | null;
|
|
999
1114
|
blockNumber: bigint | null;
|
|
@@ -1010,21 +1125,13 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1010
1125
|
v: bigint;
|
|
1011
1126
|
value: bigint;
|
|
1012
1127
|
yParity: number;
|
|
1128
|
+
l1BatchNumber: bigint | null;
|
|
1129
|
+
l1BatchTxIndex: bigint | null;
|
|
1013
1130
|
gasPrice?: undefined | undefined;
|
|
1014
1131
|
maxFeePerBlobGas?: undefined | undefined;
|
|
1015
1132
|
maxFeePerGas: bigint;
|
|
1016
1133
|
maxPriorityFeePerGas: bigint;
|
|
1017
|
-
|
|
1018
|
-
chainId: number;
|
|
1019
|
-
feeCurrency: import("viem").Address | null;
|
|
1020
|
-
type: "cip64";
|
|
1021
|
-
blobVersionedHashes?: undefined;
|
|
1022
|
-
authorizationList?: undefined;
|
|
1023
|
-
mint?: undefined;
|
|
1024
|
-
isSystemTx?: undefined;
|
|
1025
|
-
sourceHash?: undefined;
|
|
1026
|
-
gatewayFee?: undefined;
|
|
1027
|
-
gatewayFeeRecipient?: undefined;
|
|
1134
|
+
type: "priority";
|
|
1028
1135
|
} | {
|
|
1029
1136
|
blockHash: `0x${string}` | null;
|
|
1030
1137
|
blockNumber: bigint | null;
|
|
@@ -1041,27 +1148,45 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1041
1148
|
v: bigint;
|
|
1042
1149
|
value: bigint;
|
|
1043
1150
|
yParity: number;
|
|
1151
|
+
l1BatchNumber: bigint | null;
|
|
1152
|
+
l1BatchTxIndex: bigint | null;
|
|
1044
1153
|
gasPrice?: undefined | undefined;
|
|
1045
1154
|
maxFeePerBlobGas?: undefined | undefined;
|
|
1046
1155
|
maxFeePerGas: bigint;
|
|
1047
1156
|
maxPriorityFeePerGas: bigint;
|
|
1048
|
-
|
|
1049
|
-
mint?: bigint | undefined | undefined;
|
|
1050
|
-
sourceHash: import("viem").Hex;
|
|
1051
|
-
type: "deposit";
|
|
1052
|
-
accessList?: undefined;
|
|
1053
|
-
blobVersionedHashes?: undefined;
|
|
1054
|
-
authorizationList?: undefined;
|
|
1055
|
-
chainId?: undefined;
|
|
1056
|
-
feeCurrency?: undefined;
|
|
1057
|
-
gatewayFee?: undefined;
|
|
1058
|
-
gatewayFeeRecipient?: undefined;
|
|
1157
|
+
type: "eip712" | "priority";
|
|
1059
1158
|
}) & {};
|
|
1060
1159
|
type: "transaction";
|
|
1061
1160
|
};
|
|
1062
|
-
readonly
|
|
1161
|
+
readonly transactionReceipt: {
|
|
1063
1162
|
exclude: [] | undefined;
|
|
1064
|
-
format: (args: import("viem/chains").
|
|
1163
|
+
format: (args: import("viem/chains").ZkSyncRpcTransactionReceipt) => {
|
|
1164
|
+
type: import("viem/chains").ZkSyncTransactionType;
|
|
1165
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
1166
|
+
to: import("viem").Address | null;
|
|
1167
|
+
from: import("viem").Address;
|
|
1168
|
+
blockHash: import("viem").Hash;
|
|
1169
|
+
blockNumber: bigint;
|
|
1170
|
+
transactionIndex: number;
|
|
1171
|
+
status: "success" | "reverted";
|
|
1172
|
+
logsBloom: import("viem").Hex;
|
|
1173
|
+
blobGasUsed?: bigint | undefined;
|
|
1174
|
+
gasUsed: bigint;
|
|
1175
|
+
transactionHash: import("viem").Hash;
|
|
1176
|
+
blobGasPrice?: bigint | undefined;
|
|
1177
|
+
cumulativeGasUsed: bigint;
|
|
1178
|
+
effectiveGasPrice: bigint;
|
|
1179
|
+
root?: `0x${string}` | undefined;
|
|
1180
|
+
l1BatchNumber: bigint | null;
|
|
1181
|
+
l1BatchTxIndex: bigint | null;
|
|
1182
|
+
logs: import("viem/chains").ZkSyncLog[];
|
|
1183
|
+
l2ToL1Logs: import("viem/chains").ZkSyncL2ToL1Log[];
|
|
1184
|
+
} & {};
|
|
1185
|
+
type: "transactionReceipt";
|
|
1186
|
+
};
|
|
1187
|
+
readonly transactionRequest: {
|
|
1188
|
+
exclude: ("paymaster" | "gasPerPubdata" | "factoryDeps" | "paymasterInput" | "customSignature")[] | undefined;
|
|
1189
|
+
format: (args: import("viem/chains").ZkSyncTransactionRequest) => ({
|
|
1065
1190
|
data?: `0x${string}` | undefined;
|
|
1066
1191
|
from?: `0x${string}` | undefined;
|
|
1067
1192
|
gas?: `0x${string}` | undefined;
|
|
@@ -1079,7 +1204,7 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1079
1204
|
kzg?: undefined;
|
|
1080
1205
|
sidecars?: undefined;
|
|
1081
1206
|
authorizationList?: undefined;
|
|
1082
|
-
|
|
1207
|
+
eip712Meta?: undefined | undefined;
|
|
1083
1208
|
} | {
|
|
1084
1209
|
data?: `0x${string}` | undefined;
|
|
1085
1210
|
from?: `0x${string}` | undefined;
|
|
@@ -1098,7 +1223,7 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1098
1223
|
kzg?: undefined;
|
|
1099
1224
|
sidecars?: undefined;
|
|
1100
1225
|
authorizationList?: undefined;
|
|
1101
|
-
|
|
1226
|
+
eip712Meta?: undefined | undefined;
|
|
1102
1227
|
} | {
|
|
1103
1228
|
data?: `0x${string}` | undefined;
|
|
1104
1229
|
from?: `0x${string}` | undefined;
|
|
@@ -1117,7 +1242,7 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1117
1242
|
kzg?: undefined;
|
|
1118
1243
|
sidecars?: undefined;
|
|
1119
1244
|
authorizationList?: undefined;
|
|
1120
|
-
|
|
1245
|
+
eip712Meta?: undefined | undefined;
|
|
1121
1246
|
} | {
|
|
1122
1247
|
type?: "0x3" | undefined;
|
|
1123
1248
|
data?: `0x${string}` | undefined;
|
|
@@ -1136,7 +1261,7 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1136
1261
|
kzg?: import("viem").Kzg | undefined;
|
|
1137
1262
|
sidecars?: readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
|
|
1138
1263
|
authorizationList?: undefined;
|
|
1139
|
-
|
|
1264
|
+
eip712Meta?: undefined | undefined;
|
|
1140
1265
|
} | {
|
|
1141
1266
|
type?: "0x4" | undefined;
|
|
1142
1267
|
gasPrice?: undefined | undefined;
|
|
@@ -1155,100 +1280,192 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1155
1280
|
blobVersionedHashes?: undefined;
|
|
1156
1281
|
kzg?: undefined;
|
|
1157
1282
|
sidecars?: undefined;
|
|
1158
|
-
|
|
1283
|
+
eip712Meta?: undefined | undefined;
|
|
1159
1284
|
} | {
|
|
1160
1285
|
data?: `0x${string}` | undefined;
|
|
1161
1286
|
from?: `0x${string}` | undefined;
|
|
1162
1287
|
gas?: `0x${string}` | undefined;
|
|
1163
1288
|
nonce?: `0x${string}` | undefined;
|
|
1164
1289
|
to?: `0x${string}` | null | undefined;
|
|
1165
|
-
type
|
|
1290
|
+
type: "0xff" | "0x71";
|
|
1166
1291
|
value?: `0x${string}` | undefined;
|
|
1167
|
-
accessList?: import("viem").AccessList | undefined;
|
|
1168
|
-
feeCurrency?: `0x${string}` | undefined;
|
|
1169
1292
|
gasPrice?: undefined | undefined;
|
|
1170
1293
|
maxFeePerBlobGas?: undefined | undefined;
|
|
1171
1294
|
maxFeePerGas?: `0x${string}` | undefined;
|
|
1172
1295
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1296
|
+
eip712Meta: import("viem/chains").ZkSyncEip712Meta;
|
|
1297
|
+
}) & {
|
|
1298
|
+
paymaster: never;
|
|
1299
|
+
gasPerPubdata: never;
|
|
1300
|
+
factoryDeps: never;
|
|
1301
|
+
paymasterInput: never;
|
|
1302
|
+
customSignature: never;
|
|
1303
|
+
};
|
|
1179
1304
|
type: "transactionRequest";
|
|
1180
1305
|
};
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
readonly
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
mixHash: import("viem").Hash;
|
|
1197
|
-
nonce: `0x${string}` | null;
|
|
1198
|
-
number: bigint | null;
|
|
1199
|
-
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
1200
|
-
parentHash: import("viem").Hash;
|
|
1201
|
-
receiptsRoot: import("viem").Hex;
|
|
1202
|
-
sealFields: import("viem").Hex[];
|
|
1203
|
-
sha3Uncles: import("viem").Hash;
|
|
1204
|
-
size: bigint;
|
|
1205
|
-
stateRoot: import("viem").Hash;
|
|
1206
|
-
timestamp: bigint;
|
|
1207
|
-
totalDifficulty: bigint | null;
|
|
1208
|
-
transactions: `0x${string}`[] | import("viem/chains").CeloTransaction<boolean>[];
|
|
1209
|
-
transactionsRoot: import("viem").Hash;
|
|
1210
|
-
uncles: import("viem").Hash[];
|
|
1211
|
-
withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
|
|
1212
|
-
withdrawalsRoot?: `0x${string}` | undefined;
|
|
1213
|
-
} & {};
|
|
1214
|
-
type: "block";
|
|
1306
|
+
};
|
|
1307
|
+
serializers: {
|
|
1308
|
+
readonly transaction: typeof import("viem/zksync").serializeTransaction;
|
|
1309
|
+
};
|
|
1310
|
+
readonly network: "zksync-era";
|
|
1311
|
+
};
|
|
1312
|
+
readonly rpc: string;
|
|
1313
|
+
};
|
|
1314
|
+
linea: {
|
|
1315
|
+
chain: {
|
|
1316
|
+
blockExplorers: {
|
|
1317
|
+
readonly default: {
|
|
1318
|
+
readonly name: "Etherscan";
|
|
1319
|
+
readonly url: "https://lineascan.build";
|
|
1320
|
+
readonly apiUrl: "https://api.lineascan.build/api";
|
|
1215
1321
|
};
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1322
|
+
};
|
|
1323
|
+
blockTime?: number | undefined | undefined;
|
|
1324
|
+
contracts: {
|
|
1325
|
+
readonly multicall3: {
|
|
1326
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
1327
|
+
readonly blockCreated: 42;
|
|
1328
|
+
};
|
|
1329
|
+
readonly ensRegistry: {
|
|
1330
|
+
readonly address: "0x50130b669B28C339991d8676FA73CF122a121267";
|
|
1331
|
+
readonly blockCreated: 6682888;
|
|
1332
|
+
};
|
|
1333
|
+
readonly ensUniversalResolver: {
|
|
1334
|
+
readonly address: "0x3aA974fb3f8C1E02796048BDCdeD79e9D53a6965";
|
|
1335
|
+
readonly blockCreated: 6683000;
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
ensTlds: readonly [".linea.eth"];
|
|
1339
|
+
id: 59144;
|
|
1340
|
+
name: "Linea Mainnet";
|
|
1341
|
+
nativeCurrency: {
|
|
1342
|
+
readonly name: "Linea Ether";
|
|
1343
|
+
readonly symbol: "ETH";
|
|
1344
|
+
readonly decimals: 18;
|
|
1345
|
+
};
|
|
1346
|
+
rpcUrls: {
|
|
1347
|
+
readonly default: {
|
|
1348
|
+
readonly http: readonly ["https://rpc.linea.build"];
|
|
1349
|
+
readonly webSocket: readonly ["wss://rpc.linea.build"];
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
sourceId?: number | undefined | undefined;
|
|
1353
|
+
testnet: false;
|
|
1354
|
+
custom?: Record<string, unknown> | undefined;
|
|
1355
|
+
fees: {
|
|
1356
|
+
readonly estimateFeesPerGas: ({ client, multiply, request, type, }: Parameters<import("viem").ChainEstimateFeesPerGasFn>[0]) => ReturnType<import("viem").ChainEstimateFeesPerGasFn>;
|
|
1357
|
+
readonly maxPriorityFeePerGas: ({ block, client, request }: import("viem").ChainFeesFnParameters<import("viem").ChainFormatters | undefined>) => Promise<bigint | null>;
|
|
1358
|
+
};
|
|
1359
|
+
formatters?: undefined;
|
|
1360
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
1361
|
+
};
|
|
1362
|
+
readonly rpc: string;
|
|
1363
|
+
};
|
|
1364
|
+
unichain: {
|
|
1365
|
+
chain: {
|
|
1366
|
+
blockExplorers: {
|
|
1367
|
+
readonly default: {
|
|
1368
|
+
readonly name: "Uniscan";
|
|
1369
|
+
readonly url: "https://uniscan.xyz";
|
|
1370
|
+
readonly apiUrl: "https://api.uniscan.xyz/api";
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
blockTime: 2000;
|
|
1374
|
+
contracts: {
|
|
1375
|
+
readonly multicall3: {
|
|
1376
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1377
|
+
readonly blockCreated: 0;
|
|
1378
|
+
};
|
|
1379
|
+
readonly disputeGameFactory: {
|
|
1380
|
+
readonly 1: {
|
|
1381
|
+
readonly address: "0x2F12d621a16e2d3285929C9996f478508951dFe4";
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
readonly portal: {
|
|
1385
|
+
readonly 1: {
|
|
1386
|
+
readonly address: "0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2";
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
readonly l1StandardBridge: {
|
|
1390
|
+
readonly 1: {
|
|
1391
|
+
readonly address: "0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA";
|
|
1392
|
+
};
|
|
1393
|
+
};
|
|
1394
|
+
readonly gasPriceOracle: {
|
|
1395
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
1396
|
+
};
|
|
1397
|
+
readonly l1Block: {
|
|
1398
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
1399
|
+
};
|
|
1400
|
+
readonly l2CrossDomainMessenger: {
|
|
1401
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
1402
|
+
};
|
|
1403
|
+
readonly l2Erc721Bridge: {
|
|
1404
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
1405
|
+
};
|
|
1406
|
+
readonly l2StandardBridge: {
|
|
1407
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
1408
|
+
};
|
|
1409
|
+
readonly l2ToL1MessagePasser: {
|
|
1410
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
ensTlds?: readonly string[] | undefined;
|
|
1414
|
+
id: 130;
|
|
1415
|
+
name: "Unichain";
|
|
1416
|
+
nativeCurrency: {
|
|
1417
|
+
readonly name: "Ether";
|
|
1418
|
+
readonly symbol: "ETH";
|
|
1419
|
+
readonly decimals: 18;
|
|
1420
|
+
};
|
|
1421
|
+
rpcUrls: {
|
|
1422
|
+
readonly default: {
|
|
1423
|
+
readonly http: readonly ["https://mainnet.unichain.org/"];
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
sourceId: 1;
|
|
1427
|
+
testnet?: boolean | undefined | undefined;
|
|
1428
|
+
custom?: Record<string, unknown> | undefined;
|
|
1429
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
1430
|
+
formatters: {
|
|
1431
|
+
readonly block: {
|
|
1432
|
+
exclude: [] | undefined;
|
|
1433
|
+
format: (args: import("viem/chains").OpStackRpcBlock) => {
|
|
1434
|
+
baseFeePerGas: bigint | null;
|
|
1435
|
+
blobGasUsed: bigint;
|
|
1436
|
+
difficulty: bigint;
|
|
1437
|
+
excessBlobGas: bigint;
|
|
1438
|
+
extraData: import("viem").Hex;
|
|
1439
|
+
gasLimit: bigint;
|
|
1440
|
+
gasUsed: bigint;
|
|
1441
|
+
hash: `0x${string}` | null;
|
|
1442
|
+
logsBloom: `0x${string}` | null;
|
|
1443
|
+
miner: import("viem").Address;
|
|
1444
|
+
mixHash: import("viem").Hash;
|
|
1445
|
+
nonce: `0x${string}` | null;
|
|
1446
|
+
number: bigint | null;
|
|
1447
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
1448
|
+
parentHash: import("viem").Hash;
|
|
1449
|
+
receiptsRoot: import("viem").Hex;
|
|
1450
|
+
sealFields: import("viem").Hex[];
|
|
1451
|
+
sha3Uncles: import("viem").Hash;
|
|
1452
|
+
size: bigint;
|
|
1453
|
+
stateRoot: import("viem").Hash;
|
|
1454
|
+
timestamp: bigint;
|
|
1455
|
+
totalDifficulty: bigint | null;
|
|
1456
|
+
transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
|
|
1457
|
+
transactionsRoot: import("viem").Hash;
|
|
1458
|
+
uncles: import("viem").Hash[];
|
|
1459
|
+
withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
|
|
1460
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
1461
|
+
} & {};
|
|
1462
|
+
type: "block";
|
|
1463
|
+
};
|
|
1464
|
+
readonly transaction: {
|
|
1465
|
+
exclude: [] | undefined;
|
|
1466
|
+
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
1467
|
+
blockHash: `0x${string}` | null;
|
|
1468
|
+
blockNumber: bigint | null;
|
|
1252
1469
|
from: import("viem").Address;
|
|
1253
1470
|
gas: bigint;
|
|
1254
1471
|
hash: import("viem").Hash;
|
|
@@ -1262,52 +1479,42 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1262
1479
|
v: bigint;
|
|
1263
1480
|
value: bigint;
|
|
1264
1481
|
yParity: number;
|
|
1265
|
-
|
|
1266
|
-
authorizationList?: undefined | undefined;
|
|
1267
|
-
blobVersionedHashes?: undefined | undefined;
|
|
1268
|
-
chainId: number;
|
|
1269
|
-
type: "eip2930";
|
|
1270
|
-
gasPrice: bigint;
|
|
1482
|
+
gasPrice?: undefined | undefined;
|
|
1271
1483
|
maxFeePerBlobGas?: undefined | undefined;
|
|
1272
|
-
maxFeePerGas
|
|
1273
|
-
maxPriorityFeePerGas
|
|
1274
|
-
|
|
1275
|
-
mint?: undefined;
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
gatewayFee?: undefined;
|
|
1279
|
-
gatewayFeeRecipient?: undefined;
|
|
1484
|
+
maxFeePerGas: bigint;
|
|
1485
|
+
maxPriorityFeePerGas: bigint;
|
|
1486
|
+
isSystemTx?: boolean;
|
|
1487
|
+
mint?: bigint | undefined | undefined;
|
|
1488
|
+
sourceHash: import("viem").Hex;
|
|
1489
|
+
type: "deposit";
|
|
1280
1490
|
} | {
|
|
1281
|
-
|
|
1282
|
-
|
|
1491
|
+
r: import("viem").Hex;
|
|
1492
|
+
s: import("viem").Hex;
|
|
1493
|
+
v: bigint;
|
|
1494
|
+
to: import("viem").Address | null;
|
|
1283
1495
|
from: import("viem").Address;
|
|
1284
1496
|
gas: bigint;
|
|
1497
|
+
nonce: number;
|
|
1498
|
+
value: bigint;
|
|
1499
|
+
blockHash: `0x${string}` | null;
|
|
1500
|
+
blockNumber: bigint | null;
|
|
1285
1501
|
hash: import("viem").Hash;
|
|
1286
1502
|
input: import("viem").Hex;
|
|
1287
|
-
nonce: number;
|
|
1288
|
-
r: import("viem").Hex;
|
|
1289
|
-
s: import("viem").Hex;
|
|
1290
|
-
to: import("viem").Address | null;
|
|
1291
1503
|
transactionIndex: number | null;
|
|
1292
1504
|
typeHex: import("viem").Hex | null;
|
|
1293
|
-
|
|
1294
|
-
value: bigint;
|
|
1295
|
-
yParity: number;
|
|
1296
|
-
accessList: import("viem").AccessList;
|
|
1505
|
+
accessList?: undefined | undefined;
|
|
1297
1506
|
authorizationList?: undefined | undefined;
|
|
1298
1507
|
blobVersionedHashes?: undefined | undefined;
|
|
1299
|
-
chainId
|
|
1300
|
-
|
|
1301
|
-
|
|
1508
|
+
chainId?: number | undefined;
|
|
1509
|
+
yParity?: undefined | undefined;
|
|
1510
|
+
type: "legacy";
|
|
1511
|
+
gasPrice: bigint;
|
|
1302
1512
|
maxFeePerBlobGas?: undefined | undefined;
|
|
1303
|
-
maxFeePerGas
|
|
1304
|
-
maxPriorityFeePerGas
|
|
1305
|
-
|
|
1306
|
-
mint?: undefined;
|
|
1307
|
-
|
|
1308
|
-
sourceHash?: undefined;
|
|
1309
|
-
gatewayFee?: undefined;
|
|
1310
|
-
gatewayFeeRecipient?: undefined;
|
|
1513
|
+
maxFeePerGas?: undefined | undefined;
|
|
1514
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
1515
|
+
isSystemTx?: undefined | undefined;
|
|
1516
|
+
mint?: undefined | undefined;
|
|
1517
|
+
sourceHash?: undefined | undefined;
|
|
1311
1518
|
} | {
|
|
1312
1519
|
blockHash: `0x${string}` | null;
|
|
1313
1520
|
blockNumber: bigint | null;
|
|
@@ -1326,19 +1533,16 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1326
1533
|
yParity: number;
|
|
1327
1534
|
accessList: import("viem").AccessList;
|
|
1328
1535
|
authorizationList?: undefined | undefined;
|
|
1329
|
-
blobVersionedHashes
|
|
1536
|
+
blobVersionedHashes?: undefined | undefined;
|
|
1330
1537
|
chainId: number;
|
|
1331
|
-
type: "
|
|
1332
|
-
gasPrice
|
|
1333
|
-
maxFeePerBlobGas
|
|
1334
|
-
maxFeePerGas
|
|
1335
|
-
maxPriorityFeePerGas
|
|
1336
|
-
|
|
1337
|
-
mint?: undefined;
|
|
1338
|
-
|
|
1339
|
-
sourceHash?: undefined;
|
|
1340
|
-
gatewayFee?: undefined;
|
|
1341
|
-
gatewayFeeRecipient?: undefined;
|
|
1538
|
+
type: "eip2930";
|
|
1539
|
+
gasPrice: bigint;
|
|
1540
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
1541
|
+
maxFeePerGas?: undefined | undefined;
|
|
1542
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
1543
|
+
isSystemTx?: undefined | undefined;
|
|
1544
|
+
mint?: undefined | undefined;
|
|
1545
|
+
sourceHash?: undefined | undefined;
|
|
1342
1546
|
} | {
|
|
1343
1547
|
blockHash: `0x${string}` | null;
|
|
1344
1548
|
blockNumber: bigint | null;
|
|
@@ -1356,20 +1560,17 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1356
1560
|
value: bigint;
|
|
1357
1561
|
yParity: number;
|
|
1358
1562
|
accessList: import("viem").AccessList;
|
|
1359
|
-
authorizationList
|
|
1563
|
+
authorizationList?: undefined | undefined;
|
|
1360
1564
|
blobVersionedHashes?: undefined | undefined;
|
|
1361
1565
|
chainId: number;
|
|
1362
|
-
type: "
|
|
1566
|
+
type: "eip1559";
|
|
1363
1567
|
gasPrice?: undefined | undefined;
|
|
1364
1568
|
maxFeePerBlobGas?: undefined | undefined;
|
|
1365
1569
|
maxFeePerGas: bigint;
|
|
1366
1570
|
maxPriorityFeePerGas: bigint;
|
|
1367
|
-
|
|
1368
|
-
mint?: undefined;
|
|
1369
|
-
|
|
1370
|
-
sourceHash?: undefined;
|
|
1371
|
-
gatewayFee?: undefined;
|
|
1372
|
-
gatewayFeeRecipient?: undefined;
|
|
1571
|
+
isSystemTx?: undefined | undefined;
|
|
1572
|
+
mint?: undefined | undefined;
|
|
1573
|
+
sourceHash?: undefined | undefined;
|
|
1373
1574
|
} | {
|
|
1374
1575
|
blockHash: `0x${string}` | null;
|
|
1375
1576
|
blockNumber: bigint | null;
|
|
@@ -1386,52 +1587,18 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1386
1587
|
v: bigint;
|
|
1387
1588
|
value: bigint;
|
|
1388
1589
|
yParity: number;
|
|
1389
|
-
gasPrice?: undefined | undefined;
|
|
1390
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1391
|
-
maxFeePerGas: bigint;
|
|
1392
|
-
maxPriorityFeePerGas: bigint;
|
|
1393
1590
|
accessList: import("viem").AccessList;
|
|
1591
|
+
authorizationList?: undefined | undefined;
|
|
1592
|
+
blobVersionedHashes: readonly import("viem").Hex[];
|
|
1394
1593
|
chainId: number;
|
|
1395
|
-
|
|
1396
|
-
gatewayFee: bigint | null;
|
|
1397
|
-
gatewayFeeRecipient: import("viem").Address | null;
|
|
1398
|
-
type: "cip42";
|
|
1399
|
-
blobVersionedHashes?: undefined;
|
|
1400
|
-
authorizationList?: undefined;
|
|
1401
|
-
mint?: undefined;
|
|
1402
|
-
isSystemTx?: undefined;
|
|
1403
|
-
sourceHash?: undefined;
|
|
1404
|
-
} | {
|
|
1405
|
-
blockHash: `0x${string}` | null;
|
|
1406
|
-
blockNumber: bigint | null;
|
|
1407
|
-
from: import("viem").Address;
|
|
1408
|
-
gas: bigint;
|
|
1409
|
-
hash: import("viem").Hash;
|
|
1410
|
-
input: import("viem").Hex;
|
|
1411
|
-
nonce: number;
|
|
1412
|
-
r: import("viem").Hex;
|
|
1413
|
-
s: import("viem").Hex;
|
|
1414
|
-
to: import("viem").Address | null;
|
|
1415
|
-
transactionIndex: number | null;
|
|
1416
|
-
typeHex: import("viem").Hex | null;
|
|
1417
|
-
v: bigint;
|
|
1418
|
-
value: bigint;
|
|
1419
|
-
yParity: number;
|
|
1594
|
+
type: "eip4844";
|
|
1420
1595
|
gasPrice?: undefined | undefined;
|
|
1421
|
-
maxFeePerBlobGas
|
|
1596
|
+
maxFeePerBlobGas: bigint;
|
|
1422
1597
|
maxFeePerGas: bigint;
|
|
1423
1598
|
maxPriorityFeePerGas: bigint;
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
type: "cip64";
|
|
1428
|
-
blobVersionedHashes?: undefined;
|
|
1429
|
-
authorizationList?: undefined;
|
|
1430
|
-
mint?: undefined;
|
|
1431
|
-
isSystemTx?: undefined;
|
|
1432
|
-
sourceHash?: undefined;
|
|
1433
|
-
gatewayFee?: undefined;
|
|
1434
|
-
gatewayFeeRecipient?: undefined;
|
|
1599
|
+
isSystemTx?: undefined | undefined;
|
|
1600
|
+
mint?: undefined | undefined;
|
|
1601
|
+
sourceHash?: undefined | undefined;
|
|
1435
1602
|
} | {
|
|
1436
1603
|
blockHash: `0x${string}` | null;
|
|
1437
1604
|
blockNumber: bigint | null;
|
|
@@ -1448,146 +1615,51 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1448
1615
|
v: bigint;
|
|
1449
1616
|
value: bigint;
|
|
1450
1617
|
yParity: number;
|
|
1618
|
+
accessList: import("viem").AccessList;
|
|
1619
|
+
authorizationList: import("viem").SignedAuthorizationList;
|
|
1620
|
+
blobVersionedHashes?: undefined | undefined;
|
|
1621
|
+
chainId: number;
|
|
1622
|
+
type: "eip7702";
|
|
1451
1623
|
gasPrice?: undefined | undefined;
|
|
1452
1624
|
maxFeePerBlobGas?: undefined | undefined;
|
|
1453
1625
|
maxFeePerGas: bigint;
|
|
1454
1626
|
maxPriorityFeePerGas: bigint;
|
|
1455
|
-
isSystemTx?:
|
|
1456
|
-
mint?:
|
|
1457
|
-
sourceHash
|
|
1458
|
-
type: "deposit";
|
|
1459
|
-
accessList?: undefined;
|
|
1460
|
-
blobVersionedHashes?: undefined;
|
|
1461
|
-
authorizationList?: undefined;
|
|
1462
|
-
chainId?: undefined;
|
|
1463
|
-
feeCurrency?: undefined;
|
|
1464
|
-
gatewayFee?: undefined;
|
|
1465
|
-
gatewayFeeRecipient?: undefined;
|
|
1627
|
+
isSystemTx?: undefined | undefined;
|
|
1628
|
+
mint?: undefined | undefined;
|
|
1629
|
+
sourceHash?: undefined | undefined;
|
|
1466
1630
|
}) & {};
|
|
1467
1631
|
type: "transaction";
|
|
1468
1632
|
};
|
|
1469
|
-
readonly
|
|
1633
|
+
readonly transactionReceipt: {
|
|
1470
1634
|
exclude: [] | undefined;
|
|
1471
|
-
format: (args: import("viem/chains").
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
to?: `0x${string}` | null | undefined;
|
|
1496
|
-
type?: "0x1" | undefined;
|
|
1497
|
-
value?: `0x${string}` | undefined;
|
|
1498
|
-
gasPrice?: `0x${string}` | undefined;
|
|
1499
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1500
|
-
maxFeePerGas?: undefined | undefined;
|
|
1501
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
1502
|
-
accessList?: import("viem").AccessList | undefined;
|
|
1503
|
-
blobs?: undefined;
|
|
1504
|
-
blobVersionedHashes?: undefined;
|
|
1505
|
-
kzg?: undefined;
|
|
1506
|
-
sidecars?: undefined;
|
|
1507
|
-
authorizationList?: undefined;
|
|
1508
|
-
feeCurrency?: `0x${string}` | undefined;
|
|
1509
|
-
} | {
|
|
1510
|
-
data?: `0x${string}` | undefined;
|
|
1511
|
-
from?: `0x${string}` | undefined;
|
|
1512
|
-
gas?: `0x${string}` | undefined;
|
|
1513
|
-
nonce?: `0x${string}` | undefined;
|
|
1514
|
-
to?: `0x${string}` | null | undefined;
|
|
1515
|
-
type?: "0x2" | undefined;
|
|
1516
|
-
value?: `0x${string}` | undefined;
|
|
1517
|
-
gasPrice?: undefined | undefined;
|
|
1518
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1519
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
|
1520
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
|
1521
|
-
accessList?: import("viem").AccessList | undefined;
|
|
1522
|
-
blobs?: undefined;
|
|
1523
|
-
blobVersionedHashes?: undefined;
|
|
1524
|
-
kzg?: undefined;
|
|
1525
|
-
sidecars?: undefined;
|
|
1526
|
-
authorizationList?: undefined;
|
|
1527
|
-
feeCurrency?: `0x${string}` | undefined;
|
|
1528
|
-
} | {
|
|
1529
|
-
type?: "0x3" | undefined;
|
|
1530
|
-
data?: `0x${string}` | undefined;
|
|
1531
|
-
from?: `0x${string}` | undefined;
|
|
1532
|
-
gas?: `0x${string}` | undefined;
|
|
1533
|
-
nonce?: `0x${string}` | undefined;
|
|
1534
|
-
value?: `0x${string}` | undefined;
|
|
1535
|
-
to: `0x${string}` | null;
|
|
1536
|
-
gasPrice?: undefined | undefined;
|
|
1537
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
|
1538
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
|
1539
|
-
maxFeePerBlobGas: `0x${string}`;
|
|
1540
|
-
accessList?: import("viem").AccessList | undefined;
|
|
1541
|
-
blobs: readonly import("viem").Hex[] | readonly import("viem").ByteArray[];
|
|
1542
|
-
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
1543
|
-
kzg?: import("viem").Kzg | undefined;
|
|
1544
|
-
sidecars?: readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
|
|
1545
|
-
authorizationList?: undefined;
|
|
1546
|
-
feeCurrency?: `0x${string}` | undefined;
|
|
1547
|
-
} | {
|
|
1548
|
-
type?: "0x4" | undefined;
|
|
1549
|
-
gasPrice?: undefined | undefined;
|
|
1550
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1551
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
|
1552
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
|
1553
|
-
to?: `0x${string}` | null | undefined;
|
|
1554
|
-
data?: `0x${string}` | undefined;
|
|
1555
|
-
from?: `0x${string}` | undefined;
|
|
1556
|
-
gas?: `0x${string}` | undefined;
|
|
1557
|
-
nonce?: `0x${string}` | undefined;
|
|
1558
|
-
value?: `0x${string}` | undefined;
|
|
1559
|
-
accessList?: import("viem").AccessList | undefined;
|
|
1560
|
-
authorizationList?: import("viem").RpcAuthorizationList | undefined;
|
|
1561
|
-
blobs?: undefined;
|
|
1562
|
-
blobVersionedHashes?: undefined;
|
|
1563
|
-
kzg?: undefined;
|
|
1564
|
-
sidecars?: undefined;
|
|
1565
|
-
feeCurrency?: `0x${string}` | undefined;
|
|
1566
|
-
} | {
|
|
1567
|
-
data?: `0x${string}` | undefined;
|
|
1568
|
-
from?: `0x${string}` | undefined;
|
|
1569
|
-
gas?: `0x${string}` | undefined;
|
|
1570
|
-
nonce?: `0x${string}` | undefined;
|
|
1571
|
-
to?: `0x${string}` | null | undefined;
|
|
1572
|
-
type?: "0x7b" | undefined;
|
|
1573
|
-
value?: `0x${string}` | undefined;
|
|
1574
|
-
accessList?: import("viem").AccessList | undefined;
|
|
1575
|
-
feeCurrency?: `0x${string}` | undefined;
|
|
1576
|
-
gasPrice?: undefined | undefined;
|
|
1577
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1578
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
|
1579
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
|
1580
|
-
blobs?: undefined;
|
|
1581
|
-
blobVersionedHashes?: undefined;
|
|
1582
|
-
kzg?: undefined;
|
|
1583
|
-
sidecars?: undefined;
|
|
1584
|
-
authorizationList?: undefined;
|
|
1585
|
-
}) & {};
|
|
1586
|
-
type: "transactionRequest";
|
|
1635
|
+
format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
|
|
1636
|
+
blobGasPrice?: bigint | undefined;
|
|
1637
|
+
blobGasUsed?: bigint | undefined;
|
|
1638
|
+
blockHash: import("viem").Hash;
|
|
1639
|
+
blockNumber: bigint;
|
|
1640
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
1641
|
+
cumulativeGasUsed: bigint;
|
|
1642
|
+
effectiveGasPrice: bigint;
|
|
1643
|
+
from: import("viem").Address;
|
|
1644
|
+
gasUsed: bigint;
|
|
1645
|
+
logs: import("viem").Log<bigint, number, false>[];
|
|
1646
|
+
logsBloom: import("viem").Hex;
|
|
1647
|
+
root?: `0x${string}` | undefined;
|
|
1648
|
+
status: "success" | "reverted";
|
|
1649
|
+
to: import("viem").Address | null;
|
|
1650
|
+
transactionHash: import("viem").Hash;
|
|
1651
|
+
transactionIndex: number;
|
|
1652
|
+
type: import("viem").TransactionType;
|
|
1653
|
+
l1GasPrice: bigint | null;
|
|
1654
|
+
l1GasUsed: bigint | null;
|
|
1655
|
+
l1Fee: bigint | null;
|
|
1656
|
+
l1FeeScalar: number | null;
|
|
1657
|
+
} & {};
|
|
1658
|
+
type: "transactionReceipt";
|
|
1587
1659
|
};
|
|
1588
1660
|
};
|
|
1589
1661
|
serializers: {
|
|
1590
|
-
readonly transaction: typeof import("viem/chains").
|
|
1662
|
+
readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
|
|
1591
1663
|
};
|
|
1592
1664
|
};
|
|
1593
1665
|
readonly rpc: string;
|
|
@@ -1640,7 +1712,7 @@ export declare const CHAINS: (config: Config) => {
|
|
|
1640
1712
|
};
|
|
1641
1713
|
};
|
|
1642
1714
|
export declare const HYPERSYNC_URLS: Partial<Record<ChainName, string>>;
|
|
1643
|
-
export declare const SUPPORTED_CHAINS: readonly ["mainnet", "base", "
|
|
1715
|
+
export declare const SUPPORTED_CHAINS: readonly ["mainnet", "arbitrum", "avalanche", "base", "bnb", "gnosis", "sonic", "optimism", "polygon", "zksync", "linea", "unichain", "localhost"];
|
|
1644
1716
|
export declare class ClientManager {
|
|
1645
1717
|
private clients;
|
|
1646
1718
|
private config;
|