tx · EXpwAcD8Lpzd36xHAmgjbiYmu7xX8S49WyYcpuwH46YS
3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5: -0.01000000 Waves
2023.09.15 10:03 [2756189] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves
{
"type": 13,
"id": "EXpwAcD8Lpzd36xHAmgjbiYmu7xX8S49WyYcpuwH46YS",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1694761443774,
"version": 2,
"chainId": 84,
"sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5",
"senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo",
"proofs": [
"49vb9h6PkEaRjoBCqUyW3WmvkFwkBfZbf8GcPPb9BKZEGdYrYctqrHJt8SSp6gXGFXBXXHF6tuWuQucNk5ToWa6X"
],
"script": "base64:BgIHCAISAwoBCAABAWkBFVJlZ2lzdGVyUGFpckZvclZvdGluZwEHYXNzZXRJZAQNcmVhZGFzc2V0aW5mbwkA7AcBCQDZBAEFB2Fzc2V0SWQEBHBtdDEJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAlmZXRjaHBhaXIJAJ0IAgUEdGhpcwkArAICAghQYWlyX1VWXwUHYXNzZXRJZAQNYXNzZXRpbmZvcG10MgkA2QQBBQdhc3NldElkAwkAAAIFCWZldGNocGFpcgUHYXNzZXRJZAkAAgECIlBhaXIgQWxyZWFkeSBFeGlzdCBpbiBWb3RpbmcgTGlzdC4JAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICAghQYWlyX1VWXwUHYXNzZXRJZAUHYXNzZXRJZAUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tlefwb0ew=",
"height": 2756189,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HJwDi9yhfHg2doKUu1CTsUWSqg9RPoqAgaHGFVqNxGdK
Next: 1QNeTeHCe1pdRCVb56tJpoiDN3MKCAakP3JSWn1zBvU
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 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 | 4 | | |
---|
14 | 5 | | |
---|
15 | | - | @Callable(e) |
---|
| 6 | + | @Callable(a) |
---|
16 | 7 | | func RegisterPairForVoting (b) = { |
---|
17 | | - | let f = a(b) |
---|
18 | | - | let g = value(e.payments[0]) |
---|
19 | | - | let h = toBase58String(e.caller.bytes) |
---|
20 | | - | let i = getString(this, ("Pair_UV_" + b)) |
---|
21 | | - | let j = fromBase58String(b) |
---|
22 | | - | if ((i == b)) |
---|
| 8 | + | let c = assetInfo(fromBase58String(b)) |
---|
| 9 | + | let d = value(a.payments[0]) |
---|
| 10 | + | let e = toBase58String(a.caller.bytes) |
---|
| 11 | + | let f = getString(this, ("Pair_UV_" + b)) |
---|
| 12 | + | let g = fromBase58String(b) |
---|
| 13 | + | if ((f == b)) |
---|
23 | 14 | | then throw("Pair Already Exist in Voting List.") |
---|
24 | 15 | | else [StringEntry(("Pair_UV_" + b), b)] |
---|
25 | 16 | | } |
---|
26 | 17 | | |
---|
27 | 18 | | |
---|
28 | | - | @Verifier(k) |
---|
29 | | - | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
| 19 | + | @Verifier(h) |
---|
| 20 | + | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
30 | 21 | | |
---|