Copy {
"flowTransactionResult": {
"blockId": "30260da28f60bc29b8fc4df9017dffcc0508bc623c193cc0baed359fe2d06a86",
"errorMessage": "",
"status": 4,
"statusDescription": "Sealed",
"statusCode": 0,
"events": [
{
"transactionId": "75acd997bc9e6e7d182a73462611424d51787c8ca113a8f596481920e6d6df60",
"event": {
"id": "A.c1e4f4f4c4257510.TopShotMarketV3.MomentListed",
"data": {
"id": 7650946,
"price": 14.00000000,
"seller": "0x1a9b3693d7787b93"
}
},
"transactionIndex": 0,
"eventIndex": 0,
"blockId": "30260da28f60bc29b8fc4df9017dffcc0508bc623c193cc0baed359fe2d06a86"
},
{
"transactionId": "75acd997bc9e6e7d182a73462611424d51787c8ca113a8f596481920e6d6df60",
"event": {
"id": "A.1654653399040a61.FlowToken.TokensWithdrawn",
"data": {
"amount": 0.00001000,
"from": "0x18eb4ee6b3c026d2"
}
},
"transactionIndex": 0,
"eventIndex": 1,
"blockId": "30260da28f60bc29b8fc4df9017dffcc0508bc623c193cc0baed359fe2d06a86"
},
{
"transactionId": "75acd997bc9e6e7d182a73462611424d51787c8ca113a8f596481920e6d6df60",
"event": {
"id": "A.1654653399040a61.FlowToken.TokensDeposited",
"data": {
"amount": 0.00001000,
"to": "0xf919ee77447b7497"
}
},
"transactionIndex": 0,
"eventIndex": 2,
"blockId": "30260da28f60bc29b8fc4df9017dffcc0508bc623c193cc0baed359fe2d06a86"
},
{
"transactionId": "75acd997bc9e6e7d182a73462611424d51787c8ca113a8f596481920e6d6df60",
"event": {
"id": "A.f919ee77447b7497.FlowFees.TokensDeposited",
"data": {
"amount": 0.00001000
}
},
"transactionIndex": 0,
"eventIndex": 3,
"blockId": "30260da28f60bc29b8fc4df9017dffcc0508bc623c193cc0baed359fe2d06a86"
}
]
},
"hasTransactionResult": true,
"flowTransaction": {
"script": {
"rawScript": "import FungibleToken from 0xf233dcee88fe0abe\nimport TopShotMarketV3 from 0xc1e4f4f4c4257510\nimport TopShot from 0x0b2a3299cc857e29\nimport Market from 0xc1e4f4f4c4257510\n\ntransaction() {\n\n\tprepare(acct: AuthAccount) {\n\n\t\t// check if moment is currently listed\n\t\tvar listed = false\n\t\tif let marketV3CollectionRef = acct.getCapability(/public/topshotSalev3Collection)\n\t\t\t.borrow<&{Market.SalePublic}>() {\n\n\t\t\tlet salePrice = marketV3CollectionRef.getPrice(tokenID: UInt64(7650946))\n\n\t\t\tif salePrice != nil {\n\t\t\t\tlisted = true\n\t\t\t}\n\t\t} else if let marketV1CollectionRef = acct.getCapability(/public/topshotSaleCollection)\n\t\t\t.borrow<&{Market.SalePublic}>() {\n\n\t\t\tlet salePrice = marketV1CollectionRef.getPrice(tokenID: UInt64(7650946))\n\n\t\t\tif salePrice != nil {\n\t\t\t\tlisted = true\n\t\t\t}\n\t\t} \n\t\tif listed {\n\t\t\tpanic(\"moment is already listed for sale\")\n\t\t}\n\n\t\t// check to see if a v3 sale collection already exists\n\t\tif acct.borrow<&TopShotMarketV3.SaleCollection>(from: TopShotMarketV3.marketStoragePath) == nil {\n\t\t\t// get the fungible token capabilities for the owner and beneficiary\n\t\t\tlet ownerCapability = acct.getCapability<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)\n\t\t\tlet beneficiaryCapability = getAccount(0xfaf0cc52c6e3acaf).getCapability<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)\n\n\t\t\tlet ownerCollection = acct.link<&TopShot.Collection>(/private/MomentCollection, target: /storage/MomentCollection)!\n\n\t\t\t// get a capability for the v1 collection\n\t\t\tvar v1SaleCollection: Capability<&Market.SaleCollection>? = nil\n\t\t\tif acct.borrow<&Market.SaleCollection>(from: /storage/topshotSaleCollection) != nil {\n\t\t\t\tv1SaleCollection = acct.link<&Market.SaleCollection>(/private/topshotSaleCollection, target: /storage/topshotSaleCollection)!\n\t\t\t}\n\n\t\t\t// create a new sale collection\n\t\t\tlet topshotSaleCollection <- TopShotMarketV3.createSaleCollection(ownerCollection: ownerCollection,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\townerCapability: ownerCapability,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbeneficiaryCapability: beneficiaryCapability,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcutPercentage: 0.050000,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmarketV1Capability: v1SaleCollection)\n\t\t\t\n\t\t\t// save it to storage\n\t\t\tacct.save(<-topshotSaleCollection, to: TopShotMarketV3.marketStoragePath)\n\t\t\n\t\t\t// create a public link to the sale collection\n\t\t\tacct.link<&TopShotMarketV3.SaleCollection{Market.SalePublic}>(TopShotMarketV3.marketPublicPath, target: TopShotMarketV3.marketStoragePath)\n\t\t}\n\n\t\t// borrow a reference to the sale\n\t\tlet topshotSaleCollection = acct.borrow<&TopShotMarketV3.SaleCollection>(from: TopShotMarketV3.marketStoragePath)\n\t\t\t?? panic(\"Could not borrow from sale in storage\")\n\t\t\n\t\t// put the moment up for sale\n\t\ttopshotSaleCollection.listForSale(tokenID: 7650946, price: UFix64(14))\n\t\t\n\t}\n}",
"scriptHash": "D5FBE78E780C6AD952D7177BA6DC63885D85F5E5D0C469A81970EAE3CC77BE1A"
},
"arguments": null,
"referenceBlockId": "796216e7e5f303a00046fa06b54ea85fc718b9c5a706ce487bfd4fce61baf7db",
"gasLimit": 9999,
"payer": {
"value": [
24,
235,
78,
230,
179,
192,
38,
210
],
"hexValue": "18eb4ee6b3c026d2"
},
"proposalKey": {
"address": {
"value": [
26,
155,
54,
147,
215,
120,
123,
147
],
"hexValue": "1a9b3693d7787b93"
},
"keyId": 7,
"sequenceNumber": 687
},
"authorizers": [
{
"value": [
26,
155,
54,
147,
215,
120,
123,
147
],
"hexValue": "1a9b3693d7787b93"
}
],
"payloadSignatures": [
{
"address": {
"value": [
26,
155,
54,
147,
215,
120,
123,
147
],
"hexValue": "1a9b3693d7787b93"
},
"keyId": 0,
"signature": "CggamzaT13h7kxpAP/qnYDg/wZph6sTZD2fG0JN1lT7qal/xUviVbJQmYBJdfX5Hi2ez2+GpuXmcWGiajZx9ZjZdXyyhmyB1ik6AjQ==",
"signatureHex": "3ffaa760383fc19a61eac4d90f67c6d09375953eea6a5ff152f8956c942660125d7d7e478b67b3dbe1a9b9799c58689a8d9c7d66365d5f2ca19b20758a4e808d"
},
{
"address": {
"value": [
26,
155,
54,
147,
215,
120,
123,
147
],
"hexValue": "1a9b3693d7787b93"
},
"keyId": 7,
"signature": "CggamzaT13h7kxAHGkA7Yv5B3koyql02uq81t/8jViXv30D0NWC2YrnZfNVUN8rV7Gtm2mIsrEC5mxDoR1/7R7HpXDAy+gspD3ThvSkn",
"signatureHex": "3b62fe41de4a32aa5d36baaf35b7ff235625efdf40f43560b662b9d97cd55437cad5ec6b66da622cac40b99b10e8475ffb47b1e95c3032fa0b290f74e1bd2927"
}
],
"envelopeSignatures": [
{
"address": {
"value": [
24,
235,
78,
230,
179,
192,
38,
210
],
"hexValue": "18eb4ee6b3c026d2"
},
"keyId": 0,
"signature": "CggY607ms8Am0hpAuJNm0QY3VxUOfQcyfGlqk3haMdGpl1DbLvkyOPMqYh95Dp0NmIlR9zVH0CmxoDDF9hXzCib2pDoZLPv37XQtbw==",
"signatureHex": "b89366d1063757150e7d07327c696a93785a31d1a99750db2ef93238f32a621f790e9d0d988951f73547d029b1a030c5f615f30a26f6a43a192cfbf7ed742d6f"
}
],
"signerList": {
"1a9b3693d7787b93": 0,
"18eb4ee6b3c026d2": 2
}
}
}