tx · Daz26Pg7AcUhyPYNaNvFVQs85yjUqgmCroo9oe3Xuy3w 3MsNdm7ZAcUGdroTCNhcNNoP5Mki8BPmth3: -0.01000000 Waves 2023.11.28 10:14 [2862939] smart account 3MsNdm7ZAcUGdroTCNhcNNoP5Mki8BPmth3 > SELF 0.00000000 Waves
{ "type": 13, "id": "Daz26Pg7AcUhyPYNaNvFVQs85yjUqgmCroo9oe3Xuy3w", "fee": 1000000, "feeAssetId": null, "timestamp": 1701155695116, "version": 2, "chainId": 84, "sender": "3MsNdm7ZAcUGdroTCNhcNNoP5Mki8BPmth3", "senderPublicKey": "5HjuMYPyr7sMjFBTkSU6U7rvf92cJQ6xF2HMKjcw973J", "proofs": [ "ELzMjn3gUbTWKyZKwrV5kxLZaN3utDJ3TiippN69BiuMXNufGGN6zuTmcWGvWXwyfQrSbZa7SRGzX4JsNGFoFuK" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMBCAgAAAAMAAAAABZwb29sX2xpcXVpZGl0eV9hZGRyZXNzAgAAACMzTjR3QmdZdFdnSlcyTFRSZWYyZWtXUVRyRVhDUmZYbUdMaAAAAAAURGFwcF9BZGRyZXNzX3B1Yl9rZXkBAAAAIMjtmNqG7lU1WGDHPJboKlti9SIwxR/k7IFRCWjnzhpzAAAAABhwcm9kdWN0X2xhdW5jaF90aW1lc3RhbXAAAAABir9gFiAAAAAAC0N1cnJlbmN5X0lEAgAAAAVXQVZFUwAAAAAUcHJvZHVjdF9sYXVuY2hfZXJyb3ICAAAAI1Byb2R1Y3QgTGF1bmNoIFRpbWVzdGFtcCBpcyBzZXQgYXQgAAAAABBub19wYXltZW50X2Vycm9yAgAAADdObyBwYXltZW50IGF0dGFjaGVkLCBQbGVhc2UgQXR0YWNoIFRva2VuIGluIHBheW1lbnRbMV0uAAAAABJjbG9zZWRfb3JhY2xlX2Vyb3ICAAAAMU9yYWNsZSBpcyBjbG9zZWQuIFdhaXQgVW50aWwgT3JhY2xlIGlzIFR1cm5lZCBPbi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ACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5bMMF0Q==", "height": 2862939, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DGQxed3CRXwKeAm8M9hA5xYDUpdRKexJDLSmQ6ycLbnF Next: 8TY8oZGdgXuDPcuztrGvsRrgesDYJ18XVnpvuL57cocn Diff:
Old | New | Differences | |
---|---|---|---|
59 | 59 | else 0 | |
60 | 60 | } | |
61 | 61 | let z = (y + n) | |
62 | - | if ((m.caller != h)) | |
63 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
64 | - | else if ((0 >= n)) | |
65 | - | then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.") | |
66 | - | else if ((0 >= r)) | |
67 | - | then throw((("Updated Voucher Balance can't go in negative State of " + toString(r)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
68 | - | else if ((n > l)) | |
69 | - | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(l)) + "/10^8 Waves.")) | |
70 | - | else [IntegerEntry(("Total_Vouchers_Issued_To_" + p), v), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + p), x), IntegerEntry(((d + "_") + p), z), IntegerEntry("Available_Vouchers_Balance", r)] | |
62 | + | if ((0 >= n)) | |
63 | + | then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.") | |
64 | + | else if ((0 >= r)) | |
65 | + | then throw((("Updated Voucher Balance can't go in negative State of " + toString(r)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
66 | + | else if ((n > l)) | |
67 | + | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(l)) + "/10^8 Waves.")) | |
68 | + | else [IntegerEntry(("Total_Vouchers_Issued_To_" + p), v), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + p), x), IntegerEntry(((d + "_") + p), z), IntegerEntry("Available_Vouchers_Balance", r)] | |
71 | 69 | } | |
72 | 70 | ||
73 | 71 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N4wBgYtWgJW2LTRef2ekWQTrEXCRfXmGLh" | |
5 | 5 | ||
6 | 6 | let b = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt' | |
7 | 7 | ||
8 | 8 | let c = 1695427860000 | |
9 | 9 | ||
10 | 10 | let d = "WAVES" | |
11 | 11 | ||
12 | 12 | let e = "Product Launch Timestamp is set at " | |
13 | 13 | ||
14 | 14 | let f = "No payment attached, Please Attach Token in payment[1]." | |
15 | 15 | ||
16 | 16 | let g = "Oracle is closed. Wait Until Oracle is Turned On." | |
17 | 17 | ||
18 | 18 | let h = addressFromPublicKey(b) | |
19 | 19 | ||
20 | 20 | let i = 900000 | |
21 | 21 | ||
22 | 22 | let j = 10000000 | |
23 | 23 | ||
24 | 24 | let k = 10000000000 | |
25 | 25 | ||
26 | 26 | let l = 100000000 | |
27 | 27 | ||
28 | 28 | @Callable(m) | |
29 | 29 | func Issue_Vouchers (n,o,p) = { | |
30 | 30 | let q = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.") | |
31 | 31 | let r = (q - n) | |
32 | 32 | let s = { | |
33 | 33 | let t = getInteger(this, ("Total_Vouchers_Issued_To_" + p)) | |
34 | 34 | if ($isInstanceOf(t, "Int")) | |
35 | 35 | then { | |
36 | 36 | let u = t | |
37 | 37 | u | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | let v = (s + 1) | |
42 | 42 | let w = { | |
43 | 43 | let t = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + p)) | |
44 | 44 | if ($isInstanceOf(t, "Int")) | |
45 | 45 | then { | |
46 | 46 | let u = t | |
47 | 47 | u | |
48 | 48 | } | |
49 | 49 | else 0 | |
50 | 50 | } | |
51 | 51 | let x = (w + n) | |
52 | 52 | let y = { | |
53 | 53 | let t = getInteger(this, ((d + "_") + p)) | |
54 | 54 | if ($isInstanceOf(t, "Int")) | |
55 | 55 | then { | |
56 | 56 | let u = t | |
57 | 57 | u | |
58 | 58 | } | |
59 | 59 | else 0 | |
60 | 60 | } | |
61 | 61 | let z = (y + n) | |
62 | - | if ((m.caller != h)) | |
63 | - | then throw((("This Address is not Authorized. Only " + toString(h)) + " is Authorized Address to Sign it.")) | |
64 | - | else if ((0 >= n)) | |
65 | - | then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.") | |
66 | - | else if ((0 >= r)) | |
67 | - | then throw((("Updated Voucher Balance can't go in negative State of " + toString(r)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
68 | - | else if ((n > l)) | |
69 | - | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(l)) + "/10^8 Waves.")) | |
70 | - | else [IntegerEntry(("Total_Vouchers_Issued_To_" + p), v), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + p), x), IntegerEntry(((d + "_") + p), z), IntegerEntry("Available_Vouchers_Balance", r)] | |
62 | + | if ((0 >= n)) | |
63 | + | then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.") | |
64 | + | else if ((0 >= r)) | |
65 | + | then throw((("Updated Voucher Balance can't go in negative State of " + toString(r)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
66 | + | else if ((n > l)) | |
67 | + | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(l)) + "/10^8 Waves.")) | |
68 | + | else [IntegerEntry(("Total_Vouchers_Issued_To_" + p), v), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + p), x), IntegerEntry(((d + "_") + p), z), IntegerEntry("Available_Vouchers_Balance", r)] | |
71 | 69 | } | |
72 | 70 | ||
73 | 71 | ||
74 | 72 | @Verifier(A) | |
75 | 73 | func B () = sigVerify(A.bodyBytes, A.proofs[0], A.senderPublicKey) | |
76 | 74 |
github/deemru/w8io/026f985 20.60 ms ◑