package common

type Db struct {
Addr     string
DbName   string
ID       string
Password string
}

type BlockConfig struct {
	Enalbe bool				`json:"enabled"`
	Db                 Db         `json:"db"`
	MainNet				bool	`json:"mainNet"`
	CollectionAmount 	int64
	DebugStartNo	 	int64
	DebugEndNo       	int64
	ImmatureDepth		int64
	NodeUrl				string
	Interval       		string  `json:"interval"`
	LatestInterval 		string  `json:"latestinterval"`
	TxInternalRange		uint64
	GenesisAlloc 		string
}

type XrpConfig struct {
	Enalbe bool				`json:"enabled"`
	Db struct {
		Addr     string
		DbName   string
		ID       string
		Password string
	}
}

type Config struct {
	SyncBlock BlockConfig `json:"snycBlock"`
	XrpUpdate XrpConfig `json:"xrpUpdate"`
}

type ConfigRipple struct {
	Db struct {
		Addr     string
		DbName   string
		ID       string
		Password string
	}
}