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

chore: Replace Currency->fungible migration for capacity pallet #1779

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
f95a3c9
chore: Replace Currency->fungible: update pallet_capacity with fungible
Nov 13, 2023
72543fa
fix: keep Currency name and update derived trait
Nov 13, 2023
478ee54
fix: pallet_capacity tests working with correct types/traits
Nov 15, 2023
1befab1
fix: capacity pallet tests passing; update vscode with rust std sourc…
Nov 15, 2023
7fbdf01
fix: lint changes;
Nov 15, 2023
7eceac4
fix: benchmarks updates for Currency trait
Nov 15, 2023
1dad909
fix: time-release pallet updated with fungible traits; test working
Nov 17, 2023
02f57a0
fix: time-release runtime-benchmarks errors
Nov 17, 2023
225b345
fix: update comments; rename FreezeReason::TimeReleased
Nov 20, 2023
57d7d94
fix: enum should be the same; updates;
Nov 21, 2023
86c6e74
fix: update cargo dependencies for common-runtime;
Nov 21, 2023
bf228b5
fix: Currency trait was incorrect;
Nov 21, 2023
72feddc
fix: set_balance logic error;
Nov 21, 2023
1442a12
fix: revert new Currency type; set FreezeIdentifier in mock;
Nov 21, 2023
cda4bc4
fix: lints
Nov 21, 2023
d63a554
we are erroring silently - Number of freezes exceed MaxFreezes
Nov 22, 2023
09261a6
test pass
Nov 22, 2023
e855d93
lint
Nov 22, 2023
6c4e44a
fix: remove .only
Nov 27, 2023
9079373
fix: coordinate BalancesMaxXXXXX with existing runtime defaults
Nov 27, 2023
52d5ea4
fix: add expect to tests that can fail; cargo update; pass through er…
Nov 27, 2023
da2296f
fix: capacity benchmarking should handle errors from set_staking_acco…
Nov 28, 2023
50d5089
Merge branch 'main' of https://github.com/LibertyDSNP/frequency into …
Dec 4, 2023
568582b
fix: changes for errors from merge from main
Dec 4, 2023
6052042
fix: Update spec_version to 66
Dec 4, 2023
9384ed3
Fix: thaw error handling in delete_lock function
Dec 5, 2023
57cd323
Merge branch 'main' of https://github.com/LibertyDSNP/frequency into …
Dec 5, 2023
c77dd41
fix: Update spec_version to 67
Dec 5, 2023
e9563a6
fix: refactor FreezeReason to remove unnecessary values
Dec 6, 2023
650e594
fix: handle errors from set_freeze in building genesis config; update…
Dec 6, 2023
b95c4ce
fix: propagate errors correctly from set_freeze/thaw
Dec 7, 2023
798313c
fix: Remove unnecessary comments in delete_lock
Dec 7, 2023
9e4ae1e
fix: code coverage keeps failing, back off on threads used
Dec 7, 2023
69fefed
Merge branch 'main' of https://github.com/LibertyDSNP/frequency into …
Dec 7, 2023
d0982c1
reset set_balance
Dec 8, 2023
00db19c
fix: Rename NotYetVested to TimeReleaseVesting
Dec 11, 2023
e55abb1
fix: initial capacity storage migration setup
Dec 11, 2023
7481392
fix: lint
Dec 11, 2023
56f3223
fix: remove comments
Dec 11, 2023
3e1bc53
Merge branch 'main' of https://github.com/LibertyDSNP/frequency into …
Dec 11, 2023
cf607c2
feat: add test for v3 migration--draft
Dec 12, 2023
b17da9f
fix: lint
Dec 12, 2023
4bb2fbc
fix: lint
Dec 12, 2023
d91043f
fix: lint
Dec 12, 2023
37c4e40
feat: update v3 migration test for try-runtime
Dec 12, 2023
ca20e2b
fix: add framework for time-release
Dec 12, 2023
31172f8
fix compile and total locked
Dec 13, 2023
f3fbcb7
fix: cargo update; time release migration updates
Dec 13, 2023
4253049
fix: remove unnecessary mod v2;
Dec 13, 2023
2531e17
fix: locked amount should be
Dec 13, 2023
1155d3f
fix: update mock accounts for testing;
Dec 13, 2023
672b4dd
add more test for time-release - currently failing
Dec 14, 2023
b9de9e2
update timerelease migration test
Dec 14, 2023
fbb6671
lint
Dec 14, 2023
bdfc0f2
rm comment
Dec 14, 2023
4cf44ed
changes
Dec 14, 2023
8ffb6d6
remove module since storage data structure is not changing
Dec 14, 2023
8043a68
clean up
Dec 14, 2023
4c61134
fix: address pr comments;
Dec 14, 2023
8a2c5e9
fix: rm comments
Dec 14, 2023
68784a0
clean up
Dec 14, 2023
0a4e5f6
weights
Dec 14, 2023
1ca4593
Merge branch '942-capacity-replace-currency-trait-with-fungible-trait…
Dec 14, 2023
0852f9d
remove comment
Dec 14, 2023
f97039b
Merge branch '942-capacity-replace-currency-trait-with-fungible-trait…
Dec 14, 2023
e9ee407
fix: address pr comments
Dec 14, 2023
aba568e
fix: update migrations correctly
Dec 14, 2023
f0abb19
fix: add migration debugging
Dec 14, 2023
578319d
fix: capacity typo in time release; lint
Dec 15, 2023
dd3ca32
fix: lint; add upgrade_accounts.py script
Dec 15, 2023
ff58ee4
fix: remove debugging notes file
Dec 15, 2023
e12d616
fix: refactor translate_lock_to_freeze to remove debug error handling
Dec 15, 2023
3822792
fix: update translate_lock_to_freeze weights and comments
Dec 16, 2023
5a0fef5
fix: rename symbol for readability
Dec 18, 2023
1a6e122
Run benchmarks [run-benchmarks capacity,time-release]
Dec 18, 2023
59be141
Update weights for PR #1779
Dec 18, 2023
d659eff
fix: split PR into capacity and time-release portions; cargo update
Dec 18, 2023
f009805
fix: address pr comments
Dec 18, 2023
e75f8ab
fix: refactor migration test w/o try-runtime
Dec 18, 2023
6f024a2
fix: refactor migration test w/o try-runtime
Dec 18, 2023
91485bd
Merge branch '942-capacity-replace-currency-trait-with-fungible-trait…
Dec 18, 2023
a0070a0
fix: set_freeze before removing the locks; update FreezeReason; addre…
Dec 19, 2023
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-deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ allow-git = []

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = ["paritytech", "w3f"]
github = ["paritytech", "w3f", "multiformats"]
# 1 or more gitlab.com organizations to allow git sources for
# gitlab = [""]
# 1 or more bitbucket.org organizations to allow git sources for
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/common/codecov/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ runs:
shell: bash
run: cargo +nightly-2023-07-13 install grcov
- name: Build
shell: bash # Limited to 12 threads max
run: cargo +nightly-2023-07-13 build -j 12 --features frequency-lint-check
shell: bash # Limited to 10 threads max
run: cargo +nightly-2023-07-13 build -j 10 --features frequency-lint-check
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
RUSTDOCFLAGS: "-Cpanic=abort"
- name: Test
shell: bash # Limited to 12 threads max
run: cargo +nightly-2023-07-13 test -j 12 --features frequency-lint-check
shell: bash # Limited to 10 threads max
run: cargo +nightly-2023-07-13 test -j 10 --features frequency-lint-check
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
// Set the features to use for cargo commands
"rust-analyzer.cargo.features": [
"frequency-no-relay"
],
"lldb.launch.preRunCommands": [
"script lldb.debugger.HandleCommand('settings set target.source-map /rustc/{} \"{}/lib/rustlib/src/rust\"'.format(os.popen('rustc --version --verbose').read().split('commit-hash: ')[1].split('\\n')[0].strip(), os.popen('rustc --print sysroot').readline().strip()))"
]
}
Loading
Loading