altsheets
Legendary
Offline
Activity: 902
Merit: 1001
Free trial of #AltFolio = save time, react faster
|
|
July 22, 2016, 09:15:58 PM Last edit: July 23, 2016, 12:38:43 PM by altsheets |
|
Your soil block explorer ABEESOIL got an upgrade.Please contribute, to 0x8da4fc05ca343e6a41646194e91931d9f413a40c. Thanks.Quoting from ABEE thread: New in v0.2.4* address: * now also recognized if capital letters in address * code comments changed: TXs of account would need proprietary backend with all blocks database * address of contract * often code is long, so now table width limited, code is wrapped * code length shown * code is shown as ASCII too * code is disassembled into bytecode, with ASCII conversion of PUSH bytes * block: * timestamp now also shown as UTC time * seconds since previous block * gasUsed and percent of gasLimit * transaction: * timestamp now also shown as UTC time * now also the real gasUsed * and correct multiplication to tx price * pending tx not showing unused fields anymore * if tx has input data, show ASCII converted * if tx fired log events, show number of events * chain * better async for the 6 past blocks calls * + block time averages for the past 10 blocks In the following examples & screenshots, I am using the SOIL FAUCET CONTRACT, see ANN post (there is money in that faucet, by the way). By executing the command SOILfaucet.getSOIL.sendTransaction({from:"0x..."}) you get 0.5 SOIL sent to you. Code at contract addressExample here is the SOIL FAUCET CONTRACT. That contract lives at address 0xdac49860bee0e6d0775f69721459c411d62fd1bcNote the TransactionCount 0. In ETH, internal transactions within contracts (here `msg.sender.send(sendAmount)` inside the `getSOIL()` function) are not registered as transactions of that account. You can expand the 3 triangles, first to see the code as hex, and ASCII: And also disassembled into bytecode: Because PUSH commands sometimes contain readable strings, for all PUSH commands I am also showing the ASCII representation of the bytes, behind the // as comments. Simple addressAs example, the donation address for ABEESOIL ( please give more, thanks) at address 0x8da4fc05ca343e6a41646194e91931d9f413a40cHere, the 4 outgoing transactions are accounted for. As it is a simple address, not a contract address, there is no code, and all other fields are suppressed. TransactionAs example, a recent transaction to that FAUCET CONTRACT SOILfaucet.getSOIL.sendTransaction({from:"0x..."})0x0abd2244db18d94db716e3eedbc37ef62e65c64cca86a5f9eeb2960dd3c494f7PENDINGWhile the TX was pending, only the provided default gas (90000), and the offered gas price (50,000,000,000 Wei) can be known. The `SOILfaucet.getSOIL()`transaction has some data input. MINEDWhen the TX is mined, we can know the real gasUsed (48763), and the transaction fee (48763 * 50gigawei = 0.00243815 SOIL). The block time is now also shown as UTC time. That transaction was mined in: Block897619We see the gasUsed (48763), and the percentage of the limit (1.55%). The block time is now also shown as UTC time, and additionally, the seconds since the previous block. Chain, Node, BlockexplorerBy clicking on the 0.2.4 at the top, you get to http://178.62.133.174:9001/#/chain/with a lot of information. For details see older post about 0.2.3 and post about 0.2.2Invisible changes: Worked on the asynchroneous past-blocks-queries, to make it faster. Visible changes: Past 10 blocks. If you like this, show it: [SOIL] 0x8da4fc05ca343e6a41646194e91931d9f413a40c BTC 1M4EaZVprZEmtrS3G78fMFy8yGVgdUJMXv Thanks.
|
|
|
|
altsheets
Legendary
Offline
Activity: 902
Merit: 1001
Free trial of #AltFolio = save time, react faster
|
|
July 24, 2016, 12:03:07 PM |
|
Your soil block explorer ABEESOIL got an upgrade. ...
If you like this, show it: [SOIL] 0x8da4fc05ca343e6a41646194e91931d9f413a40c BTC 1M4EaZVprZEmtrS3G78fMFy8yGVgdUJMXv
Thanks.
|
|
|
|
AndreasKrueger
Member
Offline
Activity: 95
Merit: 11
|
|
July 24, 2016, 02:50:29 PM Last edit: July 26, 2016, 05:04:43 PM by AndreasKrueger |
|
|
|
|
|
Dunkelheit667
Legendary
Offline
Activity: 1045
Merit: 1157
no degradation
|
|
July 24, 2016, 03:44:18 PM |
|
... What to do? - Post the contract answer for the weather forecast of a city of your choice, for one day later.
- Write a sentence or two what you think about it, or suggest an improvement in the manual.
Hi Andreas, here we go: statusmessage => ForecastWeatherAtLocationAtTime: forecasted time => Mon, 25 Jul 2016 17:00:00 CEST temperature => 302.96 Kelvin pressure => 1016.79 Hectopascal humidity => 45 Percent cloudcover => 64 Percent windspeed => 3.37 Meter/Second rain => 0.01 Millimeter in 3 hours Just tested this on a spare Windows PC. Checked your manual02-preparations.md to get an overview, downloaded the repo using Firefox and followed the manual03-console-quickstart.md step by step without any issues. Well documented project. Had to mine some SOIL for topping up the location, this took some time. Might be an idea to lower the 'fee' from five to one SOIL during the testing period maybe? Anyway, I could have bought the SOIL on an exchange... What else? Yes, the addpeers.js is very usefull indeed. This saved some time as I usually have to copy&paste a list of nodes to get the client running... Great stuff, have played around with the first smart contract this weekend. Thank you! @altsheets Sent my remaining SOIL for the ABEESOIL, great project as well!
|
"And the machine keeps pushing time through the cogs, like paste into strings into paste again, and only the machine keeps using time to make time to make time. And when the machine stops, time is an illusion that we created free will." - an unnamed Hybrid
|
|
|
AndreasKrueger
Member
Offline
Activity: 95
Merit: 11
|
|
July 24, 2016, 11:10:41 PM |
|
Thanks a lot! here we go: statusmessage => ForecastWeatherAtLocationAtTime: forecasted time => Mon, 25 Jul 2016 17:00:00 CEST temperature => 302.96 Kelvin pressure => 1016.79 Hectopascal humidity => 45 Percent cloudcover => 64 Percent windspeed => 3.37 Meter/Second rain => 0.01 Millimeter in 3 hours Very good, well done. We have a 1st prize winner: Testers wanted, for new Smart Contract 1500 SOIL total for the first 3 people to fully try out the quickstart: 700 SOIL for the 1st to finish 500 SOIL for the 2nd to finish me 300 SOIL for the 3rd to finish
I have sent you the 700 SOIL to your address. Good to read that there were no issues at all in Windows. I had also tested it myself, on a clean droplet in Linux. Well documented project. Thanks. Would you recommend it to others? Then perhaps tweet about it. Had to mine some SOIL for topping up the location, this took some time.
You even mined the money you used. Cool. Might be an idea to lower the 'fee' from five to one SOIL during the testing period maybe? Anyway, I could have bought the SOIL on an exchange... Yes. And whether you buy or mine - if you get 1 SOIL somehow, you'll also be able get 5 SOIL. Or 50. Or 500. What else? Yes, the addpeers.js is very usefull indeed. This saved some time as I usually have to copy&paste a list of nodes to get the client running...
True. Saves a whole step. Everyone: If you only include this one aspect into your system, you are already better off. Great stuff, have played around with the first smart contract this weekend. Thank you! That is great. Let us all become makers. Tell us when your the first ideas for novel smart contracts come up in you. So, who is next, to try out this smart contract? Two rewards are still left.
|
|
|
|
AndreasKrueger
Member
Offline
Activity: 95
Merit: 11
|
|
July 25, 2016, 10:24:14 PM |
|
post 6Smart Contract: WeatherForecastAtLocationWebView on Oracle Database The oracle is now checking (every 15 minutes) if there is an > 24 hours not updated location (with money balance left) - and auto-updates those locations with fresh weather data. go to: weathercontract.hopto.org/oracle
|
|
|
|
Dunkelheit667
Legendary
Offline
Activity: 1045
Merit: 1157
no degradation
|
|
July 25, 2016, 11:45:37 PM |
|
The Oracle was close with 302.96 Kelvin, I think we have had ~ 304 today. I have sent you the 700 SOIL to your address.
My wallet received the reward, thank you very much! Would you recommend it to others? Then perhaps tweet about it.
Unfortunately, I'm a bit old school in this regard. Guess this forum is my main 'social media'. However, if someone will ask me about smart contracts IRL, I will share my first experices with your Oracle. That is great. Let us all become makers. Tell us when your the first ideas for novel smart contracts come up in you.
Will for sure tinker with SOIL in case something comes to mind that could utilize a smart contract. Btw. how can I check the balance for my location? W.user_getLocationBalance() Shows 0, but there should be a balance since I've topped up the location. @all Try Andreas' project, it's educational and fun. And useful, 'just' 297.607 Kelvin tomorrow, looking forward to cooling down.
|
"And the machine keeps pushing time through the cogs, like paste into strings into paste again, and only the machine keeps using time to make time to make time. And when the machine stops, time is an illusion that we created free will." - an unnamed Hybrid
|
|
|
AndreasKrueger
Member
Offline
Activity: 95
Merit: 11
|
|
July 26, 2016, 07:04:00 AM |
|
Btw. how can I check the balance for my location? W.user_getLocationBalance() Shows 0, but there should be a balance since I've topped up the location. city="q=Nanjing,China" WEATHER.user_getLocationBalance(city) 5000000000000000000 fromWei(WEATHER.user_getLocationBalance(city)) 5 @all Try Andreas' project, it's educational and fun. Yes, go for it!
|
|
|
|
AndreasKrueger
Member
Offline
Activity: 95
Merit: 11
|
|
July 26, 2016, 04:23:55 PM Last edit: July 26, 2016, 04:59:27 PM by AndreasKrueger |
|
post 7Smart Contract: WeatherForecastAtLocationNew contract v0.5.9 deployed There was the need to deploy a new contract because: The oracle is now checking (every 15 minutes) if there is an > 24 hours not updated location (with money balance left) - and auto-updates those locations with fresh weather data.
BUT locations with weather error would have been queried every day, and never stopping, because the oracle was not rewarded for updating with "weather error" message, and so the balance was not decreased, and never depleted. The new contract is fixing that, by rewarding the oracle for the "weather error" message, so after some days, the location with "weather error" will be on balance zero - and be forgotten. The good news: The oracle is now auto-updating each location with positive balance. About 24 hours after the last update, all its forecasts are updated with new forecasts, until the balance of that location is depleted.New contract deployed: Transaction in block 915500 with 43.573% of gas limit. New contract is at address 0x0c5c4bc449808eee712b1d0858e2b12e71410c8eUpdate your contract.js by downloading zip again, overwriting the old one, or: cd weathercontract_user git pull Please keep on testing!
|
|
|
|
Dunkelheit667
Legendary
Offline
Activity: 1045
Merit: 1157
no degradation
|
|
July 26, 2016, 06:31:05 PM |
|
Btw. how can I check the balance for my location? W.user_getLocationBalance() Shows 0, but there should be a balance since I've topped up the location. city="q=Nanjing,China" WEATHER.user_getLocationBalance(city) 5000000000000000000 fromWei(WEATHER.user_getLocationBalance(city)) 5 Thank you, this did the trick. Just tested with your new contract v0.5.9, working as expected.
|
"And the machine keeps pushing time through the cogs, like paste into strings into paste again, and only the machine keeps using time to make time to make time. And when the machine stops, time is an illusion that we created free will." - an unnamed Hybrid
|
|
|
ralfs
Newbie
Offline
Activity: 57
Merit: 0
|
|
July 27, 2016, 08:50:22 AM |
|
293.11 Kelvin minus 272.15 = 20,96 degrees Celsius in Amsterdam, that's correct.
Nice contract Andreas!
|
|
|
|
frostminer
|
|
July 27, 2016, 01:34:14 PM |
|
Can i just shoot in how much i enjoy this thread.
Of the tons of threads im watching, this one is a gazillion times more tech heavy and geeky. Also seemingly a kid-free zone.
While most threads are basicly:
"%mycoin% TO THE MOON!!11 +silly image + 5 smileys"
SOIL thread is like : var _remindernote = "Hello!"; var reminderContract = web3.eth.contract([{"constant":true,"inputs":[],"name":"remindme","outputs":[{"name":"","type":"string"}],"type":"function"},{"inputs":[{"name":"_remindernote","type":"string"}],"type":"constructor"}]);
|
|
|
|
AndreasKrueger
Member
Offline
Activity: 95
Merit: 11
|
|
July 27, 2016, 04:25:52 PM |
|
Thank you very much, ralfs. 293.11 Kelvin minus 272.15 = 20,96 degrees Celsius in Amsterdam, that's correct.
Very good. It is actually -273.15 Kelvin --> Celsius. All depends on openweathermap's forecast quality. And weather might always turn out differently. Nice contract Andreas!
Thanks. Let us see if the new oracle autoupdate is going to refresh your location ~24hours after the last update. Should be ~tomorrow morning. For my first test location, it has actually just done it, very nice. You can see that here: http://weathercontract.hopto.org/oracle/location 24h autoupdates 1 And we have a 2nd winner: Testers wanted, for new Smart Contract 1500 SOIL total for the first 3 people to fully try out the quickstart: 700 SOIL for the 1st to finish 500 SOIL for the 2nd to finish 300 SOIL for the 3rd to finish
So ... who is next?
|
|
|
|
sussex
|
|
July 27, 2016, 04:51:51 PM |
|
Does anyone have a way to get in touch with abvhiael ?
I sent a pm a week ago and cannot find an email address... I need to speak to him pretty quickly.
Cheers.
|
|
|
|
abvhiael
|
|
July 27, 2016, 07:49:16 PM |
|
I'll have internet hooked up again. Finally! On Friday, and will be back hard at work on SOIL this weekend. Than you all for your patience. Can't wait to get stuff done again. It's been a lonnnnng month.
|
|
|
|
Shkembe
Legendary
Offline
Activity: 1560
Merit: 1001
Epic Private Internet Cash
|
|
July 28, 2016, 03:59:40 PM |
|
I'll have internet hooked up again. Finally! On Friday, and will be back hard at work on SOIL this weekend. Than you all for your patience. Can't wait to get stuff done again. It's been a lonnnnng month.
LoL, Great! Looking forward to hear from you soon!
|
|
|
|
skidog
Legendary
Offline
Activity: 1393
Merit: 1001
|
|
July 29, 2016, 12:57:55 PM |
|
I'll have internet hooked up again. Finally! On Friday, and will be back hard at work on SOIL this weekend. Than you all for your patience. Can't wait to get stuff done again. It's been a lonnnnng month.
LoL, Great! Looking forward to hear from you soon! sounds good....Thanks..
|
|
|
|
markus124
|
|
July 29, 2016, 03:49:30 PM |
|
welcome back. Wonder if u can fix the pool and the explorer
|
|
|
|
Dale Hackbart
Newbie
Offline
Activity: 7
Merit: 0
|
|
July 29, 2016, 06:14:19 PM |
|
welcome back. Wonder if u can fix the pool and the explorer
|
|
|
|
markus124
|
|
July 29, 2016, 08:54:58 PM |
|
thanks dale
|
|
|
|
|