mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 14:04:03 +01:00
chore: add more params to open channel
This commit is contained in:
parent
ce454ae669
commit
b51dca146d
1 changed files with 3 additions and 1 deletions
|
@ -18,10 +18,11 @@ interface OpenChannelProps {
|
|||
export const openChannel = {
|
||||
type: OpenChannelType,
|
||||
args: {
|
||||
isPrivate: { type: GraphQLBoolean },
|
||||
amount: { type: new GraphQLNonNull(GraphQLInt) },
|
||||
partnerPublicKey: { type: new GraphQLNonNull(GraphQLString) },
|
||||
auth: { type: new GraphQLNonNull(GraphQLString) },
|
||||
tokensPerVByte: { type: GraphQLInt },
|
||||
isPrivate: { type: GraphQLBoolean },
|
||||
},
|
||||
resolve: async (root: any, params: any, context: any) => {
|
||||
await requestLimiter(context.ip, 'openChannel');
|
||||
|
@ -34,6 +35,7 @@ export const openChannel = {
|
|||
is_private: params.isPrivate,
|
||||
local_tokens: params.amount,
|
||||
partner_public_key: params.partnerPublicKey,
|
||||
chain_fee_tokens_per_vbyte: params.tokensPerVByte,
|
||||
});
|
||||
return {
|
||||
transactionId: info.transaction_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue