tx · H9qZUom2KSHaVVyFRA29BUWaX2eZgeLHPAHda99Smt3k 3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t: -0.01000000 Waves 2023.11.01 10:54 [2823981] smart account 3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t > SELF 0.00000000 Waves
{ "type": 13, "id": "H9qZUom2KSHaVVyFRA29BUWaX2eZgeLHPAHda99Smt3k", "fee": 1000000, "feeAssetId": null, "timestamp": 1698825256444, "version": 2, "chainId": 84, "sender": "3MxmeHuUkgf1qYRiaZnn4kqL418s6G2i56t", "senderPublicKey": "HJ4hmeK33qGvDwPEv5TChJq8CmRjtktm9xmzsgKAy5hY", "proofs": [ "3S2GshD8YZi4MouZ8FAaiT1yRQoQEkmfd1DEXjoX1Ek1UceKf2fxZwtjvY1PNSmp7zokBTtFXf3CG46gpRv6Mw4v" ], "script": "base64:BgIOCAISABIAEgASABIAEgAABgFpAQZhY3Rpb24ACQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQEaAURhIIg+3ZggmCPnymM0X/GkLLmkMH0iZhYAgNDbw/QCBQR1bml0BQNuaWwBaQEHZGVmYXVsdAAFA25pbAFpARBpc3N1ZUFuZFRyYW5zZmVyAAQFaXNzdWUJAMMIBwIEbmFtZQILZGVzY3JpcHRpb24A6AcAAQYFBHVuaXQAAAkAlAoCCQDMCAIFBWlzc3VlCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgBkCQC4CAEFBWlzc3VlCQDMCAIJAQtCaW5hcnlFbnRyeQICBWFzc2V0CQC4CAEFBWlzc3VlBQNuaWwJAPAHAggFAWkGY2FsbGVyCQC4CAEFBWlzc3VlAWkBE3N5bmNDYWxsV2l0aFBheW1lbnQABAFyCQD8BwQJAQdBZGRyZXNzAQEaAURhIIg+3ZggmCPnymM0X/GkLLmkMH0iZhYCB2RlZmF1bHQFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUEdW5pdABkBQNuaWwDCQAAAgUBcgUBcgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBB3JlaXNzdWUABAVhc3NldAkBEUBleHRyTmF0aXZlKDEwNTcpAQIFYXNzZXQEB3JlaXNzdWUJAQdSZWlzc3VlAwUFYXNzZXQA0A8GCQDMCAIFB3JlaXNzdWUFA25pbAFpAQRidXJuAAQFYXNzZXQJARFAZXh0ck5hdGl2ZSgxMDU3KQECBWFzc2V0BARidXJuCQEEQnVybgIFBWFzc2V0AAoJAMwIAgUEYnVybgUDbmlsAK4dJIU=", "height": 2823981, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2dWxFqvKNoMerK1YAAtDV3SV5t1iazt8KCCh1hx4NUgs Next: DvgvZRAdgZXqXooAKKiNCFP7ifqzdoqocpMuGtMFhj73 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
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 | - | } | |
32 | 4 | ||
33 | 5 | ||
34 | 6 | @Callable(i) | |
35 | - | func fractionInt (a,b,c) = { | |
36 | - | let x = fraction(a, b, c) | |
37 | - | [IntegerEntry("int", x)] | |
7 | + | func action () = [ScriptTransfer(Address(base58'3FXMzYAi9KmbpTVVCB5SxzpyTw4jzqRhufj'), 100000000000, unit)] | |
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | @Callable(i) | |
12 | + | func default () = nil | |
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | @Callable(i) | |
17 | + | func issueAndTransfer () = { | |
18 | + | let issue = Issue("name", "description", 1000, 1, true, unit, 0) | |
19 | + | $Tuple2([issue, ScriptTransfer(i.caller, 100, calculateAssetId(issue)), BinaryEntry("asset", calculateAssetId(issue))], assetBalance(i.caller, calculateAssetId(issue))) | |
38 | 20 | } | |
39 | 21 | ||
40 | 22 | ||
41 | 23 | ||
42 | 24 | @Callable(i) | |
43 | - | func default () = [StringEntry("str", "fraction,max,min,log,pow")] | |
25 | + | func syncCallWithPayment () = { | |
26 | + | let r = invoke(Address(base58'3FXMzYAi9KmbpTVVCB5SxzpyTw4jzqRhufj'), "default", nil, [AttachedPayment(unit, 100)]) | |
27 | + | if ((r == r)) | |
28 | + | then nil | |
29 | + | else throw("Strict value is not equal to itself.") | |
30 | + | } | |
44 | 31 | ||
45 | 32 | ||
46 | 33 | ||
47 | 34 | @Callable(i) | |
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() | |
35 | + | func reissue () = { | |
36 | + | let asset = getBinaryValue("asset") | |
37 | + | let reissue = Reissue(asset, 2000, true) | |
38 | + | [reissue] | |
54 | 39 | } | |
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 | |
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | @Callable(i) | |
44 | + | func burn () = { | |
45 | + | let asset = getBinaryValue("asset") | |
46 | + | let burn = Burn(asset, 10) | |
47 | + | [burn] | |
96 | 48 | } | |
97 | 49 | ||
98 | 50 |
github/deemru/w8io/026f985 26.15 ms ◑