Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/pallet records/sources by drawdown #40

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions pallets/fund-admin-records/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,6 @@ fn make_record_collection(
record_collection

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPT summary of 39f0b8 - 00589e:
Error: couldn't generate summary

}

// fn make_default_record_collection() -> RecordCollection<Test> {
// make_record_collection(
// make_project_id("project_id"),
// make_hashed_info("hashed_info"),
// TableType::Drawdown,
// RecordType::Creation,
// )
// }

// fn make_array_record_collection(num: u16) -> RecordCollection<Test> {
// let mut record_collection: RecordCollection<Test> = bounded_vec![];
// for i in 0..num {
// record_collection.try_push((
// make_project_id(&format!("project_id_{}", i)),
// make_hashed_info(&format!("hashed_info_{}", i)),
// TableType::Drawdown,
// RecordType::Creation,
// )).unwrap_or_default();
// }
// record_collection
// }

#[test]
fn set_signer_account_works() {
new_test_ext().execute_with(|| {
Expand Down
4 changes: 3 additions & 1 deletion pallets/fund-admin-records/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pub enum TableType {
RecoveryDrawdown,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPT summary of 5335e9 - 1a494c:
Error: couldn't generate summary

Revenue,
RecoveryRevenue,
Rebalance,
DrawdownSources
}

#[derive(
Expand All @@ -39,5 +41,5 @@ pub enum RecordType {
Reject,
Recovery,
Cancel,
Confirm,
Confirm
}
Loading