tx · 5AMGjU5cusckgeRz3EPKhSuMwvGyCgnQsCCMqxhKuZZA 3MwoWxBwFKxjUKK53Rxbnwrs8m2MsVMPPa7: -0.01000000 Waves 2023.11.28 15:29 [2863251] smart account 3MwoWxBwFKxjUKK53Rxbnwrs8m2MsVMPPa7 > SELF 0.00000000 Waves
{ "type": 13, "id": "5AMGjU5cusckgeRz3EPKhSuMwvGyCgnQsCCMqxhKuZZA", "fee": 1000000, "feeAssetId": null, "timestamp": 1701174581379, "version": 2, "chainId": 84, "sender": "3MwoWxBwFKxjUKK53Rxbnwrs8m2MsVMPPa7", "senderPublicKey": "6oay51Q6zPcFP9bSwUC4Potx2KGyD4AUjpL5uLR4QeRN", "proofs": [ "3qzyFbAqSNrwSMQw2sPDnbvAvtrYdxwo8gXDFLM1GxwPnELokaZuiCf5XhXjaEmRpYyEVNv6UuuMCNjDZvynfNTo" ], "script": "base64:AAIFAAAAAAAAABIIAhIOCgwIAQEBCAgBAQEIAQEAAAADAAAAABF1c2VyX2JhbGFuY2VfZGFwcAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM04xczJ3NE5IZ2JyWHhOWlhIOVJ0YVZUOXB0SFJKY2dTcDIAAAAAFERhcHBfQWRkcmVzc19wdWJfa2V5AQAAACDI7Zjahu5VNVhgxzyW6CpbYvUiMMUf5OyBUQlo584acwAAAAARd2hpdGVsaXN0X2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAFERhcHBfQWRkcmVzc19wdWJfa2V5AAAAAQAAAAFpAQAAABVQbGFjZU9yZGVyV2l0aFZvdWNoZXIAAAAMAAAADEZ1bmN0aW9uTmFtZQAAAA5Wb3VjaGVyX0Ftb3VudAAAAAZBbW91bnQAAAAPT3B0aW9uQ291bnRlcklEAAAAB1VzZXJfSUQAAAAMVXNlcl9BZGRyZXNzAAAABVByaWNlAAAAC0NhbGxfTGltaXRzAAAAClB1dF9MaW1pdHMAAAANT3JhY2x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AAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAH+lQH0=", "height": 2863251, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9VmKkK1rJsjizvHBQC9vnbuNnScAThqsexvSWSS4c1nT Next: 3KS2C8NRqbmSTTA9VXLGWpSStstvnPwXqKTML9sqajpX Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = addressFromPublicKey(b) | |
9 | 9 | ||
10 | - | let d = 100000000 | |
11 | - | ||
12 | - | @Callable(e) | |
13 | - | func Issue_Vouchers (f,g,h) = { | |
14 | - | let i = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.") | |
15 | - | let j = (i - f) | |
16 | - | let k = { | |
17 | - | let l = getInteger(this, ("Total_Vouchers_Issued_To_" + h)) | |
18 | - | if ($isInstanceOf(l, "Int")) | |
19 | - | then { | |
20 | - | let m = l | |
21 | - | m | |
22 | - | } | |
23 | - | else 0 | |
24 | - | } | |
25 | - | let n = (k + 1) | |
26 | - | let o = { | |
27 | - | let l = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + h)) | |
28 | - | if ($isInstanceOf(l, "Int")) | |
29 | - | then { | |
30 | - | let m = l | |
31 | - | m | |
32 | - | } | |
33 | - | else 0 | |
34 | - | } | |
35 | - | let p = (o + f) | |
36 | - | let q = { | |
37 | - | let l = getInteger(this, (h + "_Voucher_Balance")) | |
38 | - | if ($isInstanceOf(l, "Int")) | |
39 | - | then { | |
40 | - | let m = l | |
41 | - | m | |
42 | - | } | |
43 | - | else 0 | |
44 | - | } | |
45 | - | let r = (q + f) | |
46 | - | if ((e.caller != c)) | |
47 | - | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
48 | - | else if ((0 >= f)) | |
49 | - | then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.") | |
50 | - | else if ((0 >= j)) | |
51 | - | then throw((("Updated Voucher Balance can't go in negative State of " + toString(j)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
52 | - | else if ((f > d)) | |
53 | - | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(d)) + "/10^8 Waves.")) | |
54 | - | else [IntegerEntry(("Total_Vouchers_Issued_To_" + h), n), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + h), p), IntegerEntry((h + "_Voucher_Balance"), r), IntegerEntry("Available_Vouchers_Balance", j)] | |
55 | - | } | |
56 | - | ||
57 | - | ||
58 | - | ||
59 | - | @Callable(e) | |
60 | - | func placeoptionCallWithVoucher (s,f,t,u,g,h,v,w,x,y,z,A) = { | |
61 | - | let B = invoke(a, s, [t, u, g, h, v, w, x, y, z, A], nil) | |
62 | - | if ((B == B)) | |
63 | - | then if ((e.caller != c)) | |
64 | - | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
65 | - | else [StringEntry("D2D_Status", "Passed")] | |
10 | + | @Callable(d) | |
11 | + | func PlaceOrderWithVoucher (e,f,g,h,i,j,k,l,m,n,o,p) = { | |
12 | + | let q = invoke(a, "Issue_Vouchers", [f, i, j], nil) | |
13 | + | if ((q == q)) | |
14 | + | then { | |
15 | + | let r = invoke(a, e, [g, h, i, j, k, l, m, n, o, p], nil) | |
16 | + | if ((r == r)) | |
17 | + | then if ((d.caller != c)) | |
18 | + | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
19 | + | else [StringEntry("D2D_Status", "Passed")] | |
20 | + | else throw("Strict value is not equal to itself.") | |
21 | + | } | |
66 | 22 | else throw("Strict value is not equal to itself.") | |
67 | 23 | } | |
68 | 24 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = addressFromStringValue("3N1s2w4NHgbrXxNZXH9RtaVT9ptHRJcgSp2") | |
5 | 5 | ||
6 | 6 | let b = base58'EXLfxKmqhQPiProBaoPatTentUSZX5Dd8A8bYDcmfNwt' | |
7 | 7 | ||
8 | 8 | let c = addressFromPublicKey(b) | |
9 | 9 | ||
10 | - | let d = 100000000 | |
11 | - | ||
12 | - | @Callable(e) | |
13 | - | func Issue_Vouchers (f,g,h) = { | |
14 | - | let i = valueOrErrorMessage(getInteger(this, "Available_Vouchers_Balance"), "Available_Vouchers_Balance Entry is not Found. Initiate Fill_Vouchers_Liquidity Function first.") | |
15 | - | let j = (i - f) | |
16 | - | let k = { | |
17 | - | let l = getInteger(this, ("Total_Vouchers_Issued_To_" + h)) | |
18 | - | if ($isInstanceOf(l, "Int")) | |
19 | - | then { | |
20 | - | let m = l | |
21 | - | m | |
22 | - | } | |
23 | - | else 0 | |
24 | - | } | |
25 | - | let n = (k + 1) | |
26 | - | let o = { | |
27 | - | let l = getInteger(this, ("Total_Vouchers_Amount_Issued_To_" + h)) | |
28 | - | if ($isInstanceOf(l, "Int")) | |
29 | - | then { | |
30 | - | let m = l | |
31 | - | m | |
32 | - | } | |
33 | - | else 0 | |
34 | - | } | |
35 | - | let p = (o + f) | |
36 | - | let q = { | |
37 | - | let l = getInteger(this, (h + "_Voucher_Balance")) | |
38 | - | if ($isInstanceOf(l, "Int")) | |
39 | - | then { | |
40 | - | let m = l | |
41 | - | m | |
42 | - | } | |
43 | - | else 0 | |
44 | - | } | |
45 | - | let r = (q + f) | |
46 | - | if ((e.caller != c)) | |
47 | - | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
48 | - | else if ((0 >= f)) | |
49 | - | then throw("Voucher Balance can't be 0 or go in negative State. Increase the Voucher Amount.") | |
50 | - | else if ((0 >= j)) | |
51 | - | then throw((("Updated Voucher Balance can't go in negative State of " + toString(j)) + " /10^8 WAVES. Reduce the Voucher Amount.")) | |
52 | - | else if ((f > d)) | |
53 | - | then throw((("Input Voucher Balance can't exceed the set maximum limit of " + toString(d)) + "/10^8 Waves.")) | |
54 | - | else [IntegerEntry(("Total_Vouchers_Issued_To_" + h), n), IntegerEntry(("Total_Vouchers_Amount_Issued_To_" + h), p), IntegerEntry((h + "_Voucher_Balance"), r), IntegerEntry("Available_Vouchers_Balance", j)] | |
55 | - | } | |
56 | - | ||
57 | - | ||
58 | - | ||
59 | - | @Callable(e) | |
60 | - | func placeoptionCallWithVoucher (s,f,t,u,g,h,v,w,x,y,z,A) = { | |
61 | - | let B = invoke(a, s, [t, u, g, h, v, w, x, y, z, A], nil) | |
62 | - | if ((B == B)) | |
63 | - | then if ((e.caller != c)) | |
64 | - | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
65 | - | else [StringEntry("D2D_Status", "Passed")] | |
10 | + | @Callable(d) | |
11 | + | func PlaceOrderWithVoucher (e,f,g,h,i,j,k,l,m,n,o,p) = { | |
12 | + | let q = invoke(a, "Issue_Vouchers", [f, i, j], nil) | |
13 | + | if ((q == q)) | |
14 | + | then { | |
15 | + | let r = invoke(a, e, [g, h, i, j, k, l, m, n, o, p], nil) | |
16 | + | if ((r == r)) | |
17 | + | then if ((d.caller != c)) | |
18 | + | then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it.")) | |
19 | + | else [StringEntry("D2D_Status", "Passed")] | |
20 | + | else throw("Strict value is not equal to itself.") | |
21 | + | } | |
66 | 22 | else throw("Strict value is not equal to itself.") | |
67 | 23 | } | |
68 | 24 | ||
69 | 25 |
github/deemru/w8io/169f3d6 27.46 ms ◑