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

Rfp #110

Merged
merged 56 commits into from
May 20, 2024
Merged

Rfp #110

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
54a344b
add rfp structure and methods untested. add_rfp, edit_rfp draft
PolyProgrammist Apr 27, 2024
754b897
add repost to social db, add test for add_rfp
PolyProgrammist Apr 27, 2024
0da23c4
Add check that only account creator and moderators can add and edit rfp
PolyProgrammist Apr 27, 2024
a88cc73
fix labels handling in add_rfp, tests for second rfp, tests for check…
PolyProgrammist Apr 27, 2024
cc67e1f
add check for categories in add & edit. add payable to edit_rfp_timel…
PolyProgrammist Apr 27, 2024
b9f224a
added check that add proposal should only add proposals in accepting …
PolyProgrammist Apr 27, 2024
834edae
Add migrations
PolyProgrammist Apr 28, 2024
495c178
Add linked rfp to proposal and a separate method to change it. Comes …
PolyProgrammist Apr 28, 2024
8a2f12a
return default categories
PolyProgrammist Apr 28, 2024
204ca00
add migration for proposal and stash other migration test
PolyProgrammist Apr 28, 2024
550cc81
add a check that you can't link to not existing rfp
PolyProgrammist Apr 28, 2024
ed409c0
add a check that if RFP is in evaluation and decision stage, no propo…
PolyProgrammist Apr 28, 2024
daddfc6
checks for selected proposal and cancelled, with tests, but incorrect
PolyProgrammist Apr 28, 2024
f77bbcf
fix checks and tests
PolyProgrammist Apr 29, 2024
c137751
add notifications
PolyProgrammist Apr 29, 2024
5007d76
add editor_id, fix proposal_version to rfp_version
PolyProgrammist May 1, 2024
d20b61c
add author and editor
PolyProgrammist May 2, 2024
8c1e121
add labels-categories
PolyProgrammist May 2, 2024
7ba4206
finalize labels
PolyProgrammist May 2, 2024
7f8ff3e
add notifications, fix labels, fix tests
PolyProgrammist May 2, 2024
9666a39
change function names for global labels
PolyProgrammist May 2, 2024
5bf2c2a
fix function names in tests and condition for updating proposal insid…
PolyProgrammist May 2, 2024
6512473
cargo fmt
PolyProgrammist May 2, 2024
1a87813
remove unnecessary functions, remove addons change in snap (use main)…
PolyProgrammist May 2, 2024
06526fb
Merge branch 'main' into rfp
PolyProgrammist May 2, 2024
1aab943
remove test for get_all_rfp_labels as the method is removed
PolyProgrammist May 2, 2024
62b6715
change labelextendedinfo field names
PolyProgrammist May 3, 2024
3ecaabf
add method to get linked proposals to rfp
PolyProgrammist May 5, 2024
9bad449
clear labels before setting new ones, move linked proposals from map …
PolyProgrammist May 9, 2024
3b922f2
add optional block_height to add_proposal, add optional ids vector to…
PolyProgrammist May 10, 2024
68ff6f0
add tests for cancel_rfp and fix check for cancelling
PolyProgrammist May 10, 2024
bcaad1f
coderabbit
PolyProgrammist May 10, 2024
88f2713
fix bug when editing proposal and linked_rfp not changed labels were …
PolyProgrammist May 13, 2024
1644c51
add editor_id, timestamp to snapshot and add old one to history when …
PolyProgrammist May 14, 2024
8f6b800
remove test for failed cancel as cancel always can be success now
PolyProgrammist May 14, 2024
a4701a8
update len() == 0 to is_empty
PolyProgrammist May 15, 2024
9da0335
update get_proposals
PolyProgrammist May 15, 2024
d74fe92
update has_approved_proposal
PolyProgrammist May 15, 2024
3b71c5b
update sets comparison
PolyProgrammist May 15, 2024
14d7d31
remove notification promises affecting the operation
PolyProgrammist May 15, 2024
90e5616
fix compilation errors
PolyProgrammist May 15, 2024
67ec21a
remove is_allowed_to_use_labels from rfps
PolyProgrammist May 15, 2024
04187bb
remove logs, move out non-pub fn-s
PolyProgrammist May 16, 2024
138f923
use get_rfp, changed operation bool to enum
PolyProgrammist May 16, 2024
5fdbf03
remove #[near] from migration helpers
PolyProgrammist May 16, 2024
e3aef28
remove promises from edit
PolyProgrammist May 16, 2024
59aeb8a
use lazy std hashmap instead of near unorderedmap
PolyProgrammist May 16, 2024
bf792fa
Use block height for snapshot history instead of the whole snapshot
PolyProgrammist May 16, 2024
9b7baba
move accepted_terms_and_conditions_version to a sepate pr
PolyProgrammist May 17, 2024
2872175
fix test
PolyProgrammist May 17, 2024
92a559f
Remove hardcode for Infrastructure Committee
PolyProgrammist May 17, 2024
d0266a3
Update src/rfp/repost.rs
PolyProgrammist May 20, 2024
7fe4a93
remove unnecessary body copying and it's timeline edit
PolyProgrammist May 20, 2024
9657ee5
fix block height
PolyProgrammist May 20, 2024
af6337c
Merge branch 'main' into rfp
PolyProgrammist May 20, 2024
b00f93e
Fix comment for snapshot history
PolyProgrammist May 20, 2024
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
near-sdk = "5.1.0"
near-sdk = { version = "5.1.0", features = ["unstable"] }
near-contract-standards = "5.1.0"
serde_json = { version = "1.0", features = ["preserve_order"] }
devhub_common = { path = "./devhub_common" }
Expand Down
Loading
Loading