-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs/diagrams
- Loading branch information
Showing
493 changed files
with
70,659 additions
and
10,360 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,10 @@ | ||
# This Dockerfile is used to build container image for development purposes. | ||
# It intentionally contains no security features, ships with code and troubleshooting tools. | ||
|
||
FROM mcr.microsoft.com/devcontainers/go:1-1.22-bookworm | ||
|
||
RUN curl https://get.ignite.com/cli | bash | ||
RUN mv ignite /usr/local/bin/ | ||
|
||
# enable faster module downloading. | ||
ENV GOPROXY https://proxy.golang.org |
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,22 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/go | ||
{ | ||
"name": "Go", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"build": { "dockerfile": "Dockerfile" }, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "go install \"github.com/golang/mock/[email protected]\"" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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,28 @@ | ||
# This file contains environment variables that are used in the development environment. | ||
# It is a copy of what's in the Makefile but makes local development easier through | ||
# a simple `source .env.dev` command. | ||
|
||
POKTROLLD_HOME=./localnet/poktrolld | ||
# The pocket node (validator in the localnet context) | ||
POCKET_NODE=tcp://127.0.0.1:26657 | ||
# TestNet RPC endpoint for validator maintained by Grove. Needs to be updated if there's another "primary" testnet. | ||
TESTNET_RPC=https://testnet-validated-validator-rpc.poktroll.com/ | ||
APPGATE_SERVER=http://localhost:42069 | ||
GATEWAY_URL=http://localhost:42079 | ||
POCKET_ADDR_PREFIX=pokt | ||
CHAIN_ID=poktroll | ||
|
||
# The domain ending in ".town" is staging, ".city" is production | ||
GROVE_GATEWAY_STAGING_ETH_MAINNET=https://eth-mainnet.rpc.grove.town | ||
# The "protocol" field here instructs the Grove gateway which network to use | ||
JSON_RPC_DATA_ETH_BLOCK_HEIGHT='{"protocol": "shannon-testnet","jsonrpc":"2.0","id":"0","method":"eth_blockNumber", "params": []}' | ||
|
||
# On-chain module account addresses. Search for `func TestModuleAddress` in the | ||
# codebase to get an understanding of how we got these values. | ||
APPLICATION_MODULE_ADDRESS=pokt1rl3gjgzexmplmds3tq3r3yk84zlwdl6djzgsvm | ||
SUPPLIER_MODULE_ADDRESS=pokt1j40dzzmn6cn9kxku7a5tjnud6hv37vesr5ccaa | ||
GATEWAY_MODULE_ADDRESS=pokt1f6j7u6875p2cvyrgjr0d2uecyzah0kget9vlpl | ||
SERVICE_MODULE_ADDRESS=pokt1nhmtqf4gcmpxu0p6e53hpgtwj0llmsqpxtumcf | ||
GOV_ADDRESS=pokt10d07y265gmmuvt4z0w9aw880jnsr700j8yv32t | ||
# PNF acts on behalf of the DAO and who AUTHZ must delegate to | ||
PNF_ADDRESS=pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
temperature: 0.5 | ||
maxTokens: 4096 | ||
--- | ||
<system> | ||
You are a principal software engineer. | ||
</system> | ||
|
||
{{{ input }}} | ||
|
||
You have been provided two files: | ||
1. A source code file | ||
2. A unit test file | ||
|
||
Please provide a list of unit test names/descriptions that you believe | ||
are still missing. Do not actually implement them. |
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,17 @@ | ||
temperature: 0.5 | ||
maxTokens: 4096 | ||
--- | ||
<system> | ||
You are a principal software engineer. | ||
</system> | ||
|
||
{{{ input }}} | ||
|
||
Write unit tests for the code selected., following each of these instructions: | ||
- Follow the best and latests practices of golang | ||
- Where appropriate use `github.com/stretchr/testify/require` | ||
- If necessary, create a tests struct to iterate over: `tests := []struct { | ||
- Include at least 2 edge cases and 5 core cases | ||
- The tests should be complete and sophisticated | ||
- Give the tests just as chat output, don't edit any file | ||
- Just give the code, no need for an explanation |
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.