Skip to content
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

feat: clean bindings #ntrn-410 #70

Merged
merged 34 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
891d72a
remove dex bindings contract
NeverHappened Oct 14, 2024
f52f224
fix dex_grpc contract
NeverHappened Oct 14, 2024
17a30fa
remove client_updater contract
NeverHappened Oct 14, 2024
4d3236a
fix cron contract
NeverHappened Oct 14, 2024
b0119f7
fix grpc_querier contract
NeverHappened Oct 14, 2024
90c7ab6
fix ibc_transfer contract
NeverHappened Oct 14, 2024
d7904f5
redo ibc_transfer
NeverHappened Oct 14, 2024
e0d0c18
use newer deps
NeverHappened Oct 14, 2024
ed46b91
fix some interchain_queries contract errors
NeverHappened Oct 14, 2024
ab04311
fix some problems with oracle, neutron_validator, neutron_interchain_txs
NeverHappened Oct 14, 2024
8faa2e0
fix some tokenfactory problems
NeverHappened Oct 14, 2024
6d7d7d2
fix oracle, tokenfactory, ibc_transfer contracts after changes
NeverHappened Oct 15, 2024
584a411
fix interchain queries
NeverHappened Oct 15, 2024
f7f850c
fix marketmap queries
NeverHappened Oct 15, 2024
d5a5258
update neutron-sdk
NeverHappened Oct 15, 2024
31b5fcb
fix all build errors left
NeverHappened Oct 15, 2024
c31f4db
use neutron-std Order type for channels; fix some schema generation
NeverHappened Oct 15, 2024
f516e52
make schema
NeverHappened Oct 15, 2024
544f5b7
start fixing unit tests
NeverHappened Oct 15, 2024
68af7b6
fix neutron-Interchain-queries contracts
NeverHappened Oct 16, 2024
c01fb30
fix schema
NeverHappened Oct 16, 2024
d57d8e4
fix clippy
NeverHappened Oct 16, 2024
1420a74
update neutron-sdk
NeverHappened Oct 16, 2024
ea15a0e
make schema
NeverHappened Oct 16, 2024
6c17bc8
cleanup
NeverHappened Oct 16, 2024
766672c
fix queries Height struct used in sudo calls
NeverHappened Oct 17, 2024
4362c29
cleanup contracts
NeverHappened Oct 17, 2024
6707ecd
unify tokenfactory contract messages
NeverHappened Oct 18, 2024
f578c38
fix tokenfactory
NeverHappened Oct 18, 2024
3e73b7f
update neutron std
NeverHappened Oct 18, 2024
215d9af
update neutron-std
NeverHappened Oct 28, 2024
8851b44
cleanup path trims and TODO message
NeverHappened Oct 28, 2024
f61ecf4
update neutron-sdk and neutron-std
NeverHappened Oct 30, 2024
b6d2618
set std and sdk to main branch
NeverHappened Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
361 changes: 190 additions & 171 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ incremental = false
overflow-checks = true

[workspace.dependencies]
neutron-sdk = { package = "neutron-sdk", git = "https://github.com/neutron-org/neutron-sdk", branch = "main" }
neutron-sdk = { package = "neutron-sdk", git = "https://github.com/neutron-org/neutron-sdk", branch = "feat/clean-bindings" }
neutron-std = { git = "https://github.com/neutron-org/neutron-std", branch = "feat/clean-bindings" }

prost = "0.12.4"
prost-types = "0.12.4"
cosmos-sdk-proto = { version = "0.20.0", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion contracts/balance-tracker/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example tokenfactory_tracker_schema"
6 changes: 0 additions & 6 deletions contracts/client_updater/.cargo/config

This file was deleted.

31 changes: 0 additions & 31 deletions contracts/client_updater/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions contracts/client_updater/README.md

This file was deleted.

29 changes: 0 additions & 29 deletions contracts/client_updater/examples/client_updater-schema.rs

This file was deleted.

39 changes: 0 additions & 39 deletions contracts/client_updater/schema/execute_msg.json

This file was deleted.

6 changes: 0 additions & 6 deletions contracts/client_updater/schema/instantiate_msg.json

This file was deleted.

78 changes: 0 additions & 78 deletions contracts/client_updater/src/contract.rs

This file was deleted.

1 change: 0 additions & 1 deletion contracts/client_updater/src/lib.rs

This file was deleted.

74 changes: 0 additions & 74 deletions contracts/client_updater/updater.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"
schema = "run --example schema"
14 changes: 7 additions & 7 deletions contracts/cron/src/contract.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
use crate::state::{BEGIN_BLOCKER_SHEDULES, END_BLOCKER_SHEDULES};
use crate::state::{BEGIN_BLOCKER_SCHEDULES, END_BLOCKER_SCHEDULES};
use cosmwasm_std::{
entry_point, to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdError,
StdResult,
Expand Down Expand Up @@ -34,24 +34,24 @@ pub fn execute(deps: DepsMut, _: Env, info: MessageInfo, msg: ExecuteMsg) -> Std

match msg {
ExecuteMsg::AddBeginBlockerSchedule { name } => {
let counter = BEGIN_BLOCKER_SHEDULES
let counter = BEGIN_BLOCKER_SCHEDULES
.may_load(deps.storage, name.clone())?
.unwrap_or_default()
.checked_add(1)
.unwrap_or_default();

BEGIN_BLOCKER_SHEDULES.save(deps.storage, name, &counter)?;
BEGIN_BLOCKER_SCHEDULES.save(deps.storage, name, &counter)?;

Ok(Response::default())
}
ExecuteMsg::AddEndBlockerSchedule { name } => {
let counter = END_BLOCKER_SHEDULES
let counter = END_BLOCKER_SCHEDULES
.may_load(deps.storage, name.clone())?
.unwrap_or_default()
.checked_add(1)
.unwrap_or_default();

END_BLOCKER_SHEDULES.save(deps.storage, name, &counter)?;
END_BLOCKER_SCHEDULES.save(deps.storage, name, &counter)?;

Ok(Response::default())
}
Expand All @@ -62,11 +62,11 @@ pub fn execute(deps: DepsMut, _: Env, info: MessageInfo, msg: ExecuteMsg) -> Std
pub fn query(deps: Deps, _: Env, msg: QueryMsg) -> StdResult<Binary> {
match msg {
QueryMsg::GetBeginBlockerScheduleCounter { name } => {
let res = BEGIN_BLOCKER_SHEDULES.may_load(deps.storage, name)?;
let res = BEGIN_BLOCKER_SCHEDULES.may_load(deps.storage, name)?;
to_json_binary(&res)
}
QueryMsg::GetEndBlockerScheduleCounter { name } => {
let res = END_BLOCKER_SHEDULES.may_load(deps.storage, name)?;
let res = END_BLOCKER_SCHEDULES.may_load(deps.storage, name)?;
to_json_binary(&res)
}
}
Expand Down
4 changes: 2 additions & 2 deletions contracts/cron/src/state.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cw_storage_plus::Map;

pub const BEGIN_BLOCKER_SHEDULES: Map<String, u64> = Map::new("begin_blocker_shedules");
pub const END_BLOCKER_SHEDULES: Map<String, u64> = Map::new("end_blocker_shedules");
pub const BEGIN_BLOCKER_SCHEDULES: Map<String, u64> = Map::new("begin_blocker_shedules");
pub const END_BLOCKER_SCHEDULES: Map<String, u64> = Map::new("end_blocker_shedules");
41 changes: 0 additions & 41 deletions contracts/dex/Cargo.toml

This file was deleted.

Loading
Loading