buildcore-io / core

Your web3 plug & play platform
https://www.buildcore.io
Apache License 2.0
4 stars 0 forks source link

create inx-tanglelistener #1054

Closed centercirclesolutions closed 2 years ago

centercirclesolutions commented 2 years ago

TangleListener updates for Stardust

TangleListener Repo's

INX TangleListener Mainnet TangleListener

Items for future work

centercirclesolutions commented 2 years ago

Current structure for exporting to firestore

type MS struct {
    MilestoneIndex   uint32    `firestore:"milestone"`
    Complete         bool      `firestore:"completed"`
    Completed        time.Time `firestore:"completedOn,serverTimestamp"`
    Created          time.Time `firestore:"createdOn,serverTimestamp"`
    NodeId           string    `firestore:"listenerNodeId"`
    TrxValidCount    int       `firestore:"trxValidCount"`
    TrxConflictCount int       `firestore:"trxConflictCount"`
    TrxFailedCount   int       `firestore:"trxFailedCount"`
}

type FSTX struct {
    Created        time.Time              `firestore:"createdOn,serverTimestamp"`
    BlockId        string                 `firestore:"blockId"`
    Milestone      uint32                 `firestore:"milestone"`
    Processed      bool                   `firestore:"processed"`
    Payload        map[string]interface{} `firestore:"payload"`
    InclusionState int32                  `firestore:"inclusionState,omitempty"`
    ConflictReason int32                  `firestore:"conflictReason,omitempty"`
}