-
Notifications
You must be signed in to change notification settings - Fork 13
/
events.go
46 lines (41 loc) · 1.64 KB
/
events.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 crosschain
import (
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/functionx/fx-core/v5/x/evm/types"
)
var (
CancelSendToExternalEvent = abi.NewEvent(
CancelSendToExternalEventName,
CancelSendToExternalEventName,
false,
abi.Arguments{
abi.Argument{Name: "sender", Type: types.TypeAddress, Indexed: true},
abi.Argument{Name: "chain", Type: types.TypeString, Indexed: false},
abi.Argument{Name: "txID", Type: types.TypeUint256, Indexed: false},
})
CrossChainEvent = abi.NewEvent(
CrossChainEventName,
CrossChainEventName,
false,
abi.Arguments{
abi.Argument{Name: "sender", Type: types.TypeAddress, Indexed: true},
abi.Argument{Name: "token", Type: types.TypeAddress, Indexed: true},
abi.Argument{Name: "denom", Type: types.TypeString, Indexed: false},
abi.Argument{Name: "receipt", Type: types.TypeString, Indexed: false},
abi.Argument{Name: "amount", Type: types.TypeUint256, Indexed: false},
abi.Argument{Name: "fee", Type: types.TypeUint256, Indexed: false},
abi.Argument{Name: "target", Type: types.TypeBytes32, Indexed: false},
abi.Argument{Name: "memo", Type: types.TypeString, Indexed: false},
})
IncreaseBridgeFeeEvent = abi.NewEvent(
IncreaseBridgeFeeEventName,
IncreaseBridgeFeeEventName,
false,
abi.Arguments{
abi.Argument{Name: "sender", Type: types.TypeAddress, Indexed: true},
abi.Argument{Name: "token", Type: types.TypeAddress, Indexed: true},
abi.Argument{Name: "chain", Type: types.TypeString, Indexed: false},
abi.Argument{Name: "txID", Type: types.TypeUint256, Indexed: false},
abi.Argument{Name: "fee", Type: types.TypeUint256, Indexed: false},
})
)