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

Native asset barrier #1247

Open
wants to merge 75 commits into
base: manta
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
4525073
Fork pallet-balances
ghzlatarev Aug 11, 2023
0fea396
Add barrier code to pallet-balances and update all runtimes
ghzlatarev Aug 11, 2023
6eea3da
Add xcmbarrierlist
ghzlatarev Aug 14, 2023
d096638
Checkpoint
ghzlatarev Aug 14, 2023
685004f
Split to native-barrier pallet. Integrate into pallet-balances. Per d…
ghzlatarev Aug 14, 2023
2eb8660
Support accumulation fo skipped days
ghzlatarev Aug 14, 2023
95f10ed
add to mantapya
ghzlatarev Aug 14, 2023
64a603e
move to orml_traits, add to xtokens and only for native assets
ghzlatarev Aug 14, 2023
351ef1d
Add Here check for native assets
ghzlatarev Aug 15, 2023
2a57473
Uncomment pallet0balances tests and benchs
ghzlatarev Aug 15, 2023
f21f2e6
Re-enable tests and benches for pallet-balances. Add new config to al…
ghzlatarev Aug 15, 2023
4d93c84
Make start_unix_time a configurable storage item
ghzlatarev Aug 15, 2023
ff00649
add setter extrinsics for storage items
ghzlatarev Aug 15, 2023
457ea32
Clean up native-barrier pallet toml, delete unnecessary fiels and upd…
ghzlatarev Aug 15, 2023
117c7d7
add events
ghzlatarev Aug 15, 2023
aaec2ba
add gensis config, clean up
ghzlatarev Aug 15, 2023
4b59705
Debugging
ghzlatarev Aug 16, 2023
3b23239
Remove xcmnativetransfers storage item, only remainingxcmlimit is nee…
ghzlatarev Aug 16, 2023
4764e74
Merge branch 'manta' into ghzlatarev/whale-blocker
ghzlatarev Aug 16, 2023
d554ccf
fmt and remove unnecessary imports
ghzlatarev Aug 16, 2023
cde01c1
Change headers
ghzlatarev Aug 16, 2023
744b134
storage docs
ghzlatarev Aug 16, 2023
785982a
remove unnecessary error
ghzlatarev Aug 16, 2023
53f808c
fix errors docs
ghzlatarev Aug 16, 2023
e9997fe
Clean up
ghzlatarev Aug 16, 2023
527e202
Extrinsics docs
ghzlatarev Aug 16, 2023
9681f15
Events docs , add remove from barrier event and use iter() instead of…
ghzlatarev Aug 16, 2023
297177d
Clean up todos
ghzlatarev Aug 16, 2023
eb186c3
Clean up todos in native-barrier pallet
ghzlatarev Aug 16, 2023
c0444e8
fmt
ghzlatarev Aug 16, 2023
ff92613
Add native-barrier benchmak code
ghzlatarev Aug 17, 2023
ba1fc94
Add benchamrk unit tests and add to runtimes
ghzlatarev Aug 17, 2023
9745b79
Add on_initialize benchmark and generate weight file in pallet
ghzlatarev Aug 17, 2023
2e0760b
Add weights file to runtiems
ghzlatarev Aug 17, 2023
24a19b4
First tests
ghzlatarev Aug 17, 2023
548d679
tests work
ghzlatarev Aug 18, 2023
6f8d87b
Clean up tests
ghzlatarev Aug 18, 2023
b576761
clean up warnins
ghzlatarev Aug 18, 2023
c3cf148
remove palle-tteimestamp
ghzlatarev Aug 18, 2023
c5c23bc
Simlify reset_remaining_xcm_limit
ghzlatarev Aug 18, 2023
673d526
storage version should be 0
ghzlatarev Aug 18, 2023
e84bda8
fmt'
ghzlatarev Aug 18, 2023
b25ca88
Disab le clippy for balances and fix for rest
ghzlatarev Aug 18, 2023
c35ac80
add comments and improve asserts in benchmark code
ghzlatarev Aug 18, 2023
22e647a
Use 0937 orml branch
ghzlatarev Aug 18, 2023
08507a9
add limits growth test
ghzlatarev Aug 20, 2023
bc4c9f9
Clean up tests
ghzlatarev Aug 20, 2023
7696701
Revert ignore
ghzlatarev Aug 21, 2023
4080b84
add docs
ghzlatarev Aug 21, 2023
522f071
check all pallet-balances extriniscs in tests
ghzlatarev Aug 21, 2023
a85095c
Remove extra daily limit
ghzlatarev Aug 22, 2023
0bbe97f
Delete geneiss config unused code
ghzlatarev Aug 22, 2023
def99a5
Update storage
ghzlatarev Aug 22, 2023
bc4abe6
Update index'
ghzlatarev Aug 22, 2023
f320489
remove xcm mentions 1/2
ghzlatarev Aug 22, 2023
7f57ad6
remove xmc mentions 2/2
ghzlatarev Aug 22, 2023
ce5937a
Merge branch 'manta' into ghzlatarev/whale-blocker
ghzlatarev Aug 22, 2023
4643f3f
Clean up
ghzlatarev Aug 22, 2023
a95fdda
Clippy
ghzlatarev Aug 22, 2023
e9c3f20
Update tx-fees diff files
ghzlatarev Aug 23, 2023
80d4e79
Merge branch 'manta' into ghzlatarev/whale-blocker
ghzlatarev Aug 23, 2023
69da06f
Merge branch 'manta' into ghzlatarev/whale-blocker
ghzlatarev Aug 24, 2023
de34377
Udpate lastdayprocessed on init
ghzlatarev Aug 29, 2023
b9a420c
add accounts to initialize barrier extrinsic
ghzlatarev Aug 30, 2023
b8e22e1
Revert last commit and addd default daily_limit on initialization again
ghzlatarev Aug 30, 2023
290c2af
Update the in the future tests as well
ghzlatarev Aug 30, 2023
5f645cb
Merfe conflicts and update weights
ghzlatarev Aug 30, 2023
74f8f46
Fix benchmarking compile
ghzlatarev Aug 30, 2023
51f9320
Ignore diff_tx-Fees tests temporarily
ghzlatarev Aug 30, 2023
c92c446
Unignore test and update fees csv
ghzlatarev Aug 30, 2023
9a38533
Bump manta integrations test timeout
ghzlatarev Aug 31, 2023
a335a24
Use orml branch for now
ghzlatarev Aug 31, 2023
da094d8
update cargo lock
ghzlatarev Aug 31, 2023
d3b705d
Update orml dep
ghzlatarev Aug 31, 2023
4426549
Merge branch 'manta' into ghzlatarev/whale-blocker
ghzlatarev Sep 30, 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
Prev Previous commit
Next Next commit
Unignore test and update fees csv
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
ghzlatarev committed Aug 30, 2023
commit c92c446f006ce59e76d9d1acaf7ab606d772580d
2 changes: 0 additions & 2 deletions runtime/calamari/src/diff_tx_fees.rs
Original file line number Diff line number Diff line change
@@ -63,7 +63,6 @@ fn get_call_details(call: &crate::RuntimeCall) -> (DispatchInfo, u32) {
(dispatch_info, call_len)
}

#[ignore]
#[test]
fn diff_tx_fees() {
const CURRENT_PATH: &str = env!("CARGO_MANIFEST_DIR");
@@ -141,7 +140,6 @@ fn diff_tx_fees() {
}

#[test]
#[ignore]
fn generate_all_current_extrinsics_tx_fee_to_csv() {
const VERSION: &str = env!("CARGO_PKG_VERSION");
const CURRENT_PATH: &str = env!("CARGO_MANIFEST_DIR");
2 changes: 1 addition & 1 deletion runtime/calamari/tx-fees-data/4.4.0-tx-fees.csv
Original file line number Diff line number Diff line change
@@ -241,7 +241,7 @@ zenlink_protocol,bootstrap_update,496532242000,0.496532242,0.0002
zenlink_protocol,bootstrap_refund,495995301000,0.495995301,0.0002
zenlink_protocol,bootstrap_charge_reward,495840000000,0.49584,0.0002
zenlink_protocol,bootstrap_withdraw_reward,495570000000,0.49557,0.0002
pallet_native_barrier,initialize_native_barrier,495014678000,0.495014678,0.0002
pallet_native_barrier,initialize_native_barrier,1095014678000,0.495014678,0.0002
pallet_native_barrier,add_accounts_to_native_barrier,495576570000,0.49557657,0.0002
pallet_native_barrier,remove_accounts_from_native_barrier,495419336000,0.495419336,0.0002
frame_system,remark-length=32,511804103000,0.511804103,0.2
1 change: 0 additions & 1 deletion runtime/manta/src/diff_tx_fees.rs
Original file line number Diff line number Diff line change
@@ -63,7 +63,6 @@ fn get_call_details(call: &crate::RuntimeCall) -> (DispatchInfo, u32) {
(dispatch_info, call_len)
}

#[ignore]
#[test]
fn diff_tx_fees() {
const CURRENT_PATH: &str = env!("CARGO_MANIFEST_DIR");
24 changes: 12 additions & 12 deletions runtime/manta/tx-fees-data/4.4.0-tx-fees.csv
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ manta_collator_selection,set_eviction_baseline,4979835900000000,0.0049798359,0.0
manta_collator_selection,set_eviction_tolerance,4979973540000000,0.00497997354,0.0002
pallet_asset_manager,register_asset,5316307190000000,0.00531630719,0.0002
pallet_asset_manager,update_asset_location,5015632340000000,0.00501563234,0.0002
pallet_asset_manager,update_asset_metadata,5442350760000000,0.00544235076,0.0002
pallet_asset_manager,update_asset_metadata,5272350760000000,0.00527235076,0.0002
pallet_asset_manager,set_units_per_second,4990541800000000,0.0049905418,0.0002
pallet_asset_manager,mint_asset,5462457200000000,0.0054624572,0.0002
pallet_asset_manager,set_min_xcm_fee,5010191960000000,0.00501019196,0.0002
@@ -240,9 +240,9 @@ zenlink_protocol,bootstrap_update,6232524390000000,0.00623252439,0.0002
zenlink_protocol,bootstrap_refund,5237140050000000,0.00523714005,0.0002
zenlink_protocol,bootstrap_charge_reward,5819700000000000,0.0058197,0.0002
zenlink_protocol,bootstrap_withdraw_reward,5549700000000000,0.0055497,0.0002
pallet_native_barrier,initialize_native_barrier,4979846780000000,0.00497984678,0.0002
pallet_native_barrier,add_accounts_to_native_barrier,4985465700000000,0.0049854657,0.0002
pallet_native_barrier,remove_accounts_from_native_barrier,4983893360000000,0.00498389336,0.0002
pallet_native_barrier,initialize_native_barrier,4981338030000000,0.00498133803,0.0002
pallet_native_barrier,add_accounts_to_native_barrier,4985476220000000,0.00498547622,0.0002
pallet_native_barrier,remove_accounts_from_native_barrier,4983884450000000,0.00498388445,0.0002
frame_system,remark-length=32,5430846460000000,0.00543084646,0.2
frame_system,remark-length=64,5430846460000000,0.00543084646,0.2
frame_system,set_heap_pages,7383150000000000,0.00738315,0.2
@@ -325,7 +325,7 @@ manta_collator_selection,set_eviction_baseline,6114600000000000,0.0061146,0.2
manta_collator_selection,set_eviction_tolerance,6252240000000000,0.00625224,0.2
pallet_asset_manager,register_asset,12915890000000000,0.01291589,0.2
pallet_asset_manager,update_asset_location,11941040000000000,0.01194104,0.2
pallet_asset_manager,update_asset_metadata,9089460000000000,0.00908946,0.2
pallet_asset_manager,update_asset_metadata,8919460000000000,0.00891946,0.2
pallet_asset_manager,set_units_per_second,6830500000000000,0.0068305,0.2
pallet_asset_manager,mint_asset,9215900000000000,0.0092159,0.2
pallet_asset_manager,set_min_xcm_fee,6500660000000000,0.00650066,0.2
@@ -484,9 +484,9 @@ zenlink_protocol,bootstrap_update,10053090000000000,0.01005309,0.2
zenlink_protocol,bootstrap_refund,13668750000000000,0.01366875,0.2
zenlink_protocol,bootstrap_charge_reward,6818700000000000,0.0068187,0.2
zenlink_protocol,bootstrap_withdraw_reward,6548700000000000,0.0065487,0.2
pallet_native_barrier,initialize_native_barrier,6125480000000000,0.00612548,0.2
pallet_native_barrier,add_accounts_to_native_barrier,11744400000000000,0.0117444,0.2
pallet_native_barrier,remove_accounts_from_native_barrier,10172060000000000,0.01017206,0.2
pallet_native_barrier,initialize_native_barrier,7616730000000000,0.00761673,0.2
pallet_native_barrier,add_accounts_to_native_barrier,11754920000000000,0.01175492,0.2
pallet_native_barrier,remove_accounts_from_native_barrier,10163150000000000,0.01016315,0.2
frame_system,remark-length=32,5959432300000000,0.0059594323,1
frame_system,remark-length=64,5959432300000000,0.0059594323,1
frame_system,set_heap_pages,16720950000000000,0.01672095,1
@@ -569,7 +569,7 @@ manta_collator_selection,set_eviction_baseline,10658200000000000,0.0106582,1
manta_collator_selection,set_eviction_tolerance,11346400000000000,0.0113464,1
pallet_asset_manager,register_asset,43344650000000000,0.04334465,1
pallet_asset_manager,update_asset_location,39670400000000000,0.0396704,1
pallet_asset_manager,update_asset_metadata,23692500000000000,0.0236925,1
pallet_asset_manager,update_asset_metadata,23522500000000000,0.0235225,1
pallet_asset_manager,set_units_per_second,14197700000000000,0.0141977,1
pallet_asset_manager,mint_asset,24244700000000000,0.0242447,1
pallet_asset_manager,set_min_xcm_fee,12468500000000000,0.0124685,1
@@ -728,6 +728,6 @@ zenlink_protocol,bootstrap_update,25350650000000000,0.02535065,1
zenlink_protocol,bootstrap_refund,47428950000000000,0.04742895,1
zenlink_protocol,bootstrap_charge_reward,10818700000000000,0.0108187,1
zenlink_protocol,bootstrap_withdraw_reward,10548700000000000,0.0105487,1
pallet_native_barrier,initialize_native_barrier,10712600000000000,0.0107126,1
pallet_native_barrier,add_accounts_to_native_barrier,38807200000000000,0.0388072,1
pallet_native_barrier,remove_accounts_from_native_barrier,30945500000000000,0.0309455,1
pallet_native_barrier,initialize_native_barrier,18168850000000000,0.01816885,1
pallet_native_barrier,add_accounts_to_native_barrier,38859800000000000,0.0388598,1
pallet_native_barrier,remove_accounts_from_native_barrier,30900950000000000,0.03090095,1