These are chat archives for Nethereum/Nethereum

9th
Feb 2018
BradenPorter
@BradenPorter
Feb 09 2018 00:53 UTC
How easy can it be to port a an android DAPP made with Xamarin/Nethereum over to iOS?
Juan Blanco
@juanfranblanco
Feb 09 2018 14:23 UTC
@Thought_2Life_twitter creating an oracle, verification service is sadly something you will have to do many times. Sometimes there is a need to bridge the "centralise" world and decentralised. This can be as simple as the current exchange rate between gbp and usd
@kkagill did the smart contract deploy correctly? enough gas etc, I cannot see anything wrong after a quick look
@singlr is there an issue with your abi?
DesignBrian
@Thought_2Life_twitter
Feb 09 2018 14:27 UTC
@juanfranblanco yeah you right. I just really wanted to keep all things on the chain such a verification process. I thought about creating a way for people to "mine" and verify the truth of a contract transaction. By mine I mean they submit and verify if a statement is true. If there enough people who verify that a statement is true then it is true. Otherwise it is false.
Juan Blanco
@juanfranblanco
Feb 09 2018 14:28 UTC
ok so you want people to vote to validate if something is correct
how do you know you can trust them?
will they have some stake in the system
DesignBrian
@Thought_2Life_twitter
Feb 09 2018 14:29 UTC
Yeah see that is what I thought like a internal form of "mining"
Having some POS way of verifying. Within the contract.
But now I feel I'm just reinventing a blockchain within a blockchain lol
Juan Blanco
@juanfranblanco
Feb 09 2018 14:32 UTC
@Thought_2Life_twitter well that is a good use case for tokens
@sinhashish can you post the full code sample?
@BradenPorter if you use Xamarin.Forms it will be straight forward
instant in most of the scenarios
DesignBrian
@Thought_2Life_twitter
Feb 09 2018 14:37 UTC
Essentially the use case is like This. People buy with ethereum a coin that can be exchange out for ethereum at any time. The contract holds the ether like a bank tying the ether to the user contract wallet. They then off chain play a game where one user can take a already approved amount from the losing opponent. The amount of "coins" is added to the user contract and deducted from the loser. However how to verify that the user won is where I am thinking of a POS since the results happen off chain. Computing the results would be to much on chain... possibly.
Juan Blanco
@juanfranblanco
Feb 09 2018 14:44 UTC
hmm you need state channels?
how do your users know who is the loser?
how do you know the movements?
and that have not been tampered?
where is this data stored?
She Jong Shon
@kkagill
Feb 09 2018 15:02 UTC
@juanfranblanco juan thanks for your reply. Could you take a look at this? I still cannot find out why CallDeserializingToObjectAsync is not returning anything
She Jong Shon
@kkagill
Feb 09 2018 15:27 UTC
@juanfranblanco it works with remix though
DesignBrian
@Thought_2Life_twitter
Feb 09 2018 15:31 UTC
Good points. I need go back to the drawing board. I will come share with you my thoughts. I appreciate you for taking time. Thanks
Juan Blanco
@juanfranblanco
Feb 09 2018 19:26 UTC
@kkagill when you say it works with remix, are you deploying to a testnet?
EKostan
@EKostan
Feb 09 2018 19:48 UTC
hello, anyone known how I can convert "now" time from solidity to DateTime ?
EKostan
@EKostan
Feb 09 2018 19:55 UTC
DateTime d = DateTimeOffset.FromUnixTimeSeconds(1518233797).DateTime.ToLocalTime();
that works )
thx everyone