UNPKG

opstack-kit-chains

Version:
730 lines 30.2 kB
export declare const celo: { blockExplorers: { readonly default: { readonly name: "Celo Explorer"; readonly url: "https://celoscan.io"; readonly apiUrl: "https://api.celoscan.io/api"; }; }; contracts: { readonly multicall3: { readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11"; readonly blockCreated: 13112599; }; }; id: 42220; name: "Celo"; nativeCurrency: { readonly decimals: 18; readonly name: "CELO"; readonly symbol: "CELO"; }; rpcUrls: { readonly default: { readonly http: readonly ["https://forno.celo.org"]; }; }; sourceId?: number | undefined; testnet: false; custom?: Record<string, unknown> | undefined; fees: import("../../index.js").ChainFees<{ readonly block: { exclude: [] | undefined; format: (args: import("../index.js").CeloRpcBlock) => { baseFeePerGas: bigint | null; blobGasUsed: bigint; difficulty: bigint | undefined; excessBlobGas: bigint; extraData: `0x${string}`; gasLimit: bigint | undefined; gasUsed: bigint; hash: `0x${string}` | null; logsBloom: `0x${string}` | null; miner: `0x${string}`; nonce: bigint | null | undefined; number: bigint | null; parentHash: `0x${string}`; receiptsRoot: `0x${string}`; sealFields: `0x${string}`[]; sha3Uncles: `0x${string}`; size: bigint; stateRoot: `0x${string}`; timestamp: bigint; totalDifficulty: bigint | null; transactions: `0x${string}`[] | import("../index.js").CeloTransaction<boolean>[]; transactionsRoot: `0x${string}`; withdrawals?: import("../../index.js").Withdrawal[] | undefined; withdrawalsRoot?: `0x${string}` | undefined; mixHash?: undefined; randomness?: { committed: `0x${string}`; revealed: `0x${string}`; } | undefined; uncles?: undefined; } & {}; type: "block"; }; readonly transaction: { exclude: [] | undefined; format: (args: import("../index.js").CeloRpcTransaction) => ({ r: `0x${string}`; s: `0x${string}`; v: bigint; to: `0x${string}` | null; from: `0x${string}`; gas: bigint; nonce: number; value: bigint; blockHash: `0x${string}` | null; blockNumber: bigint | null; hash: `0x${string}`; input: `0x${string}`; transactionIndex: number | null; typeHex: `0x${string}` | null; accessList?: undefined; blobVersionedHashes?: undefined; chainId?: number | undefined; yParity?: undefined; type: "legacy"; gasPrice: bigint; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; accessList: import("../../index.js").AccessList; blobVersionedHashes?: undefined; chainId: number; type: "eip2930"; gasPrice: bigint; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; accessList: import("../../index.js").AccessList; blobVersionedHashes?: undefined; chainId: number; type: "eip1559"; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; accessList: import("../../index.js").AccessList; blobVersionedHashes: readonly `0x${string}`[]; chainId: number; type: "eip4844"; gasPrice?: undefined; maxFeePerBlobGas: bigint; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; accessList: import("../../index.js").AccessList; chainId: number; feeCurrency: `0x${string}` | null; gatewayFee: bigint | null; gatewayFeeRecipient: `0x${string}` | null; type: "cip42"; blobVersionedHashes?: undefined; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; accessList: import("../../index.js").AccessList; chainId: number; feeCurrency: `0x${string}` | null; type: "cip64"; blobVersionedHashes?: undefined; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; isSystemTx?: boolean; mint?: bigint | undefined; sourceHash: `0x${string}`; type: "deposit"; accessList?: undefined; blobVersionedHashes?: undefined; chainId?: undefined; feeCurrency?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; }) & {}; type: "transaction"; }; readonly transactionRequest: { exclude: [] | undefined; format: (args: import("../index.js").CeloTransactionRequest) => ({ data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; accessList?: undefined; blobs?: undefined; type?: "0x0" | undefined; gasPrice?: `0x${string}` | undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; accessList?: import("../../index.js").AccessList | undefined; blobs?: undefined; type?: "0x1" | undefined; gasPrice?: `0x${string}` | undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: `0x${string}` | undefined; maxPriorityFeePerGas?: `0x${string}` | undefined; accessList?: import("../../index.js").AccessList | undefined; blobs?: undefined; type?: "0x2" | undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; value?: `0x${string}` | undefined; to: `0x${string}` | null; accessList?: import("../../index.js").AccessList | undefined; blobs: readonly `0x${string}`[] | readonly Uint8Array[]; blobVersionedHashes?: readonly `0x${string}`[] | undefined; kzg?: import("../../index.js").Kzg | undefined; sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined; type?: "0x3" | undefined; gasPrice?: undefined; maxFeePerGas?: `0x${string}` | undefined; maxPriorityFeePerGas?: `0x${string}` | undefined; maxFeePerBlobGas: `0x${string}`; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; accessList?: import("../../index.js").AccessList | undefined; feeCurrency?: `0x${string}` | undefined; type?: "0x7b" | undefined; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: `0x${string}` | undefined; maxPriorityFeePerGas?: `0x${string}` | undefined; blobs?: undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; }) & {}; type: "transactionRequest"; }; }>; formatters: { readonly block: { exclude: [] | undefined; format: (args: import("../index.js").CeloRpcBlock) => { baseFeePerGas: bigint | null; blobGasUsed: bigint; difficulty: bigint | undefined; excessBlobGas: bigint; extraData: `0x${string}`; gasLimit: bigint | undefined; gasUsed: bigint; hash: `0x${string}` | null; logsBloom: `0x${string}` | null; miner: `0x${string}`; nonce: bigint | null | undefined; number: bigint | null; parentHash: `0x${string}`; receiptsRoot: `0x${string}`; sealFields: `0x${string}`[]; sha3Uncles: `0x${string}`; size: bigint; stateRoot: `0x${string}`; timestamp: bigint; totalDifficulty: bigint | null; transactions: `0x${string}`[] | import("../index.js").CeloTransaction<boolean>[]; transactionsRoot: `0x${string}`; withdrawals?: import("../../index.js").Withdrawal[] | undefined; withdrawalsRoot?: `0x${string}` | undefined; mixHash?: undefined; randomness?: { committed: `0x${string}`; revealed: `0x${string}`; } | undefined; uncles?: undefined; } & {}; type: "block"; }; readonly transaction: { exclude: [] | undefined; format: (args: import("../index.js").CeloRpcTransaction) => ({ r: `0x${string}`; s: `0x${string}`; v: bigint; to: `0x${string}` | null; from: `0x${string}`; gas: bigint; nonce: number; value: bigint; blockHash: `0x${string}` | null; blockNumber: bigint | null; hash: `0x${string}`; input: `0x${string}`; transactionIndex: number | null; typeHex: `0x${string}` | null; accessList?: undefined; blobVersionedHashes?: undefined; chainId?: number | undefined; yParity?: undefined; type: "legacy"; gasPrice: bigint; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; accessList: import("../../index.js").AccessList; blobVersionedHashes?: undefined; chainId: number; type: "eip2930"; gasPrice: bigint; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; accessList: import("../../index.js").AccessList; blobVersionedHashes?: undefined; chainId: number; type: "eip1559"; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; accessList: import("../../index.js").AccessList; blobVersionedHashes: readonly `0x${string}`[]; chainId: number; type: "eip4844"; gasPrice?: undefined; maxFeePerBlobGas: bigint; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; feeCurrency: `0x${string}` | null; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; accessList: import("../../index.js").AccessList; chainId: number; feeCurrency: `0x${string}` | null; gatewayFee: bigint | null; gatewayFeeRecipient: `0x${string}` | null; type: "cip42"; blobVersionedHashes?: undefined; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; accessList: import("../../index.js").AccessList; chainId: number; feeCurrency: `0x${string}` | null; type: "cip64"; blobVersionedHashes?: undefined; mint?: undefined; isSystemTx?: undefined; sourceHash?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; } | { blockHash: `0x${string}` | null; blockNumber: bigint | null; from: `0x${string}`; gas: bigint; hash: `0x${string}`; input: `0x${string}`; nonce: number; r: `0x${string}`; s: `0x${string}`; to: `0x${string}` | null; transactionIndex: number | null; typeHex: `0x${string}` | null; v: bigint; value: bigint; yParity: number; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; isSystemTx?: boolean; mint?: bigint | undefined; sourceHash: `0x${string}`; type: "deposit"; accessList?: undefined; blobVersionedHashes?: undefined; chainId?: undefined; feeCurrency?: undefined; gatewayFee?: undefined; gatewayFeeRecipient?: undefined; }) & {}; type: "transaction"; }; readonly transactionRequest: { exclude: [] | undefined; format: (args: import("../index.js").CeloTransactionRequest) => ({ data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; accessList?: undefined; blobs?: undefined; type?: "0x0" | undefined; gasPrice?: `0x${string}` | undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; accessList?: import("../../index.js").AccessList | undefined; blobs?: undefined; type?: "0x1" | undefined; gasPrice?: `0x${string}` | undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: undefined; maxPriorityFeePerGas?: undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: `0x${string}` | undefined; maxPriorityFeePerGas?: `0x${string}` | undefined; accessList?: import("../../index.js").AccessList | undefined; blobs?: undefined; type?: "0x2" | undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; value?: `0x${string}` | undefined; to: `0x${string}` | null; accessList?: import("../../index.js").AccessList | undefined; blobs: readonly `0x${string}`[] | readonly Uint8Array[]; blobVersionedHashes?: readonly `0x${string}`[] | undefined; kzg?: import("../../index.js").Kzg | undefined; sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined; type?: "0x3" | undefined; gasPrice?: undefined; maxFeePerGas?: `0x${string}` | undefined; maxPriorityFeePerGas?: `0x${string}` | undefined; maxFeePerBlobGas: `0x${string}`; feeCurrency?: `0x${string}` | undefined; } | { data?: `0x${string}` | undefined; from: `0x${string}`; gas?: `0x${string}` | undefined; nonce?: `0x${string}` | undefined; to?: `0x${string}` | null | undefined; value?: `0x${string}` | undefined; accessList?: import("../../index.js").AccessList | undefined; feeCurrency?: `0x${string}` | undefined; type?: "0x7b" | undefined; gasPrice?: undefined; maxFeePerBlobGas?: undefined; maxFeePerGas?: `0x${string}` | undefined; maxPriorityFeePerGas?: `0x${string}` | undefined; blobs?: undefined; blobVersionedHashes?: undefined; kzg?: undefined; sidecars?: undefined; }) & {}; type: "transactionRequest"; }; }; serializers: { readonly transaction: typeof import("../index.js").serializeTransactionCelo; }; }; //# sourceMappingURL=celo.d.ts.map