-
Notifications
You must be signed in to change notification settings - Fork 198
/
args.go
69 lines (66 loc) · 2.89 KB
/
args.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package interceptorscontainer
import (
"github.com/ElrondNetwork/elrond-go/crypto"
"github.com/ElrondNetwork/elrond-go/data/state"
"github.com/ElrondNetwork/elrond-go/dataRetriever"
"github.com/ElrondNetwork/elrond-go/hashing"
"github.com/ElrondNetwork/elrond-go/marshal"
"github.com/ElrondNetwork/elrond-go/process"
"github.com/ElrondNetwork/elrond-go/sharding"
)
// ShardInterceptorsContainerFactoryArgs holds the arguments needed for ShardInterceptorsContainerFactory
type ShardInterceptorsContainerFactoryArgs struct {
Accounts state.AccountsAdapter
ShardCoordinator sharding.Coordinator
NodesCoordinator sharding.NodesCoordinator
Messenger process.TopicHandler
Store dataRetriever.StorageService
ProtoMarshalizer marshal.Marshalizer
TxSignMarshalizer marshal.Marshalizer
Hasher hashing.Hasher
KeyGen crypto.KeyGenerator
BlockSignKeyGen crypto.KeyGenerator
SingleSigner crypto.SingleSigner
BlockSingleSigner crypto.SingleSigner
MultiSigner crypto.MultiSigner
DataPool dataRetriever.PoolsHolder
AddrConverter state.AddressConverter
MaxTxNonceDeltaAllowed int
TxFeeHandler process.FeeHandler
BlackList process.BlackListHandler
HeaderSigVerifier process.InterceptedHeaderSigVerifier
ChainID []byte
SizeCheckDelta uint32
ValidityAttester process.ValidityAttester
EpochStartTrigger process.EpochStartTriggerHandler
WhiteListHandler process.WhiteListHandler
AntifloodHandler process.P2PAntifloodHandler
}
// MetaInterceptorsContainerFactoryArgs holds the arguments needed for MetaInterceptorsContainerFactory
type MetaInterceptorsContainerFactoryArgs struct {
ShardCoordinator sharding.Coordinator
NodesCoordinator sharding.NodesCoordinator
Messenger process.TopicHandler
Store dataRetriever.StorageService
ProtoMarshalizer marshal.Marshalizer
TxSignMarshalizer marshal.Marshalizer
Hasher hashing.Hasher
MultiSigner crypto.MultiSigner
DataPool dataRetriever.PoolsHolder
Accounts state.AccountsAdapter
AddrConverter state.AddressConverter
SingleSigner crypto.SingleSigner
BlockSingleSigner crypto.SingleSigner
KeyGen crypto.KeyGenerator
BlockKeyGen crypto.KeyGenerator
MaxTxNonceDeltaAllowed int
TxFeeHandler process.FeeHandler
BlackList process.BlackListHandler
HeaderSigVerifier process.InterceptedHeaderSigVerifier
ChainID []byte
SizeCheckDelta uint32
ValidityAttester process.ValidityAttester
EpochStartTrigger process.EpochStartTriggerHandler
WhiteListHandler process.WhiteListHandler
AntifloodHandler process.P2PAntifloodHandler
}