tx · 4wR4ZhNEV7uf7zU9L6UBB3aZ2cdmJjxTRb7R6BHjhjJM
3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX: -0.01000000 Waves
2020.09.02 10:52 [1159498] smart account 3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX > SELF 0.00000000 Waves
{
"type": 13,
"id": "4wR4ZhNEV7uf7zU9L6UBB3aZ2cdmJjxTRb7R6BHjhjJM",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1599033145827,
"version": 2,
"chainId": 84,
"sender": "3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX",
"senderPublicKey": "BLYPM7pr6zCdxj9zzANneoGVcDEwBnQApCEnR3BkNm68",
"proofs": [
"5hoRcRYSigcG6oem9srmJ1tehkKfoLmk87DcJGreoWMyeVAW4FH6ugkvVUecAxAE89zgQKmxeTgwWzoxdd96UaSv"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAGZmF1Y2V0AAAAAAQAAAANaXNLbm93bkNhbGxlcgQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAABGhpc3QFAAAAByRtYXRjaDAFAAAABGhpc3QHAwkBAAAAASEAAAABBQAAAA1pc0tub3duQ2FsbGVyCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAABfXhAAUAAAAEdW5pdAUAAAADbmlsCQAAAgAAAAECAAAAFUNhbiBiZSB1c2VkIG9ubHkgb25jZQAAAADSl0E8",
"height": 1159498,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 47QxGynQoF77KgZhB95gGWSdRsu5UyZbWUd3zqQWtvg4
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func faucet () = { |
---|
| 8 | + | let isKnownCaller = match getBoolean(this, toBase58String(i.caller.bytes)) { |
---|
| 9 | + | case hist: Boolean => |
---|
| 10 | + | hist |
---|
| 11 | + | case _ => |
---|
| 12 | + | false |
---|
| 13 | + | } |
---|
| 14 | + | if (!(isKnownCaller)) |
---|
| 15 | + | then [BooleanEntry(toBase58String(i.caller.bytes), true), ScriptTransfer(i.caller, 100000000, unit)] |
---|
| 16 | + | else throw("Can be used only once") |
---|
| 17 | + | } |
---|
| 18 | + | |
---|
| 19 | + | |
---|