Skip to content

Commit d2bfd5b

Browse files
committed
chore: cli support isLegacy for actions
Signed-off-by: Tomás Migone <[email protected]>
1 parent f9cc1ff commit d2bfd5b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

packages/indexer-cli/src/actions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export async function executeApprovedActions(
261261
reason
262262
transaction
263263
failureReason
264+
isLegacy
264265
}
265266
}
266267
`,
@@ -297,6 +298,7 @@ export async function approveActions(
297298
transaction
298299
status
299300
protocolNetwork
301+
isLegacy
300302
}
301303
}
302304
`,
@@ -333,6 +335,7 @@ export async function cancelActions(
333335
priority
334336
transaction
335337
status
338+
isLegacy
336339
}
337340
}
338341
`,
@@ -369,6 +372,7 @@ export async function fetchAction(
369372
priority
370373
transaction
371374
status
375+
isLegacy
372376
}
373377
}
374378
`,
@@ -419,6 +423,7 @@ export async function fetchActions(
419423
transaction
420424
status
421425
failureReason
426+
isLegacy
422427
}
423428
}
424429
`,
@@ -456,6 +461,7 @@ export async function deleteActions(
456461
transaction
457462
status
458463
failureReason
464+
isLegacy
459465
}
460466
}
461467
`,
@@ -494,6 +500,7 @@ export async function updateActions(
494500
status
495501
failureReason
496502
protocolNetwork
503+
isLegacy
497504
}
498505
}
499506
`,

packages/indexer-cli/src/commands/indexer/actions/get.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const actionFields: (keyof Action)[] = [
4949
'failureReason',
5050
'transaction',
5151
'reason',
52+
'isLegacy',
5253
]
5354

5455
/// Validates input for the `--fieds` option.

packages/indexer-common/src/indexer-management/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ const SCHEMA_SDL = gql`
139139
createdAt: BigInt!
140140
updatedAt: BigInt
141141
protocolNetwork: String!
142+
isLegacy: Boolean!
142143
}
143144
144145
input ActionInput {
@@ -153,6 +154,7 @@ const SCHEMA_SDL = gql`
153154
reason: String!
154155
priority: Int!
155156
protocolNetwork: String!
157+
isLegacy: Boolean!
156158
}
157159
158160
input ActionUpdateInput {
@@ -200,6 +202,7 @@ const SCHEMA_SDL = gql`
200202
failureReason: String
201203
priority: Int
202204
protocolNetwork: String!
205+
isLegacy: Boolean!
203206
}
204207
205208
input ActionFilter {

0 commit comments

Comments
 (0)