viem 1.19.8 → 1.19.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +425 -405
- package/README.md +46 -46
- package/_cjs/accounts/utils/signTransaction.js.map +1 -1
- package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_cjs/chains/celo/serializers.js +3 -7
- package/_cjs/chains/celo/serializers.js.map +1 -1
- package/_cjs/chains/definitions/confluxESpace.js +2 -0
- package/_cjs/chains/definitions/confluxESpace.js.map +1 -1
- package/_cjs/chains/definitions/confluxESpaceTestnet.js +34 -0
- package/_cjs/chains/definitions/confluxESpaceTestnet.js.map +1 -0
- package/_cjs/chains/definitions/filecoin.js +6 -0
- package/_cjs/chains/definitions/filecoin.js.map +1 -1
- package/_cjs/chains/definitions/pgn.js +38 -0
- package/_cjs/chains/definitions/pgn.js.map +1 -0
- package/_cjs/chains/definitions/pgnTestnet.js +39 -0
- package/_cjs/chains/definitions/pgnTestnet.js.map +1 -0
- package/_cjs/chains/definitions/sapphire.js +33 -0
- package/_cjs/chains/definitions/sapphire.js.map +1 -0
- package/_cjs/chains/definitions/sapphireTestnet.js +28 -0
- package/_cjs/chains/definitions/sapphireTestnet.js.map +1 -0
- package/_cjs/chains/index.js +14 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/base.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/errors/version.js.map +1 -1
- package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
- package/_cjs/utils/ccip.js +3 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/encoding/toBytes.js +2 -2
- package/_cjs/utils/encoding/toBytes.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js +1 -1
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/errors/getContractError.js.map +1 -1
- package/_cjs/utils/errors/getNodeError.js +11 -11
- package/_cjs/utils/errors/getNodeError.js.map +1 -1
- package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/accounts/utils/signTransaction.js.map +1 -1
- package/_esm/actions/ens/getEnsAddress.js +2 -2
- package/_esm/actions/ens/getEnsAvatar.js +2 -2
- package/_esm/actions/ens/getEnsName.js +2 -2
- package/_esm/actions/ens/getEnsResolver.js +2 -2
- package/_esm/actions/ens/getEnsText.js +2 -2
- package/_esm/actions/public/createContractEventFilter.js.map +1 -1
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +1 -1
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_esm/actions/public/getBlock.js +1 -1
- package/_esm/actions/public/getBlockNumber.js +1 -1
- package/_esm/actions/public/getLogs.js +1 -1
- package/_esm/actions/public/getTransaction.js +1 -1
- package/_esm/actions/public/getTransactionConfirmations.js +1 -1
- package/_esm/actions/public/getTransactionReceipt.js +1 -1
- package/_esm/actions/public/readContract.js +1 -1
- package/_esm/actions/public/simulateContract.js +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +1 -1
- package/_esm/actions/public/watchBlockNumber.js +1 -1
- package/_esm/actions/public/watchBlocks.js +1 -1
- package/_esm/actions/wallet/deployContract.js +1 -1
- package/_esm/actions/wallet/sendTransaction.js +1 -1
- package/_esm/actions/wallet/writeContract.js +1 -1
- package/_esm/chains/celo/serializers.js +3 -7
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/definitions/confluxESpace.js +2 -0
- package/_esm/chains/definitions/confluxESpace.js.map +1 -1
- package/_esm/chains/definitions/confluxESpaceTestnet.js +31 -0
- package/_esm/chains/definitions/confluxESpaceTestnet.js.map +1 -0
- package/_esm/chains/definitions/filecoin.js +6 -0
- package/_esm/chains/definitions/filecoin.js.map +1 -1
- package/_esm/chains/definitions/pgn.js +35 -0
- package/_esm/chains/definitions/pgn.js.map +1 -0
- package/_esm/chains/definitions/pgnTestnet.js +36 -0
- package/_esm/chains/definitions/pgnTestnet.js.map +1 -0
- package/_esm/chains/definitions/sapphire.js +30 -0
- package/_esm/chains/definitions/sapphire.js.map +1 -0
- package/_esm/chains/definitions/sapphireTestnet.js +25 -0
- package/_esm/chains/definitions/sapphireTestnet.js.map +1 -0
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/base.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/errors/version.js.map +1 -1
- package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
- package/_esm/utils/ccip.js +3 -1
- package/_esm/utils/ccip.js.map +1 -1
- package/_esm/utils/encoding/toBytes.js +2 -2
- package/_esm/utils/encoding/toBytes.js.map +1 -1
- package/_esm/utils/ens/avatar/utils.js +1 -1
- package/_esm/utils/ens/avatar/utils.js.map +1 -1
- package/_esm/utils/ens/namehash.js +1 -1
- package/_esm/utils/ens/normalize.js +2 -2
- package/_esm/utils/errors/getContractError.js.map +1 -1
- package/_esm/utils/errors/getNodeError.js +11 -11
- package/_esm/utils/errors/getNodeError.js.map +1 -1
- package/_esm/utils/transaction/getTransactionType.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_types/accounts/utils/signTransaction.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +2 -2
- package/_types/actions/ens/getEnsAvatar.d.ts +2 -2
- package/_types/actions/ens/getEnsName.d.ts +2 -2
- package/_types/actions/ens/getEnsResolver.d.ts +2 -2
- package/_types/actions/ens/getEnsText.d.ts +2 -2
- package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/_types/actions/public/getBlock.d.ts +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +1 -1
- package/_types/actions/public/getLogs.d.ts +1 -1
- package/_types/actions/public/getTransaction.d.ts +1 -1
- package/_types/actions/public/getTransactionConfirmations.d.ts +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts +1 -1
- package/_types/actions/public/readContract.d.ts +1 -1
- package/_types/actions/public/simulateContract.d.ts +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts +1 -1
- package/_types/actions/public/watchBlocks.d.ts +1 -1
- package/_types/actions/wallet/deployContract.d.ts +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +1 -1
- package/_types/actions/wallet/writeContract.d.ts +1 -1
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/definitions/confluxESpace.d.ts +2 -0
- package/_types/chains/definitions/confluxESpace.d.ts.map +1 -1
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts +34 -0
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/filecoin.d.ts +6 -0
- package/_types/chains/definitions/filecoin.d.ts.map +1 -1
- package/_types/chains/definitions/pgn.d.ts +340 -0
- package/_types/chains/definitions/pgn.d.ts.map +1 -0
- package/_types/chains/definitions/pgnTestnet.d.ts +341 -0
- package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/sapphire.d.ts +33 -0
- package/_types/chains/definitions/sapphire.d.ts.map +1 -0
- package/_types/chains/definitions/sapphireTestnet.d.ts +28 -0
- package/_types/chains/definitions/sapphireTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +5 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +21 -21
- package/_types/clients/decorators/wallet.d.ts +3 -3
- package/_types/errors/version.d.ts +1 -1
- package/_types/errors/version.d.ts.map +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/filter.d.ts.map +1 -1
- package/_types/types/log.d.ts.map +1 -1
- package/_types/types/multicall.d.ts.map +1 -1
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/types/typedData.d.ts.map +1 -1
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/ccip.d.ts.map +1 -1
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
- package/_types/utils/ens/namehash.d.ts +1 -1
- package/_types/utils/ens/normalize.d.ts +2 -2
- package/_types/utils/errors/getNodeError.d.ts.map +1 -1
- package/_types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -1
- package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
- package/accounts/utils/signTransaction.ts +4 -2
- package/actions/ens/getEnsAddress.ts +3 -3
- package/actions/ens/getEnsAvatar.ts +2 -2
- package/actions/ens/getEnsName.ts +2 -2
- package/actions/ens/getEnsResolver.ts +2 -2
- package/actions/ens/getEnsText.ts +2 -2
- package/actions/public/call.ts +1 -1
- package/actions/public/createContractEventFilter.ts +11 -9
- package/actions/public/estimateMaxPriorityFeePerGas.ts +3 -1
- package/actions/public/getBlock.ts +1 -1
- package/actions/public/getBlockNumber.ts +1 -1
- package/actions/public/getLogs.ts +1 -1
- package/actions/public/getTransaction.ts +1 -1
- package/actions/public/getTransactionConfirmations.ts +1 -1
- package/actions/public/getTransactionReceipt.ts +1 -1
- package/actions/public/readContract.ts +1 -1
- package/actions/public/simulateContract.ts +1 -1
- package/actions/public/verifyHash.ts +1 -1
- package/actions/public/verifyMessage.ts +1 -1
- package/actions/public/verifyTypedData.ts +1 -1
- package/actions/public/waitForTransactionReceipt.ts +1 -1
- package/actions/public/watchBlockNumber.ts +1 -1
- package/actions/public/watchBlocks.ts +1 -1
- package/actions/wallet/deployContract.ts +1 -1
- package/actions/wallet/sendRawTransaction.ts +1 -1
- package/actions/wallet/sendTransaction.ts +1 -1
- package/actions/wallet/writeContract.ts +1 -1
- package/chains/celo/serializers.ts +3 -7
- package/chains/definitions/confluxESpace.ts +2 -0
- package/chains/definitions/confluxESpaceTestnet.ts +31 -0
- package/chains/definitions/filecoin.ts +6 -0
- package/chains/definitions/pgn.ts +38 -0
- package/chains/definitions/pgnTestnet.ts +39 -0
- package/chains/definitions/sapphire.ts +30 -0
- package/chains/definitions/sapphireTestnet.ts +25 -0
- package/chains/index.ts +5 -0
- package/clients/decorators/public.ts +21 -21
- package/clients/decorators/wallet.ts +3 -3
- package/errors/base.ts +2 -2
- package/errors/version.ts +1 -1
- package/package.json +3 -3
- package/types/contract.ts +63 -64
- package/types/filter.ts +12 -12
- package/types/log.ts +4 -4
- package/types/multicall.ts +65 -57
- package/types/transaction.ts +4 -4
- package/types/typedData.ts +12 -12
- package/types/utils.ts +6 -7
- package/utils/abi/decodeFunctionResult.ts +2 -2
- package/utils/abi/encodeErrorResult.ts +2 -2
- package/utils/abi/encodeEventTopics.ts +6 -6
- package/utils/abi/encodeFunctionData.ts +2 -2
- package/utils/abi/encodeFunctionResult.ts +5 -5
- package/utils/ccip.ts +4 -2
- package/utils/encoding/fromBytes.ts +8 -8
- package/utils/encoding/fromHex.ts +8 -8
- package/utils/encoding/toBytes.ts +2 -2
- package/utils/ens/avatar/utils.ts +3 -1
- package/utils/ens/namehash.ts +1 -1
- package/utils/ens/normalize.ts +2 -2
- package/utils/errors/getContractError.ts +2 -2
- package/utils/errors/getNodeError.ts +12 -11
- package/utils/rpc.ts +1 -1
- package/utils/transaction/getSerializedTransactionType.ts +2 -2
- package/utils/transaction/getTransactionType.ts +2 -1
- package/utils/transaction/serializeTransaction.ts +6 -3
@@ -0,0 +1,340 @@
|
|
1
|
+
export declare const pgn: import("../../types/utils.js").Assign<{
|
2
|
+
readonly id: 424;
|
3
|
+
readonly network: "pgn";
|
4
|
+
readonly name: "PGN";
|
5
|
+
readonly nativeCurrency: {
|
6
|
+
readonly name: "Ether";
|
7
|
+
readonly symbol: "ETH";
|
8
|
+
readonly decimals: 18;
|
9
|
+
};
|
10
|
+
readonly rpcUrls: {
|
11
|
+
readonly default: {
|
12
|
+
readonly http: readonly ["https://rpc.publicgoods.network"];
|
13
|
+
};
|
14
|
+
readonly public: {
|
15
|
+
readonly http: readonly ["https://rpc.publicgoods.network"];
|
16
|
+
};
|
17
|
+
};
|
18
|
+
readonly blockExplorers: {
|
19
|
+
readonly default: {
|
20
|
+
readonly name: "PGN Explorer";
|
21
|
+
readonly url: "https://explorer.publicgoods.network";
|
22
|
+
};
|
23
|
+
readonly blocksout: {
|
24
|
+
readonly name: "PGN Explorer";
|
25
|
+
readonly url: "https://explorer.publicgoods.network";
|
26
|
+
};
|
27
|
+
};
|
28
|
+
readonly contracts: {
|
29
|
+
readonly multicall3: {
|
30
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
31
|
+
readonly blockCreated: 3380209;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
}, import("../../types/chain.js").ChainConfig<{
|
35
|
+
readonly block: {
|
36
|
+
exclude: [] | undefined;
|
37
|
+
format: (args: import("../../types/utils.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
|
38
|
+
transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
|
39
|
+
}>) => {
|
40
|
+
baseFeePerGas: bigint | null;
|
41
|
+
difficulty: bigint;
|
42
|
+
extraData: `0x${string}`;
|
43
|
+
gasLimit: bigint;
|
44
|
+
gasUsed: bigint;
|
45
|
+
hash: `0x${string}` | null;
|
46
|
+
logsBloom: `0x${string}` | null;
|
47
|
+
miner: `0x${string}`;
|
48
|
+
mixHash: `0x${string}`;
|
49
|
+
nonce: `0x${string}` | null;
|
50
|
+
number: bigint | null;
|
51
|
+
parentHash: `0x${string}`;
|
52
|
+
receiptsRoot: `0x${string}`;
|
53
|
+
sealFields: `0x${string}`[];
|
54
|
+
sha3Uncles: `0x${string}`;
|
55
|
+
size: bigint;
|
56
|
+
stateRoot: `0x${string}`;
|
57
|
+
timestamp: bigint;
|
58
|
+
totalDifficulty: bigint | null;
|
59
|
+
transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
|
60
|
+
transactionsRoot: `0x${string}`;
|
61
|
+
uncles: `0x${string}`[];
|
62
|
+
withdrawals?: import("../../index.js").Withdrawal[] | undefined;
|
63
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
64
|
+
} & {};
|
65
|
+
type: "block";
|
66
|
+
};
|
67
|
+
readonly transaction: {
|
68
|
+
exclude: [] | undefined;
|
69
|
+
format: (args: (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
70
|
+
isSystemTx?: undefined;
|
71
|
+
mint?: undefined;
|
72
|
+
sourceHash?: undefined;
|
73
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
74
|
+
isSystemTx?: boolean | undefined;
|
75
|
+
mint?: `0x${string}` | undefined;
|
76
|
+
sourceHash: `0x${string}`;
|
77
|
+
type: "0x7e";
|
78
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
79
|
+
isSystemTx?: undefined;
|
80
|
+
mint?: undefined;
|
81
|
+
sourceHash?: undefined;
|
82
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
83
|
+
isSystemTx?: undefined;
|
84
|
+
mint?: undefined;
|
85
|
+
sourceHash?: undefined;
|
86
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
87
|
+
isSystemTx?: undefined;
|
88
|
+
mint?: undefined;
|
89
|
+
sourceHash?: undefined;
|
90
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
91
|
+
isSystemTx?: boolean | undefined;
|
92
|
+
mint?: `0x${string}` | undefined;
|
93
|
+
sourceHash: `0x${string}`;
|
94
|
+
type: "0x7e";
|
95
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
96
|
+
isSystemTx?: undefined;
|
97
|
+
mint?: undefined;
|
98
|
+
sourceHash?: undefined;
|
99
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
100
|
+
isSystemTx?: undefined;
|
101
|
+
mint?: undefined;
|
102
|
+
sourceHash?: undefined;
|
103
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
104
|
+
isSystemTx?: undefined;
|
105
|
+
mint?: undefined;
|
106
|
+
sourceHash?: undefined;
|
107
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
108
|
+
isSystemTx?: boolean | undefined;
|
109
|
+
mint?: `0x${string}` | undefined;
|
110
|
+
sourceHash: `0x${string}`;
|
111
|
+
type: "0x7e";
|
112
|
+
})) => ({
|
113
|
+
blockHash: `0x${string}` | null;
|
114
|
+
blockNumber: bigint | null;
|
115
|
+
from: `0x${string}`;
|
116
|
+
gas: bigint;
|
117
|
+
hash: `0x${string}`;
|
118
|
+
input: `0x${string}`;
|
119
|
+
nonce: number;
|
120
|
+
r: `0x${string}`;
|
121
|
+
s: `0x${string}`;
|
122
|
+
to: `0x${string}` | null;
|
123
|
+
transactionIndex: number | null;
|
124
|
+
typeHex: `0x${string}` | null;
|
125
|
+
v: bigint;
|
126
|
+
value: bigint;
|
127
|
+
gasPrice: bigint;
|
128
|
+
maxFeePerGas?: undefined;
|
129
|
+
maxPriorityFeePerGas?: undefined;
|
130
|
+
accessList?: undefined;
|
131
|
+
chainId?: number | undefined;
|
132
|
+
yParity?: undefined;
|
133
|
+
type: "legacy";
|
134
|
+
isSystemTx?: undefined;
|
135
|
+
mint?: undefined;
|
136
|
+
sourceHash?: undefined;
|
137
|
+
} | {
|
138
|
+
blockHash: `0x${string}` | null;
|
139
|
+
blockNumber: bigint | null;
|
140
|
+
from: `0x${string}`;
|
141
|
+
gas: bigint;
|
142
|
+
hash: `0x${string}`;
|
143
|
+
input: `0x${string}`;
|
144
|
+
nonce: number;
|
145
|
+
r: `0x${string}`;
|
146
|
+
s: `0x${string}`;
|
147
|
+
to: `0x${string}` | null;
|
148
|
+
transactionIndex: number | null;
|
149
|
+
typeHex: `0x${string}` | null;
|
150
|
+
v: bigint;
|
151
|
+
value: bigint;
|
152
|
+
gasPrice: undefined;
|
153
|
+
maxFeePerGas: bigint;
|
154
|
+
maxPriorityFeePerGas: bigint;
|
155
|
+
accessList?: undefined;
|
156
|
+
chainId?: number | undefined;
|
157
|
+
yParity: number;
|
158
|
+
type: "deposit";
|
159
|
+
isSystemTx?: boolean | undefined;
|
160
|
+
mint?: bigint | undefined;
|
161
|
+
sourceHash: `0x${string}`;
|
162
|
+
} | {
|
163
|
+
blockHash: `0x${string}` | null;
|
164
|
+
blockNumber: bigint | null;
|
165
|
+
from: `0x${string}`;
|
166
|
+
gas: bigint;
|
167
|
+
hash: `0x${string}`;
|
168
|
+
input: `0x${string}`;
|
169
|
+
nonce: number;
|
170
|
+
r: `0x${string}`;
|
171
|
+
s: `0x${string}`;
|
172
|
+
to: `0x${string}` | null;
|
173
|
+
transactionIndex: number | null;
|
174
|
+
typeHex: `0x${string}` | null;
|
175
|
+
v: bigint;
|
176
|
+
value: bigint;
|
177
|
+
yParity: number;
|
178
|
+
gasPrice: bigint;
|
179
|
+
maxFeePerGas?: undefined;
|
180
|
+
maxPriorityFeePerGas?: undefined;
|
181
|
+
accessList: import("../../index.js").AccessList;
|
182
|
+
chainId: number;
|
183
|
+
type: "eip2930";
|
184
|
+
isSystemTx?: undefined;
|
185
|
+
mint?: undefined;
|
186
|
+
sourceHash?: undefined;
|
187
|
+
} | {
|
188
|
+
blockHash: `0x${string}` | null;
|
189
|
+
blockNumber: bigint | null;
|
190
|
+
from: `0x${string}`;
|
191
|
+
gas: bigint;
|
192
|
+
hash: `0x${string}`;
|
193
|
+
input: `0x${string}`;
|
194
|
+
nonce: number;
|
195
|
+
r: `0x${string}`;
|
196
|
+
s: `0x${string}`;
|
197
|
+
to: `0x${string}` | null;
|
198
|
+
transactionIndex: number | null;
|
199
|
+
typeHex: `0x${string}` | null;
|
200
|
+
v: bigint;
|
201
|
+
value: bigint;
|
202
|
+
yParity: number;
|
203
|
+
gasPrice: undefined;
|
204
|
+
maxFeePerGas: bigint;
|
205
|
+
maxPriorityFeePerGas: bigint;
|
206
|
+
accessList: import("../../index.js").AccessList;
|
207
|
+
chainId: number;
|
208
|
+
type: "eip1559";
|
209
|
+
isSystemTx?: undefined;
|
210
|
+
mint?: undefined;
|
211
|
+
sourceHash?: undefined;
|
212
|
+
} | {
|
213
|
+
blockHash: `0x${string}` | null;
|
214
|
+
blockNumber: bigint | null;
|
215
|
+
from: `0x${string}`;
|
216
|
+
gas: bigint;
|
217
|
+
hash: `0x${string}`;
|
218
|
+
input: `0x${string}`;
|
219
|
+
nonce: number;
|
220
|
+
r: `0x${string}`;
|
221
|
+
s: `0x${string}`;
|
222
|
+
to: `0x${string}` | null;
|
223
|
+
transactionIndex: number | null;
|
224
|
+
typeHex: `0x${string}` | null;
|
225
|
+
v: bigint;
|
226
|
+
value: bigint;
|
227
|
+
yParity: number;
|
228
|
+
gasPrice: undefined;
|
229
|
+
maxFeePerGas: bigint;
|
230
|
+
maxPriorityFeePerGas: bigint;
|
231
|
+
accessList: import("../../index.js").AccessList;
|
232
|
+
chainId: number;
|
233
|
+
type: "deposit";
|
234
|
+
isSystemTx?: boolean | undefined;
|
235
|
+
mint?: bigint | undefined;
|
236
|
+
sourceHash: `0x${string}`;
|
237
|
+
} | {
|
238
|
+
blockHash: `0x${string}` | null;
|
239
|
+
blockNumber: bigint | null;
|
240
|
+
from: `0x${string}`;
|
241
|
+
gas: bigint;
|
242
|
+
hash: `0x${string}`;
|
243
|
+
input: `0x${string}`;
|
244
|
+
nonce: number;
|
245
|
+
r: `0x${string}`;
|
246
|
+
s: `0x${string}`;
|
247
|
+
to: `0x${string}` | null;
|
248
|
+
transactionIndex: number | null;
|
249
|
+
typeHex: `0x${string}` | null;
|
250
|
+
v: bigint;
|
251
|
+
value: bigint;
|
252
|
+
yParity: number;
|
253
|
+
gasPrice: bigint;
|
254
|
+
maxFeePerGas: undefined;
|
255
|
+
maxPriorityFeePerGas: undefined;
|
256
|
+
accessList: import("../../index.js").AccessList;
|
257
|
+
chainId: number;
|
258
|
+
type: "eip2930";
|
259
|
+
isSystemTx?: undefined;
|
260
|
+
mint?: undefined;
|
261
|
+
sourceHash?: undefined;
|
262
|
+
} | {
|
263
|
+
blockHash: `0x${string}` | null;
|
264
|
+
blockNumber: bigint | null;
|
265
|
+
from: `0x${string}`;
|
266
|
+
gas: bigint;
|
267
|
+
hash: `0x${string}`;
|
268
|
+
input: `0x${string}`;
|
269
|
+
nonce: number;
|
270
|
+
r: `0x${string}`;
|
271
|
+
s: `0x${string}`;
|
272
|
+
to: `0x${string}` | null;
|
273
|
+
transactionIndex: number | null;
|
274
|
+
typeHex: `0x${string}` | null;
|
275
|
+
v: bigint;
|
276
|
+
value: bigint;
|
277
|
+
yParity: number;
|
278
|
+
gasPrice?: undefined;
|
279
|
+
maxFeePerGas: bigint;
|
280
|
+
maxPriorityFeePerGas: bigint;
|
281
|
+
accessList: import("../../index.js").AccessList;
|
282
|
+
chainId: number;
|
283
|
+
type: "eip1559";
|
284
|
+
isSystemTx?: undefined;
|
285
|
+
mint?: undefined;
|
286
|
+
sourceHash?: undefined;
|
287
|
+
} | {
|
288
|
+
blockHash: `0x${string}` | null;
|
289
|
+
blockNumber: bigint | null;
|
290
|
+
from: `0x${string}`;
|
291
|
+
gas: bigint;
|
292
|
+
hash: `0x${string}`;
|
293
|
+
input: `0x${string}`;
|
294
|
+
nonce: number;
|
295
|
+
r: `0x${string}`;
|
296
|
+
s: `0x${string}`;
|
297
|
+
to: `0x${string}` | null;
|
298
|
+
transactionIndex: number | null;
|
299
|
+
typeHex: `0x${string}` | null;
|
300
|
+
v: bigint;
|
301
|
+
value: bigint;
|
302
|
+
yParity: number;
|
303
|
+
gasPrice?: undefined;
|
304
|
+
maxFeePerGas: bigint;
|
305
|
+
maxPriorityFeePerGas: bigint;
|
306
|
+
accessList: import("../../index.js").AccessList;
|
307
|
+
chainId: number;
|
308
|
+
type: "deposit";
|
309
|
+
isSystemTx?: boolean | undefined;
|
310
|
+
mint?: bigint | undefined;
|
311
|
+
sourceHash: `0x${string}`;
|
312
|
+
}) & {};
|
313
|
+
type: "transaction";
|
314
|
+
};
|
315
|
+
readonly transactionReceipt: {
|
316
|
+
exclude: [] | undefined;
|
317
|
+
format: (args: import("../../types/utils.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
|
318
|
+
blockHash: `0x${string}`;
|
319
|
+
blockNumber: bigint;
|
320
|
+
contractAddress: `0x${string}` | null;
|
321
|
+
cumulativeGasUsed: bigint;
|
322
|
+
effectiveGasPrice: bigint;
|
323
|
+
from: `0x${string}`;
|
324
|
+
gasUsed: bigint;
|
325
|
+
logs: import("../../index.js").Log<bigint, number, false>[];
|
326
|
+
logsBloom: `0x${string}`;
|
327
|
+
status: "success" | "reverted";
|
328
|
+
to: `0x${string}` | null;
|
329
|
+
transactionHash: `0x${string}`;
|
330
|
+
transactionIndex: number;
|
331
|
+
type: import("../../index.js").TransactionType;
|
332
|
+
l1GasPrice: bigint | null;
|
333
|
+
l1GasUsed: bigint | null;
|
334
|
+
l1Fee: bigint | null;
|
335
|
+
l1FeeScalar: number | null;
|
336
|
+
} & {};
|
337
|
+
type: "transactionReceipt";
|
338
|
+
};
|
339
|
+
}>>;
|
340
|
+
//# sourceMappingURL=pgn.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pgn.d.ts","sourceRoot":"","sources":["../../../chains/definitions/pgn.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCf,CAAA"}
|