Bitcoin Forum
November 01, 2024, 04:05:08 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Poll
Question: none
. - 0 (0%)
. - 0 (0%)
Total Voters: 0

Pages: « 1 ... 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 [100] 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 »
  Print  
Author Topic: 🌱[ANN] SOIL | Environmental | Agriculture | Smart Contracts | Sustainable  (Read 237619 times)
altsheets
Legendary
*
Offline Offline

Activity: 902
Merit: 1001

Free trial of #AltFolio = save time, react faster


View Profile WWW
July 22, 2016, 09:15:58 PM
Last edit: July 23, 2016, 12:38:43 PM by altsheets
 #1981

Your soil block explorer ABEESOIL got an upgrade.

Please contribute, to 0x8da4fc05ca343e6a41646194e91931d9f413a40c. Thanks.



Quoting from ABEE thread:

ABEESOIL 0.2.4
AltSheets Block Explorer Extension for SOILcurrency
version 0.2.4 - July 2016

http://178.62.133.174:9001

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 address
Example here is the SOIL FAUCET CONTRACT.
That contract lives at address 0xdac49860bee0e6d0775f69721459c411d62fd1bc



Note 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 address

As example, the donation address for ABEESOIL (please give more, thanks)
at address 0x8da4fc05ca343e6a41646194e91931d9f413a40c



Here, 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.



Transaction

As example, a recent transaction to that FAUCET CONTRACT
SOILfaucet.getSOIL.sendTransaction({from:"0x..."})
0x0abd2244db18d94db716e3eedbc37ef62e65c64cca86a5f9eeb2960dd3c494f7

PENDING


While 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.

MINED



When 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:


Block

897619



We 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, Blockexplorer
By 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.2



Invisible 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.



AltFolio = Altcoin Portfolio solution || AAsset = crowdfunding, dividends paying = profit sharing Assets on NXT || Newbium great new platform || AssetGraphs = novel GUI to assets & shareholders (won nxthacks2015!) || ABEE = Block Explorer Extension for ETH clones, live on SOIL || Advice = Consulting || assetparser.py and shareholders.py - tools for NXT/HZ asset buyers & issuers || bamm.py || PeerCrawler || PGP || Texts || Github e.g. ChainCountDown, ethjsre |||| /give/ GiveBackLicense /give/ |||| Looking for an affordable crypto advertisement service with adspaces on crypto-attractive websites, contact me, thx.
altsheets
Legendary
*
Offline Offline

Activity: 902
Merit: 1001

Free trial of #AltFolio = save time, react faster


View Profile WWW
July 24, 2016, 12:03:07 PM
 #1982

Your soil block explorer ABEESOIL got an upgrade. ...

If you like this, show it:  
                       [SOIL] 0x8da4fc05ca343e6a41646194e91931d9f413a40c
                              BTC 1M4EaZVprZEmtrS3G78fMFy8yGVgdUJMXv  

Thanks.


AltFolio = Altcoin Portfolio solution || AAsset = crowdfunding, dividends paying = profit sharing Assets on NXT || Newbium great new platform || AssetGraphs = novel GUI to assets & shareholders (won nxthacks2015!) || ABEE = Block Explorer Extension for ETH clones, live on SOIL || Advice = Consulting || assetparser.py and shareholders.py - tools for NXT/HZ asset buyers & issuers || bamm.py || PeerCrawler || PGP || Texts || Github e.g. ChainCountDown, ethjsre |||| /give/ GiveBackLicense /give/ |||| Looking for an affordable crypto advertisement service with adspaces on crypto-attractive websites, contact me, thx.
AndreasKrueger
Member
**
Offline Offline

Activity: 95
Merit: 11


View Profile
July 24, 2016, 02:50:29 PM
Last edit: July 26, 2016, 05:04:43 PM by AndreasKrueger
 #1983

Great.

The weathercontract:
http://178.62.133.174:9001/#/address/0xe904c0a8eb49f2fc7185eefde394c42caca028c6 DESTROYED, old
http://178.62.133.174:9001/#/address/0x0c5c4bc449808eee712b1d0858e2b12e71410c8e new v0.5.9

A 'topUpLocation' transaction
http://178.62.133.174:9001/#/transaction/0x4a38d7a0c048e28f17f3fc0a0e902ecbfcacac0af62a7e4e8822bb888887389d

An 'oracle_addForecast' transaction (when the oracle answers)
http://178.62.133.174:9001/#/transaction/0xc8bfc01fbd5793849d1a692a5f3a7e6743a6573bed707989ce43bfaebf54175d

The blockchain is a bit slow right now.

new http://btc.hopto.org BTCrates + nearby numbers
Dunkelheit667
Legendary
*
Offline Offline

Activity: 1045
Merit: 1157


no degradation


View Profile
July 24, 2016, 03:44:18 PM
 #1984

...
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:
Code:
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. Smiley

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... Wink

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! Smiley

@altsheets
Sent my remaining SOIL for the ABEESOIL, great project as well! Smiley

"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 Offline

Activity: 95
Merit: 11


View Profile
July 24, 2016, 11:10:41 PM
 #1985

Thanks a lot!

here we go:
Code:
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.


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.
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. Smiley
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... Wink
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! Smiley
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.



new http://btc.hopto.org BTCrates + nearby numbers
AndreasKrueger
Member
**
Offline Offline

Activity: 95
Merit: 11


View Profile
July 25, 2016, 10:24:14 PM
 #1986

post 6

Smart Contract: WeatherForecastAtLocation
WebView 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

new http://btc.hopto.org BTCrates + nearby numbers
Dunkelheit667
Legendary
*
Offline Offline

Activity: 1045
Merit: 1157


no degradation


View Profile
July 25, 2016, 11:45:37 PM
 #1987

The Oracle was close with 302.96 Kelvin, I think we have had ~ 304 today. Cool

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. Smiley

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?
Code:
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. Smiley

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 Offline

Activity: 95
Merit: 11


View Profile
July 26, 2016, 07:04:00 AM
 #1988

Btw. how can I check the balance for my location?
Code:
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. Smiley
Yes, go for it!


new http://btc.hopto.org BTCrates + nearby numbers
AndreasKrueger
Member
**
Offline Offline

Activity: 95
Merit: 11


View Profile
July 26, 2016, 04:23:55 PM
Last edit: July 26, 2016, 04:59:27 PM by AndreasKrueger
 #1989

post 7

Smart Contract: WeatherForecastAtLocation
New 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 0x0c5c4bc449808eee712b1d0858e2b12e71410c8e


Update your contract.js by downloading zip again, overwriting the old one, or:
Code:
cd weathercontract_user
git pull

Please keep on testing!

new http://btc.hopto.org BTCrates + nearby numbers
Dunkelheit667
Legendary
*
Offline Offline

Activity: 1045
Merit: 1157


no degradation


View Profile
July 26, 2016, 06:31:05 PM
 #1990

Btw. how can I check the balance for my location?
Code:
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. Smiley

"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 Offline

Activity: 57
Merit: 0


View Profile
July 27, 2016, 08:50:22 AM
 #1991

293.11 Kelvin minus 272.15 = 20,96 degrees Celsius in Amsterdam, that's correct.

Nice contract Andreas!
frostminer
Hero Member
*****
Offline Offline

Activity: 742
Merit: 505


View Profile WWW
July 27, 2016, 01:34:14 PM
 #1992


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 Offline

Activity: 95
Merit: 11


View Profile
July 27, 2016, 04:25:52 PM
 #1993

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/
Quote
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?

new http://btc.hopto.org BTCrates + nearby numbers
sussex
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500



View Profile
July 27, 2016, 04:51:51 PM
 #1994

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
Hero Member
*****
Offline Offline

Activity: 722
Merit: 501


View Profile
July 27, 2016, 07:49:16 PM
 #1995

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 Offline

Activity: 1560
Merit: 1001

Epic Private Internet Cash


View Profile
July 28, 2016, 03:59:40 PM
 #1996

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! Smiley
skidog
Legendary
*
Offline Offline

Activity: 1393
Merit: 1001


View Profile
July 29, 2016, 12:57:55 PM
 #1997

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! Smiley
sounds good....Thanks..
markus124
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
July 29, 2016, 03:49:30 PM
 #1998

welcome back. Wonder if u can fix the pool and the explorer Tongue
Dale Hackbart
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
July 29, 2016, 06:14:19 PM
 #1999

welcome back. Wonder if u can fix the pool and the explorer Tongue

markus124
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
July 29, 2016, 08:54:58 PM
 #2000

thanks dale  Smiley

Pages: « 1 ... 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 [100] 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!