mirror of https://github.com/status-im/nim-eth.git
add missing type, fix typo, meaningful deprecations (#745)
This commit is contained in:
parent
00c91a1dca
commit
bb76daa6d9
|
@ -39,7 +39,8 @@ type
|
||||||
EthHeader* = Header
|
EthHeader* = Header
|
||||||
EthTransaction* = Transaction
|
EthTransaction* = Transaction
|
||||||
EthReceipt* = Receipt
|
EthReceipt* = Receipt
|
||||||
EthWithdrawapRequest* = WithdrawalRequest
|
EthWithdrawal* = Withdrawal
|
||||||
|
EthWithdrawalRequest* = WithdrawalRequest
|
||||||
|
|
||||||
func init*(T: type BlockHashOrNumber, str: string): T {.raises: [ValueError].} =
|
func init*(T: type BlockHashOrNumber, str: string): T {.raises: [ValueError].} =
|
||||||
if str.startsWith "0x":
|
if str.startsWith "0x":
|
||||||
|
@ -67,12 +68,12 @@ export eth_hash
|
||||||
type
|
type
|
||||||
# Names that don't appear in the spec and have no particular purpose any more -
|
# Names that don't appear in the spec and have no particular purpose any more -
|
||||||
# just use the underlying type directly
|
# just use the underlying type directly
|
||||||
Blob* {.deprecated.} = seq[byte]
|
Blob* {.deprecated: "seq[byte]".} = seq[byte]
|
||||||
BlockHeader*{.deprecated: "Header".} = Header
|
BlockHeader* {.deprecated: "Header".} = Header
|
||||||
BlockNonce* {.deprecated.} = Bytes8
|
BlockNonce* {.deprecated: "Bytes8".} = Bytes8
|
||||||
BloomFilter* {.deprecated.} = Bloom
|
BloomFilter* {.deprecated: "Bloom".} = Bloom
|
||||||
StorageKey* {.deprecated.} = Bytes32
|
StorageKey* {.deprecated: "Bytes32".} = Bytes32
|
||||||
VersionedHashes* {.deprecated.} = seq[VersionedHash]
|
VersionedHashes* {.deprecated: "seq[VersionedHash]".} = seq[VersionedHash]
|
||||||
|
|
||||||
func toBlockNonce*(n: uint64): BlockNonce {.deprecated.} =
|
func toBlockNonce*(n: uint64): BlockNonce {.deprecated.} =
|
||||||
n.to(BlockNonce)
|
n.to(BlockNonce)
|
||||||
|
|
Loading…
Reference in New Issue