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 ruler = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY" |
---|
5 | | - | |
---|
6 | | - | let bobma_id = "5xyrUoJuXJcYxc8RfroWj4QeLaw6xhBfAdSreStYCRMn" |
---|
7 | | - | |
---|
8 | | - | let buggs_id = "H5UUuPJ7WBXzjg6Z1ahBUxj7VWoVFFfG3BMzyAAnRWt6" |
---|
9 | | - | |
---|
10 | | - | func getAssetString (assetId) = match assetId { |
---|
11 | | - | case b: ByteVector => |
---|
12 | | - | toBase58String(b) |
---|
13 | | - | case _ => |
---|
14 | | - | "WAVES" |
---|
15 | | - | } |
---|
16 | | - | |
---|
17 | | - | |
---|
18 | | - | func getAssetBytes (assetId) = if ((assetId == "WAVES")) |
---|
19 | | - | then unit |
---|
20 | | - | else fromBase58String(assetId) |
---|
21 | | - | |
---|
22 | | - | |
---|
23 | | - | func myBalance (assetId) = match assetId { |
---|
24 | | - | case b: ByteVector => |
---|
25 | | - | assetBalance(this, b) |
---|
26 | | - | case _ => |
---|
27 | | - | wavesBalance(this).available |
---|
28 | | - | } |
---|
| 4 | + | func some_func () = $Tuple3(40, 50, 60) |
---|
29 | 5 | | |
---|
30 | 6 | | |
---|
31 | 7 | | @Callable(i) |
---|
32 | | - | func swap (assetOut,minimum) = { |
---|
33 | | - | let bomba_balance = myBalance(getAssetBytes(bobma_id)) |
---|
34 | | - | let buggs_balance = myBalance(getAssetBytes(buggs_id)) |
---|
35 | | - | let pmt = i.payments[0] |
---|
36 | | - | let assetIn = value(pmt.assetId) |
---|
37 | | - | let amountIn = value(pmt.amount) |
---|
38 | | - | let amountOut = (amountIn * 2) |
---|
39 | | - | [ScriptTransfer(i.caller, amountOut, getAssetBytes(assetOut))] |
---|
| 8 | + | func func_1 () = { |
---|
| 9 | + | let result = some_func() |
---|
| 10 | + | let a = result._1 |
---|
| 11 | + | let b = result._2 |
---|
| 12 | + | let c = result._3 |
---|
| 13 | + | throw(((((toString(a) + " ") + toString(b)) + " ") + toString(c))) |
---|
40 | 14 | | } |
---|
41 | 15 | | |
---|
42 | 16 | | |
---|
43 | | - | @Verifier(tx) |
---|
44 | | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 17 | + | |
---|
| 18 | + | @Callable(i) |
---|
| 19 | + | func func_2 () = { |
---|
| 20 | + | let addr = "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat" |
---|
| 21 | + | let invoke_result = invoke(this, "func_1", nil, nil) |
---|
| 22 | + | nil |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
45 | 25 | | |
---|