tx · 5avNfTaSLz4hoH2b5i5VwUahtswYMPWve5kvtthMeu1a

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01000000 Waves

2023.09.15 09:57 [2756184] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "5avNfTaSLz4hoH2b5i5VwUahtswYMPWve5kvtthMeu1a", "fee": 1000000, "feeAssetId": null, "timestamp": 1694761123015, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "4YH1bwM8uJcAX6spQg8Fh8s6c5hVGoZs9Bu2o46PmK59EQzT3r9gdkCD28zz2LiwZvvQmHJDtgag1EbQkH7f3qBH" ], "script": "base64:BgIICAISBAoCCAgBAQxnZXRhc3NldGluZm8BB2Fzc2V0SWQEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF0BQckbWF0Y2gwCQDsBwEJANkEAQUHYXNzZXRJZAkAAgECEENhbid0IGZpbmQgYXNzZXQBAWkBFVJlZ2lzdGVyUGFpckZvclZvdGluZwIMRW50ZXJBc3NldElEB2Fzc2V0SWQEDXJlYWRhc3NldGluZm8JAQxnZXRhc3NldGluZm8BBQdhc3NldElkBARwbXQxCQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQJZmV0Y2hwYWlyCQCdCAIFBHRoaXMJAKwCAgIIUGFpcl9VVl8FDEVudGVyQXNzZXRJRAQNYXNzZXRpbmZvcG10MgkA2QQBBQxFbnRlckFzc2V0SUQDCQAAAgUJZmV0Y2hwYWlyBQxFbnRlckFzc2V0SUQJAAIBAiJQYWlyIEFscmVhZHkgRXhpc3QgaW4gVm90aW5nIExpc3QuCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgIIUGFpcl9VVl8FDEVudGVyQXNzZXRJRAUMRW50ZXJBc3NldElEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5aFbbcA==", "height": 2756184, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DGwFS22yifjc3wdA3HVJ3Vw8ZgCZRxb7PofGDRc7FBka Next: HJwDi9yhfHg2doKUu1CTsUWSqg9RPoqAgaHGFVqNxGdK Diff:
OldNewDifferences
1313 func RegisterPairForVoting (EnterAssetID,assetId) = {
1414 let readassetinfo = getassetinfo(assetId)
1515 let pmt1 = value(i.payments[0])
16- let pmt2 = value(i.payments[1])
1716 let currentKey = toBase58String(i.caller.bytes)
18- let TN = !(isDefined(pmt2.assetId))
1917 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
2018 let assetinfopmt2 = fromBase58String(EnterAssetID)
2119 if ((fetchpair == EnterAssetID))
2220 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)]
21+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID)]
3022 }
3123
3224
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getassetinfo (assetId) = match assetId {
55 case t: String =>
66 assetInfo(fromBase58String(assetId))
77 case _ =>
88 throw("Can't find asset")
99 }
1010
1111
1212 @Callable(i)
1313 func RegisterPairForVoting (EnterAssetID,assetId) = {
1414 let readassetinfo = getassetinfo(assetId)
1515 let pmt1 = value(i.payments[0])
16- let pmt2 = value(i.payments[1])
1716 let currentKey = toBase58String(i.caller.bytes)
18- let TN = !(isDefined(pmt2.assetId))
1917 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
2018 let assetinfopmt2 = fromBase58String(EnterAssetID)
2119 if ((fetchpair == EnterAssetID))
2220 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)]
21+ else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID)]
3022 }
3123
3224
3325 @Verifier(tx)
3426 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3527

github/deemru/w8io/169f3d6 
23.33 ms