Skip to content

Commit

Permalink
feat(broker-bank): smart contract as broker for bank transfers (#134)
Browse files Browse the repository at this point in the history
* docs(cw3-flex-msig): Add usage guide to README

* clean: ignore schema directories

* feat(broker-bank): smart contract as broker for bank transfers

* test(broker-bank): more test cases + cleanup

* test(broker-bank): ExecuteMsg::Withdraw

* test(broker-bank): exec toggle halt

* test(broker-bank): exec edit opers

* fix: fix bank send is_halted handling

---------

Co-authored-by: matthiasmatt <[email protected]>
  • Loading branch information
Unique-Divine and matthiasmatt authored Mar 19, 2024
1 parent 4b0444f commit 21dbc5c
Show file tree
Hide file tree
Showing 15 changed files with 1,144 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ yarn.lock

contracts/*/.editorconfig
packages/*/.editorconfig
contracts/*/schema
lcov.info

.DS_Store
Expand Down
17 changes: 17 additions & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions contracts/broker-bank/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
wasm-debug = "build --target wasm32-unknown-unknown"
schema = "run --example schema"
28 changes: 28 additions & 0 deletions contracts/broker-bank/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "broker-bank"
version = "0.1.0"
edition = "2021"
homepage = "https://nibiru.fi"
repository = "https://github.com/NibiruChain/cw-nibiru"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]

[features]
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
# library = []

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-schema = { workspace = true }
cw-storage-plus = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
nibiru-std = { workspace = true }
cw2 = { workspace = true }
serde_json = { workspace = true }
cw-ownable = { workspace = true }
anyhow = { workspace = true }
Loading

0 comments on commit 21dbc5c

Please sign in to comment.