tx · GGiabJz4uaPQR7zk6f1P4Kdr6EeL4dCUxjGEiZZQRXcf

3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK:  -0.01000000 Waves

2022.05.22 15:57 [2062910] smart account 3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK > SELF 0.00000000 Waves

{ "type": 13, "id": "GGiabJz4uaPQR7zk6f1P4Kdr6EeL4dCUxjGEiZZQRXcf", "fee": 1000000, "feeAssetId": null, "timestamp": 1653224244036, "version": 2, "chainId": 84, "sender": "3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK", "senderPublicKey": "2bV4VobJC5a6L6e7or9PFXQhQ1KtkZW1UYzjAvMzs6A8", "proofs": [ "3mEHTAd8AGx6RB9cho2rS1MZUhTc6uGdKB17ackzSQT3e9Q7By2yieTunk5eQ3szYG3ykKY41VBzvUJhCNTUX8KH" ], "script": "base64:AAIFAAAAAAAAABEIAhIFCgMICAgSABIECgIICAAAAAEAAAAABEJVc2QBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAwAAAAFpAQAAAAxEZXBvc2l0RnVuZHMAAAADAAAACVNjb3BlRGVzYwAAAAxEZWxpdmVyYWJsZXMAAAARRnJlZWxhbmNlckFkZHJlc3MEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABxBdHRhY2hlZCBwYXltZW50IGlzIHJlcXVpcmVkAwkAAGYAAAACCQAAaAAAAAIAAAAAAAAAADIAAAAAAAX14QAJAAPwAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAARCVXNkCQAAAgAAAAECAAAAKVlvdSBtdXN0IGhhdmUgNTAgQlVzZCBhdCBsZWFzdCB0byBkZXBvc2l0AwkAAGYAAAACAAAAAAAAAAAyCAUAAAADcG10AAAABmFtb3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VyUGF5bWVudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAABRGcmVlbGFuY2VyQWRkcmVzc1N0cgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwUAAAARRnJlZWxhbmNlckFkZHJlc3MEAAAAEUFkZHJlc3NGcmVlTGFuY2VyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAABRGcmVlbGFuY2VyQWRkcmVzc1N0cgQAAAAOVXNlckFkZHJlc3NTdHIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMFAAAAEUZyZWVsYW5jZXJBZGRyZXNzBAAAABVBZGRyZXNzVXNlckFkZHJlc3NTdHIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAADlVzZXJBZGRyZXNzU3RyAwkAAAAAAAACBQAAAAZhbW91bnQAAAAAAAAAAAAJAAACAAAAAQIAAAA0VXNlcidzIGJhbGFuY2UgaXMgMCBCVXNkYyBjYW5ub3QgcmVhbGl6ZSBhbnkgcGF5bWVudAkABRQAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABFVzZXICAAAACF9QYXltZW50AAAAAAAAAAAACQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEUFkZHJlc3NGcmVlTGFuY2VyBQAAAAZhbW91bnQFAAAABEJVc2QFAAAAA25pbAUAAAAEQlVzZAAAAACLq9vn", "height": 2062910, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2SoAhnVU2qhEiUeGNU4MAbzfNvv9C1jh9SejmtW2HpvY Next: B4NCscQpUgg42CJw4mjsafahK7ecC9RwyWYNm2RgKxP9 Diff:
OldNewDifferences
4444 }
4545
4646
47+
48+@Callable(b)
49+func AdminTransfer (m,n) = {
50+ let g = (m + "_Payment")
51+ let e = (m + "_Freelancer")
52+ let h = {
53+ let i = getInteger(this, g)
54+ if ($isInstanceOf(i, "Int"))
55+ then {
56+ let j = i
57+ j
58+ }
59+ else 0
60+ }
61+ let k = getStringValue(this, e)
62+ let l = addressFromStringValue(k)
63+ let o = getStringValue(this, e)
64+ let p = addressFromStringValue(o)
65+ if ((h == 0))
66+ then throw("User's balance is 0 BUsdc cannot realize any payment")
67+ else $Tuple2([IntegerEntry((m + "_Payment"), 0), ScriptTransfer(l, h, a)], a)
68+ }
69+
70+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
55
66 @Callable(b)
77 func DepositFunds (c,d,e) = {
88 let f = if ((size(b.payments) == 1))
99 then b.payments[0]
1010 else throw("Attached payment is required")
1111 if (((50 * 100000000) > assetBalance(b.caller, a)))
1212 then throw("You must have 50 BUsd at least to deposit")
1313 else if ((50 > f.amount))
1414 then throw("Cannot deposit less than 50 Busd")
1515 else if (if (if ((c == ""))
1616 then true
1717 else (d == ""))
1818 then true
1919 else (e == ""))
2020 then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty")
2121 else [StringEntry((toBase58String(b.caller.bytes) + "_Scope"), c), StringEntry((toBase58String(b.caller.bytes) + "_Deliv"), d), StringEntry((toBase58String(b.caller.bytes) + "_Freelancer"), e), IntegerEntry((toBase58String(b.caller.bytes) + "_Payment"), f.amount)]
2222 }
2323
2424
2525
2626 @Callable(b)
2727 func PayFreelancer () = {
2828 let g = (toBase58String(b.caller.bytes) + "_Payment")
2929 let e = (toBase58String(b.caller.bytes) + "_Freelancer")
3030 let h = {
3131 let i = getInteger(this, g)
3232 if ($isInstanceOf(i, "Int"))
3333 then {
3434 let j = i
3535 j
3636 }
3737 else 0
3838 }
3939 let k = getStringValue(this, e)
4040 let l = addressFromStringValue(k)
4141 if ((h == 0))
4242 then throw("Your balance is 0 BUsdc cannot realize any payment")
4343 else $Tuple2([IntegerEntry((toBase58String(b.caller.bytes) + "_Payment"), 0), ScriptTransfer(l, h, a)], a)
4444 }
4545
4646
47+
48+@Callable(b)
49+func AdminTransfer (m,n) = {
50+ let g = (m + "_Payment")
51+ let e = (m + "_Freelancer")
52+ let h = {
53+ let i = getInteger(this, g)
54+ if ($isInstanceOf(i, "Int"))
55+ then {
56+ let j = i
57+ j
58+ }
59+ else 0
60+ }
61+ let k = getStringValue(this, e)
62+ let l = addressFromStringValue(k)
63+ let o = getStringValue(this, e)
64+ let p = addressFromStringValue(o)
65+ if ((h == 0))
66+ then throw("User's balance is 0 BUsdc cannot realize any payment")
67+ else $Tuple2([IntegerEntry((m + "_Payment"), 0), ScriptTransfer(l, h, a)], a)
68+ }
69+
70+

github/deemru/w8io/169f3d6 
36.44 ms