tx · J9xqF6HbBMgRmBiBSEaPXGgBQA1RBVd2kpu4RLSDiajK

3N65E1rYWAxQMCLg27pRxBFtAt3bPcH3pys:  -0.01400000 Waves

2022.02.11 15:23 [1918942] smart account 3N65E1rYWAxQMCLg27pRxBFtAt3bPcH3pys > SELF 0.00000000 Waves

{ "type": 13, "id": "J9xqF6HbBMgRmBiBSEaPXGgBQA1RBVd2kpu4RLSDiajK", "fee": 1400000, "feeAssetId": null, "timestamp": 1644582244377, "version": 2, "chainId": 84, "sender": "3N65E1rYWAxQMCLg27pRxBFtAt3bPcH3pys", "senderPublicKey": "HUBVsBcuExqVSbV3mSVhpdKfgihF2nwdtpGmpVLRwxEN", "proofs": [ "58tpGGcWDsCxAFuV2UwMXiY6cq2ZcpjYqEGsr3ppgUv52a13DJosokqZqYJhuhKwLvQPoy6osAqTUPBHibLrKzZB" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAABAAAAAAd0b2tlbklkAgAAACw2bjdMazYyQVpVSlRkVFlIeFNnTllUN29wYTJoQVlKQWtudEJDbnlrYzNDRgAAAAIAAAABaQEAAAALYWNjZXB0VG9rZW4AAAAABAAAAAJvaQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFUF0dGFjaCBwYXltZW50IHBsZWFzZQMJAABnAAAAAgAAAAAAAAAAAAgFAAAAA3BtdAAAAAZhbW91bnQJAAACAAAAAQIAAAAdUGF5bWVudCBhbW91bnQgc2hvdWxkIGJlID4gMCAEAAAABWFzc2lkBAAAAAckbWF0Y2gwCAUAAAADcG10AAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEJAAGbAAAAAQIAAAADZmRzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQACWAAAAAEFAAAABWFzc2lkBQAAAANuaWwAAAABaQEAAAAIdHJhbnNmZXIAAAABAAAACXJlY2lwaWVudAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAD0F0dGFjaCBwYXltZW50cwQAAAAHYXNzZXRJZAgFAAAAA3BtdAAAAAdhc3NldElkBAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50BAAAAANyZWMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAACXJlY2lwaWVudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAANyZWMFAAAABmFtb3VudAUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkZtwm/", "height": 1918942, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 58pdGWgdZzfYS8aqyyWnYnVAatAA4TL8uUAPgLt3EBRi Next: FDGGLedXrXhD2SQ8hjBPjX3d4jSPDG36cniShg2ErdyD Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let a = "6n7Lk62AZUJTdTYHxSgNYT7opa2hAYJAkntBCnykc3CF"
45
5-
6-@Callable(a)
7-func transfer (b) = {
8- let c = if ((size(a.payments) == 1))
9- then a.payments[0]
10- else throw("Attach payments")
11- let d = c.assetId
12- let e = c.amount
13- let f = addressFromStringValue(b)
14-[ScriptTransfer(f, e, d)]
6+@Callable(b)
7+func acceptToken () = {
8+ let c = b.payments[0]
9+ let d = if ((size(b.payments) == 1))
10+ then b.payments[0]
11+ else throw("Attach payment please")
12+ if ((0 >= d.amount))
13+ then throw("Payment amount should be > 0 ")
14+ else {
15+ let e = {
16+ let f = d.assetId
17+ if ($isInstanceOf(f, "ByteVector"))
18+ then {
19+ let g = f
20+ g
21+ }
22+ else toBytes("fds")
23+ }
24+[StringEntry(toString(b.caller), toBase58String(e))]
25+ }
1526 }
1627
1728
18-@Verifier(g)
19-func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
29+
30+@Callable(b)
31+func transfer (h) = {
32+ let d = if ((size(b.payments) == 1))
33+ then b.payments[0]
34+ else throw("Attach payments")
35+ let i = d.assetId
36+ let j = d.amount
37+ let k = addressFromStringValue(h)
38+[ScriptTransfer(k, j, i)]
39+ }
40+
41+
42+@Verifier(l)
43+func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
2044

github/deemru/w8io/026f985 
35.55 ms