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.
A shared smart contract that allows users to send tips in SUI to a predefined owner.
- Creates a shared TipJar object
- Tracks:
- total number of tips
- total amount tipped
- Transfers received SUI tips directly to the owner
public struct TipJar has key {
id: UID,
no_of_tips: u64,
total_amount: u64,
owner: address,
}