Skip to content

reclaimprotocol/aptos-sdk-onchain-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Aptos SDK

Prerequisites

  • Make sure you have the Aptos CLI installed.
  • Your Aptos wallet address should be ready for deployment.

Important Commands

1. Initialize Aptos

aptos init
  • Choose your network from [devnet, testnet, mainnet, local, custom] (default is devnet).
  • Enter your private key as a hex literal (0x...).

2. Run Tests

aptos move test --dev

3. Compile the Contract

aptos move compile --named-addresses reclaim=<your wallet address>

4. Deploy the Contract

aptos move deploy-object --address-name reclaim

5. Call create_reclaim_manager Function

aptos move run --function-id <your contract address>::reclaim::create_reclaim_manager --args u32:1000

6. Call add_new_epoch Function

aptos move run --function-id <your contract address>::reclaim::add_new_epoch --args u128:1 'address:["0x244897572368eadf65bfbc5aec98d8e5443a9072"]'
  • Replace <your wallet address> and <your contract address> with your actual addresses when running these commands. This README provides the essential commands for getting started with your Reclaim SDK on the Aptos network.

  • if you got the error Failed to reset to latest Git state 'mainnet try adding --skip-fetch-latest-git-deps to the command.

Deployments

Chain Address Explorer
Testnet 0xd33b912ac96983caa70ac9f44f7e274d1a29158c71e40c26b967e75e72a11d5f View

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages