module my_first_package::my_counter { use sui::object::{Self, UID}; use sui::transfer; use sui::tx_context::{Self, TxContext}; struct CountHistory has store { up: u64, down: u64 } struct Counter has key { id: UID, count: u64, count_history: CountHistory } fun init(ctx: &mut TxContext) { let counter = Counter { id: object::new(ctx), count: 0, count_history: CountHistory { up: 0, down: 0, } }; trans