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] FINAL v0.47.x ==> v0.50.x #396

Merged
merged 55 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
7d36745
feat: delete conflicting directorys for re-scaffolding
Jan 25, 2024
23eb974
feat: comment out module mock generation code
Jan 25, 2024
321766b
chore: temporarily remove `testutil` pkg
bryanchriswhite Feb 6, 2024
fe49711
chore: temporarily remove `pkg` pkgs
bryanchriswhite Feb 6, 2024
9339896
chore: temporarily remove E2E tests
bryanchriswhite Feb 6, 2024
a2680d6
chore: re-scaffold `tools` pkg
bryanchriswhite Feb 6, 2024
4aeb680
chore: update `localnet_regenesis` Make target
bryanchriswhite Feb 6, 2024
bc8b821
chore: re-scaffold chain & ensure sequencer produces blocks
bryanchriswhite Feb 6, 2024
c9ba62c
chore: remove redundant .gitignore lines
bryanchriswhite Feb 2, 2024
5eaf296
chore: add shared service.proto to buf.gen.pulsar.yaml
bryanchriswhite Feb 2, 2024
2d01138
chore: add `yq` as a CI dep
bryanchriswhite Feb 7, 2024
617ab40
chore: use sequencer name & power from config.yml
bryanchriswhite Feb 7, 2024
84063d7
chore: use rollkit v0.11.19 cosmos-sdk
bryanchriswhite Feb 7, 2024
361a377
chore: update go.mod
bryanchriswhite Feb 7, 2024
49d161f
reconcile: app account address prefix
bryanchriswhite Feb 6, 2024
15ea3e8
[SDK Migration] Switch to celestia-da, bump rollkit, fix CI (#367)
okdas Feb 9, 2024
f2b2b85
chore: add `proto_clean_pulsar` make target
bryanchriswhite Feb 12, 2024
54e49b7
scaffold & reconcile: all modules
bryanchriswhite Feb 12, 2024
2ff5aeb
restore: pkg/*
bryanchriswhite Feb 16, 2024
3aea3f7
restore: e2e/*
bryanchriswhite Feb 16, 2024
f7b2187
restore: docusaurus
bryanchriswhite Feb 16, 2024
988f7f9
restore: off-chain testutil pkgs
bryanchriswhite Feb 16, 2024
70be125
restore: off-chain mock pkgs
bryanchriswhite Feb 16, 2024
fccef78
reconcile: off-chain proto types
bryanchriswhite Feb 16, 2024
dc13057
reconcile: off-chain & E2E with supplier/proof module split
bryanchriswhite Feb 16, 2024
50f9142
fix: encoding config depinject
bryanchriswhite Feb 16, 2024
67478be
fix: math imports
bryanchriswhite Feb 16, 2024
3248d32
reconcile: off-chain v0.50 breaking changes
bryanchriswhite Feb 16, 2024
009e2e7
fix: off-chain testutils
bryanchriswhite Feb 16, 2024
7948546
fix: localnet
bryanchriswhite Feb 16, 2024
7b3f6a2
chore: update go.mod
bryanchriswhite Feb 16, 2024
0aed7ae
chore: update openapi.yml
bryanchriswhite Feb 16, 2024
c966501
reconcile: add off-chain commands
red-0ne Feb 17, 2024
7407141
fix: block unmarshalling using upstream types
red-0ne Feb 17, 2024
22fb716
fix: add chain-id flag
red-0ne Feb 18, 2024
39da225
reconcile: Adapt transaction results
red-0ne Feb 18, 2024
6d10322
fix: tx client test
red-0ne Feb 18, 2024
30627bf
chore: gateway module review improvements
bryanchriswhite Feb 21, 2024
36ad3dd
chore: service module review improvements
red-0ne Feb 20, 2024
275387a
chore: application module review improvements
bryanchriswhite Feb 21, 2024
e71f512
chore: supplier module review improvements
red-0ne Feb 20, 2024
1df7a6a
chore: session module review improvements
red-0ne Feb 18, 2024
f82e60a
chore: proof module review improvements
red-0ne Feb 18, 2024
d008f57
chore: tokenomics module review improvements
red-0ne Feb 20, 2024
d20affb
chore: off-chain review improvements
red-0ne Feb 20, 2024
4cc23fe
chore: base review improvements
red-0ne Feb 20, 2024
689123b
trigger CI
bryanchriswhite Feb 21, 2024
5ea30ac
Merge branch 'main' into migration/base-restore
Olshansk Feb 22, 2024
2b6672e
`make go_test` works but a few TODOs:
Olshansk Feb 23, 2024
be076a9
Trying to get tilt running (not yet). Two frequent commands I need to…
Olshansk Feb 23, 2024
a07fcc6
Got `tilt up` working with a few hacky workaroudns:
Olshansk Feb 23, 2024
c806df3
E2E test functioning
Olshansk Feb 23, 2024
c2a0f12
[Makefile] Check if gnu grep and sed needs to be installed on MacOS (…
okdas Feb 23, 2024
0482dc9
Removed outdated doc files
Olshansk Feb 23, 2024
e637451
Remove TODO_IN_THIS_PR after running through reviewer.py a few times
Olshansk Feb 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
# TODO_TECHDEBT: upgrade to the latest Ignite (the latest at the moment of creating a note is 0.28). Need to downgrade to fix CI pipelines. Might be done in scope of #240.
run: |
# curl https://get.ignite.com/cli! | bash
wget https://github.com/ignite/cli/releases/download/v0.27.2/ignite_0.27.2_linux_amd64.tar.gz
tar -xzf ignite_0.27.2_linux_amd64.tar.gz
wget https://github.com/ignite/cli/releases/download/v28.2.0/ignite_28.2.0_linux_amd64.tar.gz
tar -xzf ignite_28.2.0_linux_amd64.tar.gz
sudo mv ignite /usr/local/bin/ignite
ignite version

Expand All @@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.10"
go-version: "1.21.6"

- name: Install CI dependencies
run: make install_ci_deps
Expand Down Expand Up @@ -103,11 +103,11 @@ jobs:
sparse-checkout: |
.github

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GKE_PROTOCOL_US_CENTRAL }}'
credentials_json: "${{ secrets.GKE_PROTOCOL_US_CENTRAL }}"

- uses: google-github-actions/get-gke-credentials@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ jobs:
reporter: github-check
level: warning
locale: "US"

# TODO_IMPROVE: Enforce using k.Logger() when logging in the `x/` directory code.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
# TODO_TECHDEBT: upgrade to the latest Ignite (the latest at the moment of creating a note is 0.28). Need to downgrade to fix CI pipelines. Might be done in scope of #240.
run: |
# curl https://get.ignite.com/cli! | bash
wget https://github.com/ignite/cli/releases/download/v0.27.2/ignite_0.27.2_linux_amd64.tar.gz
tar -xzf ignite_0.27.2_linux_amd64.tar.gz
wget https://github.com/ignite/cli/releases/download/v28.2.0/ignite_28.2.0_linux_amd64.tar.gz
tar -xzf ignite_28.2.0_linux_amd64.tar.gz
sudo mv ignite /usr/local/bin/ignite
ignite version

Expand All @@ -33,7 +33,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.10"
go-version: "1.21.6"

- name: Install CI dependencies
run: make install_ci_deps
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ localnet/*/config/*.json
# Frontend utils
ts-client/

# Proto artifacts
**/*.pb.go
**/*.pb.gw.go

# Mock
**/*_mock.go

Expand All @@ -64,6 +60,10 @@ localnet_config.yaml
# `docusaurus/docs/infrastructure/localnet.md`, please do!
# Ref: https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux
localnet_config.yaml-e
# These are needed to ignore byproducts of `make proto_fix_self_import`
# Since sed functions different on macOS and Linux, we need to implement
# some workarounds by always using "sed -i'' -e" instead of just "sed -i -e".
api/poktroll/**/*.go-E

# Relase artifacts produced by `ignite chain build --release`
release
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Run `asdf plugin add golang` and `asdf install` to install the dependencies,
# and `asdf current` to switch to the versions of dependencies listed below
golang 1.20.10
go 1.20.10
golang 1.21.6
go 1.21.6
6 changes: 3 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This Dockerfile is used to build container image for development purposes.
# It intentionally contains no security features, ships with code and troubleshooting tools.

FROM golang:1.20 as base
FROM golang:1.21.6 as base

RUN apt update && \
apt-get install -y \
ca-certificates net-tools kubernetes-client \
curl jq make vim less dnsutils
ca-certificates net-tools kubernetes-client \
curl jq make vim less dnsutils

# enable faster module downloading.
ENV GOPROXY https://proxy.golang.org
Expand Down
122 changes: 94 additions & 28 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ POKTROLLD_HOME ?= ./localnet/poktrolld
POCKET_NODE ?= tcp://127.0.0.1:36657 # The pocket rollup node (full node and sequencer in the localnet context)
APPGATE_SERVER ?= http://localhost:42069
POCKET_ADDR_PREFIX = pokt
CHAIN_ID = poktroll

####################
### Dependencies ###
Expand All @@ -17,6 +18,7 @@ install_ci_deps: ## Installs `mockgen` and other go tools
go install "github.com/golang/mock/[email protected]" && mockgen --version
go install github.com/golangci/golangci-lint/cmd/[email protected] && golangci-lint --version
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/mikefarah/yq/v4@latest

########################
### Makefile Helpers ###
Expand Down Expand Up @@ -51,11 +53,20 @@ check_go_version:
MAJOR_VERSION=$$(echo $$GO_VERSION | cut -d "." -f 1) && \
MINOR_VERSION=$$(echo $$GO_VERSION | cut -d "." -f 2) && \
\
if [ "$$MAJOR_VERSION" -ne 1 ] || [ "$$MINOR_VERSION" -ge 21 ] || [ "$$MINOR_VERSION" -le 18 ] ; then \
echo "Invalid Go version. Expected 1.19.x or 1.20.x but found $$GO_VERSION"; \
if [ "$$MAJOR_VERSION" -ne 1 ] || [ "$$MINOR_VERSION" -le 20 ] ; then \
echo "Invalid Go version. Expected 1.21.x or newer but found $$GO_VERSION"; \
exit 1; \
fi

.PHONY: check_ignite_version
# Internal helper target - check ignite version
check_ignite_version:
@version=$$(ignite version 2>/dev/null | grep 'Ignite CLI version:' | awk '{print $$4}') ; \
if [ "$$(printf "v28\n$$version" | sort -V | head -n1)" != "v28" ]; then \
echo "Error: Version $$version is less than v28. Exiting with error." ; \
exit 1 ; \
fi

.PHONY: check_act
# Internal helper target - check if `act` is installed
check_act:
Expand All @@ -76,7 +87,6 @@ check_gh:
fi; \
}


.PHONY: check_docker
# Internal helper target - check if docker is installed
check_docker:
Expand Down Expand Up @@ -117,6 +127,15 @@ check_jq:
fi; \
}

.PHONY: check_yq
# Internal helper target - check if `yq` is installed
check_yq:
{ \
if ( ! ( command -v yq >/dev/null )); then \
echo "Seems like you don't have `yq` installed. Make sure you install it before continuing"; \
exit 1; \
fi; \
}

.PHONY: check_node
# Internal helper target - check if node is installed
Expand All @@ -137,11 +156,40 @@ warn_destructive: ## Print WARNING to the user
### Proto Helpers ####
#######################

.PHONY: proto_regen
proto_regen: ## Delete existing protobuf artifacts and regenerate them
find . \( -name "*.pb.go" -o -name "*.pb.gw.go" \) | xargs --no-run-if-empty rm
.PHONY: proto_ignite_gen
proto_ignite_gen: ## Generate protobuf artifacts using ignite
ignite generate proto-go --yes

# TODO_IN_THIS_PR: Understand why Olshansky needs to run `gco api/poktroll/application/genesis.pulsar.go api/poktroll/application/query.pulsar.go api/poktroll/session/query.pulsar.go`
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
# TODO_IN_THIS_PR: Filter for `*.go` files
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
.PHONY: proto_fix_self_import
proto_fix_self_import: ## TODO_IN_THIS_PR: explain
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
@for dir in $(wildcard ./api/poktroll/*/); do \
module=$$(basename $$dir); \
echo "Processing module $$module"; \
ggrep -lRP '\s+'$$module' "github.com/pokt-network/poktroll/api/poktroll/'$$module'"' ./api/poktroll/$$module | while read -r file; do \
echo "Modifying file: $$file"; \
gsed -i'' -E 's,^[[:space:]]+'$$module'[[:space:]]+"github.com/pokt-network/poktroll/api/poktroll/'$$module'",,' "$$file"; \
gsed -i 's,'$$module'\.,,g' "$$file"; \
done; \
done

.PHONY: proto_clean
proto_clean: ## Delete existing .pb.go or .pb.gw.go files
find . \( -name "*.pb.go" -o -name "*.pb.gw.go" \) | xargs --no-run-if-empty rm

# TODO_IN_THIS_PR: Can we consolidate this with `proto_clean` and use proper make targets instead of $(MAKE)?
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
.PHONY: proto_clean_pulsar
proto_clean_pulsar: ## TODO_IN_THIS_PR: explain...
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
@find ./ -name "*.go" | xargs --no-run-if-empty gsed -i -E 's,(^[[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),///\1,'
find ./ -name "*.pulsar.go*" | xargs --no-run-if-empty rm
$(MAKE) proto_regen
find ./ -name "*.go" | xargs --no-run-if-empty gsed -i -E 's,^///([[:space:]_[:alnum:]]+"github.com/pokt-network/poktroll/api.+"),\1,'

# TODO_IN_THIS_PR: Unclear where/when we shold be calling `proto_clean_pulsar`
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
.PHONY: proto_regen
proto_regen: proto_clean proto_ignite_gen proto_fix_self_import ## Regenerate protobuf artifacts

#######################
### Docker Helpers ###
#######################
Expand All @@ -158,23 +206,38 @@ docker_wipe: check_docker warn_destructive prompt_user ## [WARNING] Remove all t
########################

.PHONY: localnet_up
localnet_up: ## Starts localnet
make localnet_regenesis
localnet_up: proto_regen localnet_regenesis## Starts localnet
tilt up

.PHONY: localnet_down
localnet_down: ## Delete resources created by localnet
tilt down
kubectl delete secret celestia-secret || exit 1

.PHONY: localnet_regenesis
localnet_regenesis: acc_initialize_pubkeys_warn_message ## Regenerate the localnet genesis file
localnet_regenesis: check_yq acc_initialize_pubkeys_warn_message ## Regenerate the localnet genesis file
# NOTE: intentionally not using --home <dir> flag to avoid overwriting the test keyring
ignite chain init
mkdir -p $(POKTROLLD_HOME)/config/
cp -r ${HOME}/.poktroll/keyring-test $(POKTROLLD_HOME)
cp ${HOME}/.poktroll/config/*_key.json $(POKTROLLD_HOME)/config/
cp ${HOME}/.poktroll/config/genesis.json $(POKTROLLD_HOME)/config/
# TODO_TECHDEBT: Currently the stake => power calculation is constant; however, cosmos-sdk
# intends to make this parameterizable in the future.
@echo "Initializing chain..."
@set -e ;\
ignite chain init --skip-proto ;\
mkdir -p $(POKTROLLD_HOME)/config/ ;\
cp -r ${HOME}/.poktroll/keyring-test $(POKTROLLD_HOME) ;\
cp ${HOME}/.poktroll/config/*_key.json $(POKTROLLD_HOME)/config/ ;\
ADDRESS=$$(jq -r '.address' $(POKTROLLD_HOME)/config/priv_validator_key.json) ;\
PUB_KEY=$$(jq -r '.pub_key' $(POKTROLLD_HOME)/config/priv_validator_key.json) ;\
POWER=$$(yq -r ".validators[0].bonded" ./config.yml | sed 's,000000upokt,,') ;\
NAME=$$(yq -r ".validators[0].name" ./config.yml) ;\
echo "Regenerating genesis file with new validator..." ;\
jq --argjson pubKey "$$PUB_KEY" '.consensus["validators"]=[{"address": "'$$ADDRESS'", "pub_key": $$pubKey, "power": "'$$POWER'", "name": "'$$NAME'"}]' ${HOME}/.poktroll/config/genesis.json > temp.json ;\
mv temp.json ${HOME}/.poktroll/config/genesis.json ;\
cp ${HOME}/.poktroll/config/genesis.json $(POKTROLLD_HOME)/config/ ;\

.PHONY: send_relay
send_relay:
curl -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
http://localhost:42069/anvil

# TODO_BLOCKER(@okdas): Figure out how to copy these over w/ a functional state.
# cp ${HOME}/.poktroll/config/app.toml $(POKTROLLD_HOME)/config/app.toml
Expand Down Expand Up @@ -231,6 +294,7 @@ go_mockgen: ## Use `mockgen` to generate mocks used for testing purposes of all
go generate ./x/supplier/types/
go generate ./x/session/types/
go generate ./x/service/types/
go generate ./x/proof/types/
go generate ./x/tokenomics/types/
go generate ./pkg/client/interface.go
go generate ./pkg/miner/interface.go
Expand All @@ -246,13 +310,14 @@ go_testgen_accounts: ## Generate test accounts for usage in test environments
go generate ./testutil/testkeyring/keyring.go

.PHONY: go_develop
go_develop: proto_regen go_mockgen ## Generate protos and mocks
go_develop: check_ignite_version proto_regen go_mockgen ## Generate protos and mocks

## TODO_IN_THIS_PR: Make this work again
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
.PHONY: go_develop_and_test
go_develop_and_test: go_develop go_test ## Generate protos, mocks and run all tests

.PHONY: load_test_simple
load_test_simple: ## Runs the simpliest load test through the whole stack (appgate -> relayminer -> anvil)
load_test_simple: ## Runs the simplest load test through the whole stack (appgate -> relayminer -> anvil)
k6 run load-testing/tests/appGateServerEtherium.js

#############
Expand Down Expand Up @@ -317,7 +382,7 @@ gateway_list: ## List all the staked gateways

.PHONY: gateway_stake
gateway_stake: ## Stake tokens for the gateway specified (must specify the gateway env var)
poktrolld --home=$(POKTROLLD_HOME) tx gateway stake-gateway --config $(POKTROLLD_HOME)/config/$(STAKE) --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx gateway stake-gateway --config $(POKTROLLD_HOME)/config/$(STAKE) --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: gateway1_stake
gateway1_stake: ## Stake gateway1
Expand All @@ -333,7 +398,7 @@ gateway3_stake: ## Stake gateway3

.PHONY: gateway_unstake
gateway_unstake: ## Unstake an gateway (must specify the GATEWAY env var)
poktrolld --home=$(POKTROLLD_HOME) tx gateway unstake-gateway --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx gateway unstake-gateway --keyring-backend test --from $(GATEWAY) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: gateway1_unstake
gateway1_unstake: ## Unstake gateway1
Expand All @@ -357,7 +422,7 @@ app_list: ## List all the staked applications

.PHONY: app_stake
app_stake: ## Stake tokens for the application specified (must specify the APP and SERVICES env vars)
poktrolld --home=$(POKTROLLD_HOME) tx application stake-application --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(APP) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx application stake-application --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: app1_stake
app1_stake: ## Stake app1 (also staked in genesis)
Expand All @@ -373,7 +438,7 @@ app3_stake: ## Stake app3

.PHONY: app_unstake
app_unstake: ## Unstake an application (must specify the APP env var)
poktrolld --home=$(POKTROLLD_HOME) tx application unstake-application --keyring-backend test --from $(APP) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx application unstake-application --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: app1_unstake
app1_unstake: ## Unstake app1
Expand All @@ -389,7 +454,7 @@ app3_unstake: ## Unstake app3

.PHONY: app_delegate
app_delegate: ## Delegate trust to a gateway (must specify the APP and GATEWAY_ADDR env vars). Requires the app to be staked
poktrolld --home=$(POKTROLLD_HOME) tx application delegate-to-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx application delegate-to-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: app1_delegate_gateway1
app1_delegate_gateway1: ## Delegate trust to gateway1
Expand All @@ -408,7 +473,7 @@ app3_delegate_gateway3: ## Delegate trust to gateway3

.PHONY: app_undelegate
app_undelegate: ## Undelegate trust to a gateway (must specify the APP and GATEWAY_ADDR env vars). Requires the app to be staked
poktrolld --home=$(POKTROLLD_HOME) tx application undelegate-from-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx application undelegate-from-gateway $(GATEWAY_ADDR) --keyring-backend test --from $(APP) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: app1_undelegate_gateway1
app1_undelegate_gateway1: ## Undelegate trust to gateway1
Expand All @@ -435,7 +500,7 @@ supplier_list: ## List all the staked supplier

.PHONY: supplier_stake
supplier_stake: ## Stake tokens for the supplier specified (must specify the SUPPLIER and SUPPLIER_CONFIG env vars)
poktrolld --home=$(POKTROLLD_HOME) tx supplier stake-supplier --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx supplier stake-supplier --config $(POKTROLLD_HOME)/config/$(SERVICES) --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: supplier1_stake
supplier1_stake: ## Stake supplier1 (also staked in genesis)
Expand All @@ -451,7 +516,7 @@ supplier3_stake: ## Stake supplier3

.PHONY: supplier_unstake
supplier_unstake: ## Unstake an supplier (must specify the SUPPLIER env var)
poktrolld --home=$(POKTROLLD_HOME) tx supplier unstake-supplier --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx supplier unstake-supplier --keyring-backend test --from $(SUPPLIER) --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: supplier1_unstake
supplier1_unstake: ## Unstake supplier1
Expand Down Expand Up @@ -537,11 +602,12 @@ acc_initialize_pubkeys: ## Make sure the account keeper has public keys for all
$(addr) $(PNF_ADDR) 1000upokt \
--yes \
--home=$(POKTROLLD_HOME) \
--node $(POCKET_NODE);)
--node $(POCKET_NODE) \
--chain-id $(CHAIN_ID);)

.PHONY: acc_initialize_pubkeys_warn_message
acc_initialize_pubkeys_warn_message: ## Print a warning message about the need to run `make acc_initialize_pubkeys`
@printf "!!! YOU MUST RUN THE FOLLOWING COMMAND ONCE FOR E2E TESTS TO WORK AFTER THE NETWORK HAS STARTED!!!\n"\
@printf "!!!!!!!!! YOU MUST RUN THE FOLLOWING COMMAND ONCE FOR E2E TESTS TO WORK AFTER THE NETWORK HAS STARTED !!!!!!!!!\n"\
"\t\tmake acc_initialize_pubkeys\n"

##############
Expand Down Expand Up @@ -592,7 +658,7 @@ MODULES := application gateway pocket service session supplier tokenomics
# TODO_IMPROVE(#322): Improve once we decide how to handle parameter updates
.PHONY: update_tokenomics_params
update_tokenomics_params: ## Update the tokenomics module params
poktrolld --home=$(POKTROLLD_HOME) tx tokenomics update-params 43 --keyring-backend test --from pnf --node $(POCKET_NODE)
poktrolld --home=$(POKTROLLD_HOME) tx tokenomics update-params 43 --keyring-backend test --from pnf --node $(POCKET_NODE) --chain-id $(CHAIN_ID)

.PHONY: query_all_params
query_all_params: check_jq ## Query the params from all available modules
Expand Down
Loading
Loading