mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-09 00:53:12 +00:00
* Add EIP-1559 implementation for gas price * Improve logs * Improve comment * Rename maxFee and maxPriorityFee to use official EIP-1559 names * Delete gas price when using EIP-1559 * Allow override maxFeePerGas * Code style * Remove useless specific EIP1559 test because Hardhart support it so all transactions are using EIP1559 by default * Restore test to check legacy transaction * Update after rebase * Call eth_maxPriorityFeePerGas and returns a manual defined maxPriorityFeePerGas as a fallback * Catch JsonRpcProviderError instead of ProviderError * Improve readability * Set none value for maxFeePerGas in case of non EIP-1559 transaction * Assign none to maxPriorityFeePerGas for non EIP-1559 transaction to avoid potential side effect in wallet signing * Remove upper bound version for stew and update contractabi
25 lines
1.3 KiB
Nim
25 lines
1.3 KiB
Nim
proc net_version(): string
|
|
proc personal_sign(message: seq[byte], account: Address): seq[byte]
|
|
proc eth_accounts: seq[Address]
|
|
proc eth_blockNumber: UInt256
|
|
proc eth_call(transaction: Transaction, blockTag: BlockTag): seq[byte]
|
|
proc eth_gasPrice(): UInt256
|
|
proc eth_getBlockByNumber(blockTag: BlockTag, includeTransactions: bool): ?Block
|
|
proc eth_getLogs(filter: EventFilter | Filter | FilterByBlockHash): JsonNode
|
|
proc eth_getTransactionByHash(hash: TransactionHash): ?PastTransaction
|
|
proc eth_getBlockByHash(hash: BlockHash, includeTransactions: bool): ?Block
|
|
proc eth_getTransactionCount(address: Address, blockTag: BlockTag): UInt256
|
|
proc eth_estimateGas(transaction: Transaction, blockTag: BlockTag): UInt256
|
|
proc eth_chainId(): UInt256
|
|
proc eth_sendTransaction(transaction: Transaction): TransactionHash
|
|
proc eth_sendRawTransaction(data: seq[byte]): TransactionHash
|
|
proc eth_getTransactionReceipt(hash: TransactionHash): ?TransactionReceipt
|
|
proc eth_subscribe(name: string, filter: EventFilter): JsonNode
|
|
proc eth_subscribe(name: string): JsonNode
|
|
proc eth_unsubscribe(id: JsonNode): bool
|
|
proc eth_newBlockFilter(): JsonNode
|
|
proc eth_newFilter(filter: EventFilter): JsonNode
|
|
proc eth_getFilterChanges(id: JsonNode): JsonNode
|
|
proc eth_uninstallFilter(id: JsonNode): bool
|
|
proc eth_maxPriorityFeePerGas(): UInt256
|