/
dtos.go
31 lines (27 loc) · 999 Bytes
/
dtos.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
package genesis
import (
"math/big"
"github.com/ElrondNetwork/elrond-go-core/core"
"github.com/ElrondNetwork/elrond-go-core/data"
"github.com/ElrondNetwork/elrond-go-core/hashing"
"github.com/ElrondNetwork/elrond-go-core/marshal"
crypto "github.com/ElrondNetwork/elrond-go-crypto"
)
// IndexingData specifies transactions sets that will be used for indexing
type IndexingData struct {
DelegationTxs []data.TransactionHandler
ScrsTxs map[string]data.TransactionHandler
StakingTxs []data.TransactionHandler
DeploySystemScTxs []data.TransactionHandler
DeployInitialScTxs []data.TransactionHandler
}
// AccountsParserArgs holds all dependencies required by the accounts parser in order to create new instances
type AccountsParserArgs struct {
GenesisFilePath string
EntireSupply *big.Int
MinterAddress string
PubkeyConverter core.PubkeyConverter
KeyGenerator crypto.KeyGenerator
Hasher hashing.Hasher
Marshalizer marshal.Marshalizer
}