tx · CFjykDMG8FCTwWJmxrjZ7fysznqBTGFoi9Ma1K6ktVYs
3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd: -0.10010000 Waves
2021.12.03 00:37 [1817205] smart account 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd > SELF 0.00000000 Waves
{
"type": 13,
"id": "CFjykDMG8FCTwWJmxrjZ7fysznqBTGFoi9Ma1K6ktVYs",
"fee": 10010000,
"feeAssetId": null,
"timestamp": 1638481091239,
"version": 2,
"chainId": 84,
"sender": "3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd",
"senderPublicKey": "7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi",
"proofs": [
"3pEtN2uP99zM7g12gPwah4UztjuGaQkD9naJFGLvMhEchnnDWvbaUW1Hqpy16YGjjPcAAuPwATnftVFNUKeurSGU"
],
"script": "base64:AAIFAAAAAAAAAU8IAhIDCgEIEgMKAQgaDAoCYTESBmNhc2lubxoLCgJhMhIFV0FWRVMaDAoCYTMSBm1heEJldBoPCgJhNBIJc2VwYXJhdG9yGhAKAmE1EgpnZXRQYXltZW50GgkKAmE2EgNwbXQaFQoCYTcSD2dldEFtb3VudE9yWmVybxoKCgJhOBIEdGhpcxoJCgJhORIDa2V5Gg0KAmIxEgckbWF0Y2gwGgsKAmIyEgVyb3VuZBoTCgJiMxINY2FsbGVyQWRkcmVzcxoQCgJiNBIKY3VyU3VtQmV0cxoSCgJiNRIMY3VycmVudERyYXdzGhMKAmI2Eg1jdXJyZW50UGxheWVyGhAKAmI3Egppbml0aWFsQmV0GhMKAmI4Eg1hdmFpbGFibGVQcm9wGhAKAmI5EgpuZXdTdW1CZXRzGgkKAmMxEgNhYWEaDAoCYzISBnZlcmlmeQAAAAYAAAAAAmExAgAAACMzTXRhQ0w0djFialRhYlVxczdvVTRvZlM4ZmJhaTM0V00xaQAAAAACYTIAAAAAADuaygAAAAAAAmEzCQAAaAAAAAIAAAAAAAAAA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AAAmIyAgAAAAtfaW5pdGlhbEJldAMJAAABAAAAAgUAAAACYjECAAAAA0ludAQAAAABYQUAAAACYjEFAAAAAWEFAAAAAXAEAAAAAmI4CQABLAAAAAIFAAAAAmIyAgAAAApfYXZhaWxhYmxlBAAAAAJiOQkAAGQAAAACBQAAAAJiNAUAAAABcAQAAAACYzEJAAQbAAAAAgUAAAACYTgJAAEsAAAAAgUAAAACYjICAAAABV9zdG9wAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAAmMxCQAAAgAAAAECAAAAHFRoaXMgcm91bmQgaXMgYWxyZWFkeSBwbGF5ZWQJAAACAAAAAQIAAAAUYmV0MiBmaW5pc2hlZCBhbGwgb2sAAAABaQEAAAAJd2l0aGRyYXcyAAAAAQAAAAJiMgQAAAACYjMJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkAAAIAAAABAgAAAAZjYWxsZWQAAAABAAAAAnR4AQAAAAJjMgAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V50bxBTQ==",
"height": 1817205,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GYANRNewjqYbRqneCv5JP2M9k25WsTYKxu9hjb7HeCa8
Next: Hwv93F4KHrHoX69TjzAgDaQxAp6PjdBd9By2tvbVfv7k
Diff:
Old | New | | Differences |
---|
34 | 34 | | func bet2 (m) = { |
---|
35 | 35 | | let n = toBase58String(f.caller.bytes) |
---|
36 | 36 | | let o = e(f) |
---|
37 | | - | let p = h(this, (m + "_sumBets")) |
---|
| 37 | + | let p = h(a8, (m + "_sumBets")) |
---|
38 | 38 | | let q = { |
---|
39 | | - | let k = getInteger(this, (m + "_drawSequence")) |
---|
| 39 | + | let k = getInteger(a8, (m + "_drawSequence")) |
---|
40 | 40 | | if ($isInstanceOf(k, "Int")) |
---|
41 | 41 | | then { |
---|
42 | 42 | | let l = k |
---|
|
45 | 45 | | else 0 |
---|
46 | 46 | | } |
---|
47 | 47 | | let r = { |
---|
48 | | - | let k = getString(this, (m + "_player")) |
---|
| 48 | + | let k = getString(a8, (m + "_player")) |
---|
49 | 49 | | if ($isInstanceOf(k, "String")) |
---|
50 | 50 | | then { |
---|
51 | 51 | | let l = k |
---|
|
54 | 54 | | else unit |
---|
55 | 55 | | } |
---|
56 | 56 | | let s = { |
---|
57 | | - | let k = getInteger(this, (m + "_initialBet")) |
---|
| 57 | + | let k = getInteger(a8, (m + "_initialBet")) |
---|
58 | 58 | | if ($isInstanceOf(k, "Int")) |
---|
59 | 59 | | then { |
---|
60 | 60 | | let l = k |
---|
|
64 | 64 | | } |
---|
65 | 65 | | let t = (m + "_available") |
---|
66 | 66 | | let u = (p + o) |
---|
67 | | - | let v = getBoolean(this, (m + "_stop")) |
---|
| 67 | + | let v = getBoolean(a8, (m + "_stop")) |
---|
68 | 68 | | if (isDefined(v)) |
---|
69 | 69 | | then throw("This round is already played") |
---|
70 | 70 | | else throw("bet2 finished all ok") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "3MtaCL4v1bjTabUqs7oU4ofS8fbai34WM1i" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = 1000000000 |
---|
7 | 7 | | |
---|
8 | 8 | | let c = (100 * b) |
---|
9 | 9 | | |
---|
10 | 10 | | let d = "," |
---|
11 | 11 | | |
---|
12 | 12 | | func e (f) = if ((size(f.payments) == 0)) |
---|
13 | 13 | | then throw("Payment must be attached") |
---|
14 | 14 | | else { |
---|
15 | 15 | | let g = f.payments[0] |
---|
16 | 16 | | if (isDefined(g.assetId)) |
---|
17 | 17 | | then throw("This function accepts WAVES tokens only") |
---|
18 | 18 | | else g.amount |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | func h (i,j) = { |
---|
23 | 23 | | let k = getInteger(i, j) |
---|
24 | 24 | | if ($isInstanceOf(k, "Int")) |
---|
25 | 25 | | then { |
---|
26 | 26 | | let l = k |
---|
27 | 27 | | l |
---|
28 | 28 | | } |
---|
29 | 29 | | else 0 |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | @Callable(f) |
---|
34 | 34 | | func bet2 (m) = { |
---|
35 | 35 | | let n = toBase58String(f.caller.bytes) |
---|
36 | 36 | | let o = e(f) |
---|
37 | | - | let p = h(this, (m + "_sumBets")) |
---|
| 37 | + | let p = h(a8, (m + "_sumBets")) |
---|
38 | 38 | | let q = { |
---|
39 | | - | let k = getInteger(this, (m + "_drawSequence")) |
---|
| 39 | + | let k = getInteger(a8, (m + "_drawSequence")) |
---|
40 | 40 | | if ($isInstanceOf(k, "Int")) |
---|
41 | 41 | | then { |
---|
42 | 42 | | let l = k |
---|
43 | 43 | | (l + 1) |
---|
44 | 44 | | } |
---|
45 | 45 | | else 0 |
---|
46 | 46 | | } |
---|
47 | 47 | | let r = { |
---|
48 | | - | let k = getString(this, (m + "_player")) |
---|
| 48 | + | let k = getString(a8, (m + "_player")) |
---|
49 | 49 | | if ($isInstanceOf(k, "String")) |
---|
50 | 50 | | then { |
---|
51 | 51 | | let l = k |
---|
52 | 52 | | l |
---|
53 | 53 | | } |
---|
54 | 54 | | else unit |
---|
55 | 55 | | } |
---|
56 | 56 | | let s = { |
---|
57 | | - | let k = getInteger(this, (m + "_initialBet")) |
---|
| 57 | + | let k = getInteger(a8, (m + "_initialBet")) |
---|
58 | 58 | | if ($isInstanceOf(k, "Int")) |
---|
59 | 59 | | then { |
---|
60 | 60 | | let l = k |
---|
61 | 61 | | l |
---|
62 | 62 | | } |
---|
63 | 63 | | else o |
---|
64 | 64 | | } |
---|
65 | 65 | | let t = (m + "_available") |
---|
66 | 66 | | let u = (p + o) |
---|
67 | | - | let v = getBoolean(this, (m + "_stop")) |
---|
| 67 | + | let v = getBoolean(a8, (m + "_stop")) |
---|
68 | 68 | | if (isDefined(v)) |
---|
69 | 69 | | then throw("This round is already played") |
---|
70 | 70 | | else throw("bet2 finished all ok") |
---|
71 | 71 | | } |
---|
72 | 72 | | |
---|
73 | 73 | | |
---|
74 | 74 | | |
---|
75 | 75 | | @Callable(f) |
---|
76 | 76 | | func withdraw2 (m) = { |
---|
77 | 77 | | let n = toBase58String(f.caller.bytes) |
---|
78 | 78 | | throw("called") |
---|
79 | 79 | | } |
---|
80 | 80 | | |
---|
81 | 81 | | |
---|
82 | 82 | | @Verifier(w) |
---|
83 | 83 | | func x () = sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey) |
---|
84 | 84 | | |
---|