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

Foreign assets creation via token reserve #3104

Draft
wants to merge 63 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
e12f440
add basics for foreign asset creation via token reserve WIP
gonzamontiel Dec 9, 2024
31616cd
create new extrinsic for the new way of creating foreign assets
gonzamontiel Dec 12, 2024
a50448e
ensure the modifier is the owner of the asset (migration needed)
gonzamontiel Dec 12, 2024
942bf9c
add default weights
gonzamontiel Dec 12, 2024
793236a
format
gonzamontiel Dec 12, 2024
0c891f5
Merge remote-tracking branch 'origin/master' into gonza/foreign-asset…
gonzamontiel Dec 27, 2024
d3cedc2
simplify logic, rollback to granular origins per operation
gonzamontiel Jan 2, 2025
abb9290
remove unused extrinsic
gonzamontiel Jan 3, 2025
f7b300e
improve readability
gonzamontiel Jan 3, 2025
4283fd4
make ForeignAssetCreationDeposit dynamic
gonzamontiel Jan 3, 2025
6938955
Merge branch 'master' into gonza/foreign-assets-via-token-lock
gonzamontiel Jan 6, 2025
a75ef40
remove unused block number
gonzamontiel Jan 7, 2025
c365093
fix rust tests
gonzamontiel Jan 7, 2025
2e396b4
fix moonbase xcm config
gonzamontiel Jan 7, 2025
0f5c5d1
fmt
gonzamontiel Jan 7, 2025
e02f62a
Merge branch 'master' into gonza/foreign-assets-via-token-lock
gonzamontiel Jan 7, 2025
a79f5d7
fix manager origin for moonriver
gonzamontiel Jan 7, 2025
dd6e3f6
tidy
gonzamontiel Jan 7, 2025
8cf4b8a
change back MaxFreezes to 0 as not needed anymore
gonzamontiel Jan 7, 2025
07c6cab
fix foreign assets rust tests
gonzamontiel Jan 7, 2025
ef4856c
make helper use correct call for creating foreign assets
gonzamontiel Jan 7, 2025
9bafa10
reformat test
gonzamontiel Jan 7, 2025
80d5ecb
fix benchmarks
gonzamontiel Jan 8, 2025
a9216fc
format
gonzamontiel Jan 8, 2025
2ae2dd4
Update test/helpers/assets.ts
gonzamontiel Jan 8, 2025
77ecd67
fix call
gonzamontiel Jan 8, 2025
aaab255
add UNITS multiplier
gonzamontiel Jan 8, 2025
a0b0e64
Merge branch 'master' into gonza/foreign-assets-via-token-lock
gonzamontiel Jan 8, 2025
1424ca3
rollback sudo
gonzamontiel Jan 8, 2025
2dfd940
expect balance diff
gonzamontiel Jan 8, 2025
c543215
remove unused weights
gonzamontiel Jan 8, 2025
f1dba45
lint
gonzamontiel Jan 8, 2025
a68bb12
remove typeinfo bound as already computed
gonzamontiel Jan 10, 2025
251497f
Add custom origin that ensures only XCM origins, which contain a cert…
gonzamontiel Jan 13, 2025
5e62ad1
modify foreign assets origin to use ForeignAssetOwnerOrigin
gonzamontiel Jan 13, 2025
8709f57
remove Root as possible origin
gonzamontiel Jan 14, 2025
75d0acb
get account from ensure_origin
gonzamontiel Jan 14, 2025
c24aa67
format
gonzamontiel Jan 14, 2025
9a07cf7
copy
gonzamontiel Jan 14, 2025
e749a81
Merge remote-tracking branch 'origin/master' into gonza/foreign-asset…
gonzamontiel Jan 14, 2025
4fd2e86
update mock
gonzamontiel Jan 14, 2025
cf918bf
remove governance asset owner
TarekkMA Jan 22, 2025
ebc7469
fix tests
TarekkMA Jan 22, 2025
1541ea4
fix tests
TarekkMA Jan 22, 2025
82a711e
fix formatting
TarekkMA Jan 23, 2025
3d6002d
Merge remote-tracking branch 'origin/master' into gonza/foreign-asset…
TarekkMA Jan 23, 2025
ac7ada3
fmt
TarekkMA Jan 23, 2025
a7a6df0
change how we ensure sibling
TarekkMA Jan 24, 2025
3294d8b
fmt: formatting
TarekkMA Jan 24, 2025
e9945c7
refactor: events
TarekkMA Jan 28, 2025
30051fe
fix: fix tests compile time issues
TarekkMA Jan 28, 2025
83e38c6
fix: fix test
TarekkMA Jan 28, 2025
58a823d
refactor: rename
TarekkMA Jan 28, 2025
3763644
Add governance + sibling parachain
TarekkMA Jan 29, 2025
79a9232
Add governance + sibling parachain
TarekkMA Jan 29, 2025
3a427a2
fix event
TarekkMA Jan 29, 2025
b2cd461
fix event
TarekkMA Jan 29, 2025
8c7464c
test: add tests
TarekkMA Jan 29, 2025
9ee915f
test: add tests
TarekkMA Jan 29, 2025
d74895b
test: add tests
TarekkMA Jan 30, 2025
2b2826d
test: add tests
TarekkMA Jan 30, 2025
458d92d
style: formatting
TarekkMA Jan 30, 2025
2a5085d
Merge remote-tracking branch 'origin/master' into gonza/foreign-asset…
TarekkMA Jan 30, 2025
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
143 changes: 143 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ xcm = { package = "staging-xcm", git = "https://github.com/moonbeam-foundation/p
xcm-builder = { package = "staging-xcm-builder", git = "https://github.com/moonbeam-foundation/polkadot-sdk", branch = "moonbeam-polkadot-stable2409", default-features = false }
xcm-executor = { package = "staging-xcm-executor", git = "https://github.com/moonbeam-foundation/polkadot-sdk", branch = "moonbeam-polkadot-stable2409", default-features = false }
xcm-runtime-apis = { git = "https://github.com/moonbeam-foundation/polkadot-sdk", branch = "moonbeam-polkadot-stable2409", default-features = false }
snowbridge-core = { git = "https://github.com/moonbeam-foundation/polkadot-sdk", branch = "moonbeam-polkadot-stable2409", default-features = false }

# Polkadot / XCM (client)
#kusama-runtime = { package = "staging-kusama-runtime", git = "https://github.com/moonbeam-foundation/polkadot-sdk", branch = "moonbeam-polkadot-stable2409" }
Expand Down
4 changes: 3 additions & 1 deletion pallets/moonbeam-foreign-assets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pallet-evm = { workspace = true, features = ["forbid-evm-reentrancy"] }
# Polkadot
xcm = { workspace = true }
xcm-executor = { workspace = true }
snowbridge-core = { workspace = true }

# Benchmarks
frame-benchmarking = { workspace = true, optional = true }
Expand Down Expand Up @@ -55,7 +56,8 @@ std = [
"sp-runtime/std",
"sp-std/std",
"xcm/std",
"xcm-executor/std"
"xcm-executor/std",
"snowbridge-core/std"
]

runtime-benchmarks = [ "frame-benchmarking"]
Expand Down
Loading
Loading