Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
joemonem committed Dec 19, 2024
2 parents 233a694 + 07c57fb commit d269eae
Show file tree
Hide file tree
Showing 120 changed files with 4,542 additions and 433 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased

### Added

- Crowdfund, added additional state [(#715)](https://github.com/andromedaprotocol/andromeda-core/pull/715)
- Added optional config for Send in Splitter contracts [(#686)](https://github.com/andromedaprotocol/andromeda-core/pull/686)
- Added CW20 suppport in Splitter contracts [(#703)](https://github.com/andromedaprotocol/andromeda-core/pull/703)
- Matrix ADO [(#539)](https://github.com/andromedaprotocol/andromeda-core/pull/539)
- Added Distance ADO [(#570)](https://github.com/andromedaprotocol/andromeda-core/pull/570)
- Rates: Handle cross-chain recipients [(#671)](https://github.com/andromedaprotocol/andromeda-core/pull/671)
- Permissions: Permissioned Actors in AndromedaQuery [(#717)](https://github.com/andromedaprotocol/andromeda-core/pull/717)
- Added Schema and Form ADOs [(#591)](https://github.com/andromedaprotocol/andromeda-core/pull/591)

### Changed
- Rates: Limit rates recipient to only one address [(#669)](https://github.com/andromedaprotocol/andromeda-core/pull/669)
- Address Validation: Cross-chain recipients don't need to be registered in VFS [(#725)](https://github.com/andromedaprotocol/andromeda-core/pull/725)

### Fixed

Expand Down Expand Up @@ -70,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Include ADOBase Version in Schema [(#574)](https://github.com/andromedaprotocol/andromeda-core/pull/574)
- Added multi-hop support for IBC [(#604)](https://github.com/andromedaprotocol/andromeda-core/pull/604)


### Changed

- Merkle Root: stage expiration now uses `Milliseconds`[(#417)](https://github.com/andromedaprotocol/andromeda-core/pull/417)
Expand All @@ -91,6 +97,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Conditional Splitter: Change lock_time's type from MillisecondsDuration to Expiry [(#567)](https://github.com/andromedaprotocol/andromeda-core/pull/567)
- Permissions now have an optional start time [(#668)](https://github.com/andromedaprotocol/andromeda-core/pull/668)


### Fixed

- Splitter: avoid zero send messages, owner updates lock any time [(#457)](https://github.com/andromedaprotocol/andromeda-core/pull/457)
Expand Down
73 changes: 57 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ cw721 = "0.18.0"
cw721-base = { version = "0.18.0", features = ["library"] }
cw-asset = "=3.0.0"
cosmwasm-schema = "1.5.8"
semver = "1.0.0"
semver = "1.0.24"
enum-repr = "0.2.6"
cw-multi-test = { version = "1.0.0", features = ["cosmwasm_1_2"] }
serde = { version = "1.0.215" }
serde = { version = "1.0.216" }
test-case = { version = "3.3.1" }
cw-orch = "=0.24.1"
jsonschema-valid = { version = "0.5.2"}
serde_json = { version = "1.0.128" }
10 changes: 7 additions & 3 deletions contracts/data-storage/andromeda-boolean/src/testing/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ fn test_set_value_with_tax() {
action: "BooleanSetValue".to_string(),
rate: Rate::Local(LocalRate {
rate_type: LocalRateType::Additive,
recipients: vec![],
recipient: Recipient {
address: AndrAddr::from_string(String::default()),
msg: None,
ibc_recovery_address: None,
},
value: LocalRateValue::Percent(PercentRate {
percent: Decimal::one(),
}),
Expand All @@ -71,11 +75,11 @@ fn test_set_value_with_tax() {

let rate: Rate = Rate::Local(LocalRate {
rate_type: LocalRateType::Additive,
recipients: vec![Recipient {
recipient: Recipient {
address: AndrAddr::from_string(tax_recipient.to_string()),
msg: None,
ibc_recovery_address: None,
}],
},
value: LocalRateValue::Flat(coin(20_u128, "uandr")),
description: None,
});
Expand Down
4 changes: 4 additions & 0 deletions contracts/data-storage/andromeda-form/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --example schema"
45 changes: 45 additions & 0 deletions contracts/data-storage/andromeda-form/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[package]
name = "andromeda-form"
version = "0.1.0-beta"
authors = ["Mitar Djakovic <[email protected]>"]
edition = "2021"
rust-version = "1.75.0"

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib", "rlib"]

[features]
# for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
library = []
testing = ["cw-multi-test", "andromeda-testing"]

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-schema = { workspace = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
cw20 = { workspace = true }
cw-json = { git = "https://github.com/SlayerAnsh/cw-json.git" }
serde_json = { workspace = true }
serde = { workspace = true }
test-case = { workspace = true }

andromeda-std = { workspace = true, features = ["rates"] }
andromeda-data-storage = { workspace = true }
andromeda-modules = { workspace = true }


[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
cw-orch = { workspace = true }
cw-multi-test = { workspace = true, optional = true }
andromeda-testing = { workspace = true, optional = true }
10 changes: 10 additions & 0 deletions contracts/data-storage/andromeda-form/examples/schema.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use andromeda_data_storage::form::{ExecuteMsg, InstantiateMsg, QueryMsg};
use cosmwasm_schema::write_api;
fn main() {
write_api! {
instantiate: InstantiateMsg,
query: QueryMsg,
execute: ExecuteMsg,

}
}
Loading

0 comments on commit d269eae

Please sign in to comment.