-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implement Valence and Astroport Utils #1
Changes from 11 commits
5db1c8a
4b896ac
7c8a209
90c1677
eabe38c
3050aba
c0766ca
d7d4844
334b352
8fdf576
21c4760
9c00a7a
52b0c78
47611c6
65b6ce2
afcf3bc
2ca08e1
df3c1c8
483b9b2
e1e2277
982c7f5
88cb030
3773ed6
f155eb8
b1f7d97
0c04b55
146a6fc
77011bc
12d3c4d
b79a9ca
5114992
2724ef3
99db25f
ad05068
dd193a3
89d98f3
6421c25
09da67b
3384024
58cef7e
03c52d7
b3d0295
3a9b509
9cf3717
ea127b8
bd76216
fe2af3d
3f11d4e
08f4184
8cd95b6
ea682d0
85bf346
1b47899
9f34ad5
1b33ab8
387251d
2c69266
3f8504c
354b997
ba1745b
0867b54
46e4303
78b5a32
840d5f1
6df58fc
e74aeb3
21de788
696ea78
3c16ad3
f5b4632
a991fc2
f5b2800
d26c395
52f0f79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Test Localic-utils | ||
|
||
on: [push] | ||
|
||
env: | ||
GO_VERSION: 1.21 | ||
|
||
jobs: | ||
int-test: | ||
name: integration test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Install local-ic | ||
run: cd examples && git clone https://github.com/strangelove-ventures/interchaintest.git && cd interchaintest/local-interchain && make install | ||
|
||
- name: Get cargo | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Run neutron example | ||
run: cd examples && local-ic start neutron_gaia --api-port 42069 & curl --head -X GET --retry 200 --retry-connrefused --retry-delay 1 http://localhost:42069 && cd examples && cargo run --example neutron |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "localic-utils" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
localic-std = { git = "https://github.com/strangelove-ventures/interchaintest", branch = "main" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should pin the dependency to a specific commit .. or the project might break at some point. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just pinned the most recent commit. |
||
cosmwasm-std = "1.5.4" | ||
serde = { version = "1.0.203", features = ["derive"] } | ||
serde_json = "1.0.117" | ||
thiserror = "1.0" | ||
derive_builder = "0.20.0" | ||
log = "0.4.21" | ||
|
||
[dev-dependencies] | ||
env_logger = "0.11.3" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# localic-utils examples | ||
|
||
To run the examples: | ||
|
||
## Start local-interchain | ||
|
||
```bash | ||
local-ic start <example_chain> --api-port 42069 | ||
``` | ||
|
||
## Run the eample | ||
|
||
```bash | ||
cargo run --example <example_name> | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
{ | ||
"chains": [ | ||
{ | ||
"name": "gaia", | ||
"chain_id": "localcosmos-1", | ||
"denom": "uatom", | ||
"binary": "gaiad", | ||
"bech32_prefix": "cosmos", | ||
"docker_image": { | ||
"version": "v15.0.0-rc2" | ||
}, | ||
"gas_prices": "0%DENOM%", | ||
"chain_type": "cosmos", | ||
"coin_type": 118, | ||
"trusting_period": "336h", | ||
"gas_adjustment": 2.0, | ||
"number_vals": 1, | ||
"number_node": 0, | ||
"ibc_paths": [], | ||
"debugging": true, | ||
"block_time": "500ms", | ||
"host_port_override": { | ||
"26657": "26658", | ||
"1317": "1318", | ||
"9090": "9091" | ||
}, | ||
"genesis": { | ||
"modify": [ | ||
{ | ||
"key": "app_state.gov.params.voting_period", | ||
"value": "3s" | ||
}, | ||
{ | ||
"key": "app_state.interchainaccounts.host_genesis_state.params.allow_messages", | ||
"value": [ | ||
"/cosmos.bank.v1beta1.MsgSend", | ||
"/cosmos.bank.v1beta1.MsgMultiSend", | ||
"/cosmos.staking.v1beta1.MsgDelegate", | ||
"/cosmos.staking.v1beta1.MsgUndelegate", | ||
"/cosmos.staking.v1beta1.MsgBeginRedelegate", | ||
"/cosmos.staking.v1beta1.MsgRedeemTokensforShares", | ||
"/cosmos.staking.v1beta1.MsgTokenizeShares", | ||
"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", | ||
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", | ||
"/ibc.applications.transfer.v1.MsgTransfer" | ||
] | ||
} | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "acc0", | ||
"address": "cosmos1kuf2kxwuv2p8k3gnpja7mzf05zvep0cycmheu0", | ||
dowlandaiello marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"amount": "20000000000%DENOM%", | ||
"mnemonic": "south excuse merit payment amazing trash salon core cloth wine claw father fiscal anger entry hawk equip cream key inner away outdoor despair air" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "neutron", | ||
"chain_id": "localneutron-1", | ||
"denom": "untrn", | ||
"binary": "neutrond", | ||
"bech32_prefix": "neutron", | ||
"docker_image": { | ||
"version": "v3.0.4", | ||
"repository": "ghcr.io/strangelove-ventures/heighliner/neutron" | ||
}, | ||
"gas_prices": "0.0untrn,0.0uatom", | ||
"chain_type": "cosmos", | ||
"coin_type": 118, | ||
"trusting_period": "336h", | ||
"gas_adjustment": 1.3, | ||
"number_vals": 1, | ||
"number_node": 0, | ||
"ics_consumer_link": "localcosmos-1", | ||
"ibc_paths": [], | ||
"debugging": true, | ||
"block_time": "500ms", | ||
"host_port_override": { | ||
"26657": "26657", | ||
"1317": "1317", | ||
"9090": "9090" | ||
}, | ||
"genesis": { | ||
"modify": [ | ||
{ | ||
"key": "consensus_params.block.max_gas", | ||
"value": "100000000" | ||
}, | ||
{ | ||
"key": "app_state.ccvconsumer.params.soft_opt_out_threshold", | ||
"value": "0.05" | ||
}, | ||
{ | ||
"key": "app_state.ccvconsumer.params.reward_denoms", | ||
"value": ["untrn"] | ||
}, | ||
{ | ||
"key": "app_state.ccvconsumer.params.provider_reward_denoms", | ||
"value": ["uatom"] | ||
}, | ||
{ | ||
"key": "consensus_params.block.max_gas", | ||
"value": "1000000000" | ||
}, | ||
{ | ||
"key": "app_state.globalfee.params.minimum_gas_prices", | ||
"value": [ | ||
{ | ||
"denom": "untrn", | ||
"amount": "0" | ||
} | ||
] | ||
}, | ||
{ | ||
"key": "app_state.feeburner.params.treasury_address", | ||
"value": "neutron1hj5fveer5cjtn4wd6wstzugjfdxzl0xpznmsky" | ||
}, | ||
{ | ||
"key": "app_state.tokenfactory.params.fee_collector_address", | ||
"value": "neutron1hj5fveer5cjtn4wd6wstzugjfdxzl0xpznmsky" | ||
}, | ||
{ | ||
"key": "app_state.interchainaccounts.host_genesis_state.params.allow_messages", | ||
"value": [ | ||
"/cosmos.bank.v1beta1.MsgSend", | ||
"/cosmos.bank.v1beta1.MsgMultiSend", | ||
"/cosmos.staking.v1beta1.MsgDelegate", | ||
"/cosmos.staking.v1beta1.MsgUndelegate", | ||
"/cosmos.staking.v1beta1.MsgBeginRedelegate", | ||
"/cosmos.staking.v1beta1.MsgRedeemTokensforShares", | ||
"/cosmos.staking.v1beta1.MsgTokenizeShares", | ||
"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", | ||
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", | ||
"/ibc.applications.transfer.v1.MsgTransfer", | ||
"/ibc.lightclients.localhost.v2.ClientState", | ||
"/ibc.core.client.v1.MsgCreateClient", | ||
"/ibc.core.client.v1.Query/ClientState", | ||
"/ibc.core.client.v1.Query/ConsensusState", | ||
"/ibc.core.connection.v1.Query/Connection" | ||
] | ||
} | ||
], | ||
"accounts": [ | ||
{ | ||
"name": "acc0", | ||
"address": "neutron1kuf2kxwuv2p8k3gnpja7mzf05zvep0cyuy7mxg", | ||
dowlandaiello marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"amount": "10000000000%DENOM%", | ||
"mnemonic": "south excuse merit payment amazing trash salon core cloth wine claw father fiscal anger entry hawk equip cream key inner away outdoor despair air" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
dowlandaiello marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"start_time": 1719427641, | ||
"chains": [ | ||
{ | ||
"chain_id": "localcosmos-1", | ||
"chain_name": "localcosmos-1", | ||
"rpc_address": "http://0.0.0.0:26658", | ||
"rest_address": "http://0.0.0.0:1318", | ||
"grpc_address": "0.0.0.0:9091", | ||
"p2p_address": "0.0.0.0:44615", | ||
"ibc_paths": [] | ||
}, | ||
{ | ||
"chain_id": "localneutron-1", | ||
"chain_name": "localneutron-1", | ||
"rpc_address": "http://0.0.0.0:26657", | ||
"rest_address": "http://0.0.0.0:1317", | ||
"grpc_address": "0.0.0.0:9090", | ||
"p2p_address": "0.0.0.0:39019", | ||
"ibc_paths": [] | ||
} | ||
], | ||
"ibc_channels": [] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uditvira do we want to have either a
timewave
orvalance
prefix for the crate name ?