forked from filecoin-project/go-fil-markets
-
Notifications
You must be signed in to change notification settings - Fork 2
/
maptypes.go
55 lines (49 loc) · 1.6 KB
/
maptypes.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package maptypes
import (
"github.com/ipfs/go-cid"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/filecoin-project/go-address"
datatransfer "github.com/filecoin-project/go-data-transfer"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/boost-gfm/piecestore"
"github.com/filecoin-project/boost-gfm/retrievalmarket"
)
//go:generate cbor-gen-for --map-encoding ClientDealState1 ProviderDealState1
// Version 1 of the ClientDealState
type ClientDealState1 struct {
retrievalmarket.DealProposal
StoreID *uint64
ChannelID datatransfer.ChannelID
LastPaymentRequested bool
AllBlocksReceived bool
TotalFunds abi.TokenAmount
ClientWallet address.Address
MinerWallet address.Address
PaymentInfo *retrievalmarket.PaymentInfo
Status retrievalmarket.DealStatus
Sender peer.ID
TotalReceived uint64
Message string
BytesPaidFor uint64
CurrentInterval uint64
PaymentRequested abi.TokenAmount
FundsSpent abi.TokenAmount
UnsealFundsPaid abi.TokenAmount
WaitMsgCID *cid.Cid
VoucherShortfall abi.TokenAmount
LegacyProtocol bool
}
// Version 1 of the ProviderDealState
type ProviderDealState1 struct {
retrievalmarket.DealProposal
StoreID uint64
ChannelID datatransfer.ChannelID
PieceInfo *piecestore.PieceInfo
Status retrievalmarket.DealStatus
Receiver peer.ID
TotalSent uint64
FundsReceived abi.TokenAmount
Message string
CurrentInterval uint64
LegacyProtocol bool
}