tx · HWPeNV9aLLxNv4F3a6RSpWJwr1uvXCjnwBez5Bu7EtPA

3NBTGfiEtHiKvpV84qrVpaqycizY8hGAxpu:  -0.01400000 Waves

2020.01.03 10:47 [837389] smart account 3NBTGfiEtHiKvpV84qrVpaqycizY8hGAxpu > SELF 0.00000000 Waves

{ "type": 13, "id": "HWPeNV9aLLxNv4F3a6RSpWJwr1uvXCjnwBez5Bu7EtPA", "fee": 1400000, "feeAssetId": null, "timestamp": 1578037584439, "version": 1, "sender": "3NBTGfiEtHiKvpV84qrVpaqycizY8hGAxpu", "senderPublicKey": "7DERSZYEoBTSwaTrN1ktwnx1Y5D46mSpMSayUNs8CmcK", "proofs": [ "5KnhL5B9AvtjgR1aWpXynC3u5tVjLEjfsTEF1iZwU4zJqTgEirA39EtHm5mLPFCvyKuvzLQ1uk7A2i4XfJxPm32m" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIBCBIECgIBCAAAAAYAAAAAEGRhcHBBY291bnRQdWJLZXkBAAAAIFxIRFJtzw8EQGNgJYi+FoqGy/ftVpr8Tfeuof0vU4NYAAAAAAZwYXI3SWQBAAAAIM5YQP2Y4rTFk3fjHMVSaCtBnCyxqxHVfGnKN+eS6UeMAAAAAAZ1c2RuSWQBAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3AAAAAAVidGNJZAEAAAAguec/qo8QJtuj3bookxh1fq0CogDYmuE6CdbFUTcLG40AAAAABmV1cm9JZAEAAAAgksOaihajKoQqnq8MtxuSVjR9ECuhi4KGdaumzXMlMJsAAAAAB3dhdmVzSWQBAAAABBOr2TMAAAACAAAAAWkBAAAAB2RlcG9zaXQAAAACAAAACmNvbXBlU3RhcnQAAAACaWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwYXltZW50SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAA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eQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAABcwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXMAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAABcwAAAA9zZW5kZXJQdWJsaWNLZXkHpcJRRw==", "chainId": 84, "height": 837389, "spentComplexity": 0 } View: original | compacted Prev: EjGEfiJSFLRoR4fPdmxnYm1XN3dDLnpPt4NG4VbmMYCo Next: 7G8jNV4EVMEziJZipFcUuvjjiZi7hNxSVxGP4uEnssWE Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'7DERSZYEoBTSwaTrN1ktwnx1Y5D46mSpMSayUNs8CmcK'
55
66 let b = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm'
77
88 let c = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC'
99
1010 let d = base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn'
1111
1212 let e = base58'AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ'
1313
1414 let f = base58'WAVES'
1515
1616 @Callable(g)
1717 func deposit (h,i) = {
1818 let j = extract(g.payment)
1919 let k = j.assetId
2020 let l = toBase58String(g.caller.bytes)
2121 let m = {
2222 let n = getInteger(this, l)
2323 if ($isInstanceOf(n, "Int"))
2424 then {
2525 let o = n
2626 o
2727 }
2828 else 0
2929 }
3030 let p = (m + j.amount)
3131 WriteSet([DataEntry((i + l), p), DataEntry((i + l), h)])
3232 }
3333
3434
3535
3636 @Callable(g)
3737 func withdraw (q,i) = {
3838 let l = toBase58String(g.caller.bytes)
3939 let h = {
4040 let n = getInteger(this, ("compeStart_" + l))
4141 if ($isInstanceOf(n, "Int"))
4242 then {
4343 let o = n
4444 o
4545 }
4646 else 0
4747 }
4848 let m = {
4949 let n = getInteger(this, l)
5050 if ($isInstanceOf(n, "Int"))
5151 then {
5252 let o = n
5353 o
5454 }
5555 else 0
5656 }
5757 let p = (m - q)
5858 if ((lastBlock.timestamp > h))
5959 then throw("Can't withdraw")
6060 else if ((0 > q))
6161 then throw("Can't withdraw negative amount")
6262 else if ((0 > p))
6363 then throw("Not enough balance")
6464 else if ((i == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm"))
6565 then ScriptResult(WriteSet([DataEntry((i + l), p)]), TransferSet([ScriptTransfer(g.caller, q, b)]))
6666 else if ((i == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"))
6767 then ScriptResult(WriteSet([DataEntry(("USD-N_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, c)]))
6868 else if ((i == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"))
6969 then ScriptResult(WriteSet([DataEntry(("BTC_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, d)]))
7070 else if ((i == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ"))
7171 then ScriptResult(WriteSet([DataEntry(("EURO_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, e)]))
7272 else if ((i == "WAVES"))
7373 then ScriptResult(WriteSet([DataEntry(("WAVES_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, f)]))
7474 else throw("Can't withdraw")
7575 }
7676
7777
7878 @Verifier(r)
7979 func s () = {
8080 let n = r
8181 if ($isInstanceOf(n, "InvokeScriptTransaction"))
8282 then {
8383 let t = n
8484 true
8585 }
8686 else if ($isInstanceOf(n, "TransferTransaction"))
8787 then {
8888 let u = n
8989 sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
9090 }
9191 else if ($isInstanceOf(n, "SetScriptTransaction"))
9292 then {
9393 let v = n
9494 sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
9595 }
9696 else false
9797 }
9898

github/deemru/w8io/169f3d6 
39.59 ms