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
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 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 | 4 | | |
---|
11 | 5 | | |
---|
12 | 6 | | @Callable(i) |
---|
13 | 7 | | func RegisterPairForVoting (assetId) = { |
---|
14 | | - | let readassetinfo = getassetinfo(assetId) |
---|
| 8 | + | let readassetinfo = assetInfo(fromBase58String(assetId)) |
---|
15 | 9 | | let pmt1 = value(i.payments[0]) |
---|
16 | 10 | | let currentKey = toBase58String(i.caller.bytes) |
---|
17 | 11 | | let fetchpair = getString(this, ("Pair_UV_" + assetId)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 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 | 4 | | |
---|
11 | 5 | | |
---|
12 | 6 | | @Callable(i) |
---|
13 | 7 | | func RegisterPairForVoting (assetId) = { |
---|
14 | | - | let readassetinfo = getassetinfo(assetId) |
---|
| 8 | + | let readassetinfo = assetInfo(fromBase58String(assetId)) |
---|
15 | 9 | | let pmt1 = value(i.payments[0]) |
---|
16 | 10 | | let currentKey = toBase58String(i.caller.bytes) |
---|
17 | 11 | | let fetchpair = getString(this, ("Pair_UV_" + assetId)) |
---|
18 | 12 | | let assetinfopmt2 = fromBase58String(assetId) |
---|
19 | 13 | | if ((fetchpair == assetId)) |
---|
20 | 14 | | then throw("Pair Already Exist in Voting List.") |
---|
21 | 15 | | else [StringEntry(("Pair_UV_" + assetId), assetId)] |
---|
22 | 16 | | } |
---|
23 | 17 | | |
---|
24 | 18 | | |
---|
25 | 19 | | @Verifier(tx) |
---|
26 | 20 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 21 | | |
---|