-
Notifications
You must be signed in to change notification settings - Fork 199
/
factory.go
38 lines (31 loc) · 1.79 KB
/
factory.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package factory
const (
// TransactionTopic is the topic used for sharing transactions
TransactionTopic = "transactions"
// UnsignedTransactionTopic is the topic used for sharing unsigned transactions
UnsignedTransactionTopic = "unsignedTransactions"
// RewardsTransactionTopic is the topic used for sharing fee transactions
RewardsTransactionTopic = "rewardsTransactions"
// HeadersTopic is the topic used for sharing block headers
HeadersTopic = "headers"
// MiniBlocksTopic is the topic used for sharing mini blocks
MiniBlocksTopic = "txBlockBodies"
// PeerChBodyTopic is used for sharing peer change block bodies
PeerChBodyTopic = "peerChangeBlockBodies"
// MetachainBlocksTopic is used for sharing metachain block headers between shards
MetachainBlocksTopic = "metachainBlocks"
// ShardHeadersForMetachainTopic is used for sharing shards block headers to the metachain nodes
ShardHeadersForMetachainTopic = "shardHeadersForMetachain"
)
// SystemVirtualMachine is a byte array identifier for the smart contract address created for system VM
var SystemVirtualMachine = []byte{0, 1}
// IELEVirtualMachine is a byte array identifier for the smart contract address created for IELE VM
var IELEVirtualMachine = []byte{1, 0}
// HeraWABTVirtualMachine is a byte array identifier for the smart contract address created for Hera WABT VM
var HeraWABTVirtualMachine = []byte{2, 0}
// HeraWAVMVirtualMachine is a byte array identifier for the smart contract address created for Hera WAVM VM
var HeraWAVMVirtualMachine = []byte{3, 0}
// ArwenVirtualMachine is a byte array identifier for the smart contract address created for Arwen VM
var ArwenVirtualMachine = []byte{5, 0}
// InternalTestingVM is a byte array identified for the smart contract address created for the testing VM
var InternalTestingVM = []byte{255, 255}