Skip to content

Commit

Permalink
update tss for oracle info
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Nov 22, 2024
1 parent ddf7184 commit 349db12
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ At the moment this project **does not** adhere to
- In [#1153](https://github.com/entropyxyz/entropy-core/pull/1153/) the program runtime was updated to accept
multiple oracle inputs, this means any programs that were compiled and used need to be recompiled to the new
runtime
- In [#1184](https://github.com/entropyxyz/entropy-core/pull/1184/) The ```OracleData``` mapping now holds a
struct ```OracleInfo``` which includes the ```oracle_data``` and the ```oracle_type```

### Added
- Protocol message versioning ([#1140](https://github.com/entropyxyz/entropy-core/pull/1140))
- CLI command to get oracle headings ([#1170](https://github.com/entropyxyz/entropy-core/pull/1170))
- Add TSS endpoint to get TDX quote ([#1173](https://github.com/entropyxyz/entropy-core/pull/1173))
- Add type info to oracle data ([#1184](https://github.com/entropyxyz/entropy-core/pull/1184))

### Changed
- Use correct key rotation endpoint in OCW ([#1104](https://github.com/entropyxyz/entropy-core/pull/1104))
Expand Down
Binary file modified crates/client/entropy_metadata.scale
Binary file not shown.
10 changes: 6 additions & 4 deletions crates/threshold-signature-server/src/helpers/substrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ use crate::{
entropy::{
self,
runtime_types::{
bounded_collections::bounded_vec::BoundedVec, pallet_programs::pallet::ProgramInfo,
bounded_collections::bounded_vec::BoundedVec, pallet_oracle::module::OracleInfo,
pallet_programs::pallet::ProgramInfo,
},
},
EntropyConfig,
Expand Down Expand Up @@ -70,9 +71,10 @@ pub async fn get_oracle_data(
for program_oracle_data in program_oracle_datas {
let oracle_data_call =
entropy::storage().oracle().oracle_data(BoundedVec(program_oracle_data));
let oracle_info =
query_chain(api, rpc, oracle_data_call, None).await?.unwrap_or(BoundedVec(vec![]));
oracle_infos.push(oracle_info.0);
let oracle_info = query_chain(api, rpc, oracle_data_call, None)
.await?
.unwrap_or(OracleInfo { oracle_data: BoundedVec(vec![]), oracle_type: vec![] });
oracle_infos.push(oracle_info.oracle_data.0);
}
Ok(oracle_infos)
}
Expand Down
1 change: 1 addition & 0 deletions pallets/oracle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*;
use sp_std::vec::Vec;

#[cfg(test)]
mod mock;
Expand Down

0 comments on commit 349db12

Please sign in to comment.