-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(auth): change
logout
to logoutKGW
To reflect the change between kwild private mode auth and KGW auth, the `auth.logout` method is now `auth.logoutKGW`, as the JSON-RPC method it uses is only available on KGW. BREAKING CHANGE: `auth.logout` is now `auth.logoutKGW` Kwil.call refactor for public, kgw, private. Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com> ci fix. Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com> cleanup, remove unnecessary calls (#94) Fix KGW double error bug in NodeKwil and fix CI to run in private and public mode. Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com> CI fix and ActionInput bug fix. Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com> CI fix. Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com> CI package lock test. Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com> CI hasFiles package lock json fix. Signed-off-by: Ty D'Angelo <tydangelo18@gmail.com>
- Loading branch information
Showing
23 changed files
with
940 additions
and
616 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,78 @@ | ||
version: "3" | ||
|
||
volumes: | ||
pgkwil: | ||
driver: local | ||
|
||
services: | ||
pg: | ||
container_name: postgres-kwild-single | ||
image: kwildb/postgres:16.4-1 | ||
ports: | ||
- "15432:5432" | ||
restart: always | ||
user: postgres | ||
environment: | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
POSTGRES_INITDB_ARGS: --data-checksums | ||
# Setting user/pass/db works, but we use docker-entrypoint-initdb.d instead for more control | ||
# POSTGRES_USER: kwild | ||
# POSTGRES_PASSWORD: kwild | ||
# POSTGRES_DB: kwild | ||
volumes: | ||
- pgkwil:/var/lib/postgresql/data | ||
networks: | ||
kwilnet0: | ||
ipv4_address: 172.5.100.3 | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready"] | ||
interval: 2s | ||
timeout: 6s | ||
retries: 10 | ||
|
||
kwild: | ||
container_name: kwild-single | ||
image: kwild:latest | ||
build: | ||
context: ../../../ | ||
dockerfile: ./build/package/docker/kwild.dockerfile | ||
ports: | ||
- "8484:8484" | ||
- "26656:26656" | ||
- "26657:26657" | ||
environment: | ||
- LOG=${LOG:-cometbft.log} | ||
- KWILD_HOME=/app/.kwild | ||
volumes: | ||
- ./testnode/:/app/.kwild/ | ||
depends_on: | ||
pg: | ||
condition: service_healthy | ||
networks: | ||
kwilnet0: | ||
ipv4_address: 172.5.100.2 | ||
command: | | ||
--autogen | ||
--root-dir=/app/.kwild | ||
--app.private-rpc | ||
--log.level=debug | ||
--app.admin-listen-addr=/tmp/admin.socket | ||
--chain.p2p.external-address=tcp://0.0.0.0:26656 | ||
--chain.rpc.listen-addr=tcp://0.0.0.0:26657 | ||
--app.pg-db-host=172.5.100.3 | ||
--app.pg-db-port=5432 | ||
--app.pg-db-user=kwild | ||
--app.pg-db-pass=kwild | ||
healthcheck: | ||
test: ["CMD", "curl", "--fail-with-body", "-s", "http://127.0.0.1:8484/api/v1/health/user"] | ||
interval: 2s | ||
timeout: 6s | ||
retries: 10 | ||
|
||
networks: | ||
kwilnet0: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.5.100.0/23 |
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 |
---|---|---|
|
@@ -11,4 +11,5 @@ yarn.lock | |
/pkg | ||
testapp/node_modules | ||
/.husky | ||
.DS_Store | ||
.DS_Store | ||
.npmrc |
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.