tx · FnrwFecxM63rULGswWxsk4U5Kr11GeL42rGxCvfedL53
3MxepHLYStf3HvRJDqpSZWTAXZL7FV3KVeQ: -0.01000000 Waves
2019.11.21 16:27 [775015] smart account 3MxepHLYStf3HvRJDqpSZWTAXZL7FV3KVeQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "FnrwFecxM63rULGswWxsk4U5Kr11GeL42rGxCvfedL53",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1574341941377,
"version": 1,
"sender": "3MxepHLYStf3HvRJDqpSZWTAXZL7FV3KVeQ",
"senderPublicKey": "9tqzB1yoHBxxbdPp26wzHPaMR8hzonwmaXsdCoVQChun",
"proofs": [
"5UY2W6DMg1M9KF7eSfA7sPfZdB6zpvmaapSVx5b1pxYhwJLHTXkcmR1FLPH2NHWakiwDRm5CAxcJLvywxKiAs9z4"
],
"script": "base64:AAIDAAAAAAAAAA0IARIDCgEIEgQKAggBAAAAAAAAAAIAAAABaQEAAAAHcmVxdWVzdAAAAAEAAAAEbmFtZQQAAAADa2V5BQAAAARuYW1lBAAAAAx3YXNSZXF1ZXN0ZWQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAGBwMFAAAADHdhc1JlcXVlc3RlZAkAAAIAAAABAgAAACVUaGUgY2VydGlmaWNhdGUgd2FzIGFscmVhZHkgcmVxdWVzdGVkCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAANrZXkAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAAAdhcHByb3ZlAAAAAgAAAARuYW1lAAAAAmlkBAAAAANrZXkFAAAABG5hbWUDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABHRoaXMJAAACAAAAAQIAAAAXZEFwcCBvd25lciBhbGxvd2VkIG9ubHkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAA2tleQUAAAACaWQFAAAAA25pbAAAAAAH5GjV",
"chainId": 84,
"height": 775015,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func request (name) = { |
---|
| 8 | + | let key = name |
---|
| 9 | + | let wasRequested = match getInteger(this, key) { |
---|
| 10 | + | case a: Int => |
---|
| 11 | + | true |
---|
| 12 | + | case _ => |
---|
| 13 | + | false |
---|
| 14 | + | } |
---|
| 15 | + | if (wasRequested) |
---|
| 16 | + | then throw("The certificate was already requested") |
---|
| 17 | + | else WriteSet([DataEntry(key, 0)]) |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func approve (name,id) = { |
---|
| 24 | + | let key = name |
---|
| 25 | + | if ((i.caller != this)) |
---|
| 26 | + | then throw("dApp owner allowed only") |
---|
| 27 | + | else WriteSet([DataEntry(key, id)]) |
---|
| 28 | + | } |
---|
| 29 | + | |
---|
| 30 | + | |
---|