tx · Ce6aVNW1X32V4ZS5sTW2XVusyk6pPxmjEmtJPS9wU3gk 3MvTtCYbWDMVJJc6e1rTYPRzh6JBnYkiBZ8: -0.01000000 Waves 2019.08.09 12:54 [623290] smart account 3MvTtCYbWDMVJJc6e1rTYPRzh6JBnYkiBZ8 > SELF 0.00000000 Waves
{ "type": 13, "id": "Ce6aVNW1X32V4ZS5sTW2XVusyk6pPxmjEmtJPS9wU3gk", "fee": 1000000, "feeAssetId": null, "timestamp": 1565344510794, "version": 1, "sender": "3MvTtCYbWDMVJJc6e1rTYPRzh6JBnYkiBZ8", "senderPublicKey": "Dm9NvzmfYXhfemNB9kmWcSzVk5Ni7puk7qLGm2FZryDS", "proofs": [ "3EeaBdyNWxD11J6DNccML9iiM6kfsoVAyeYWoSFyf11djZaRoM247giURTsJShfrRLnE99u1JXSi5iUkSwaKdwRf" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAABZkZXNjcmlwdGlvblVwZGF0ZVByaWNlAAAAAAAF9eEAAAAAAA9saW5rVXBkYXRlUHJpY2UAAAAAAAX14QAAAAAAEXRpY2tlclVwZGF0ZVByaWNlAAAAAAAL68IAAAAAAQAAAAFpAQAAABF1cGRhdGVEZXNjcmlwdGlvbgAAAAMAAAAHYXNzZXRJZAAAAA1pc3N1ZXJBZGRyZXNzAAAAC2Rlc2NyaXB0aW9uBAAAAAVhc3NldAkAA+wAAAABCQEAAAAFdmFsdWUAAAABCQACWQAAAAEFAAAAB2Fzc2V0SWQEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABRpc3N1ZXJEZXNjcmlwdGlvbktleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAASaXNzdWVyRGVzY3JpcHRpb25fAgAAAAE8BQAAAAdhc3NldElkAgAAAAE+AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAuZXJyb3IjMS4gVGhlIHNlcnZpY2UgY2FuIG9ubHkgYmUgcGFpZCBpbiB3YXZlcwMJAABnAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAABZkZXNjcmlwdGlvblVwZGF0ZVByaWNlAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzBQAAAA1pc3N1ZXJBZGRyZXNzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAABRpc3N1ZXJEZXNjcmlwdGlvbktleQUAAAALZGVzY3JpcHRpb24FAAAAA25pbAkAAAIAAAABAgAAADdlcnJvciMzLiBPbmx5IGFzc2V0IGlzc3VlciBjYW4gdXBkYXRlIGFzc2V0IGRlc2NyaXB0aW9uCQAAAgAAAAECAAAAN2Vycm9yIzIuIE9ubHkgYXNzZXQgaXNzdWVyIGNhbiB1cGRhdGUgYXNzZXQgZGVzY3JpcHRpb24AAAAAD2XRgg==", "chainId": 84, "height": 623290, "spentComplexity": 0 } View: original | compacted Prev: none Next: 6r8HQkvAwb32enqjhE2LZ1TPNT2UGrA3WXgdeycsLTVq Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let descriptionUpdatePrice = 100000000 | |
5 | + | ||
6 | + | let linkUpdatePrice = 100000000 | |
7 | + | ||
8 | + | let tickerUpdatePrice = 200000000 | |
9 | + | ||
10 | + | @Callable(i) | |
11 | + | func updateDescription (assetId,issuerAddress,description) = { | |
12 | + | let asset = assetInfo(value(fromBase58String(assetId))) | |
13 | + | let payment = extract(i.payment) | |
14 | + | let callerAddress = toBase58String(i.caller.bytes) | |
15 | + | let issuerDescriptionKey = ((("issuerDescription_" + "<") + assetId) + ">") | |
16 | + | if (isDefined(payment.assetId)) | |
17 | + | then throw("error#1. The service can only be paid in waves") | |
18 | + | else if ((payment.amount >= descriptionUpdatePrice)) | |
19 | + | then if ((callerAddress == issuerAddress)) | |
20 | + | then WriteSet([DataEntry("issuerDescriptionKey", description)]) | |
21 | + | else throw("error#3. Only asset issuer can update asset description") | |
22 | + | else throw("error#2. Only asset issuer can update asset description") | |
23 | + | } | |
24 | + | ||
25 | + |
github/deemru/w8io/169f3d6 17.38 ms ◑