tx · AXxvSSgWmgWUrcE8fLqFbSZLR3ZbET8fBacLjFb6jwEy
3MpVczLk8vLD2H8RUnp99y5H2Gh4uzwVC8R: -0.01000000 Waves
2022.05.31 12:12 [2075640] smart account 3MpVczLk8vLD2H8RUnp99y5H2Gh4uzwVC8R > SELF 0.00000000 Waves
{
"type": 13,
"id": "AXxvSSgWmgWUrcE8fLqFbSZLR3ZbET8fBacLjFb6jwEy",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1653988381506,
"version": 2,
"chainId": 84,
"sender": "3MpVczLk8vLD2H8RUnp99y5H2Gh4uzwVC8R",
"senderPublicKey": "HhMAk9hCXLnnumnEXVRYeuHnDQ4JypEJ4P6raKoiBVaS",
"proofs": [
"2qS2EHhfUD5bt4WB2GWmMRVmUEQRxHsCBx29Wgo5XgwyJquXXn7tvnwRfqRFKqM5an3852ZDgq4S7eNxzjbymGDN"
],
"script": "base64:AAIDAAAAAAAAAA0IARIDCgEIEgQKAggBAAAAAAAAAAIAAAABaQEAAAAHcmVxdWVzdAAAAAEAAAAEbmFtZQQAAAAMd2FzUmVxdWVzdGVkBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAABG5hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAYHAwUAAAAMd2FzUmVxdWVzdGVkCQAAAgAAAAECAAAAJVRoZSBjZXJ0aWZpY2F0ZSB3YXMgYWxyZWFkeSByZXF1ZXN0ZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABG5hbWUAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAAAdhcHByb3ZlAAAAAgAAAARuYW1lAAAAAmlkAwkBAAAAAiE9AAAAAgUAAAAEdGhpcwgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAF2RBcHAgb3duZXIgYWxsb3dlZCBvbmx5CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAARuYW1lBQAAAAJpZAUAAAADbmlsAAAAAM/5Lv4=",
"height": 2075640,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: uHnm44qtedWpHnycQAHgitjdvDqnKwkfmcQeS1WvFjM
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(a) |
---|
| 7 | + | func request (b) = { |
---|
| 8 | + | let c = { |
---|
| 9 | + | let d = getInteger(this, b) |
---|
| 10 | + | if ($isInstanceOf(d, "Int")) |
---|
| 11 | + | then { |
---|
| 12 | + | let e = d |
---|
| 13 | + | true |
---|
| 14 | + | } |
---|
| 15 | + | else false |
---|
| 16 | + | } |
---|
| 17 | + | if (c) |
---|
| 18 | + | then throw("The certificate was already requested") |
---|
| 19 | + | else WriteSet([DataEntry(b, 0)]) |
---|
| 20 | + | } |
---|
| 21 | + | |
---|
| 22 | + | |
---|
| 23 | + | |
---|
| 24 | + | @Callable(a) |
---|
| 25 | + | func approve (b,f) = if ((this != a.caller)) |
---|
| 26 | + | then throw("dApp owner allowed only") |
---|
| 27 | + | else WriteSet([DataEntry(b, f)]) |
---|
| 28 | + | |
---|
| 29 | + | |
---|