tx · DGwFS22yifjc3wdA3HVJ3Vw8ZgCZRxb7PofGDRc7FBka

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01000000 Waves

2023.09.15 09:54 [2756179] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "DGwFS22yifjc3wdA3HVJ3Vw8ZgCZRxb7PofGDRc7FBka", "fee": 1000000, "feeAssetId": null, "timestamp": 1694760930364, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "39fM3NCH2YPYK5SLGCyNksBV5RK7XaYEeCiY8VCpU8duSk3zRiLbBVDMkHrw7pwzDH5wpFJioDXZM7SvN6Ys3Man" ], "script": "base64:BgIICAISBAoCCAgBAQxnZXRhc3NldGluZm8BB2Fzc2V0SWQEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF0BQckbWF0Y2gwCQDsBwEJANkEAQUHYXNzZXRJZAkAAgECEENhbid0IGZpbmQgYXNzZXQBAWkBFVJlZ2lzdGVyUGFpckZvclZvdGluZwIMRW50ZXJBc3NldElEB2Fzc2V0SWQEDXJlYWRhc3NldGluZm8JAQxnZXRhc3NldGluZm8BBQdhc3NldElkBARwbXQxCQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAEBHBtdDIJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAQQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAJUTgkBASEBCQEJaXNEZWZpbmVkAQgFBHBtdDIHYXNzZXRJZAQJZmV0Y2hwYWlyCQCdCAIFBHRoaXMJAKwCAgIIUGFpcl9VVl8FDEVudGVyQXNzZXRJRAQNYXNzZXRpbmZvcG10MgkA2QQBBQxFbnRlckFzc2V0SUQDCQAAAgUJZmV0Y2hwYWlyBQxFbnRlckFzc2V0SUQJAAIBAiJQYWlyIEFscmVhZHkgRXhpc3QgaW4gVm90aW5nIExpc3QuAwkBAiE9AgkAkAMBCAUBaQhwYXltZW50cwACCQACAQJ8VHdvIGF0dGFjaGVkIGFzc2V0cyBleHBlY3RlZCBhcyBwYXltZW50LiBLaW5kbHkgQXR0YWNoIHBheW1lbnQxID0gQ09ERSBUb2tlbiAmIHBheW1lbnQyID0gVG9rZW4geW91IHdhbnQgdG8gTGlzdCBmb3IgVm90aW5nLgMJAQIhPQIIBQRwbXQyB2Fzc2V0SWQFDWFzc2V0aW5mb3BtdDIJAAIBAjxJbnB1dCBTdHJpbmcgJiBBdHRhY2hlZCBBc3NldElEIGluIHBheW1lbnQyIGlzIG5vdCBtYXRjaGluZy4DCQAAAgUCVE4GCQACAQJuWW91IEF0dGFjaGVkIFROIEFzc2V0IElEIGZvciBWb3RpbmcsIHBsZWFzZSBhdHRhY2ggZnNUTiBpbnN0ZWFkIG9mIFROIG9yIFRva2VuIFlvdSB3YW50IHRvIGxpc3QgaW4gcGF5bWVudFsyXS4JAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICAghQYWlyX1VWXwUMRW50ZXJBc3NldElEBQxFbnRlckFzc2V0SUQFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmy7Zyn", "height": 2756179, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 5avNfTaSLz4hoH2b5i5VwUahtswYMPWve5kvtthMeu1a Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b) = {
5+ let c = b
6+ if ($isInstanceOf(c, "String"))
7+ then {
8+ let d = c
9+ assetInfo(fromBase58String(b))
10+ }
11+ else throw("Can't find asset")
12+ }
13+
14+
15+@Callable(e)
16+func RegisterPairForVoting (f,b) = {
17+ let g = a(b)
18+ let h = value(e.payments[0])
19+ let i = value(e.payments[1])
20+ let j = toBase58String(e.caller.bytes)
21+ let k = !(isDefined(i.assetId))
22+ let l = getString(this, ("Pair_UV_" + f))
23+ let m = fromBase58String(f)
24+ if ((l == f))
25+ then throw("Pair Already Exist in Voting List.")
26+ else if ((size(e.payments) != 2))
27+ then throw("Two attached assets expected as payment. Kindly Attach payment1 = CODE Token & payment2 = Token you want to List for Voting.")
28+ else if ((i.assetId != m))
29+ then throw("Input String & Attached AssetID in payment2 is not matching.")
30+ else if ((k == true))
31+ then throw("You Attached TN Asset ID for Voting, please attach fsTN instead of TN or Token You want to list in payment[2].")
32+ else [StringEntry(("Pair_UV_" + f), f)]
33+ }
34+
35+
36+@Verifier(n)
37+func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey)
38+

github/deemru/w8io/169f3d6 
14.07 ms