These are chat archives for Nethereum/Nethereum

25th
Oct 2018
Juan Blanco
@juanfranblanco
Oct 25 2018 05:07 UTC
@spied001 yes that is why I am very eager to update docs.. I think I may plaster it in the readme
for the Unity3d guys ^^^
Mosin Pathan
@mosinms7711
Oct 25 2018 08:19 UTC
@juanfranblanco i manage to do pass parameter in traditional…instead of interface i used class to access class function and variable…thank you for help…can you tell me more about creating account in nethereum and wallet setup in xamrin forms...
and also about smart contract...
Juan Blanco
@juanfranblanco
Oct 25 2018 08:20 UTC
sure that is another way around it.. having the current context and state, so you can get the current id
it gets a bit complex when you have the same view / viewmodels with different contexts
Mosin Pathan
@mosinms7711
Oct 25 2018 08:22 UTC
Ok…can you tell me about token address…???how we can create token…???and what is format of it.???
Juan Blanco
@juanfranblanco
Oct 25 2018 08:23 UTC
check
Mosin Pathan
@mosinms7711
Oct 25 2018 08:23 UTC
thank you...
that explains you the overall lifecycle
of deployment, querying, transfer
you can see it also in this workbook
Mosin Pathan
@mosinms7711
Oct 25 2018 08:24 UTC
thank you…let me check and let you know in any difficulties...
also for tokens we have already a generic
api
but better to get an understanding of interacting with smart contracts
and then use the api if you want
the next step will be to work with events
but before you anything you may want to use vscode solidity to genenerate your api for your smart contract (if you are creating a solidity smart contract)
Mosin Pathan
@mosinms7711
Oct 25 2018 08:27 UTC
i read about smart contract…for now some concept about smart contract is clear…now i am looking to do write code of own and implement all things like create account and setup wallet...
Juan Blanco
@juanfranblanco
Oct 25 2018 08:28 UTC
ok people start with smart contracts
as your tokens are smart contracts
but it does not matter really which route you take all are good
Mosin Pathan
@mosinms7711
Oct 25 2018 08:41 UTC
ok
Mosin Pathan
@mosinms7711
Oct 25 2018 09:11 UTC
Hi @juanfranblanco ...
can you please tell me why so many function are called to get AccountSummary…there is any specific reason or make things more easy you did in that way…???

Account Balance Summary Flow

EthWalletService(class)->

GetWalletSummary(bool parameter(false))[Function]

-> GetAllAccountsInfo(bool parameter(false))[Function]

-> RefreshAllAccountsInfo()[Function]

->

GetAccounts()[function]

GetRegisteredTokens()[Function][InMemoryTokenRegistryService(class)]

i have to go through these step to get account summary…same things applies for balance summary…
Juan Blanco
@juanfranblanco
Oct 25 2018 10:05 UTC
different libraries
decoupling
1 library has the ui logic another the business logic
so it can be reused.. well it will be reused eventually when all the "wallets" merge into one library
Mosin Pathan
@mosinms7711
Oct 25 2018 10:07 UTC
ok
GripZhang
@ProDog
Oct 25 2018 11:05 UTC
hi
Juan Blanco
@juanfranblanco
Oct 25 2018 11:15 UTC
hi
Sergio Piedrahita
@spied001
Oct 25 2018 17:32 UTC
@spied001 if you code generate it a service is created for you also, for further simplicity and less typing
In the code generated service, is the gas calculated behind the scenes when calling the contract functions, what we are currently doing in code is that we calculate the gas before sending the transaction and then we pass that value to the sendRequest
Sergio Piedrahita
@spied001
Oct 25 2018 17:40 UTC
for example in one of the contract service classes ContractHandler.SendRequestAndWaitForReceiptAsync(someContractFunction, cancellationToken) is called
does SendRequestAndWaitForReceiptAsync calculates the gas before sending the request?
kirkilyduck
@kirkilyduck
Oct 25 2018 18:00 UTC

@juanfranblanco

check https://github.com/Nethereum/Nethereum.Workbooks/blob/master/docs/nethereum-events-gettingstarted.workbook

it helped a lot, i implemented the event listener, thank you very much for the help :)

Juan Blanco
@juanfranblanco
Oct 25 2018 19:09 UTC
@spied001 yes
it does calculate it if you don't set the value, this is a new workbook hopefully it will help
@kirkilyduck great :)