Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
mclyk committed Jul 27, 2023
1 parent edf06bf commit 7cb1c76
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/helper/src/commands/launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ async function para({ logger, options: { paraWs, network } }: ActionParameters)
)
}

for (const { xcmCall, feeMisc } of config.xcmHelper) {
logger.info(`Update ${xcmCall} WeightFeeMisc`)
call.push(api.tx.sudo.sudo(api.tx.xcmHelper.updateXcmWeightFee(xcmCall, feeMisc)))
}

logger.info('Submit parachain batches.')
await api.tx.utility.batchAll(call).signAndSend(signer, { nonce: await nextNonce(api, signer) })
}
Expand Down
34 changes: 34 additions & 0 deletions scripts/helper/src/config/heiko.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,5 +424,39 @@
"assetType": {"Xcm":{"parents":1, "interior":{"X3":[{"Parachain": 2085},{"PalletInstance": 6},{"GeneralIndex": 1000}]}}},
"unitsPerSecond":"731957253696"
}
],
"xcmHelper":[
{
"xcmCall": "Bond",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "BondExtra",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "UnBond",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "ReBond",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "WithdrawUnbonded",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "Nominate",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "Contribute",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "Withdraw",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
}
]
}
34 changes: 34 additions & 0 deletions scripts/helper/src/config/parallel.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,5 +447,39 @@
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2000},{"GeneralKey": {"length":2,"data":"0x0000000000000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"196078431372549"
}
],
"xcmHelper":[
{
"xcmCall": "Bond",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "BondExtra",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "UnBond",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "ReBond",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "WithdrawUnbonded",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "Nominate",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "Contribute",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
},
{
"xcmCall": "Withdraw",
"feeMisc": {"weight": {"refTime":20000000000,"proofSize":65536},"fee":20000000000}
}
]
}

0 comments on commit 7cb1c76

Please sign in to comment.