Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion venus-shared/api/messager/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type IMessager interface {
UpdateMessageStateByID(ctx context.Context, id string, state types.MessageState) error //perm:admin
UpdateAllFilledMessage(ctx context.Context) (int, error) //perm:admin
UpdateFilledMessageByID(ctx context.Context, id string) (string, error) //perm:admin
ReplaceMessage(ctx context.Context, id string, auto bool, maxFee string, gasLimit int64, gasPremium string, gasFeecap string) (cid.Cid, error) //perm:admin
ReplaceMessage(ctx context.Context, params *types.ReplacMessageParams) (cid.Cid, error) //perm:admin
RepublishMessage(ctx context.Context, id string) error //perm:admin
MarkBadMessage(ctx context.Context, id string) error //perm:admin
RecoverFailedMsg(ctx context.Context, addr address.Address) ([]string, error) //perm:admin
Expand Down
15 changes: 9 additions & 6 deletions venus-shared/api/messager/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -1078,12 +1078,15 @@ Perms: admin
Inputs:
```json
[
"string value",
true,
"string value",
9,
"string value",
"string value"
{
"ID": "string value",
"Auto": true,
"MaxFee": "0",
"GasLimit": 9,
"GasPremium": "0",
"GasFeecap": "0",
"GasOverPremium": 12.3
}
]
```

Expand Down
8 changes: 4 additions & 4 deletions venus-shared/api/messager/mock/mock_imessager.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions venus-shared/api/messager/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions venus-shared/types/messager/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,13 @@ func (m *Message) MarshalJSON() ([]byte, error) {
UpdatedAt: m.UpdatedAt,
})
}

type ReplacMessageParams struct {
ID string
Auto bool
MaxFee abi.TokenAmount
GasLimit int64
GasPremium abi.TokenAmount
GasFeecap abi.TokenAmount
GasOverPremium float64
}