tx · GYPVqiwDogKNhH12xTiir7o8qCy7he912Kn3SnxBNktR

3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ:  -0.01000000 Waves

2022.05.06 15:18 [2039830] smart account 3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ > SELF 0.00000000 Waves

{ "type": 13, "id": "GYPVqiwDogKNhH12xTiir7o8qCy7he912Kn3SnxBNktR", "fee": 1000000, "feeAssetId": null, "timestamp": 1651839496418, "version": 2, "chainId": 84, "sender": "3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ", "senderPublicKey": "BhRnrwd6wVHSkSaWXCjQRjaoXcpCdUW2hkJD6V7uVDxN", "proofs": [ "3Zt2KnTUnEM4R9VjkR2Es8H6CSPUWSSgecscxGTGSRjziTnK2nwpCTmdeNeJ6sViWGSj6kpX8zG8TpXFxaf9ZpZi" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEIEgASBAoCCAESAwoBARIFCgMICAESAAAAAAkAAAAACnNoaW55d2dnaWQBAAAAIIlpzwL/trq51HGW13m4mXYmsHTQd3n0c26G8PRznwYmAAAAAAxhZG1pbkFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAAA1hc3NldHNBZGRyZXNzAQAAACDXjrTR9Gr9faKenNTX4IYbD8zRUBJyWtIyvDaCyh4pFQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAAA10cnlHZXRCb29sZWFuAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2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bGVyCQEAAAALaW50ZXJuYWxQYXkAAAACBQAAAApjYWxsZXJBZGRyBQAAAAZhbW91bnQAAAABaQEAAAANdHJhbnNmZXJDb2lucwAAAAMAAAALZnJvbUFkZHJlc3MAAAAJdG9BZGRyZXNzAAAABmFtb3VudAMDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAADGFkbWluQWRkcmVzcwkBAAAAAiE9AAAAAggIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAANYXNzZXRzQWRkcmVzcwcJAAACAAAAAQIAAAAweW91IGFyZSBub3QgYXV0aG9yaXplZCB0byBwZXJmb3JtIHRoaXMgb3BlcmF0aW9uCQEAAAAQaW50ZXJuYWxUcmFuc2ZlcgAAAAMFAAAAC2Zyb21BZGRyZXNzBQAAAAl0b0FkZHJlc3MFAAAABmFtb3VudAAAAAFpAQAAAAZSZWRlZW0AAAAABAAAAAphZGRyZXNzU3RyCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgQAAAAOcmVzZXJ2ZWRBbW91bnQJAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQkAASwAAAACBQAAAAphZGRyZXNzU3RyAgAAAAlfUmVzZXJ2ZWQDCQAAAAAAAAIFAAAADnJlc2VydmVkQW1vdW50AAAAAAAAAAAACQAAAgAAAAECAAAAEU5vdGhpbmcgdG8gcmVkZWVtCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAKYWRkcmVzc1N0cgIAAAAJX1Jlc2VydmVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAOcmVzZXJ2ZWRBbW91bnQFAAAACnNoaW55d2dnaWQFAAAAA25pbAAAAACnIxnU", "height": 2039830, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GdkZMMoDfS7xogYUG8FU5XtZRZgBxxxA6WU72YFZ384w Next: 4FQepgcGSUiM7szPq1pqp5wDqwP9Hxvm9FFWMXP3zhLk Diff:
OldNewDifferences
55
66 let b = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9")
77
8-let c = base58'3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv'
8+let c = base58'FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN'
99
1010 func d (e) = {
1111 let f = getInteger(this, e)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf'
55
66 let b = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9")
77
8-let c = base58'3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv'
8+let c = base58'FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN'
99
1010 func d (e) = {
1111 let f = getInteger(this, e)
1212 if ($isInstanceOf(f, "Int"))
1313 then {
1414 let g = f
1515 g
1616 }
1717 else 0
1818 }
1919
2020
2121 func h (e) = {
2222 let f = getBoolean(this, e)
2323 if ($isInstanceOf(f, "Boolean"))
2424 then {
2525 let g = f
2626 g
2727 }
2828 else false
2929 }
3030
3131
3232 func i (j,k) = {
3333 let l = d((j + "_Deposit"))
3434 [IntegerEntry((j + "_Deposit"), (l + k))]
3535 }
3636
3737
3838 func m (j,l) = {
3939 let n = d((j + "_Deposit"))
4040 if ((0 > (n - l)))
4141 then throw("Not enough deposit to build.")
4242 else if (((n - l) == 0))
4343 then [DeleteEntry((j + "_Deposit"))]
4444 else [IntegerEntry((j + "_Deposit"), (n - l))]
4545 }
4646
4747
4848 func o (j,l) = {
4949 let p = d((j + "_Reserved"))
5050 [IntegerEntry((j + "_Reserved"), (p + l))]
5151 }
5252
5353
5454 func q (r,s,l) = (m(r, l) ++ i(s, l))
5555
5656
5757 @Callable(t)
5858 func setAssetAddress (u) = if (if ((t.caller != this))
5959 then (t.caller != b)
6060 else false)
6161 then throw("you are not authorized to perform this operation")
6262 else [StringEntry("AssetAddress", u)]
6363
6464
6565
6666 @Callable(t)
6767 func Deposit () = {
6868 let j = toString(t.originCaller)
6969 let v = t.payments[0]
7070 if ((v == v))
7171 then {
7272 let k = value(t.payments[0].amount)
7373 if ((k == k))
7474 then {
7575 let w = v.assetId
7676 if ((w == w))
7777 then if ((w != a))
7878 then throw("Only $HEG payments allowed")
7979 else {
8080 let l = d((j + "_Deposit"))
8181 i(j, (l + k))
8282 }
8383 else throw("Strict value is not equal to itself.")
8484 }
8585 else throw("Strict value is not equal to itself.")
8686 }
8787 else throw("Strict value is not equal to itself.")
8888 }
8989
9090
9191
9292 @Callable(t)
9393 func Pay (j,l) = if (if (if ((t.caller != this))
9494 then (t.caller != b)
9595 else false)
9696 then (t.caller.bytes != c)
9797 else false)
9898 then throw("you are not authorized to perform this operation")
9999 else m(j, l)
100100
101101
102102
103103 @Callable(t)
104104 func CallerPay (l) = {
105105 let x = toString(t.caller)
106106 m(x, l)
107107 }
108108
109109
110110
111111 @Callable(t)
112112 func transferCoins (r,s,l) = if (if ((t.caller != b))
113113 then (t.caller.bytes != c)
114114 else false)
115115 then throw("you are not authorized to perform this operation")
116116 else q(r, s, l)
117117
118118
119119
120120 @Callable(t)
121121 func Redeem () = {
122122 let j = toString(t.caller)
123123 let p = d((j + "_Reserved"))
124124 if ((p == 0))
125125 then throw("Nothing to redeem")
126126 else [DeleteEntry((j + "_Reserved")), ScriptTransfer(t.caller, p, a)]
127127 }
128128
129129

github/deemru/w8io/026f985 
27.77 ms