mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-05 07:03:11 +00:00
fix stylecheck for UInt256 (#226)
This commit is contained in:
parent
be16a6528a
commit
a222f44635
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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 (?).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user