2022-03-21 17:12:07 +00:00
|
|
|
# Nimbus
|
2024-04-12 11:21:17 +00:00
|
|
|
# Copyright (c) 2021-2024 Status Research & Development GmbH
|
2022-03-21 17:12:07 +00:00
|
|
|
# Licensed and distributed under either of
|
|
|
|
# * MIT license (license terms in the root directory or at
|
|
|
|
# https://opensource.org/licenses/MIT).
|
|
|
|
# * Apache v2 license (license terms in the root directory or at
|
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
# at your option. This file may not be copied, modified, or distributed
|
|
|
|
# except according to those terms.
|
|
|
|
|
2024-04-12 11:21:17 +00:00
|
|
|
## Provision of `eth` and `snap` protocol version parameters
|
|
|
|
##
|
|
|
|
## `Eth` related parameters:
|
|
|
|
## `ethVersions`: seq[int] -- constant list of all available versions
|
|
|
|
## `eth` -- type symbol of default version
|
|
|
|
## `proto_eth` -- export of default version directives
|
|
|
|
##
|
|
|
|
## `Snap` related parameters:
|
|
|
|
## `snap` -- type symbol of default version
|
|
|
|
## `proto_snap` -- export of default version directives
|
|
|
|
## ..aliases.. -- type names, syntactic sugar (see below)
|
|
|
|
##
|
|
|
|
|
2024-05-29 07:20:25 +00:00
|
|
|
import
|
|
|
|
./protocol/eth68 as proto_eth
|
2022-06-16 08:58:50 +00:00
|
|
|
|
2024-05-29 07:20:25 +00:00
|
|
|
type eth* = eth68
|
2024-04-12 11:21:17 +00:00
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
2022-05-13 16:30:10 +00:00
|
|
|
import
|
|
|
|
./protocol/snap1 as proto_snap
|
|
|
|
|
|
|
|
export
|
|
|
|
proto_eth,
|
|
|
|
proto_snap
|
|
|
|
|
|
|
|
type
|
|
|
|
snap* = snap1
|
|
|
|
|
2022-08-04 08:04:30 +00:00
|
|
|
SnapAccountRange* = accountRangeObj
|
|
|
|
## Syntactic sugar, type defined in `snap1`
|
|
|
|
|
2022-09-02 18:16:09 +00:00
|
|
|
SnapStorageRanges* = storageRangesObj
|
|
|
|
## Ditto
|
|
|
|
|
2022-09-16 07:24:12 +00:00
|
|
|
SnapByteCodes* = byteCodesObj
|
|
|
|
## Ditto
|
|
|
|
|
2022-08-04 08:04:30 +00:00
|
|
|
SnapTrieNodes* = trieNodesObj
|
|
|
|
## Ditto
|
|
|
|
|
2022-05-13 16:30:10 +00:00
|
|
|
# End
|