Skip to content

Commit

Permalink
🆙 Update XCM coefficients for DEV env (#1993)
Browse files Browse the repository at this point in the history
* Update xcm coefficients

* fix command

* fix params

* change fee

---------

Co-authored-by: novasama-bot <140433189+novasama-bot[bot]@users.noreply.github.com>
Co-authored-by: Stepan Lavrentev <lawrentievsv@gmail.com>
  • Loading branch information
novasama-bot[bot] and stepanLav authored Aug 24, 2023
1 parent d23efad commit 22bd901
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 31 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pull_request_for_xcm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ jobs:
- name: Generate message for PROD
if: steps.prod.outputs.any_changed == 'true'
run: |
echo "## Changes for PROD" >> ${{ env.BODY_FILE }}
make pr-comment-creation PR_ENV=prod PR_FILE_NAME=${{ env.BODY_FILE }}
make pr-comment-creation PR_ENV=PROD PR_FILE_NAME=${{ env.BODY_FILE }}
- name: Generate message for DEV
if: steps.dev.outputs.any_changed == 'true'
run: |
echo "## Changes for DEV" >> ${{ env.BODY_FILE }}
make pr-comment-creation PR_ENV=prod PR_FILE_NAME=${{ env.BODY_FILE }}
make pr-comment-creation PR_ENV=DEV PR_FILE_NAME=${{ env.BODY_FILE }}
- name: Find Comment
uses: peter-evans/find-comment@v2
Expand Down
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ allure:
allure serve $(ALLURE_DIR)

pr-comment-creation:
echo "## Changes for $(PR_ENV)" >> $(PR_FILE_NAME)
$(VENV)/bin/python scripts/print_xcm_changes.py $(PR_ENV) >> $(PR_FILE_NAME)
12 changes: 6 additions & 6 deletions scripts/print_xcm_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ def main(argv):

nova_utils_url = "https://raw.githubusercontent.com/novasamatech/nova-utils/master/"

if 'dev' in argv:
if 'DEV' in argv:
transfers_file = os.getenv(
"DEV_XCM_JSON_PATH", "xcm/v2/transfers_dev.json")
"DEV_XCM_JSON_PATH", "xcm/v4/transfers_dev.json")
chains_url = nova_utils_url + \
os.getenv("DEV_CHAINS_JSON_PATH", "chains/v6/chains_dev.json")
elif 'prod' in argv:
transfers_file = os.getenv("XCM_JSON_PATH", "xcm/v2/transfers.json")
os.getenv("DEV_CHAINS_JSON_PATH", "chains/v13/chains_dev.json")
elif 'PROD' in argv:
transfers_file = os.getenv("XCM_JSON_PATH", "xcm/v4/transfers.json")
chains_url = nova_utils_url + \
os.getenv("CHAINS_JSON_PATH", "chains/v6/chains.json")
os.getenv("CHAINS_JSON_PATH", "chains/v13/chains.json")
else:
raise Exception(
'Provide a string `dev` or `prod` as parameter for the script')
Expand Down
42 changes: 21 additions & 21 deletions xcm/v4/transfers_dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
"reserveFee": {
"mode": {
"type": "proportional",
"value": "1010366358841716"
"value": "879987328182475"
},
"instructions": "xtokensReserve"
}
Expand Down Expand Up @@ -283,7 +283,7 @@
"reserveFee": {
"mode": {
"type": "proportional",
"value": "1001602564102564096"
"value": "879987328182474112"
},
"instructions": "xtokensReserve"
}
Expand Down Expand Up @@ -529,7 +529,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -838,7 +838,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "2622993329"
"value": "1985780716"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -978,7 +978,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xcmPalletDest"
}
Expand Down Expand Up @@ -1313,7 +1313,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -1893,7 +1893,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "1001602564102564096"
"value": "879987328182474112"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -2460,7 +2460,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "1001602564102564096"
"value": "879987328182474112"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -2590,7 +2590,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "7303816"
"value": "6344460"
},
"instructions": "xcmPalletDest"
}
Expand Down Expand Up @@ -2832,7 +2832,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -3083,7 +3083,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -3488,7 +3488,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -4235,7 +4235,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "1001602564102564096"
"value": "879987328182474112"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -4612,7 +4612,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -4798,7 +4798,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "1010366358841716"
"value": "879987328182475"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -4942,7 +4942,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "140087223707541"
"value": "141500457325574"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -5379,7 +5379,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "1001602564102564096"
"value": "879987328182474112"
},
"instructions": "xtokensDest"
}
Expand Down Expand Up @@ -5444,7 +5444,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "2622993329"
"value": "1985780716"
},
"instructions": "xcmPalletDest"
}
Expand Down Expand Up @@ -5481,7 +5481,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "413425968210"
"value": "397249105344"
},
"instructions": "xcmPalletDest"
}
Expand Down Expand Up @@ -5798,7 +5798,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "99824309215780225024"
"value": "99824309215780226800"
},
"instructions": "xcmPalletDest"
}
Expand Down Expand Up @@ -5984,7 +5984,7 @@
"fee": {
"mode": {
"type": "proportional",
"value": "121808020814554595328"
"value": "121808020814554596791"
},
"instructions": "xtokensDest"
}
Expand Down

0 comments on commit 22bd901

Please sign in to comment.