tx · APobYwQrZcCSBJhm4JNdYAkDW36vUQUGpreksJvRYKxh
3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj: -0.05000000 Waves
2019.11.22 06:14 [775848] smart account 3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj > SELF 0.00000000 Waves
{
"type": 13,
"id": "APobYwQrZcCSBJhm4JNdYAkDW36vUQUGpreksJvRYKxh",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1574392515470,
"version": 1,
"sender": "3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj",
"senderPublicKey": "J6uUrhmBcnvdu5KYxCr6uY5XoFb6bK1CdjWR8CMBst8o",
"proofs": [
"4Ru29AFBtLWFdLFAXs75NUJkdsEfMuzeYKLiY8fkJKfkaM1fKnxPpLRC78vBmDSYcuo3q3RwLrcGf26Af6yZ8nbZ"
],
"script": "base64:AAIDAAAAAAAAAAwIARIECgIICBIAEgAAAAACAAAAAAROT05FAgAAAARub25lAQAAAARzb21hAAAAAgAAAAFhAAAAAWIJAABkAAAAAgUAAAABYQUAAAABYgAAAAMAAAABaQEAAAALZGVmU2NhbHBpbmcAAAACAAAABmdyaWRJRAAAAARvQXNrBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ3JpZElEBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGZ3JpZElEAgAAAAVfb0FzawUAAAAEb0FzawUAAAADbmlsAAAAAWkBAAAADGxpc3RTY2FscGluZwAAAAAEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhvQXNrTGlzdAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAMVGVzdGVfMV9vQXNrBAAAAANzcGwJAAS1AAAAAgUAAAAIb0Fza0xpc3QCAAAAAXwJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADFRlc3RlXzFfTGlzdAkAAZEAAAACBQAAAANzcGwAAAAAAAAAAAUFAAAAA25pbAAAAAFpAQAAAA1zdGFydFNjYWxwaW5nAAAAAAQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA2FycgkBAAAABXZhbHVlAAAAAQkABB0AAAACBQAAAAR0aGlzAgAAAAxUZXN0ZV8xX29Bc2sJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAIVGVzdGVfMV8FAAAAD3N1cHBsaWVyQWRkcmVzcwUAAAADYXJyBQAAAANuaWwAAAAAWqmGXg==",
"chainId": 84,
"height": 775848,
"spentComplexity": 0
}
View: original | compacted
Prev: EHHThCVjgxx5LomY1MLh7aNmo2GKU5LNsj8DTdpQ3SuU
Next: EjqDTfhwqZVnCPTC3kKqgvvFGjxAzxEnshGqSPzA7GE6
Diff:
Old | New | | Differences |
---|
18 | 18 | | func listScalping () = { |
---|
19 | 19 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
20 | 20 | | let oAskList = getStringValue(this, "Teste_1_oAsk") |
---|
21 | | - | if ((oAskList != NONE)) |
---|
22 | | - | then throw((oAskList + " resultado")) |
---|
23 | | - | else WriteSet([DataEntry("Teste_1_List", oAskList)]) |
---|
| 21 | + | let spl = split(oAskList, "|") |
---|
| 22 | + | WriteSet([DataEntry("Teste_1_List", spl[5])]) |
---|
24 | 23 | | } |
---|
25 | 24 | | |
---|
26 | 25 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let NONE = "none" |
---|
5 | 5 | | |
---|
6 | 6 | | func soma (a,b) = (a + b) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | @Callable(i) |
---|
10 | 10 | | func defScalping (gridID,oAsk) = { |
---|
11 | 11 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
12 | 12 | | WriteSet([DataEntry(gridID, supplierAddress), DataEntry((gridID + "_oAsk"), oAsk)]) |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func listScalping () = { |
---|
19 | 19 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
20 | 20 | | let oAskList = getStringValue(this, "Teste_1_oAsk") |
---|
21 | | - | if ((oAskList != NONE)) |
---|
22 | | - | then throw((oAskList + " resultado")) |
---|
23 | | - | else WriteSet([DataEntry("Teste_1_List", oAskList)]) |
---|
| 21 | + | let spl = split(oAskList, "|") |
---|
| 22 | + | WriteSet([DataEntry("Teste_1_List", spl[5])]) |
---|
24 | 23 | | } |
---|
25 | 24 | | |
---|
26 | 25 | | |
---|
27 | 26 | | |
---|
28 | 27 | | @Callable(i) |
---|
29 | 28 | | func startScalping () = { |
---|
30 | 29 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
31 | 30 | | let arr = value(getString(this, "Teste_1_oAsk")) |
---|
32 | 31 | | WriteSet([DataEntry(("Teste_1_" + supplierAddress), arr)]) |
---|
33 | 32 | | } |
---|
34 | 33 | | |
---|
35 | 34 | | |
---|