Skip to content

Commit

Permalink
txcount native asset reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Czeladka committed Sep 17, 2022
1 parent c30a80b commit 4c9579b
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 794 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

# These are backup files generated by rustfmt
**/*.rs.bk
daemon.toml
daemon.json
daemon*.toml
daemon*.json

# Mac Files
.DS_Store
Expand Down
16 changes: 16 additions & 0 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ authors = ["Santiago Carmuega <santiago@carmuega.me>"]


[dependencies]
#pallas = "0.14.0-alpha.3"
pallas = { path = "../pallas/pallas" }
pallas = "0.14.0-alpha.3"
# pallas = { path = "../pallas/pallas" }
# pallas = { git = "https://github.com/txpipe/pallas.git" }
hex = "0.4.3"
net2 = "0.2.37"
Expand Down
2 changes: 1 addition & 1 deletion src/enrich/sled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,4 @@ impl gasket::runtime::Worker for Worker {
None => Ok(()),
}
}
}
}
5 changes: 1 addition & 4 deletions src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ pub type Set = String;
pub type Member = String;
pub type Key = String;
pub type Delta = i64;
pub type LargeDelta = i128;
pub type Timestamp = u64;

#[derive(Debug)]
Expand Down Expand Up @@ -110,8 +109,6 @@ pub enum CRDTCommand {
BlockStarting(Point),
SetAdd(Set, Member),
SetRemove(Set, Member),
SortedSetAdd(Set, Member, Delta),
SortedSetRemove(Set, Member, Delta),
TwoPhaseSetAdd(Set, Member),
TwoPhaseSetRemove(Set, Member),
GrowOnlySetAdd(Set, Member),
Expand Down Expand Up @@ -171,7 +168,7 @@ impl CRDTCommand {
V: Into<Value>,
{
let key = match prefix {
Some(prefix) => format!("{}.{}", prefix, key),
Some(prefix) => format!("{}.{}", prefix, key),
None => key.to_string(),
};

Expand Down
114 changes: 0 additions & 114 deletions src/reducers/asset_holders_by_asset.rs

This file was deleted.

142 changes: 0 additions & 142 deletions src/reducers/balance_by_script.rs

This file was deleted.

Loading

0 comments on commit 4c9579b

Please sign in to comment.