tx · HJwDi9yhfHg2doKUu1CTsUWSqg9RPoqAgaHGFVqNxGdK
3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5: -0.01000000 Waves
2023.09.15 10:02 [2756188] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves
{
"type": 13,
"id": "HJwDi9yhfHg2doKUu1CTsUWSqg9RPoqAgaHGFVqNxGdK",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1694761336519,
"version": 2,
"chainId": 84,
"sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5",
"senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo",
"proofs": [
"43LVc64fxoVn2VZxDAZFnEjv4RsTmKJ1Qfz5pNnm7qWMJazCBChyf1ywyu2G8r2gBKLqy6GQ2ttmAGvfdmKKN2rW"
],
"script": "base64:BgIHCAISAwoBCAEBDGdldGFzc2V0aW5mbwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXQFByRtYXRjaDAJAOwHAQkA2QQBBQdhc3NldElkCQACAQIQQ2FuJ3QgZmluZCBhc3NldAEBaQEVUmVnaXN0ZXJQYWlyRm9yVm90aW5nAQdhc3NldElkBA1yZWFkYXNzZXRpbmZvCQEMZ2V0YXNzZXRpbmZvAQUHYXNzZXRJZAQEcG10MQkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwAABApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMECWZldGNocGFpcgkAnQgCBQR0aGlzCQCsAgICCFBhaXJfVVZfBQdhc3NldElkBA1hc3NldGluZm9wbXQyCQDZBAEFB2Fzc2V0SWQDCQAAAgUJZmV0Y2hwYWlyBQdhc3NldElkCQACAQIiUGFpciBBbHJlYWR5IEV4aXN0IGluIFZvdGluZyBMaXN0LgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgICCFBhaXJfVVZfBQdhc3NldElkBQdhc3NldElkBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5fT+Rkw==",
"height": 2756188,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5avNfTaSLz4hoH2b5i5VwUahtswYMPWve5kvtthMeu1a
Next: EXpwAcD8Lpzd36xHAmgjbiYmu7xX8S49WyYcpuwH46YS
Diff:
Old | New | | Differences |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | | - | func RegisterPairForVoting (EnterAssetID,assetId) = { |
---|
| 13 | + | func RegisterPairForVoting (assetId) = { |
---|
14 | 14 | | let readassetinfo = getassetinfo(assetId) |
---|
15 | 15 | | let pmt1 = value(i.payments[0]) |
---|
16 | 16 | | let currentKey = toBase58String(i.caller.bytes) |
---|
17 | | - | let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID)) |
---|
18 | | - | let assetinfopmt2 = fromBase58String(EnterAssetID) |
---|
19 | | - | if ((fetchpair == EnterAssetID)) |
---|
| 17 | + | let fetchpair = getString(this, ("Pair_UV_" + assetId)) |
---|
| 18 | + | let assetinfopmt2 = fromBase58String(assetId) |
---|
| 19 | + | if ((fetchpair == assetId)) |
---|
20 | 20 | | then throw("Pair Already Exist in Voting List.") |
---|
21 | | - | else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID)] |
---|
| 21 | + | else [StringEntry(("Pair_UV_" + assetId), assetId)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getassetinfo (assetId) = match assetId { |
---|
5 | 5 | | case t: String => |
---|
6 | 6 | | assetInfo(fromBase58String(assetId)) |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | throw("Can't find asset") |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | | - | func RegisterPairForVoting (EnterAssetID,assetId) = { |
---|
| 13 | + | func RegisterPairForVoting (assetId) = { |
---|
14 | 14 | | let readassetinfo = getassetinfo(assetId) |
---|
15 | 15 | | let pmt1 = value(i.payments[0]) |
---|
16 | 16 | | let currentKey = toBase58String(i.caller.bytes) |
---|
17 | | - | let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID)) |
---|
18 | | - | let assetinfopmt2 = fromBase58String(EnterAssetID) |
---|
19 | | - | if ((fetchpair == EnterAssetID)) |
---|
| 17 | + | let fetchpair = getString(this, ("Pair_UV_" + assetId)) |
---|
| 18 | + | let assetinfopmt2 = fromBase58String(assetId) |
---|
| 19 | + | if ((fetchpair == assetId)) |
---|
20 | 20 | | then throw("Pair Already Exist in Voting List.") |
---|
21 | | - | else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID)] |
---|
| 21 | + | else [StringEntry(("Pair_UV_" + assetId), assetId)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Verifier(tx) |
---|
26 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 27 | | |
---|