tx · 2dWxFqvKNoMerK1YAAtDV3SV5t1iazt8KCCh1hx4NUgs 3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t: -0.10500000 Waves 2023.10.12 15:11 [2795376] smart account 3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t > SELF 0.00000000 Waves
{ "type": 13, "id": "2dWxFqvKNoMerK1YAAtDV3SV5t1iazt8KCCh1hx4NUgs", "fee": 10500000, "feeAssetId": null, "timestamp": 1697112791359, "version": 2, "chainId": 84, "sender": "3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t", "senderPublicKey": "HJ4hmeK33qGvDwPEv5TChJq8CmRjtktm9xmzsgKAy5hY", "proofs": [ "5SjrwoHXYYL2sRFpqMAMtkkUXwYAdFeNThC6zvTMGszeHG3xUMZ62WqciBjGhPB6moijcba6LTtMevWYWqAjvm2H" ], "script": "base64:BgIVCAISBQoDAQEBEgASCAoGCAgICAgIBQEKZnJhY3Rpb25CSQMBYQFiAWMEAXgJALwCAwUBYQUBYgUBYwkAzAgCCQELU3RyaW5nRW50cnkCAgZCaWdJbnQJAKYDAQUBeAUDbmlsAQVtYXhCSQMBYQFiAWMEAXgJAMwIAgUBYQkAzAgCBQFiCQDMCAIFAWMFA25pbAkAzAgCCQELU3RyaW5nRW50cnkCAgZCaWdJbnQJAKYDAQkAmAMBBQF4BQNuaWwBBW1pbkJJAwFhAWIBYwQBeAkAzAgCBQFhCQDMCAIFAWIJAMwIAgUBYwUDbmlsCQDMCAIJAQtTdHJpbmdFbnRyeQICBkJpZ0ludAkApgMBCQCZAwEFAXgFA25pbAEFbG9nQkkFA3ZhbAJ2cARiYXNlAmJwAnJwBAF4CQB3BgUDdmFsBQJ2cAUEYmFzZQUCYnAFAnJwBQVGTE9PUgkAzAgCCQELU3RyaW5nRW50cnkCAgZCaWdJbnQJAKYDAQUBeAUDbmlsAQVwb3dCSQUEYmFzZQJicANleHACZXACcnAEAXgJAHYGBQRiYXNlBQJicAUDZXhwBQJicAUCcn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atus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GxYvmXbab7m4NhvVSikHuVsNWm78Y885Ck6pRicxkKkQ Next: H9qZUom2KSHaVVyFRA29BUWaX2eZgeLHPAHda99Smt3k Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c,d) = { | |
5 | 5 | let e = fraction(b, c, d) | |
6 | 6 | [StringEntry("BigInt", toString(e))] | |
7 | 7 | } | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func f (b,c,d) = { | |
11 | 11 | let e = [b, c, d] | |
12 | 12 | [StringEntry("BigInt", toString(max(e)))] | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (b,c,d) = { | |
17 | 17 | let e = [b, c, d] | |
18 | 18 | [StringEntry("BigInt", toString(min(e)))] | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func h (i,j,k,l,m) = { | |
23 | 23 | let e = log(i, j, k, l, m, FLOOR) | |
24 | 24 | [StringEntry("BigInt", toString(e))] | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func n (k,l,o,p,m) = { | |
29 | 29 | let e = pow(k, l, o, l, m, FLOOR) | |
30 | 30 | [StringEntry("BigInt", toString(e))] | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(q) | |
35 | 35 | func fractionInt (b,c,d) = { | |
36 | 36 | let e = fraction(b, c, d) | |
37 | 37 | [IntegerEntry("int", e)] | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(q) | |
43 | 43 | func default () = [StringEntry("str", "fraction,max,min,log,pow")] | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(q) | |
48 | 48 | func bigintf_test (b,c,d,r,s,t) = { | |
49 | 49 | let u = { | |
50 | 50 | let v = parseBigInt(b) | |
51 | 51 | if ($isInstanceOf(v, "BigInt")) | |
52 | 52 | then { | |
53 | 53 | let w = v | |
54 | 54 | w | |
55 | 55 | } | |
56 | 56 | else throw() | |
57 | 57 | } | |
58 | 58 | let x = { | |
59 | 59 | let v = parseBigInt(c) | |
60 | 60 | if ($isInstanceOf(v, "BigInt")) | |
61 | 61 | then { | |
62 | 62 | let w = v | |
63 | 63 | w | |
64 | 64 | } | |
65 | 65 | else throw() | |
66 | 66 | } | |
67 | 67 | let y = { | |
68 | 68 | let v = parseBigInt(d) | |
69 | 69 | if ($isInstanceOf(v, "BigInt")) | |
70 | 70 | then { | |
71 | 71 | let w = v | |
72 | 72 | w | |
73 | 73 | } | |
74 | 74 | else throw() | |
75 | 75 | } | |
76 | 76 | let z = { | |
77 | 77 | let v = parseInt(r) | |
78 | 78 | if ($isInstanceOf(v, "Int")) | |
79 | 79 | then { | |
80 | 80 | let w = v | |
81 | 81 | w | |
82 | 82 | } | |
83 | 83 | else throw() | |
84 | 84 | } | |
85 | 85 | let A = { | |
86 | 86 | let v = parseInt(s) | |
87 | 87 | if ($isInstanceOf(v, "Int")) | |
88 | 88 | then { | |
89 | 89 | let w = v | |
90 | 90 | w | |
91 | 91 | } | |
92 | 92 | else throw() | |
93 | 93 | } | |
94 | 94 | if ((t == "fraction")) | |
95 | 95 | then a(u, x, y) | |
96 | 96 | else if ((t == "max")) | |
97 | 97 | then f(u, x, y) | |
98 | 98 | else if ((t == "min")) | |
99 | 99 | then g(u, x, y) | |
100 | 100 | else if ((t == "log")) | |
101 | 101 | then { | |
102 | 102 | let B = toInt(x) | |
103 | 103 | h(u, B, y, z, A) | |
104 | 104 | } | |
105 | 105 | else if ((t == "pow")) | |
106 | 106 | then { | |
107 | 107 | let B = toInt(x) | |
108 | 108 | n(u, B, y, z, A) | |
109 | 109 | } | |
110 | 110 | else nil | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 |
github/deemru/w8io/026f985 29.50 ms ◑