tx · Fh7HFnnkMBr1Hr7q4PXjAqwH8K4rohkmWZmJikaFHufv
3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe: -0.01400000 Waves
2021.02.18 22:55 [1404028] smart account 3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe > SELF 0.00000000 Waves
{
"type": 13,
"id": "Fh7HFnnkMBr1Hr7q4PXjAqwH8K4rohkmWZmJikaFHufv",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1613678089114,
"version": 2,
"chainId": 84,
"sender": "3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe",
"senderPublicKey": "8QFH4kvTaVWhAPErMqKKRzRhYtv7egJFn1UpMdj8pMf3",
"proofs": [
"5vwTw77Aswfh4fqFUMacM3XPyev9fkQiHTCynnhsFwMWEEV6URhJ2Xwk36e3oK4SytB4SyKBwAeQjHVQ57LU2rqD"
],
"script": "base64:AAIEAAAAAAAAAAgIAhIECgIIAQAAAAAAAAABAAAAAWkBAAAADVJlZ2lzdGVyRW1haWwAAAACAAAACVlvdXJFbWFpbAAAAAZhbW91bnQEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAHYXNzZXRpZAEAAAAgHpQHE1J2oSWV/chhqIJfEH/fOk8pu/yaRj9a/TZPn5EDAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAdhc3NldGlkCQEAAAACIT0AAAACBQAAAAZhbW91bnQJAABpAAAAAgAAAAAAAAAAAQAAAAAAAAAAAgcJAAACAAAAAQIAAAA5WW91IG5lZWQgdG8gY2hvb3NlIGV4YWN0IDAuNSBVU0RUIHRvIFNpZ24gVHhuIG5vdCBvdGhlcnMuBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAACVlvdXJFbWFpbAUAAAAKY3VycmVudEtleQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAACVlvdXJFbWFpbAIAAAAHX1N0YXR1cwIAAAAKVW52ZXJpZmllZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5C/X7DA==",
"height": 1404028,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5o5bspbZqtsUpU6t6P3Lfb5qBGBGHUsPWzJEDe6xfCWM
Next: 24ynjs2tb1jNfmHeLQ4wLWyZGDMsTocyz3oHFLdpjBmK
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func RegisterEmail (YourEmail,amount) = { |
---|
| 8 | + | let pmt = value(i.payments[0]) |
---|
| 9 | + | let assetid = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ' |
---|
| 10 | + | if (if ((pmt.assetId != assetid)) |
---|
| 11 | + | then (amount != (1 / 2)) |
---|
| 12 | + | else false) |
---|
| 13 | + | then throw("You need to choose exact 0.5 USDT to Sign Txn not others.") |
---|
| 14 | + | else { |
---|
| 15 | + | let currentKey = toBase58String(i.caller.bytes) |
---|
| 16 | + | let currentAmount = match getString(this, currentKey) { |
---|
| 17 | + | case a: String => |
---|
| 18 | + | a |
---|
| 19 | + | case _ => |
---|
| 20 | + | "NONE" |
---|
| 21 | + | } |
---|
| 22 | + | [StringEntry(YourEmail, currentKey), StringEntry((YourEmail + "_Status"), "Unverified")] |
---|
| 23 | + | } |
---|
| 24 | + | } |
---|
| 25 | + | |
---|
| 26 | + | |
---|
| 27 | + | @Verifier(tx) |
---|
| 28 | + | func verify () = match tx { |
---|
| 29 | + | case _ => |
---|
| 30 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 31 | + | } |
---|
6 | 32 | | |
---|