tx · 8NCvqyjmtQstQ75WrkrNXTxFduHQxDRAYpJfvVeotNXD

3N9nVNxRXkYG1LxBamitnLpZzXcjGDZ2Q6z:  -0.01400000 Waves

2019.10.17 01:12 [723138] smart account 3N9nVNxRXkYG1LxBamitnLpZzXcjGDZ2Q6z > SELF 0.00000000 Waves

{ "type": 13, "id": "8NCvqyjmtQstQ75WrkrNXTxFduHQxDRAYpJfvVeotNXD", "fee": 1400000, "feeAssetId": null, "timestamp": 1571263997917, "version": 1, "sender": "3N9nVNxRXkYG1LxBamitnLpZzXcjGDZ2Q6z", "senderPublicKey": "EEGsMXJbL3i6pER7gfBpcw87Km3h2gz6qiqhqPXbdob1", "proofs": [ "3KpUnAaR5YG5vvmN3oRodcPo9xhLhP2vxCzUYgUQSt4gZD3MXiKbPVHugWxynNVVZWcP62N6KCe6L5C2MKwXMAmK" ], "script": "base64:AAIDAAAAAAAAAAsIARIAEgASAwoBAQAAAAEAAAAABW93bmVyAQAAACDEjmw5zzkX3oDIwQ5BL5mutxduNY61q+A7lXL1UaMULAAAAAMAAAABaQEAAAAIcHVyY2hhcmUAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAkeW91IGNhbiB1c2UgV0FWRVMgb25seSBhdCB0aGUgbW9tZW50BAAAAA5jdXN0b21lckFkZHJlcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwcmljZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAABNpdGVtX0FfY291cG9uX3ByaWNlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAADCQAAZgAAAAIFAAAABXByaWNlCAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABAgAAAC5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R4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWEFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAVvd25lcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFiBQAAAAckbWF0Y2gwBgeRWOaH", "chainId": 84, "height": 723138, "spentComplexity": 0 } View: original | compacted Prev: 2RZV2V7Zt7uuBL5AMmoqSNqfbhy8Bdqjc8EN2iRsRxfb Next: 5R3UgoPr5yrLBYn9tkS1vbxHtVXno8g8tkVtKs8Y4mKB Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'EEGsMXJbL3i6pER7gfBpcw87Km3h2gz6qiqhqPXbdob1'
55
66 @Callable(b)
77 func purchare () = {
88 let c = extract(b.payment)
99 if (isDefined(c.assetId))
1010 then throw("you can use WAVES only at the moment")
1111 else {
1212 let d = toBase58String(b.caller.bytes)
1313 let e = {
1414 let f = getInteger(this, "item_A_coupon_price")
1515 if ($isInstanceOf(f, "Int"))
1616 then {
1717 let g = f
1818 g
1919 }
2020 else 0
2121 }
2222 if ((e > c.amount))
2323 then throw("purchare amount cannot be less that item price")
2424 else if ((c.amount > e))
2525 then throw("purchare amount cannot be higher that item price")
2626 else WriteSet([DataEntry(("status:purchare_item_A_customer_" + d), "confirmed"), DataEntry(("price:purchare_item_A_customer" + d), e)])
2727 }
2828 }
2929
3030
3131
3232 @Callable(b)
3333 func deposit () = {
3434 let c = extract(b.payment)
3535 if (isDefined(c.assetId))
3636 then throw("you can use WAVES only at the moment")
3737 else {
3838 let h = toBase58String(b.caller.bytes)
3939 let i = {
4040 let f = getInteger(this, ("wl_sts" + h))
4141 if ($isInstanceOf(f, "Int"))
4242 then {
4343 let g = f
4444 g
4545 }
4646 else 0
4747 }
4848 let j = {
4949 let f = getString(this, ("wls_sts" + h))
5050 if ($isInstanceOf(f, "String"))
5151 then {
5252 let g = f
5353 g
5454 }
5555 else throw("user has not waitlisted")
5656 }
5757 let k = (i + c.amount)
5858 WriteSet([DataEntry(h, k)])
5959 }
6060 }
6161
6262
6363
6464 @Callable(b)
6565 func withdraw (l) = {
6666 let h = toBase58String(b.caller.bytes)
6767 let i = {
6868 let f = getInteger(this, h)
6969 if ($isInstanceOf(f, "Int"))
7070 then {
7171 let g = f
7272 g
7373 }
7474 else 0
7575 }
7676 let k = (i - l)
7777 if ((0 > l))
7878 then throw("can't withdraw negative amount")
7979 else if ((0 > k))
8080 then throw("not enough balance")
8181 else ScriptResult(WriteSet([DataEntry(h, k)]), TransferSet([ScriptTransfer(b.caller, l, unit)]))
8282 }
8383
8484
8585 @Verifier(m)
8686 func n () = {
8787 let f = m
8888 if ($isInstanceOf(f, "SetScriptTransaction"))
8989 then {
9090 let g = f
9191 sigVerify(m.bodyBytes, m.proofs[0], a)
9292 }
9393 else if ($isInstanceOf(f, "DataTransaction"))
9494 then {
9595 let o = f
9696 true
9797 }
9898 else false
9999 }
100100

github/deemru/w8io/169f3d6 
32.59 ms