Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions regarding the development of smart contracts
1
vote
Accepted
Its possible to recive and send tokens by smartcontract?
As long as you implement into your contract functions that allows it to interact with the contract that created the tokens, this is possible. If the token is a standard, like ERC20, the same code (cha …
2
votes
Accepted
Is it possible to change a variable based on time?
You can not do this natively. As stated above you can use services.
ETH-Tempus
Oraclize
Ethereum Alarm Clock
ETH-Tempus is the simplest and cheaper. The difference with oraclize is that the gas co …
1
vote
What _totalsupply number are we passing in smart contract in functions?
You should use the number that is multiplied by decimals (10**18). So if you want to transfer one token you pass the value 1000000000000000000. This is because there is not float number representation …
1
vote
Accepted
Can smart contracts be used for refundable purchases of physical items?
In any system that requires information, something or someone should provide the information.
The contracts that you describe could very easily be implemented on ethereum. The information can be prov …
0
votes
calling payable (solidity) method with python
Using web3py you can access the functions in your contract, which I assume is what you are doing. From your code, I get that the contract instance is fcontract.
You can do:
fcontract.functions.inves …
1
vote
How to integrate Ethereum with MATLAB?
You can do the matrix manipulations on python instead, using web3.py
I hope this helps.
1
vote
How to tell a contract when to do an action based on time and blocks?
You could use any of the services available to schedule executions of functions.
You can use:
Ethereum Clock Alarm.
Oraclize
Chronos
Disclaimer: I wrote the Chronos code and it is available only on …
2
votes
How to call function from child contract in parent contract?
There is an issue in the first contract.
two = ConfigContract(msg.sender);
The address you need to put in ConfigContract('address') is the address at which ConfigContract was deployed. Like this:
…
1
vote
Accepted
Will encodeAbi() preserve now value?
Now will be the value of the timestamp of the current block, so the value will change with time.
0
votes
Accepted
How do I implement an internally populated blacklist?
The blacklist checking is simple:
mapping (address => bool) public blacklist;
// TODO: function to clear blacklist -----
if (msg.value < 0.005 ether) {
require(firstPurchaceTierAllowe …
3
votes
Accepted
Calling a smart-contract fallback function from another contract
The thing is that the transfer method allows for 2300 gas stipend. Because the fallback has a transfer again, 2300 won't be enough. You can use
addressB.call.value(msg.value)()
which will pass all …
1
vote
How can a smart contract store mutable data outside blockchain?
In this case you will use the Blockchain ( using a smart contract) as a source of truth that for each document will provide an unique identifier (the document's hash). Assume for example, that your ap …
5
votes
Encryption in solidity
If you send the data and then encrypt it in solidity, the data will be visible in the transaction that in the first place was used to send the data to the contract. Also, solidity doesn't have a funct …
0
votes
Accepted
what is ERC20 ERC20 token = ERC20(_tokenAddress)
assume that the ERC20 token that you want to transfer is called ERC20Token (thats the name of the contract)
you can import ERC20Token contract (or the interface of it) in your contract and then do th …
1
vote
How smart contract different than programs-package?
Through human history people has come with new ideas and baptize these ideas with names. "Smart contract" is a name for one idea. It is nothing but a piece of code ( in this case running in a decentra …