Please follow the instructions below to convert SUI's Counter contract to APTOS SUI's contract.
- Node.js and npm should be installed on your system.
- Install the dependencies.
npm install
- Execute the conversion command. The counter contract from
https://github.com/MystenLabs/sui/blob/main/sui_programmability/examples/basics/sources/counter.move
node index.js
This command will convert the Counter contract from SUI to APTOS SUI and save it in the "counter-apt" directory.
- Navigate to the "counter-apt" directory.
cd counter-apt
- Generate bytecode and metadata for deployment on the APTOS chain.
aptos move compile
The bytecode and metadata files will be generated, which can be used to deploy the contract on the APTOS chain.
By following these instructions, you will be able to convert SUI's Counter contract to APTOS SUI's contract and generate the necessary files for deployment on the APTOS chain.