Happy diving into the flow Remember to test your contracts in 1.0 here on testnet
[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: error getting program f2fa8911f691f94a.LendingAprSnapshot: failed to derive value: load program failed: Parsing failed: error: `pub` is no longer a valid access keyword --> :5:0 | 5 | pub contract LendingAprSnapshot { | ^^^ error: `pub` is no longer a valid access keyword --> :6:4 | 6 | pub let AdminStoragePath: StoragePath | ^^^ error: `pub` is no longer a valid access keyword --> :13:4 | 13 | pub event MarketDataTracked(market: Address, marketType: String, startTrackingFrom: UFix64) | ^^^ error: `pub` is no longer a valid access keyword --> :14:4 | 14 | pub event MarketDataErased(market: Address, erasedFrom: UFix64) | ^^^ error: `pub` is no longer a valid access keyword --> :15:4 | 15 | pub event AprSampled(market: Address, truncatedTimestamp: UInt64, supplyApr: UFix64, borrowApr: UFix64) | ^^^ error: `pub` is no longer a valid access keyword --> :18:4 | 18 | pub struct Observation { | ^^^ error: `pub` is no longer a valid access keyword --> :20:8 | 20 | pub let timestamp: UFix64 | ^^^ error: `pub` is no longer a valid access keyword --> :22:8 | 22 | pub let supplyApr: UFix64 | ^^^ error: `pub` is no longer a valid access keyword --> :24:8 | 24 | pub let borrowApr: UFix64 | ^^^ error: `pub` is no longer a valid access keyword --> :34:4 | 34 | pub struct AprSnapshot { | ^^^ error: `pub` is no longer a valid access keyword --> :36:8 | 36 | pub let poolPublicCap: Capability<&{LendingInterfaces.PoolPublic}> | ^^^ error: `pub` is no longer a valid access keyword --> :38:8 | 38 | pub let sampleLength: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :40:8 | 40 | pub let numSamples: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :47:8 | 47 | pub fun observationIndexOf(timestamp: UFix64): UInt64 { | ^^^ error: `pub` is no longer a valid access keyword --> :51:8 | 51 | pub fun sample(): Bool { | ^^^ error: `pub` is no longer a valid access keyword --> :71:8 | 71 | pub fun queryHistoricalAprData(scale: UInt8, plotPoints: UInt64): [Observation] { | ^^^ error: `pub` is no longer a valid access keyword --> :117:8 | 117 | pub fun getLatestData(): Observation { | ^^^ error: `pub` is no longer a valid access keyword --> :143:4 | 143 | pub fun sample(poolAddr: Address): Bool { | ^^^ error: `pub` is no longer a valid access keyword --> :159:4 | 159 | pub fun queryHistoricalAprData(poolAddr: Address, scale: UInt8, plotPoints: UInt64): [Observation] { | ^^^ error: `pub` is no longer a valid access keyword --> :170:4 | 170 | pub fun getLatestData(poolAddr: Address): Observation { | ^^^ error: `pub` is no longer a valid access keyword --> :214:4 | 214 | pub resource Admin { | ^^^ error: `pub` is no longer a valid access keyword --> :215:8 | 215 | pub fun trackMarketData(poolAddr: Address) { | ^^^ error: `pub` is no longer a valid access keyword --> :218:8 | 218 | pub fun eraseMarketData(poolAddr: Address) { | ^^^ --> f2fa8911f691f94a.LendingAprSnapshot error: cannot find type in this scope: `AuthAccount` --> ddfbd2215bfb52b2c1ae61fd4dd1baa39cafd2e1840ea5221e9c625d43ce2880:8:17 | 8 | prepare(bot: AuthAccount) { | ^^^^^^^^^^^ not found in this scope error: value of type `&Account` has no member `getCapability` --> ddfbd2215bfb52b2c1ae61fd4dd1baa39cafd2e1840ea5221e9c625d43ce2880:9:79 | 9 | let comptrollerRef = getAccount(LendingComptroller.comptrollerAddress).getCapability<&{LendingInterfaces.ComptrollerPublic}>(LendingConfig.ComptrollerPublicPath).borrow() | ^^^^^^^^^^^^^ unknown member error: cannot find variable in this scope: `LendingAprSnapshot` --> ddfbd2215bfb52b2c1ae61fd4dd1baa39cafd2e1840ea5221e9c625d43ce2880:14:26 | 14 | let sampled = LendingAprSnapshot.sample(poolAddr: poolAddr) | ^^^^^^^^^^^^^^^^^^ not found in this scope error: value of type `&Account` has no member `getCapability` --> ddfbd2215bfb52b2c1ae61fd4dd1baa39cafd2e1840ea5221e9c625d43ce2880:15:33 | 15 | getAccount(poolAddr).getCapability<&{LendingInterfaces.PoolPublic}>(/public/incrementLendingPoolPublic).borrow()!.accrueInterest() | ^^^^^^^^^^^^^ unknown member