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