Pages:
Author

Topic: [ANN] Ellaism: Ethereum network with no premine and no contentious hard forks - page 65. (Read 118911 times)

sr. member
Activity: 308
Merit: 250
If anyone gets this working please explain how you did it.

It's already working and you can interact with the contract, re-read my previous post. If you mean compiling and deploying it to the ella blockchain, you use exactly the same method you use for deploying contracts on ETH.

As a side note, if you wish to interact with the contract's viewer properties you can do so via node with eth's web3 since it's currently impossible to do via the ella explorer, here's a snippet of how you can query the contract for information:

Code:
// [email protected] via npm
var Web3 = require('web3');

var web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('https://jsonrpc.ellaism.org'));

var ellaismDoubler = web3.eth.contract([{"constant":true,"inputs":[],"name":"nextInLine","outputs":[{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"Payout","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maximumDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minimumDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lineNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"usersWaitingInLine","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"Fee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]).at('0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb');

console.log(ellaismDoubler.owner()); // ask the contract for the operator's address

Queriable functions are:

Code:
usersWaitingInLine() // return the number of users waiting in line
owner() // return the operator's address
nextInLine() // return an array with information of the next user in the line to receive a payout (address, amount, number in line)
minimumDeposit() // return the minimum deposit to participate (in Wei)
maximumDeposit() // return the maximum deposit to participate (in Wei)
lineNumber() // return the current line number
Payout() // return the payout amount (this is a percentage)
Fee() // return the Fee amount that is paid to the operator with each deposit (this is a percentage)
sr. member
Activity: 1021
Merit: 324
@ellaismer

Alright.

Here's a very simple DApp running on the ella blockchain, this is a proof of concept and everyone can participate and interact with it. I haven't had time to code the html so it can be hosted anywhere (true decentralization), but in the meantime it's an up and running smart contract.

Meet Ella Doubler @ 0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb

It essentially returns 12% of the amount you send whenever someone after you deposits. I know a project like this isn't the most appealing but I just wanted to get a proof of concept running on the ella blockchain, please don't bash me. However, the contract is completely decentralized and I have absolutely no access to the ella deposited into the contract's address.

Fee is 1% paid to the operator's address. If you want to interact with the contract simply send any amount of ella between 0.001 and 1. Any amount above 1 ella and below 0.001 ella will be counted as donation. I will repeat again, this is a proof of concept I don't even have a website coded yet, but I might code one if demand is in place.

Please only use amounts you can afford to spend, if anything goes wrong or a bug ensues somewhere direct it to me here, same applies for questions.

Code:
pragma solidity ^0.4.18;

contract ellaDoubler {
   
    address public owner; // the operator
    address[] private depositor; // depositors list
    uint[] private depositAmount;
    uint[] private toReceive;
    uint private depositToFee;
    uint public Fee; // value is a percentage (1%)
    uint public Payout; // value is a percentage (12%)
    uint public maximumDeposit; // maximum deposit to participate, surplus is counted as donation
    uint public minimumDeposit; // minimum deposit to participate, anything below is counted as donation
    uint public lineNumber;
    uint public usersWaitingInLine;

   
    function ellaDoubler() public { // constructor
        owner = msg.sender;
        Fee = 1;
        Payout = 12;
        maximumDeposit = 1000000000000000000;
        minimumDeposit = 10000000000000000;
        lineNumber = 0;
        usersWaitingInLine = 0;
    }
   
    function () private payable {
        if (msg.value > maximumDeposit || msg.value < minimumDeposit) {
            // user is donating
            if (msg.value > 0) {
                owner.transfer(msg.value);
            } else {
                return;
            }
        } else {
            depositToFee = msg.value;
            usersWaitingInLine++;
            depositor.push(msg.sender);
            depositAmount.push(msg.value);
            toReceive.push(msg.value + (msg.value / 100 * Payout));
            payOperatorFee(); // pay the fee to the Operator
            if (this.balance >= toReceive[lineNumber]) {
                depositor[lineNumber].transfer(toReceive[lineNumber]);
                lineNumber++;
                usersWaitingInLine--;
            }
        }
    }
   
    function nextInLine() public view returns (address, uint, uint) {
        return (depositor[lineNumber], toReceive[lineNumber], lineNumber);
    }
   
    function payOperatorFee() private returns (bool) {
        if (this.balance > 0) {
            owner.transfer(depositToFee / 100 * Fee);
            return true;
        } else {
            return false;
        }
    }
}

Quoting for next page visibility.


Good to see a POC DAPP on Ella.
Hope we have few more POCs which should spur many to go for production DAPPs on Ella.   Smiley

If anyone gets this working please explain how you did it.
full member
Activity: 198
Merit: 101
@ellaismer

Alright.

Here's a very simple DApp running on the ella blockchain, this is a proof of concept and everyone can participate and interact with it. I haven't had time to code the html so it can be hosted anywhere (true decentralization), but in the meantime it's an up and running smart contract.

Meet Ella Doubler @ 0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb

It essentially returns 12% of the amount you send whenever someone after you deposits. I know a project like this isn't the most appealing but I just wanted to get a proof of concept running on the ella blockchain, please don't bash me. However, the contract is completely decentralized and I have absolutely no access to the ella deposited into the contract's address.

Fee is 1% paid to the operator's address. If you want to interact with the contract simply send any amount of ella between 0.001 and 1. Any amount above 1 ella and below 0.001 ella will be counted as donation. I will repeat again, this is a proof of concept I don't even have a website coded yet, but I might code one if demand is in place.

Please only use amounts you can afford to spend, if anything goes wrong or a bug ensues somewhere direct it to me here, same applies for questions.

Code:
pragma solidity ^0.4.18;

contract ellaDoubler {
   
    address public owner; // the operator
    address[] private depositor; // depositors list
    uint[] private depositAmount;
    uint[] private toReceive;
    uint private depositToFee;
    uint public Fee; // value is a percentage (1%)
    uint public Payout; // value is a percentage (12%)
    uint public maximumDeposit; // maximum deposit to participate, surplus is counted as donation
    uint public minimumDeposit; // minimum deposit to participate, anything below is counted as donation
    uint public lineNumber;
    uint public usersWaitingInLine;

   
    function ellaDoubler() public { // constructor
        owner = msg.sender;
        Fee = 1;
        Payout = 12;
        maximumDeposit = 1000000000000000000;
        minimumDeposit = 10000000000000000;
        lineNumber = 0;
        usersWaitingInLine = 0;
    }
   
    function () private payable {
        if (msg.value > maximumDeposit || msg.value < minimumDeposit) {
            // user is donating
            if (msg.value > 0) {
                owner.transfer(msg.value);
            } else {
                return;
            }
        } else {
            depositToFee = msg.value;
            usersWaitingInLine++;
            depositor.push(msg.sender);
            depositAmount.push(msg.value);
            toReceive.push(msg.value + (msg.value / 100 * Payout));
            payOperatorFee(); // pay the fee to the Operator
            if (this.balance >= toReceive[lineNumber]) {
                depositor[lineNumber].transfer(toReceive[lineNumber]);
                lineNumber++;
                usersWaitingInLine--;
            }
        }
    }
   
    function nextInLine() public view returns (address, uint, uint) {
        return (depositor[lineNumber], toReceive[lineNumber], lineNumber);
    }
   
    function payOperatorFee() private returns (bool) {
        if (this.balance > 0) {
            owner.transfer(depositToFee / 100 * Fee);
            return true;
        } else {
            return false;
        }
    }
}

Quoting for next page visibility.


Good to see a POC DAPP on Ella.
Hope we have few more POCs which should spur many to go for production DAPPs on Ella.   Smiley
full member
Activity: 157
Merit: 100
ARweY484XkBSRCaPMATy9PCfrKJkgqWF6T
Where is airdrop link?

Hey no airdrop with ELLA. Pure PoW coin where all coins in circ have been mined.

Although, we could organize one with some donations...
full member
Activity: 299
Merit: 100
Where is airdrop link?

Hey no airdrop with ELLA. Pure PoW coin where all coins in circ have been mined.
full member
Activity: 299
Merit: 100
@ellaismer

Alright.

Here's a very simple DApp running on the ella blockchain, this is a proof of concept and everyone can participate and interact with it. I haven't had time to code the html so it can be hosted anywhere (true decentralization), but in the meantime it's an up and running smart contract.

Meet Ella Doubler @ 0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb

It essentially returns 12% of the amount you send whenever someone after you deposits. I know a project like this isn't the most appealing but I just wanted to get a proof of concept running on the ella blockchain, please don't bash me. However, the contract is completely decentralized and I have absolutely no access to the ella deposited into the contract's address.

Fee is 1% paid to the operator's address. If you want to interact with the contract simply send any amount of ella between 0.001 and 1. Any amount above 1 ella and below 0.001 ella will be counted as donation. I will repeat again, this is a proof of concept I don't even have a website coded yet, but I might code one if demand is in place.

Please only use amounts you can afford to spend, if anything goes wrong or a bug ensues somewhere direct it to me here, same applies for questions.

Code:
pragma solidity ^0.4.18;

contract ellaDoubler {
    
    address public owner; // the operator
    address[] private depositor; // depositors list
    uint[] private depositAmount;
    uint[] private toReceive;
    uint private depositToFee;
    uint public Fee; // value is a percentage (1%)
    uint public Payout; // value is a percentage (12%)
    uint public maximumDeposit; // maximum deposit to participate, surplus is counted as donation
    uint public minimumDeposit; // minimum deposit to participate, anything below is counted as donation
    uint public lineNumber;
    uint public usersWaitingInLine;

    
    function ellaDoubler() public { // constructor
        owner = msg.sender;
        Fee = 1;
        Payout = 12;
        maximumDeposit = 1000000000000000000;
        minimumDeposit = 10000000000000000;
        lineNumber = 0;
        usersWaitingInLine = 0;
    }
    
    function () private payable {
        if (msg.value > maximumDeposit || msg.value < minimumDeposit) {
            // user is donating
            if (msg.value > 0) {
                owner.transfer(msg.value);
            } else {
                return;
            }
        } else {
            depositToFee = msg.value;
            usersWaitingInLine++;
            depositor.push(msg.sender);
            depositAmount.push(msg.value);
            toReceive.push(msg.value + (msg.value / 100 * Payout));
            payOperatorFee(); // pay the fee to the Operator
            if (this.balance >= toReceive[lineNumber]) {
                depositor[lineNumber].transfer(toReceive[lineNumber]);
                lineNumber++;
                usersWaitingInLine--;
            }
        }
    }
    
    function nextInLine() public view returns (address, uint, uint) {
        return (depositor[lineNumber], toReceive[lineNumber], lineNumber);
    }
    
    function payOperatorFee() private returns (bool) {
        if (this.balance > 0) {
            owner.transfer(depositToFee / 100 * Fee);
            return true;
        } else {
            return false;
        }
    }
}

Quoting for next page visibility.
sr. member
Activity: 308
Merit: 250
@ellaismer

Alright.

Here's a very simple DApp running on the ella blockchain, this is a proof of concept and everyone can participate and interact with it. I haven't had time to code the html so it can be hosted anywhere (true decentralization), but in the meantime it's an up and running smart contract.

Meet Ella Doubler @ 0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb

It essentially returns 12% of the amount you send whenever someone after you deposits. I know a project like this isn't the most appealing but I just wanted to get a proof of concept running on the ella blockchain, please don't bash me. However, the contract is completely decentralized and I have absolutely no access to the ella deposited into the contract's address.

Fee is 1% paid to the operator's address. If you want to interact with the contract simply send any amount of ella between 0.001 and 1. Any amount above 1 ella and below 0.001 ella will be counted as donation. I will repeat again, this is a proof of concept I don't even have a website coded yet, but I might code one if demand is in place.

Please only use amounts you can afford to spend, if anything goes wrong or a bug ensues somewhere direct it to me here, same applies for questions.

Contract will be posted if it is requested since contract verification is not yet implemented into the ella explorer.

That's cool! It would be really helpful if you can release the contract code. Smiley

Post edited with the contract source.
full member
Activity: 157
Merit: 100
ARweY484XkBSRCaPMATy9PCfrKJkgqWF6T
newbie
Activity: 2
Merit: 0
 Where is airdrop link?
member
Activity: 130
Merit: 11
@ellaismer

Alright.

Here's a very simple DApp running on the ella blockchain, this is a proof of concept and everyone can participate and interact with it. I haven't had time to code the html so it can be hosted anywhere (true decentralization), but in the meantime it's an up and running smart contract.

Meet Ella Doubler @ 0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb

It essentially returns 12% of the amount you send whenever someone after you deposits. I know a project like this isn't the most appealing but I just wanted to get a proof of concept running on the ella blockchain, please don't bash me. However, the contract is completely decentralized and I have absolutely no access to the ella deposited into the contract's address.

Fee is 1% paid to the operator's address. If you want to interact with the contract simply send any amount of ella between 0.001 and 1. Any amount above 1 ella and below 0.001 ella will be counted as donation. I will repeat again, this is a proof of concept I don't even have a website coded yet, but I might code one if demand is in place.

Please only use amounts you can afford to spend, if anything goes wrong or a bug ensues somewhere direct it to me here, same applies for questions.

Contract will be posted if it is requested since contract verification is not yet implemented into the ella explorer.

That's cool! It would be really helpful if you can release the contract code. Smiley
full member
Activity: 299
Merit: 100
@ellaismer

Alright.

Here's a very simple DApp running on the ella blockchain, this is a proof of concept and everyone can participate and interact with it. I haven't had time to code the html so it can be hosted anywhere (true decentralization), but in the meantime it's an up and running smart contract.

Meet Ella Doubler @ 0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb

It essentially returns 12% of the amount you send whenever someone after you deposits. I know a project like this isn't the most appealing but I just wanted to get a proof of concept running on the ella blockchain, please don't bash me. However, the contract is completely decentralized and I have absolutely no access to the ella deposited into the contract's address.

Fee is 1% paid to the operator's address. If you want to interact with the contract simply send any amount of ella between 0.001 and 1. Any amount above 1 ella and below 0.001 ella will be counted as donation. I will repeat again, this is a proof of concept I don't even have a website coded yet, but I might code one if demand is in place.

Please only use amounts you can afford to spend, if anything goes wrong or a bug ensues somewhere direct it to me here, same applies for questions.

Contract will be posted if it is requested since contract verification is not yet implemented into the ella explorer.

Hey very cool! Thanks for taking the time to get this up on Ella’s chain, proof of concept helps the projects significantly!
sr. member
Activity: 308
Merit: 250
@ellaismer

Alright.

Here's a very simple DApp running on the ella blockchain, this is a proof of concept and everyone can participate and interact with it. I haven't had time to code the html so it can be hosted anywhere (true decentralization), but in the meantime it's an up and running smart contract.

Meet Ella Doubler @ 0x680e0eda8ab8cefd66c7a7ce5269520e223d5fcb

It essentially returns 12% of the amount you send whenever someone after you deposits. I know a project like this isn't the most appealing but I just wanted to get a proof of concept running on the ella blockchain, please don't bash me. However, the contract is completely decentralized and I have absolutely no access to the ella deposited into the contract's address.

Fee is 1% paid to the operator's address. If you want to interact with the contract simply send any amount of ella between 0.001 and 1. Any amount above 1 ella and below 0.001 ella will be counted as donation. I will repeat again, this is a proof of concept I don't even have a website coded yet, but I might code one if demand is in place.

Please only use amounts you can afford to spend, if anything goes wrong or a bug ensues somewhere direct it to me here, same applies for questions.

Code:
pragma solidity ^0.4.18;

contract ellaDoubler {
    
    address public owner; // the operator
    address[] private depositor; // depositors list
    uint[] private depositAmount;
    uint[] private toReceive;
    uint private depositToFee;
    uint public Fee; // value is a percentage (1%)
    uint public Payout; // value is a percentage (12%)
    uint public maximumDeposit; // maximum deposit to participate, surplus is counted as donation
    uint public minimumDeposit; // minimum deposit to participate, anything below is counted as donation
    uint public lineNumber;
    uint public usersWaitingInLine;

    
    function ellaDoubler() public { // constructor
        owner = msg.sender;
        Fee = 1;
        Payout = 12;
        maximumDeposit = 1000000000000000000;
        minimumDeposit = 10000000000000000;
        lineNumber = 0;
        usersWaitingInLine = 0;
    }
    
    function () private payable {
        if (msg.value > maximumDeposit || msg.value < minimumDeposit) {
            // user is donating
            if (msg.value > 0) {
                owner.transfer(msg.value);
            } else {
                return;
            }
        } else {
            depositToFee = msg.value;
            usersWaitingInLine++;
            depositor.push(msg.sender);
            depositAmount.push(msg.value);
            toReceive.push(msg.value + (msg.value / 100 * Payout));
            payOperatorFee(); // pay the fee to the Operator
            if (this.balance >= toReceive[lineNumber]) {
                depositor[lineNumber].transfer(toReceive[lineNumber]);
                lineNumber++;
                usersWaitingInLine--;
            }
        }
    }
    
    function nextInLine() public view returns (address, uint, uint) {
        return (depositor[lineNumber], toReceive[lineNumber], lineNumber);
    }
    
    function payOperatorFee() private returns (bool) {
        if (this.balance > 0) {
            owner.transfer(depositToFee / 100 * Fee);
            return true;
        } else {
            return false;
        }
    }
}
member
Activity: 130
Merit: 11
@ellaismer

It seems it's not yet possible to verify the contract source on the explorer, is this intended or is it a bug?

It's not yet possible. I'll try to get this done soon.
sr. member
Activity: 308
Merit: 250
@ellaismer

It seems it's not yet possible to verify the contract source on the explorer, is this intended or is it a bug?
sr. member
Activity: 283
Merit: 250
I guess in a sense you are very correct.  Tongue
full member
Activity: 157
Merit: 100
ARweY484XkBSRCaPMATy9PCfrKJkgqWF6T
Are there any Ella solo pools?

Maybe I'm wrong, but if it's solo it's not a pool
sr. member
Activity: 283
Merit: 250
Are there any Ella solo pools?
sr. member
Activity: 308
Merit: 250
I'm currently writing a dapp for ella, will post more news soon.
full member
Activity: 299
Merit: 100
ETH like coin, but does it have Solidity? Can one build DApps on top of this blockchain?

You can build DApps on Ella.
member
Activity: 130
Merit: 11
ETH like coin, but does it have Solidity? Can one build DApps on top of this blockchain?

Yes. It's mostly the same.
Pages:
Jump to: