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:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJlc3MEAAAABnN0YXR1cwIA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QAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdElkCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAx7InNlbGxlciI6ICIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAgAAAA0iLCAicHJpY2UiOiAiCQABpAAAAAEFAAAABXByaWNlAgAAAA4iLCAic3RhdHVzIjogIgUAAAAGc3RhdHVzAgAAAAIifQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl1CAH4",
"height": 1631988,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AXnVJnPP74K5gGPcKt8GERYrMUwCcsRiwMBnjYNxvJtY
Next: none
Diff:
Old | New | | Differences |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(a) |
---|
16 | 16 | | func buyOffer (b,c,e) = { |
---|
17 | | - | let d = "completed" |
---|
| 17 | + | let d = "sold" |
---|
18 | 18 | | [ScriptTransfer(a.caller, 1, fromBase58String(b)), ScriptTransfer(addressFromStringValue(e), c, unit), StringEntry(b, (((((("{\"seller\": \"" + e) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func instantSale (b) = { |
---|
8 | 8 | | let c = "50000000" |
---|
9 | 9 | | let d = "completed" |
---|
10 | 10 | | [ScriptTransfer(a.caller, 50000000, unit), StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + c) + "\", \"status\": \"") + d) + "\"}"))] |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(a) |
---|
16 | 16 | | func buyOffer (b,c,e) = { |
---|
17 | | - | let d = "completed" |
---|
| 17 | + | let d = "sold" |
---|
18 | 18 | | [ScriptTransfer(a.caller, 1, fromBase58String(b)), ScriptTransfer(addressFromStringValue(e), c, unit), StringEntry(b, (((((("{\"seller\": \"" + e) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(a) |
---|
24 | 24 | | func cancelOffer (b) = { |
---|
25 | 25 | | let d = "cancelled" |
---|
26 | 26 | | let c = "undefined" |
---|
27 | 27 | | [ScriptTransfer(a.caller, 1, fromBase58String(b)), StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + c) + "\", \"status\": \"") + d) + "\"}"))] |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(a) |
---|
33 | 33 | | func makeOffer (b,c) = { |
---|
34 | 34 | | let d = "pending" |
---|
35 | 35 | | [StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))] |
---|
36 | 36 | | } |
---|
37 | 37 | | |
---|
38 | 38 | | |
---|
39 | 39 | | @Verifier(f) |
---|
40 | 40 | | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
41 | 41 | | |
---|