This commit is contained in:
vyzo 2022-04-08 00:36:17 +03:00
parent 8f121ab0ec
commit 9ee57937b4
8 changed files with 34 additions and 1 deletions

View File

@ -224,7 +224,9 @@ func (s *dealProposals0) array() adt.Array {
}
func fromV0DealProposal(v0 market0.DealProposal) DealProposal {
return (DealProposal)(v0)
}
func (s *state0) GetState() interface{} {

View File

@ -224,7 +224,9 @@ func (s *dealProposals2) array() adt.Array {
}
func fromV2DealProposal(v2 market2.DealProposal) DealProposal {
return (DealProposal)(v2)
}
func (s *state2) GetState() interface{} {

View File

@ -219,7 +219,9 @@ func (s *dealProposals3) array() adt.Array {
}
func fromV3DealProposal(v3 market3.DealProposal) DealProposal {
return (DealProposal)(v3)
}
func (s *state3) GetState() interface{} {

View File

@ -219,7 +219,9 @@ func (s *dealProposals4) array() adt.Array {
}
func fromV4DealProposal(v4 market4.DealProposal) DealProposal {
return (DealProposal)(v4)
}
func (s *state4) GetState() interface{} {

View File

@ -219,7 +219,9 @@ func (s *dealProposals5) array() adt.Array {
}
func fromV5DealProposal(v5 market5.DealProposal) DealProposal {
return (DealProposal)(v5)
}
func (s *state5) GetState() interface{} {

View File

@ -219,7 +219,9 @@ func (s *dealProposals6) array() adt.Array {
}
func fromV6DealProposal(v6 market6.DealProposal) DealProposal {
return (DealProposal)(v6)
}
func (s *state6) GetState() interface{} {

View File

@ -219,7 +219,9 @@ func (s *dealProposals7) array() adt.Array {
}
func fromV7DealProposal(v7 market7.DealProposal) DealProposal {
return (DealProposal)(v7)
}
func (s *state7) GetState() interface{} {

View File

@ -219,7 +219,26 @@ func (s *dealProposals8) array() adt.Array {
}
func fromV8DealProposal(v8 market8.DealProposal) DealProposal {
return (DealProposal)(v8)
label, err := v8.Label.ToString()
if err != nil {
bs, _ := v8.Label.ToBytes()
label = string(bs)
}
return DealProposal{
PieceCID: v8.PieceCID,
PieceSize: v8.PieceSize,
VerifiedDeal: v8.VerifiedDeal,
Client: v8.Client,
Provider: v8.Provider,
Label: label,
StartEpoch: v8.StartEpoch,
EndEpoch: v8.EndEpoch,
StoragePricePerEpoch: v8.StoragePricePerEpoch,
ProviderCollateral: v8.ProviderCollateral,
ClientCollateral: v8.ClientCollateral,
}
}
func (s *state8) GetState() interface{} {