Bitcoin Forum
November 19, 2024, 04:21:40 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Where can I find the various Ethereum token contract solitidy source code  (Read 75 times)
myapple (OP)
Member
**
Offline Offline

Activity: 100
Merit: 11


View Profile
February 01, 2018, 01:02:48 PM
 #1

Thanks
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
February 01, 2018, 04:32:23 PM
 #2

Do you want sample codes or existing codes for various tokens?
If it's the former, check Consensys' GitHub page, they have a number of standard token examples.
If it's the latter then check the contract source tab on the etherscan page of the token's contract address.
P.S Not everyone will share the code to their smart contract, although for an ICO it is deemed as a mark of transparency if they do so.
myapple (OP)
Member
**
Offline Offline

Activity: 100
Merit: 11


View Profile
February 02, 2018, 08:43:25 AM
 #3

Thanks
If there is a deployed contract but the code hidden i think maybe there will be some unknown behavior causing some problem ?
Whether the codes can be forced to be public?
Also is it possible to reset the exchange rate from my coin to ether dynamically ?
So after the address received ether it will automatically send out my coin to the same address based on the dynamic exchange rate ?
Any sample code for this
niteroy
Member
**
Offline Offline

Activity: 476
Merit: 17


View Profile
February 02, 2018, 09:19:07 AM
 #4

Price token is taken from the calculation of its market value on crypto currency Exchange Act. You can find you are interested token ERC-20 with its description and complete information on: https://etherscan.io/token/
terible.hunter
Member
**
Offline Offline

Activity: 490
Merit: 10

Bitfresh - iGaming with 90s UI


View Profile
February 02, 2018, 10:05:17 AM
 #5

I think if you need an example of a conventional smart contract, then you can find it on the site ethereum. On their official website there is a lot of useful information for those who really want to learn how to create smart contractors.

Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
February 02, 2018, 02:31:36 PM
Last edit: February 02, 2018, 03:26:38 PM by Xynerise
 #6

Thanks
If there is a deployed contract but the code hidden i think maybe there will be some unknown behavior causing some problem ?
Whether the codes can be forced to be public?
You can't force a code to be open source.
The person that deployed the smart contract does NOT have to make the source code available.
However, the bytecode of EVERY ethereum smart contract is always available and since tokens aren't arbitrarily complex, it is possible to reverse-engineer a token.

Quote
Also is it possible to reset the exchange rate from my coin to ether dynamically ?
So after the address received ether it will automatically send out my coin to the same address based on the dynamic exchange rate ?
Any sample code for this

It should be possible theoretically, that a contract can be able to deduce the exchange rate of a token through Oracle's, however it is impossible for a contract to act on its own.
Contracts MUST always be called and they cannot call themselves so it's impossible for the token to make a transaction by itself without an external call.
Someone made an Ethereum Alarm Clock so you can schedule events to be called later.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!