[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: error getting program 651fd50c5ca7d66c.MagnetiqAlphaOne: failed to derive value: load program failed: Parsing failed: error: `pub` is no longer a valid access keyword --> :43:0 | 43 | pub contract MagnetiqAlphaOne: NonFungibleToken { | ^^^ error: `pub` is no longer a valid access keyword --> :49:4 | 49 | pub fun Network() : String { return self.currentNetwork} | ^^^ error: `pub` is no longer a valid access keyword --> :52:4 | 52 | pub fun RoyaltyAddress() : Address { return self.royalityReceiver } | ^^^ error: `pub` is no longer a valid access keyword --> :60:4 | 60 | pub event ContractInitialized() | ^^^ error: `pub` is no longer a valid access keyword --> :63:4 | 63 | pub event MagnetCreated(id: String, metadata: {String:String}) | ^^^ error: `pub` is no longer a valid access keyword --> :69:4 | 69 | pub event BrandCreated(brandID: String) | ^^^ error: `pub` is no longer a valid access keyword --> :71:4 | 71 | pub event MagnetAddedToBrand(brandID: String, magnetID: String) | ^^^ error: `pub` is no longer a valid access keyword --> :73:4 | 73 | pub event MagnetRetiredFromBrand(brandID: String, magnetID: String, numTokens: UInt32) | ^^^ error: `pub` is no longer a valid access keyword --> :75:4 | 75 | pub event BrandLocked(brandID: String) | ^^^ error: `pub` is no longer a valid access keyword --> :77:4 | 77 | pub event TokensMinted(tokenID: UInt64, tokenType:String , magnetiqID: String, brandID: String, serialNumber: UInt32) | ^^^ error: `pub` is no longer a valid access keyword --> :82:4 | 82 | pub event Withdraw(id: UInt64, from: Address?) | ^^^ error: `pub` is no longer a valid access keyword --> :84:4 | 84 | pub event Deposit(id: UInt64, to: Address?) | ^^^ error: `pub` is no longer a valid access keyword --> :87:4 | 87 | pub event TokensDestroyed(id: UInt64) | ^^^ error: `pub` is no longer a valid access keyword --> :90:4 | 90 | pub event MementoCreated(mementoID:String, magnetID:String) | ^^^ error: `pub` is no longer a valid access keyword --> :93:4 | 93 | pub event TokenClaimed(tokenID:UInt64) | ^^^ error: `pub` is no longer a valid access keyword --> :96:4 | 96 | pub event MagnetMetadataUpdated(id:String, metadata:{String:String}) | ^^^ error: `pub` is no longer a valid access keyword --> :99:4 | 99 | pub event MementoMetadataUpdated(id:String, metadata:{String:String}) | ^^^ error: `pub` is no longer a valid access keyword --> :107:4 | 107 | pub var currentNetwork: String | ^^^ error: `pub` is no longer a valid access keyword --> :110:4 | 110 | pub var royalityReceiver: Address | ^^^ error: `pub` is no longer a valid access keyword --> :113:4 | 113 | pub var royalityPercentage: UFix64 | ^^^ error: `pub` is no longer a valid access keyword --> :118:4 | 118 | pub var currentSeries: UInt32 | ^^^ error: `pub` is no longer a valid access keyword --> :141:4 | 141 | pub var totalSupply: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :160:4 | 160 | pub struct Magnet { | ^^^ error: `pub` is no longer a valid access keyword --> :163:8 | 163 | pub let magnetID: String | ^^^ error: `pub` is no longer a valid access keyword --> :173:8 | 173 | pub var metadata: {String: String} | ^^^ error: `pub` is no longer a valid access keyword --> :189:8 | 189 | pub fun updateMementoList(mementoID: String) { | ^^^ error: `pub` is no longer a valid access keyword --> :194:8 | 194 | pub fun updateMementoCount(mementoID: String, count: UInt32) { | ^^^ error: `pub` is no longer a valid access keyword --> :198:8 | 198 | pub fun updateMetadata(new_metadata:{String:String}){ | ^^^ error: `pub` is no longer a valid access keyword --> :203:4 | 203 | pub struct Memento{ | ^^^ error: `pub` is no longer a valid access keyword --> :204:8 | 204 | pub let mementoID:String | ^^^ error: `pub` is no longer a valid access keyword --> :205:8 | 205 | pub let magnetID: String | ^^^ error: `pub` is no longer a valid access keyword --> :206:8 | 206 | pub var metadata: {String:String} | ^^^ error: `pub` is no longer a valid access keyword --> :215:8 | 215 | pub fun updateMementoMetadata(new_metadata:{String:String}){ | ^^^ error: `pub` is no longer a valid access keyword --> :232:4 | 232 | pub struct BrandData { | ^^^ error: `pub` is no longer a valid access keyword --> :235:8 | 235 | pub let brandID: String | ^^^ error: `pub` is no longer a valid access keyword --> :238:8 | 238 | pub let name: String | ^^^ error: `pub` is no longer a valid access keyword --> :269:4 | 269 | pub resource Brand { | ^^^ error: `pub` is no longer a valid access keyword --> :272:8 | 272 | pub let brandID: String | ^^^ error: `pub` is no longer a valid access keyword --> :293:8 | 293 | pub var locked: Bool | ^^^ error: `pub` is no longer a valid access keyword --> :321:8 | 321 | pub fun addMagnet(magnetID: String) { | ^^^ error: `pub` is no longer a valid access keyword --> :345:8 | 345 | pub fun addMagnets(magnetIDs: [String]) { | ^^^ error: `pub` is no longer a valid access keyword --> :358:8 | 358 | pub fun retireMagnet(magnetID: String) { | ^^^ error: `pub` is no longer a valid access keyword --> :373:8 | 373 | pub fun retireAll() { | ^^^ error: `pub` is no longer a valid access keyword --> :383:8 | 383 | pub fun lock() { | ^^^ error: `pub` is no longer a valid access keyword --> :399:8 | 399 | pub fun mintToken(magnetiqID: String, tokenType:String): @NFT { | ^^^ error: `pub` is no longer a valid access keyword --> :456:8 | 456 | pub fun batchMintTokens(magnetiqID: String, quantity: UInt64,tokenType:String): @Collection { | ^^^ error: `pub` is no longer a valid access keyword --> :468:8 | 468 | pub fun getMagnets(): [String] { | ^^^ error: `pub` is no longer a valid access keyword --> :472:8 | 472 | pub fun getRetired(): {String: Bool} { | ^^^ error: `pub` is no longer a valid access keyword --> :476:8 | 476 | pub fun getNumMintedPerMagnet(): {String: UInt32} { | ^^^ error: `pub` is no longer a valid access keyword --> :486:4 | 486 | pub struct QueryBrandData { | ^^^ error: `pub` is no longer a valid access keyword --> :487:8 | 487 | pub let brandID: String | ^^^ error: `pub` is no longer a valid access keyword --> :488:8 | 488 | pub let name: String | ^^^ error: `pub` is no longer a valid access keyword --> :491:8 | 491 | pub var locked: Bool | ^^^ error: `pub` is no longer a valid access keyword --> :510:8 | 510 | pub fun getMagnets(): [String] { | ^^^ error: `pub` is no longer a valid access keyword --> :514:8 | 514 | pub fun getRetired(): {String: Bool} { | ^^^ error: `pub` is no longer a valid access keyword --> :518:8 | 518 | pub fun getNumberMintedPerMagnet(): {String: UInt32} { | ^^^ error: `pub` is no longer a valid access keyword --> :523:4 | 523 | pub struct TokensData { | ^^^ error: `pub` is no longer a valid access keyword --> :526:8 | 526 | pub let brandID: String | ^^^ error: `pub` is no longer a valid access keyword --> :529:8 | 529 | pub let magnetiqID: String | ^^^ error: `pub` is no longer a valid access keyword --> :533:8 | 533 | pub let serialNumber: UInt32 | ^^^ error: `pub` is no longer a valid access keyword --> :534:8 | 534 | pub let tokenType: String | ^^^ error: `pub` is no longer a valid access keyword --> :548:4 | 548 | pub struct MagnetiqTokenMetadataView { | ^^^ error: `pub` is no longer a valid access keyword --> :550:8 | 550 | pub let name: String? | ^^^ error: `pub` is no longer a valid access keyword --> :551:8 | 551 | pub let tokenType: String? | ^^^ error: `pub` is no longer a valid access keyword --> :552:8 | 552 | pub let brandName: String? | ^^^ error: `pub` is no longer a valid access keyword --> :553:8 | 553 | pub let serialNumber: UInt32 | ^^^ error: `pub` is no longer a valid access keyword --> :554:8 | 554 | pub let magnetID: String | ^^^ error: `pub` is no longer a valid access keyword --> :555:8 | 555 | pub let mementoID: String? | ^^^ error: `pub` is no longer a valid access keyword --> :556:8 | 556 | pub let brandID: String | ^^^ error: `pub` is no longer a valid access keyword --> :557:8 | 557 | pub let numTokensInEdition: UInt32? | ^^^ error: `pub` is no longer a valid access keyword --> :558:8 | 558 | pub let is_claimed: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :559:8 | 559 | pub let is_sellable: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :560:8 | 560 | pub let is_claimable: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :561:8 | 561 | pub let is_visible: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :596:4 | 596 | pub struct MagnetTokenMetadataView { | ^^^ error: `pub` is no longer a valid access keyword --> :598:8 | 598 | pub let name: String? | ^^^ error: `pub` is no longer a valid access keyword --> :599:8 | 599 | pub let brandName: String? | ^^^ error: `pub` is no longer a valid access keyword --> :600:8 | 600 | pub let serialNumber: UInt32 | ^^^ error: `pub` is no longer a valid access keyword --> :601:8 | 601 | pub let magnetID: String | ^^^ error: `pub` is no longer a valid access keyword --> :602:8 | 602 | pub let brandID: String | ^^^ error: `pub` is no longer a valid access keyword --> :603:8 | 603 | pub let numTokensInEdition: UInt32? | ^^^ error: `pub` is no longer a valid access keyword --> :604:8 | 604 | pub let is_sellable: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :628:4 | 628 | pub struct MementoTokenMetadataView { | ^^^ error: `pub` is no longer a valid access keyword --> :630:8 | 630 | pub let name: String? | ^^^ error: `pub` is no longer a valid access keyword --> :631:8 | 631 | pub let brandName: String? | ^^^ error: `pub` is no longer a valid access keyword --> :632:8 | 632 | pub let serialNumber: UInt32 | ^^^ error: `pub` is no longer a valid access keyword --> :633:8 | 633 | pub let magnetID: String | ^^^ error: `pub` is no longer a valid access keyword --> :634:8 | 634 | pub let mementoID: String | ^^^ error: `pub` is no longer a valid access keyword --> :635:8 | 635 | pub let brandID: String | ^^^ error: `pub` is no longer a valid access keyword --> :636:8 | 636 | pub let numTokensInEdition: UInt32? | ^^^ error: `pub` is no longer a valid access keyword --> :637:8 | 637 | pub let is_claimed: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :638:8 | 638 | pub let is_sellable: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :639:8 | 639 | pub let is_claimable: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :640:8 | 640 | pub let is_visible: AnyStruct? | ^^^ error: `pub` is no longer a valid access keyword --> :672:4 | 672 | pub resource NFT: NonFungibleToken.INFT, MetadataViews.Resolver { | ^^^ error: `pub` is no longer a valid access keyword --> :675:8 | 675 | pub let id: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :678:8 | 678 | pub let data: TokensData | ^^^ error: custom destructor definitions are no longer permitted --> :694:8 | 694 | destroy() { | ^ remove the destructor definition error: `pub` is no longer a valid access keyword --> :698:8 | 698 | pub fun name(): String { | ^^^ error: `pub` is no longer a valid access keyword --> :726:8 | 726 | pub fun description(): String { | ^^^ error: `pub` is no longer a valid access keyword --> :738:8 | 738 | pub fun getViews(): [Type] { | ^^^ error: `pub` is no longer a valid access keyword --> :757:8 | 757 | pub fun resolveView(_ view: Type): AnyStruct? { | ^^^ error: restricted types have been removed; replace with the concrete type or an equivalent intersection type --> :842:97 | 842 | getAccount(MagnetiqAlphaOne.RoyaltyAddress()).getCapability<&AnyResource{FungibleToken.Receiver}>(MetadataViews.getRoyaltyReceiverPublicPath()) | ^^^^^^^^^^^^^ --> 651fd50c5ca7d66c.MagnetiqAlphaOne error: cannot find type in this scope: `MagnetiqAlphaOne` --> 5b513d1c393168ab7adbc817af4c2509c1589da43840a9127b6f9f725f789d9a:5:19 | 5 | let adminRef: &MagnetiqAlphaOne.Admin | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `AuthAccount` --> 5b513d1c393168ab7adbc817af4c2509c1589da43840a9127b6f9f725f789d9a:7:18 | 7 | prepare(acct: AuthAccount) { | ^^^^^^^^^^^ not found in this scope error: value of type `&Account` has no member `getCapability` --> 5b513d1c393168ab7adbc817af4c2509c1589da43840a9127b6f9f725f789d9a:25:36 | 25 | let receiverRef = recipient.getCapability(/public/MagnetiqAlphaOneTokensCollection).borrow<&{MagnetiqAlphaOne.TokenCollectionPublic}>() | ^^^^^^^^^^^^^ unknown member
Happy diving into the flow Remember to test your contracts in 1.0 here on testnet