tx · 8mTdgGVF5YZPpLfKf2SLfcKHuUqWA8dF49xReNdevnCb

3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy:  -0.01400000 Waves

2021.05.25 13:05 [1541044] smart account 3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy > SELF 0.00000000 Waves

{ "type": 13, "id": "8mTdgGVF5YZPpLfKf2SLfcKHuUqWA8dF49xReNdevnCb", "fee": 1400000, "feeAssetId": null, "timestamp": 1621937150440, "version": 2, "chainId": 84, "sender": "3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy", "senderPublicKey": "9BAE85H9Tsey8NGdpT5HxdVYHBCmY1prGiG1TSQJxnZe", "proofs": [ "6D1htjsBAkThhRd4N3hFKaLjiwcGkeG5SVuRavJFh442DZui3UNa1bfHSvJmFTysq3tejBKXVSod1hNT4TPfYBQ" ], "script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAHAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAZudW1iZXIEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAABm51bWJlcgAAAAAETk9ORQIAAAAEbm9uZQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAGc3RyaW5nBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAAZzdHJpbmcBAAAAD2dldEtleVVzZXJFbWFpbAAAAAEAAAAEdXNlcgkAASwAAAACCQABLAAAAAICAAAABXVzZXJfBQAAAAR1c2VyAgAAAAZfZW1haWwBAAAAEWdldFZhbHVlVXNlckVtYWlsAAAAAQ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5AAAAAgUAAAALZEFwcEFzc2V0SWQJAAJYAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmdeJZn", "height": 1541044, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DLBmJXK24o4Cp8tKu8vFgLT7g6mJH2kGtmZJLZcVkZhd Next: 27P81D7iWNJLoR5DEtwxxrpndoGZYfHHLbjbjHFLGRW1 Diff:
OldNewDifferences
4040 @Callable(i)
4141 func signUp (email) = {
4242 let currentUserAddress = toBase58String(i.caller.bytes)
43- let currentUserEmail = getKeyUserEmail(currentUserAddress)
43+ let currentUserEmail = getValueUserEmail(currentUserAddress)
4444 if ((currentUserEmail != NONE))
4545 then throw("user already exists")
4646 else [StringEntry(getKeyUserEmail(currentUserAddress), email)]
5050
5151 @Callable(i)
5252 func issueToken (quantity) = {
53- let dAppAssetId = getKeyDAppAssetId()
53+ let dAppAssetId = getValueDAppAssetId()
5454 if ((dAppAssetId != NONE))
5555 then throw("token already been issued")
5656 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getNumberByKey (key) = {
55 let number = match getInteger(this, key) {
66 case a: Int =>
77 a
88 case _ =>
99 0
1010 }
1111 number
1212 }
1313
1414
1515 let NONE = "none"
1616
1717 func getStringByKey (key) = {
1818 let string = match getString(this, key) {
1919 case a: String =>
2020 a
2121 case _ =>
2222 NONE
2323 }
2424 string
2525 }
2626
2727
2828 func getKeyUserEmail (user) = (("user_" + user) + "_email")
2929
3030
3131 func getValueUserEmail (user) = getStringByKey(getKeyUserEmail(user))
3232
3333
3434 func getKeyDAppAssetId () = "dApp_assetId"
3535
3636
3737 func getValueDAppAssetId () = getStringByKey(getKeyDAppAssetId())
3838
3939
4040 @Callable(i)
4141 func signUp (email) = {
4242 let currentUserAddress = toBase58String(i.caller.bytes)
43- let currentUserEmail = getKeyUserEmail(currentUserAddress)
43+ let currentUserEmail = getValueUserEmail(currentUserAddress)
4444 if ((currentUserEmail != NONE))
4545 then throw("user already exists")
4646 else [StringEntry(getKeyUserEmail(currentUserAddress), email)]
4747 }
4848
4949
5050
5151 @Callable(i)
5252 func issueToken (quantity) = {
53- let dAppAssetId = getKeyDAppAssetId()
53+ let dAppAssetId = getValueDAppAssetId()
5454 if ((dAppAssetId != NONE))
5555 then throw("token already been issued")
5656 else {
5757 let asset = Issue("NYAN-25", "NYAN-25 token", quantity, 0, true)
5858 let assetId = calculateAssetId(asset)
5959 [StringEntry(dAppAssetId, toBase58String(assetId))]
6060 }
6161 }
6262
6363
6464 @Verifier(tx)
6565 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6666

github/deemru/w8io/169f3d6 
35.99 ms