tx · AWMygA2NbaNaN4vvaXGKBJgwmv5yNSNNMnRxNJVJv3AR
3N9uzN2kjrwCnrmHAhw7m3FdKhkJ69SGL6F: -0.01000000 Waves
2020.03.12 17:39 [906080] smart account 3N9uzN2kjrwCnrmHAhw7m3FdKhkJ69SGL6F > SELF 0.00000000 Waves
{
"type": 13,
"id": "AWMygA2NbaNaN4vvaXGKBJgwmv5yNSNNMnRxNJVJv3AR",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1584023966016,
"version": 1,
"sender": "3N9uzN2kjrwCnrmHAhw7m3FdKhkJ69SGL6F",
"senderPublicKey": "9mMgaH1kqUFX5hZW9cQ81VCgroZLfdP6VZWfZL59gZDd",
"proofs": [
"2wT4wVmiiLZjKCjApb8d5opjLoqYtf3v15S2F5g8gjsTSf67XNeSZD3HkP8yM92zB8dSG8J8U57SEe7FLQVV6tqw"
],
"script": "base64:AAIDAAAAAAAAAA0IARIDCgEIEgQKAggBAAAAAAAAAAIAAAABaQEAAAAHcmVxdWVzdAAAAAEAAAAEbmFtZQQAAAAMd2FzUmVxdWVzdGVkBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAABG5hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAYHAwUAAAAMd2FzUmVxdWVzdGVkCQAAAgAAAAECAAAAJVRoZSBjZXJ0aWZpY2F0ZSB3YXMgYWxyZWFkeSByZXF1ZXN0ZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABG5hbWUAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAAAdhcHByb3ZlAAAAAgAAAARuYW1lAAAAAmlkAwkBAAAAAiE9AAAAAgUAAAAEdGhpcwgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAF2RBcHAgb3duZXIgYWxsb3dlZCBvbmx5CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAARuYW1lBQAAAAJpZAUAAAADbmlsAAAAAM/5Lv4=",
"chainId": 84,
"height": 906080,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: GitUvDLTkfEcvrGpHy3nQBRHYhsgUtvv26izUBRqnJER
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 wasRequested = match getInteger(this, name) { |
---|
| 9 | + | case a: Int => |
---|
| 10 | + | true |
---|
| 11 | + | case _ => |
---|
| 12 | + | false |
---|
| 13 | + | } |
---|
| 14 | + | if (wasRequested) |
---|
| 15 | + | then throw("The certificate was already requested") |
---|
| 16 | + | else WriteSet([DataEntry(name, 0)]) |
---|
| 17 | + | } |
---|
| 18 | + | |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | @Callable(i) |
---|
| 22 | + | func approve (name,id) = if ((this != i.caller)) |
---|
| 23 | + | then throw("dApp owner allowed only") |
---|
| 24 | + | else WriteSet([DataEntry(name, id)]) |
---|
| 25 | + | |
---|
| 26 | + | |
---|