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:BgIMCAISABIAEgQKAgEBAwAWYnN0VXNkdEFzc2V0U3RvcmFnZUtleQIOYnN0VXNkdEFzc2V0SWQAFmJzdFN1cmZBc3NldFN0b3JhZ2VLZXkCDmJzdFN1cmZBc3NldElkARNjb252ZXJ0VG9CeXRlVmVjdG9yAQRkYXRhBAckbWF0Y2gwBQRkYXRhAwkAAQIFByRtYXRjaDACBlN0cmluZwQDc3RyBQckbWF0Y2gwCQCbAwEFA3N0cgkAAgECIUV4cGVjdGVkIHRoYXQgZGF0YSB3aWxsIGJlIHN0cmluZwMBaQEEY2FsbAAEBWFzc2V0CQDDCAcCBUFzc2V0AgAAZAAIBgUEdW5pdAAABAdhc3NldElkCQC4CAEFBWFzc2V0CQDMCAIJAQtCaW5hcnlFbnRyeQICA2JpbgEACQDMCAIJAQxCb29sZWFuRW50cnkCAgRib29sBgkAzAgCCQEMSW50ZWdlckVudHJ5AgIDaW50AAEJAMwIAgkBC1N0cmluZ0VudHJ5AgIDc3RyAgAJAMwIAgkBC0RlbGV0ZUVudHJ5AQIDc3RyCQDMCAIFBWFzc2V0BQNuaWwBaQELaXN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AwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleam8X7k=", "height": 2462321, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BDv3FRwC5wKi6cKaUHMaZ4CF1mN5okqqFuvJVVgWyGwW Next: EQsk4kmittQy7Re7ZRkQgomcom7JZ6LGj5QAvDvA6xyp Diff:
OldNewDifferences
4646 let p = assetBalance(this, c(i))
4747 if ((p >= o))
4848 then [ScriptTransfer(g.caller, o, c(i))]
49- else [StringEntry("Balance", toString(p))]
49+ else [ScriptTransfer(g.caller, o, c(i))]
5050 }
5151
5252
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "bstUsdtAssetId"
55
66 let b = "bstSurfAssetId"
77
88 func c (d) = {
99 let e = d
1010 if ($isInstanceOf(e, "String"))
1111 then {
1212 let f = e
1313 toBytes(f)
1414 }
1515 else throw("Expected that data will be string")
1616 }
1717
1818
1919 @Callable(g)
2020 func call () = {
2121 let h = Issue("Asset", "", 100, 8, true, unit, 0)
2222 let i = calculateAssetId(h)
2323 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), h]
2424 }
2525
2626
2727
2828 @Callable(g)
2929 func issueAssets () = {
3030 let j = Issue("bstUsdtTest1", "", 1000000, 6, true, unit, 0)
3131 let k = calculateAssetId(j)
3232 let l = Issue("bstSurfTest1", "", 1000000, 6, true, unit, 1)
3333 let m = calculateAssetId(l)
3434 [StringEntry(a, toBase58String(k)), StringEntry(b, toBase58String(m)), BinaryEntry("TestData", m), j, l]
3535 }
3636
3737
3838
3939 @Callable(g)
4040 func sendInternalAssetsToTheCaller (n,o) = {
4141 let i = if ((n == 0))
4242 then getString(a)
4343 else if ((n == 1))
4444 then getString(b)
4545 else throw("Wrong Asset Id")
4646 let p = assetBalance(this, c(i))
4747 if ((p >= o))
4848 then [ScriptTransfer(g.caller, o, c(i))]
49- else [StringEntry("Balance", toString(p))]
49+ else [ScriptTransfer(g.caller, o, c(i))]
5050 }
5151
5252
5353 @Verifier(q)
5454 func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
5555

github/deemru/w8io/169f3d6 
61.44 ms