tx · C79PyCfxeiHg5Z1vXGy3a6n1utXJ6MfRg1TrqwVwVmb8

3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m:  -0.05000000 Waves

2021.07.05 12:56 [1600133] smart account 3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m > SELF 0.00000000 Waves

{ "type": 13, "id": "C79PyCfxeiHg5Z1vXGy3a6n1utXJ6MfRg1TrqwVwVmb8", "fee": 5000000, "feeAssetId": null, "timestamp": 1625478994515, "version": 2, "chainId": 84, "sender": "3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m", "senderPublicKey": "CbTzRbxsvfCTAE3CZoaNqSuoyWno1ky5vUegoobBoXn7", "proofs": [ "4np5ejNRUJ1DrkmBj9WJR9kCL3DtDNU2KFM1WMKJJeftPzDaeef72jVEtG48snyAGbDt7qmtGSBgTZXRuDnXFtYZ" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJlc3MEAAAAB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wZW5kaW5nCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdElkCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAx7InNlbGxlciI6ICIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAgAAAA0iLCAicHJpY2UiOiAiCQABpAAAAAEFAAAABXByaWNlAgAAAA4iLCAic3RhdHVzIjogIgUAAAAGc3RhdHVzAgAAAAIifQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnf8nuk", "height": 1600133, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5Xxnxmv8gWXFe9vNMpedvduQvgeghF7RSfw9TiyvuZrq Next: 6FycnD6nr8WnvAcPDCju8AduXEoqJPEYqtWD2DyzVuhs Diff:
OldNewDifferences
2121
2222
2323 @Callable(i)
24-func abortSale (nftAssetId) = [ScriptTransfer(i.caller, 1, toBytes(nftAssetId))]
24+func abortSale (nftId) = {
25+ let status = "aborted"
26+ let price = "undefined"
27+[ScriptTransfer(i.caller, 1, toBytes(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
28+ }
29+
30+
31+
32+@Callable(i)
33+func makeOffer (nftId,price) = {
34+ let status = "pending"
35+[StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))]
36+ }
2537
2638
2739 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func instantSale (nftId) = {
88 let price = "50000000"
99 let status = "completed"
1010 [ScriptTransfer(i.caller, 50000000, unit), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
1111 }
1212
1313
1414
1515 @Callable(i)
1616 func buyOffer (nftId,price,sellerAddress) = {
1717 let status = "completed"
1818 [ScriptTransfer(i.caller, 1, toBytes(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), 1, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))]
1919 }
2020
2121
2222
2323 @Callable(i)
24-func abortSale (nftAssetId) = [ScriptTransfer(i.caller, 1, toBytes(nftAssetId))]
24+func abortSale (nftId) = {
25+ let status = "aborted"
26+ let price = "undefined"
27+[ScriptTransfer(i.caller, 1, toBytes(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
28+ }
29+
30+
31+
32+@Callable(i)
33+func makeOffer (nftId,price) = {
34+ let status = "pending"
35+[StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))]
36+ }
2537
2638
2739 @Verifier(tx)
2840 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2941

github/deemru/w8io/026f985 
25.08 ms