tx · 38qHNXoouxMWKRhGb2yZgPJLtQaCUfaANTwqWakzwAdX 3N29FGLqCbdBKeP8PzVwL4rYb8sJHR41VEN: -0.01000000 Waves 2019.07.19 13:42 [592653] smart account 3N29FGLqCbdBKeP8PzVwL4rYb8sJHR41VEN > SELF 0.00000000 Waves
{ "type": 13, "id": "38qHNXoouxMWKRhGb2yZgPJLtQaCUfaANTwqWakzwAdX", "fee": 1000000, "feeAssetId": null, "timestamp": 1563532984903, "version": 1, "sender": "3N29FGLqCbdBKeP8PzVwL4rYb8sJHR41VEN", "senderPublicKey": "EeePgs29FQMEqHiMQtnx1UFRLRiQ3MHnrpTe8yBPmTBn", "proofs": [ "53gKVBz7MPU2VvwS8yvm18qD5h1ohdTVpAt5N3RePfEmobaW9ttpcicWy4ZoTxGWXLgFmMkqpnxMA7SUBndr2KzT" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA9wcml6ZVBlcmNlbnRhZ2UAAAAAAAAAAFAAAAAADWZlZVBlcmNlbnRhZ2UAAAAAAAAAABQAAAAACmZlZUFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVT8lSg/slqiz5yHkNQMnNutta5mGGGWABwAAAACAAAACmludm9jYXRpb24BAAAAA2JldAAAAAEAAAAGb3B0aW9uBAAAAAt0cmFuc2FjdGlvbgkBAAAAB2V4dHJhY3QAAAABCAUAAAAKaW52b2NhdGlvbgAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAt0cmFuc2FjdGlvbgAAAAdhc3NldElkCQAAAgAAAAECAAAAGENhbiB3b3JrIG9ubHkgd2l0aCBXQVZFUwQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAACmludm9jYXRpb24AAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAlhbW91bnRLZXkJAAEsAAAAAgUAAAAHYWRkcmVzcwIAAAAHLmFtb3VudAQAAAAJb3B0aW9uS2V5CQABLAAAAAIFAAAAB2FkZHJlc3MCAAA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CAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5bfGdhg==", "chainId": 84, "height": 592653, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = 80 | |
5 | + | ||
6 | + | let b = 20 | |
7 | + | ||
8 | + | let c = Address(base58'3NCwcjtR3UgUG2cHYyzt6UxcmhCqZyzSdCP') | |
9 | + | ||
10 | + | @Callable(d) | |
11 | + | func bet (e) = { | |
12 | + | let f = extract(d.payment) | |
13 | + | if (isDefined(f.assetId)) | |
14 | + | then throw("Can work only with WAVES") | |
15 | + | else { | |
16 | + | let g = toBase58String(d.caller.bytes) | |
17 | + | let h = (g + ".amount") | |
18 | + | let i = (g + ".option") | |
19 | + | let j = { | |
20 | + | let k = getInteger(this, h) | |
21 | + | if ($isInstanceOf(k, "Int")) | |
22 | + | then { | |
23 | + | let l = k | |
24 | + | l | |
25 | + | } | |
26 | + | else 0 | |
27 | + | } | |
28 | + | let m = (j + f.amount) | |
29 | + | WriteSet([DataEntry(h, m), DataEntry(i, e)]) | |
30 | + | } | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | @Callable(d) | |
36 | + | func withdraw () = { | |
37 | + | let j = wavesBalance(this) | |
38 | + | let n = ((j / 100) * a) | |
39 | + | let o = ((j / 100) * b) | |
40 | + | TransferSet([ScriptTransfer(d.caller, n, unit), ScriptTransfer(c, o, unit)]) | |
41 | + | } | |
42 | + | ||
43 | + | ||
44 | + | @Verifier(p) | |
45 | + | func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) | |
46 | + |
github/deemru/w8io/169f3d6 18.10 ms ◑