@@ -15,10 +15,10 @@ export type ZetaChainCCTX = {
15
15
last_update_timestamp : string ;
16
16
receiver_address : string ;
17
17
sender_address : string ;
18
- source_chain_id : string ;
18
+ source_chain_id : number ;
19
19
status : ZetaChainCCTXStatus ;
20
20
status_reduced : ZetaChainCCTXStatusReduced ;
21
- target_chain_id : string ;
21
+ target_chain_id : number ;
22
22
token_symbol ?: string ;
23
23
asset ?: string ;
24
24
decimals ?: string | null ;
@@ -29,8 +29,10 @@ export type ZetaChainCCTXResponse = {
29
29
index : string ;
30
30
zeta_fees : string ;
31
31
relayed_message : string ;
32
+ cctx_status_reduced : ZetaChainCCTXStatusReduced ;
32
33
cctx_status : {
33
34
status : ZetaChainCCTXStatus ;
35
+ status_reduced : ZetaChainCCTXStatusReduced ;
34
36
status_message : string ;
35
37
error_message : string ;
36
38
last_update_timestamp : string ;
@@ -55,29 +57,7 @@ export type ZetaChainCCTXResponse = {
55
57
status : ZetaChainCCTXInboundStatus ;
56
58
confirmation_mode : ZetaChainCCTXConfirmationMode ;
57
59
} ;
58
- outbound_params : Array < {
59
- receiver : string ;
60
- receiver_chain_id : string ;
61
- coin_type : ZetaChainCCTXCoinType ;
62
- amount : string ;
63
- tss_nonce : string ;
64
- gas_limit : string ;
65
- gas_price : string ;
66
- gas_priority_fee : string ;
67
- hash : string ;
68
- ballot_index : string ;
69
- observed_external_height : string ;
70
- gas_used : string ;
71
- effective_gas_price : string ;
72
- effective_gas_limit : string ;
73
- tss_pubkey : string ;
74
- tx_finalization_status : ZetaChainCCTXFinalizationStatus ;
75
- call_options : {
76
- gas_limit : string ;
77
- is_arbitrary_call : boolean ;
78
- } ;
79
- confirmation_mode : ZetaChainCCTXConfirmationMode ;
80
- } > ;
60
+ outbound_params : Array < ZetaChainCCTXOutboundParams > ;
81
61
protocol_contract_version : string ;
82
62
revert_options : {
83
63
revert_address : string ;
@@ -86,19 +66,32 @@ export type ZetaChainCCTXResponse = {
86
66
revert_message : string ;
87
67
revert_gas_limit : string ;
88
68
} ;
89
- related_cctxs : Array < {
90
- index : string ;
91
- depth : number ;
92
- source_chain_id : string ;
93
- status : ZetaChainCCTXStatus ;
94
- inbound_amount : string ;
95
- inbound_coin_type : ZetaChainCCTXCoinType ;
96
- outbound_params : Array < {
97
- amount : string ;
98
- chain_id : string ;
99
- coin_type : ZetaChainCCTXCoinType ;
100
- } > ;
69
+ related_cctxs : Array < ZetaChainRelatedCCTX > ;
70
+ token_symbol ?: string ;
71
+ token_name ?: string ;
72
+ zrc20_contract_address ?: string ;
73
+ icon_url ?: string | null ;
74
+ decimals ?: number ;
75
+ } ;
76
+
77
+ export type ZetaChainRelatedCCTX = {
78
+ index : string ;
79
+ depth : number ;
80
+ source_chain_id : number ;
81
+ status : ZetaChainCCTXStatus ;
82
+ status_reduced : ZetaChainCCTXStatusReduced ;
83
+ inbound_amount : string ;
84
+ inbound_coin_type : ZetaChainCCTXCoinType ;
85
+ outbound_params : Array < {
86
+ amount : string ;
87
+ chain_id : number ;
88
+ coin_type : ZetaChainCCTXCoinType ;
101
89
} > ;
90
+ token_symbol ?: string ;
91
+ token_name ?: string ;
92
+ zrc20_contract_address ?: string ;
93
+ icon_url ?: string | null ;
94
+ decimals ?: number ;
102
95
} ;
103
96
104
97
export type ZetaChainCCTXStatus = 'PENDING_OUTBOUND' | 'PENDING_INBOUND' | 'OUTBOUND_MINED' | 'PENDING_REVERT' | 'ABORTED' | 'REVERTED' ;
@@ -112,3 +105,27 @@ export type ZetaChainCCTXFinalizationStatus = 'FINALIZED' | 'NOT_FINALIZED';
112
105
export type ZetaChainCCTXConfirmationMode = 'SAFE' | 'FAST' ;
113
106
114
107
export type ZetaChainCCTXInboundStatus = 'SUCCESS' | 'INSUFFICIENT_DEPOSITOR_FEE' | 'INVALID_RECEIVER_ADDRESS' | 'INVALID_MEMO' ;
108
+
109
+ export type ZetaChainCCTXOutboundParams = {
110
+ receiver : string ;
111
+ receiver_chain_id : number ;
112
+ coin_type : ZetaChainCCTXCoinType ;
113
+ amount : string ;
114
+ tss_nonce : string ;
115
+ gas_limit : string ;
116
+ gas_price : string ;
117
+ gas_priority_fee : string ;
118
+ hash : string ;
119
+ ballot_index : string ;
120
+ observed_external_height : string ;
121
+ gas_used : string ;
122
+ effective_gas_price : string ;
123
+ effective_gas_limit : string ;
124
+ tss_pubkey : string ;
125
+ tx_finalization_status : ZetaChainCCTXFinalizationStatus ;
126
+ call_options : {
127
+ gas_limit : string ;
128
+ is_arbitrary_call : boolean ;
129
+ } ;
130
+ confirmation_mode : ZetaChainCCTXConfirmationMode ;
131
+ } ;
0 commit comments