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
4343 let balance = assetBalance(this, convertToByteVector(assetId))
4444 if ((balance >= amount))
4545 then [ScriptTransfer(i.caller, amount, convertToByteVector(assetId))]
46- else [StringEntry("Balance", toString(balance))]
46+ else [ScriptTransfer(i.caller, amount, convertToByteVector(assetId))]
4747 }
4848
4949
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let bstUsdtAssetStorageKey = "bstUsdtAssetId"
55
66 let bstSurfAssetStorageKey = "bstSurfAssetId"
77
88 func convertToByteVector (data) = match data {
99 case str: String =>
1010 toBytes(str)
1111 case _ =>
1212 throw("Expected that data will be string")
1313 }
1414
1515
1616 @Callable(i)
1717 func call () = {
1818 let asset = Issue("Asset", "", 100, 8, true, unit, 0)
1919 let assetId = calculateAssetId(asset)
2020 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), asset]
2121 }
2222
2323
2424
2525 @Callable(i)
2626 func issueAssets () = {
2727 let bstUsdt = Issue("bstUsdtTest1", "", 1000000, 6, true, unit, 0)
2828 let bstUsdtAssetId = calculateAssetId(bstUsdt)
2929 let bstSurf = Issue("bstSurfTest1", "", 1000000, 6, true, unit, 1)
3030 let bstSurfAssetId = calculateAssetId(bstSurf)
3131 [StringEntry(bstUsdtAssetStorageKey, toBase58String(bstUsdtAssetId)), StringEntry(bstSurfAssetStorageKey, toBase58String(bstSurfAssetId)), BinaryEntry("TestData", bstSurfAssetId), bstUsdt, bstSurf]
3232 }
3333
3434
3535
3636 @Callable(i)
3737 func sendInternalAssetsToTheCaller (id,amount) = {
3838 let assetId = if ((id == 0))
3939 then getString(bstUsdtAssetStorageKey)
4040 else if ((id == 1))
4141 then getString(bstSurfAssetStorageKey)
4242 else throw("Wrong Asset Id")
4343 let balance = assetBalance(this, convertToByteVector(assetId))
4444 if ((balance >= amount))
4545 then [ScriptTransfer(i.caller, amount, convertToByteVector(assetId))]
46- else [StringEntry("Balance", toString(balance))]
46+ else [ScriptTransfer(i.caller, amount, convertToByteVector(assetId))]
4747 }
4848
4949
5050 @Verifier(tx)
5151 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5252

github/deemru/w8io/169f3d6 
37.63 ms