Move Module Publish

Publish move modules with MSafe multi-sig protection

MSafe has provided an application in the app store to support developer publishing move packages with multi-sig protection.

You can follow the step-by-step tutorial to publish your move module:

Step 1

Connect to your MSafe wallet and open the App Store menu.

Step 2

Open the MSafe Move Module Publisher app.

Step 3

You will see the application is opened and click the Connect button, it should connect to your current MSafe wallet.

Once you are connected to your MSafe wallet, you can find your wallet information and some instructions on the page and you can follow the instructions to publish your move module.

Step 4

Click the above address copy button to copy your current MSafe wallet address and replace your address in the Move.toml address section as below image:

Run command:

aptos move compile --save-metadata

to compile your module with MSafe address and you should get a similar result as below:

Step 5

Click the Select & Deploy button and select your build output folder, normally named as /build.

Once you select the build folder, you will see the transaction payload and simulation result.

Step 6

After confirming the details of the move package you are about to publish, click the Propose button to propose the transaction for move publish.

You will see the confirm dialog depending on your single sig wallet connected, click Confirm to approve the transaction.

You can see the pending transaction on the Transactions page now.

Step 7

Now the multi-sig transaction is created, you need to sign this transaction with the other owner's wallet.

You will need to wait for other manager to approve this transaction according to your MSafe wallet threshold.

Step 8

When you collect enough approvals, you can click the Execute Approval button to execute this transaction.

Step 9

After you execute this transaction, you can see the result at the History page.

And you can also check the deployed module on Aptos Explorer.

We can see the move module is published into the MSafe multi-sig address.

Last updated