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:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJ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VzAgAAAAdwZW5kaW5nCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdElkCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAx7InNlbGxlciI6ICIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAgAAAA0iLCAicHJpY2UiOiAiCQABpAAAAAEFAAAABXByaWNlAgAAAA4iLCAic3RhdHVzIjogIgUAAAAGc3RhdHVzAgAAAAIifQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnf8nuk",
"height": 1600133,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5Xxnxmv8gWXFe9vNMpedvduQvgeghF7RSfw9TiyvuZrq
Next: 6FycnD6nr8WnvAcPDCju8AduXEoqJPEYqtWD2DyzVuhs
Diff:
Old | New | | Differences |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(a) |
---|
24 | | - | func abortSale (f) = [ScriptTransfer(a.caller, 1, toBytes(f))] |
---|
| 24 | + | func abortSale (b) = { |
---|
| 25 | + | let d = "aborted" |
---|
| 26 | + | let c = "undefined" |
---|
| 27 | + | [ScriptTransfer(a.caller, 1, toBytes(b)), StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + c) + "\", \"status\": \"") + d) + "\"}"))] |
---|
| 28 | + | } |
---|
25 | 29 | | |
---|
26 | 30 | | |
---|
27 | | - | @Verifier(g) |
---|
28 | | - | func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
| 31 | + | |
---|
| 32 | + | @Callable(a) |
---|
| 33 | + | func makeOffer (b,c) = { |
---|
| 34 | + | let d = "pending" |
---|
| 35 | + | [StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))] |
---|
| 36 | + | } |
---|
| 37 | + | |
---|
| 38 | + | |
---|
| 39 | + | @Verifier(f) |
---|
| 40 | + | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
29 | 41 | | |
---|
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 | 17 | | let d = "completed" |
---|
18 | 18 | | [ScriptTransfer(a.caller, 1, toBytes(b)), ScriptTransfer(addressFromStringValue(e), 1, unit), StringEntry(b, (((((("{\"seller\": \"" + e) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(a) |
---|
24 | | - | func abortSale (f) = [ScriptTransfer(a.caller, 1, toBytes(f))] |
---|
| 24 | + | func abortSale (b) = { |
---|
| 25 | + | let d = "aborted" |
---|
| 26 | + | let c = "undefined" |
---|
| 27 | + | [ScriptTransfer(a.caller, 1, toBytes(b)), StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + c) + "\", \"status\": \"") + d) + "\"}"))] |
---|
| 28 | + | } |
---|
25 | 29 | | |
---|
26 | 30 | | |
---|
27 | | - | @Verifier(g) |
---|
28 | | - | func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
| 31 | + | |
---|
| 32 | + | @Callable(a) |
---|
| 33 | + | func makeOffer (b,c) = { |
---|
| 34 | + | let d = "pending" |
---|
| 35 | + | [StringEntry(b, (((((("{\"seller\": \"" + toString(a.caller)) + "\", \"price\": \"") + toString(c)) + "\", \"status\": \"") + d) + "\"}"))] |
---|
| 36 | + | } |
---|
| 37 | + | |
---|
| 38 | + | |
---|
| 39 | + | @Verifier(f) |
---|
| 40 | + | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
29 | 41 | | |
---|