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:
OldNewDifferences
2222 else toBytes("fds")
2323 }
2424 if ((toBase58String(e) == a))
25- then [StringEntry(toString(b.caller), toBase58String(e))]
25+ then [StringEntry(toString(b.caller), ((toBase58String(e) + "_") + toString(d.amount)))]
2626 else throw("Invalid asset")
2727 }
2828 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "6n7Lk62AZUJTdTYHxSgNYT7opa2hAYJAkntBCnykc3CF"
55
66 @Callable(b)
77 func acceptToken () = {
88 let c = b.payments[0]
99 let d = if ((size(b.payments) == 1))
1010 then b.payments[0]
1111 else throw("Attach payment please")
1212 if ((0 >= d.amount))
1313 then throw("Payment amount should be > 0 ")
1414 else {
1515 let e = {
1616 let f = d.assetId
1717 if ($isInstanceOf(f, "ByteVector"))
1818 then {
1919 let g = f
2020 g
2121 }
2222 else toBytes("fds")
2323 }
2424 if ((toBase58String(e) == a))
25- then [StringEntry(toString(b.caller), toBase58String(e))]
25+ then [StringEntry(toString(b.caller), ((toBase58String(e) + "_") + toString(d.amount)))]
2626 else throw("Invalid asset")
2727 }
2828 }
2929
3030
3131
3232 @Callable(b)
3333 func transfer (h) = {
3434 let d = if ((size(b.payments) == 1))
3535 then b.payments[0]
3636 else throw("Attach payments")
3737 let i = d.assetId
3838 let j = d.amount
3939 let k = addressFromStringValue(h)
4040 [ScriptTransfer(k, j, i)]
4141 }
4242
4343
4444 @Verifier(l)
4545 func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
4646

github/deemru/w8io/169f3d6 
45.75 ms