tx · 7aXjZDX5aq76VQUNEE5HhnMv33dj2DEMjw5xs8nNoVZe
3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe: -0.01400000 Waves
2021.02.19 01:54 [1404200] smart account 3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe > SELF 0.00000000 Waves
{
"type": 13,
"id": "7aXjZDX5aq76VQUNEE5HhnMv33dj2DEMjw5xs8nNoVZe",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1613688881040,
"version": 2,
"chainId": 84,
"sender": "3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe",
"senderPublicKey": "8QFH4kvTaVWhAPErMqKKRzRhYtv7egJFn1UpMdj8pMf3",
"proofs": [
"5KYgjq3k2TZyCe6A3mzU2LjzSobVbS53LigzVrhp1XDGuHqRWR6x5HGyLT2zujUtC1fLkjxtcx3hduHBfeM8MSF3"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAANUmVnaXN0ZXJFbWFpbAAAAAEAAAAJWW91ckVtYWlsBAAAAAdhc3NldGlkAQAAACC6vVI7UxTCnVRWGLR3ztyYkk4CUUFVVlvuen2G1r3cOwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQgcGF5bWVudCBpcyByZXF1aXJlZAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAHYXNzZXRpZAkAAAIAAAABAgAAAD9Zb3UgbmVlZCB0byBjaG9vc2UgZXhhY3QgMC41IFVTRFQgdG8gU2lnbiBUeG4gbm90IG90aGVyIGFzc2V0cy4EAAAACWZpbmRlbWFpbAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMDCQAAAAAAAAIFAAAACWZpbmRlbWFpbAUAAAAJWW91ckVtYWlsBgkAAAAAAAACBQAAAAlmaW5kZW1haWwCAAAAAAkAAAIAAAABAgAAABlVc2VyIEFscmVhZHkgUmVnaXN0ZXJ0ZWQuCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACVlvdXJFbWFpbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAClN0YXR1c19PZl8FAAAACVlvdXJFbWFpbAIAAAAKVW52ZXJpZmllZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5OpSn6Q==",
"height": 1404200,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9mPKi4dgF6X9LdjW1EVu44f8F4cejJD7bWqapjsm1qUZ
Next: fLzcmaGvuKSv9R7EgEVAcQCnUSS5gZVdV2z6StWiX2Q
Diff:
Old | New | | Differences |
---|
13 | 13 | | if ((pmt.assetId != assetid)) |
---|
14 | 14 | | then throw("You need to choose exact 0.5 USDT to Sign Txn not other assets.") |
---|
15 | 15 | | else { |
---|
16 | | - | let currentAmount = match getString(this, currentKey) { |
---|
17 | | - | case a: String => |
---|
18 | | - | a |
---|
19 | | - | case _ => |
---|
20 | | - | "NONE" |
---|
21 | | - | } |
---|
22 | 16 | | let findemail = getStringValue(this, currentKey) |
---|
23 | | - | if ((findemail == YourEmail)) |
---|
| 17 | + | if (if ((findemail == YourEmail)) |
---|
| 18 | + | then true |
---|
| 19 | + | else (findemail == "")) |
---|
24 | 20 | | then throw("User Already Registerted.") |
---|
25 | 21 | | else [StringEntry(currentKey, YourEmail), StringEntry(("Status_Of_" + YourEmail), "Unverified")] |
---|
26 | 22 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func RegisterEmail (YourEmail) = { |
---|
8 | 8 | | let assetid = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL' |
---|
9 | 9 | | let currentKey = toBase58String(i.caller.bytes) |
---|
10 | 10 | | let pmt = if ((size(i.payments) == 1)) |
---|
11 | 11 | | then i.payments[0] |
---|
12 | 12 | | else throw("Attached payment is required") |
---|
13 | 13 | | if ((pmt.assetId != assetid)) |
---|
14 | 14 | | then throw("You need to choose exact 0.5 USDT to Sign Txn not other assets.") |
---|
15 | 15 | | else { |
---|
16 | | - | let currentAmount = match getString(this, currentKey) { |
---|
17 | | - | case a: String => |
---|
18 | | - | a |
---|
19 | | - | case _ => |
---|
20 | | - | "NONE" |
---|
21 | | - | } |
---|
22 | 16 | | let findemail = getStringValue(this, currentKey) |
---|
23 | | - | if ((findemail == YourEmail)) |
---|
| 17 | + | if (if ((findemail == YourEmail)) |
---|
| 18 | + | then true |
---|
| 19 | + | else (findemail == "")) |
---|
24 | 20 | | then throw("User Already Registerted.") |
---|
25 | 21 | | else [StringEntry(currentKey, YourEmail), StringEntry(("Status_Of_" + YourEmail), "Unverified")] |
---|
26 | 22 | | } |
---|
27 | 23 | | } |
---|
28 | 24 | | |
---|
29 | 25 | | |
---|
30 | 26 | | @Verifier(tx) |
---|
31 | 27 | | func verify () = match tx { |
---|
32 | 28 | | case _ => |
---|
33 | 29 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
34 | 30 | | } |
---|
35 | 31 | | |
---|