Pages:
Author

Topic: 🌱[ANN] SOIL | Environmental | Agriculture | Smart Contracts | Sustainable - page 60. (Read 237627 times)

legendary
Activity: 2893
Merit: 1158
hero member
Activity: 555
Merit: 500
who owns that 420k wallet
hero member
Activity: 686
Merit: 500
il be passing on this one.

soil safe not new
hackathan any coin can announce that
legendary
Activity: 1148
Merit: 1000
how high can SOIL go and do we have an update on being added to polo?
legendary
Activity: 1148
Merit: 1000
WTB SOIL! pm!

buy from the bittrex, there are plenty of SOIL there.
hero member
Activity: 553
Merit: 509
legendary
Activity: 1148
Merit: 1000
price is up today on Trex. It is looking good.
legendary
Activity: 2408
Merit: 1004
legendary
Activity: 924
Merit: 1000
Hi, everyone,

I tried putting this simple smart contract on the SOIL blockchain:

Code:
contract reminder {
    /* define variable reminder of the type string */
    string remindernote;
    address owner;
    string unauthorized = "No message for you, sorry." ;

    /* this runs when the contract is executed */
    function reminder(string _remindernote) public {
        remindernote = _remindernote;
        owner = msg.sender;
    }

    /* main function */
    function remindme() constant returns (string) {
      if(msg.sender == owner) {
        return remindernote;
      }
      else {
        return unauthorized;       
      }
    }
}

through using Solidity's realtime compiler to compile it to:

Code:
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"}]);
var reminder = reminderContract.new(
   _remindernote,
   {
     from: web3.eth.accounts[0],
     data: '6060604052604060405190810160405280601a81526020017f4e6f206d65737361676520666f7220796f752c20736f7272792e00000000000081526020015060026000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061008c57805160ff19168380011785556100bd565b828001600101855582156100bd579182015b828111156100bc57825182600050559160200191906001019061009e565b5b5090506100e891906100ca565b808211156100e457600081815060009055506001016100ca565b5090565b5050604051610462380380610462833981016040528080518201919060200150505b8060006000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061015957805160ff191683800117855561018a565b8280016001018555821561018a579182015b8281111561018957825182600050559160200191906001019061016b565b5b5090506101b59190610197565b808211156101b15760008181506000905550600101610197565b5090565b505033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b50610270806101f26000396000f360606040526000357c01000000000000000000000000000000000000000000000000000000009004806359bd75181461003957610037565b005b61004660048050506100b4565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156100a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6020604051908101604052806000815260200150600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101c75760006000508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101b75780601f1061018c576101008083540402835291602001916101b7565b820191906000526020600020905b81548152906001019060200180831161019a57829003601f168201915b5050505050905061026d5661026c565b60026000508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102605780601f1061023557610100808354040283529160200191610260565b820191906000526020600020905b81548152906001019060200180831161024357829003601f168201915b5050505050905061026d565b5b9056',
     gas: 3000000
   }, function(e, contract){
    console.log(e, contract);
    if (typeof contract.address != 'undefined') {
         console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
    }
 })

The latter, the compiled web3 deploy version, I clipboarded into a 2.0-gig VPS running SOIL. At the time I entered it, my VPS had synched up. Once I entered it, I got a tx id.

But, I never got the message "Contract mined!" Instead, fifty blocks after I got the tx id - some of these blocks had transactions in them - I got a warning about it not being mined.


So...what went wrong? As far as I can tell, it's a valid contract that's correctly compiled. Why didn't it get mined? Do I need to add more gas, or was it something else that resulted in the miners not adding it to the blockchain?

Thanks.
hero member
Activity: 601
Merit: 500
Ho I can start SOILsafe-NG on Linux?
I found [email protected]:soilcurrency/SOILsafe-NG.git

Are there any usage instructions?

For now try this please:
SOILsafe-linux64-0-5-2.tar.gz


Thanks, I will try it.
full member
Activity: 130
Merit: 100
SOILteam
Ho I can start SOILsafe-NG on Linux?
I found [email protected]:soilcurrency/SOILsafe-NG.git

Are there any usage instructions?

For now try this please:
SOILsafe-linux64-0-5-2.tar.gz
hero member
Activity: 601
Merit: 500
Ho I can start SOILsafe-NG on Linux?
I found [email protected]:soilcurrency/SOILsafe-NG.git

Are there any usage instructions?
copper member
Activity: 2156
Merit: 983
Part of AOBT - English Translator to Indonesia
full member
Activity: 130
Merit: 100
SOILteam



SOILcoin dApp Hackathon

The SOILcoin development team is pleased to announce a SOIL dApp Hackathon, in which developers can submit innovative application prototypes on the SOIL Crytographic Ledger Platform. This hackathon begins, March 21 2016, the Spring Equinox.

The SOILcoin development team is donating a substantial disbursement award earmarked from the community fund which we set up upon our genesis block, but if the community wishes to donate to the overall award reserve we welcome that as well, as a bigger fund will lead to much higher quality submissions.

Total Contest Fund: 100,000 SOIL (at current 7 day average valuation ~ USD $2040 or 4.9875BTC)


Details

The Hackathon will run over the course of 12 weeks, closing June 21 2016, the Summer Solstice. We invite both individuals and teams to participate. Full scaled dApps and single functional contracts are acceptable as submissions.

When the SOILcoin dApp Contest ends, we will present our community 2 weeks to vote for their favorite dApps through an open stakeholder vote. You, the community, will be the judges.

The SOILteam will announce the winners on July 8, 2016.

The funds are held at the following SOIL address: 0x2321e69e5038d925ac2CB4894ed735aA3879280D
This is a 2-of-2 multi-sig contract wallet, requiring, by implementation of a smart contract, that both members of the SOILcoin core development team to sign out-migrating transactions.

Any community members who wish to, are encouraged to donate, and more importantly PARTICIPATE!.


Rules

  • The dApp must be available on a GitHub repository, with an open source code, by the conclusion of the Contest Period. GitHub will be used as the Hackathon Software Repository. Every project will check in their source, design documents, and other digital resources, and provide the link with their submission.
  • The dApp must be originally written and owned by the project developer themselves, we are seeking innovatinve contributions, not simple ports of existing projects onto the SOILnet.
  • The dApp function must reconcile the spirit of the SOILcoin ecosphere. That is, it should relate, in theory and implementation, the core service paradigms embraced by the SOILcoin project.
  • *RENEWABLE ENERGY * ENVIRONMENTAL TECHNOLOGY * PRECISION AGRICULTURE * COMPUTATIONAL SCIENTIFIC APPLICATIONS *
  • The dApp submission must include its contract wallet address and JSON interface as part of its documentation.
  • The SOILcoin development team is not eligible to win the listed awards, although, community members are more than welcome to personally donate towards any SOILcoin Hackathon registered projects they deem useful and innovative, as well as the overall award fund if they wish.


Reward

  • First Prize: 50% of Hackathon fund
  • Second Prize: 35% of Hackathon fund
  • Third Prize: 15% of Hackathon fund

The percentages shown, represent the proportion of the final collected prize fund the individual winner can expect to receive. It is therefore, only possible to collect one prize per submission. In the situation where one developer submits two unique dApps, and they both win  in ballotting independently, then that developer will be eligible to receive both prizes.

At the current default Fund balance (100,000 SOIL), and based against the 7 day average valuation for SOILcoin, as listed at Bittrex, 1st prize would be valued at ~ USD$1020, 2nd prize would be valued at ~ USD$714 and 3rd prize would be valued at ~ USD$306.


Dapp Resources

Our DUST dApp/wallet release features compiling, deployment and interaction tools, especially for Solidity programming based smart contracts. The official link for downloading this package is available on our Bitcoitalk.com forum page's Original Post. [https://bitcointalksearch.org/topic/ann-soil-environmental-agriculture-smart-contracts-sustainable-1176709]

An article by abvhiael introducing some of the compilers available on line as secondary choices for contract work is available at [https://bitcointalksearch.org/topic/m.14017721]

Several wonderful tutorials regarding programming in Solidity can be found online, based on the Ethereum protocol, which SOILcoin neatly parallels.

The following links to tutorials will get you started:
http://ethereum.github.io/solidity/
https://docs.erisindustries.com/tutorials/solidity/solidity-1/
https://solidity.readthedocs.org/en/latest/

If you have questions, or need ideas, the ethereumforum page dedicated to Solidity projects is a great place to start:
https://forum.ethereum.org/categories/solidity
hero member
Activity: 1039
Merit: 510
hero member
Activity: 722
Merit: 501
i think its time to build a wiki for SOILcoin... (off to the books i go)
hero member
Activity: 722
Merit: 501
DUST - an overview -PART5

If you want to interact with the token referenced in this guide, the STAR token ("★") was deployed with 1,000,000 units and 2 decimal places, creating 10,000 whole units. I sent a transaction of 10 SOIL to the account, "backing" the STAR token with that amount. Essentially, each ★ is thus "backed" by 0.001 SOIL.*

The token address is:0xc9173b14c234d27cfEac02A4d66383560B7d1Ba0
The JSON interface you can copy/paste in the appropriate pane under the WATCH CONTRACT menu is:

Code:
[ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "STAR", "displayName": "" } ], "type": "function", "displayName": "name" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address", "typeShort": "address", "bits": "", "displayName": " _ from", "template": "elements_input_address" }, { "name": "_to", "type": "address", "typeShort": "address", "bits": "", "displayName": " _ to", "template": "elements_input_address" }, { "name": "_value", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": " _ value", "template": "elements_input_uint" } ], "name": "transferFrom", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "transfer From" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "name": "", "type": "uint8", "value": "2", "displayName": "" } ], "type": "function", "displayName": "decimals" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "balance Of" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": "★", "displayName": "" } ], "type": "function", "displayName": "symbol" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address", "typeShort": "address", "bits": "", "displayName": " _ to", "template": "elements_input_address" }, { "name": "_value", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": " _ value", "template": "elements_input_uint" } ], "name": "transfer", "outputs": [], "type": "function", "displayName": "transfer" }, { "constant": false, "inputs": [ { "name": "_spender", "type": "address", "typeShort": "address", "bits": "", "displayName": " _ spender", "template": "elements_input_address" }, { "name": "_value", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": " _ value", "template": "elements_input_uint" }, { "name": "_extraData", "type": "bytes", "typeShort": "bytes", "bits": "", "displayName": " _ extra Data", "template": "elements_input_bytes" } ], "name": "approveAndCall", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "approve And Call" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address" }, { "name": "", "type": "address", "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address" } ], "name": "spentAllowance", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "spent Allowance" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address" }, { "name": "", "type": "address", "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address" } ], "name": "allowance", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "allowance" }, { "inputs": [ { "name": "initialSupply", "type": "uint256", "typeShort": "uint", "bits": "256", "displayName": "initial Supply", "template": "elements_input_uint", "value": "1000000" }, { "name": "tokenName", "type": "string", "typeShort": "string", "bits": "", "displayName": "token Name", "template": "elements_input_string", "value": "STAR" }, { "name": "decimalUnits", "type": "uint8", "typeShort": "uint", "bits": "8", "displayName": "decimal Units", "template": "elements_input_uint", "value": "2" }, { "name": "tokenSymbol", "type": "string", "typeShort": "string", "bits": "", "displayName": "token Symbol", "template": "elements_input_string", "value": "★" } ], "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" } ]

If anyone wants some FREE ★, send me a private message with your SOILcoin wallet address on bitcointalk, I'll transfer you some.  
(https://bitcointalk.org/index.php?action=pm;sa=send;u=541917)
~abvhiael (developer's reserve wallet: 0xe46731382FbC47621A6C480d4b6118026bBBCb3A)

***

Great help on using Mist, and hence... DUST.. not covered in this overview can be found in the wonderful guide written by "KLmoney" at: https://klmoney.wordpress.com/

New developments and troubleshooting the Mist plaform dApp/wallet can be found on the Ethereum forum. (https://forum.ethereum.org/categories/mist)

Further information on tokens (somewhat dated compared to the present token interactions in Beta9) can be found at: (https://www.ethereum.org/token)
hero member
Activity: 722
Merit: 501
DUST - an overview- PART4
THE CONTRACT INTERFACE

When you choose a contract address under your Custom Contracts, those written and compiled with Solidity will have contract interface controls available as drop down menus. Using the previous example, token.sol, it produces the STAR (Admin Page) with the capabilities of reading from and writing to the token contract.

This will give you the token name, symbol and decimals as well as an input variable to see the unit balance of the token on any SOILcoin address. If you copy/paste your deploying wallet address into the variable field, after deploying the parameters in teh above example, it would show the token owner as having a balance of 1000000 STAR (10,000.00)

Writing to the contract reveals a Function Selector drop down menu. These functions reflect the function calls from teh original contract and with the token.sol contract, you can make transactions that will allow you to transfers to or from another SOILcoin address, as well as Approve and Call a third-party spender address.

The buttons on the upper right of the screen will allow you to simply deposit this token to any address, produce a QR-code for the token, and pull up its JSON interface file.

Each contract will have different parameters and callable functions. With other solidity language compiled smart contracts, they will be available to be interacted from these pages.

***


Pages:
Jump to: