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:
Old | New | | Differences |
---|
16 | 16 | | func RegisterPairForVoting (f,b) = { |
---|
17 | 17 | | let g = a(b) |
---|
18 | 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)) |
---|
| 19 | + | let i = toBase58String(e.caller.bytes) |
---|
| 20 | + | let j = getString(this, ("Pair_UV_" + f)) |
---|
| 21 | + | let k = fromBase58String(f) |
---|
| 22 | + | if ((j == f)) |
---|
25 | 23 | | 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)] |
---|
| 24 | + | else [StringEntry(("Pair_UV_" + f), f)] |
---|
33 | 25 | | } |
---|
34 | 26 | | |
---|
35 | 27 | | |
---|
36 | | - | @Verifier(n) |
---|
37 | | - | func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey) |
---|
| 28 | + | @Verifier(l) |
---|
| 29 | + | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
38 | 30 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = b |
---|
6 | 6 | | if ($isInstanceOf(c, "String")) |
---|
7 | 7 | | then { |
---|
8 | 8 | | let d = c |
---|
9 | 9 | | assetInfo(fromBase58String(b)) |
---|
10 | 10 | | } |
---|
11 | 11 | | else throw("Can't find asset") |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(e) |
---|
16 | 16 | | func RegisterPairForVoting (f,b) = { |
---|
17 | 17 | | let g = a(b) |
---|
18 | 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)) |
---|
| 19 | + | let i = toBase58String(e.caller.bytes) |
---|
| 20 | + | let j = getString(this, ("Pair_UV_" + f)) |
---|
| 21 | + | let k = fromBase58String(f) |
---|
| 22 | + | if ((j == f)) |
---|
25 | 23 | | 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)] |
---|
| 24 | + | else [StringEntry(("Pair_UV_" + f), f)] |
---|
33 | 25 | | } |
---|
34 | 26 | | |
---|
35 | 27 | | |
---|
36 | | - | @Verifier(n) |
---|
37 | | - | func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey) |
---|
| 28 | + | @Verifier(l) |
---|
| 29 | + | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) |
---|
38 | 30 | | |
---|