tx · 73GEufqkgET8UiCV3ih7eny1za32Q6iZbVZNve4yKe5T

3MpniGh4Ab64nzX6AXtoL5tzeC5EwSyHuaq:  -0.01400000 Waves

2022.01.11 01:30 [1873448] smart account 3MpniGh4Ab64nzX6AXtoL5tzeC5EwSyHuaq > SELF 0.00000000 Waves

{ "type": 13, "id": "73GEufqkgET8UiCV3ih7eny1za32Q6iZbVZNve4yKe5T", "fee": 1400000, "feeAssetId": null, "timestamp": 1641853893731, "version": 2, "chainId": 84, "sender": "3MpniGh4Ab64nzX6AXtoL5tzeC5EwSyHuaq", "senderPublicKey": "HxF3FdYr3sD3ju9Y1wL4d5kmRtKJGhgSSYQkCyo78xGn", "proofs": [ "2DfkdcNsYaHG8cAC5Xs8QfVCgSVtvNMudiHwDJQVBCrJEoLbqzALFdmAY9CVScScjHSHgTjcGEpgzJxCrkS9P2PJ" ], "script": "base64:AAIFAAAAAAAAAIoIAhIAEgASAwoBCBoSCgFhEg1hY2NvdW50UHViS2V5GgYKAWISAWkaDAoBYxIHcGF5bWVudBoRCgFkEgxjdXN0b21lckFkZHIaCgoBZRIFcHJpY2UaDAoBZhIHJG1hdGNoMBoGCgFnEgF0GggKAWgSA2tleRoHCgFpEgJ0eBoLCgFqEgZ2ZXJpZnkAAAABAAAAAAFhAQAAACD74c8fxHITmic4XJURczmbArRsu8kqaItHqXO3wdtFBwAAAAMAAAABYgEAAAAIcHVyY2hhc2UAAAAABAAAAAFjCQABkQAAAAIIBQAAAAFiAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAFjAAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAYT25seSBzaG91bGQgcGF5IGluIHdhdmVzBAAAAAFkCQACWAAAAAEICAUAAAABYgAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAAWUEAAAAAWYJAAQaAAAAAgUAAAAEdGhpcwIAAAATaXRlbV9BX2NvdXBvbl9wcmljZQMJAAABAAAAAgUAAAABZgIA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AggFAAAAAWkAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAABaQAAAA9zZW5kZXJQdWJsaWNLZXnVIn2J", "height": 1873448, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EGSRFdtxKcD6Pig3ndoRPdzBgdjM65HSXG9suw8XzWRr Next: FBqnYqzcxC2mDudFec3gJsqkbRatDSPat3S3EjNoDiTz Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'HxF3FdYr3sD3ju9Y1wL4d5kmRtKJGhgSSYQkCyo78xGn'
55
66 @Callable(b)
77 func purchase () = {
88 let c = b.payments[0]
99 if (isDefined(c.assetId))
1010 then throw("Only should pay in waves")
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 ((c.amount > e))
2323 then throw(("payment cant be higher than price" + toString(e)))
2424 else if ((e > c.amount))
2525 then throw(("payment cant be less than price: " + toString(e)))
2626 else [StringEntry(("status:purchase_item_A_customer_" + d), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + d), e)]
2727 }
2828 }
2929
3030
3131
3232 @Callable(b)
3333 func setPrices () = if ((b.callerPublicKey == a))
3434 then [IntegerEntry("item_A_coupon_price", 30000000)]
3535 else throw("Only owner can set prices")
3636
3737
3838
3939 @Callable(b)
4040 func deleteEntry (h) = if ((b.callerPublicKey == a))
4141 then [DeleteEntry(h)]
4242 else throw("Only owner can delete entries")
4343
4444
4545 @Verifier(i)
4646 func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
4747

github/deemru/w8io/169f3d6 
37.91 ms