Skip to content

Commit

Permalink
Added Osmosis testnet and localnet settings into default populated ch…
Browse files Browse the repository at this point in the history
…ain configs
  • Loading branch information
spoo-bar committed Jul 31, 2022
1 parent f0ca96e commit fa21c98
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ Its **v1.0.0**!!
- Contract context menu actions to update contract admin and to remove contract admin.
- Added [#10](https://github.com/spoo-bar/cosmy-wasmy/issues/10) - Developers can add small notes and comments to their imported contracts. The added notes are shown on hovering over the contracts in the sidebar contract view. The notes supports markdown. Note : The added notes are only for the dev view, this info is not stored on chain.
- Added [#11](https://github.com/spoo-bar/cosmy-wasmy/issues/11) - Block explorer link added to the account view. If set up, the icon opens the account in a block explorer in the default browser

- Added Osmosis testnet and localnet settings into default populated chain configs

### Changed

- Fixed [#5](https://github.com/spoo-bar/cosmy-wasmy/issues/5) - When a contract is imported, it is automatically associated with the chain config it was imported with.
- Contract view does not show contracts which were imported under othes chain configs. Only current config contracts or contracts with no config are shown.
- The icons used in extension are now vscode theme-icons and not custom svgs.
- The warning text when `rust-lang.rust-analyzer` is not installed now shows the link to marketplace to download the extention.
- Docs are a bit more organized now, or maybe they are worse. idk. let me know in the comment section below 👇🏻



Expand Down
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Extension Configuration

**[Juno uni-3 testnet](https://testnet.ping.pub/juno)** config and **[Juno Localnet](https://github.com/CosmosContracts/juno/pkgs/container/juno)** config is preset by default. Any other chain can be manually added.
**[Juno uni-3 testnet](https://testnet.ping.pub/juno)**, **[Localnet - Juno](https://github.com/CosmosContracts/juno/pkgs/container/juno)**, **[Testnet - Osmosis](https://docs.osmosis.zone/developing/network/explorers.html#testnet)** and **[Localnet - Osmosis](https://docs.osmosis.zone/developing/tools/localosmosis.html#what-is-localosmosis)** configs are preset by default. Any other chain can be manually added.

You can set up the extension settings here
> File > Preferences > Settings > Cosmy Wasmy
Expand All @@ -11,7 +11,7 @@ You can set up the extension settings here
| Setting | Type | Default | Scope | Details |
| --------|------|----------|-------|---------|
| `cosmywasmy.chainConfigName` | string | Juno UNI-3 testnet | Workspace | This setting is used to select which of the given Chain configs is to be used in this workspace |
| `cosmywasmy.chains` | json | Juno UNI-3 testnet and Localnet - Juno config | Application | This setting stores an array of JSON objects which contains the Chain config details. <br /> This setting can be expanded to include any localnet or testnet chains (_mainnet not recommended_). <br/> The structure of the expected setting is elaborated below this table |
| `cosmywasmy.chains` | json | Juno UNI-3 testnet, Localnet - Juno, Testnet - Osmosis, Localnet - Osmosis config | Application | This setting stores an array of JSON objects which contains the Chain config details. <br /> This setting can be expanded to include any localnet or testnet chains (_mainnet not recommended_). <br/> The structure of the expected setting is elaborated below this table |
| `cosmywasmy.contractSortOrder` | enum | None | Workspace | This setting controls the sorting order of the Smart Contracts in the Contract view <br /> * Alphabetical - Sort the Smart Contracts alphabetically by their label<br /> * CodeId - Sort the Smart Contracts by the Code ID<br /> * None - No explicit sorting - Maintains the order the contracts were imported in |
| `cosmywasmy.cosmwasmResponseView` | enum | Terminal | Workspace | This setting controls where the smart contract interactions should be displayed <br /> * NewFile - Open a new dummy doc with response <br /> * Terminal - A seperate output channel by Cosmy Wasmy in the Output view |
| `cosmywasmy.maxHistoryStored` | number | 20 | Workspace | Controls the latest number of queries and txs kept in history for easy re-execution. If set to `0` the feature is disabled and nothing is stored |
Expand Down
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,23 @@
"defaultGasPrice": "0.025",
"chainDenom": "ujunox",
"faucetEndpoint": "http://localhost:8000"
},
{
"configName": "Testnet - Osmosis",
"chainId": "osmo-test-4",
"addressPrefix": "osmo",
"rpcEndpoint": "https://rpc-test.osmosis.zone",
"defaultGasPrice": "0.025",
"chainDenom": "uosmo",
"accountExplorerLink": "https://testnet.mintscan.io/osmosis-testnet/account/${accountAddress}"
},
{
"configName": "Localnet - Osmosis",
"chainId": "localosmosis",
"addressPrefix": "osmo",
"rpcEndpoint": "http://localhost:26657",
"defaultGasPrice": "0.025",
"chainDenom": "uosmo"
}
]
},
Expand Down

0 comments on commit fa21c98

Please sign in to comment.