/
types.ipldsch
52 lines (46 loc) · 1.02 KB
/
types.ipldsch
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
type Params struct {
Selector nullable Any # CborGenCompatibleNode
PieceCID nullable &Any
PricePerByte Bytes # abi.TokenAmount
PaymentInterval Int
PaymentIntervalIncrease Int
UnsealPrice Bytes # abi.TokenAmount
}
type DealProposal struct {
PayloadCID &Any
ID Int # DealID
Params Params
}
type DealResponse struct {
Status Int
ID Int
PaymentOwed Bytes
Message String
}
type DealPayment struct {
ID Int # DealID
PaymentChannel Bytes # address.Address
PaymentVoucher nullable SignedVoucher
}
type SignedVoucher struct {
ChannelAddr Bytes # addr.Address
TimeLockMin Int # abi.ChainEpoch
TimeLockMax Int # abi.ChainEpoch
SecretHash Bytes
Extra nullable ModVerifyParams
Lane Int
Nonce Int
Amount Bytes # big.Int
MinSettleHeight Int # abi.ChainEpoch
Merges [Merge]
Signature nullable Bytes # crypto.Signature
} representation tuple
type ModVerifyParams struct {
Actor Bytes # addr.Address
Method Int # abi.MethodNum
Data Bytes
} representation tuple
type Merge struct {
Lane Int
Nonce Int
} representation tuple