Skip to content

Commit

Permalink
Centrifuge XCMs (#1955)
Browse files Browse the repository at this point in the history
* Adding assets

* adding CFG token

* Moonbeam <CFG> Centrifuge

* HydraDX <CFG> Centrifuge

* fix hydra fee

* update hydra fee
  • Loading branch information
stepanLav authored Aug 15, 2023
1 parent c75c4f0 commit 74723b3
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 1 deletion.
25 changes: 25 additions & 0 deletions chains/v13/chains_dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -3210,6 +3210,17 @@
"typeExtras": {
"assetId": "311091173110107856861649819128533077277"
}
},
{
"assetId": 10,
"symbol": "xcCFG",
"precision": 18,
"type": "statemine",
"priceId": "centrifuge",
"icon": "https://raw.githubusercontent.com/novasamatech/nova-utils/master/icons/chains/white/Centrifuge.svg",
"typeExtras": {
"assetId": "91372035960551235635465443179559840483"
}
}
],
"nodes": [
Expand Down Expand Up @@ -4802,6 +4813,20 @@
"existentialDeposit": "10000",
"transfersEnabled": true
}
},
{
"assetId": 10,
"symbol": "CFG",
"precision": 18,
"priceId": "centrifuge",
"type": "orml",
"icon": "https://raw.githubusercontent.com/novasamatech/nova-utils/master/icons/chains/white/Centrifuge.svg",
"typeExtras": {
"currencyIdScale": "0x0d000000",
"currencyIdType": "u32",
"existentialDeposit": "32467532467532500",
"transfersEnabled": true
}
}
],
"nodes": [
Expand Down
105 changes: 104 additions & 1 deletion xcm/v4/transfers_dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,20 @@
},
"instructions": "xtokensReserve"
}
},
"CFG": {
"chainId": "b3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82",
"multiLocation": {
"parachainId": 2031,
"generalKey": "0x0001"
},
"reserveFee": {
"mode": {
"type": "proportional",
"value": "10103663588417159168"
},
"instructions": "xtokensReserve"
}
}
},
"instructions": {
Expand Down Expand Up @@ -345,7 +359,8 @@
"5d3c298622d5634ed019bf61ea4b71655030015bde9beb0d6a24743714462c86": "1000000000",
"00dcb981df86429de8bbacf9803401f09485366c44efbf53af9ecfab03adc7e5": "1000000000",
"dcf691b5a3fbe24adc99ddc959c0561b973e329b1aef4c4b22e7bb2ddecb4464": "1000000000",
"46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2": "1000000000"
"46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2": "1000000000",
"b3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82": "200000000"
},
"chains": [
{
Expand Down Expand Up @@ -1886,6 +1901,29 @@
"type": "xtokens"
}
]
},
{
"assetId": 10,
"assetLocation": "CFG",
"assetLocationPath": {
"type": "absolute"
},
"xcmTransfers": [
{
"destination": {
"chainId": "b3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82",
"assetId": 0,
"fee": {
"mode": {
"type": "proportional",
"value": "10103663588417159168"
},
"instructions": "xtokensDest"
}
},
"type": "xtokens"
}
]
}
]
},
Expand Down Expand Up @@ -5349,6 +5387,29 @@
"type": "xtokens"
}
]
},
{
"assetId": 10,
"assetLocation": "CFG",
"assetLocationPath": {
"type": "absolute"
},
"xcmTransfers": [
{
"destination": {
"chainId": "b3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82",
"assetId": 0,
"fee": {
"mode": {
"type": "proportional",
"value": "10103663588417159168"
},
"instructions": "xtokensDest"
}
},
"type": "xtokens"
}
]
}
]
},
Expand Down Expand Up @@ -5905,6 +5966,48 @@
]
}
]
},
{
"chainId": "b3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82",
"assets": [
{
"assetId": 0,
"assetLocation": "CFG",
"assetLocationPath": {
"type": "absolute"
},
"xcmTransfers": [
{
"destination": {
"chainId": "fe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d",
"assetId": 10,
"fee": {
"mode": {
"type": "proportional",
"value": "121808020814554595328"
},
"instructions": "xtokensDest"
}
},
"type": "xtokens"
},
{
"destination": {
"chainId": "afdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d",
"assetId": 10,
"fee": {
"mode": {
"type": "proportional",
"value": "24087860729545437184"
},
"instructions": "xtokensDest"
}
},
"type": "xtokens"
}
]
}
]
}
]
}

0 comments on commit 74723b3

Please sign in to comment.