tx · EhEZhawLYAdpgW3YVGQadGGeYvZ97ZJ7tGy1h9fgbtue
3N9yCRmNsLK2aPStjLBne3EUiPSKvVHYgKk: -0.01000000 Waves
2020.06.05 19:10 [1030178] smart account 3N9yCRmNsLK2aPStjLBne3EUiPSKvVHYgKk > SELF 0.00000000 Waves
{
"type": 13,
"id": "EhEZhawLYAdpgW3YVGQadGGeYvZ97ZJ7tGy1h9fgbtue",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1591373443780,
"version": 1,
"sender": "3N9yCRmNsLK2aPStjLBne3EUiPSKvVHYgKk",
"senderPublicKey": "7nLAwoiRA4fWF4VHd6gRsbwF2UFFmRADXHqRcgy3h27w",
"proofs": [
"476SAqpZY9BNZZgqw9JU3eyoDw2a9S2vvNeiyd8pKNVFuTWQz5otmicRybXredaVnPGHTSEBGQuEeNzDGwHjZBVi"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAGZmF1Y2V0AAAAAAQAAAANaXNLbm93bkNhbGxlcgQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAABGhpc3QFAAAAByRtYXRjaDAFAAAABGhpc3QHAwkBAAAAASEAAAABBQAAAA1pc0tub3duQ2FsbGVyCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAABfXhAAUAAAAEdW5pdAUAAAADbmlsCQEAAAAIV3JpdGVTZXQAAAABBQAAAANuaWwAAAAA0/kf1Q==",
"chainId": 84,
"height": 1030178,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: Cru8iLFZfjVH2HCoyqTMXJD1Jf8vY77mPE6LBR5CVGzZ
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 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 ScriptResult(WriteSet([DataEntry(toBase58String(i.caller.bytes), true)]), TransferSet([ScriptTransfer(i.caller, 100000000, unit)])) |
---|
| 16 | + | else WriteSet(nil) |
---|
| 17 | + | } |
---|
| 18 | + | |
---|
| 19 | + | |
---|