Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Sui Move Smart Contracts – Tip Jar & Guestbook

This repository contains two simple smart contracts written in Move for the Sui blockchain, created for learning and practice purposes.
The contracts demonstrate shared objects, transaction context usage, and basic on-chain state management.


📦 Modules Overview

1️⃣ Tip Jar Module (tip_jar::tip_jar)

A shared smart contract that allows users to send tips in SUI to a predefined owner.

🔹 Features

  • Creates a shared TipJar object
  • Tracks:
    • total number of tips
    • total amount tipped
  • Transfers received SUI tips directly to the owner

🔹 Data Structure

public struct TipJar has key {
    id: UID,
    no_of_tips: u64,
    total_amount: u64,
    owner: address,
}

About

Simple smart contracts written in Move for the Sui blockchain, implementing a shared Tip Jar and an on-chain Guestbook.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages