tx · 5bgQwdmxfFfFCcYYDU1y5vycz1imviBojKEciesrKr95 3NAg879tKUJh949h21umkwiaRQhwZftz1BE: -0.01400000 Waves 2019.08.09 13:58 [623353] smart account 3NAg879tKUJh949h21umkwiaRQhwZftz1BE > SELF 0.00000000 Waves
{ "type": 13, "id": "5bgQwdmxfFfFCcYYDU1y5vycz1imviBojKEciesrKr95", "fee": 1400000, "feeAssetId": null, "timestamp": 1565348322959, "version": 1, "sender": "3NAg879tKUJh949h21umkwiaRQhwZftz1BE", "senderPublicKey": "BqY2jhkQCcbidtQdQZu6f9RV3AkFAS8VPToHxwYu1KdJ", "proofs": [ "3Kah6hvufXdQzah812oiee2pURYYk2hVwqGD3xVMSWLwZhFMV6xMAFxDxDDt1DErDHduvZqizow4Pcd4NdXwHdkW" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAABZkZXNjcmlwdGlvblVwZGF0ZVByaWNlAAAAAAAF9eEAAAAAAA9saW5rVXBkYXRlUHJpY2UAAAAAAAX14QAAAAAAEXRpY2tlclVwZGF0ZVByaWNlAAAAAAAL68IAAAAAABx0aWNrZXJDYXRhbG9ndWVPcmFjbGVBZGRyZXNzCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNNeEh4VzVWV3E0S3JXY2JoRmZ4S3JhZlhtNG1MNnJaSGZqAQAAABRnZXRTdHJpbmdGcm9tQWNjb3VudAAAAAIAAAAOYWNjb3VudEFkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAADmFjY291bnRBZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwUAAAAEdW5pdAAAAAIAAAABaQEAAAARdXBkYXRlRGVzY3JpcHRpb24AAAADAAAAB2Fzc2V0SWQAAAANaXNzdWVyQWRkcmVzcwAAAAtkZXNjcmlwdGlvbgQAAAAHcGF5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K7vgcvA7pSo5nKN78 Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = 200000000 | |
9 | 9 | ||
10 | - | @Callable(d) | |
11 | - | func updateDescription (e,f,g) = { | |
12 | - | let h = assetInfo(value(fromBase58String(e))) | |
13 | - | let i = extract(d.payment) | |
14 | - | let j = toBase58String(d.caller.bytes) | |
15 | - | let k = ((("issuerDescription_" + "<") + e) + ">") | |
16 | - | if (isDefined(i.assetId)) | |
10 | + | let d = addressFromStringValue("3MxHxW5VWq4KrWcbhFfxKrafXm4mL6rZHfj") | |
11 | + | ||
12 | + | func e (f,g) = { | |
13 | + | let h = getString(f, g) | |
14 | + | if ($isInstanceOf(h, "String")) | |
15 | + | then { | |
16 | + | let i = h | |
17 | + | i | |
18 | + | } | |
19 | + | else unit | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | @Callable(j) | |
24 | + | func updateDescription (k,l,m) = { | |
25 | + | let n = extract(j.payment) | |
26 | + | let o = toBase58String(j.caller.bytes) | |
27 | + | let p = ((("issuerDescription_" + "<") + k) + ">") | |
28 | + | if (isDefined(n.assetId)) | |
17 | 29 | then throw("error#1. The service can only be paid in waves") | |
18 | - | else if ((i.amount >= a)) | |
19 | - | then if ((j == f)) | |
20 | - | then WriteSet([DataEntry(k, g)]) | |
30 | + | else if ((n.amount >= a)) | |
31 | + | then if ((o == l)) | |
32 | + | then WriteSet([DataEntry(p, m)]) | |
33 | + | else throw("error#3. Only asset issuer can update asset description") | |
34 | + | else throw("error#2. Insufficient payment for asset description updaate service.") | |
35 | + | } | |
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | @Callable(j) | |
40 | + | func updateTicker (k,l,q) = { | |
41 | + | let n = extract(j.payment) | |
42 | + | let o = toBase58String(j.caller.bytes) | |
43 | + | let r = ((("issuerTicker_" + "<") + k) + ">") | |
44 | + | if (isDefined(n.assetId)) | |
45 | + | then throw("error#1. The service can only be paid in waves") | |
46 | + | else if ((n.amount >= c)) | |
47 | + | then if ((o == l)) | |
48 | + | then { | |
49 | + | let s = e(d, q) | |
50 | + | if ((s != unit)) | |
51 | + | then throw("Asset with such ticker is already exist") | |
52 | + | else WriteSet([DataEntry(r, q)]) | |
53 | + | } | |
21 | 54 | else throw("error#3. Only asset issuer can update asset description") | |
22 | 55 | else throw("error#2. Insufficient payment for asset description updaate service.") | |
23 | 56 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 200000000 | |
9 | 9 | ||
10 | - | @Callable(d) | |
11 | - | func updateDescription (e,f,g) = { | |
12 | - | let h = assetInfo(value(fromBase58String(e))) | |
13 | - | let i = extract(d.payment) | |
14 | - | let j = toBase58String(d.caller.bytes) | |
15 | - | let k = ((("issuerDescription_" + "<") + e) + ">") | |
16 | - | if (isDefined(i.assetId)) | |
10 | + | let d = addressFromStringValue("3MxHxW5VWq4KrWcbhFfxKrafXm4mL6rZHfj") | |
11 | + | ||
12 | + | func e (f,g) = { | |
13 | + | let h = getString(f, g) | |
14 | + | if ($isInstanceOf(h, "String")) | |
15 | + | then { | |
16 | + | let i = h | |
17 | + | i | |
18 | + | } | |
19 | + | else unit | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | @Callable(j) | |
24 | + | func updateDescription (k,l,m) = { | |
25 | + | let n = extract(j.payment) | |
26 | + | let o = toBase58String(j.caller.bytes) | |
27 | + | let p = ((("issuerDescription_" + "<") + k) + ">") | |
28 | + | if (isDefined(n.assetId)) | |
17 | 29 | then throw("error#1. The service can only be paid in waves") | |
18 | - | else if ((i.amount >= a)) | |
19 | - | then if ((j == f)) | |
20 | - | then WriteSet([DataEntry(k, g)]) | |
30 | + | else if ((n.amount >= a)) | |
31 | + | then if ((o == l)) | |
32 | + | then WriteSet([DataEntry(p, m)]) | |
33 | + | else throw("error#3. Only asset issuer can update asset description") | |
34 | + | else throw("error#2. Insufficient payment for asset description updaate service.") | |
35 | + | } | |
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | @Callable(j) | |
40 | + | func updateTicker (k,l,q) = { | |
41 | + | let n = extract(j.payment) | |
42 | + | let o = toBase58String(j.caller.bytes) | |
43 | + | let r = ((("issuerTicker_" + "<") + k) + ">") | |
44 | + | if (isDefined(n.assetId)) | |
45 | + | then throw("error#1. The service can only be paid in waves") | |
46 | + | else if ((n.amount >= c)) | |
47 | + | then if ((o == l)) | |
48 | + | then { | |
49 | + | let s = e(d, q) | |
50 | + | if ((s != unit)) | |
51 | + | then throw("Asset with such ticker is already exist") | |
52 | + | else WriteSet([DataEntry(r, q)]) | |
53 | + | } | |
21 | 54 | else throw("error#3. Only asset issuer can update asset description") | |
22 | 55 | else throw("error#2. Insufficient payment for asset description updaate service.") | |
23 | 56 | } | |
24 | 57 | ||
25 | 58 |
github/deemru/w8io/169f3d6 33.23 ms ◑