fix stylecheck for UInt256 (#226)

This commit is contained in:
metagn 2024-10-10 14:57:04 +03:00 committed by GitHub
parent be16a6528a
commit a222f44635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ proc eth_call(call: EthCall, quantityTag: string): UInt256
proc eth_estimateGas(call: EthCall, quantityTag: string): UInt256
proc eth_getBlockByHash(data: array[32, byte], fullTransactions: bool): BlockObject
proc eth_getBlockByNumber(quantityTag: string, fullTransactions: bool): BlockObject
proc eth_getTransactionByHash(data: Uint256): TransactionObject
proc eth_getTransactionByHash(data: UInt256): TransactionObject
proc eth_getTransactionByBlockHashAndIndex(data: UInt256, quantity: int): TransactionObject
proc eth_getTransactionByBlockNumberAndIndex(quantityTag: string, quantity: int): TransactionObject
proc eth_getTransactionReceipt(data: UInt256): ReceiptObject
@ -45,8 +45,8 @@ proc eth_newBlockFilter(): int
proc eth_newPendingTransactionFilter(): int
proc eth_uninstallFilter(filterId: int): bool
proc eth_getWork(): seq[UInt256]
proc eth_submitWork(nonce: int64, powHash: Uint256, mixDigest: Uint256): bool
proc eth_submitHashrate(hashRate: UInt256, id: Uint256): bool
proc eth_submitWork(nonce: int64, powHash: UInt256, mixDigest: UInt256): bool
proc eth_submitHashrate(hashRate: UInt256, id: UInt256): bool
proc shh_post(): string
proc shh_newIdentity(): array[60, byte]
proc shh_hasIdentity(identity: array[60, byte]): bool

View File

@ -248,7 +248,7 @@ proc addEthRpcs*(server: RpcServer) =
## Returns BlockObject or nil when no block was found.
discard
server.rpc("eth_getTransactionByHash") do(data: Uint256) -> TransactionObject:
server.rpc("eth_getTransactionByHash") do(data: UInt256) -> TransactionObject:
## Returns the information about a transaction requested by transaction hash.
##
## data: hash of a transaction.
@ -380,7 +380,7 @@ proc addEthRpcs*(server: RpcServer) =
## DATA, 32 Bytes - the boundary condition ("target"), 2^256 / difficulty.
result = @[]
server.rpc("eth_submitWork") do(nonce: int64, powHash: Uint256, mixDigest: Uint256) -> bool:
server.rpc("eth_submitWork") do(nonce: int64, powHash: UInt256, mixDigest: UInt256) -> bool:
## Used for submitting a proof-of-work solution.
##
## nonce: the nonce found.
@ -389,7 +389,7 @@ proc addEthRpcs*(server: RpcServer) =
## Returns true if the provided solution is valid, otherwise false.
discard
server.rpc("eth_submitHashrate") do(hashRate: UInt256, id: Uint256) -> bool:
server.rpc("eth_submitHashrate") do(hashRate: UInt256, id: UInt256) -> bool:
## Used for submitting mining hashrate.
##
## hashRate: a hexadecimal string representation (32 bytes) of the hash rate.

View File

@ -122,4 +122,4 @@ type
sent*: int # integer of the unix timestamp when the message was sent.
topics*: seq[UInt256] # list of DATA topics the message contained.
payload*: string # TODO: Correct type? the payload of the message.
workProved*: int # integer of the work this message required before it was send (?).
workProved*: int # integer of the work this message required before it was send (?).