tx · BQXKmicCeThroyxquwgUZK5gKm4mSN3s9Rdo5GypeT7K

3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG:  -0.01100000 Waves

2024.09.26 08:49 [3300182] smart account 3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG > SELF 0.00000000 Waves

{ "type": 13, "id": "BQXKmicCeThroyxquwgUZK5gKm4mSN3s9Rdo5GypeT7K", "fee": 1100000, "feeAssetId": null, "timestamp": 1727329836983, "version": 2, "chainId": 84, "sender": "3MytuyxG75kHY91sNzmHux9xCzUN8FHM4DG", "senderPublicKey": "4JNWrRNexiT3ApCKPgynPrc9Z7JiEfeMgZHQHsAAdo3F", "proofs": [ "5ntGQtXGVgKAq7rEfNuwCDuoyDVVV1eZYQtEGoW1rUZxxJmyK25XuituBTYvSqjnV5PQF57WyBPh4Q8gD6S7AEqr" ], "script": "base64:AAIFAAAAAAAAACkIAhIFCgMICAESBAoCBAgSBAoCCAgSBQoDCAQIEgYKBAEICAgSAwoBCAAAABEBAAAACWdldFN0ckJ5SwAAAAEAAAADa2V5CQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAJZ2V0SW50QnlLAAAAAQAAAANrZXkJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAtiYWlfYXNzZXRpZAEAAAAgk+FyOHEEm2rommMfBCS3ZFOXLD68ZguDdK9ouySN4kIAAAAACmFkbWluX2FkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRMt+97USOtxJNludqur6uEerVW/OLJLEAAAAAAD25vbl9jaXJjdWxhdGluZwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVOxqMNqLPdIMxcP9+gH3uQ9Up6mTAoNHuwAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAC2RhcHBSdW5uaW5nCQEAAAALdmFsdW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gAAAAECAAAAPFNvbWV0aGluZyB3ZW50IHdyb25nIGR1cmluZyBub24gY2lyY3VsYXRpbmcgYW1vdW50IHdpdGhkcmF3LgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACJZb3UgYXJlIG5vdCBhbGxvd2VkIHRvIGNoYW5nZSB0aGlzAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAALJHQwNTg3MTU5MTAJAQAAAAxpZENhbGxlckRhdGUAAAABBQAAAAFpBAAAAAJpZAgFAAAACyR0MDU4NzE1OTEwAAAAAl8xBAAAAAZjYWxsZXIIBQAAAAskdDA1ODcxNTkxMAAAAAJfMgQAAAAEZGF0ZQgFAAAACyR0MDU4NzE1OTEwAAAAAl8zAwkAAAAAAAACBQAAAAZjYWxsZXIJAAQlAAAAAQUAAAAKYWRtaW5fYWRkcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm5romQ", "height": 3300182, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FV9ZBRKM1f7t38aPwWLyUXAPKpBy6VrQGuAXMiUYbQX5 Next: 9L3rCJmYcSMDtKZTFjvnmbHPWKmDtGuxV58xcVVGW8KZ Diff:
OldNewDifferences
4949
5050
5151 @Callable(invoke)
52-func setConf (key,val_str,val_int,type) = {
52+func setConf (key,val_str,val_int) = {
5353 let caller = toString(invoke.caller)
5454 if (containsElement([toString(admin_addr), toString(this)], caller))
55- then if ((type == "string"))
55+ then if ((size(val_str) > 0))
5656 then [StringEntry(key, val_str)]
5757 else [IntegerEntry(key, val_int)]
5858 else throw("You are not allowed to change this")
6262
6363 @Callable(i)
6464 func appRunning (isLive,message) = {
65- let $t022812320 = idCallerDate(i)
66- let id = $t022812320._1
67- let caller = $t022812320._2
68- let date = $t022812320._3
65+ let $t022702309 = idCallerDate(i)
66+ let id = $t022702309._1
67+ let caller = $t022702309._2
68+ let date = $t022702309._3
6969 if (containsElement([toString(admin_addr), toString(this)], caller))
7070 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
7171 else throw("You are not allowed to change this")
7575
7676 @Callable(i)
7777 func deposit (recipient_address,recipient_network) = {
78- let $t026492688 = getPaymentData(i)
79- let amount = $t026492688._1
80- let asset = $t026492688._2
78+ let $t026382677 = getPaymentData(i)
79+ let amount = $t026382677._1
80+ let asset = $t026382677._2
8181 if ((asset != bai_assetid))
8282 then throw("Only BAI token accepted")
8383 else {
84- let $t027712810 = idCallerDate(i)
85- let id = $t027712810._1
86- let caller = $t027712810._2
87- let date = $t027712810._3
84+ let $t027602799 = idCallerDate(i)
85+ let id = $t027602799._1
86+ let caller = $t027602799._2
87+ let date = $t027602799._3
8888 if ((0 >= (amount - service_fee)))
8989 then throw("Cannot bridge non positive amount!")
9090 else if (!(containsElement(supported_recipients_network, recipient_network)))
9797
9898 @Callable(i)
9999 func finalize (data_key_without_status,reject,msg) = {
100- let $t033453384 = idCallerDate(i)
101- let id = $t033453384._1
102- let caller = $t033453384._2
103- let date = $t033453384._3
100+ let $t033343373 = idCallerDate(i)
101+ let id = $t033343373._1
102+ let caller = $t033343373._2
103+ let date = $t033343373._3
104104 if (containsElement([toString(admin_addr), toString(this)], caller))
105105 then {
106106 let data = valueOrElse(getStrByK(((data_key_without_status + "_") + STATUS_PENDING)), "")
124124 func withdraw (amount,recipient_address,sourceChain,sourceChainDepositTxId) = if ((valueOrElse(getIntByK(((((("WITHDRAW_" + sourceChainDepositTxId) + "_") + recipient_address) + "_") + sourceChain)), 0) != 0))
125125 then throw("Withdraw already processed.")
126126 else {
127- let $t049504989 = idCallerDate(i)
128- let id = $t049504989._1
129- let caller = $t049504989._2
130- let date = $t049504989._3
127+ let $t049394978 = idCallerDate(i)
128+ let id = $t049394978._1
129+ let caller = $t049394978._2
130+ let date = $t049394978._3
131131 if (containsElement([toString(admin_addr), toString(this)], caller))
132132 then {
133133 let bai_balance_before = valueOrElse(assetBalance(this, bai_assetid), 0)
154154
155155 @Callable(i)
156156 func deleteEntry (entry) = {
157- let $t058825921 = idCallerDate(i)
158- let id = $t058825921._1
159- let caller = $t058825921._2
160- let date = $t058825921._3
157+ let $t058715910 = idCallerDate(i)
158+ let id = $t058715910._1
159+ let caller = $t058715910._2
160+ let date = $t058715910._3
161161 if ((caller == toString(admin_addr)))
162162 then [DeleteEntry(entry)]
163163 else throw("no")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getStrByK (key) = getString(this, key)
55
66
77 func getIntByK (key) = getInteger(this, key)
88
99
1010 let bai_assetid = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1'
1111
1212 let admin_addr = Address(base58'3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm')
1313
1414 let non_circulating = Address(base58'3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx')
1515
1616 let dappRunningKey = "conf_dapp_is_running"
1717
1818 let maintenanceMSGKey = "conf_maintenance_msg"
1919
2020 let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true)
2121
2222 let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "")
2323
2424 let STATUS_PENDING = "PENDING"
2525
2626 let STATUS_PROCESSED = "PROCESSED"
2727
2828 let STATUS_REJECTED = "REJECTED"
2929
3030 let supported_recipients_network = split(valueOrElse(getStrByK("supported_recipients_network"), "bnb_base"), "_")
3131
3232 let confirmations_required = valueOrElse(getIntByK("confirmations_required"), 5)
3333
3434 let service_fee = valueOrElse(getIntByK("service_fee"), 25000000)
3535
3636 func getPaymentData (i) = if ((size(i.payments) == 0))
3737 then throw("No payment attached")
3838 else {
3939 let payment = value(i.payments[0])
4040 let amount = value(payment.amount)
4141 let asset = value(payment.assetId)
4242 $Tuple2(amount, asset)
4343 }
4444
4545
4646 func idCallerDate (i) = if (!(dappRunning))
4747 then throw(maintenanceMSG)
4848 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
4949
5050
5151 @Callable(invoke)
52-func setConf (key,val_str,val_int,type) = {
52+func setConf (key,val_str,val_int) = {
5353 let caller = toString(invoke.caller)
5454 if (containsElement([toString(admin_addr), toString(this)], caller))
55- then if ((type == "string"))
55+ then if ((size(val_str) > 0))
5656 then [StringEntry(key, val_str)]
5757 else [IntegerEntry(key, val_int)]
5858 else throw("You are not allowed to change this")
5959 }
6060
6161
6262
6363 @Callable(i)
6464 func appRunning (isLive,message) = {
65- let $t022812320 = idCallerDate(i)
66- let id = $t022812320._1
67- let caller = $t022812320._2
68- let date = $t022812320._3
65+ let $t022702309 = idCallerDate(i)
66+ let id = $t022702309._1
67+ let caller = $t022702309._2
68+ let date = $t022702309._3
6969 if (containsElement([toString(admin_addr), toString(this)], caller))
7070 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
7171 else throw("You are not allowed to change this")
7272 }
7373
7474
7575
7676 @Callable(i)
7777 func deposit (recipient_address,recipient_network) = {
78- let $t026492688 = getPaymentData(i)
79- let amount = $t026492688._1
80- let asset = $t026492688._2
78+ let $t026382677 = getPaymentData(i)
79+ let amount = $t026382677._1
80+ let asset = $t026382677._2
8181 if ((asset != bai_assetid))
8282 then throw("Only BAI token accepted")
8383 else {
84- let $t027712810 = idCallerDate(i)
85- let id = $t027712810._1
86- let caller = $t027712810._2
87- let date = $t027712810._3
84+ let $t027602799 = idCallerDate(i)
85+ let id = $t027602799._1
86+ let caller = $t027602799._2
87+ let date = $t027602799._3
8888 if ((0 >= (amount - service_fee)))
8989 then throw("Cannot bridge non positive amount!")
9090 else if (!(containsElement(supported_recipients_network, recipient_network)))
9191 then throw("Recipient network not supported")
9292 else [StringEntry(((((((((("DEPOSIT_" + id) + "_") + caller) + "_") + recipient_address) + "_") + recipient_network) + "_") + STATUS_PENDING), ((((((((caller + "_") + toString((amount - service_fee))) + "_") + recipient_address) + "_") + recipient_network) + "_") + toString(height)))]
9393 }
9494 }
9595
9696
9797
9898 @Callable(i)
9999 func finalize (data_key_without_status,reject,msg) = {
100- let $t033453384 = idCallerDate(i)
101- let id = $t033453384._1
102- let caller = $t033453384._2
103- let date = $t033453384._3
100+ let $t033343373 = idCallerDate(i)
101+ let id = $t033343373._1
102+ let caller = $t033343373._2
103+ let date = $t033343373._3
104104 if (containsElement([toString(admin_addr), toString(this)], caller))
105105 then {
106106 let data = valueOrElse(getStrByK(((data_key_without_status + "_") + STATUS_PENDING)), "")
107107 if ((data == ""))
108108 then throw("Request not found")
109109 else {
110110 let amount = valueOrElse(parseInt(split(data, "_")[1]), 0)
111111 if ((0 > amount))
112112 then throw("Cannot transfer non positive amount")
113113 else if (reject)
114114 then [DeleteEntry(((data_key_without_status + "_") + STATUS_PENDING)), StringEntry(((data_key_without_status + "_") + STATUS_REJECTED), ((data + "_") + msg)), ScriptTransfer(Address(fromBase58String(split(data, "_")[0])), amount, bai_assetid)]
115115 else [DeleteEntry(((data_key_without_status + "_") + STATUS_PENDING)), StringEntry(((data_key_without_status + "_") + STATUS_PROCESSED), data), ScriptTransfer(non_circulating, amount, bai_assetid)]
116116 }
117117 }
118118 else throw("You are not allowed to change this")
119119 }
120120
121121
122122
123123 @Callable(i)
124124 func withdraw (amount,recipient_address,sourceChain,sourceChainDepositTxId) = if ((valueOrElse(getIntByK(((((("WITHDRAW_" + sourceChainDepositTxId) + "_") + recipient_address) + "_") + sourceChain)), 0) != 0))
125125 then throw("Withdraw already processed.")
126126 else {
127- let $t049504989 = idCallerDate(i)
128- let id = $t049504989._1
129- let caller = $t049504989._2
130- let date = $t049504989._3
127+ let $t049394978 = idCallerDate(i)
128+ let id = $t049394978._1
129+ let caller = $t049394978._2
130+ let date = $t049394978._3
131131 if (containsElement([toString(admin_addr), toString(this)], caller))
132132 then {
133133 let bai_balance_before = valueOrElse(assetBalance(this, bai_assetid), 0)
134134 if ((bai_balance_before == bai_balance_before))
135135 then {
136136 let swap = invoke(non_circulating, "withdraw", [amount], nil)
137137 if ((swap == swap))
138138 then {
139139 let bai_balance_after = valueOrElse(assetBalance(this, bai_assetid), 0)
140140 if ((bai_balance_after == bai_balance_after))
141141 then if (((bai_balance_after - bai_balance_before) == amount))
142142 then [ScriptTransfer(Address(fromBase58String(recipient_address)), amount, bai_assetid), IntegerEntry(((((("WITHDRAW_" + sourceChainDepositTxId) + "_") + recipient_address) + "_") + sourceChain), amount)]
143143 else throw("Something went wrong during non circulating amount withdraw.")
144144 else throw("Strict value is not equal to itself.")
145145 }
146146 else throw("Strict value is not equal to itself.")
147147 }
148148 else throw("Strict value is not equal to itself.")
149149 }
150150 else throw("You are not allowed to change this")
151151 }
152152
153153
154154
155155 @Callable(i)
156156 func deleteEntry (entry) = {
157- let $t058825921 = idCallerDate(i)
158- let id = $t058825921._1
159- let caller = $t058825921._2
160- let date = $t058825921._3
157+ let $t058715910 = idCallerDate(i)
158+ let id = $t058715910._1
159+ let caller = $t058715910._2
160+ let date = $t058715910._3
161161 if ((caller == toString(admin_addr)))
162162 then [DeleteEntry(entry)]
163163 else throw("no")
164164 }
165165
166166
167167 @Verifier(tx)
168168 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
169169

github/deemru/w8io/026f985 
42.67 ms