From 7674d377af1fa644dda49bf483dea5289546a2ba Mon Sep 17 00:00:00 2001 From: ze97286 Date: Fri, 26 Apr 2024 15:42:38 +0100 Subject: [PATCH] chore: fix transfer interval in schema to use camel case --- datanode/gateway/graphql/generated.go | 20 ++++++++++---------- datanode/gateway/graphql/schema.graphql | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/datanode/gateway/graphql/generated.go b/datanode/gateway/graphql/generated.go index 3a48f1964ac..1cfe771a08a 100644 --- a/datanode/gateway/graphql/generated.go +++ b/datanode/gateway/graphql/generated.go @@ -5440,7 +5440,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.DispatchStrategy.TeamScope(childComplexity), true - case "DispatchStrategy.transfer_interval": + case "DispatchStrategy.transferInterval": if e.complexity.DispatchStrategy.TransferInterval == nil { break } @@ -30341,8 +30341,8 @@ func (ec *executionContext) fieldContext_DispatchStrategy_capRewardFeeMultiple(c return fc, nil } -func (ec *executionContext) _DispatchStrategy_transfer_interval(ctx context.Context, field graphql.CollectedField, obj *vega.DispatchStrategy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DispatchStrategy_transfer_interval(ctx, field) +func (ec *executionContext) _DispatchStrategy_transferInterval(ctx context.Context, field graphql.CollectedField, obj *vega.DispatchStrategy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DispatchStrategy_transferInterval(ctx, field) if err != nil { return graphql.Null } @@ -30372,7 +30372,7 @@ func (ec *executionContext) _DispatchStrategy_transfer_interval(ctx context.Cont return ec.marshalNInt2áš–int32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DispatchStrategy_transfer_interval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DispatchStrategy_transferInterval(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "DispatchStrategy", Field: field, @@ -80536,8 +80536,8 @@ func (ec *executionContext) fieldContext_RecurringGovernanceTransfer_dispatchStr return ec.fieldContext_DispatchStrategy_rankTable(ctx, field) case "capRewardFeeMultiple": return ec.fieldContext_DispatchStrategy_capRewardFeeMultiple(ctx, field) - case "transfer_interval": - return ec.fieldContext_DispatchStrategy_transfer_interval(ctx, field) + case "transferInterval": + return ec.fieldContext_DispatchStrategy_transferInterval(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DispatchStrategy", field.Name) }, @@ -80738,8 +80738,8 @@ func (ec *executionContext) fieldContext_RecurringTransfer_dispatchStrategy(ctx return ec.fieldContext_DispatchStrategy_rankTable(ctx, field) case "capRewardFeeMultiple": return ec.fieldContext_DispatchStrategy_capRewardFeeMultiple(ctx, field) - case "transfer_interval": - return ec.fieldContext_DispatchStrategy_transfer_interval(ctx, field) + case "transferInterval": + return ec.fieldContext_DispatchStrategy_transferInterval(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type DispatchStrategy", field.Name) }, @@ -109946,8 +109946,8 @@ func (ec *executionContext) _DispatchStrategy(ctx context.Context, sel ast.Selec out.Values[i] = ec._DispatchStrategy_rankTable(ctx, field, obj) case "capRewardFeeMultiple": out.Values[i] = ec._DispatchStrategy_capRewardFeeMultiple(ctx, field, obj) - case "transfer_interval": - out.Values[i] = ec._DispatchStrategy_transfer_interval(ctx, field, obj) + case "transferInterval": + out.Values[i] = ec._DispatchStrategy_transferInterval(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } diff --git a/datanode/gateway/graphql/schema.graphql b/datanode/gateway/graphql/schema.graphql index 15c956698d0..a4fa8554c5a 100644 --- a/datanode/gateway/graphql/schema.graphql +++ b/datanode/gateway/graphql/schema.graphql @@ -1487,7 +1487,7 @@ type DispatchStrategy { capRewardFeeMultiple: String "Interval for the distribution of the transfer" - transfer_interval: Int! + transferInterval: Int! } type RankTable {