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