-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add address to GetAvailableUtxos in NodeguardService (#377)
* Add address to GetAvailableUtxos in NodeguardService * Added new method for getting all utxos * remove console writelines * use same return parameters for GetAllUtxos * refactor GetUtxos * Fetching utxos from nbxplorer * removed todo * removed wallet unused id option from nodeguard.proto * improved function comments in nodeguard.proto
- Loading branch information
Showing
6 changed files
with
192 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
##################### | ||
# Project variables # | ||
##################### | ||
|
||
# Version of this template | ||
TEMPLATE_VERSION := "0.1.1" | ||
# Project directory (relative to the justfile) | ||
PROJECT_DIR := 'src' | ||
# Docker directory | ||
DOCKER_DIR := 'docker' | ||
# Docker compose dev file name | ||
DOCKER_COMPOSE_FILE := 'docker-compose.yml' | ||
|
||
################## | ||
# Just variables # | ||
################## | ||
|
||
# Fallback to a justfile in a parent directory | ||
set fallback := true | ||
# Load .env file in the current directory | ||
set dotenv-load := true | ||
|
||
########### | ||
# Aliases # | ||
########### | ||
|
||
alias i := install | ||
alias b := build | ||
alias r := run | ||
alias t := test | ||
alias f := format | ||
alias ddb := drop-db | ||
alias am := add-migration | ||
alias rm := remove-migration | ||
alias du := docker-up | ||
alias ddn := docker-down | ||
alias drm := docker-rm | ||
|
||
####### | ||
# All# | ||
####### | ||
|
||
# Everything necessary to install the project | ||
[macos] | ||
install: | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
# Add your installation steps here | ||
|
||
########## | ||
# Dotnet # | ||
########## | ||
|
||
build: | ||
cd {{PROJECT_DIR}} && dotnet build | ||
|
||
run: | ||
cd {{PROJECT_DIR}} && dotnet run | ||
|
||
test: | ||
dotnet test | ||
|
||
format: | ||
dotnet format | ||
|
||
drop-db: | ||
cd {{PROJECT_DIR}} && dotnet ef database drop -f --context ApplicationDbContext | ||
add-license-cs: | ||
go install github.com/fbiville/headache/cmd/headache@latest | ||
headache --configuration ./configuration-cs.json | ||
add-migration name: | ||
cd {{PROJECT_DIR}} dotnet ef migrations add --context ApplicationDbContext {{name}} | ||
remove-migration: | ||
cd {{PROJECT_DIR}} dotnet ef migrations remove --context ApplicationDbContext | ||
mine: | ||
while true; do docker exec polar-n1-backend1 bitcoin-cli -regtest -rpcuser=polaruser -rpcpassword=polarpass -generate 1; sleep 60; done | ||
|
||
########## | ||
# Docker # | ||
########## | ||
|
||
# Builds and runs the development docker containers in the background, add DOCKER_COMPOSE_FILE to override the default file | ||
docker-up *args: | ||
cd {{DOCKER_DIR}} && docker compose -f {{DOCKER_COMPOSE_FILE}} up --build -d {{args}} | ||
|
||
# Stops the development docker containers, add DOCKER_COMPOSE_FILE to override the default file | ||
docker-down: | ||
cd {{DOCKER_DIR}} && docker compose -f {{DOCKER_COMPOSE_FILE}} down | ||
|
||
# Stops the development docker containers and removes the volumes, add DOCKER_COMPOSE_FILE to override the default file | ||
docker-rm: | ||
cd {{DOCKER_DIR}} && docker compose -f {{DOCKER_COMPOSE_FILE}} down -v |
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 |
---|---|---|
|
@@ -52,4 +52,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.