From 3bbec0ebedb418598ab0cee1617434bddeef0008 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Tue, 24 Dec 2024 11:36:02 -0500 Subject: [PATCH] refactor: simplify Taskfile and remove unused chain configurations --- Taskfile.yml | 24 ++++------ chains/README.md | 10 ---- chains/ibc-testnet.json | 103 ---------------------------------------- chains/testnet.json | 83 -------------------------------- 4 files changed, 10 insertions(+), 210 deletions(-) delete mode 100644 chains/README.md delete mode 100644 chains/ibc-testnet.json delete mode 100644 chains/testnet.json diff --git a/Taskfile.yml b/Taskfile.yml index c27576e5c..77c86f5b3 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -51,35 +51,31 @@ tasks: - for: { var: DEPS } cmd: gum spin --spinner dot --title "Installing go dependencies..." -- go install {{.ITEM}} - new-issue: + issue:list: + desc: List all issues + silent: true + cmds: + - gh ils + + issue:new: desc: Create a new issue silent: true dir: .github/scripts cmds: - sh new_issue.sh - pkl-gen: - desc: Generate PKL files - silent: true - dir: "pkl/sonr.net" - vars: - FILES: ["Hway.pkl", "Motr.pkl", "UCAN.pkl"] - cmds: - - for: { var: FILES } - cmd: gum spin --spinner dot --title "Generating PKL in Go..." -- pkl-gen-go {{.ITEM}} - - proto-gen: + gen:proto: desc: Generate proto files silent: true cmd: gum spin --spinner dot --title "Generating Protobufs..." -- make proto-gen - sqlc-gen: + gen:sqlc: desc: Generate SQLC files silent: true cmds: - gum spin --spinner dot --title "Generating SQLC..." -- sqlc generate -f internal/database/sqlc.yaml - templ-gen: + gen:templ: desc: Generate templ files silent: true cmd: gum spin --spinner dot --title "Generating Templ..." -- templ generate diff --git a/chains/README.md b/chains/README.md deleted file mode 100644 index 523c6f3e2..000000000 --- a/chains/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Local Interchain Configurations - -RUN: -- `make testnet` *(full setup: docker image, binary, keys, and ibc testnet start)* -- `spawn local-ic start testnet` *(Standalone start)* - -## Documentation - -* https://github.com/strangelove-ventures/interchaintest/tree/main/local-interchain - diff --git a/chains/ibc-testnet.json b/chains/ibc-testnet.json deleted file mode 100644 index d315a3cbe..000000000 --- a/chains/ibc-testnet.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "chains": [ - { - "name": "core", - "ibc_paths": ["ibc-connection-1"], - "chain_id": "chainid-1", - "denom": "usnr", - "binary": "sonrd", - "bech32_prefix": "idx", - "docker_image": { - "repository": "core", - "version": "local" - }, - "gas_prices": "0usnr", - "chain_type": "cosmos", - "coin_type": 118, - "trusting_period": "336h", - "gas_adjustment": 1.5, - "number_vals": 1, - "number_node": 0, - "debugging": true, - "block_time": "1000ms", - "host_port_override": { - "26657": "26657", - "1317": "1317", - "9090": "9090" - }, - "encoding-options": ["wasm", "tokenfactory"], - "config_file_overrides": [ - { - "file": "config/config.toml", - "paths": { - "moniker": "localvalmoniker", - "rpc.cors_allowed_origins": ["*"] - } - } - ], - "genesis": { - "modify": [ - { - "key": "app_state.gov.params.voting_period", - "value": "15s" - }, - { - "key": "app_state.gov.params.expedited_voting_period", - "value": "10s" - }, - { - "key": "app_state.gov.params.max_deposit_period", - "value": "15s" - }, - { - "key": "app_state.gov.params.min_deposit.0.denom", - "value": "usnr" - }, - { - "key": "app_state.gov.params.min_deposit.0.amount", - "value": "1" - } - ], - "accounts": [ - { - "name": "acc0", - "address": "idx1hj5fveer5cjtn4wd6wstzugjfdxzl0xpecp0nd", - "amount": "10000000000usnr", - "mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry" - }, - { - "name": "acc1", - "address": "idx1efd63aw40lxf3n4mhf7dzhjkr453axur9vjt6y", - "amount": "10000000000usnr", - "mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise" - } - ], - "startup_commands": [] - } - }, - { - "name": "gaia", - "chain_id": "localcosmos-1", - "denom": "uatom", - "binary": "gaiad", - "bech32_prefix": "cosmos", - "docker_image": { - "version": "v9.1.0" - }, - "block_time": "1000ms", - "gas_prices": "0%DENOM%", - "gas_adjustment": 2.0, - "ibc_paths": ["ibc-connection-1"], - "genesis": { - "accounts": [ - { - "name": "acc0", - "address": "cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr", - "amount": "10000000%DENOM%", - "mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry" - } - ] - } - } - ] -} \ No newline at end of file diff --git a/chains/testnet.json b/chains/testnet.json deleted file mode 100644 index 74880d25b..000000000 --- a/chains/testnet.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "chains": [ - { - "name": "core", - "chain_id": "chainid-1", - "denom": "usnr", - "binary": "sonrd", - "bech32_prefix": "idx", - "docker_image": { - "repository": "ghcr.io/onsonr/sonr", - "version": "local" - }, - "gas_prices": "0usnr", - "chain_type": "cosmos", - "coin_type": 118, - "trusting_period": "336h", - "gas_adjustment": 1.5, - "number_vals": 1, - "number_node": 0, - "debugging": true, - "block_time": "1000ms", - "host_port_override": { - "26657": "26657", - "1317": "1317", - "9090": "9090" - }, - "encoding-options": [ - "wasm", - "tokenfactory" - ], - "config_file_overrides": [ - { - "file": "config/config.toml", - "paths": { - "moniker": "florence", - "rpc.cors_allowed_origins": [ - "*" - ] - } - } - ], - "genesis": { - "modify": [ - { - "key": "app_state.gov.params.voting_period", - "value": "15s" - }, - { - "key": "app_state.gov.params.expedited_voting_period", - "value": "10s" - }, - { - "key": "app_state.gov.params.max_deposit_period", - "value": "15s" - }, - { - "key": "app_state.gov.params.min_deposit.0.denom", - "value": "usnr" - }, - { - "key": "app_state.gov.params.min_deposit.0.amount", - "value": "1" - } - ], - "accounts": [ - { - "name": "acc0", - "address": "idx1hj5fveer5cjtn4wd6wstzugjfdxzl0xpecp0nd", - "amount": "10000000000usnr", - "mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry" - }, - { - "name": "acc1", - "address": "idx1efd63aw40lxf3n4mhf7dzhjkr453axur9vjt6y", - "amount": "10000000000usnr", - "mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise" - } - ], - "startup_commands": [] - } - } - ] -}