tx · wvzsaVXda5ZPst1b99WxCG78DWEuo1a6itDFGtRcWNu

3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo:  -0.01400000 Waves

2021.07.27 14:10 [1631988] smart account 3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo > SELF 0.00000000 Waves

{ "type": 13, "id": "wvzsaVXda5ZPst1b99WxCG78DWEuo1a6itDFGtRcWNu", "fee": 1400000, "feeAssetId": null, "timestamp": 1627384232349, "version": 2, "chainId": 84, "sender": "3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo", "senderPublicKey": "FnirbVvcP4uztniZBesicevXStVuTv73ifvcvisbsSk2", "proofs": [ "5NUFfWW4VGhG3RdCBJwfym6UZTMzbwwNrZ8eeAibVMVc9ek8Pyg9rT4GyGeyK47VMPvTznHHumHbQ6Sfp5scb8FT" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJlc3MEAAAABnN0YXR1cwIAAAAEc29sZA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JAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdElkCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAx7InNlbGxlciI6ICIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAgAAAA0iLCAicHJpY2UiOiAiCQABpAAAAAEFAAAABXByaWNlAgAAAA4iLCAic3RhdHVzIjogIgUAAAAGc3RhdHVzAgAAAAIifQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl1CAH4", "height": 1631988, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AXnVJnPP74K5gGPcKt8GERYrMUwCcsRiwMBnjYNxvJtY Next: none Diff:
OldNewDifferences
1414
1515 @Callable(a)
1616 func buyOffer (b,c,e) = {
17- let d = "completed"
17+ let d = "sold"
1818 [ScriptTransfer(a.caller, 1, fromBase58String(b)), ScriptTransfer(addressFromStringValue(e), c, unit), StringEntry(b, (((((("{\"seller\": \"" + e) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))]
1919 }
2020
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func instantSale (b) = {
88 let c = "50000000"
99 let d = "completed"
1010 [ScriptTransfer(a.caller, 50000000, unit), StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + c) + "\", \"status\": \"") + d) + "\"}"))]
1111 }
1212
1313
1414
1515 @Callable(a)
1616 func buyOffer (b,c,e) = {
17- let d = "completed"
17+ let d = "sold"
1818 [ScriptTransfer(a.caller, 1, fromBase58String(b)), ScriptTransfer(addressFromStringValue(e), c, unit), StringEntry(b, (((((("{\"seller\": \"" + e) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))]
1919 }
2020
2121
2222
2323 @Callable(a)
2424 func cancelOffer (b) = {
2525 let d = "cancelled"
2626 let c = "undefined"
2727 [ScriptTransfer(a.caller, 1, fromBase58String(b)), StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + c) + "\", \"status\": \"") + d) + "\"}"))]
2828 }
2929
3030
3131
3232 @Callable(a)
3333 func makeOffer (b,c) = {
3434 let d = "pending"
3535 [StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))]
3636 }
3737
3838
3939 @Verifier(f)
4040 func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey)
4141

github/deemru/w8io/169f3d6 
38.79 ms