tx · GxYvmXbab7m4NhvVSikHuVsNWm78Y885Ck6pRicxkKkQ 3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t: -0.10500000 Waves 2023.10.11 14:12 [2793872] smart account 3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t > SELF 0.00000000 Waves
{ "type": 13, "id": "GxYvmXbab7m4NhvVSikHuVsNWm78Y885Ck6pRicxkKkQ", "fee": 10500000, "feeAssetId": null, "timestamp": 1697022739608, "version": 2, "chainId": 84, "sender": "3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t", "senderPublicKey": "HJ4hmeK33qGvDwPEv5TChJq8CmRjtktm9xmzsgKAy5hY", "proofs": [ "3RxDrEH847sS1741vsDj65huHqRo4wepf3QCQ652myLEXWc8X5nw364sZZGcnAjBBKpLZXAAvQXhfQksRdmpDn52" ], "script": "base64:BgIVCAISBQoDAQEBEgASCAoGCAgICAgIBQEKZnJhY3Rpb25CSQMBYQFiAWMEAXgJALwCAwUBYQUBYgUBYwkAzAgCCQELU3RyaW5nRW50cnkCAgZCaWdJbnQJAKYDAQUBeAUDbmlsAQVtYXhCSQMBYQFiAWMEAXgJAMwIAgUBYQkAzAgCBQFiCQDMCAIFAWMFA25pbAkAzAgCCQELU3RyaW5nRW50cnkCAgZCaWdJbnQJAKYDAQkAmAMBBQF4BQNuaWwBBW1pbkJJAwFhAWIBYwQBeAkAzAgCBQFhCQDMCAIFAWIJAMwIAgUBYwUDbmlsCQDMCAIJAQtTdHJpbmdFbnRyeQICBkJpZ0ludAkApgMBCQCZAwEFAXgFA25pbAEFbG9nQkkFA3ZhbAJ2cARiYXNlAmJwAnJwBAF4CQB3BgUDdmFsBQJ2cAUEYmFzZQUCYnAFAnJwBQVGTE9PUgkAzAgCCQELU3RyaW5nRW50cnkCAgZCaWdJbnQJAKYDAQUBeAUDbmlsAQVwb3dCSQUEYmFzZQJicANleHACZXACcnAEAXgJAHYGBQRiYXNlBQJicAUDZXhwBQJicAUCcnAFBUZMT09S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"spentComplexity": 0 } View: original | compacted Prev: DUcra5wM6DH5UrU48vVScBRL2uipvQdRzB8bJrGpSNEx Next: 2dWxFqvKNoMerK1YAAtDV3SV5t1iazt8KCCh1hx4NUgs Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func fractionBI (a,b,c) = { |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func fractionBI (a,b,c) = { | |
5 | 5 | let x = fraction(a, b, c) | |
6 | 6 | [StringEntry("BigInt", toString(x))] | |
7 | 7 | } | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func maxBI (a,b,c) = { | |
11 | 11 | let x = [a, b, c] | |
12 | 12 | [StringEntry("BigInt", toString(max(x)))] | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func minBI (a,b,c) = { | |
17 | 17 | let x = [a, b, c] | |
18 | 18 | [StringEntry("BigInt", toString(min(x)))] | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func logBI (val,vp,base,bp,rp) = { | |
23 | 23 | let x = log(val, vp, base, bp, rp, FLOOR) | |
24 | 24 | [StringEntry("BigInt", toString(x))] | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func powBI (base,bp,exp,ep,rp) = { | |
29 | 29 | let x = pow(base, bp, exp, bp, rp, FLOOR) | |
30 | 30 | [StringEntry("BigInt", toString(x))] | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | 35 | func fractionInt (a,b,c) = { | |
36 | 36 | let x = fraction(a, b, c) | |
37 | 37 | [IntegerEntry("int", x)] | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(i) | |
43 | 43 | func default () = [StringEntry("str", "fraction,max,min,log,pow")] | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(i) | |
48 | 48 | func bigintf_test (a,b,c,d,e,f) = { | |
49 | 49 | let aa = match parseBigInt(a) { | |
50 | 50 | case t: BigInt => | |
51 | 51 | t | |
52 | 52 | case _ => | |
53 | 53 | throw() | |
54 | 54 | } | |
55 | 55 | let bb = match parseBigInt(b) { | |
56 | 56 | case t: BigInt => | |
57 | 57 | t | |
58 | 58 | case _ => | |
59 | 59 | throw() | |
60 | 60 | } | |
61 | 61 | let cc = match parseBigInt(c) { | |
62 | 62 | case t: BigInt => | |
63 | 63 | t | |
64 | 64 | case _ => | |
65 | 65 | throw() | |
66 | 66 | } | |
67 | 67 | let dd = match parseInt(d) { | |
68 | 68 | case t: Int => | |
69 | 69 | t | |
70 | 70 | case _ => | |
71 | 71 | throw() | |
72 | 72 | } | |
73 | 73 | let ee = match parseInt(e) { | |
74 | 74 | case t: Int => | |
75 | 75 | t | |
76 | 76 | case _ => | |
77 | 77 | throw() | |
78 | 78 | } | |
79 | 79 | if ((f == "fraction")) | |
80 | 80 | then fractionBI(aa, bb, cc) | |
81 | 81 | else if ((f == "max")) | |
82 | 82 | then maxBI(aa, bb, cc) | |
83 | 83 | else if ((f == "min")) | |
84 | 84 | then minBI(aa, bb, cc) | |
85 | 85 | else if ((f == "log")) | |
86 | 86 | then { | |
87 | 87 | let ff = toInt(bb) | |
88 | 88 | logBI(aa, ff, cc, dd, ee) | |
89 | 89 | } | |
90 | 90 | else if ((f == "pow")) | |
91 | 91 | then { | |
92 | 92 | let ff = toInt(bb) | |
93 | 93 | powBI(aa, ff, cc, dd, ee) | |
94 | 94 | } | |
95 | 95 | else nil | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 |
github/deemru/w8io/026f985 40.68 ms ◑