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

393 use fee per second from asset metadata in xcm config #432

Merged
merged 84 commits into from
Apr 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
b1ad3f1
WIP
bogdanS98 Jan 11, 2024
dd83e1b
Fmt
bogdanS98 Jan 11, 2024
3ff7277
Add comment
bogdanS98 Jan 11, 2024
dcc6a4b
Still wip
bogdanS98 Jan 12, 2024
d998215
Fmt
bogdanS98 Jan 12, 2024
0afee4a
Add doc comments
bogdanS98 Jan 12, 2024
3e7b9bb
Address change requests
bogdanS98 Jan 12, 2024
edc4d94
Fmt
bogdanS98 Jan 12, 2024
1359c94
Add comment
bogdanS98 Jan 12, 2024
dc68751
Add fee for basic asset
bogdanS98 Jan 15, 2024
069d17e
Fmt
bogdanS98 Jan 15, 2024
67f3513
Return NoPrice error when price fetching fails
bogdanS98 Jan 15, 2024
beb234b
Add signed extension
bogdanS98 Jan 15, 2024
2479198
Add first iteration of mock
bogdanS98 Jan 26, 2024
449296a
Allow only XCM assets for buyout
bogdanS98 Jan 26, 2024
69a81c7
Update mock to only allow specific XCM assets
bogdanS98 Jan 26, 2024
b8cda83
Add tests and benchmarks - still wip
bogdanS98 Jan 30, 2024
95035a4
Fmt
bogdanS98 Jan 31, 2024
eebf511
Handle currency id in benchmarks
bogdanS98 Jan 31, 2024
a75ad1a
Update comments
bogdanS98 Jan 31, 2024
560268b
Remove benchmark comment
bogdanS98 Jan 31, 2024
be4f99a
Fix benchmarks and tests, add pallet to Foucoco, switch from UnixTime…
bogdanS98 Feb 1, 2024
19932f9
Merge remote-tracking branch 'origin' into 395-implement-pallet-that-…
bogdanS98 Feb 1, 2024
4aaee33
Fmt
bogdanS98 Feb 1, 2024
f2d1eda
Refactor dot currency id in tests
bogdanS98 Feb 2, 2024
8bae6e8
Small refactor for test attempt_buyout_after_buyout_limit_exceeded_fails
bogdanS98 Feb 2, 2024
11d9609
Update comments
bogdanS98 Feb 2, 2024
d224292
Small refactor
bogdanS98 Feb 2, 2024
e07318c
Add comment in Foucoco runtime
bogdanS98 Feb 2, 2024
fa68d4d
Add comment in Foucoco runtime
bogdanS98 Feb 2, 2024
de93547
Update comment
bogdanS98 Feb 2, 2024
9a19333
Update comment
bogdanS98 Feb 2, 2024
b2e2f17
Add signed extension to runtime
bogdanS98 Feb 2, 2024
f02fbc8
Add comment
bogdanS98 Feb 2, 2024
4fa8b91
Fix indentation in tests
bogdanS98 Feb 2, 2024
fe04294
Fix indentation in tests
bogdanS98 Feb 2, 2024
7c46f0b
Fix indentation in tests
bogdanS98 Feb 2, 2024
382b0d3
Fix indentation in tests
bogdanS98 Feb 2, 2024
66a86da
Update comment
bogdanS98 Feb 2, 2024
96af52c
Fix building project with runtime benchmarks flag
bogdanS98 Feb 2, 2024
d8c6738
Address change requests
bogdanS98 Feb 5, 2024
d31c2b0
Merge branch '395-implement-pallet-that-extends-our-current-treasury-…
bogdanS98 Feb 5, 2024
d4fcb93
Small refactor for asset registry benchmarks
bogdanS98 Feb 5, 2024
510b4ff
Fix compiler warning
bogdanS98 Feb 5, 2024
9e8f129
Address change requests
bogdanS98 Feb 5, 2024
f3ebd72
Update comment
bogdanS98 Feb 5, 2024
d020484
Optimise fetching oracle price for benchmarks and regenerate weights
bogdanS98 Feb 5, 2024
8352c1c
Merge branch '395-implement-pallet-that-extends-our-current-treasury-…
bogdanS98 Feb 5, 2024
470b0e7
Fmt
bogdanS98 Feb 5, 2024
5cc4cca
using fee per second value for relative fee adjusting
gianfra-t Feb 5, 2024
433206e
WIP
gianfra-t Feb 6, 2024
eb0de40
fixing xcm integration tests
gianfra-t Feb 6, 2024
420815f
fix pendulum integration tests, reuse v3 location
gianfra-t Feb 6, 2024
53bfb97
cleanup imports, reuse type for fee distribution
gianfra-t Feb 6, 2024
118b3d5
cleanup and format
gianfra-t Feb 6, 2024
e9f76e7
more cleanup
gianfra-t Feb 6, 2024
39ea1dc
Merge branch '395-implement-pallet-that-extends-our-current-treasury-…
gianfra-t Feb 6, 2024
d8674cf
more import cleaning and fixes after merging with future CustomMetada…
gianfra-t Feb 6, 2024
7ba5243
Merge branch 'main' into 393-use-fee_per_second-from-asset-metadata-i…
bogdanS98 Feb 7, 2024
87db579
moving implementation
gianfra-t Feb 16, 2024
dc679f1
Merge branch '393-use-fee_per_second-from-asset-metadata-in-xcm-confi…
gianfra-t Feb 16, 2024
fb74127
merged main
gianfra-t Feb 19, 2024
40628ce
modify expected fees in tests
gianfra-t Feb 19, 2024
d12ac51
added current xcm config to foucoco
gianfra-t Feb 19, 2024
b381318
removing unused constants
gianfra-t Feb 26, 2024
049c215
fully remove alice test account
gianfra-t Feb 27, 2024
b084a87
use multipliers for fee expected constants in tests
gianfra-t Feb 28, 2024
67abe63
merged current main
gianfra-t Mar 1, 2024
1391b74
merged with main
gianfra-t Mar 20, 2024
760f332
wip. addition of convertion functions from asset registry and partia…
gianfra-t Mar 20, 2024
07d6212
add coversion to fee per second
gianfra-t Mar 21, 2024
8458303
fix failing test
gianfra-t Mar 21, 2024
d220df1
fix failing test
gianfra-t Mar 21, 2024
9438c6c
Merge branch '393-use-fee_per_second-from-asset-metadata-in-xcm-confi…
gianfra-t Mar 21, 2024
8891238
cleanup unused imports, logs
gianfra-t Mar 21, 2024
e08b060
add convert from asset registry to Foucoco
gianfra-t Mar 21, 2024
ddabc24
migrate CurrencyIdConvert to common definitions
gianfra-t Mar 25, 2024
254754a
use Inspect trait from asset registry to simplify code
gianfra-t Apr 4, 2024
ff45e0c
use native asset, local perspective
gianfra-t Apr 4, 2024
5026906
fix incorrect native xcm representation
gianfra-t Apr 4, 2024
abae571
remove genesis change used for testing
gianfra-t Apr 4, 2024
80b5dc5
simplify implementation, remove reanchoring before convertion, remove…
gianfra-t Apr 5, 2024
6fc29e8
merged main
gianfra-t Apr 5, 2024
27c0191
modify foucoco SelfLocation
gianfra-t Apr 5, 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
Prev Previous commit
modify foucoco SelfLocation
gianfra-t committed Apr 5, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
commit 27c0191473e85b11f843ce0de4315e9628c8f77f
2 changes: 1 addition & 1 deletion runtime/foucoco/src/xcm_config.rs
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: XCMWeight = XCMWeight::from_parts(1_000_000_000,0);
pub const MaxInstructions: u32 = 100;
pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(ParachainInfo::parachain_id().into())));
pub SelfLocation: MultiLocation = MultiLocation::here();
pub const BaseXcmWeight: XCMWeight = XCMWeight::from_parts(150_000_000, 0);
pub const MaxAssetsForTransfer: usize = 2;
}