Skip to content

berzanorg/aptos-landing-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aptos-landing-contract

Move module for Aptos Landing dApp.

The dApp is live at berzanxyz.github.io.

An interface for Aptos Landing dApp resides in aptos-landing-interface.

Events and tests are not implemented as this project is very basic.

Clone the repo

You can run the command below to clone the repo.

git clone https://github.com/berzanxyz/aptos-landing-contract.git

Setup a development environment

You can use Dev Containers to setup a development environment.

Initialize an Aptos account

Run the command below to initialize an Aptos account.

It will create .aptos/config.yaml file.

aptos init

Change the address

Copy the address for account in .aptos/config.yaml file.

In Move.toml file, change aptos_landing_contract under [addresses] to the address you copied.

Publish

Run the command below to publish the module on Aptos Devnet.

aptos move publish

Interact

You can run the command below to setup a page for yourself.

aptos move run --function-id <address-you-copied>::landing::setup_page --args '<name>' '<website>' '<twitter>' '<facebook>' '<instagram>' '<youtube>' '<tiktok>'

Don't forget to include the types for each argument like string:foobar.

See the resources

You can run the command below to see the resources.

aptos account list