tx · 83a6xv1hRQoPsG3HN5vHRE3VkGAt7ByE1rZsDE8NDUSm

3MvMUdqfEzC66i9SiXzpGydZoWVq62QVn1u:  -0.01100000 Waves

2024.09.26 09:17 [3300208] smart account 3MvMUdqfEzC66i9SiXzpGydZoWVq62QVn1u > SELF 0.00000000 Waves

{ "type": 13, "id": "83a6xv1hRQoPsG3HN5vHRE3VkGAt7ByE1rZsDE8NDUSm", "fee": 1100000, "feeAssetId": null, "timestamp": 1727331442772, "version": 2, "chainId": 84, "sender": "3MvMUdqfEzC66i9SiXzpGydZoWVq62QVn1u", "senderPublicKey": "6zGNeoJosWgW2rdgqFRnrZysWoF8LYkqKAjSFQzXkByB", "proofs": [ "27NLFReAtf9LWJFpkRnj6YZKzaETBcy2Zig4Y3g85Qs7DorjRjBgJkQF7jvWZhGc6DSjsJLAnGkd9iD3C2NcJEcN" ], "script": "base64:AAIFAAAAAAAAACkIAhIFCgMICAESBAoCBAgSBAoCCAgSBQoDCAQIEgYKBAEICAgSAwoBCAAAABEBAAAACWdldFN0ckJ5SwAAAAEAAAADa2V5CQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAJZ2V0SW50QnlLAAAAAQAAAANrZXkJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAtiYWlfYXNzZXRpZAEAAAAgk+FyOHEEm2rommMfBCS3ZFOXLD68ZguDdK9ouySN4kIAAAAACmFkbWluX2FkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRMt+97USOtxJNludqur6uEerVW/OLJLEAAAAAAD25vbl9jaXJjdWxhdGluZwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVOxqMNqLPdIMxcP9+gH3uQ9Up6mTAoNHuwAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAC2RhcHBSdW5uaW5nCQEAA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AAAAJubwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5wDGaKw==", "height": 3300208, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getStrByK (key) = getString(this, key)
5+
6+
7+func getIntByK (key) = getInteger(this, key)
8+
9+
10+let bai_assetid = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1'
11+
12+let admin_addr = Address(base58'3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm')
13+
14+let non_circulating = Address(base58'3NBU8TThHH5YUSk26iGEGU1jHM7vSR3ZTPx')
15+
16+let dappRunningKey = "conf_dapp_is_running"
17+
18+let maintenanceMSGKey = "conf_maintenance_msg"
19+
20+let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true)
21+
22+let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "")
23+
24+let STATUS_PENDING = "PENDING"
25+
26+let STATUS_PROCESSED = "PROCESSED"
27+
28+let STATUS_REJECTED = "REJECTED"
29+
30+let supported_recipients_network = split(valueOrElse(getStrByK("supported_recipients_network"), "bnb_base"), "_")
31+
32+let confirmations_required = valueOrElse(getIntByK("confirmations_required"), 5)
33+
34+let service_fee = valueOrElse(getIntByK("service_fee"), 25000000)
35+
36+func getPaymentData (i) = if ((size(i.payments) == 0))
37+ then throw("No payment attached")
38+ else {
39+ let payment = value(i.payments[0])
40+ let amount = value(payment.amount)
41+ let asset = value(payment.assetId)
42+ $Tuple2(amount, asset)
43+ }
44+
45+
46+func idCallerDate (i) = if (!(dappRunning))
47+ then throw(maintenanceMSG)
48+ else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
49+
50+
51+@Callable(invoke)
52+func setConf (key,val_str,val_int) = {
53+ let caller = toString(invoke.caller)
54+ if (containsElement([toString(admin_addr), toString(this)], caller))
55+ then if ((size(val_str) > 0))
56+ then [StringEntry(key, val_str)]
57+ else [IntegerEntry(key, val_int)]
58+ else throw("You are not allowed to change this")
59+ }
60+
61+
62+
63+@Callable(i)
64+func appRunning (isLive,message) = {
65+ let $t022702309 = idCallerDate(i)
66+ let id = $t022702309._1
67+ let caller = $t022702309._2
68+ let date = $t022702309._3
69+ if (containsElement([toString(admin_addr), toString(this)], caller))
70+ then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
71+ else throw("You are not allowed to change this")
72+ }
73+
74+
75+
76+@Callable(i)
77+func deposit (recipient_address,recipient_network) = {
78+ let $t026382677 = getPaymentData(i)
79+ let amount = $t026382677._1
80+ let asset = $t026382677._2
81+ if ((asset != bai_assetid))
82+ then throw("Only BAI token accepted")
83+ else {
84+ let $t027602799 = idCallerDate(i)
85+ let id = $t027602799._1
86+ let caller = $t027602799._2
87+ let date = $t027602799._3
88+ if ((0 >= (amount - service_fee)))
89+ then throw("Cannot bridge non positive amount!")
90+ else if (!(containsElement(supported_recipients_network, recipient_network)))
91+ then throw("Recipient network not supported")
92+ else [StringEntry(((((((((("DEPOSIT_" + id) + "_") + caller) + "_") + recipient_address) + "_") + recipient_network) + "_") + STATUS_PENDING), ((((((((((caller + "_") + toString((amount - service_fee))) + "_") + recipient_address) + "_") + recipient_network) + "_") + toString(height)) + "_") + toString(service_fee)))]
93+ }
94+ }
95+
96+
97+
98+@Callable(i)
99+func finalize (data_key_without_status,reject,msg) = {
100+ let $t033603399 = idCallerDate(i)
101+ let id = $t033603399._1
102+ let caller = $t033603399._2
103+ let date = $t033603399._3
104+ if (containsElement([toString(admin_addr), toString(this)], caller))
105+ then {
106+ let data = valueOrElse(getStrByK(((data_key_without_status + "_") + STATUS_PENDING)), "")
107+ if ((data == ""))
108+ then throw("Request not found")
109+ else {
110+ let amount = valueOrElse(parseInt(split(data, "_")[1]), 0)
111+ if ((0 > amount))
112+ then throw("Cannot transfer non positive amount")
113+ else {
114+ let fee = valueOrElse(parseInt(split(data, "_")[5]), 25000000)
115+ if (reject)
116+ then [DeleteEntry(((data_key_without_status + "_") + STATUS_PENDING)), StringEntry(((data_key_without_status + "_") + STATUS_REJECTED), ((data + "_") + msg)), ScriptTransfer(admin_addr, fee, bai_assetid), ScriptTransfer(Address(fromBase58String(split(data, "_")[0])), amount, bai_assetid)]
117+ else [DeleteEntry(((data_key_without_status + "_") + STATUS_PENDING)), StringEntry(((data_key_without_status + "_") + STATUS_PROCESSED), data), ScriptTransfer(admin_addr, fee, bai_assetid), ScriptTransfer(non_circulating, amount, bai_assetid)]
118+ }
119+ }
120+ }
121+ else throw("You are not allowed to change this")
122+ }
123+
124+
125+
126+@Callable(i)
127+func withdraw (amount,recipient_address,sourceChain,sourceChainDepositTxId) = if ((valueOrElse(getIntByK(((((("WITHDRAW_" + sourceChainDepositTxId) + "_") + recipient_address) + "_") + sourceChain)), 0) != 0))
128+ then throw("Withdraw already processed.")
129+ else {
130+ let $t051445183 = idCallerDate(i)
131+ let id = $t051445183._1
132+ let caller = $t051445183._2
133+ let date = $t051445183._3
134+ if (containsElement([toString(admin_addr), toString(this)], caller))
135+ then {
136+ let bai_balance_before = valueOrElse(assetBalance(this, bai_assetid), 0)
137+ if ((bai_balance_before == bai_balance_before))
138+ then {
139+ let swap = invoke(non_circulating, "withdraw", [amount], nil)
140+ if ((swap == swap))
141+ then {
142+ let bai_balance_after = valueOrElse(assetBalance(this, bai_assetid), 0)
143+ if ((bai_balance_after == bai_balance_after))
144+ then if (((bai_balance_after - bai_balance_before) == amount))
145+ then [ScriptTransfer(Address(fromBase58String(recipient_address)), amount, bai_assetid), IntegerEntry(((((("WITHDRAW_" + sourceChainDepositTxId) + "_") + recipient_address) + "_") + sourceChain), amount)]
146+ else throw("Something went wrong during non circulating amount withdraw.")
147+ else throw("Strict value is not equal to itself.")
148+ }
149+ else throw("Strict value is not equal to itself.")
150+ }
151+ else throw("Strict value is not equal to itself.")
152+ }
153+ else throw("You are not allowed to change this")
154+ }
155+
156+
157+
158+@Callable(i)
159+func deleteEntry (entry) = {
160+ let $t060766115 = idCallerDate(i)
161+ let id = $t060766115._1
162+ let caller = $t060766115._2
163+ let date = $t060766115._3
164+ if ((caller == toString(admin_addr)))
165+ then [DeleteEntry(entry)]
166+ else throw("no")
167+ }
168+
169+
170+@Verifier(tx)
171+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
172+

github/deemru/w8io/026f985 
16.83 ms