diff --git a/api/schemas/mutations/channels/updateFees.ts b/api/schemas/mutations/channels/updateFees.ts index 0ed37c21..0bb651a0 100644 --- a/api/schemas/mutations/channels/updateFees.ts +++ b/api/schemas/mutations/channels/updateFees.ts @@ -1,5 +1,10 @@ import { updateRoutingFees } from 'ln-service'; -import { GraphQLBoolean, GraphQLString, GraphQLInt } from 'graphql'; +import { + GraphQLBoolean, + GraphQLString, + GraphQLInt, + GraphQLFloat, +} from 'graphql'; import { ContextType } from 'api/types/apiTypes'; import { logger } from '../../../helpers/logger'; import { requestLimiter } from '../../../helpers/rateLimiter'; @@ -17,7 +22,7 @@ export const updateFees = { ...defaultParams, transactionId: { type: GraphQLString }, transactionVout: { type: GraphQLInt }, - baseFee: { type: GraphQLInt }, + baseFee: { type: GraphQLFloat }, feeRate: { type: GraphQLInt }, }, resolve: async (_: undefined, params: any, context: ContextType) => { diff --git a/api/schemas/types/QueryType.ts b/api/schemas/types/QueryType.ts index b1c09700..18775568 100644 --- a/api/schemas/types/QueryType.ts +++ b/api/schemas/types/QueryType.ts @@ -5,6 +5,7 @@ import { GraphQLBoolean, GraphQLList, GraphQLNonNull, + GraphQLFloat, } from 'graphql'; export const ChannelBalanceType = new GraphQLObjectType({ @@ -23,7 +24,7 @@ export const ChannelFeeType = new GraphQLObjectType({ return { alias: { type: GraphQLString }, color: { type: GraphQLString }, - baseFee: { type: GraphQLInt }, + baseFee: { type: GraphQLFloat }, feeRate: { type: GraphQLInt }, transactionId: { type: GraphQLString }, transactionVout: { type: GraphQLInt }, diff --git a/src/graphql/mutations/__generated__/updateFees.generated.tsx b/src/graphql/mutations/__generated__/updateFees.generated.tsx index 4330455a..3b8d27cf 100644 --- a/src/graphql/mutations/__generated__/updateFees.generated.tsx +++ b/src/graphql/mutations/__generated__/updateFees.generated.tsx @@ -7,7 +7,7 @@ export type UpdateFeesMutationVariables = { auth: Types.AuthType; transactionId?: Types.Maybe; transactionVout?: Types.Maybe; - baseFee?: Types.Maybe; + baseFee?: Types.Maybe; feeRate?: Types.Maybe; }; @@ -21,7 +21,7 @@ export const UpdateFeesDocument = gql` $auth: authType! $transactionId: String $transactionVout: Int - $baseFee: Int + $baseFee: Float $feeRate: Int ) { updateFees( diff --git a/src/graphql/mutations/updateFees.ts b/src/graphql/mutations/updateFees.ts index 9048ca46..3356e070 100644 --- a/src/graphql/mutations/updateFees.ts +++ b/src/graphql/mutations/updateFees.ts @@ -5,7 +5,7 @@ export const UPDATE_FEES = gql` $auth: authType! $transactionId: String $transactionVout: Int - $baseFee: Int + $baseFee: Float $feeRate: Int ) { updateFees( diff --git a/src/graphql/types.ts b/src/graphql/types.ts index 6e494e96..f1bba6d6 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -305,7 +305,7 @@ export type ChannelFeeType = { __typename?: 'channelFeeType'; alias?: Maybe; color?: Maybe; - baseFee?: Maybe; + baseFee?: Maybe; feeRate?: Maybe; transactionId?: Maybe; transactionVout?: Maybe; @@ -600,7 +600,7 @@ export type MutationUpdateFeesArgs = { auth: AuthType; transactionId?: Maybe; transactionVout?: Maybe; - baseFee?: Maybe; + baseFee?: Maybe; feeRate?: Maybe; };