-
Notifications
You must be signed in to change notification settings - Fork 199
/
blockArgs.go
34 lines (32 loc) · 1.54 KB
/
blockArgs.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
package blockAPI
import (
"github.com/multiversx/mx-chain-core-go/core"
"github.com/multiversx/mx-chain-core-go/data/transaction"
"github.com/multiversx/mx-chain-core-go/data/typeConverters"
"github.com/multiversx/mx-chain-core-go/hashing"
"github.com/multiversx/mx-chain-core-go/marshal"
"github.com/multiversx/mx-chain-go/common"
"github.com/multiversx/mx-chain-go/dataRetriever"
"github.com/multiversx/mx-chain-go/dblookupext"
outportProcess "github.com/multiversx/mx-chain-go/outport/process"
"github.com/multiversx/mx-chain-go/process"
"github.com/multiversx/mx-chain-go/state"
)
// ArgAPIBlockProcessor is structure that store components that are needed to create an api block processor
type ArgAPIBlockProcessor struct {
SelfShardID uint32
Store dataRetriever.StorageService
Marshalizer marshal.Marshalizer
Uint64ByteSliceConverter typeConverters.Uint64ByteSliceConverter
HistoryRepo dblookupext.HistoryRepository
APITransactionHandler APITransactionHandler
StatusComputer transaction.StatusComputerHandler
Hasher hashing.Hasher
AddressPubkeyConverter core.PubkeyConverter
LogsFacade logsFacade
ReceiptsRepository receiptsRepository
AlteredAccountsProvider outportProcess.AlteredAccountsProviderHandler
AccountsRepository state.AccountsRepository
ScheduledTxsExecutionHandler process.ScheduledTxsExecutionHandler
EnableEpochsHandler common.EnableEpochsHandler
}