tx · 3aELsFYUoLishK8tVoY9GcFBTJLqbfoVMkDwMMvEGXef
3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00500000 Waves
2023.02.25 01:19 [2464342] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{
"type": 13,
"id": "3aELsFYUoLishK8tVoY9GcFBTJLqbfoVMkDwMMvEGXef",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1677277165608,
"version": 2,
"chainId": 84,
"sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat",
"senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR",
"proofs": [
"299VFk6aW1fY68Um8zhAMDqVdqeXfSrLbvVjBtTwwcfNRCdffBmrXzMWZgp8mtBxS2KMS71yd6WE7sFksShudx1m"
],
"script": "base64:BgIGCAISABIAAQEJc29tZV9mdW5jAAkAlQoDACgAMgA8AgFpAQZmdW5jXzEABAZyZXN1bHQJAQlzb21lX2Z1bmMABAFhCAUGcmVzdWx0Al8xBAFiCAUGcmVzdWx0Al8yBAFjCAUGcmVzdWx0Al8zCQACAQkArAICCQCsAgIJAKwCAgkArAICCQCkAwEFAWECASAJAKQDAQUBYgIBIAkApAMBBQFjAWkBBmZ1bmNfMgAEBGFkZHICIzNONUp1NjR1VFB1YVI0TTRmOVlCNUxSWVJOSjM4Mk1XcmF0BA1pbnZva2VfcmVzdWx0CQD8BwQFBHRoaXMCBmZ1bmNfMQUDbmlsBQNuaWwFA25pbACQb0Mc",
"height": 2464342,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DDpUWDq62oidgqFWr8YRJax3Y7f8Q5UmYnsTkmPWrNZ8
Next: 685DpbXXLtJ6V4VTpKBYdMJKKtojeRtFxqzcW2PrwZCu
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY" |
---|
| 4 | + | func a () = $Tuple3(40, 50, 60) |
---|
5 | 5 | | |
---|
6 | | - | let b = "5xyrUoJuXJcYxc8RfroWj4QeLaw6xhBfAdSreStYCRMn" |
---|
7 | 6 | | |
---|
8 | | - | let c = "H5UUuPJ7WBXzjg6Z1ahBUxj7VWoVFFfG3BMzyAAnRWt6" |
---|
9 | | - | |
---|
10 | | - | func d (e) = { |
---|
11 | | - | let f = e |
---|
12 | | - | if ($isInstanceOf(f, "ByteVector")) |
---|
13 | | - | then { |
---|
14 | | - | let g = f |
---|
15 | | - | toBase58String(g) |
---|
16 | | - | } |
---|
17 | | - | else "WAVES" |
---|
| 7 | + | @Callable(b) |
---|
| 8 | + | func func_1 () = { |
---|
| 9 | + | let c = a() |
---|
| 10 | + | let d = c._1 |
---|
| 11 | + | let e = c._2 |
---|
| 12 | + | let f = c._3 |
---|
| 13 | + | throw(((((toString(d) + " ") + toString(e)) + " ") + toString(f))) |
---|
18 | 14 | | } |
---|
19 | 15 | | |
---|
20 | 16 | | |
---|
21 | | - | func h (e) = if ((e == "WAVES")) |
---|
22 | | - | then unit |
---|
23 | | - | else fromBase58String(e) |
---|
24 | 17 | | |
---|
25 | | - | |
---|
26 | | - | func i (e) = { |
---|
27 | | - | let f = e |
---|
28 | | - | if ($isInstanceOf(f, "ByteVector")) |
---|
29 | | - | then { |
---|
30 | | - | let g = f |
---|
31 | | - | assetBalance(this, g) |
---|
32 | | - | } |
---|
33 | | - | else wavesBalance(this).available |
---|
| 18 | + | @Callable(b) |
---|
| 19 | + | func func_2 () = { |
---|
| 20 | + | let g = "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat" |
---|
| 21 | + | let h = invoke(this, "func_1", nil, nil) |
---|
| 22 | + | nil |
---|
34 | 23 | | } |
---|
35 | 24 | | |
---|
36 | | - | |
---|
37 | | - | @Callable(j) |
---|
38 | | - | func swap (k,l) = { |
---|
39 | | - | let m = i(h(b)) |
---|
40 | | - | let n = i(h(c)) |
---|
41 | | - | let o = j.payments[0] |
---|
42 | | - | let p = value(o.assetId) |
---|
43 | | - | let q = value(o.amount) |
---|
44 | | - | let r = (q * 2) |
---|
45 | | - | [ScriptTransfer(j.caller, r, h(k))] |
---|
46 | | - | } |
---|
47 | | - | |
---|
48 | | - | |
---|
49 | | - | @Verifier(s) |
---|
50 | | - | func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) |
---|
51 | 25 | | |
---|