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