tx · 98rwXyMoVqj1JgtLiVaDu4m1s2azCiVHMTHRmZXiucBb

3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m:  -0.05000000 Waves

2021.07.05 17:31 [1600406] smart account 3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m > SELF 0.00000000 Waves

{ "type": 13, "id": "98rwXyMoVqj1JgtLiVaDu4m1s2azCiVHMTHRmZXiucBb", "fee": 5000000, "feeAssetId": null, "timestamp": 1625495489144, "version": 2, "chainId": 84, "sender": "3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m", "senderPublicKey": "CbTzRbxsvfCTAE3CZoaNqSuoyWno1ky5vUegoobBoXn7", "proofs": [ "kDAdbDpH82WUp8MunJ71Ed52TAxFYTzrzBKrHJPsASXFkqLwBiGoAS826qGEsy8Wf3xRTcHvNDCyPfWFKKz9oiz" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJlc3MEAAAABnN0YXR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GluZwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgkAAaQAAAABBQAAAAVwcmljZQIAAAAOIiwgInN0YXR1cyI6ICIFAAAABnN0YXR1cwIAAAACIn0FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5yNb/iw==", "height": 1600406, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BjLYn8s3b4cRkp29AubYHMrVb2QLRKCcj7oHFiBmmty4 Next: Fd9g5oVGYxShszpZmMTgCV8ByS2q68LNxD9pFNSiYTtT Diff:
OldNewDifferences
2424 func cancelOffer (nftId) = {
2525 let status = "canceled"
2626 let price = "undefined"
27-[ScriptTransfer(i.caller, 1, toBytes(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
27+[ScriptTransfer(i.caller, 1, fromBase58String(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
2828 }
2929
3030
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), price, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))]
1919 }
2020
2121
2222
2323 @Callable(i)
2424 func cancelOffer (nftId) = {
2525 let status = "canceled"
2626 let price = "undefined"
27-[ScriptTransfer(i.caller, 1, toBytes(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
27+[ScriptTransfer(i.caller, 1, fromBase58String(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
2828 }
2929
3030
3131
3232 @Callable(i)
3333 func makeOffer (nftId,price) = {
3434 let status = "pending"
3535 [StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))]
3636 }
3737
3838
3939 @Verifier(tx)
4040 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4141

github/deemru/w8io/026f985 
31.31 ms