forked from BuxOrg/bux-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
destination.go
32 lines (28 loc) · 1005 Bytes
/
destination.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
32
package buxmodels
import (
"time"
"github.com/BuxOrg/bux-models/common"
)
// Destination is a model that represents a destination - registered in a bux-server with xpub.
type Destination struct {
// Model is a common model that contains common fields for all models.
Model common.Model
// ID is a destination id.
ID string `json:"id"`
// XpubID is a destination's xpub related id used to register destination.
XpubID string `json:"xpub_id"`
// LockingScript is a destination's locking script.
LockingScript string `json:"locking_script"`
// Type is a destination's type.
Type string `json:"type"`
// Chain is a destination's chain representation.
Chain uint32 `json:"chain"`
// Num is a destination's num representation.
Num uint32 `json:"num"`
// Address is a destination's address.
Address string `json:"address"`
// DraftID is a destination's draft id.
DraftID string `json:"draft_id"`
// Monitor is a time when destination was monitored.
Monitor time.Time `json:"monitor"`
}