Skip to content

Commit 1256717

Browse files
committed
fix(query): fix rav query
1 parent 6b81232 commit 1256717

File tree

1 file changed

+14
-31
lines changed

1 file changed

+14
-31
lines changed

crates/query/src/lib.rs

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -124,69 +124,52 @@ pub mod closed_allocations {
124124
)]
125125
pub struct TapTransactions;
126126

127-
pub mod latest_ravs_v2 {
128-
use graphql_client::GraphQLQuery;
129-
type BigInt = String;
130-
type Bytes = String;
131-
132-
#[derive(GraphQLQuery)]
133-
#[graphql(
134-
schema_path = "graphql/tap_v2.schema.graphql",
135-
query_path = "graphql/latest_ravs_v2.query.graphql",
136-
response_derives = "Debug",
137-
variables_derives = "Clone"
138-
)]
139-
pub struct LatestRavs;
140-
141-
pub use latest_ravs::*;
142-
}
143-
144-
pub mod escrow_account_v2 {
127+
pub mod network_escrow_account_v2 {
145128
use graphql_client::GraphQLQuery;
146129
type BigInt = String;
147130
type Bytes = String;
148131

149132
#[derive(GraphQLQuery)]
150133
#[graphql(
151-
schema_path = "graphql/tap_v2.schema.graphql",
152-
query_path = "graphql/escrow_account_v2.query.graphql",
134+
schema_path = "graphql/network.schema.graphql",
135+
query_path = "graphql/network_escrow_account_v2.query.graphql",
153136
response_derives = "Debug",
154137
variables_derives = "Clone"
155138
)]
156-
pub struct EscrowAccountQuery;
139+
pub struct NetworkEscrowAccountQueryV2;
157140

158-
pub use escrow_account_query::Variables;
141+
pub use network_escrow_account_query_v2::Variables;
159142
}
160143

161-
pub mod network_escrow_account_v2 {
144+
pub mod horizon_detection {
162145
use graphql_client::GraphQLQuery;
163-
type BigInt = String;
164146
type Bytes = String;
165147

166148
#[derive(GraphQLQuery)]
167149
#[graphql(
168150
schema_path = "graphql/network.schema.graphql",
169-
query_path = "graphql/network_escrow_account_v2.query.graphql",
151+
query_path = "graphql/horizon_detection.query.graphql",
170152
response_derives = "Debug",
171153
variables_derives = "Clone"
172154
)]
173-
pub struct NetworkEscrowAccountQueryV2;
155+
pub struct HorizonDetectionQuery;
174156

175-
pub use network_escrow_account_query_v2::Variables;
157+
pub use horizon_detection_query::*;
176158
}
177159

178-
pub mod horizon_detection {
160+
pub mod latest_ravs_v2 {
179161
use graphql_client::GraphQLQuery;
162+
type BigInt = String;
180163
type Bytes = String;
181164

182165
#[derive(GraphQLQuery)]
183166
#[graphql(
184167
schema_path = "graphql/network.schema.graphql",
185-
query_path = "graphql/horizon_detection.query.graphql",
168+
query_path = "graphql/latest_ravs_v2.query.graphql",
186169
response_derives = "Debug",
187170
variables_derives = "Clone"
188171
)]
189-
pub struct HorizonDetectionQuery;
172+
pub struct LatestRavs;
190173

191-
pub use horizon_detection_query::*;
174+
pub use latest_ravs::*;
192175
}

0 commit comments

Comments
 (0)