-
Notifications
You must be signed in to change notification settings - Fork 5
/
dtos.go
46 lines (38 loc) · 986 Bytes
/
dtos.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
package models
import (
"github.com/celer-network/im-executor/dal/models"
"github.com/celer-network/im-executor/sgn-v2/x/message/types"
)
type ServerResponse[T any] struct {
Code int `json:"code"`
Message string `json:"message"`
Data T `json:"data"`
}
type GetMessageRequest struct {
ID string `json:"id"`
}
type GetMessageResponse struct {
ExecutionRecord *models.ExecutionRecord
Message *types.Message
}
type UnstuckTxRequest struct {
ID string `json:"id"`
SrcTx string `json:"srcTx"`
DstTx string `json:"dstTx"`
Account string `json:"account"`
// legacy
GasPrice string `json:"gasPrice"`
// eip1559
GasTipCap string `json:"gasTipCap"`
GasFeeCap string `json:"gasFeeCap"`
}
type UnstuckTxResponse struct {
ReplacementTx string `json:"replacementTx"`
}
type RevertExecutionStatusRequest struct {
ID string `json:"id"`
SrcTx string `json:"srcTx"`
DstTx string `json:"dstTx"`
}
type RevertExecutionStatusResponse struct {
}