forked from omnilaboratory/obd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lightclient_messages.go
40 lines (34 loc) · 1001 Bytes
/
lightclient_messages.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
33
34
35
36
37
38
39
40
package bean
// for lightclient to obd
type FundingBtc struct {
FromAddress string `json:"from_address"`
ToAddress string `json:"to_address"`
Amount float64 `json:"amount"`
MinerFee float64 `json:"miner_fee"`
}
type FundingAsset struct {
FundingBtc
PropertyId int64 `json:"property_id"`
}
type CreateMultiSigRequest struct {
MiniSignCount int `json:"mini_sign_count"`
PubKeys []string `json:"pub_keys"`
}
type OmniSendIssuanceManaged struct {
FromAddress string `json:"from_address"`
Name string `json:"name"`
Ecosystem int `json:"ecosystem"`
DivisibleType int `json:"divisible_type"`
Data string `json:"data"`
}
type OmniSendIssuanceFixed struct {
OmniSendIssuanceManaged
Amount float64 `json:"amount"`
}
type OmniSendGrant struct {
FromAddress string `json:"from_address"`
PropertyId int64 `json:"property_id"`
Amount float64 `json:"amount"`
Memo string `json:"memo"`
}
type OmniSendRevoke OmniSendGrant