tx · 4qGa6AU5398CuwvYLi71F7yLwD4V4qzcApCJjsnQiSNC

3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2:  -0.00100000 Waves

2023.04.25 20:04 [2550352] smart account 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2 > SELF 0.00000000 Waves

{ "type": 13, "id": "4qGa6AU5398CuwvYLi71F7yLwD4V4qzcApCJjsnQiSNC", "fee": 100000, "feeAssetId": null, "timestamp": 1682442352966, "version": 2, "chainId": 84, "sender": "3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2", "senderPublicKey": "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY", "proofs": [ "2MVLaN9nvkL6x8pKC6PmH32KSfmks9JAyaJgkm4Nq3NLEpkQiunTRzfSdM8ZsGibVaGQyapUAFmXmJ9MGX5WMMB3" ], "script": "base64:BgISCAISAwoBCBIDCgEIEgQKAggIBAEPZ2V0QXNzZXRCYWxhbmNlAgdhZGRyZXNzB2Fzc2V0SWQJAPAHAgUHYWRkcmVzcwUHYXNzZXRJZAEPZ2V0V2F2ZXNCYWxhbmNlAQdhZGRyZXNzCAkA7wcBBQdhZGRyZXNzCWF2YWlsYWJsZQEKZ2V0QmFsYW5jZQIHYWRkcmVzcwdhc3NldElkBARhZGRyCQEHQWRkcmVzcwEJANkEAQUHYWRkcmVzcwQDYUlkCQDZBAEFB2Fzc2V0SWQEB2JhbGFuY2UDCQAAAgUHYXNzZXRJZAIFV0FWRVMJAQ9nZXRXYXZlc0JhbGFuY2UBBQRhZGRyCQEPZ2V0QXNzZXRCYWxhbmNlAgUEYWRkcgUDYUlkCQCsAgIJAKwCAgUHYXNzZXRJZAIBOgkApAMBBQdiYWxhbmNlAQdkb1Bvb2xzAQpwb29sUGFyYW1zBANhcnIJALwJAgUKcG9vbFBhcmFtcwIBOwQJJHQwNjk2NzUwCQCVCgMJAJEDAgUDYXJyAAAJAJEDAgUDYXJyAAEJAJEDAgUDYXJyAAIEB2FkZHJlc3MIBQkkdDA2OTY3NTACXzEEBHR5cGUIBQkkdDA2OTY3NTACXzIEBmFzc2V0cwgFCSR0MDY5Njc1MAJfMwAAAwFpAQRhc3NzAQNhcmcEBmFzc2V0cwkAvAkCBQNhcmcCAXwEA3JlcwoAAiRsBQZhc3NldHMKAAIkcwkAkAMBBQIkbAoABSRhY2MwAgAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBCmdldEJhbGFuY2UCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoJAAIBBQNyZXMBaQEDZ2V0AQZwYXJhbXMEBXBvb2xzCQC8CQIFBnBhcmFtcwIBfAUDbmlsAWkBBHRlc3QCB2FkZHJlc3MHYXNzZXRJZAUDbmlsAJPhITc=", "height": 2550352, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 84Ux7isQ6YcM2YhafyiL8i1w9k85A9tuJPhmDSSCuFDM Next: FzG8AysQSMv1ttdTmVWE7sqEN14Dj2gxzLFHBTTi9Nub Diff:
OldNewDifferences
77 func getWavesBalance (address) = wavesBalance(address).available
88
99
10-@Callable(i)
1110 func getBalance (address,assetId) = {
1211 let addr = Address(fromBase58String(address))
1312 let aId = fromBase58String(assetId)
1413 let balance = if ((assetId == "WAVES"))
1514 then getWavesBalance(addr)
1615 else getAssetBalance(addr, aId)
17- throw(toString(balance))
16+ ((assetId + ":") + toString(balance))
1817 }
18+
19+
20+func doPools (poolParams) = {
21+ let arr = split_4C(poolParams, ";")
22+ let $t0696750 = $Tuple3(arr[0], arr[1], arr[2])
23+ let address = $t0696750._1
24+ let type = $t0696750._2
25+ let assets = $t0696750._3
26+ 0
27+ }
28+
29+
30+@Callable(i)
31+func asss (arg) = {
32+ let assets = split_4C(arg, "|")
33+ let res = {
34+ let $l = assets
35+ let $s = size($l)
36+ let $acc0 = ""
37+ func $f0_1 ($a,$i) = if (($i >= $s))
38+ then $a
39+ else getBalance($a, $l[$i])
40+
41+ func $f0_2 ($a,$i) = if (($i >= $s))
42+ then $a
43+ else throw("List size exceeds 10")
44+
45+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
46+ }
47+ throw(res)
48+ }
49+
50+
51+
52+@Callable(i)
53+func get (params) = {
54+ let pools = split_4C(params, "|")
55+ nil
56+ }
57+
58+
59+
60+@Callable(i)
61+func test (address,assetId) = nil
1962
2063
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getAssetBalance (address,assetId) = assetBalance(address, assetId)
55
66
77 func getWavesBalance (address) = wavesBalance(address).available
88
99
10-@Callable(i)
1110 func getBalance (address,assetId) = {
1211 let addr = Address(fromBase58String(address))
1312 let aId = fromBase58String(assetId)
1413 let balance = if ((assetId == "WAVES"))
1514 then getWavesBalance(addr)
1615 else getAssetBalance(addr, aId)
17- throw(toString(balance))
16+ ((assetId + ":") + toString(balance))
1817 }
18+
19+
20+func doPools (poolParams) = {
21+ let arr = split_4C(poolParams, ";")
22+ let $t0696750 = $Tuple3(arr[0], arr[1], arr[2])
23+ let address = $t0696750._1
24+ let type = $t0696750._2
25+ let assets = $t0696750._3
26+ 0
27+ }
28+
29+
30+@Callable(i)
31+func asss (arg) = {
32+ let assets = split_4C(arg, "|")
33+ let res = {
34+ let $l = assets
35+ let $s = size($l)
36+ let $acc0 = ""
37+ func $f0_1 ($a,$i) = if (($i >= $s))
38+ then $a
39+ else getBalance($a, $l[$i])
40+
41+ func $f0_2 ($a,$i) = if (($i >= $s))
42+ then $a
43+ else throw("List size exceeds 10")
44+
45+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
46+ }
47+ throw(res)
48+ }
49+
50+
51+
52+@Callable(i)
53+func get (params) = {
54+ let pools = split_4C(params, "|")
55+ nil
56+ }
57+
58+
59+
60+@Callable(i)
61+func test (address,assetId) = nil
1962
2063

github/deemru/w8io/026f985 
34.19 ms