Skip to content

Commit

Permalink
add missing feature flag, add withdraw_vault deprecated ix, add profile
Browse files Browse the repository at this point in the history
  • Loading branch information
bonedaddy committed Aug 4, 2022
1 parent 84da383 commit f1bd346
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
members = [
"cli",
"db"
]
]
[profile.release]
opt-level = 3
incremental = false
codegen-units = 1
2 changes: 1 addition & 1 deletion db/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sighashdb"
version = "0.1.35"
version = "0.1.36"
edition = "2021"
authors = ["Tulip Protocol"]
description = "sighashdb is a collection of anchor instruction sighashes commonly seen acrossa variety of anchor based programs"
Expand Down
5 changes: 3 additions & 2 deletions db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ impl GlobalSighashDB {
}
/// looks up the corresponding instruction sighash for the given instruction name
/// using the anchor v6 for backwards compatability
#[cfg(feature = "reverse-get")]
#[inline(always)]
pub fn get_deprecated(&self, val: &str) -> Option<[u8; 8]> {
match val {
Expand All @@ -343,7 +344,7 @@ impl GlobalSighashDB {
"close_position_info_account" => Some([44, 205, 56, 239, 135, 45, 94, 116]),
"create_user_farm" => Some([229, 49, 30, 92, 43, 69, 49, 220]),
"set_price_extra" => Some([209, 65, 58, 32, 52, 135, 176, 148]),

"withdraw_vault" => Some([89, 194, 163, 143, 0, 167, 190, 12]),
_ => None,
}
}
Expand Down Expand Up @@ -384,7 +385,7 @@ impl GlobalSighashDB {
[44, 205, 56, 239, 135, 45, 94, 116] => Some("close_position_info_account".to_string()),
[229, 49, 30, 92, 43, 69, 49, 220] => Some("create_user_farm".to_string()),
[209, 65, 58, 32, 52, 135, 176, 148] => Some("set_price_extra".to_string()),

[89, 194, 163, 143, 0, 167, 190, 12] => Some("withdraw_vault".to_string()),
_ => None,
}
}
Expand Down

0 comments on commit f1bd346

Please sign in to comment.