tx · BCaTxDNe2fJugbn4wnEeTyJm69VxfCL1TrksCgAWqg9i
3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte: -0.00100000 Waves
2022.09.17 12:48 [2232944] smart account 3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte > SELF 0.00000000 Waves
{
"type": 13,
"id": "BCaTxDNe2fJugbn4wnEeTyJm69VxfCL1TrksCgAWqg9i",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1663408085668,
"version": 2,
"chainId": 84,
"sender": "3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte",
"senderPublicKey": "8kniNnhqS4yFAgjyL5p26FADdec1VLXx7SRcE3MHe5Km",
"proofs": [
"4YBzup9qYw64FQF9onAxAdjFGSpTdVmaVRvYzwMDvEvG9Jsx3nBwP5JnsqB6ZGcjz9oYyip2Hf6Gufz7Sv3NnaTf"
],
"script": "base64:BgIKCAISBgoECAgBAQEBCW9wQWxsb3dlZAEGYW1vdW50BAckbWF0Y2gwCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNNckd3WVVUOVZZQWh6eFNYVFdKTjlnYUM5NVd2SldNNXpHAgR0ZXN0CQDMCAIFBmFtb3VudAUDbmlsBQNuaWwDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAMFAWIGCQACAQILbm90IGFsbG93ZWQJAAIBAiFvcEFsbG93ZWQ6IHVuZXhwZWN0ZWQgcmVzdWx0IHR5cGUBAWkBBnRlbGxtZQQEYWRkMQRhZGQyCmFkZDFBbW91bnQKYWRkMkFtb3VudAQFdGVzdEEJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM01yR3dZVVQ5VllBaHp4U1hUV0pOOWdhQzk1V3ZKV001ekcCBHRlc3QJAMwIAgUKYWRkMkFtb3VudAUDbmlsBQNuaWwDCQAAAgUFdGVzdEEGBANydDEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUEYWRkMQUKYWRkMUFtb3VudAUEdW5pdAUDbmlsBAV0ZXN0QgkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTXJHd1lVVDlWWUFoenhTWFRXSk45Z2FDOTVXdkpXTTV6RwIEdGVzdAkAzAgCBQphZGQxQW1vdW50BQNuaWwFA25pbAMJAAACBQV0ZXN0QgYJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUEYWRkMgUKYWRkMkFtb3VudAUEdW5pdAUDbmlsCQACAQINbm90IGFsbG93ZWRfMgkAAgECDW5vdCBhbGxvd2VkXzEAx9iE1A==",
"height": 2232944,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BBBC4nvE3APcWWnWR6vTr86vgdh7XkbaTa4eGCHZjT5k
Next: FbmAMa4e2thHXzTYMxT3TSyv876L43aCpRuQWiZnEGej
Diff:
Old | New | | Differences |
---|
14 | 14 | | @Callable(i) |
---|
15 | 15 | | func tellme (add1,add2,add1Amount,add2Amount) = { |
---|
16 | 16 | | let testA = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add2Amount], nil) |
---|
17 | | - | if (if ((testA == testA)) |
---|
18 | | - | then (testA == true) |
---|
19 | | - | else false) |
---|
| 17 | + | if ((testA == true)) |
---|
20 | 18 | | then { |
---|
21 | 19 | | let rt1 = [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)] |
---|
22 | 20 | | let testB = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add1Amount], nil) |
---|
23 | | - | if (if ((testB == testB)) |
---|
24 | | - | then (testB == true) |
---|
25 | | - | else false) |
---|
| 21 | + | if ((testB == true)) |
---|
26 | 22 | | then [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)] |
---|
27 | 23 | | else throw("not allowed_2") |
---|
28 | 24 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func opAllowed (amount) = match invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [amount], nil) { |
---|
5 | 5 | | case b: Boolean => |
---|
6 | 6 | | if (b) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else throw("not allowed") |
---|
9 | 9 | | case _ => |
---|
10 | 10 | | throw("opAllowed: unexpected result type") |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(i) |
---|
15 | 15 | | func tellme (add1,add2,add1Amount,add2Amount) = { |
---|
16 | 16 | | let testA = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add2Amount], nil) |
---|
17 | | - | if (if ((testA == testA)) |
---|
18 | | - | then (testA == true) |
---|
19 | | - | else false) |
---|
| 17 | + | if ((testA == true)) |
---|
20 | 18 | | then { |
---|
21 | 19 | | let rt1 = [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)] |
---|
22 | 20 | | let testB = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add1Amount], nil) |
---|
23 | | - | if (if ((testB == testB)) |
---|
24 | | - | then (testB == true) |
---|
25 | | - | else false) |
---|
| 21 | + | if ((testB == true)) |
---|
26 | 22 | | then [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)] |
---|
27 | 23 | | else throw("not allowed_2") |
---|
28 | 24 | | } |
---|
29 | 25 | | else throw("not allowed_1") |
---|
30 | 26 | | } |
---|
31 | 27 | | |
---|
32 | 28 | | |
---|