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] Session module #382

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
16e9499
scaffold: module session --dep account,bank,application,supplier
red-0ne Feb 12, 2024
9ce6bf4
scaffold: query get-session --module session
red-0ne Feb 12, 2024
f0c1688
reconcile: session related proto files
red-0ne Feb 12, 2024
b3e4b98
reconcile: Migrate session module related functionality
red-0ne Feb 13, 2024
a398c8a
reconcile: fix bad pulsar and missing app imports
red-0ne Feb 14, 2024
6e8c677
reconcile: remove duplicate supplier test util
red-0ne Feb 14, 2024
fa985bc
reconcile: adapt store usage
red-0ne Feb 14, 2024
7b60cd0
reconcile: make query_get_session test pass
red-0ne Feb 14, 2024
6e9d25d
reconcile: Get block hash
red-0ne Feb 14, 2024
6a53d09
reconcile: Add proto fix self import
red-0ne Feb 14, 2024
44359b9
reconcile: fix linting
red-0ne Feb 14, 2024
3e8f7d2
chore: remove diffs with main
red-0ne Feb 14, 2024
dbf52d9
chore: fix import order
red-0ne Feb 14, 2024
7344c99
chore: fix error name
red-0ne Feb 14, 2024
0e14b24
reconcile: add cmd long description
red-0ne Feb 14, 2024
dbc5ef2
reconcile: rearrange to match main
red-0ne Feb 14, 2024
b910f61
chore: comply with linter
red-0ne Feb 14, 2024
24f6618
chore: revert BankKeeper interface
red-0ne Feb 15, 2024
4dbc4d5
chore: rename block hash store key
red-0ne Feb 15, 2024
93ae83f
chore: make example more readable
red-0ne Feb 15, 2024
80c996c
fix: autocli positional argument names
red-0ne Feb 15, 2024
d670f36
fix: CLI overrides
bryanchriswhite Feb 16, 2024
51f021e
fix: use appropriate methods for block hash storage
red-0ne Feb 18, 2024
84d6083
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
15 changes: 14 additions & 1 deletion 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

.PHONY: proto_clean_pulsar
proto_clean_pulsar: ## TODO: explain...
Expand Down Expand Up @@ -247,7 +260,7 @@ go_mockgen: ## Use `mockgen` to generate mocks used for testing purposes of all
go generate ./x/application/types/
go generate ./x/gateway/types/
go generate ./x/supplier/types/
# go generate ./x/session/types/
go generate ./x/session/types/
go generate ./x/service/types/
# go generate ./x/tokenomics/types/
go generate ./pkg/client/interface.go
Expand Down
64 changes: 32 additions & 32 deletions api/poktroll/application/genesis.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading