-
Notifications
You must be signed in to change notification settings - Fork 1
/
CwVoyagerRequest.go
54 lines (47 loc) · 2.08 KB
/
CwVoyagerRequest.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
47
48
49
50
51
52
53
54
package types
import (
sdkmath "cosmossdk.io/math"
)
type SudoFundDepositMsg struct {
HandleFundDeposit HandleFundDeposit `json:"handle_fund_deposit"`
}
type HandleFundDeposit struct {
SourceChainId string `json:"src_chain_id"`
VoyagerContractAddress string `json:"voyager_contract_address"`
DepositId uint64 `json:"deposit_id"`
DestChainIdBytes string `json:"dest_chain_id_bytes"`
SrcToken string `json:"src_token"`
Depositor string `json:"depositor"`
DestAmount sdkmath.Int `json:"dest_amount"`
Amount sdkmath.Int `json:"amount"`
Recipient string `json:"recipient"`
PartnerId sdkmath.Int `json:"partner_id"`
Message string `json:"message"`
DepositWithMessage bool `json:"deposit_with_message"`
DestToken string `json:"dest_token"`
}
type SudoFundsPaidMsg struct {
HandleFundsPaid HandleFundsPaid `json:"handle_funds_paid"`
}
type HandleFundsPaid struct {
SourceChainId string `json:"src_chain_id"`
VoyagerContractAddress string `json:"voyager_contract_address"`
RequestIdentifier uint64 `json:"request_identifier"`
MessageHash string `json:"message_hash"`
ForwarderAddress string `json:"forwarder_address"`
ForwarderRouterAddress string `json:"forwarder_router_address"`
SrcTimestamp uint64 `json:"src_timestamp"`
}
type SudoHandleDepositInfoUpdateMsg struct {
HandleDepositInfoUpdate HandleDepositInfoUpdate `json:"handle_deposit_info_update"`
}
type HandleDepositInfoUpdate struct {
SourceChainId string `json:"src_chain_id"`
VoyagerContractAddress string `json:"voyager_contract_address"`
SrcToken string `json:"src_token"`
FeeAmount sdkmath.Int `json:"fee_amount"`
DepositId uint64 `json:"deposit_id"`
EventNonce uint64 `json:"event_nonce"`
InitiateWithdrawal bool `json:"initiate_withdrawal"`
Depositor string `json:"depositor"`
}