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+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAwAAAAFpAQAAAAxEZXBvc2l0RnVuZHMAAAADAAAACVNjb3BlRGVzYwAAAAxEZWxpdmVyYWJsZXMAAAARRnJlZWxhbmNlckFkZHJlc3MEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABxBdHRhY2hlZCBwYXltZW50IGlzIHJlcXVpcmVkAwkAAGYAAAACCQAAaAAAAAIAAAAAAAAAADIAAAAAAAX14QAJAAPwAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAARCVXNkCQAAAgAAAAECAAAAKVlvdSBtdXN0IGhhdmUgNTAgQlVzZCBhdCBsZWFzdCB0byBkZXBvc2l0AwkAAGYAAAACAAAAAAAAAAAyCAUAAAADcG10AAAABmFtb3V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yUGF5bWVudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAABRGcmVlbGFuY2VyQWRkcmVzc1N0cgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwUAAAARRnJlZWxhbmNlckFkZHJlc3MEAAAAEUFkZHJlc3NGcmVlTGFuY2VyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAABRGcmVlbGFuY2VyQWRkcmVzc1N0cgQAAAAOVXNlckFkZHJlc3NTdHIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMFAAAAEUZyZWVsYW5jZXJBZGRyZXNzBAAAABVBZGRyZXNzVXNlckFkZHJlc3NTdHIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAADlVzZXJBZGRyZXNzU3RyAwkAAAAAAAACBQAAAAZhbW91bnQAAAAAAAAAAAAJAAACAAAAAQIAAAA0VXNlcidzIGJhbGFuY2UgaXMgMCBCVXNkYyBjYW5ub3QgcmVhbGl6ZSBhbnkgcGF5bWVudAkABRQAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABFVzZXICAAAACF9QYXltZW50AAAAAAAAAAAACQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEUFkZHJlc3NGcmVlTGFuY2VyBQAAAAZhbW91bnQFAAAABEJVc2QFAAAAA25pbAUAAAAEQlVzZAAAAACLq9vn", "height": 2062910, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2SoAhnVU2qhEiUeGNU4MAbzfNvv9C1jh9SejmtW2HpvY Next: B4NCscQpUgg42CJw4mjsafahK7ecC9RwyWYNm2RgKxP9 Diff:
Old | New | Differences | |
---|---|---|---|
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
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 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func DepositFunds (c,d,e) = { | |
8 | 8 | let f = if ((size(b.payments) == 1)) | |
9 | 9 | then b.payments[0] | |
10 | 10 | else throw("Attached payment is required") | |
11 | 11 | if (((50 * 100000000) > assetBalance(b.caller, a))) | |
12 | 12 | then throw("You must have 50 BUsd at least to deposit") | |
13 | 13 | else if ((50 > f.amount)) | |
14 | 14 | then throw("Cannot deposit less than 50 Busd") | |
15 | 15 | else if (if (if ((c == "")) | |
16 | 16 | then true | |
17 | 17 | else (d == "")) | |
18 | 18 | then true | |
19 | 19 | else (e == "")) | |
20 | 20 | then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty") | |
21 | 21 | 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)] | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(b) | |
27 | 27 | func PayFreelancer () = { | |
28 | 28 | let g = (toBase58String(b.caller.bytes) + "_Payment") | |
29 | 29 | let e = (toBase58String(b.caller.bytes) + "_Freelancer") | |
30 | 30 | let h = { | |
31 | 31 | let i = getInteger(this, g) | |
32 | 32 | if ($isInstanceOf(i, "Int")) | |
33 | 33 | then { | |
34 | 34 | let j = i | |
35 | 35 | j | |
36 | 36 | } | |
37 | 37 | else 0 | |
38 | 38 | } | |
39 | 39 | let k = getStringValue(this, e) | |
40 | 40 | let l = addressFromStringValue(k) | |
41 | 41 | if ((h == 0)) | |
42 | 42 | then throw("Your balance is 0 BUsdc cannot realize any payment") | |
43 | 43 | else $Tuple2([IntegerEntry((toBase58String(b.caller.bytes) + "_Payment"), 0), ScriptTransfer(l, h, a)], a) | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
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 ◑