tx · Rr76BKk8fxNhFpcuUnYVQFnQWvaxffZg7sv4H8U9ofb

3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe:  -0.01400000 Waves

2021.02.19 01:36 [1404182] smart account 3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe > SELF 0.00000000 Waves

{ "type": 13, "id": "Rr76BKk8fxNhFpcuUnYVQFnQWvaxffZg7sv4H8U9ofb", "fee": 1400000, "feeAssetId": null, "timestamp": 1613687832451, "version": 2, "chainId": 84, "sender": "3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe", "senderPublicKey": "8QFH4kvTaVWhAPErMqKKRzRhYtv7egJFn1UpMdj8pMf3", "proofs": [ "2Xm7hnqcg6sbJAEuQGiJeQnhjPoMmyZAycFeU373TeFLtKMMsAYQ8WnkezvYMxCFQ93DKNKd1MgXdn3VxCXedx2X" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAANUmVnaXN0ZXJFbWFpbAAAAAEAAAAJWW91ckVtYWlsBAAAAAdhc3NldGlkAQAAACC6vVI7UxTCnVRWGLR3ztyYkk4CUUFVVlvuen2G1r3cOwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQgcGF5bWVudCBpcyByZXF1aXJlZAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAHYXNzZXRpZAkAAAIAAAABAgAAAD9Zb3UgbmVlZCB0byBjaG9vc2UgZXhhY3QgMC41IFVTRFQgdG8gU2lnbiBUeG4gbm90IG90aGVyIGFzc2V0cy4EAAAACWZpbmRlbWFpbAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAAAAAAAAgUAAAAJZmluZGVtYWlsBQAAAAlZb3VyRW1haWwJAAACAAAAAQIAAAAZVXNlciBBbHJlYWR5IFJlZ2lzdGVydGVkLgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAlZb3VyRW1haWwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApTdGF0dXNfT2ZfBQAAAAlZb3VyRW1haWwCAAAAClVudmVyaWZpZWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecDjaV4=", "height": 1404182, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BfR56VpwnVkgVfNDE6qLeZrcLcoWuw8kxZeHkkWLKUrQ Next: 9mPKi4dgF6X9LdjW1EVu44f8F4cejJD7bWqapjsm1qUZ Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func call () = [DeleteEntry("[email protected]"), DeleteEntry("[email protected]_Status")]
7+func RegisterEmail (YourEmail) = {
8+ let assetid = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL'
9+ let currentKey = toBase58String(i.caller.bytes)
10+ let pmt = if ((size(i.payments) == 1))
11+ then i.payments[0]
12+ else throw("Attached payment is required")
13+ if ((pmt.assetId != assetid))
14+ then throw("You need to choose exact 0.5 USDT to Sign Txn not other assets.")
15+ else {
16+ let findemail = getStringValue(this, currentKey)
17+ if ((findemail == YourEmail))
18+ then throw("User Already Registerted.")
19+ else [StringEntry(currentKey, YourEmail), StringEntry(("Status_Of_" + YourEmail), "Unverified")]
20+ }
21+ }
822
923
1024 @Verifier(tx)
11-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
25+func verify () = match tx {
26+ case _ =>
27+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
28+}
1229
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func call () = [DeleteEntry("[email protected]"), DeleteEntry("[email protected]_Status")]
7+func RegisterEmail (YourEmail) = {
8+ let assetid = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL'
9+ let currentKey = toBase58String(i.caller.bytes)
10+ let pmt = if ((size(i.payments) == 1))
11+ then i.payments[0]
12+ else throw("Attached payment is required")
13+ if ((pmt.assetId != assetid))
14+ then throw("You need to choose exact 0.5 USDT to Sign Txn not other assets.")
15+ else {
16+ let findemail = getStringValue(this, currentKey)
17+ if ((findemail == YourEmail))
18+ then throw("User Already Registerted.")
19+ else [StringEntry(currentKey, YourEmail), StringEntry(("Status_Of_" + YourEmail), "Unverified")]
20+ }
21+ }
822
923
1024 @Verifier(tx)
11-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
25+func verify () = match tx {
26+ case _ =>
27+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
28+}
1229

github/deemru/w8io/026f985 
22.68 ms