fix: changed baseFee from Int to Float (#43)

fixes https://github.com/apotdevin/thunderhub/issues/42
This commit is contained in:
Gonzalo Aune 2020-05-20 20:24:14 +01:00 committed by GitHub
parent a2bf90a4b2
commit 9a1fb63641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 8 deletions

View file

@ -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) => {

View file

@ -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 },

View file

@ -7,7 +7,7 @@ export type UpdateFeesMutationVariables = {
auth: Types.AuthType;
transactionId?: Types.Maybe<Types.Scalars['String']>;
transactionVout?: Types.Maybe<Types.Scalars['Int']>;
baseFee?: Types.Maybe<Types.Scalars['Int']>;
baseFee?: Types.Maybe<Types.Scalars['Float']>;
feeRate?: Types.Maybe<Types.Scalars['Int']>;
};
@ -21,7 +21,7 @@ export const UpdateFeesDocument = gql`
$auth: authType!
$transactionId: String
$transactionVout: Int
$baseFee: Int
$baseFee: Float
$feeRate: Int
) {
updateFees(

View file

@ -5,7 +5,7 @@ export const UPDATE_FEES = gql`
$auth: authType!
$transactionId: String
$transactionVout: Int
$baseFee: Int
$baseFee: Float
$feeRate: Int
) {
updateFees(

View file

@ -305,7 +305,7 @@ export type ChannelFeeType = {
__typename?: 'channelFeeType';
alias?: Maybe<Scalars['String']>;
color?: Maybe<Scalars['String']>;
baseFee?: Maybe<Scalars['Int']>;
baseFee?: Maybe<Scalars['Float']>;
feeRate?: Maybe<Scalars['Int']>;
transactionId?: Maybe<Scalars['String']>;
transactionVout?: Maybe<Scalars['Int']>;
@ -600,7 +600,7 @@ export type MutationUpdateFeesArgs = {
auth: AuthType;
transactionId?: Maybe<Scalars['String']>;
transactionVout?: Maybe<Scalars['Int']>;
baseFee?: Maybe<Scalars['Int']>;
baseFee?: Maybe<Scalars['Float']>;
feeRate?: Maybe<Scalars['Int']>;
};