tx · 86wfhLNP1VmgDuAp93nJDjjpN7mLNuwUakUSdKLMZTV6
3Ms1Fw2DWs2nz7NDrdbgCmZ2Axox1gEyTqx: -0.01000000 Waves
2021.09.03 09:21 [1686494] smart account 3Ms1Fw2DWs2nz7NDrdbgCmZ2Axox1gEyTqx > SELF 0.00000000 Waves
{
"type": 13,
"id": "86wfhLNP1VmgDuAp93nJDjjpN7mLNuwUakUSdKLMZTV6",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1630650086243,
"version": 1,
"sender": "3Ms1Fw2DWs2nz7NDrdbgCmZ2Axox1gEyTqx",
"senderPublicKey": "9V9QkD2eGMMSeFQYdoxjMFZKJUR1tsf3GSaXtWwWtH9c",
"proofs": [
"338JU2B1VyU9jta3kroigdcvBLXyVnnh3HKhWHuW1aoks3nw1KbFsXxZzwQY1g3jqnZgpg98FjgCwsAvE1YnAoTT"
],
"script": "base64:AAIFAAAAAAAAABUIAhIFCgMICAgSABIICgYICAgICAgAAAAAAAAAAwAAAAFpAQAAAAVwcm94eQAAAAMAAAAEZGFwcAAAAAJmbgAAAARhcmdzBAAAAARjYWxsCQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABGRhcHAFAAAAAmZuCQAEtQAAAAIFAAAABGFyZ3MCAAAAAToIBQAAAAFpAAAACHBheW1lbnRzAwkAAAAAAAACBQAAAARjYWxsBQAAAARjYWxsBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAWkBAAAABnJlY29yZAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAABOgkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkCQACWAAAAAEICAUAAAABaQAAAAxvcmlnaW5DYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAAAAAFpAQAAAAJkZAAAAAYAAAAFZGFwcDEAAAADZm4xAAAABWFyZ3MxAAAABWRhcHAyAAAAA2ZuMgAAAAVhcmdzMgQAAAAFY2FsbDEJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAFZGFwcDEFAAAAA2ZuMQkABLUAAAACBQAAAAVhcmdzMQIAAAABLwUAAAADbmlsAwkAAAAAAAACBQAAAAVjYWxsMQUAAAAFY2FsbDEEAAAABWNhbGwyCQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABWRhcHAyBQAAAANmbjIJAAS1AAAAAgUAAAAFYXJnczECAAAAAS8FAAAAA25pbAMJAAAAAAAAAgUAAAAFY2FsbDIFAAAABWNhbGwyBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAAHjQ+M",
"chainId": 84,
"height": 1686494,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CpWLUDGctMZaf6E7hp5tpiAKn6Fk2MSEBHzbbwrXYXLj
Next: 26NrBRNYjqJMi2EHiJU5sWPbtg6dJfNwoD9XHf4RTNyt
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func proxy (dapp,fn,val) = { |
---|
8 | | - | let call = invoke(addressFromStringValue(dapp), fn, if ((val == "null")) |
---|
9 | | - | then nil |
---|
10 | | - | else [val], i.payments) |
---|
| 7 | + | func proxy (dapp,fn,args) = { |
---|
| 8 | + | let call = invoke(addressFromStringValue(dapp), fn, split(args, ":"), i.payments) |
---|
11 | 9 | | if ((call == call)) |
---|
12 | 10 | | then nil |
---|
13 | 11 | | else throw("Strict value is not equal to itself.") |
---|
|
21 | 19 | | |
---|
22 | 20 | | |
---|
23 | 21 | | @Callable(i) |
---|
24 | | - | func dd (dapp1,fn1,val1,dapp2,fn2,val2) = { |
---|
25 | | - | let call1 = invoke(addressFromStringValue(dapp1), fn1, if ((val1 == "null")) |
---|
26 | | - | then nil |
---|
27 | | - | else [val1], nil) |
---|
| 22 | + | func dd (dapp1,fn1,args1,dapp2,fn2,args2) = { |
---|
| 23 | + | let call1 = invoke(addressFromStringValue(dapp1), fn1, split(args1, "/"), nil) |
---|
28 | 24 | | if ((call1 == call1)) |
---|
29 | 25 | | then { |
---|
30 | | - | let call2 = invoke(addressFromStringValue(dapp2), fn2, if ((val2 == "null")) |
---|
31 | | - | then nil |
---|
32 | | - | else [val2], nil) |
---|
| 26 | + | let call2 = invoke(addressFromStringValue(dapp2), fn2, split(args1, "/"), nil) |
---|
33 | 27 | | if ((call2 == call2)) |
---|
34 | 28 | | then nil |
---|
35 | 29 | | else throw("Strict value is not equal to itself.") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func proxy (dapp,fn,val) = { |
---|
8 | | - | let call = invoke(addressFromStringValue(dapp), fn, if ((val == "null")) |
---|
9 | | - | then nil |
---|
10 | | - | else [val], i.payments) |
---|
| 7 | + | func proxy (dapp,fn,args) = { |
---|
| 8 | + | let call = invoke(addressFromStringValue(dapp), fn, split(args, ":"), i.payments) |
---|
11 | 9 | | if ((call == call)) |
---|
12 | 10 | | then nil |
---|
13 | 11 | | else throw("Strict value is not equal to itself.") |
---|
14 | 12 | | } |
---|
15 | 13 | | |
---|
16 | 14 | | |
---|
17 | 15 | | |
---|
18 | 16 | | @Callable(i) |
---|
19 | 17 | | func record () = [StringEntry(((toBase58String(i.caller.bytes) + ":") + toBase58String(i.transactionId)), toBase58String(i.originCaller.bytes))] |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|
22 | 20 | | |
---|
23 | 21 | | @Callable(i) |
---|
24 | | - | func dd (dapp1,fn1,val1,dapp2,fn2,val2) = { |
---|
25 | | - | let call1 = invoke(addressFromStringValue(dapp1), fn1, if ((val1 == "null")) |
---|
26 | | - | then nil |
---|
27 | | - | else [val1], nil) |
---|
| 22 | + | func dd (dapp1,fn1,args1,dapp2,fn2,args2) = { |
---|
| 23 | + | let call1 = invoke(addressFromStringValue(dapp1), fn1, split(args1, "/"), nil) |
---|
28 | 24 | | if ((call1 == call1)) |
---|
29 | 25 | | then { |
---|
30 | | - | let call2 = invoke(addressFromStringValue(dapp2), fn2, if ((val2 == "null")) |
---|
31 | | - | then nil |
---|
32 | | - | else [val2], nil) |
---|
| 26 | + | let call2 = invoke(addressFromStringValue(dapp2), fn2, split(args1, "/"), nil) |
---|
33 | 27 | | if ((call2 == call2)) |
---|
34 | 28 | | then nil |
---|
35 | 29 | | else throw("Strict value is not equal to itself.") |
---|
36 | 30 | | } |
---|
37 | 31 | | else throw("Strict value is not equal to itself.") |
---|
38 | 32 | | } |
---|
39 | 33 | | |
---|
40 | 34 | | |
---|