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 getassetinfo (assetId) = match assetId {
5+ case t: String =>
6+ assetInfo(fromBase58String(assetId))
7+ case _ =>
8+ throw("Can't find asset")
9+}
10+
11+
12+@Callable(i)
13+func RegisterPairForVoting (EnterAssetID,assetId) = {
14+ let readassetinfo = getassetinfo(assetId)
15+ let pmt1 = value(i.payments[0])
16+ let pmt2 = value(i.payments[1])
17+ let currentKey = toBase58String(i.caller.bytes)
18+ let TN = !(isDefined(pmt2.assetId))
19+ let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
20+ let assetinfopmt2 = fromBase58String(EnterAssetID)
21+ if ((fetchpair == EnterAssetID))
22+ then throw("Pair Already Exist in Voting List.")
23+ else if ((size(i.payments) != 2))
24+ then throw("Two attached assets expected as payment. Kindly Attach payment1 = CODE Token & payment2 = Token you want to List for Voting.")
25+ else if ((pmt2.assetId != assetinfopmt2))
26+ then throw("Input String & Attached AssetID in payment2 is not matching.")
27+ else if ((TN == true))
28+ then throw("You Attached TN Asset ID for Voting, please attach fsTN instead of TN or Token You want to list in payment[2].")
29+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID)]
30+ }
31+
32+
33+@Verifier(tx)
34+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
35+

github/deemru/w8io/169f3d6 
15.92 ms