tx · 9LoU56NBA4rRgDxBcuFUHgLZnneh1RzEVmWNM1ZRZuyj

3N8mE3Vv1LpKFDxNRtdzBzmMKbwtycbB2KZ:  -0.01000000 Waves

2022.02.23 18:08 [1936474] smart account 3N8mE3Vv1LpKFDxNRtdzBzmMKbwtycbB2KZ > SELF 0.00000000 Waves

{ "type": 13, "id": "9LoU56NBA4rRgDxBcuFUHgLZnneh1RzEVmWNM1ZRZuyj", "fee": 1000000, "feeAssetId": null, "timestamp": 1645628944727, "version": 2, "chainId": 84, "sender": "3N8mE3Vv1LpKFDxNRtdzBzmMKbwtycbB2KZ", "senderPublicKey": "9q7vTvr7sh15ChGajicBoCF1zuKAofLQPeBWFNdNsuA9", "proofs": [ "4JKdbvG1P6YV1ybKyXccxuU6i27714sukzjeYVHDh7JAbZpvDfW8WCgH5hopwkCY2QndGcsMcmuJDs9MvYDQiTdc" ], "script": "base64:AAIFAAAAAAAAABQIAhIFCgMICAgSAwoBCBIECgIICAAAAAEBAAAAEWlzVmFsaWRDb2xsZWN0aW9uAAAAAQAAAAxjb2xsZWN0aW9uSWQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAxjb2xsZWN0aW9uSWQCAAAAC19jb2xsZWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAGBwAAAAMAAAABaQEAAAALaXNzdWVOZXdOZnQAAAADAAAABG5hbWUAAAAMY29sbGVjdGlvbklkAAAACG1ldGFkYXRhAwkAAAAAAAACCQEAAAARaXNWYWxpZENvbGxlY3Rpb24AAAABBQAAAAxjb2xsZWN0aW9uSWQHCQAAAgAAAAECAAAAIVRhcmdldCBjb2xsZWN0aW9uIGRvZXMgbm90IGV4aXN0IQQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVhc3NldAkABEIAAAAFBQAAAARuYW1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lY3Rpb24FAAAACG1ldGFkYXRhBQAAAANuaWwAAAAAMcQVKg==", "height": 1936474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FP9qajierM2eTA6jCyTYyn2gfMppTx9TUxttjuAh348y Next: none Diff:
OldNewDifferences
2929 }
3030
3131
32+
33+@Callable(i)
34+func updateCollection (collectionId,metadata) = if ((isValidCollection(collectionId) == false))
35+ then throw("Target collection does not exist!")
36+ else [StringEntry((collectionId + "_collection"), metadata)]
37+
38+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func isValidCollection (collectionId) = match getString(this, (collectionId + "_collection")) {
55 case b: String =>
66 true
77 case _ =>
88 false
99 }
1010
1111
1212 @Callable(i)
1313 func issueNewNft (name,collectionId,metadata) = if ((isValidCollection(collectionId) == false))
1414 then throw("Target collection does not exist!")
1515 else {
1616 let callerAddress = toBase58String(i.caller.bytes)
1717 let asset = Issue(name, metadata, 1, 0, false)
1818 let assetId = calculateAssetId(asset)
1919 let assetIdStr = toBase58String(assetId)
2020 [StringEntry((assetIdStr + "_assetId"), assetIdStr), StringEntry(((assetIdStr + "_collectionId_") + collectionId), assetIdStr), asset, ScriptTransfer(value(addressFromString(callerAddress)), 1, assetId)]
2121 }
2222
2323
2424
2525 @Callable(i)
2626 func createCollection (metadata) = {
2727 let collectionId = toBase58String(i.transactionId)
2828 [StringEntry((collectionId + "_collection"), metadata)]
2929 }
3030
3131
32+
33+@Callable(i)
34+func updateCollection (collectionId,metadata) = if ((isValidCollection(collectionId) == false))
35+ then throw("Target collection does not exist!")
36+ else [StringEntry((collectionId + "_collection"), metadata)]
37+
38+

github/deemru/w8io/169f3d6 
26.75 ms