@strobelabs/perpcity-sdk 0.3.10 → 0.3.11
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/index.d.mts +1180 -342
- package/dist/index.d.ts +1180 -342
- package/dist/index.js +72 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -58
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem__types_utils_ccip from 'viem/_types/utils/ccip';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
|
-
import { WalletClient, Address, Hex } from 'viem';
|
|
3
|
+
import { WalletClient, Address, Hex, PublicClient } from 'viem';
|
|
4
4
|
|
|
5
5
|
declare const BEACON_ABI: readonly [{
|
|
6
6
|
readonly inputs: readonly [{
|
|
@@ -1739,7 +1739,17 @@ interface PerpCityDeployments {
|
|
|
1739
1739
|
sqrtPriceImpactLimitModule?: Address;
|
|
1740
1740
|
}
|
|
1741
1741
|
interface PerpCityContextConfig {
|
|
1742
|
+
/**
|
|
1743
|
+
* Wallet client for signing transactions.
|
|
1744
|
+
* MUST have a chain property defined (e.g., created with `chain: baseSepolia`).
|
|
1745
|
+
*/
|
|
1742
1746
|
walletClient: WalletClient;
|
|
1747
|
+
/**
|
|
1748
|
+
* RPC endpoint URL for read operations (e.g., Alchemy, Infura).
|
|
1749
|
+
* MUST correspond to the same network as walletClient.chain.
|
|
1750
|
+
* Use validateChainId() after construction to verify.
|
|
1751
|
+
*/
|
|
1752
|
+
rpcUrl: string;
|
|
1743
1753
|
deployments: PerpCityDeployments;
|
|
1744
1754
|
}
|
|
1745
1755
|
|
|
@@ -1847,327 +1857,32 @@ type PerpConfig = {
|
|
|
1847
1857
|
};
|
|
1848
1858
|
|
|
1849
1859
|
declare class PerpCityContext {
|
|
1850
|
-
readonly walletClient:
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
excessBlobGas: bigint;
|
|
1874
|
-
extraData: Hex;
|
|
1875
|
-
gasLimit: bigint;
|
|
1876
|
-
gasUsed: bigint;
|
|
1877
|
-
miner: Address;
|
|
1878
|
-
mixHash: viem.Hash;
|
|
1879
|
-
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
1880
|
-
parentHash: viem.Hash;
|
|
1881
|
-
receiptsRoot: Hex;
|
|
1882
|
-
sealFields: Hex[];
|
|
1883
|
-
sha3Uncles: viem.Hash;
|
|
1884
|
-
size: bigint;
|
|
1885
|
-
stateRoot: viem.Hash;
|
|
1886
|
-
totalDifficulty: bigint | null;
|
|
1887
|
-
transactionsRoot: viem.Hash;
|
|
1888
|
-
uncles: viem.Hash[];
|
|
1889
|
-
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
1890
|
-
withdrawalsRoot?: `0x${string}` | undefined;
|
|
1891
|
-
transactions: includeTransactions extends true ? ({
|
|
1892
|
-
from: Address;
|
|
1893
|
-
to: Address | null;
|
|
1894
|
-
type: "legacy";
|
|
1895
|
-
chainId?: number | undefined;
|
|
1896
|
-
r: Hex;
|
|
1897
|
-
s: Hex;
|
|
1898
|
-
v: bigint;
|
|
1899
|
-
yParity?: undefined | undefined;
|
|
1900
|
-
value: bigint;
|
|
1901
|
-
gas: bigint;
|
|
1902
|
-
hash: viem.Hash;
|
|
1903
|
-
input: Hex;
|
|
1904
|
-
nonce: number;
|
|
1905
|
-
typeHex: Hex | null;
|
|
1906
|
-
accessList?: undefined | undefined;
|
|
1907
|
-
authorizationList?: undefined | undefined;
|
|
1908
|
-
blobVersionedHashes?: undefined | undefined;
|
|
1909
|
-
gasPrice: bigint;
|
|
1910
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1911
|
-
maxFeePerGas?: undefined | undefined;
|
|
1912
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
1913
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
1914
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
1915
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
1916
|
-
} | {
|
|
1917
|
-
from: Address;
|
|
1918
|
-
to: Address | null;
|
|
1919
|
-
type: "eip2930";
|
|
1920
|
-
chainId: number;
|
|
1921
|
-
r: Hex;
|
|
1922
|
-
s: Hex;
|
|
1923
|
-
v: bigint;
|
|
1924
|
-
yParity: number;
|
|
1925
|
-
value: bigint;
|
|
1926
|
-
gas: bigint;
|
|
1927
|
-
hash: viem.Hash;
|
|
1928
|
-
input: Hex;
|
|
1929
|
-
nonce: number;
|
|
1930
|
-
typeHex: Hex | null;
|
|
1931
|
-
accessList: viem.AccessList;
|
|
1932
|
-
authorizationList?: undefined | undefined;
|
|
1933
|
-
blobVersionedHashes?: undefined | undefined;
|
|
1934
|
-
gasPrice: bigint;
|
|
1935
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1936
|
-
maxFeePerGas?: undefined | undefined;
|
|
1937
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
1938
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
|
|
1939
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
1940
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
1941
|
-
} | {
|
|
1942
|
-
from: Address;
|
|
1943
|
-
to: Address | null;
|
|
1944
|
-
type: "eip1559";
|
|
1945
|
-
chainId: number;
|
|
1946
|
-
r: Hex;
|
|
1947
|
-
s: Hex;
|
|
1948
|
-
v: bigint;
|
|
1949
|
-
yParity: number;
|
|
1950
|
-
value: bigint;
|
|
1951
|
-
gas: bigint;
|
|
1952
|
-
hash: viem.Hash;
|
|
1953
|
-
input: Hex;
|
|
1954
|
-
nonce: number;
|
|
1955
|
-
typeHex: Hex | null;
|
|
1956
|
-
accessList: viem.AccessList;
|
|
1957
|
-
authorizationList?: undefined | undefined;
|
|
1958
|
-
blobVersionedHashes?: undefined | undefined;
|
|
1959
|
-
gasPrice?: undefined | undefined;
|
|
1960
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
1961
|
-
maxFeePerGas: bigint;
|
|
1962
|
-
maxPriorityFeePerGas: bigint;
|
|
1963
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
|
|
1964
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
1965
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
1966
|
-
} | {
|
|
1967
|
-
from: Address;
|
|
1968
|
-
to: Address | null;
|
|
1969
|
-
type: "eip4844";
|
|
1970
|
-
chainId: number;
|
|
1971
|
-
r: Hex;
|
|
1972
|
-
s: Hex;
|
|
1973
|
-
v: bigint;
|
|
1974
|
-
yParity: number;
|
|
1975
|
-
value: bigint;
|
|
1976
|
-
gas: bigint;
|
|
1977
|
-
hash: viem.Hash;
|
|
1978
|
-
input: Hex;
|
|
1979
|
-
nonce: number;
|
|
1980
|
-
typeHex: Hex | null;
|
|
1981
|
-
accessList: viem.AccessList;
|
|
1982
|
-
authorizationList?: undefined | undefined;
|
|
1983
|
-
blobVersionedHashes: readonly Hex[];
|
|
1984
|
-
gasPrice?: undefined | undefined;
|
|
1985
|
-
maxFeePerBlobGas: bigint;
|
|
1986
|
-
maxFeePerGas: bigint;
|
|
1987
|
-
maxPriorityFeePerGas: bigint;
|
|
1988
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
|
|
1989
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
1990
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
1991
|
-
} | {
|
|
1992
|
-
from: Address;
|
|
1993
|
-
to: Address | null;
|
|
1994
|
-
type: "eip7702";
|
|
1995
|
-
chainId: number;
|
|
1996
|
-
r: Hex;
|
|
1997
|
-
s: Hex;
|
|
1998
|
-
v: bigint;
|
|
1999
|
-
yParity: number;
|
|
2000
|
-
value: bigint;
|
|
2001
|
-
gas: bigint;
|
|
2002
|
-
hash: viem.Hash;
|
|
2003
|
-
input: Hex;
|
|
2004
|
-
nonce: number;
|
|
2005
|
-
typeHex: Hex | null;
|
|
2006
|
-
accessList: viem.AccessList;
|
|
2007
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
2008
|
-
blobVersionedHashes?: undefined | undefined;
|
|
2009
|
-
gasPrice?: undefined | undefined;
|
|
2010
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
2011
|
-
maxFeePerGas: bigint;
|
|
2012
|
-
maxPriorityFeePerGas: bigint;
|
|
2013
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
|
|
2014
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
|
|
2015
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
|
|
2016
|
-
})[] : `0x${string}`[];
|
|
2017
|
-
}>;
|
|
2018
|
-
getBlockNumber: (args?: viem.GetBlockNumberParameters | undefined) => Promise<viem.GetBlockNumberReturnType>;
|
|
2019
|
-
getBlockTransactionCount: (args?: viem.GetBlockTransactionCountParameters | undefined) => Promise<viem.GetBlockTransactionCountReturnType>;
|
|
2020
|
-
getBytecode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
|
|
1860
|
+
readonly walletClient: {
|
|
1861
|
+
account: viem.Account | undefined;
|
|
1862
|
+
batch?: {
|
|
1863
|
+
multicall?: boolean | viem.Prettify<viem.MulticallBatchOptions> | undefined;
|
|
1864
|
+
} | undefined;
|
|
1865
|
+
cacheTime: number;
|
|
1866
|
+
ccipRead?: false | {
|
|
1867
|
+
request?: (parameters: viem.CcipRequestParameters) => Promise<viem__types_utils_ccip.CcipRequestReturnType>;
|
|
1868
|
+
} | undefined;
|
|
1869
|
+
chain: viem.Chain | undefined;
|
|
1870
|
+
experimental_blockTag?: viem.BlockTag | undefined;
|
|
1871
|
+
key: string;
|
|
1872
|
+
name: string;
|
|
1873
|
+
pollingInterval: number;
|
|
1874
|
+
request: viem.EIP1193RequestFn<viem.WalletRpcSchema>;
|
|
1875
|
+
transport: viem.TransportConfig<string, viem.EIP1193RequestFn> & Record<string, any>;
|
|
1876
|
+
type: string;
|
|
1877
|
+
uid: string;
|
|
1878
|
+
addChain: (args: viem.AddChainParameters) => Promise<void>;
|
|
1879
|
+
deployContract: <const abi extends viem.Abi | readonly unknown[], chainOverride extends viem.Chain | undefined>(args: viem.DeployContractParameters<abi, viem.Chain | undefined, viem.Account | undefined, chainOverride>) => Promise<viem.DeployContractReturnType>;
|
|
1880
|
+
getAddresses: () => Promise<viem.GetAddressesReturnType>;
|
|
1881
|
+
getCallsStatus: (parameters: viem.GetCallsStatusParameters) => Promise<viem.GetCallsStatusReturnType>;
|
|
1882
|
+
getCapabilities: <chainId extends number | undefined>(parameters?: viem.GetCapabilitiesParameters<chainId>) => Promise<viem.GetCapabilitiesReturnType<chainId>>;
|
|
2021
1883
|
getChainId: () => Promise<viem.GetChainIdReturnType>;
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
getEip712Domain: (args: viem.GetEip712DomainParameters) => Promise<viem.GetEip712DomainReturnType>;
|
|
2025
|
-
getEnsAddress: (args: viem.GetEnsAddressParameters) => Promise<viem.GetEnsAddressReturnType>;
|
|
2026
|
-
getEnsAvatar: (args: viem.GetEnsAvatarParameters) => Promise<viem.GetEnsAvatarReturnType>;
|
|
2027
|
-
getEnsName: (args: viem.GetEnsNameParameters) => Promise<viem.GetEnsNameReturnType>;
|
|
2028
|
-
getEnsResolver: (args: viem.GetEnsResolverParameters) => Promise<viem.GetEnsResolverReturnType>;
|
|
2029
|
-
getEnsText: (args: viem.GetEnsTextParameters) => Promise<viem.GetEnsTextReturnType>;
|
|
2030
|
-
getFeeHistory: (args: viem.GetFeeHistoryParameters) => Promise<viem.GetFeeHistoryReturnType>;
|
|
2031
|
-
estimateFeesPerGas: <chainOverride extends viem.Chain | undefined = undefined, type extends viem.FeeValuesType = "eip1559">(args?: viem.EstimateFeesPerGasParameters<viem.Chain | undefined, chainOverride, type> | undefined) => Promise<viem.EstimateFeesPerGasReturnType<type>>;
|
|
2032
|
-
getFilterChanges: <filterType extends viem.FilterType, const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>;
|
|
2033
|
-
getFilterLogs: <const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
2034
|
-
getGasPrice: () => Promise<viem.GetGasPriceReturnType>;
|
|
2035
|
-
getLogs: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args?: viem.GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<viem.GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>;
|
|
2036
|
-
getProof: (args: viem.GetProofParameters) => Promise<viem.GetProofReturnType>;
|
|
2037
|
-
estimateMaxPriorityFeePerGas: <chainOverride extends viem.Chain | undefined = undefined>(args?: {
|
|
2038
|
-
chain: chainOverride | null;
|
|
2039
|
-
} | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
|
|
2040
|
-
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
2041
|
-
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
|
|
2042
|
-
from: Address;
|
|
2043
|
-
to: Address | null;
|
|
2044
|
-
type: "legacy";
|
|
2045
|
-
chainId?: number | undefined;
|
|
2046
|
-
r: Hex;
|
|
2047
|
-
s: Hex;
|
|
2048
|
-
v: bigint;
|
|
2049
|
-
yParity?: undefined | undefined;
|
|
2050
|
-
value: bigint;
|
|
2051
|
-
gas: bigint;
|
|
2052
|
-
hash: viem.Hash;
|
|
2053
|
-
input: Hex;
|
|
2054
|
-
nonce: number;
|
|
2055
|
-
typeHex: Hex | null;
|
|
2056
|
-
accessList?: undefined | undefined;
|
|
2057
|
-
authorizationList?: undefined | undefined;
|
|
2058
|
-
blobVersionedHashes?: undefined | undefined;
|
|
2059
|
-
gasPrice: bigint;
|
|
2060
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
2061
|
-
maxFeePerGas?: undefined | undefined;
|
|
2062
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
2063
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
2064
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
2065
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
2066
|
-
} | {
|
|
2067
|
-
from: Address;
|
|
2068
|
-
to: Address | null;
|
|
2069
|
-
type: "eip2930";
|
|
2070
|
-
chainId: number;
|
|
2071
|
-
r: Hex;
|
|
2072
|
-
s: Hex;
|
|
2073
|
-
v: bigint;
|
|
2074
|
-
yParity: number;
|
|
2075
|
-
value: bigint;
|
|
2076
|
-
gas: bigint;
|
|
2077
|
-
hash: viem.Hash;
|
|
2078
|
-
input: Hex;
|
|
2079
|
-
nonce: number;
|
|
2080
|
-
typeHex: Hex | null;
|
|
2081
|
-
accessList: viem.AccessList;
|
|
2082
|
-
authorizationList?: undefined | undefined;
|
|
2083
|
-
blobVersionedHashes?: undefined | undefined;
|
|
2084
|
-
gasPrice: bigint;
|
|
2085
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
2086
|
-
maxFeePerGas?: undefined | undefined;
|
|
2087
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
2088
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
|
|
2089
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
2090
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
2091
|
-
} | {
|
|
2092
|
-
from: Address;
|
|
2093
|
-
to: Address | null;
|
|
2094
|
-
type: "eip1559";
|
|
2095
|
-
chainId: number;
|
|
2096
|
-
r: Hex;
|
|
2097
|
-
s: Hex;
|
|
2098
|
-
v: bigint;
|
|
2099
|
-
yParity: number;
|
|
2100
|
-
value: bigint;
|
|
2101
|
-
gas: bigint;
|
|
2102
|
-
hash: viem.Hash;
|
|
2103
|
-
input: Hex;
|
|
2104
|
-
nonce: number;
|
|
2105
|
-
typeHex: Hex | null;
|
|
2106
|
-
accessList: viem.AccessList;
|
|
2107
|
-
authorizationList?: undefined | undefined;
|
|
2108
|
-
blobVersionedHashes?: undefined | undefined;
|
|
2109
|
-
gasPrice?: undefined | undefined;
|
|
2110
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
2111
|
-
maxFeePerGas: bigint;
|
|
2112
|
-
maxPriorityFeePerGas: bigint;
|
|
2113
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
|
|
2114
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
2115
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
2116
|
-
} | {
|
|
2117
|
-
from: Address;
|
|
2118
|
-
to: Address | null;
|
|
2119
|
-
type: "eip4844";
|
|
2120
|
-
chainId: number;
|
|
2121
|
-
r: Hex;
|
|
2122
|
-
s: Hex;
|
|
2123
|
-
v: bigint;
|
|
2124
|
-
yParity: number;
|
|
2125
|
-
value: bigint;
|
|
2126
|
-
gas: bigint;
|
|
2127
|
-
hash: viem.Hash;
|
|
2128
|
-
input: Hex;
|
|
2129
|
-
nonce: number;
|
|
2130
|
-
typeHex: Hex | null;
|
|
2131
|
-
accessList: viem.AccessList;
|
|
2132
|
-
authorizationList?: undefined | undefined;
|
|
2133
|
-
blobVersionedHashes: readonly Hex[];
|
|
2134
|
-
gasPrice?: undefined | undefined;
|
|
2135
|
-
maxFeePerBlobGas: bigint;
|
|
2136
|
-
maxFeePerGas: bigint;
|
|
2137
|
-
maxPriorityFeePerGas: bigint;
|
|
2138
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
|
|
2139
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
2140
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
2141
|
-
} | {
|
|
2142
|
-
from: Address;
|
|
2143
|
-
to: Address | null;
|
|
2144
|
-
type: "eip7702";
|
|
2145
|
-
chainId: number;
|
|
2146
|
-
r: Hex;
|
|
2147
|
-
s: Hex;
|
|
2148
|
-
v: bigint;
|
|
2149
|
-
yParity: number;
|
|
2150
|
-
value: bigint;
|
|
2151
|
-
gas: bigint;
|
|
2152
|
-
hash: viem.Hash;
|
|
2153
|
-
input: Hex;
|
|
2154
|
-
nonce: number;
|
|
2155
|
-
typeHex: Hex | null;
|
|
2156
|
-
accessList: viem.AccessList;
|
|
2157
|
-
authorizationList: viem.SignedAuthorizationList;
|
|
2158
|
-
blobVersionedHashes?: undefined | undefined;
|
|
2159
|
-
gasPrice?: undefined | undefined;
|
|
2160
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
2161
|
-
maxFeePerGas: bigint;
|
|
2162
|
-
maxPriorityFeePerGas: bigint;
|
|
2163
|
-
blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
|
|
2164
|
-
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
|
|
2165
|
-
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
|
|
2166
|
-
}>;
|
|
2167
|
-
getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<viem.Chain | undefined>) => Promise<viem.GetTransactionConfirmationsReturnType>;
|
|
2168
|
-
getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
|
|
2169
|
-
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.TransactionReceipt>;
|
|
2170
|
-
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
1884
|
+
getPermissions: () => Promise<viem.GetPermissionsReturnType>;
|
|
1885
|
+
prepareAuthorization: (parameters: viem.PrepareAuthorizationParameters<viem.Account | undefined>) => Promise<viem.PrepareAuthorizationReturnType>;
|
|
2171
1886
|
prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<viem.Chain | undefined, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | Address | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> & (viem.DeriveChain<viem.Chain | undefined, chainOverride> extends infer T_1 ? T_1 extends viem.DeriveChain<viem.Chain | undefined, chainOverride> ? T_1 extends viem.Chain ? {
|
|
2172
1887
|
chain: T_1;
|
|
2173
1888
|
} : {
|
|
@@ -5421,27 +5136,1150 @@ declare class PerpCityContext {
|
|
|
5421
5136
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
|
|
5422
5137
|
chainId?: number | undefined;
|
|
5423
5138
|
}, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "type" | "chainId" | "gas" | "nonce" | "blobVersionedHashes") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
5424
|
-
|
|
5139
|
+
requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
|
|
5140
|
+
requestPermissions: (args: viem.RequestPermissionsParameters) => Promise<viem.RequestPermissionsReturnType>;
|
|
5141
|
+
sendCalls: <const calls extends readonly unknown[], chainOverride extends viem.Chain | undefined = undefined>(parameters: viem.SendCallsParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, calls>) => Promise<{
|
|
5142
|
+
capabilities?: {
|
|
5143
|
+
[x: string]: any;
|
|
5144
|
+
} | undefined;
|
|
5145
|
+
id: string;
|
|
5146
|
+
}>;
|
|
5425
5147
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5148
|
+
sendTransaction: <const request extends viem.SendTransactionRequest<viem.Chain | undefined, chainOverride>, chainOverride extends viem.Chain | undefined = undefined>(args: viem.SendTransactionParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, request>) => Promise<viem.SendTransactionReturnType>;
|
|
5149
|
+
showCallsStatus: (parameters: viem.ShowCallsStatusParameters) => Promise<viem.ShowCallsStatusReturnType>;
|
|
5150
|
+
signAuthorization: (parameters: viem.SignAuthorizationParameters<viem.Account | undefined>) => Promise<viem.SignAuthorizationReturnType>;
|
|
5151
|
+
signMessage: (args: viem.SignMessageParameters<viem.Account | undefined>) => Promise<viem.SignMessageReturnType>;
|
|
5152
|
+
signTransaction: <chainOverride extends viem.Chain | undefined, const request extends viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from"> = viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<viem.Chain | undefined, chainOverride>, "transactionRequest", viem.TransactionRequest>, "from">>(args: viem.SignTransactionParameters<viem.Chain | undefined, viem.Account | undefined, chainOverride, request>) => Promise<viem.TransactionSerialized<viem.GetTransactionType<request, (request extends {
|
|
5153
|
+
accessList?: undefined | undefined;
|
|
5154
|
+
authorizationList?: undefined | undefined;
|
|
5155
|
+
blobs?: undefined | undefined;
|
|
5156
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5157
|
+
gasPrice?: bigint | undefined;
|
|
5158
|
+
sidecars?: undefined | undefined;
|
|
5159
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5160
|
+
accessList?: viem.AccessList | undefined;
|
|
5161
|
+
authorizationList?: undefined | undefined;
|
|
5162
|
+
blobs?: undefined | undefined;
|
|
5163
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5164
|
+
gasPrice?: undefined | undefined;
|
|
5165
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5166
|
+
maxFeePerGas?: bigint | undefined;
|
|
5167
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5168
|
+
sidecars?: undefined | undefined;
|
|
5169
|
+
} & (viem.OneOf<{
|
|
5170
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5171
|
+
} | {
|
|
5172
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5173
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5174
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5175
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5176
|
+
accessList?: viem.AccessList | undefined;
|
|
5177
|
+
authorizationList?: undefined | undefined;
|
|
5178
|
+
blobs?: undefined | undefined;
|
|
5179
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5180
|
+
gasPrice?: bigint | undefined;
|
|
5181
|
+
sidecars?: undefined | undefined;
|
|
5182
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5183
|
+
maxFeePerGas?: undefined | undefined;
|
|
5184
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5185
|
+
} & {
|
|
5186
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5187
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5188
|
+
accessList?: viem.AccessList | undefined;
|
|
5189
|
+
authorizationList?: undefined | undefined;
|
|
5190
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5191
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5192
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5193
|
+
maxFeePerGas?: bigint | undefined;
|
|
5194
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5195
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5196
|
+
} | {
|
|
5197
|
+
accessList?: viem.AccessList | undefined;
|
|
5198
|
+
authorizationList?: undefined | undefined;
|
|
5199
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5200
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5201
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5202
|
+
maxFeePerGas?: bigint | undefined;
|
|
5203
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5204
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5205
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5206
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5207
|
+
} | {
|
|
5208
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5209
|
+
} | {
|
|
5210
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5211
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5212
|
+
accessList?: viem.AccessList | undefined;
|
|
5213
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5214
|
+
blobs?: undefined | undefined;
|
|
5215
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5216
|
+
gasPrice?: undefined | undefined;
|
|
5217
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5218
|
+
maxFeePerGas?: bigint | undefined;
|
|
5219
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5220
|
+
sidecars?: undefined | undefined;
|
|
5221
|
+
} | {
|
|
5222
|
+
accessList?: viem.AccessList | undefined;
|
|
5223
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5224
|
+
blobs?: undefined | undefined;
|
|
5225
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5226
|
+
gasPrice?: undefined | undefined;
|
|
5227
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5228
|
+
maxFeePerGas?: bigint | undefined;
|
|
5229
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5230
|
+
sidecars?: undefined | undefined;
|
|
5231
|
+
}) & {
|
|
5232
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5233
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>, (viem.GetTransactionType<request, (request extends {
|
|
5234
|
+
accessList?: undefined | undefined;
|
|
5235
|
+
authorizationList?: undefined | undefined;
|
|
5236
|
+
blobs?: undefined | undefined;
|
|
5237
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5238
|
+
gasPrice?: bigint | undefined;
|
|
5239
|
+
sidecars?: undefined | undefined;
|
|
5240
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5241
|
+
accessList?: viem.AccessList | undefined;
|
|
5242
|
+
authorizationList?: undefined | undefined;
|
|
5243
|
+
blobs?: undefined | undefined;
|
|
5244
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5245
|
+
gasPrice?: undefined | undefined;
|
|
5246
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5247
|
+
maxFeePerGas?: bigint | undefined;
|
|
5248
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5249
|
+
sidecars?: undefined | undefined;
|
|
5250
|
+
} & (viem.OneOf<{
|
|
5251
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5252
|
+
} | {
|
|
5253
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5254
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5255
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5256
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5257
|
+
accessList?: viem.AccessList | undefined;
|
|
5258
|
+
authorizationList?: undefined | undefined;
|
|
5259
|
+
blobs?: undefined | undefined;
|
|
5260
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5261
|
+
gasPrice?: bigint | undefined;
|
|
5262
|
+
sidecars?: undefined | undefined;
|
|
5263
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5264
|
+
maxFeePerGas?: undefined | undefined;
|
|
5265
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5266
|
+
} & {
|
|
5267
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5268
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5269
|
+
accessList?: viem.AccessList | undefined;
|
|
5270
|
+
authorizationList?: undefined | undefined;
|
|
5271
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5272
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5273
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5274
|
+
maxFeePerGas?: bigint | undefined;
|
|
5275
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5276
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5277
|
+
} | {
|
|
5278
|
+
accessList?: viem.AccessList | undefined;
|
|
5279
|
+
authorizationList?: undefined | undefined;
|
|
5280
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5281
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5282
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5283
|
+
maxFeePerGas?: bigint | undefined;
|
|
5284
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5285
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5286
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5287
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5288
|
+
} | {
|
|
5289
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5290
|
+
} | {
|
|
5291
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5292
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5293
|
+
accessList?: viem.AccessList | undefined;
|
|
5294
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5295
|
+
blobs?: undefined | undefined;
|
|
5296
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5297
|
+
gasPrice?: undefined | undefined;
|
|
5298
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5299
|
+
maxFeePerGas?: bigint | undefined;
|
|
5300
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5301
|
+
sidecars?: undefined | undefined;
|
|
5302
|
+
} | {
|
|
5303
|
+
accessList?: viem.AccessList | undefined;
|
|
5304
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5305
|
+
blobs?: undefined | undefined;
|
|
5306
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5307
|
+
gasPrice?: undefined | undefined;
|
|
5308
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5309
|
+
maxFeePerGas?: bigint | undefined;
|
|
5310
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5311
|
+
sidecars?: undefined | undefined;
|
|
5312
|
+
}) & {
|
|
5313
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5314
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends infer T ? T extends viem.GetTransactionType<request, (request extends {
|
|
5315
|
+
accessList?: undefined | undefined;
|
|
5316
|
+
authorizationList?: undefined | undefined;
|
|
5317
|
+
blobs?: undefined | undefined;
|
|
5318
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5319
|
+
gasPrice?: bigint | undefined;
|
|
5320
|
+
sidecars?: undefined | undefined;
|
|
5321
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5322
|
+
accessList?: viem.AccessList | undefined;
|
|
5323
|
+
authorizationList?: undefined | undefined;
|
|
5324
|
+
blobs?: undefined | undefined;
|
|
5325
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5326
|
+
gasPrice?: undefined | undefined;
|
|
5327
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5328
|
+
maxFeePerGas?: bigint | undefined;
|
|
5329
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5330
|
+
sidecars?: undefined | undefined;
|
|
5331
|
+
} & (viem.OneOf<{
|
|
5332
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5333
|
+
} | {
|
|
5334
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5335
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5336
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5337
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5338
|
+
accessList?: viem.AccessList | undefined;
|
|
5339
|
+
authorizationList?: undefined | undefined;
|
|
5340
|
+
blobs?: undefined | undefined;
|
|
5341
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5342
|
+
gasPrice?: bigint | undefined;
|
|
5343
|
+
sidecars?: undefined | undefined;
|
|
5344
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5345
|
+
maxFeePerGas?: undefined | undefined;
|
|
5346
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5347
|
+
} & {
|
|
5348
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5349
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5350
|
+
accessList?: viem.AccessList | undefined;
|
|
5351
|
+
authorizationList?: undefined | undefined;
|
|
5352
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5353
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5354
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5355
|
+
maxFeePerGas?: bigint | undefined;
|
|
5356
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5357
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5358
|
+
} | {
|
|
5359
|
+
accessList?: viem.AccessList | undefined;
|
|
5360
|
+
authorizationList?: undefined | undefined;
|
|
5361
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5362
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5363
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5364
|
+
maxFeePerGas?: bigint | undefined;
|
|
5365
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5366
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5367
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5368
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5369
|
+
} | {
|
|
5370
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5371
|
+
} | {
|
|
5372
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5373
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5374
|
+
accessList?: viem.AccessList | undefined;
|
|
5375
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5376
|
+
blobs?: undefined | undefined;
|
|
5377
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5378
|
+
gasPrice?: undefined | undefined;
|
|
5379
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5380
|
+
maxFeePerGas?: bigint | undefined;
|
|
5381
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5382
|
+
sidecars?: undefined | undefined;
|
|
5383
|
+
} | {
|
|
5384
|
+
accessList?: viem.AccessList | undefined;
|
|
5385
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5386
|
+
blobs?: undefined | undefined;
|
|
5387
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5388
|
+
gasPrice?: undefined | undefined;
|
|
5389
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5390
|
+
maxFeePerGas?: bigint | undefined;
|
|
5391
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5392
|
+
sidecars?: undefined | undefined;
|
|
5393
|
+
}) & {
|
|
5394
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5395
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> ? T extends "eip1559" ? `0x02${string}` : never : never : never) | (viem.GetTransactionType<request, (request extends {
|
|
5396
|
+
accessList?: undefined | undefined;
|
|
5397
|
+
authorizationList?: undefined | undefined;
|
|
5398
|
+
blobs?: undefined | undefined;
|
|
5399
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5400
|
+
gasPrice?: bigint | undefined;
|
|
5401
|
+
sidecars?: undefined | undefined;
|
|
5402
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5403
|
+
accessList?: viem.AccessList | undefined;
|
|
5404
|
+
authorizationList?: undefined | undefined;
|
|
5405
|
+
blobs?: undefined | undefined;
|
|
5406
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5407
|
+
gasPrice?: undefined | undefined;
|
|
5408
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5409
|
+
maxFeePerGas?: bigint | undefined;
|
|
5410
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5411
|
+
sidecars?: undefined | undefined;
|
|
5412
|
+
} & (viem.OneOf<{
|
|
5413
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5414
|
+
} | {
|
|
5415
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5416
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5417
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5418
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5419
|
+
accessList?: viem.AccessList | undefined;
|
|
5420
|
+
authorizationList?: undefined | undefined;
|
|
5421
|
+
blobs?: undefined | undefined;
|
|
5422
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5423
|
+
gasPrice?: bigint | undefined;
|
|
5424
|
+
sidecars?: undefined | undefined;
|
|
5425
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5426
|
+
maxFeePerGas?: undefined | undefined;
|
|
5427
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5428
|
+
} & {
|
|
5429
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5430
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5431
|
+
accessList?: viem.AccessList | undefined;
|
|
5432
|
+
authorizationList?: undefined | undefined;
|
|
5433
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5434
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5435
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5436
|
+
maxFeePerGas?: bigint | undefined;
|
|
5437
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5438
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5439
|
+
} | {
|
|
5440
|
+
accessList?: viem.AccessList | undefined;
|
|
5441
|
+
authorizationList?: undefined | undefined;
|
|
5442
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5443
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5444
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5445
|
+
maxFeePerGas?: bigint | undefined;
|
|
5446
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5447
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5448
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5449
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5450
|
+
} | {
|
|
5451
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5452
|
+
} | {
|
|
5453
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5454
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5455
|
+
accessList?: viem.AccessList | undefined;
|
|
5456
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5457
|
+
blobs?: undefined | undefined;
|
|
5458
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5459
|
+
gasPrice?: undefined | undefined;
|
|
5460
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5461
|
+
maxFeePerGas?: bigint | undefined;
|
|
5462
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5463
|
+
sidecars?: undefined | undefined;
|
|
5464
|
+
} | {
|
|
5465
|
+
accessList?: viem.AccessList | undefined;
|
|
5466
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5467
|
+
blobs?: undefined | undefined;
|
|
5468
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5469
|
+
gasPrice?: undefined | undefined;
|
|
5470
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5471
|
+
maxFeePerGas?: bigint | undefined;
|
|
5472
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5473
|
+
sidecars?: undefined | undefined;
|
|
5474
|
+
}) & {
|
|
5475
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5476
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends infer T_1 ? T_1 extends viem.GetTransactionType<request, (request extends {
|
|
5477
|
+
accessList?: undefined | undefined;
|
|
5478
|
+
authorizationList?: undefined | undefined;
|
|
5479
|
+
blobs?: undefined | undefined;
|
|
5480
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5481
|
+
gasPrice?: bigint | undefined;
|
|
5482
|
+
sidecars?: undefined | undefined;
|
|
5483
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5484
|
+
accessList?: viem.AccessList | undefined;
|
|
5485
|
+
authorizationList?: undefined | undefined;
|
|
5486
|
+
blobs?: undefined | undefined;
|
|
5487
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5488
|
+
gasPrice?: undefined | undefined;
|
|
5489
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5490
|
+
maxFeePerGas?: bigint | undefined;
|
|
5491
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5492
|
+
sidecars?: undefined | undefined;
|
|
5493
|
+
} & (viem.OneOf<{
|
|
5494
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5495
|
+
} | {
|
|
5496
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5497
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5498
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5499
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5500
|
+
accessList?: viem.AccessList | undefined;
|
|
5501
|
+
authorizationList?: undefined | undefined;
|
|
5502
|
+
blobs?: undefined | undefined;
|
|
5503
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5504
|
+
gasPrice?: bigint | undefined;
|
|
5505
|
+
sidecars?: undefined | undefined;
|
|
5506
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5507
|
+
maxFeePerGas?: undefined | undefined;
|
|
5508
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5509
|
+
} & {
|
|
5510
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5511
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5512
|
+
accessList?: viem.AccessList | undefined;
|
|
5513
|
+
authorizationList?: undefined | undefined;
|
|
5514
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5515
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5516
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5517
|
+
maxFeePerGas?: bigint | undefined;
|
|
5518
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5519
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5520
|
+
} | {
|
|
5521
|
+
accessList?: viem.AccessList | undefined;
|
|
5522
|
+
authorizationList?: undefined | undefined;
|
|
5523
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5524
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5525
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5526
|
+
maxFeePerGas?: bigint | undefined;
|
|
5527
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5528
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5529
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5530
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5531
|
+
} | {
|
|
5532
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5533
|
+
} | {
|
|
5534
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5535
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5536
|
+
accessList?: viem.AccessList | undefined;
|
|
5537
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5538
|
+
blobs?: undefined | undefined;
|
|
5539
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5540
|
+
gasPrice?: undefined | undefined;
|
|
5541
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5542
|
+
maxFeePerGas?: bigint | undefined;
|
|
5543
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5544
|
+
sidecars?: undefined | undefined;
|
|
5545
|
+
} | {
|
|
5546
|
+
accessList?: viem.AccessList | undefined;
|
|
5547
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5548
|
+
blobs?: undefined | undefined;
|
|
5549
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5550
|
+
gasPrice?: undefined | undefined;
|
|
5551
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5552
|
+
maxFeePerGas?: bigint | undefined;
|
|
5553
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5554
|
+
sidecars?: undefined | undefined;
|
|
5555
|
+
}) & {
|
|
5556
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5557
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> ? T_1 extends "eip2930" ? `0x01${string}` : never : never : never) | (viem.GetTransactionType<request, (request extends {
|
|
5558
|
+
accessList?: undefined | undefined;
|
|
5559
|
+
authorizationList?: undefined | undefined;
|
|
5560
|
+
blobs?: undefined | undefined;
|
|
5561
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5562
|
+
gasPrice?: bigint | undefined;
|
|
5563
|
+
sidecars?: undefined | undefined;
|
|
5564
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5565
|
+
accessList?: viem.AccessList | undefined;
|
|
5566
|
+
authorizationList?: undefined | undefined;
|
|
5567
|
+
blobs?: undefined | undefined;
|
|
5568
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5569
|
+
gasPrice?: undefined | undefined;
|
|
5570
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5571
|
+
maxFeePerGas?: bigint | undefined;
|
|
5572
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5573
|
+
sidecars?: undefined | undefined;
|
|
5574
|
+
} & (viem.OneOf<{
|
|
5575
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5576
|
+
} | {
|
|
5577
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5578
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5579
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5580
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5581
|
+
accessList?: viem.AccessList | undefined;
|
|
5582
|
+
authorizationList?: undefined | undefined;
|
|
5583
|
+
blobs?: undefined | undefined;
|
|
5584
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5585
|
+
gasPrice?: bigint | undefined;
|
|
5586
|
+
sidecars?: undefined | undefined;
|
|
5587
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5588
|
+
maxFeePerGas?: undefined | undefined;
|
|
5589
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5590
|
+
} & {
|
|
5591
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5592
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5593
|
+
accessList?: viem.AccessList | undefined;
|
|
5594
|
+
authorizationList?: undefined | undefined;
|
|
5595
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5596
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5597
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5598
|
+
maxFeePerGas?: bigint | undefined;
|
|
5599
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5600
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5601
|
+
} | {
|
|
5602
|
+
accessList?: viem.AccessList | undefined;
|
|
5603
|
+
authorizationList?: undefined | undefined;
|
|
5604
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5605
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5606
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5607
|
+
maxFeePerGas?: bigint | undefined;
|
|
5608
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5609
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5610
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5611
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5612
|
+
} | {
|
|
5613
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5614
|
+
} | {
|
|
5615
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5616
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5617
|
+
accessList?: viem.AccessList | undefined;
|
|
5618
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5619
|
+
blobs?: undefined | undefined;
|
|
5620
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5621
|
+
gasPrice?: undefined | undefined;
|
|
5622
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5623
|
+
maxFeePerGas?: bigint | undefined;
|
|
5624
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5625
|
+
sidecars?: undefined | undefined;
|
|
5626
|
+
} | {
|
|
5627
|
+
accessList?: viem.AccessList | undefined;
|
|
5628
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5629
|
+
blobs?: undefined | undefined;
|
|
5630
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5631
|
+
gasPrice?: undefined | undefined;
|
|
5632
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5633
|
+
maxFeePerGas?: bigint | undefined;
|
|
5634
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5635
|
+
sidecars?: undefined | undefined;
|
|
5636
|
+
}) & {
|
|
5637
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5638
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends infer T_2 ? T_2 extends viem.GetTransactionType<request, (request extends {
|
|
5639
|
+
accessList?: undefined | undefined;
|
|
5640
|
+
authorizationList?: undefined | undefined;
|
|
5641
|
+
blobs?: undefined | undefined;
|
|
5642
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5643
|
+
gasPrice?: bigint | undefined;
|
|
5644
|
+
sidecars?: undefined | undefined;
|
|
5645
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5646
|
+
accessList?: viem.AccessList | undefined;
|
|
5647
|
+
authorizationList?: undefined | undefined;
|
|
5648
|
+
blobs?: undefined | undefined;
|
|
5649
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5650
|
+
gasPrice?: undefined | undefined;
|
|
5651
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5652
|
+
maxFeePerGas?: bigint | undefined;
|
|
5653
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5654
|
+
sidecars?: undefined | undefined;
|
|
5655
|
+
} & (viem.OneOf<{
|
|
5656
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5657
|
+
} | {
|
|
5658
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5659
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5660
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5661
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5662
|
+
accessList?: viem.AccessList | undefined;
|
|
5663
|
+
authorizationList?: undefined | undefined;
|
|
5664
|
+
blobs?: undefined | undefined;
|
|
5665
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5666
|
+
gasPrice?: bigint | undefined;
|
|
5667
|
+
sidecars?: undefined | undefined;
|
|
5668
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5669
|
+
maxFeePerGas?: undefined | undefined;
|
|
5670
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5671
|
+
} & {
|
|
5672
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5673
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5674
|
+
accessList?: viem.AccessList | undefined;
|
|
5675
|
+
authorizationList?: undefined | undefined;
|
|
5676
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5677
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5678
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5679
|
+
maxFeePerGas?: bigint | undefined;
|
|
5680
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5681
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5682
|
+
} | {
|
|
5683
|
+
accessList?: viem.AccessList | undefined;
|
|
5684
|
+
authorizationList?: undefined | undefined;
|
|
5685
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5686
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5687
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5688
|
+
maxFeePerGas?: bigint | undefined;
|
|
5689
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5690
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5691
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5692
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5693
|
+
} | {
|
|
5694
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5695
|
+
} | {
|
|
5696
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5697
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5698
|
+
accessList?: viem.AccessList | undefined;
|
|
5699
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5700
|
+
blobs?: undefined | undefined;
|
|
5701
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5702
|
+
gasPrice?: undefined | undefined;
|
|
5703
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5704
|
+
maxFeePerGas?: bigint | undefined;
|
|
5705
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5706
|
+
sidecars?: undefined | undefined;
|
|
5707
|
+
} | {
|
|
5708
|
+
accessList?: viem.AccessList | undefined;
|
|
5709
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5710
|
+
blobs?: undefined | undefined;
|
|
5711
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5712
|
+
gasPrice?: undefined | undefined;
|
|
5713
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5714
|
+
maxFeePerGas?: bigint | undefined;
|
|
5715
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5716
|
+
sidecars?: undefined | undefined;
|
|
5717
|
+
}) & {
|
|
5718
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5719
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> ? T_2 extends "eip4844" ? `0x03${string}` : never : never : never) | (viem.GetTransactionType<request, (request extends {
|
|
5720
|
+
accessList?: undefined | undefined;
|
|
5721
|
+
authorizationList?: undefined | undefined;
|
|
5722
|
+
blobs?: undefined | undefined;
|
|
5723
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5724
|
+
gasPrice?: bigint | undefined;
|
|
5725
|
+
sidecars?: undefined | undefined;
|
|
5726
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5727
|
+
accessList?: viem.AccessList | undefined;
|
|
5728
|
+
authorizationList?: undefined | undefined;
|
|
5729
|
+
blobs?: undefined | undefined;
|
|
5730
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5731
|
+
gasPrice?: undefined | undefined;
|
|
5732
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5733
|
+
maxFeePerGas?: bigint | undefined;
|
|
5734
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5735
|
+
sidecars?: undefined | undefined;
|
|
5736
|
+
} & (viem.OneOf<{
|
|
5737
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5738
|
+
} | {
|
|
5739
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5740
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5741
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5742
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5743
|
+
accessList?: viem.AccessList | undefined;
|
|
5744
|
+
authorizationList?: undefined | undefined;
|
|
5745
|
+
blobs?: undefined | undefined;
|
|
5746
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5747
|
+
gasPrice?: bigint | undefined;
|
|
5748
|
+
sidecars?: undefined | undefined;
|
|
5749
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5750
|
+
maxFeePerGas?: undefined | undefined;
|
|
5751
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5752
|
+
} & {
|
|
5753
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5754
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5755
|
+
accessList?: viem.AccessList | undefined;
|
|
5756
|
+
authorizationList?: undefined | undefined;
|
|
5757
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5758
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5759
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5760
|
+
maxFeePerGas?: bigint | undefined;
|
|
5761
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5762
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5763
|
+
} | {
|
|
5764
|
+
accessList?: viem.AccessList | undefined;
|
|
5765
|
+
authorizationList?: undefined | undefined;
|
|
5766
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5767
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5768
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5769
|
+
maxFeePerGas?: bigint | undefined;
|
|
5770
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5771
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5772
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5773
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5774
|
+
} | {
|
|
5775
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5776
|
+
} | {
|
|
5777
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5778
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5779
|
+
accessList?: viem.AccessList | undefined;
|
|
5780
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5781
|
+
blobs?: undefined | undefined;
|
|
5782
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5783
|
+
gasPrice?: undefined | undefined;
|
|
5784
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5785
|
+
maxFeePerGas?: bigint | undefined;
|
|
5786
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5787
|
+
sidecars?: undefined | undefined;
|
|
5788
|
+
} | {
|
|
5789
|
+
accessList?: viem.AccessList | undefined;
|
|
5790
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5791
|
+
blobs?: undefined | undefined;
|
|
5792
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5793
|
+
gasPrice?: undefined | undefined;
|
|
5794
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5795
|
+
maxFeePerGas?: bigint | undefined;
|
|
5796
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5797
|
+
sidecars?: undefined | undefined;
|
|
5798
|
+
}) & {
|
|
5799
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5800
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends infer T_3 ? T_3 extends viem.GetTransactionType<request, (request extends {
|
|
5801
|
+
accessList?: undefined | undefined;
|
|
5802
|
+
authorizationList?: undefined | undefined;
|
|
5803
|
+
blobs?: undefined | undefined;
|
|
5804
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5805
|
+
gasPrice?: bigint | undefined;
|
|
5806
|
+
sidecars?: undefined | undefined;
|
|
5807
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5808
|
+
accessList?: viem.AccessList | undefined;
|
|
5809
|
+
authorizationList?: undefined | undefined;
|
|
5810
|
+
blobs?: undefined | undefined;
|
|
5811
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5812
|
+
gasPrice?: undefined | undefined;
|
|
5813
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5814
|
+
maxFeePerGas?: bigint | undefined;
|
|
5815
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5816
|
+
sidecars?: undefined | undefined;
|
|
5817
|
+
} & (viem.OneOf<{
|
|
5818
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5819
|
+
} | {
|
|
5820
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5821
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5822
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5823
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5824
|
+
accessList?: viem.AccessList | undefined;
|
|
5825
|
+
authorizationList?: undefined | undefined;
|
|
5826
|
+
blobs?: undefined | undefined;
|
|
5827
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5828
|
+
gasPrice?: bigint | undefined;
|
|
5829
|
+
sidecars?: undefined | undefined;
|
|
5830
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5831
|
+
maxFeePerGas?: undefined | undefined;
|
|
5832
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5833
|
+
} & {
|
|
5834
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5835
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5836
|
+
accessList?: viem.AccessList | undefined;
|
|
5837
|
+
authorizationList?: undefined | undefined;
|
|
5838
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5839
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5840
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5841
|
+
maxFeePerGas?: bigint | undefined;
|
|
5842
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5843
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5844
|
+
} | {
|
|
5845
|
+
accessList?: viem.AccessList | undefined;
|
|
5846
|
+
authorizationList?: undefined | undefined;
|
|
5847
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5848
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5849
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5850
|
+
maxFeePerGas?: bigint | undefined;
|
|
5851
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5852
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5853
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5854
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5855
|
+
} | {
|
|
5856
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5857
|
+
} | {
|
|
5858
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5859
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5860
|
+
accessList?: viem.AccessList | undefined;
|
|
5861
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5862
|
+
blobs?: undefined | undefined;
|
|
5863
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5864
|
+
gasPrice?: undefined | undefined;
|
|
5865
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5866
|
+
maxFeePerGas?: bigint | undefined;
|
|
5867
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5868
|
+
sidecars?: undefined | undefined;
|
|
5869
|
+
} | {
|
|
5870
|
+
accessList?: viem.AccessList | undefined;
|
|
5871
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5872
|
+
blobs?: undefined | undefined;
|
|
5873
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5874
|
+
gasPrice?: undefined | undefined;
|
|
5875
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5876
|
+
maxFeePerGas?: bigint | undefined;
|
|
5877
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5878
|
+
sidecars?: undefined | undefined;
|
|
5879
|
+
}) & {
|
|
5880
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5881
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> ? T_3 extends "eip7702" ? `0x04${string}` : never : never : never) | (viem.GetTransactionType<request, (request extends {
|
|
5882
|
+
accessList?: undefined | undefined;
|
|
5883
|
+
authorizationList?: undefined | undefined;
|
|
5884
|
+
blobs?: undefined | undefined;
|
|
5885
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5886
|
+
gasPrice?: bigint | undefined;
|
|
5887
|
+
sidecars?: undefined | undefined;
|
|
5888
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5889
|
+
accessList?: viem.AccessList | undefined;
|
|
5890
|
+
authorizationList?: undefined | undefined;
|
|
5891
|
+
blobs?: undefined | undefined;
|
|
5892
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5893
|
+
gasPrice?: undefined | undefined;
|
|
5894
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5895
|
+
maxFeePerGas?: bigint | undefined;
|
|
5896
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5897
|
+
sidecars?: undefined | undefined;
|
|
5898
|
+
} & (viem.OneOf<{
|
|
5899
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5900
|
+
} | {
|
|
5901
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5902
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5903
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5904
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5905
|
+
accessList?: viem.AccessList | undefined;
|
|
5906
|
+
authorizationList?: undefined | undefined;
|
|
5907
|
+
blobs?: undefined | undefined;
|
|
5908
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5909
|
+
gasPrice?: bigint | undefined;
|
|
5910
|
+
sidecars?: undefined | undefined;
|
|
5911
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5912
|
+
maxFeePerGas?: undefined | undefined;
|
|
5913
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5914
|
+
} & {
|
|
5915
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5916
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5917
|
+
accessList?: viem.AccessList | undefined;
|
|
5918
|
+
authorizationList?: undefined | undefined;
|
|
5919
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5920
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5921
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5922
|
+
maxFeePerGas?: bigint | undefined;
|
|
5923
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5924
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5925
|
+
} | {
|
|
5926
|
+
accessList?: viem.AccessList | undefined;
|
|
5927
|
+
authorizationList?: undefined | undefined;
|
|
5928
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
5929
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
5930
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
5931
|
+
maxFeePerGas?: bigint | undefined;
|
|
5932
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5933
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
5934
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
5935
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
5936
|
+
} | {
|
|
5937
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
5938
|
+
} | {
|
|
5939
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
5940
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
5941
|
+
accessList?: viem.AccessList | undefined;
|
|
5942
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5943
|
+
blobs?: undefined | undefined;
|
|
5944
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5945
|
+
gasPrice?: undefined | undefined;
|
|
5946
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5947
|
+
maxFeePerGas?: bigint | undefined;
|
|
5948
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5949
|
+
sidecars?: undefined | undefined;
|
|
5950
|
+
} | {
|
|
5951
|
+
accessList?: viem.AccessList | undefined;
|
|
5952
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
5953
|
+
blobs?: undefined | undefined;
|
|
5954
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5955
|
+
gasPrice?: undefined | undefined;
|
|
5956
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5957
|
+
maxFeePerGas?: bigint | undefined;
|
|
5958
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5959
|
+
sidecars?: undefined | undefined;
|
|
5960
|
+
}) & {
|
|
5961
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
5962
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> extends infer T_4 ? T_4 extends viem.GetTransactionType<request, (request extends {
|
|
5963
|
+
accessList?: undefined | undefined;
|
|
5964
|
+
authorizationList?: undefined | undefined;
|
|
5965
|
+
blobs?: undefined | undefined;
|
|
5966
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5967
|
+
gasPrice?: bigint | undefined;
|
|
5968
|
+
sidecars?: undefined | undefined;
|
|
5969
|
+
} & viem.FeeValuesLegacy ? "legacy" : never) | (request extends {
|
|
5970
|
+
accessList?: viem.AccessList | undefined;
|
|
5971
|
+
authorizationList?: undefined | undefined;
|
|
5972
|
+
blobs?: undefined | undefined;
|
|
5973
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5974
|
+
gasPrice?: undefined | undefined;
|
|
5975
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5976
|
+
maxFeePerGas?: bigint | undefined;
|
|
5977
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
5978
|
+
sidecars?: undefined | undefined;
|
|
5979
|
+
} & (viem.OneOf<{
|
|
5980
|
+
maxFeePerGas: viem.FeeValuesEIP1559["maxFeePerGas"];
|
|
5981
|
+
} | {
|
|
5982
|
+
maxPriorityFeePerGas: viem.FeeValuesEIP1559["maxPriorityFeePerGas"];
|
|
5983
|
+
}, viem.FeeValuesEIP1559> & {
|
|
5984
|
+
accessList?: viem.TransactionSerializableEIP2930["accessList"] | undefined;
|
|
5985
|
+
}) ? "eip1559" : never) | (request extends {
|
|
5986
|
+
accessList?: viem.AccessList | undefined;
|
|
5987
|
+
authorizationList?: undefined | undefined;
|
|
5988
|
+
blobs?: undefined | undefined;
|
|
5989
|
+
blobVersionedHashes?: undefined | undefined;
|
|
5990
|
+
gasPrice?: bigint | undefined;
|
|
5991
|
+
sidecars?: undefined | undefined;
|
|
5992
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
5993
|
+
maxFeePerGas?: undefined | undefined;
|
|
5994
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
5995
|
+
} & {
|
|
5996
|
+
accessList: viem.TransactionSerializableEIP2930["accessList"];
|
|
5997
|
+
} ? "eip2930" : never) | (request extends ({
|
|
5998
|
+
accessList?: viem.AccessList | undefined;
|
|
5999
|
+
authorizationList?: undefined | undefined;
|
|
6000
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
6001
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
6002
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
6003
|
+
maxFeePerGas?: bigint | undefined;
|
|
6004
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
6005
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
6006
|
+
} | {
|
|
6007
|
+
accessList?: viem.AccessList | undefined;
|
|
6008
|
+
authorizationList?: undefined | undefined;
|
|
6009
|
+
blobs?: readonly `0x${string}`[] | readonly viem.ByteArray[] | undefined;
|
|
6010
|
+
blobVersionedHashes?: readonly `0x${string}`[] | undefined;
|
|
6011
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
6012
|
+
maxFeePerGas?: bigint | undefined;
|
|
6013
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
6014
|
+
sidecars?: false | readonly viem.BlobSidecar<`0x${string}`>[] | undefined;
|
|
6015
|
+
}) & (viem.ExactPartial<viem.FeeValuesEIP4844> & viem.OneOf<{
|
|
6016
|
+
blobs: viem.TransactionSerializableEIP4844["blobs"];
|
|
6017
|
+
} | {
|
|
6018
|
+
blobVersionedHashes: viem.TransactionSerializableEIP4844["blobVersionedHashes"];
|
|
6019
|
+
} | {
|
|
6020
|
+
sidecars: viem.TransactionSerializableEIP4844["sidecars"];
|
|
6021
|
+
}, viem.TransactionSerializableEIP4844>) ? "eip4844" : never) | (request extends ({
|
|
6022
|
+
accessList?: viem.AccessList | undefined;
|
|
6023
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
6024
|
+
blobs?: undefined | undefined;
|
|
6025
|
+
blobVersionedHashes?: undefined | undefined;
|
|
6026
|
+
gasPrice?: undefined | undefined;
|
|
6027
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
6028
|
+
maxFeePerGas?: bigint | undefined;
|
|
6029
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
6030
|
+
sidecars?: undefined | undefined;
|
|
6031
|
+
} | {
|
|
6032
|
+
accessList?: viem.AccessList | undefined;
|
|
6033
|
+
authorizationList?: viem.SignedAuthorizationList | undefined;
|
|
6034
|
+
blobs?: undefined | undefined;
|
|
6035
|
+
blobVersionedHashes?: undefined | undefined;
|
|
6036
|
+
gasPrice?: undefined | undefined;
|
|
6037
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
6038
|
+
maxFeePerGas?: bigint | undefined;
|
|
6039
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
6040
|
+
sidecars?: undefined | undefined;
|
|
6041
|
+
}) & {
|
|
6042
|
+
authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
|
|
6043
|
+
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> ? T_4 extends "legacy" ? viem.TransactionSerializedLegacy : never : never : never)>>;
|
|
6044
|
+
signTypedData: <const typedData extends {
|
|
6045
|
+
[x: string]: readonly viem.TypedDataParameter[];
|
|
6046
|
+
[x: `string[${string}]`]: undefined;
|
|
6047
|
+
[x: `function[${string}]`]: undefined;
|
|
6048
|
+
[x: `address[${string}]`]: undefined;
|
|
6049
|
+
[x: `uint256[${string}]`]: undefined;
|
|
6050
|
+
[x: `uint32[${string}]`]: undefined;
|
|
6051
|
+
[x: `bytes[${string}]`]: undefined;
|
|
6052
|
+
[x: `int256[${string}]`]: undefined;
|
|
6053
|
+
[x: `bool[${string}]`]: undefined;
|
|
6054
|
+
[x: `uint8[${string}]`]: undefined;
|
|
6055
|
+
[x: `uint128[${string}]`]: undefined;
|
|
6056
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
6057
|
+
[x: `int24[${string}]`]: undefined;
|
|
6058
|
+
[x: `uint24[${string}]`]: undefined;
|
|
6059
|
+
[x: `uint160[${string}]`]: undefined;
|
|
6060
|
+
[x: `uint16[${string}]`]: undefined;
|
|
6061
|
+
[x: `uint120[${string}]`]: undefined;
|
|
6062
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
6063
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
6064
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
6065
|
+
[x: `bytes1[${string}]`]: undefined;
|
|
6066
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
6067
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
6068
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
6069
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
6070
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
6071
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
6072
|
+
[x: `bytes7[${string}]`]: undefined;
|
|
6073
|
+
[x: `bytes9[${string}]`]: undefined;
|
|
6074
|
+
[x: `bytes11[${string}]`]: undefined;
|
|
6075
|
+
[x: `bytes13[${string}]`]: undefined;
|
|
6076
|
+
[x: `bytes14[${string}]`]: undefined;
|
|
6077
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
6078
|
+
[x: `bytes17[${string}]`]: undefined;
|
|
6079
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
6080
|
+
[x: `bytes19[${string}]`]: undefined;
|
|
6081
|
+
[x: `bytes20[${string}]`]: undefined;
|
|
6082
|
+
[x: `bytes21[${string}]`]: undefined;
|
|
6083
|
+
[x: `bytes22[${string}]`]: undefined;
|
|
6084
|
+
[x: `bytes23[${string}]`]: undefined;
|
|
6085
|
+
[x: `bytes24[${string}]`]: undefined;
|
|
6086
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
6087
|
+
[x: `bytes26[${string}]`]: undefined;
|
|
6088
|
+
[x: `bytes27[${string}]`]: undefined;
|
|
6089
|
+
[x: `bytes28[${string}]`]: undefined;
|
|
6090
|
+
[x: `bytes29[${string}]`]: undefined;
|
|
6091
|
+
[x: `bytes30[${string}]`]: undefined;
|
|
6092
|
+
[x: `bytes31[${string}]`]: undefined;
|
|
6093
|
+
[x: `int[${string}]`]: undefined;
|
|
6094
|
+
[x: `int8[${string}]`]: undefined;
|
|
6095
|
+
[x: `int104[${string}]`]: undefined;
|
|
6096
|
+
[x: `int16[${string}]`]: undefined;
|
|
6097
|
+
[x: `int32[${string}]`]: undefined;
|
|
6098
|
+
[x: `int40[${string}]`]: undefined;
|
|
6099
|
+
[x: `int48[${string}]`]: undefined;
|
|
6100
|
+
[x: `int56[${string}]`]: undefined;
|
|
6101
|
+
[x: `int64[${string}]`]: undefined;
|
|
6102
|
+
[x: `int72[${string}]`]: undefined;
|
|
6103
|
+
[x: `int80[${string}]`]: undefined;
|
|
6104
|
+
[x: `int88[${string}]`]: undefined;
|
|
6105
|
+
[x: `int96[${string}]`]: undefined;
|
|
6106
|
+
[x: `int112[${string}]`]: undefined;
|
|
6107
|
+
[x: `int120[${string}]`]: undefined;
|
|
6108
|
+
[x: `int128[${string}]`]: undefined;
|
|
6109
|
+
[x: `int136[${string}]`]: undefined;
|
|
6110
|
+
[x: `int144[${string}]`]: undefined;
|
|
6111
|
+
[x: `int152[${string}]`]: undefined;
|
|
6112
|
+
[x: `int160[${string}]`]: undefined;
|
|
6113
|
+
[x: `int168[${string}]`]: undefined;
|
|
6114
|
+
[x: `int176[${string}]`]: undefined;
|
|
6115
|
+
[x: `int184[${string}]`]: undefined;
|
|
6116
|
+
[x: `int192[${string}]`]: undefined;
|
|
6117
|
+
[x: `int200[${string}]`]: undefined;
|
|
6118
|
+
[x: `int208[${string}]`]: undefined;
|
|
6119
|
+
[x: `int216[${string}]`]: undefined;
|
|
6120
|
+
[x: `int224[${string}]`]: undefined;
|
|
6121
|
+
[x: `int232[${string}]`]: undefined;
|
|
6122
|
+
[x: `int240[${string}]`]: undefined;
|
|
6123
|
+
[x: `int248[${string}]`]: undefined;
|
|
6124
|
+
[x: `uint[${string}]`]: undefined;
|
|
6125
|
+
[x: `uint104[${string}]`]: undefined;
|
|
6126
|
+
[x: `uint40[${string}]`]: undefined;
|
|
6127
|
+
[x: `uint48[${string}]`]: undefined;
|
|
6128
|
+
[x: `uint56[${string}]`]: undefined;
|
|
6129
|
+
[x: `uint64[${string}]`]: undefined;
|
|
6130
|
+
[x: `uint72[${string}]`]: undefined;
|
|
6131
|
+
[x: `uint80[${string}]`]: undefined;
|
|
6132
|
+
[x: `uint88[${string}]`]: undefined;
|
|
6133
|
+
[x: `uint96[${string}]`]: undefined;
|
|
6134
|
+
[x: `uint112[${string}]`]: undefined;
|
|
6135
|
+
[x: `uint136[${string}]`]: undefined;
|
|
6136
|
+
[x: `uint144[${string}]`]: undefined;
|
|
6137
|
+
[x: `uint152[${string}]`]: undefined;
|
|
6138
|
+
[x: `uint168[${string}]`]: undefined;
|
|
6139
|
+
[x: `uint176[${string}]`]: undefined;
|
|
6140
|
+
[x: `uint184[${string}]`]: undefined;
|
|
6141
|
+
[x: `uint192[${string}]`]: undefined;
|
|
6142
|
+
[x: `uint200[${string}]`]: undefined;
|
|
6143
|
+
[x: `uint208[${string}]`]: undefined;
|
|
6144
|
+
[x: `uint216[${string}]`]: undefined;
|
|
6145
|
+
[x: `uint224[${string}]`]: undefined;
|
|
6146
|
+
[x: `uint232[${string}]`]: undefined;
|
|
6147
|
+
[x: `uint240[${string}]`]: undefined;
|
|
6148
|
+
[x: `uint248[${string}]`]: undefined;
|
|
6149
|
+
string?: undefined;
|
|
6150
|
+
address?: undefined;
|
|
6151
|
+
uint256?: undefined;
|
|
6152
|
+
uint32?: undefined;
|
|
6153
|
+
bytes?: undefined;
|
|
6154
|
+
int256?: undefined;
|
|
6155
|
+
bool?: undefined;
|
|
6156
|
+
uint8?: undefined;
|
|
6157
|
+
uint128?: undefined;
|
|
6158
|
+
bytes32?: undefined;
|
|
6159
|
+
int24?: undefined;
|
|
6160
|
+
uint24?: undefined;
|
|
6161
|
+
uint160?: undefined;
|
|
6162
|
+
uint16?: undefined;
|
|
6163
|
+
uint120?: undefined;
|
|
6164
|
+
bytes4?: undefined;
|
|
6165
|
+
bytes3?: undefined;
|
|
6166
|
+
bytes2?: undefined;
|
|
6167
|
+
bytes1?: undefined;
|
|
6168
|
+
bytes15?: undefined;
|
|
6169
|
+
bytes6?: undefined;
|
|
6170
|
+
bytes12?: undefined;
|
|
6171
|
+
bytes10?: undefined;
|
|
6172
|
+
bytes5?: undefined;
|
|
6173
|
+
bytes8?: undefined;
|
|
6174
|
+
bytes7?: undefined;
|
|
6175
|
+
bytes9?: undefined;
|
|
6176
|
+
bytes11?: undefined;
|
|
6177
|
+
bytes13?: undefined;
|
|
6178
|
+
bytes14?: undefined;
|
|
6179
|
+
bytes16?: undefined;
|
|
6180
|
+
bytes17?: undefined;
|
|
6181
|
+
bytes18?: undefined;
|
|
6182
|
+
bytes19?: undefined;
|
|
6183
|
+
bytes20?: undefined;
|
|
6184
|
+
bytes21?: undefined;
|
|
6185
|
+
bytes22?: undefined;
|
|
6186
|
+
bytes23?: undefined;
|
|
6187
|
+
bytes24?: undefined;
|
|
6188
|
+
bytes25?: undefined;
|
|
6189
|
+
bytes26?: undefined;
|
|
6190
|
+
bytes27?: undefined;
|
|
6191
|
+
bytes28?: undefined;
|
|
6192
|
+
bytes29?: undefined;
|
|
6193
|
+
bytes30?: undefined;
|
|
6194
|
+
bytes31?: undefined;
|
|
6195
|
+
int8?: undefined;
|
|
6196
|
+
int104?: undefined;
|
|
6197
|
+
int16?: undefined;
|
|
6198
|
+
int32?: undefined;
|
|
6199
|
+
int40?: undefined;
|
|
6200
|
+
int48?: undefined;
|
|
6201
|
+
int56?: undefined;
|
|
6202
|
+
int64?: undefined;
|
|
6203
|
+
int72?: undefined;
|
|
6204
|
+
int80?: undefined;
|
|
6205
|
+
int88?: undefined;
|
|
6206
|
+
int96?: undefined;
|
|
6207
|
+
int112?: undefined;
|
|
6208
|
+
int120?: undefined;
|
|
6209
|
+
int128?: undefined;
|
|
6210
|
+
int136?: undefined;
|
|
6211
|
+
int144?: undefined;
|
|
6212
|
+
int152?: undefined;
|
|
6213
|
+
int160?: undefined;
|
|
6214
|
+
int168?: undefined;
|
|
6215
|
+
int176?: undefined;
|
|
6216
|
+
int184?: undefined;
|
|
6217
|
+
int192?: undefined;
|
|
6218
|
+
int200?: undefined;
|
|
6219
|
+
int208?: undefined;
|
|
6220
|
+
int216?: undefined;
|
|
6221
|
+
int224?: undefined;
|
|
6222
|
+
int232?: undefined;
|
|
6223
|
+
int240?: undefined;
|
|
6224
|
+
int248?: undefined;
|
|
6225
|
+
uint104?: undefined;
|
|
6226
|
+
uint40?: undefined;
|
|
6227
|
+
uint48?: undefined;
|
|
6228
|
+
uint56?: undefined;
|
|
6229
|
+
uint64?: undefined;
|
|
6230
|
+
uint72?: undefined;
|
|
6231
|
+
uint80?: undefined;
|
|
6232
|
+
uint88?: undefined;
|
|
6233
|
+
uint96?: undefined;
|
|
6234
|
+
uint112?: undefined;
|
|
6235
|
+
uint136?: undefined;
|
|
6236
|
+
uint144?: undefined;
|
|
6237
|
+
uint152?: undefined;
|
|
6238
|
+
uint168?: undefined;
|
|
6239
|
+
uint176?: undefined;
|
|
6240
|
+
uint184?: undefined;
|
|
6241
|
+
uint192?: undefined;
|
|
6242
|
+
uint200?: undefined;
|
|
6243
|
+
uint208?: undefined;
|
|
6244
|
+
uint216?: undefined;
|
|
6245
|
+
uint224?: undefined;
|
|
6246
|
+
uint232?: undefined;
|
|
6247
|
+
uint240?: undefined;
|
|
6248
|
+
uint248?: undefined;
|
|
6249
|
+
} | {
|
|
6250
|
+
[key: string]: unknown;
|
|
6251
|
+
}, primaryType extends string>(args: viem.SignTypedDataParameters<typedData, primaryType, viem.Account | undefined>) => Promise<viem.SignTypedDataReturnType>;
|
|
6252
|
+
switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
|
|
6253
|
+
waitForCallsStatus: (parameters: viem.WaitForCallsStatusParameters) => Promise<viem.WaitForCallsStatusReturnType>;
|
|
6254
|
+
watchAsset: (args: viem.WatchAssetParameters) => Promise<viem.WatchAssetReturnType>;
|
|
6255
|
+
writeContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined = undefined>(args: viem.WriteContractParameters<abi, functionName, args_1, viem.Chain | undefined, viem.Account | undefined, chainOverride>) => Promise<viem.WriteContractReturnType>;
|
|
6256
|
+
extend: <const client extends {
|
|
6257
|
+
[x: string]: unknown;
|
|
6258
|
+
account?: undefined;
|
|
6259
|
+
batch?: undefined;
|
|
6260
|
+
cacheTime?: undefined;
|
|
6261
|
+
ccipRead?: undefined;
|
|
6262
|
+
chain?: undefined;
|
|
6263
|
+
experimental_blockTag?: undefined;
|
|
6264
|
+
key?: undefined;
|
|
6265
|
+
name?: undefined;
|
|
6266
|
+
pollingInterval?: undefined;
|
|
6267
|
+
request?: undefined;
|
|
6268
|
+
transport?: undefined;
|
|
6269
|
+
type?: undefined;
|
|
6270
|
+
uid?: undefined;
|
|
6271
|
+
} & viem.ExactPartial<Pick<viem.PublicActions<viem.Transport, viem.Chain | undefined, viem.Account | undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<viem.Chain | undefined, viem.Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<viem.Transport, viem.Chain | undefined, viem.Account | undefined, viem.WalletRpcSchema, viem.WalletActions<viem.Chain | undefined, viem.Account | undefined>>) => client) => viem.Client<viem.Transport, viem.Chain | undefined, viem.Account | undefined, viem.WalletRpcSchema, { [K in keyof client]: client[K]; } & viem.WalletActions<viem.Chain | undefined, viem.Account | undefined>>;
|
|
6272
|
+
};
|
|
6273
|
+
readonly publicClient: PublicClient;
|
|
6274
|
+
private readonly _deployments;
|
|
6275
|
+
private readonly configCache;
|
|
6276
|
+
constructor(config: PerpCityContextConfig);
|
|
6277
|
+
/**
|
|
6278
|
+
* Validates that the RPC endpoint matches the expected chain.
|
|
6279
|
+
* Call this after construction to verify configuration.
|
|
6280
|
+
* @throws Error if RPC chain ID doesn't match walletClient chain ID
|
|
6281
|
+
*/
|
|
6282
|
+
validateChainId(): Promise<void>;
|
|
5445
6283
|
deployments(): PerpCityDeployments;
|
|
5446
6284
|
private fetchPerpData;
|
|
5447
6285
|
/**
|