Add XRPScan subtype with all fields implemented
@@ -143,20 +143,17 @@ type XRPScanAccount struct {
Inception time.Time `json:"inception"`
LedgerIndex int `json:"ledger_index"`
TxHash string `json:"tx_hash"`
- AccountName struct {
- Name string `json:"name"`
- Account string `json:"account"`
- Domain string `json:"domain"`
- Twitter string `json:"twitter"`
- Verified bool `json:"verified"`
- } `json:"accountName"`
- ParentName struct {
+ AccountName AccountInfo `json:"accountName"`
+ ParentName AccountInfo `json:"parentName"`
+ Advisory interface{} `json:"advisory"`
+}
+
+// AccountInfo is a XRPScan subtype for account associations
+type AccountInfo struct {
Name string `json:"name"`
- Desc string `json:"desc"`
+ Description string `json:"desc"`
Account string `json:"account"`
Domain string `json:"domain"`
Twitter string `json:"twitter"`
Verified bool `json:"verified"`
- } `json:"parentName"`
- Advisory interface{} `json:"advisory"`
}
