tx · 7n6f4wuEsRiqRcZUdq3rdLw2yy4mKdmWD4kekfEFMyQB

3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET:  -0.00200000 Waves

2023.05.15 16:08 [2579117] smart account 3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET > SELF 0.00000000 Waves

{ "type": 13, "id": "7n6f4wuEsRiqRcZUdq3rdLw2yy4mKdmWD4kekfEFMyQB", "fee": 200000, "feeAssetId": null, "timestamp": 1684156164684, "version": 2, "chainId": 84, "sender": "3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET", "senderPublicKey": "ACNdxdXUS5uLiYS4LMdrApJBVCQj8FDMHEknQkNYCUaK", "proofs": [ "5Mv4MRJqXDjqkBsMo8Aq8eDZUxWV1kt1gYdiUfgTRDXZzCEk6C9UHvSQTuZuEUFfSvR3ncnzZL1cZ48eDMVoMMhn" ], "script": "base64:BgIPCAISABIDCgEBEgQKAgEIAAMBaQEHZGVwb3NpdAAEB3BheW1lbnQJAQV2YWx1ZQEIBQFpCHBheW1lbnRzAwMJAGYCCQCQAwEFB3BheW1lbnQAAQYJAQlpc0RlZmluZWQBCAkAkQMCBQdwYXltZW50AAAHYXNzZXRJZAkAAgECKFlvdSBjYW4gb25seSBvbmUgV0FWRVMgZGVwb3NpdCBhdCBhIHRpbWUECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNY3VycmVudEFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQpjdXJyZW50S2V5AAAECW5ld0Ftb3VudAkAZAIFDWN1cnJlbnRBbW91bnQICQCRAwIFB3BheW1lbnQAAAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFCmN1cnJlbnRLZXkFCW5ld0Ftb3VudAUDbmlsAWkBCHdpdGhkcmF3AQZhbW91bnQECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNY3VycmVudEFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQpjdXJyZW50S2V5AAAECW5ld0Ftb3VudAkAZQIFDWN1cnJlbnRBbW91bnQFBmFtb3VudAMJAGYCAAAFBmFtb3VudAkAAgECH0Nhbm5vdCB3aXRoZHJhdyBuZWdhdGl2ZSBhbW91bnQDCQBmAgAABQluZXdBbW91bnQJAAIBAhJOb3QgZW5vdWdoIGJhbGFuY2UJAMwIAgkBDEludGVnZXJFbnRyeQIFCmN1cnJlbnRLZXkFCW5ld0Ftb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFBmFtb3VudAUEdW5pdAUDbmlsAWkBC2RlcDEwU3dhdmVzAgZhbW91bnQNYWRkcmVzc1N3YXZlcwQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAZhc3NldEEICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAQNYW1vdW50UGF5bWVudAABBAppbnZvY2F0aW9uCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQEFDWFkZHJlc3NTd2F2ZXMCB2RlcG9zaXQFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUGYXNzZXRBBQ1hbW91bnRQYXltZW50BQNuaWwDCQAAAgUKaW52b2NhdGlvbgUKaW52b2NhdGlvbgkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQpjdXJyZW50S2V5BQZhbW91bnQFA25pbAUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5BJvQ3g==", "height": 2579117, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5dQZhXZaeqKYwXgTRRzKBBecUAJgdrd4f5M6umSVsTsw Next: zMJgcRLVZkPScmTVDXbrtt8szwwmEwrRsGh1KAXFPux Diff:
OldNewDifferences
3535
3636
3737 @Callable(i)
38-func dep9Swaves (amount,addressSwaves) = {
38+func dep10Swaves (amount,addressSwaves) = {
3939 let currentKey = toBase58String(i.caller.bytes)
4040 let assetA = i.payments[0].assetId
4141 let amountPayment = 1
4242 let invocation = invoke(addressFromStringValue(addressSwaves), "deposit", nil, [AttachedPayment(assetA, amountPayment)])
4343 if ((invocation == invocation))
44- then [IntegerEntry(currentKey, amount)]
44+ then $Tuple2([IntegerEntry(currentKey, amount)], unit)
4545 else throw("Strict value is not equal to itself.")
4646 }
4747
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func deposit () = {
88 let payment = value(i.payments)
99 if (if ((size(payment) > 1))
1010 then true
1111 else isDefined(payment[0].assetId))
1212 then throw("You can only one WAVES deposit at a time")
1313 else {
1414 let currentKey = toBase58String(i.caller.bytes)
1515 let currentAmount = valueOrElse(getInteger(this, currentKey), 0)
1616 let newAmount = (currentAmount + payment[0].amount)
1717 [IntegerEntry(currentKey, newAmount)]
1818 }
1919 }
2020
2121
2222
2323 @Callable(i)
2424 func withdraw (amount) = {
2525 let currentKey = toBase58String(i.caller.bytes)
2626 let currentAmount = valueOrElse(getInteger(this, currentKey), 0)
2727 let newAmount = (currentAmount - amount)
2828 if ((0 > amount))
2929 then throw("Cannot withdraw negative amount")
3030 else if ((0 > newAmount))
3131 then throw("Not enough balance")
3232 else [IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, amount, unit)]
3333 }
3434
3535
3636
3737 @Callable(i)
38-func dep9Swaves (amount,addressSwaves) = {
38+func dep10Swaves (amount,addressSwaves) = {
3939 let currentKey = toBase58String(i.caller.bytes)
4040 let assetA = i.payments[0].assetId
4141 let amountPayment = 1
4242 let invocation = invoke(addressFromStringValue(addressSwaves), "deposit", nil, [AttachedPayment(assetA, amountPayment)])
4343 if ((invocation == invocation))
44- then [IntegerEntry(currentKey, amount)]
44+ then $Tuple2([IntegerEntry(currentKey, amount)], unit)
4545 else throw("Strict value is not equal to itself.")
4646 }
4747
4848
4949 @Verifier(tx)
5050 func verify () = match tx {
5151 case _ =>
5252 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5353 }
5454

github/deemru/w8io/026f985 
24.66 ms