-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Create Invoice for Pubkey Tweak
- Loading branch information
1 parent
134fb91
commit bebd6da
Showing
3 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Create Invoice for Pubkey Tweak</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 20px; | ||
padding: 20px; | ||
background-color: #f0f0f0; | ||
} | ||
.container { | ||
background-color: #ffffff; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
} | ||
.form-group { | ||
margin-bottom: 15px; | ||
} | ||
.form-group label { | ||
display: block; | ||
margin-bottom: 5px; | ||
} | ||
.form-group input { | ||
width: 100%; | ||
padding: 8px; | ||
box-sizing: border-box; | ||
} | ||
.form-group button { | ||
padding: 10px 20px; | ||
background-color: #007BFF; | ||
color: #ffffff; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
} | ||
.form-group button:hover { | ||
background-color: #0056b3; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Create Invoice for Pubkey Tweak</h1> | ||
<form action="/create_invoice_pubkey_tweak" method="POST"> | ||
<div class="form-group"> | ||
<label for="pubkey">Public Key:</label> | ||
<input type="text" id="pubkey" name="pubkey" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="tweak">Tweak:</label> | ||
<input type="number" id="tweak" name="tweak" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="amountMsat">Amount:</label> | ||
<input type="number" id="amountMsat" name="amountMsat" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="description">Description:</label> | ||
<input type="text" id="description" name="description"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="expiryTime">ExpiryTime:</label> | ||
<input type="text" id="expiryTime" name="expiryTime"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="gatewayId">GatewayId:</label> | ||
<input type="text" id="gatewayId" name="gatewayId"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="federationId">FederationId:</label> | ||
<input type="text" id="federationId" name="federationId"> | ||
</div> | ||
<div class="form-group"> | ||
<button type="submit">Create Invoice</button> | ||
</div> | ||
</form> | ||
|
||
{{if .}} | ||
<p>Invoice: {{.}}</p> | ||
{{end}} | ||
|
||
</div> | ||
</body> | ||
</html> |