Smart Contract

TokenTransferEventContract

A.66b60643244a7738.TokenTransferEventContract

Deployed

14h ago
Feb 28, 2026, 02:29:07 AM UTC

Dependents

0 imports
1pub contract TokenTransferEventContract {
2    // Define an event that takes the amount of tokens transferred as an argument
3    pub event TokensTransferred(amount: UFix64, address: Address)
4    pub event BasicTourCompleted(address: Address)
5    pub event BasicTourIncomplete(value: UInt64, address: Address)
6    pub event ageVerified(key: String, address: Address)
7
8    // Define a public function to emit the event, which can be called by a transaction
9    // This event will trigger a backend command to send TIT Tokens based on the Flow value transferred
10    pub fun emitTokensTransferred(amount: UFix64, address: Address) {
11        emit TokensTransferred(amount: amount, address: address)
12    }
13
14    // When this event is triggered, someone has completed the basic Tour of TIT palace and needs to receive their winnings.
15    pub fun emitBasicTourCompleted(address: Address) {
16        emit BasicTourCompleted(address: address)
17    }
18
19    //If they don't complete the tour, let's see how far that got with the value variable and also capture their address
20    pub fun emitBasicTourIncomplete(value: UInt64, address: Address) {
21        emit BasicTourIncomplete(value: value, address: address)
22    }
23
24    pub fun emitAgeVerified(key: String, address: Address) {
25        emit ageVerified(key: key, address: address)
26    }
27
28
29}