TRON -> TRON_MAINNET
This commit is contained in:
@@ -46,8 +46,6 @@ type ActSnapshot struct {
|
||||
ExecutorFullName string `bson:"executorFullName" json:"executorFullName"`
|
||||
Amount decimal.Decimal `bson:"amount" json:"amount"`
|
||||
Currency string `bson:"currency" json:"currency"`
|
||||
OrgLegalName string `bson:"orgLegalName" json:"orgLegalName"`
|
||||
OrgAddress string `bson:"orgAddress" json:"orgAddress"`
|
||||
}
|
||||
|
||||
func (s *ActSnapshot) Normalize() {
|
||||
@@ -57,8 +55,6 @@ func (s *ActSnapshot) Normalize() {
|
||||
s.PaymentID = strings.TrimSpace(s.PaymentID)
|
||||
s.ExecutorFullName = strings.TrimSpace(s.ExecutorFullName)
|
||||
s.Currency = strings.TrimSpace(s.Currency)
|
||||
s.OrgLegalName = strings.TrimSpace(s.OrgLegalName)
|
||||
s.OrgAddress = strings.TrimSpace(s.OrgAddress)
|
||||
}
|
||||
|
||||
// DocumentRecord stores document metadata and cached artefacts for a payment.
|
||||
@@ -66,8 +62,6 @@ type DocumentRecord struct {
|
||||
storable.Base `bson:",inline" json:",inline"`
|
||||
PaymentRef string `bson:"paymentRef" json:"paymentRef"`
|
||||
Snapshot ActSnapshot `bson:"snapshot" json:"snapshot"`
|
||||
Available []DocumentType `bson:"availableTypes,omitempty" json:"availableTypes,omitempty"`
|
||||
Ready []DocumentType `bson:"readyTypes,omitempty" json:"readyTypes,omitempty"`
|
||||
StoragePaths map[DocumentType]string `bson:"storagePaths,omitempty" json:"storagePaths,omitempty"`
|
||||
Hashes map[DocumentType]string `bson:"hashes,omitempty" json:"hashes,omitempty"`
|
||||
}
|
||||
|
||||
@@ -34,12 +34,6 @@ func NewDocuments(logger mlogger.Logger, db *mongo.Database) (*Documents, error)
|
||||
Keys: []ri.Key{{Field: "paymentRef", Sort: ri.Asc}},
|
||||
Unique: true,
|
||||
},
|
||||
{
|
||||
Keys: []ri.Key{{Field: "availableTypes", Sort: ri.Asc}},
|
||||
},
|
||||
{
|
||||
Keys: []ri.Key{{Field: "readyTypes", Sort: ri.Asc}},
|
||||
},
|
||||
}
|
||||
|
||||
for _, def := range indexes {
|
||||
|
||||
Reference in New Issue
Block a user