Skip to content

Commit

Permalink
Merge pull request #44 from neutron-org/feat/balance-tracker-contract
Browse files Browse the repository at this point in the history
Feat: balance tracker contract
  • Loading branch information
pr0n00gler authored Apr 10, 2024
2 parents 0657091 + 02961bb commit 0c46fb6
Show file tree
Hide file tree
Showing 15 changed files with 972 additions and 148 deletions.
117 changes: 117 additions & 0 deletions Cargo.lock

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

29 changes: 15 additions & 14 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
cf31690dfd2478f42f55cea30fa3a9874f06cd328f736df3fdf687b5387e44fa before_send_hook_test-x86_64.wasm
d5e983d67abaac10be8b2e63391af00a2cae828f4b095e3f86b1330d2304c44b client_updater-x86_64.wasm
3b290fbf64137be653ff1452ec3a101f360f10cff521b569c3fcc54a1455a46e dex-x86_64.wasm
e85798953e4b1ddd5561ab75c8330646043259bd5eb5cdadee6214e05f37ac2a dex_stargate-x86_64.wasm
45f13bb2a934f5c95c634dd12da9d95d0aeef498c08b81c0de1009fb90d65306 echo-x86_64.wasm
ef21b5544bd40a188198c6e2c88477c8d223562e7ded42e3773e3c62b07154ac ibc_transfer-x86_64.wasm
6ebaf70045ce390df28db83a65be6a1dfac46626d7242268d7d95f82c70d2855 msg_receiver-x86_64.wasm
0e59719cf88bc458011630af1b6b724f1e3c74eb440e92a117d1525088d4793f neutron_price_feed_mock-x86_64.wasm
11cee5c2a11bff1a0e41a0f3cfe3061adb909670bb29dd45daed9831ba34c133 neutron_interchain_queries-x86_64.wasm
5442356c8780004821e4690eb8547b4fdbcd9134ad4eb94cc5e9e2decb65fd82 neutron_interchain_txs-x86_64.wasm
b2f6dde6d73b39d6d9ab778632af600e172ecf44dc02159095325e92e18663ae neutron_validators_test-x86_64.wasm
4884f1ce16c7fd854d4e9900dc5ff6c67c7b18588eab6de4a162a116f7735af7 reflect-x86_64.wasm
c4c6e59c08048d5c1275d2a35a84a5b91862b827012704415ed5aa56363a362e stargate_querier-x86_64.wasm
d146050aca63e1a52932675a67dfd4aa9a23948383fbad275cc7ffb0ef1b2145 tokenfactory-x86_64.wasm
0c52b85da277055d45075144d7566d40490519486e93601793e7f298e0b80a99 balance_tracker.wasm
9fc5cc70b25d3faa19199bb83b148274794d7df96e4a16f60a53781410b11da2 before_send_hook_test.wasm
0e145a43d5bce9e04ae8db21f2dcc5c897fa7ae65c3cdbcfc846e3e34b2dd793 client_updater.wasm
8f514402615c949263062772b3481a4919777577ff3841128949e53561d0cc61 dex.wasm
4ebb637e1085f24a7a8a023c7955020fc6db340248361d7f7b2b16c17691d7ea dex_stargate.wasm
cbaf8c3e0f063ed8f5fb8be6dc846196cba26455c8d2b1e4cf60ddce06e68d94 echo.wasm
8d05f93af63df857f0e69c1023b3c1fbbfabc0459a6a4249367588874f795030 ibc_transfer.wasm
ebe171cfafe79343f84e0f49e412fec174ddc8a0753d7ec9749bd81e0bf17f55 msg_receiver.wasm
3efca7bfbab65ff18fdf3ac12626939b2a605a6717eeef404d0eec25c864df57 neutron_interchain_queries.wasm
53508475d18898aaac829a55fa38b8fe31870583ede740d6b175a025ccecd6d1 neutron_interchain_txs.wasm
da2a1e14f3658c69846f7f9773c9eb39bc4dd243946bd22ca47079b314b3ebbb neutron_price_feed_mock.wasm
8b7e9946dc8c86729fdecbebd51fd8eeb360da48c1ce5cb9be52319584c376f9 neutron_validators_test.wasm
14d4dce209e210f20bce9fb835194a1d53fe1a99a5ee78f916e51d41d0679bf6 reflect.wasm
3a720c4ee3de2f9d1bb66d20582f14168084c40c00d8a9240d2c6a26750894c8 stargate_querier.wasm
f49da4ab5ee960686c942408a348cd9125fa6d1b93ad328a6e938374e6e0df7d tokenfactory.wasm
14 changes: 0 additions & 14 deletions artifacts/checksums_intermediate.txt

This file was deleted.

6 changes: 6 additions & 0 deletions contracts/balance-tracker/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alias]
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"
30 changes: 30 additions & 0 deletions contracts/balance-tracker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[package]
name = "balance-tracker"
version = "0.1.0"
edition = "2021"

[features]
library = []

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

[profile.release]
opt-level = "z"
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1
panic = 'abort'
incremental = false
overflow-checks = true
strip = true

[dependencies]
cw2 = "1"
cosmwasm-std = "1.5"
cw-storage-plus = "1.2"
cosmwasm-schema = "1.5"
thiserror = "1"
astroport = { git = "https://github.com/astroport-fi/astroport-core", version = "4" }
3 changes: 3 additions & 0 deletions contracts/balance-tracker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Balance tracker

A simple contract that tracks total supply and balance of tokens using TokenFactory bank hooks.
Loading

0 comments on commit 0c46fb6

Please sign in to comment.