Skip to content

Commit

Permalink
Merge pull request #5124 from filecoin-project/fix/revert_5106
Browse files Browse the repository at this point in the history
fix: revert #5106
  • Loading branch information
hunjixin authored Jul 22, 2022
2 parents 77b6c19 + 27a6723 commit b67dfd3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
22 changes: 18 additions & 4 deletions venus-shared/api/messager/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Inputs:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
}
]
Expand Down Expand Up @@ -181,6 +182,7 @@ Inputs:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
}
]
Expand Down Expand Up @@ -211,7 +213,7 @@ Response:
"state": 1,
"gasOverEstimation": 12.3,
"maxFee": "0",
"gasFeeCap": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3,
"isDeleted": 123,
"createAt": "0001-01-01T00:00:00Z",
Expand Down Expand Up @@ -275,6 +277,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -342,6 +345,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -407,6 +411,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -474,6 +479,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -520,7 +526,7 @@ Response:
"id": 42,
"gasOverEstimation": 12.3,
"maxFee": "0",
"gasFeeCap": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3,
"selMsgNum": 42
}
Expand Down Expand Up @@ -587,7 +593,7 @@ Response:
"state": 1,
"gasOverEstimation": 12.3,
"maxFee": "0",
"gasFeeCap": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3,
"isDeleted": 123,
"createAt": "0001-01-01T00:00:00Z",
Expand Down Expand Up @@ -653,6 +659,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -715,6 +722,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -777,6 +785,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -844,6 +853,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -915,6 +925,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down Expand Up @@ -987,6 +998,7 @@ Inputs:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
}
]
Expand Down Expand Up @@ -1022,6 +1034,7 @@ Inputs:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
}
]
Expand Down Expand Up @@ -1202,7 +1215,7 @@ Inputs:
"id": 42,
"gasOverEstimation": 12.3,
"maxFee": "0",
"gasFeeCap": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3,
"selMsgNum": 42
}
Expand Down Expand Up @@ -1320,6 +1333,7 @@ Response:
"expireEpoch": 10101,
"gasOverEstimation": 12.3,
"maxFee": "0",
"maxFeeCap": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
Expand Down
2 changes: 1 addition & 1 deletion venus-shared/types/messager/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type Address struct {
State AddressState `json:"state"`
GasOverEstimation float64 `json:"gasOverEstimation"`
MaxFee big.Int `json:"maxFee,omitempty"`
GasFeeCap big.Int `json:"gasFeeCap"`
MaxFeeCap big.Int `json:"maxFeeCap"`
GasOverPremium float64 `json:"gasOverPremium"`

IsDeleted int `json:"isDeleted"` // 是否删除 1:是 -1:否
Expand Down
4 changes: 3 additions & 1 deletion venus-shared/types/messager/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type SendSpec struct {
ExpireEpoch abi.ChainEpoch `json:"expireEpoch"`
GasOverEstimation float64 `json:"gasOverEstimation"`
MaxFee big.Int `json:"maxFee,omitempty"`
MaxFeeCap big.Int `json:"maxFeeCap"`
GasOverPremium float64 `json:"gasOverPremium"`
}

Expand All @@ -17,7 +18,7 @@ type SharedSpec struct {

GasOverEstimation float64 `json:"gasOverEstimation"`
MaxFee big.Int `json:"maxFee,omitempty"`
GasFeeCap big.Int `json:"gasFeeCap"`
MaxFeeCap big.Int `json:"maxFeeCap"`
GasOverPremium float64 `json:"gasOverPremium"`

SelMsgNum uint64 `json:"selMsgNum"`
Expand All @@ -31,6 +32,7 @@ func (ss *SharedSpec) GetSendSpec() *SendSpec {
return &SendSpec{
GasOverEstimation: ss.GasOverEstimation,
MaxFee: ss.MaxFee,
MaxFeeCap: ss.MaxFeeCap,
GasOverPremium: ss.GasOverPremium,
}
}

0 comments on commit b67dfd3

Please sign in to comment.