TransactionSEALED

╱▒░░*@●◇▓▒◆■■□╱▪◇▫▫╲□◆?■░^◆^~░@^%◆█▓▫$▫□@?╲●!^@■◇╱░╲◇◆▓□^!▒●▪*^&

Transaction ID

Timestamp

Aug 26, 2024, 10:06:48 PM UTC
1y ago

Block Height

85,389,659

Computation

0

Execution Fee

0.00005948 FLOW

Transaction Summary

Contract Call

Called FixesHeartbeat, FRC20FTShared, FRC20AccountsPool +1 more

Script Arguments

Cadence Script

1// Fixes imports
2import FixesHeartbeat from 0xd2abb5dbf5e08666
3import FRC20FTShared from 0xd2abb5dbf5e08666
4import FRC20AccountsPool from 0xd2abb5dbf5e08666
5import FRC20StakingManager from 0xd2abb5dbf5e08666
6
7transaction() {
8    let heartbeat: &FixesHeartbeat.Heartbeat
9
10    prepare(acct: AuthAccount) {
11        /** ------------- Start -- Fixes Heartbeat Initialization ------------  */
12        // ensure resource
13        if acct.borrow<&AnyResource>(from: FixesHeartbeat.storagePath) == nil {
14            acct.save(<- FixesHeartbeat.create(), to: FixesHeartbeat.storagePath)
15        }
16        /** ------------- End ---------------------------------------------------------- */
17
18        self.heartbeat = acct.borrow<&FixesHeartbeat.Heartbeat>(from: FixesHeartbeat.storagePath)
19            ?? panic("Could not borrow a reference to the heartbeat")
20    }
21
22    execute {
23        let acctsPool = FRC20AccountsPool.borrowAccountsPool()
24        // Tick for staking
25        let platformTickerName = FRC20FTShared.getPlatformStakingTickerName()
26        if acctsPool.getFRC20StakingAddress(tick: platformTickerName) != nil {
27            self.heartbeat.tick(scope: "Staking:".concat(platformTickerName))
28        }
29        // Tick for lottery
30        self.heartbeat.tick(scope: "FGameLottery")
31        // Tick for Votes
32        self.heartbeat.tick(scope: "FRC20Votes")
33        // Tick for TradablePool
34        self.heartbeat.tick(scope: "TradablePool")
35    }
36}