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