tx · 8GCZ6CNGoSZFTsa3PcX1VHwWX5LfN7GCiB997W2Wmqus
3Mt5yUtJ2AK925mL7tJ86dqxh1zqsAEeepm: -0.01000000 Waves
2021.12.02 11:47 [1816438] smart account 3Mt5yUtJ2AK925mL7tJ86dqxh1zqsAEeepm > SELF 0.00000000 Waves
{
"type": 13,
"id": "8GCZ6CNGoSZFTsa3PcX1VHwWX5LfN7GCiB997W2Wmqus",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1638434867292,
"version": 2,
"chainId": 84,
"sender": "3Mt5yUtJ2AK925mL7tJ86dqxh1zqsAEeepm",
"senderPublicKey": "C5iVZCYkopz2U9o64upfCmpgSjrtpzFV73rvbnprfen1",
"proofs": [
"4t9yZrXNp8jfcwsKWiyFoBn65UJ5y9UMzdKQyuLUjpG8UXspGjUQXxTCXW2jyGkW8wSog5uVGs3B6Eo7xQPrWaNB"
],
"script": "base64:AAIEAAAAAAAAAJwIAhIAEgMKAQEaDQoCYTESB2dldFVzZXIaFgoCYTISEGdldEN1cnJlbnRBbW91bnQaCgoCYTMSBHVzZXIaDQoCYTQSByRtYXRjaDAaDQoCYTUSB3BheW1lbnQaEwoCYTYSDWN1cnJlbnRBbW91bnQaDwoCYTcSCW5ld0Ftb3VudBoMCgJhOBIGYW1vdW50GgwKAmE5EgZ2ZXJpZnkAAAACAQAAAAJhMQAAAAEAAAABaQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAQAAAAJhMgAAAAEAAAACYTMEAAAAAmE0CQAEGgAAAAIFAAAABHRoaXMFAAAAAmEzAwkAAAEAAAACBQAAAAJhNAIAAAADSW50BAAAAAF0BQAAAAJhNAUAAAABdAAAAAAAAAAAAAAAAAIAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAAmEzCQEAAAACYTEAAAABBQAAAAFpBAAAAAJhNQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAACYTYJAQAAAAJhMgAAAAEFAAAAAmEzBAAAAAJhNwkAAGQAAAACBQAAAAJhNggFAAAAAmE1AAAABmFtb3VudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAACYTUAAAAHYXNzZXRJZAkAAAIAAAABAgAAAB93b3JrcyBvbmx5IHdpdGggV0FWRVMgdG9rZW4gbm93CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAJhMwUAAAACYTcFAAAAA25pbAAAAAFpAQAAAAh3aXRoZHJhdwAAAAEAAAACYTgEAAAAAmEzCQEAAAACYTEAAAABBQAAAAFpBAAAAAJhNgkBAAAAAmEyAAAAAQUAAAACYTMEAAAAAmE3CQAAZQAAAAIFAAAAAmE2BQAAAAJhOAMJAABmAAAAAgAAAAAAAAAAAAUAAAACYTgJAAACAAAAAQIAAAAJaWRpIG5hZmlnAwkAAGYAAAACAAAAAAAAAAAABQAAAAJhNwkAAAIAAAABAgAAAAlpZGkgbmFmaWcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAAmEzBQAAAAJhNwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAAmE4BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAJhOQAAAAAHjexeVA==",
"height": 1816438,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func a (b) = toBase58String(b.caller.bytes) |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | func c (d) = { |
---|
| 8 | + | let e = getInteger(this, d) |
---|
| 9 | + | if ($isInstanceOf(e, "Int")) |
---|
| 10 | + | then { |
---|
| 11 | + | let f = e |
---|
| 12 | + | f |
---|
| 13 | + | } |
---|
| 14 | + | else 0 |
---|
| 15 | + | } |
---|
| 16 | + | |
---|
| 17 | + | |
---|
| 18 | + | @Callable(b) |
---|
| 19 | + | func deposit () = { |
---|
| 20 | + | let d = a(b) |
---|
| 21 | + | let g = b.payments[0] |
---|
| 22 | + | let h = c(d) |
---|
| 23 | + | let i = (h + g.amount) |
---|
| 24 | + | if (isDefined(g.assetId)) |
---|
| 25 | + | then throw("works only with WAVES token now") |
---|
| 26 | + | else [IntegerEntry(d, i)] |
---|
| 27 | + | } |
---|
| 28 | + | |
---|
| 29 | + | |
---|
| 30 | + | |
---|
| 31 | + | @Callable(b) |
---|
| 32 | + | func withdraw (j) = { |
---|
| 33 | + | let d = a(b) |
---|
| 34 | + | let h = c(d) |
---|
| 35 | + | let i = (h - j) |
---|
| 36 | + | if ((0 > j)) |
---|
| 37 | + | then throw("idi nafig") |
---|
| 38 | + | else if ((0 > i)) |
---|
| 39 | + | then throw("idi nafig") |
---|
| 40 | + | else [IntegerEntry(d, i), ScriptTransfer(b.caller, j, unit)] |
---|
| 41 | + | } |
---|
| 42 | + | |
---|
| 43 | + | |
---|
| 44 | + | @Verifier(k) |
---|
| 45 | + | func l () = false |
---|
| 46 | + | |
---|