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