tx · 9ipHkRPdWWm6MTNR77qg3gn8tcF2VW3mdGFFBRk5XGsg 3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6: -0.01000000 Waves 2023.02.23 15:42 [2462321] smart account 3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6 > SELF 0.00000000 Waves
{ "type": 13, "id": "9ipHkRPdWWm6MTNR77qg3gn8tcF2VW3mdGFFBRk5XGsg", "fee": 1000000, "feeAssetId": null, "timestamp": 1677156160272, "version": 2, "chainId": 84, "sender": "3N37eLdtWjhS31FGHvu2HpGLreF11i58Bv6", "senderPublicKey": "3pW4h7e3NAcqGkvc1AyziZLMPSsG2eXvCGU7vLxPXkaq", "proofs": [ "52bctaKxd8F5P9stHJMdvfAJGJW2BnYzHvPAbRjXCMraCPgumkH9gGVrmNnCfhh3ZEJVsesDNWq3JujDLKfQC39E" ], "script": "base64:BgIMCAISABIAEgQKAgEBAwAWYnN0VXNkdEFzc2V0U3RvcmFnZUtleQIOYnN0VXNkdEFzc2V0SWQAFmJzdFN1cmZBc3NldFN0b3JhZ2VLZXkCDmJzdFN1cmZBc3NldElkARNjb252ZXJ0VG9CeXRlVmVjdG9yAQRkYXRhBAckbWF0Y2gwBQRkYXRhAwkAAQIFByRtYXRjaDACBlN0cmluZwQDc3RyBQckbWF0Y2gwCQCbAwEFA3N0cgkAAgECIUV4cGVjdGVkIHRoYXQgZGF0YSB3aWxsIGJlIHN0cmluZwMBaQEEY2FsbAAEBWFzc2V0CQDDCAcCBUFzc2V0AgAAZAAIBgUEdW5pdAAABAdhc3NldElkCQC4CAEFBWFzc2V0CQDMCAIJAQtCaW5hcnlFbnRyeQICA2JpbgEACQDMCAIJAQxCb29sZWFuRW50cnkCAgRib29sBgkAzAgCCQEMSW50ZWdlckVudHJ5AgIDaW50AAEJAMwIAgkBC1N0cmluZ0VudHJ5AgIDc3RyAgAJAMwIAgkBC0RlbGV0ZUVudHJ5AQIDc3RyCQDMCAIFBWFzc2V0BQNuaWwBaQELaXNz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wIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleam8X7k=", "height": 2462321, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BDv3FRwC5wKi6cKaUHMaZ4CF1mN5okqqFuvJVVgWyGwW Next: EQsk4kmittQy7Re7ZRkQgomcom7JZ6LGj5QAvDvA6xyp Diff:
Old | New | Differences | |
---|---|---|---|
46 | 46 | let p = assetBalance(this, c(i)) | |
47 | 47 | if ((p >= o)) | |
48 | 48 | then [ScriptTransfer(g.caller, o, c(i))] | |
49 | - | else [ | |
49 | + | else [ScriptTransfer(g.caller, o, c(i))] | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "bstUsdtAssetId" | |
5 | 5 | ||
6 | 6 | let b = "bstSurfAssetId" | |
7 | 7 | ||
8 | 8 | func c (d) = { | |
9 | 9 | let e = d | |
10 | 10 | if ($isInstanceOf(e, "String")) | |
11 | 11 | then { | |
12 | 12 | let f = e | |
13 | 13 | toBytes(f) | |
14 | 14 | } | |
15 | 15 | else throw("Expected that data will be string") | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(g) | |
20 | 20 | func call () = { | |
21 | 21 | let h = Issue("Asset", "", 100, 8, true, unit, 0) | |
22 | 22 | let i = calculateAssetId(h) | |
23 | 23 | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), h] | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(g) | |
29 | 29 | func issueAssets () = { | |
30 | 30 | let j = Issue("bstUsdtTest1", "", 1000000, 6, true, unit, 0) | |
31 | 31 | let k = calculateAssetId(j) | |
32 | 32 | let l = Issue("bstSurfTest1", "", 1000000, 6, true, unit, 1) | |
33 | 33 | let m = calculateAssetId(l) | |
34 | 34 | [StringEntry(a, toBase58String(k)), StringEntry(b, toBase58String(m)), BinaryEntry("TestData", m), j, l] | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Callable(g) | |
40 | 40 | func sendInternalAssetsToTheCaller (n,o) = { | |
41 | 41 | let i = if ((n == 0)) | |
42 | 42 | then getString(a) | |
43 | 43 | else if ((n == 1)) | |
44 | 44 | then getString(b) | |
45 | 45 | else throw("Wrong Asset Id") | |
46 | 46 | let p = assetBalance(this, c(i)) | |
47 | 47 | if ((p >= o)) | |
48 | 48 | then [ScriptTransfer(g.caller, o, c(i))] | |
49 | - | else [ | |
49 | + | else [ScriptTransfer(g.caller, o, c(i))] | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | @Verifier(q) | |
54 | 54 | func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey) | |
55 | 55 |
github/deemru/w8io/169f3d6 61.44 ms ◑