Skip to content

Commit

Permalink
setup script update
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddy Li authored and Freddy Li committed Aug 1, 2024
1 parent 692dff2 commit 831d8f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/standalone/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ async function main() {
await setFeeRate(api, domain.domainID, getNativeAssetId(api), percentageFeeRate, feeRateLowerBound, feeRateUpperBound, true, sudo);
}

// transfer some native asset to FeeReserveAccount and TransferReserveAccounts as Existential Deposit(aka ED)
await setBalance(api, FeeReserveAccountAddress, bn1e12.mul(new BN(10000)), true, sudo); // set balance to 10000 native asset
await setBalance(api, TransferReserveNativeAccount, bn1e12.mul(new BN(10000)), true, sudo); // set balance to 10000 native asset
await setBalance(api, TransferReserveOtherAccount, bn1e12.mul(new BN(10000)), true, sudo); // set balance to 10000 native asset

// create USDC test asset (foreign asset)
// UsdcAssetId: AssetId defined in runtime.rs
const usdcAssetID = 2000;
Expand Down Expand Up @@ -125,11 +130,6 @@ async function main() {
await setFeeRate(api, domain.domainID, getERC20TSTD20AssetId(api), percentageFeeRate, feeRateLowerBound, feeRateUpperBound,true, sudo);
}

// transfer some native asset to FeeReserveAccount and TransferReserveAccounts as Existential Deposit(aka ED)
await setBalance(api, FeeReserveAccountAddress, bn1e12.mul(new BN(10000)), true, sudo); // set balance to 10000 native asset
await setBalance(api, TransferReserveNativeAccount, bn1e12.mul(new BN(10000)), true, sudo); // set balance to 10000 native asset
await setBalance(api, TransferReserveOtherAccount, bn1e12.mul(new BN(10000)), true, sudo); // set balance to 10000 native asset

// set up MPC address(will also unpause all registered domains)
if (mpcAddr) {
console.log(`set up mpc address: ${mpcAddr}`);
Expand Down

0 comments on commit 831d8f4

Please sign in to comment.