tx · AcCxjyKSNMzihs98hBuPb7eGRmtRJwUMPZXBMfnc3JVJ
3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt: -0.05000000 Waves
2023.03.22 09:29 [2500868] smart account 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt > SELF 0.00000000 Waves
{
"type": 13,
"id": "AcCxjyKSNMzihs98hBuPb7eGRmtRJwUMPZXBMfnc3JVJ",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1679466676411,
"version": 2,
"chainId": 84,
"sender": "3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt",
"senderPublicKey": "FACNGaFYnR8yFbQFg9sRBpzGVCyzMyLeVw3JMhGQT1wn",
"proofs": [
"yJxea73sBvMVkxnxi1RD2RAQfmHVFSPgzPPXFKcvFWuNJxGC8KzBvJKkyheagHfpa2eG4f4sSn6ek4y75pRdv5i"
],
"script": "base64:BgIECAISAAIAE3BlcGVDb250cmFjdEFkZHJlc3MCIzNONGtYWkhHa2U2eVJxM1o1N3E3QlRnQ3JUMlNDdlFDWUVSAAxwZXBlQ29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQEFE3BlcGVDb250cmFjdEFkZHJlc3MBAWkBB2RlcG9zaXQABAdyZXN1bHRzCgABQAkA/AcEBQxwZXBlQ29udHJhY3QCB2RlcG9zaXQFA25pbAgFAWkIcGF5bWVudHMDCQABAgUBQAIGU3RyaW5nBQFACQACAQkArAICCQADAQUBQAIbIGNvdWxkbid0IGJlIGNhc3QgdG8gU3RyaW5nBAckbWF0Y2gwBQdyZXN1bHRzAwkAAQIFByRtYXRjaDACBlN0cmluZwQBdAUHJG1hdGNoMAkAzAgCCQELU3RyaW5nRW50cnkCAgRyZXMxBQF0BQNuaWwFA25pbABJym69",
"height": 2500868,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4dDxYFzocSR9zvDJZi9GFjSbJqTZuHgCw2bw2ASqCuXA
Next: BqPDmytnqBxrzKoEUvUkUQMjbpfXpN22NFAe9gfnBnbq
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let pepeContractAddress = "3N4kXZHGke6yRq3Z57q7BTgCrT2SCvQCYER" |
---|
4 | 5 | | |
---|
| 6 | + | let pepeContract = addressFromStringValue(pepeContractAddress) |
---|
5 | 7 | | |
---|
6 | 8 | | @Callable(i) |
---|
7 | | - | func finalize (baseAssetId) = if ((baseAssetId == "BASEID2")) |
---|
8 | | - | then throw("ERR: ERR") |
---|
9 | | - | else [StringEntry(baseAssetId, (baseAssetId + "1"))] |
---|
| 9 | + | func deposit () = { |
---|
| 10 | + | let results = { |
---|
| 11 | + | let @ = invoke(pepeContract, "deposit", nil, i.payments) |
---|
| 12 | + | if ($isInstanceOf(@, "String")) |
---|
| 13 | + | then @ |
---|
| 14 | + | else throw(($getType(@) + " couldn't be cast to String")) |
---|
| 15 | + | } |
---|
| 16 | + | match results { |
---|
| 17 | + | case t: String => |
---|
| 18 | + | [StringEntry("res1", t)] |
---|
| 19 | + | case _ => |
---|
| 20 | + | nil |
---|
| 21 | + | } |
---|
| 22 | + | } |
---|
10 | 23 | | |
---|
11 | 24 | | |
---|