Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Migration Review - DO NOT MERGE] Session module #386

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
bf404f2
scaffold: module session --dep account,bank,application,supplier
red-0ne Feb 12, 2024
a9d3768
scaffold: query get-session --module session
red-0ne Feb 12, 2024
d5338d2
reconcile: session related proto files
red-0ne Feb 12, 2024
f95c5a2
reconcile: Migrate session module related functionality
red-0ne Feb 13, 2024
9b4a8a1
reconcile: fix bad pulsar and missing app imports
red-0ne Feb 14, 2024
c045875
reconcile: remove duplicate supplier test util
red-0ne Feb 14, 2024
37a3e29
reconcile: adapt store usage
red-0ne Feb 14, 2024
fced17e
reconcile: make query_get_session test pass
red-0ne Feb 14, 2024
960381c
reconcile: Get block hash
red-0ne Feb 14, 2024
907a190
reconcile: Add proto fix self import
red-0ne Feb 14, 2024
c5bcbd4
reconcile: fix linting
red-0ne Feb 14, 2024
fb93815
chore: remove diffs with main
red-0ne Feb 14, 2024
7e1ab01
chore: fix import order
red-0ne Feb 14, 2024
0bfe2ae
chore: fix error name
red-0ne Feb 14, 2024
5a410fa
reconcile: add cmd long description
red-0ne Feb 14, 2024
1e137f4
reconcile: rearrange to match main
red-0ne Feb 14, 2024
ec5e69d
chore: comply with linter
red-0ne Feb 14, 2024
1032cf4
chore: revert BankKeeper interface
red-0ne Feb 15, 2024
090e985
chore: rename block hash store key
red-0ne Feb 15, 2024
5877ac7
chore: make example more readable
red-0ne Feb 15, 2024
929b6f8
fix: autocli positional argument names
red-0ne Feb 15, 2024
fa058b8
fix: use appropriate methods for block hash storage
red-0ne Feb 18, 2024
d38d4f6
chore: session module review improvements
red-0ne Feb 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,19 @@ warn_destructive: ## Print WARNING to the user
proto_regen: ## Delete existing protobuf artifacts and regenerate them
find . \( -name "*.pb.go" -o -name "*.pb.gw.go" \) | xargs --no-run-if-empty rm
ignite generate proto-go --yes
$(MAKE) proto_fix_self_import

.PHONY: proto_fix_self_import
proto_fix_self_import: ## TODO: explain
@for dir in $(wildcard ./api/poktroll/*/); do \
module=$$(basename $$dir); \
echo "Processing module $$module"; \
grep -lRP '\s+'$$module' "github.com/pokt-network/poktroll/api/poktroll/'$$module'"' ./api/poktroll/$$module | while read -r file; do \
echo "Modifying file: $$file"; \
sed -i -E 's,^[[:space:]]+'$$module'[[:space:]]+"github.com/pokt-network/poktroll/api/poktroll/'$$module'",,' "$$file"; \
sed -i 's,'$$module'\.,,g' "$$file"; \
done; \
done

#######################
### Docker Helpers ###
Expand Down
Loading
Loading