-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from Topl/dev
0.4 upstream dev to main
- Loading branch information
Showing
123 changed files
with
11,577 additions
and
575 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
all: lint format | ||
|
||
# Adding a help file: https://gist.github.com/prwhite/8168133#gistcomment-1313022 | ||
help: ## This help dialog. | ||
@IFS=$$'\n' ; \ | ||
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//'`); \ | ||
for help_line in $${help_lines[@]}; do \ | ||
IFS=$$'#' ; \ | ||
help_split=($$help_line) ; \ | ||
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \ | ||
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \ | ||
printf "%-30s %s\n" $$help_command $$help_info ; \ | ||
done | ||
|
||
build_web: | ||
@flutter clean | ||
@npm install | ||
@npm run build | ||
@flutter pub get | ||
@flutter build web --web-renderer html --csp --release | ||
|
||
run_unit: ## Runs unit tests | ||
@echo "╠ Running the tests" | ||
@flutter test || (echo "Error while running tests"; exit 1) | ||
|
||
clean: ## Cleans the environment | ||
@echo "╠ Cleaning the project..." | ||
@rm -rf pubspec.lock | ||
@flutter clean | ||
@flutter pub get | ||
fix_warnings: ## fix any warnings | ||
@echo "╠ Attempting to fix warnings..." | ||
@dart fix --dry-run | ||
@dart fix --apply | ||
watch: ## Watches the files for changes | ||
@echo "╠ Watching the project..." | ||
@flutter pub run build_runner watch --delete-conflicting-outputs | ||
|
||
|
||
gen: ## Generates the assets | ||
@echo "╠ Generating the assets..." | ||
@flutter pub get | ||
@fluttergen | ||
@flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
format: ## Formats the code | ||
@echo "╠ Formatting the code" | ||
@dart format lib . | ||
@flutter pub run import_sorter:main | ||
@flutter format lib | ||
|
||
lint: ## Lints the code | ||
@echo "╠ Verifying code..." | ||
@dart analyze . || (echo "Error in project"; exit 1) | ||
|
||
upgrade: clean ## Upgrades dependencies | ||
@echo "╠ Upgrading dependencies..." | ||
@flutter pub upgrade | ||
|
||
commit: format lint run_unit | ||
@echo "╠ Committing..." | ||
git add . | ||
git commit | ||
|
||
analyze: | ||
flutter run dart_code_metrics:metrics analyze lib | ||
|
||
ditto: | ||
echo "hello world" |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
source_path=$1 | ||
|
||
mkdir -p ./lib/genus/generated | ||
|
||
protoc --dart_out=grpc:./lib/genus/generated \ | ||
-I $source_path \ | ||
$source_path/types.proto \ | ||
$source_path/filters.proto \ | ||
$source_path/transactions_query.proto \ | ||
$source_path/blocks_query.proto \ | ||
$source_path/transactions_subscription.proto \ | ||
$source_path/blocks_subscription.proto \ | ||
$source_path/services_types.proto | ||
|
||
|
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
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
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
Oops, something went wrong.