Skip to content

chirpwireless/sui-testcoin-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testcoin Token

Testcoin contract for testing purposes.

Deploying contract

sui client publish --gas-budget 1000000000

Running tests

sui move test --gas-limit 1000000000

Minting coins

Replace $PACKAGE_ID with your contract's package ID and $VAULT_ID with the ID of the shared vault.

sui client call --package $PACKAGE_ID --module testcoin --function mint --args $VAULT_ID 0x6

Deposit coins to the depository

Replace $PACKAGE_ID with your contract's package ID, $VAULT_ID with the shared vault ID, $RECIPIENT with the recipient's wallet address, and $COIN_ID with the coin's ID to deposit.

sui client call --package $PACKAGE_ID --module testcoin --function deposit --args $VAULT_ID '[$RECIPIENT]' '[$COIN_ID]'

Claim coins from the depository

Replace $PACKAGE_ID with your contract's package ID, $VAULT_ID with the shared vault ID, and $AMOUNT with the number of coins to claim.

sui client call --package $PACKAGE_ID --module testcoin --function claim --args $VAULT_ID $AMOUNT

About

Testcoin contract for testing purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages