mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 22:11:37 +01:00
fix: changed baseFee from Int to Float (#43)
fixes https://github.com/apotdevin/thunderhub/issues/42
This commit is contained in:
parent
a2bf90a4b2
commit
9a1fb63641
5 changed files with 14 additions and 8 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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 },
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -5,7 +5,7 @@ export const UPDATE_FEES = gql`
|
|||
$auth: authType!
|
||||
$transactionId: String
|
||||
$transactionVout: Int
|
||||
$baseFee: Int
|
||||
$baseFee: Float
|
||||
$feeRate: Int
|
||||
) {
|
||||
updateFees(
|
||||
|
|
|
@ -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']>;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue