tx · EV9ioqFYaHZczFbGVeKD68SAbxAgr8jahc1QJpMchLAQ

3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6:  -0.04000000 Waves

2021.11.04 15:25 [1776258] smart account 3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6 > SELF 0.00000000 Waves

{ "type": 13, "id": "EV9ioqFYaHZczFbGVeKD68SAbxAgr8jahc1QJpMchLAQ", "fee": 4000000, "feeAssetId": null, "timestamp": 1636028739855, "version": 2, "chainId": 84, "sender": "3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6", "senderPublicKey": "Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL", "proofs": [ "EBHr7CrrCQY1u9VkMpUsmBDxaG7Td4a31vyXGZ6NDfe7Ppzq9erqB1DFygxGitNpLYycd33MAfGcVejZNQQi97J" ], "script": "base64:AAIFAAAAAAAAABEIAhIAEgASAwoBARIECgIBCAAAAAAAAAAEAAAAAWkBAAAABGNhbGwAAAAABAAAAAVhc3NldAkABEMAAAAHAgAAAAVBc3NldAIAAAAAAAAAAAAAAAABAAAAAAAAAAAABgUAAAAEdW5pdAAAAAAAAAAAAAQAAAAHYXNzZXRJZAkABDgAAAABBQAAAAVhc3NldAkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAAANiaW4BAAAAAAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAEYm9vbAYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAA2ludAAAAAAAAAAAAQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANzdHICAAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABAgAAAANzdHIJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAAB1JlaXNzdWUAAAADBQAAAAdhc3NldElkAAAAAAAAAAABBwkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0SWQAAA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AgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMFAAAABXNtYXJ0BgUAAAAGc2Vjb25kB/ymmj8=", "height": 1776258, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6YVERfiAHCfZ1fM8Mzt5LYUodEq2mrVV9U3oFhWDaoXb Next: JBqHQLCwbB3aZ4hAR18k1BjBKy3GSepNRfpXiTGV81p9 Diff:
OldNewDifferences
6262 @Callable(a)
6363 func transfer (j,k) = {
6464 let e = toBase58String(a.caller.bytes)
65- let l = fromBase58String(k)
66- let m = Address(l)
6765 let f = {
6866 let g = getInteger(this, e)
6967 if ($isInstanceOf(g, "Int"))
7876 then throw("Can't withdraw negative amount")
7977 else if ((0 > i))
8078 then throw("Not enough balance")
81- else $Tuple2([IntegerEntry(e, i), ScriptTransfer(m, j, unit)], unit)
79+ else {
80+ let l = toBase58String(Address(fromBase58String(k)).bytes)
81+ let m = {
82+ let g = getInteger(this, l)
83+ if ($isInstanceOf(g, "Int"))
84+ then {
85+ let h = g
86+ h
87+ }
88+ else 0
89+ }
90+ $Tuple2([IntegerEntry(e, i), IntegerEntry(e, (m + j))], unit)
91+ }
8292 }
8393
8494
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func call () = {
88 let b = Issue("Asset", "", 1, 0, true, unit, 0)
99 let c = calculateAssetId(b)
1010 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), b, Reissue(c, 1, false), Burn(c, 1), ScriptTransfer(a.caller, 1, c)]
1111 }
1212
1313
1414
1515 @Callable(a)
1616 func deposit () = {
1717 let d = if ((size(a.payments) == 1))
1818 then a.payments[0]
1919 else throw("Attached payment is required")
2020 if (isDefined(d.assetId))
2121 then throw("works with waves only")
2222 else {
2323 let e = toBase58String(a.caller.bytes)
2424 let f = {
2525 let g = getInteger(this, e)
2626 if ($isInstanceOf(g, "Int"))
2727 then {
2828 let h = g
2929 h
3030 }
3131 else 0
3232 }
3333 let i = (f + d.amount)
3434 $Tuple2([IntegerEntry(e, i)], unit)
3535 }
3636 }
3737
3838
3939
4040 @Callable(a)
4141 func withdraw (j) = {
4242 let e = toBase58String(a.caller.bytes)
4343 let f = {
4444 let g = getInteger(this, e)
4545 if ($isInstanceOf(g, "Int"))
4646 then {
4747 let h = g
4848 h
4949 }
5050 else 0
5151 }
5252 let i = (f - j)
5353 if ((0 > j))
5454 then throw("Can't withdraw negative amount")
5555 else if ((0 > i))
5656 then throw("Not enough balance")
5757 else $Tuple2([IntegerEntry(e, i), ScriptTransfer(a.caller, j, unit)], unit)
5858 }
5959
6060
6161
6262 @Callable(a)
6363 func transfer (j,k) = {
6464 let e = toBase58String(a.caller.bytes)
65- let l = fromBase58String(k)
66- let m = Address(l)
6765 let f = {
6866 let g = getInteger(this, e)
6967 if ($isInstanceOf(g, "Int"))
7068 then {
7169 let h = g
7270 h
7371 }
7472 else 0
7573 }
7674 let i = (f - j)
7775 if ((0 > j))
7876 then throw("Can't withdraw negative amount")
7977 else if ((0 > i))
8078 then throw("Not enough balance")
81- else $Tuple2([IntegerEntry(e, i), ScriptTransfer(m, j, unit)], unit)
79+ else {
80+ let l = toBase58String(Address(fromBase58String(k)).bytes)
81+ let m = {
82+ let g = getInteger(this, l)
83+ if ($isInstanceOf(g, "Int"))
84+ then {
85+ let h = g
86+ h
87+ }
88+ else 0
89+ }
90+ $Tuple2([IntegerEntry(e, i), IntegerEntry(e, (m + j))], unit)
91+ }
8292 }
8393
8494
8595 @Verifier(n)
8696 func o () = {
8797 let p = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
8898 let q = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB'
8999 let r = sigVerify(n.bodyBytes, n.proofs[0], p)
90100 let s = sigVerify(n.bodyBytes, n.proofs[0], q)
91101 let g = n
92102 if ($isInstanceOf(g, "SetScriptTransaction"))
93103 then {
94104 let t = g
95105 true
96106 }
97107 else if ($isInstanceOf(g, "DataTransaction"))
98108 then {
99109 let t = g
100110 true
101111 }
102112 else if ($isInstanceOf(g, "InvokeScriptTransaction"))
103113 then {
104114 let t = g
105115 true
106116 }
107117 else if ($isInstanceOf(g, "TransferTransaction"))
108118 then {
109119 let t = g
110120 if (r)
111121 then true
112122 else s
113123 }
114124 else false
115125 }
116126

github/deemru/w8io/169f3d6 
32.83 ms