tx · A53oQ52EQdJBFsDBa9aujXM85jdJUgc242MEY91BkxzT
3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m: -0.05000000 Waves
2021.07.03 01:39 [1596578] smart account 3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m > SELF 0.00000000 Waves
{
"type": 13,
"id": "A53oQ52EQdJBFsDBa9aujXM85jdJUgc242MEY91BkxzT",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1625265582657,
"version": 2,
"chainId": 84,
"sender": "3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m",
"senderPublicKey": "CbTzRbxsvfCTAE3CZoaNqSuoyWno1ky5vUegoobBoXn7",
"proofs": [
"4HE47mE9ToCBUKzYokKYibLwLQxNdUSXifPLtBbsAGbk9z53JCfvukyUNmfHZjeXvm14NcDb4FXFsTb9ePBnteQF"
],
"script": "base64:AAIFAAAAAAAAABMIAhIDCgEIEgUKAwgBCBIDCgEIAAAAAAAAAAMAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAACm5mdEFzc2V0SWQAAAAFcHJpY2UAAAANc2VsbGVyQWRkcmVzcwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEJAAGbAAAAAQUAAAAKbmZ0QXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAA1zZWxsZXJBZGRyZXNzAAAAAAAAAAABBQAAAAR1bml0BQAAAANuaWwAAAABaQEAAAAJYWJvcnRTYWxlAAAAAQAAAApuZnRBc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQkAAZsAAAABBQAAAApuZnRBc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeliXhM=",
"height": 1596578,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2phGpJekHXDiFKZRj69Q6BZ8Pu2NEzC31i99FUQ86h3B
Next: 5Xxnxmv8gWXFe9vNMpedvduQvgeghF7RSfw9TiyvuZrq
Diff:
Old | New | | Differences |
---|
7 | 7 | | func instantSale (nftId) = { |
---|
8 | 8 | | let price = "50000000" |
---|
9 | 9 | | let status = "completed" |
---|
10 | | - | [ScriptTransfer(i.caller, 50000000, unit), StringEntry(nftId, (((((("{ 'seller': " + toString(i.caller)) + ", 'price': ") + price) + ", 'status': ") + status) + "}"))] |
---|
| 10 | + | [ScriptTransfer(i.caller, 50000000, unit), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))] |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
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(i) |
---|
7 | 7 | | func instantSale (nftId) = { |
---|
8 | 8 | | let price = "50000000" |
---|
9 | 9 | | let status = "completed" |
---|
10 | | - | [ScriptTransfer(i.caller, 50000000, unit), StringEntry(nftId, (((((("{ 'seller': " + toString(i.caller)) + ", 'price': ") + price) + ", 'status': ") + status) + "}"))] |
---|
| 10 | + | [ScriptTransfer(i.caller, 50000000, unit), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))] |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func buyOffer (nftAssetId,price,sellerAddress) = [ScriptTransfer(i.caller, 1, toBytes(nftAssetId)), ScriptTransfer(addressFromStringValue(sellerAddress), 1, unit)] |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(i) |
---|
21 | 21 | | func abortSale (nftAssetId) = [ScriptTransfer(i.caller, 1, toBytes(nftAssetId))] |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | @Verifier(tx) |
---|
25 | 25 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
26 | 26 | | |
---|