Questions tagged [interfaces]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
485 views

Can we modify ERC20 functions?

I have to create and transfer token using ERC 20.Inside the standard interface of ERC 20, we have function approve(address spender,using token) which inturn approves spender to take some token from (...
2
votes
2answers
465 views

Anyone knows what does this contract code mean?

Refer to the link below: https://github.com/bokkypoobah/Tokens/blob/master/contracts/MyToken.sol Line 62: contract ApproveAndCallFallBack { function receiveApproval(address from, uint256 tokens,...
0
votes
1answer
111 views

Identical contract functions in interface with different inputs

In the ERC721 interface, you have two functions with the same name: function transferFrom(address _from, address _to, uint256 _tokenId) public; function transferFrom(address _from, address _to, ...
5
votes
1answer
5k views

Deploying abstract contracts and interfaces

I am trying to create a basic inheritance hierarchy with abstract/virtual formalisms. Consider the following two contracts: Abstract Contract (IUser.sol): contract IUser { function addUser (...
6
votes
3answers
8k views

How to call smart contract from html/Javascript

I want to have an html/Javascript code interact with a smart contract. Can someone please outline the basic/high level steps? I am seeing too many things spread across the net, finally confusing.
3
votes
1answer
243 views

Best practices for interacting with other contracts

I would like to know what is the best approach and the best practices to intercat with other contracts. Here are the MyFriendToken.sol and the MyService.sol: MyFriendToken.sol I would like to know ...
1
vote
1answer
481 views

How does the ERC20 tutorial instantiate an unimplemented interface?

I've been going through the official Ethereum token tutorial and I noticed that the provided token code includes the following lines within the approveAndCall function: tokenRecipient spender = ...