tx · H6Ee8Jybe1w42e4T2mTA2LniaxeJj85JjJ1dtUVgRcTx
3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m: -0.05000000 Waves
2021.07.05 14:01 [1600197] smart account 3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m > SELF 0.00000000 Waves
{
"type": 13,
"id": "H6Ee8Jybe1w42e4T2mTA2LniaxeJj85JjJ1dtUVgRcTx",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1625482953542,
"version": 2,
"chainId": 84,
"sender": "3MpTrDzmf3z626RBJDm6ro8dgwGNjww9P7m",
"senderPublicKey": "CbTzRbxsvfCTAE3CZoaNqSuoyWno1ky5vUegoobBoXn7",
"proofs": [
"5Zeao3LkyAm6Lk5iXpRdFz5zAi5ePc89by2jAQrtv7KYt1T2581WdkiECbSHHQ2A1cZrgU4FHJkcvCsEhoPZiD1v"
],
"script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJl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1cwIAAAAHcGVuZGluZwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgkAAaQAAAABBQAAAAVwcmljZQIAAAAOIiwgInN0YXR1cyI6ICIFAAAABnN0YXR1cwIAAAACIn0FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5tjkNTQ==",
"height": 1600197,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6FycnD6nr8WnvAcPDCju8AduXEoqJPEYqtWD2DyzVuhs
Next: DUFLjNU4i92cWLxmzUjyypmp4Gux5L3vJ42Z1ZFaDWWJ
Diff:
Old | New | | Differences |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func buyOffer (nftId,price,sellerAddress) = { |
---|
17 | 17 | | let status = "completed" |
---|
18 | | - | [ScriptTransfer(i.caller, 1, toBytes(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), 1, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] |
---|
| 18 | + | [ScriptTransfer(i.caller, 1, toBytes(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), price, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
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 | 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 (nftId,price,sellerAddress) = { |
---|
17 | 17 | | let status = "completed" |
---|
18 | | - | [ScriptTransfer(i.caller, 1, toBytes(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), 1, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] |
---|
| 18 | + | [ScriptTransfer(i.caller, 1, toBytes(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), price, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(i) |
---|
24 | 24 | | func cancelOffer (nftId) = { |
---|
25 | 25 | | let status = "canceled" |
---|
26 | 26 | | let price = "undefined" |
---|
27 | 27 | | [ScriptTransfer(i.caller, 1, toBytes(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))] |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(i) |
---|
33 | 33 | | func makeOffer (nftId,price) = { |
---|
34 | 34 | | let status = "pending" |
---|
35 | 35 | | [StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] |
---|
36 | 36 | | } |
---|
37 | 37 | | |
---|
38 | 38 | | |
---|
39 | 39 | | @Verifier(tx) |
---|
40 | 40 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
41 | 41 | | |
---|