Compare commits
9 Commits
v0.4.0
...
b29197cf4e
| Author | SHA1 | Date | |
|---|---|---|---|
| b29197cf4e | |||
|
5c48055ac8
|
|||
|
5ead3476b7
|
|||
| fbf163740a | |||
|
|
1fc1457e97 | ||
| 1f57bbd9c2 | |||
|
2a2793ae44
|
|||
|
8773bf5f9e
|
|||
|
d9970c126a
|
@@ -1,4 +1,8 @@
|
|||||||
@layer base {
|
@layer base {
|
||||||
|
html {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@apply leading-none bg-cover bg-fixed;
|
@apply leading-none bg-cover bg-fixed;
|
||||||
background-image: linear-gradient(35deg, rgba(255,0,255,0.2) 0, rgba(13,79,153,0.8) 100%), url('/img/bg-1.jpg');
|
background-image: linear-gradient(35deg, rgba(255,0,255,0.2) 0, rgba(13,79,153,0.8) 100%), url('/img/bg-1.jpg');
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="mb-3.5">
|
<h3 class="mb-3.5">
|
||||||
<span class="text-yellow-500">🗲</span>
|
<%= render partial: "icons/zap", locals: { custom_class: "text-amber-500 h-4 w-4 inline" } %>
|
||||||
<%= link_to "Lightning Wallet", wallet_path, class: "ks-text-link" %>
|
<%= link_to "Lightning Wallet", wallet_path, class: "ks-text-link" %>
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-gray-500">
|
<p class="text-gray-500">
|
||||||
|
|||||||
@@ -46,11 +46,11 @@ test:
|
|||||||
# <<: *AUTHORIZATIONS
|
# <<: *AUTHORIZATIONS
|
||||||
|
|
||||||
production:
|
production:
|
||||||
host: ldap.kosmos.org
|
host: ldap.kosmos.local
|
||||||
port: 636
|
port: 389
|
||||||
attribute: cn
|
attribute: cn
|
||||||
base: ou=kosmos.org,cn=users,dc=kosmos,dc=org
|
base: ou=kosmos.org,cn=users,dc=kosmos,dc=org
|
||||||
admin_user: <%= Rails.application.credentials.ldap[:username] rescue nil %>
|
admin_user: <%= Rails.application.credentials.ldap[:username] rescue nil %>
|
||||||
admin_password: <%= Rails.application.credentials.ldap[:password] rescue nil %>
|
admin_password: <%= Rails.application.credentials.ldap[:password] rescue nil %>
|
||||||
ssl: simple_tls
|
# ssl: false
|
||||||
# <<: *AUTHORIZATIONS
|
# <<: *AUTHORIZATIONS
|
||||||
|
|||||||
@@ -5,4 +5,20 @@ namespace :lndhub do
|
|||||||
CreateLndhubWalletJob.perform_later(user)
|
CreateLndhubWalletJob.perform_later(user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "List wallet balances"
|
||||||
|
task :balances => :environment do |t, args|
|
||||||
|
sum = 0
|
||||||
|
User.all.each do |user|
|
||||||
|
lndhub = Lndhub.new
|
||||||
|
auth_token = lndhub.authenticate(user)
|
||||||
|
data = lndhub.balance(auth_token)
|
||||||
|
balance = data["BTC"]["AvailableBalance"] rescue nil
|
||||||
|
if balance && balance > 0
|
||||||
|
sum += balance
|
||||||
|
puts "#{user.address}: #{balance} sats"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
puts "--\nSum of user balances: #{sum} sats"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user