-
Notifications
You must be signed in to change notification settings - Fork 41
/
event.proto
59 lines (52 loc) · 1.96 KB
/
event.proto
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
53
54
55
56
57
58
59
syntax = "proto3";
package greenfield.bridge;
import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";
option go_package = "github.com/bnb-chain/greenfield/x/bridge/types";
enum RefundReason {
option (gogoproto.goproto_enum_prefix) = false;
REFUND_REASON_UNKNOWN = 0;
REFUND_REASON_INSUFFICIENT_BALANCE = 1;
REFUND_REASON_FAIL_ACK = 2;
}
// EventCrossTransferOut is emitted when a cross chain transfer out tx created
message EventCrossTransferOut {
// From addres of the cross chain transfer tx
string from = 1;
// To addres of the cross chain transfer tx
string to = 2;
// Amount of the cross chain transfer tx
cosmos.base.v1beta1.Coin amount = 3;
// Relayer fee of the cross chain transfer tx
cosmos.base.v1beta1.Coin relayer_fee = 4;
// Sequence of the corresponding cross chain package
uint64 sequence = 5;
// Destination chain id of the cross chain transfer tx
uint32 dest_chain_id = 6;
}
// EventCrossTransferOutRefund is emitted when a cross chain transfer out tx failed
message EventCrossTransferOutRefund {
// Refund address of the failed cross chain transfer tx
string refund_address = 1;
// Amount of the failed cross chain transfer tx
cosmos.base.v1beta1.Coin amount = 2;
// Refund reason of the failed cross chain transfer tx
RefundReason refund_reason = 3;
// Sequence of the corresponding cross chain package
uint64 sequence = 4;
// Destination chain id of the cross chain transfer tx
uint32 dest_chain_id = 5;
}
// EventCrossTransferIn is emitted when a cross chain transfer in tx happened
message EventCrossTransferIn {
// Amount of the cross chain transfer tx
cosmos.base.v1beta1.Coin amount = 1;
// Receiver of the cross chain transfer tx
string receiver_address = 2;
// Refund of the cross chain transfer tx in BSC
string refund_address = 3;
// Sequence of the corresponding cross chain package
uint64 sequence = 4;
// Source chain id of the cross chain transfer tx
uint32 src_chain_id = 5;
}