CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: error getting program dd2792e4d9c851f2.BandOracle: failed to derive value: load program failed: Parsing failed: error: `pub` is no longer a valid access keyword --> :7:0 | 7 | pub contract BandOracle { | ^^^ error: `pub` is no longer a valid access keyword --> :12:4 | 12 | pub let OracleAdminStoragePath: StoragePath | ^^^ error: `pub` is no longer a valid access keyword --> :13:4 | 13 | pub let OracleAdminPrivatePath: PrivatePath | ^^^ error: `pub` is no longer a valid access keyword --> :16:4 | 16 | pub let RelayStoragePath: StoragePath | ^^^ error: `pub` is no longer a valid access keyword --> :17:4 | 17 | pub let RelayPrivatePath: PrivatePath | ^^^ error: `pub` is no longer a valid access keyword --> :20:4 | 20 | pub let FeeCollectorStoragePath: StoragePath | ^^^ error: `pub` is no longer a valid access keyword --> :32:4 | 32 | pub let e18: UInt256 | ^^^ error: `pub` is no longer a valid access keyword --> :35:4 | 35 | pub let e9: UInt256 | ^^^ error: `pub` is no longer a valid access keyword --> :47:4 | 47 | pub event BandOracleSymbolsUpdated(symbols: [String], relayerID: UInt64, requestID: UInt64) | ^^^ error: `pub` is no longer a valid access keyword --> :50:4 | 50 | pub event BandOracleSymbolRemoved(symbol: String) | ^^^ error: `pub` is no longer a valid access keyword --> :57:4 | 57 | pub struct RefData { | ^^^ error: `pub` is no longer a valid access keyword --> :59:8 | 59 | pub var rate: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :61:8 | 61 | pub var timestamp: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :63:8 | 63 | pub var requestID: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :74:4 | 74 | pub struct ReferenceData { | ^^^ error: `pub` is no longer a valid access keyword --> :76:8 | 76 | pub var integerE18Rate: UInt256 | ^^^ error: `pub` is no longer a valid access keyword --> :78:8 | 78 | pub var fixedPointRate: UFix64 | ^^^ error: `pub` is no longer a valid access keyword --> :80:8 | 80 | pub var baseTimestamp: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :82:8 | 82 | pub var quoteTimestamp: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :97:4 | 97 | pub resource interface OracleAdmin { | ^^^ error: `pub` is no longer a valid access keyword --> :98:8 | 98 | pub fun getUpdaterCapabilityPathFromAddress (relayer: Address): PrivatePath | ^^^ error: `pub` is no longer a valid access keyword --> :99:8 | 99 | pub fun removeSymbol (symbol: String) | ^^^ error: `pub` is no longer a valid access keyword --> :100:8 | 100 | pub fun createNewFeeCollector (): @BandOracle.FeeCollector | ^^^ error: `pub` is no longer a valid access keyword --> :105:4 | 105 | pub resource interface DataUpdater { | ^^^ error: `pub` is no longer a valid access keyword --> :106:8 | 106 | pub fun updateData (symbolsRates: {String: UInt64}, resolveTime: UInt64, | ^^^ error: `pub` is no longer a valid access keyword --> :108:8 | 108 | pub fun forceUpdateData (symbolsRates: {String: UInt64}, resolveTime: UInt64, | ^^^ error: `pub` is no longer a valid access keyword --> :115:4 | 115 | pub resource BandOracleAdmin: OracleAdmin, DataUpdater { | ^^^ error: `pub` is no longer a valid access keyword --> :122:8 | 122 | pub fun getUpdaterCapabilityPathFromAddress (relayer: Address): PrivatePath { | ^^^ error: `pub` is no longer a valid access keyword --> :138:8 | 138 | pub fun removeSymbol (symbol: String) { | ^^^ error: `pub` is no longer a valid access keyword --> :149:8 | 149 | pub fun updateData (symbolsRates: {String: UInt64}, resolveTime: UInt64, | ^^^ error: `pub` is no longer a valid access keyword --> :162:8 | 162 | pub fun forceUpdateData (symbolsRates: {String: UInt64}, resolveTime: UInt64, | ^^^ error: `pub` is no longer a valid access keyword --> :173:8 | 173 | pub fun createNewFeeCollector (): @FeeCollector { | ^^^ error: `pub` is no longer a valid access keyword --> :181:4 | 181 | pub resource Relay { | ^^^ error: `pub` is no longer a valid access keyword --> :192:8 | 192 | pub fun relayRates (symbolsRates: {String: UInt64}, resolveTime: UInt64, requestID: UInt64) { | ^^^ error: `pub` is no longer a valid access keyword --> :204:8 | 204 | pub fun forceRelayRates (symbolsRates: {String: UInt64}, resolveTime: UInt64, requestID: UInt64) { | ^^^ error: `pub` is no longer a valid access keyword --> :219:4 | 219 | pub resource FeeCollector { | ^^^ error: `pub` is no longer a valid access keyword --> :225:8 | 225 | pub fun setFee (fee: UFix64) { | ^^^ error: `pub` is no longer a valid access keyword --> :233:8 | 233 | pub fun collectFees (): @FungibleToken.Vault { | ^^^ error: `pub` is no longer a valid access keyword --> :347:4 | 347 | pub fun createRelay (updaterCapability: Capability<&{DataUpdater}>): @Relay { | ^^^ error: `pub` is no longer a valid access keyword --> :357:4 | 357 | pub fun getUpdaterCapabilityNameFromAddress (relayer: Address): String { | ^^^ error: `pub` is no longer a valid access keyword --> :369:4 | 369 | pub fun getFee (): UFix64 { | ^^^ error: `pub` is no longer a valid access keyword --> :380:4 | 380 | pub fun getReferenceData (baseSymbol: String, quoteSymbol: String, payment: @FungibleToken.Vault): ReferenceData { | ^^^ error: `pub` is no longer a valid access keyword --> :398:4 | 398 | pub fun e18ToFixedPoint (rate: UInt256): UFix64 { | ^^^ --> dd2792e4d9c851f2.BandOracle error: cannot find type in this scope: `BandOracle` --> 96f5cd443bccf9c82c49590cff2accee637d1b6806eaf2b71e3b55410be9cb5e:5:23 | 5 | let relayRef: &BandOracle.Relay | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `BandOracle` --> 96f5cd443bccf9c82c49590cff2accee637d1b6806eaf2b71e3b55410be9cb5e:9:49 | 9 | self.relayRef = acct.storage.borrow<&BandOracle.Relay>(from: BandOracle.RelayStoragePath) ?? | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `BandOracle` --> 96f5cd443bccf9c82c49590cff2accee637d1b6806eaf2b71e3b55410be9cb5e:9:73 | 9 | self.relayRef = acct.storage.borrow<&BandOracle.Relay>(from: BandOracle.RelayStoragePath) ?? | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 96f5cd443bccf9c82c49590cff2accee637d1b6806eaf2b71e3b55410be9cb5e:9:28 | 9 | self.relayRef = acct.storage.borrow<&BandOracle.Relay>(from: BandOracle.RelayStoragePath) ?? | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Arguments:
symbolsRates:
ETH:
2363033630100
FLOW:
555182500
USDC:
999936346
USDT:
1000019999
WBTC:
57966625372122
resolveTime:
1726121271
requestID:
23947004