tx · 6QypPrkWmbfXXuKxmhJckxu4NWzeTthXU86nzPKkZ8Ls
3N65E1rYWAxQMCLg27pRxBFtAt3bPcH3pys: -0.01400000 Waves
2022.02.11 15:41 [1918960] smart account 3N65E1rYWAxQMCLg27pRxBFtAt3bPcH3pys > SELF 0.00000000 Waves
{
"type": 13,
"id": "6QypPrkWmbfXXuKxmhJckxu4NWzeTthXU86nzPKkZ8Ls",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1644583306755,
"version": 2,
"chainId": 84,
"sender": "3N65E1rYWAxQMCLg27pRxBFtAt3bPcH3pys",
"senderPublicKey": "HUBVsBcuExqVSbV3mSVhpdKfgihF2nwdtpGmpVLRwxEN",
"proofs": [
"RaCiYtiH7X2WpHPTwxwVRictHj1XxihEWkKprahJb33m6Twx8UPPhxqjryWAPJNvTHA9E9GgXnzeGm81DxbwEhp"
],
"script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAABAAAAAAd0b2tlbklkAgAAACw2bjdMazYyQVpVSlRkVFlIeFNnTllUN29wYTJoQVlKQWtudEJDbnlrYzNDRgAAAAIAAAABaQEAAAALYWNjZXB0VG9rZW4AAAAABAAAAAJvaQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFUF0dGFjaCBwYXltZW50IHBsZWFzZQMJAABnAAAAAgAAAAAAAAAAAAgFAAAAA3BtdAAAAAZhbW91bnQJAAACAAAAAQIAAAAdUGF5bWVudCBhbW91bnQgc2hvdWxkIGJlID4gMCAEAAAABWFzc2lkBAAAAAckbWF0Y2gwCAUAAAADcG10AAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEJAAGbAAAAAQIAAAADZmRzAwkAAAAAAAACCQACWAAAAAEFAAAABWFzc2lkBQAAAAd0b2tlbklkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQABLAAAAAIJAAEsAAAAAgkAAlgAAAABBQAAAAVhc3NpZAIAAAABXwkAAaQAAAABCAUAAAADcG10AAAABmFtb3VudAUAAAADbmlsCQAAAgAAAAECAAAADUludmFsaWQgYXNzZXQAAAABaQEAAAAIdHJhbnNmZXIAAAABAAAACXJlY2lwaWVudAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAD0F0dGFjaCBwYXltZW50cwQAAAAHYXNzZXRJZAgFAAAAA3BtdAAAAAdhc3NldElkBAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50BAAAAANyZWMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAACXJlY2lwaWVudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAANyZWMFAAAABmFtb3VudAUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXn1paMf",
"height": 1918960,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: FDGGLedXrXhD2SQ8hjBPjX3d4jSPDG36cniShg2ErdyD
Next: none
Diff:
Old | New | | Differences |
---|
22 | 22 | | else toBytes("fds") |
---|
23 | 23 | | } |
---|
24 | 24 | | if ((toBase58String(e) == a)) |
---|
25 | | - | then [StringEntry(toString(b.caller), toBase58String(e))] |
---|
| 25 | + | then [StringEntry(toString(b.caller), ((toBase58String(e) + "_") + toString(d.amount)))] |
---|
26 | 26 | | else throw("Invalid asset") |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "6n7Lk62AZUJTdTYHxSgNYT7opa2hAYJAkntBCnykc3CF" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(b) |
---|
7 | 7 | | func acceptToken () = { |
---|
8 | 8 | | let c = b.payments[0] |
---|
9 | 9 | | let d = if ((size(b.payments) == 1)) |
---|
10 | 10 | | then b.payments[0] |
---|
11 | 11 | | else throw("Attach payment please") |
---|
12 | 12 | | if ((0 >= d.amount)) |
---|
13 | 13 | | then throw("Payment amount should be > 0 ") |
---|
14 | 14 | | else { |
---|
15 | 15 | | let e = { |
---|
16 | 16 | | let f = d.assetId |
---|
17 | 17 | | if ($isInstanceOf(f, "ByteVector")) |
---|
18 | 18 | | then { |
---|
19 | 19 | | let g = f |
---|
20 | 20 | | g |
---|
21 | 21 | | } |
---|
22 | 22 | | else toBytes("fds") |
---|
23 | 23 | | } |
---|
24 | 24 | | if ((toBase58String(e) == a)) |
---|
25 | | - | then [StringEntry(toString(b.caller), toBase58String(e))] |
---|
| 25 | + | then [StringEntry(toString(b.caller), ((toBase58String(e) + "_") + toString(d.amount)))] |
---|
26 | 26 | | else throw("Invalid asset") |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(b) |
---|
33 | 33 | | func transfer (h) = { |
---|
34 | 34 | | let d = if ((size(b.payments) == 1)) |
---|
35 | 35 | | then b.payments[0] |
---|
36 | 36 | | else throw("Attach payments") |
---|
37 | 37 | | let i = d.assetId |
---|
38 | 38 | | let j = d.amount |
---|
39 | 39 | | let k = addressFromStringValue(h) |
---|
40 | 40 | | [ScriptTransfer(k, j, i)] |
---|
41 | 41 | | } |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|
44 | 44 | | @Verifier(l) |
---|
45 | 45 | | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
46 | 46 | | |
---|