tx · 6N6y16P3DaaaxaUQKcCC5WxEpJvRqL2rkUPpfWodXKk

3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6:  -0.01000000 Waves

2023.02.27 16:01 [2468152] smart account 3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6 > SELF 0.00000000 Waves

{ "type": 13, "id": "6N6y16P3DaaaxaUQKcCC5WxEpJvRqL2rkUPpfWodXKk", "fee": 1000000, "feeAssetId": null, "timestamp": 1677502926285, "version": 2, "chainId": 84, "sender": "3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6", "senderPublicKey": "3pW4h7e3NAcqGkvc1AyziZLMPSsG2eXvCGU7vLxPXkaq", "proofs": [ "5w5s7bzFWT6Mqpkqgz8aqgnzFirWs7FfwX8StErjoEjfLKAApQ6Pexqf23h5y1fFv7RXksuKVsunudiiuYARkqHA" ], "script": "base64:BgIKCAISABIECgIBAQMAFmJzdFVzZHRBc3NldFN0b3JhZ2VLZXkCDmJzdFVzZHRBc3NldElkABZic3RTdXJmQXNzZXRTdG9yYWdlS2V5Ag5ic3RTdXJmQXNzZXRJZAEGdW53cmFwAQRkYXRhBAckbWF0Y2gwBQRkYXRhAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAXYFByRtYXRjaDAFAXYJAAIBAiFFeHBlY3RlZCB0aGF0IGRhdGEgd2lsbCBiZSBzdHJpbmcCAWkBC2lzc3VlQXNzZXRzAAQHYnN0VXNkdAkAwwgHAgxic3RVc2R0VGVzdDECAACAreIEAAYGBQR1bml0AAAEDmJzdFVzZHRBc3NldElkCQC4CAEFB2JzdFVzZHQEB2JzdFN1cmYJAMMIBwIMYnN0U3VyZlRlc3QxAgAAgK3iBAAGBgUEdW5pdAABBA5ic3RTdXJmQXNzZXRJZAkAuAgBBQdic3RTdXJmCQDMCAIJAQtEZWxldGVFbnRyeQEFFmJzdFVzZHRBc3NldFN0b3JhZ2VLZXkJAMwIAgkBC0RlbGV0ZUVudHJ5AQUWYnN0U3VyZkFzc2V0U3RvcmFnZUtleQkAzAgCCQELQmluYXJ5RW50cnkCBRZic3RVc2R0QXNzZXRTdG9yYWdlS2V5BQ5ic3RVc2R0QXNzZXRJZAkAzAgCCQELQmluYXJ5RW50cnkCBRZic3RTdXJmQXNzZXRTdG9yYWdlS2V5BQ5ic3RTdXJmQXNzZXRJZAkAzAgCBQdic3RVc2R0CQDMCAIFB2JzdFN1cmYFA25pbAFpAR1zZW5kSW50ZXJuYWxBc3NldHNUb1RoZUNhbGxlcgICaWQGYW1vdW50BAdhc3NldElkAwkAAAIFAmlkAAAJAQZ1bndyYXABCQChCAEFFmJzdFVzZHRBc3NldFN0b3JhZ2VLZXkDCQAAAgUCaWQAAQkBBnVud3JhcAEJAKEIAQUWYnN0U3VyZkFzc2V0U3RvcmFnZUtleQkAAgECDldyb25nIEFzc2V0IElkBAdiYWxhbmNlCQDwBwIFBHRoaXMFB2Fzc2V0SWQDCQBnAgUHYmFsYW5jZQUGYW1vdW50CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUGYW1vdW50BQdhc3NldElkBQNuaWwJAMwIAgkBB1JlaXNzdWUDBQdhc3NldElkBQZhbW91bnQGCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUGYW1vdW50BQdhc3NldElkBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5WVm1RQ==", "height": 2468152, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 54y3zxTKCsTaGVavBfiJja7zr2977ojrTzVunUJig2xZ Next: 2V6JEWnj7NfZBPdBHPgTJNn2Tste5tL3YHPQbtMKT9Yk Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = base58'3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6'
4+let a = "bstUsdtAssetId"
55
6-let b = base58'3MpWdTGf7g4WqgCF16vRCm47r3jqWR4x3rH'
6+let b = "bstSurfAssetId"
77
8-let c = base58'6rJsnE4NsDjdJdk1qvYiPGKSdURV8g4XedTkipyskmh7'
8+func c (d) = {
9+ let e = d
10+ if ($isInstanceOf(e, "ByteVector"))
11+ then {
12+ let f = e
13+ f
14+ }
15+ else throw("Expected that data will be string")
16+ }
917
10-@Callable(d)
11-func requestUSDT (e) = {
12- let f = invoke(Address(a), "sendInternalAssetsToTheCaller", [0, e], nil)
13- if ((f == f))
14- then if ((f == f))
15- then nil
16- else throw("Strict value is not equal to itself.")
17- else throw("Strict value is not equal to itself.")
18+
19+@Callable(g)
20+func issueAssets () = {
21+ let h = Issue("bstUsdtTest1", "", 10000000, 6, true, unit, 0)
22+ let i = calculateAssetId(h)
23+ let j = Issue("bstSurfTest1", "", 10000000, 6, true, unit, 1)
24+ let k = calculateAssetId(j)
25+[DeleteEntry(a), DeleteEntry(b), BinaryEntry(a, i), BinaryEntry(b, k), h, j]
1826 }
1927
2028
2129
22-@Callable(d)
23-func stakeInViresFinance (e) = {
24- let f = invoke(Address(b), "deposit", [this, false], [AttachedPayment(c, e)])
25- if ((f == f))
26- then if ((f == f))
27- then nil
28- else throw("Strict value is not equal to itself.")
29- else throw("Strict value is not equal to itself.")
30+@Callable(g)
31+func sendInternalAssetsToTheCaller (l,m) = {
32+ let n = if ((l == 0))
33+ then c(getBinary(a))
34+ else if ((l == 1))
35+ then c(getBinary(b))
36+ else throw("Wrong Asset Id")
37+ let o = assetBalance(this, n)
38+ if ((o >= m))
39+ then [ScriptTransfer(g.caller, m, n)]
40+ else [Reissue(n, m, true), ScriptTransfer(g.caller, m, n)]
3041 }
3142
3243
33-@Verifier(g)
34-func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
44+@Verifier(p)
45+func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
3546

github/deemru/w8io/026f985 
30.90 ms