mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +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 = {
|
export const openChannel = {
|
||||||
type: OpenChannelType,
|
type: OpenChannelType,
|
||||||
args: {
|
args: {
|
||||||
isPrivate: { type: GraphQLBoolean },
|
|
||||||
amount: { type: new GraphQLNonNull(GraphQLInt) },
|
amount: { type: new GraphQLNonNull(GraphQLInt) },
|
||||||
partnerPublicKey: { type: new GraphQLNonNull(GraphQLString) },
|
partnerPublicKey: { type: new GraphQLNonNull(GraphQLString) },
|
||||||
auth: { type: new GraphQLNonNull(GraphQLString) },
|
auth: { type: new GraphQLNonNull(GraphQLString) },
|
||||||
|
tokensPerVByte: { type: GraphQLInt },
|
||||||
|
isPrivate: { type: GraphQLBoolean },
|
||||||
},
|
},
|
||||||
resolve: async (root: any, params: any, context: any) => {
|
resolve: async (root: any, params: any, context: any) => {
|
||||||
await requestLimiter(context.ip, 'openChannel');
|
await requestLimiter(context.ip, 'openChannel');
|
||||||
|
@ -34,6 +35,7 @@ export const openChannel = {
|
||||||
is_private: params.isPrivate,
|
is_private: params.isPrivate,
|
||||||
local_tokens: params.amount,
|
local_tokens: params.amount,
|
||||||
partner_public_key: params.partnerPublicKey,
|
partner_public_key: params.partnerPublicKey,
|
||||||
|
chain_fee_tokens_per_vbyte: params.tokensPerVByte,
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
transactionId: info.transaction_id,
|
transactionId: info.transaction_id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue