Bitcoin Forum
May 03, 2024, 03:32:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Local / Proje Geliştirme / Proje Geliştirme Telegram Grubu on: July 21, 2019, 12:58:54 PM
Merhabalar,
Diyorum ki yazılım geliştirme, problem çözme, teknik tartışma ve bilgi paylaşımı yapacağımız bir telegram grubu açalım.
Bu gruptan birbirimizin sorularını cevaplayalım. Neyi nasıl yapsak daha iyi olur gibi konuları tartışalım.

https://t.me/blockchainyazilim
2  Bitcoin / Project Development / Cryptocurrency Trading (Exchange) Platform on: July 18, 2019, 02:57:40 PM
https://github.com/omerevrencomtr/dockerex

Installation
Server Requirements
However, if you are not using Homestead, you will need to make sure your server meets the following requirements:

PHP >= 7.1.3
BCMath PHP Extension
Ctype PHP Extension
JSON PHP Extension
Mbstring PHP Extension
OpenSSL PHP Extension
PDO PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Local Development Server
If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000:

php artisan serve
More robust local development options are available via Homestead and Valet.

Configuration
Public Directory
After installing Laravel, you should configure your web server's document / web root to be the public directory. The index.php in this directory serves as the front controller for all HTTP requests entering your application.

Configuration Files
All of the configuration files for the Laravel framework are stored in the config directory. Each option is documented, so feel free to look through the files and get familiar with the options available to you.

Directory Permissions
After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run. If you are using the Homestead virtual machine, these permissions should already be set.

Application Key
The next thing you should do after installing Laravel is set your application key to a random string. If you installed Laravel via Composer or the Laravel installer, this key has already been set for you by the php artisan key:generate command.

Typically, this string should be 32 characters long. The key can be set in the .env environment file. If you have not renamed the .env.example file to .env, you should do that now. If the application key is not set, your user sessions and other encrypted data will not be secure!

Additional Configuration
Laravel needs almost no other configuration out of the box. You are free to get started developing! However, you may wish to review the config/app.php file and its documentation. It contains several options such as timezone and locale that you may wish to change according to your application.

You may also want to configure a few additional components of Laravel, such as:

Web Server Configuration
Pretty URLs
Apache
includes a public/.htaccess file that is used to provide URLs without the index.php front controller in the path. Before serving Laravel with Apache, be sure to enable the mod_rewrite module so the .htaccess file will be honored by the server.

If the .htaccess file that ships with Laravel does not work with your Apache installation, try this alternative:

Options +FollowSymLinks -Indexes
RewriteEngine On

RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Nginx
If you are using Nginx, the following directive in your site configuration will direct all requests to the index.php front controller:

location / {
    try_files $uri $uri/ /index.php?$query_string;
}
When using Homestead or Valet, pretty URLs will be automatically configured.

About DockerEx
DockerEx project when configuring the primary objective of Turkey's fastest processing performance and customer support services have accounted for clearing platforms. The entire design was configured accordingly to the software and hardware.

Supports the combined parity of Turkish Lira, Bitcoin, Litecoin, Ethereum, Neo, EOS, GAS platforms and tokens.

The main purpose of developing this project is to build Turkey's fastest performance and swap transactions with a customer support system platform. All design, software and equipment elements are prepared accordingly. The integrated online support system is designed as fast and solution-oriented modules. Designed with a simple and simple interface, the system is designed to meet the most demanding requirements with its framework and advanced cache structure. It will also be positioned behind advanced firewall software, hardware firewalls and some blocking services against possible malicious attacks.

The system processes block chain records and balances with data from the RPC server. Our stock software is designed with a built-in control system. This system supports block chain API integrations as well as bank APIs. The current crypto asset input or output can be displayed in the user accounts immediately after the block has been served to the chain, and the transaction approval numbers can be updated at the same time as the time chain of the respective chain. Towing and tilting operations can be monitored and intervened by active operator teams 24/7.

Basic Essence
Simple, fast routing engine.
Powerful dependency injection container.
Multiple back-ends for session and cache storage.
Expressive, intuitive database ORM.
Database agnostic schema migrations.
Robust background job processing.
Real-time event broadcasting.
Multiple currencies
Built-in high performance order matching engine.
Built-in ticket system for customer support.
Built-in announcement and blog systems for customer questions.
High volume traffic support with WebSocket.
Diverse regional support. (Language, history).
Adapt to multiple crypto currencies. (Ex: Bitcoin, Litecoin, Ethereum, Dash, etc.).
Adapt to multiple token units. (Ex: ERC20, QTUM, NEP5, etc.).
Support for multiple local currencies. (Ex: TL, USD, EUR, etc.).
Mail token, SMS and Google two-factor authentication support. (Options can be customized by customer)
Verification steps in multiple digits (KYC) can be customized.
Advanced admin control panel and management tools.
Security in banking standards.
Instant graphic system: Line, candle and bar shapes, minimum 1 minute precision can be monitored instantly integrated graphics system.
Api support: Restful Api extension to support all transactions such as entry, order creation, withdrawal and deposit.
Mobile application: IOS & Android supported mobile application that will be designed completely native.
Multi-language support: Unlimited number of add-ons, design structure can be customized multi-language support.
Platform has a working principle that can be explained with 4 layers. The system consists of 3 main modules. These modules allow processing, transferring and saving of data between MySQL, Redis and Websocket.

1 - Application Layer; Frotend: Provides visual interaction to the user by exchanging data. (Ex .: Graphical and web interface) Third Party: Communicates with various programming interfaces and transfers relevant data. (Json transmits the inputs / outputs to the user in accordance with certain rules and authorizations. (Eg 3rd party account integrations. Electronic billing service) Router: Forward future requests to sections such as controller, view, or model and forward the code snippets that will work for the request. Allows queries to reach related modules. (Ex: Interpretation of purchase orders entered as market buyers in matching module.)

2 - Access Layer; Web: Creates services that can be consumed by numerous users (Browser, mobile phones, tablets, PC, etc.) and communicate over HTTP protocol. This is a framework element used for the creation steps. API (Application Programming Interface): This is the interface provided by the application that shares its capabilities so that the capabilities of one application can be used in another application. (Arbitrage software, trading robots, etc.) WebSocket: HTTP stateless request / response protocol. It is a one-way protocol. The request direction is always from server to user. It enables real-time service of instant price updates without the need for page refresh. (Ex .: Change of current price after last order.)

3 - Service Layer; Match module: This module is used to process market buyer orders entered by users. Price module: This module is used for matching the market maker orders entered by the users. Data module: It is the module where data stored after user inputs and system outputs are presented to the user again.

4 - Storage Layer; MySQL: Database that stores all data on the system. Redis: A data structure server where public and open system outputs are distributed to users. (Price, volume, chart etc.)

Application Layer;
Provides visual interaction to the user by exchanging data. (Ex .: Graphical and web interface) Third Party: Communicates with various programming interfaces and transfers relevant data. (Json transmits the inputs / outputs to the user in accordance with certain rules and authorizations. (Eg: 3rd party accounting integrations. Electronic billing service)

Relationship between platform and block chains
In no case will a crypto communicate with the wallet software unless the transaction records and confirmation information are served to the user. In addition, all balancing, drawing and depositing operations are performed automatically. Due to the security principles related to these transactions, no integration has been implemented and can be customized upon request.

User interface and features
Crypto money balance control is carried out with online hot wallets. The platform software contains wallet addresses that make it easy to store and transfer different crypto currencies. The addresses are found in the pools that were previously created by means of crypto currency kernel software. In addition, cold wallets secure all crypto currencies, allowing balances to be locked and blocking external access. In accordance with the security policy, cold wallet management is carried out only by the authorized personnel of the company in multi-signed wallets within the upper limits.

Note
The software engine instantly matches orders between buyers and sellers for the best available price. Our integrated wallet software automatically manages all crypto currency transactions with software approval if requested by the operator. Adding any new currency is facilitated by administrative tools.

Security Vulnerabilities
If you discover a security vulnerability within DockerEx, please send an e-mail to Ömer EVREN via info@omerevren.com.tr. All security vulnerabilities will be promptly addressed.

License
Open-sourced software licensed under the MIT license.
3  Local / Alternatif Kripto-Paralar / Kripto Para Borsası Kaynak Kodları on: July 18, 2019, 02:38:34 PM
Merhabalar;

https://bitcointalk.org/index.php?topic=5130033
https://bitcointalk.org/index.php?topic=5106530

Bu konuları eminim bir çoğunuz okumuşsunuzdur. Oradaki bahsi geçen yazılımcıda benim. Şöyleki sözü verilip yerine getirilmeyen vaatler, aksayan işler v.s, v.s gibi sebeplerden dolayı bizim iş olmadı. Bende Türkiye ve Dünya piyasasına hayırlı olması dileğiyle kaynak kodları sizinle paylaşmaktan onur duyarım. Laravel alt yapısında geliştirdim. (Paribu ve Koineks te Laravel kullanıyor.) Koin/Koin parite desteği, Çağrı gönderme, Yerleşik Ticket, Socket v.s bir çok özellik var. Gerekli dökümanlar linkte ekli. Yıldızlamayı unutmayın Smiley

https://github.com/omerevrencomtr/dockerex
adresinden ilgili dökümana ulaşıp gerekli kurulumu yapabilirsiniz.

Ekran görüntüleri için;
https://github.com/omerevrencomtr/dockerex/tree/master/screenshot

Edit: Meritlerinizide bekliyorum Smiley
4  Local / Proje Geliştirme / Kripto Para Borsası Proje Kodları on: July 14, 2019, 02:45:37 PM
Tekrar merhabalar, uzun zamandır geliştirdiğim bir kripto para borsam var.
Laravel alt yapısını kullanarak (paribu ve koineks te laravel kullanıyor),
session ve queue işlemleri için redis,
veri tabanı tarafında mysql(cluster yapılabilir),
yük dağılımı tarafında kubernetes,
socket kanalları tarafında nodejs ve socket io,
gelişmiş işlem kuyruğu için rabbitmq,
mailler için yandex mail ve mailgun,
gibi servis ve teknolojilerini kullandım.
FullRestApi ve frontend React kullanarak yazdım.
Çok yakında github da açık kaynak olarak paylaşmayı düşünüyorum.

Yorumlarınız nelerdir acaba. Şu anda çalışan aktif bir demosuda var. Son geliştirmeleri yapıyorum.

edit: demoyu görmek isteyen olursa özelden paylaşa bilirim.

edit: https://github.com/omerevrencomtr/dockerex
hayırlı uğurlu olsun. Meritlerinizide bekliyorum.
5  Bitcoin / Project Development / ICO Tokeni Source Codes> Open Source Full Support on: March 14, 2019, 10:41:54 AM
# Soon you will see the crypto money exchange system in github. Bi nebi flashing bittrex Smiley [/ b]
What is similar to bittrex?
Do you think it should be as easy as setting up and operating a stock market?
# TokenPayToken! [/ b]
LINK: https://github.com/mrtersiyer/erc20Token
Contact, Support and everything else for mrersiyer@gmail.com
I've been looking at longco bitcointalk.org for a long time, and as far as I can see, the programmer who knows the job is incomplete. 3,5 people who know the job are hiding their projects to themselves. I would like to share with you the ethereum Solidity codes of TokenPay. I defined the descriptions of the codes on each function and variable according to the rules.

# Details [/ b]
It allows you to manage all the details for an ICO process. The TGE contract distributes the total supply, the founding team token, the token allocated to the consultants, the token allocated to the team, the token allocated to the reference & bounty expenses, the token allocated to pre-sale and the tokens allocated to the main sale. The TokenPayToken contract provides functions such as burning and unlocking the token. CrowdsalePre contracts are pre-sold (you can set addresses for white list and pool investments). The CrowdsaleMain contract is doing the same jobs as CrowdsalePre subject to different rates Smiley. When the TokenVesting contract is signed prior to the TGE distribution, the installers keep the consultants in place.

# Files [/ b]

 1. TokenPayToken.sol (Token's main contract. So we can say token)
 2. TokenPayTokenTGE.Sol (Token contract to distribute to Token addresses. So TGE contract is created immediately after the signature of the Token is entered. Tokens are sent to the token transferred to the TGE contract and the addresses are entered into the TGE contract, crowedSale addresses will be entered in the vesting and the token is distributed. )
 3. CrowdsaleMain.sol (This is the main sale of the contract. X-y period under the price includes the price to sell. After the sale of TokenPayToken from the authority to burn the token on the contract after the end of the time you can provide automatically.)
 4. CrowdsalePre.sol (This contract is pre-sale. X-y time includes the price such as the price to sell z. After the sale of TokenPayToken from the authority to burn the data on the contract after the end of the time to be burned automatically you can provide.)
 5. TokenVesting.sol (With this contract, you can identify accounts such as consultants and founders and team members who should remain in the time lock, so that the TokenVesting contract is signed before the distribution is made with the TGE contract. When triggering from any address after the time lock is unlocked, token is delivered to the corresponding addresses.)

# Installation steps [/ b]
All of the following procedures will be done in remix ide. https://remix.ethereum.org/
 1. compile token
 2. Compile pre-sale
 3. Compile the main sales
 4. Compile the locks
 5. Compile TGE
 6. Fill the TGE setUp funtion
 7. Enter TGE address to TOKEN distribute
 8. TGE distbrute et
 Add TOKEN addWhitelistedBurn main sales
 Add TOKEN addWhitelistedBurn pre-sale
 11. Add to TOKEN addWhitelistedTransfer main sales
 Add TOKEN addWhitelistedTransfer pre-sale
 13. Pre-sale owner transfer
 14. Host Sales Transfer Owner
 
# Default definitions [/ b]
 
`` `Default definitions for Token ...
+ -------------- + ------------------------------- +
| Name | TokenPay |
+ -------------- + ------------------------------- +
| Symbol | TKN |
+ -------------- + ------------------------------- +
| Decimal | 18 |
+ -------------- + ------------------------------- +
| Total Supply | 10.000.000.000000000000000000 |
+ -------------- + ------------------------------- +

Maternity price of the 4th week, that is, the price of non-discounted supply [/ b]
+ --------------------- + ------------------------ +
| 1 Ether / TKN 0% 250.000000000000000000 tkn |
+ --------------------- + ------------------------ +

Sales statement example [/ b]
+ ------------------ + ------------------------ + ----- + -------------------------- ----------------------- - +
| Sales Type | Discount Rate | 1 ETH Will Go Token | Price |
+ ------------------ + ------------------------ + ----- + -------------------------- ----------------------- - +
| PreSale Week 1 | 60,000000000000000000% | 400,000000000000000000 tkn | 0.002500000000000000 ether |
+ ------------------ + ------------------------ + ----- + -------------------------- ----------------------- - +
| PreSale Week 2 | 60,000000000000000000% | 400,000000000000000000 tkn | 0.0
6  Local / Alternatif Kripto-Paralar / ICO Tokeni Kaynak Kodları > Open Souce Tam Destek on: March 14, 2019, 01:00:55 AM
# Çok yakında birde kripto para borsası sistemini github da göreceksiniz. Bi nebi çakma bittrex Smiley
Bu konu hakkında bittrex e benzer sistemin github da bulunmasına ve herkes tarafından erişilip one clik install tarzı kurulup kullanılması için yorumlarınız ne olur...
Sizce bir borsayı kurup işletmek wordpress site kurmak kadar kolay olmalı mı... 
# TokenPayToken!
LİNK : https://github.com/mrtersiyer/erc20Token
İletişim, Destek ve diğer herşey için mrtersiyer@gmail.com
Son zamanlar uzun uzun bitcointalk.org u inceledim ve gördüğüm kadarı ile işi iyi bilen yazılımcı kitlesi eksik kalmış. İşi bilen 3,5 kişi ise projelerini kendilerine saklıyorlar. Velakin ben buna çıkarak TokenPay adı altında oluşturduğum tokenin Ethereum Solidity kodlarını sizlerle paylaşmak istiyorum. Kodların açıklamalarını kurallarına uygun biçimde her fonksiyon ve değişkenin üzerine tanımladım.

# Detaylar
Bir ICO süreci için tüm detayları ile yönetmenizi sağlıyor. TGE kontratı Toplam arz, kurucu ekip ayrılan token, danışmanlara ayrılan token, ekibe ayrılan token, referans & bounty giderlerine ayrılan token, ön satışa ayrılan token ve ana satışa ayrılan tokeni ilgili adreslere dağıtıyor. TokenPayToken kontratı tokenin yakma ve kilidini açma gibi işlevleri sağlıyor. CrowdsalePre kontratı ön satışı gerçekleştiriyor (white list ve havuz yatırımları için adresleri kurucu tarafından set edebiliyorsunuz). CrowdsaleMain kontratı CrowdsalePre ile aynı işleri yapıyor tabi oranları farklı Smiley. TokenVesting kontratı TGE dağıtımı yapılmadan önce imzalandığında verilen zaman dilimleri içerisinde kurucular danışmanlanlar v.s tokeni kilitli tutuyor.

# Dosyalar

 1. TokenPayToken.sol  (Tokenin ana kontratı. Yani token diyebiliriz.)
 2. TokenPayTokenTGE.sol  (Tokeni adreslere dağıtacak kontrat. Yani Şöyle ki token imzalandıktan hemen sonra TGE kontratı oluşturulur. Tokenin arz miktrarı girilip TGE kontratına oluşturulan token transfer edilir. Bu işlemden sonra TGE kontratına crowedSale adresleri vesting te kalacak adresler girilir. ve token dağıtılır.)
 3. CrowdsaleMain.sol (Bu kontrat ana satışı gerçekleştirir. x-y süresi altında z fiyata sat gibi konfigurasyonları içerir. Satış bittikten sonra TokenPayToken dan burn yetkisi verileren kontrat üzerindeki tokenin süre bittikten sonra yanmasını otomatik olarak sağlaya bilirsiniz.)
 4. CrowdsalePre.sol  (Bu kontrat ön satışı gerçekleştirir. x-y süresi altında z fiyata sat gibi konfigurasyonları içerir. Satış bittikten sonra TokenPayToken dan burn yetkisi verileren kontrat üzerindeki tokenin süre bittikten sonra yanmasını otomatik olarak sağlaya bilirsiniz.)
 5. TokenVesting.sol (Bu kontrat ile danışmanlar & kurucular ve ekip üyeleri gibi tokenin zaman kilidinde kalması gerektiği hesapları tanımlaya bilirsiniz. Şöyle ki TGE kontratı ile dağıtım yapılmadan önce TokenVesting kontratı imzalanır. Owner tarafından ilgili adreslere kaç birim token gideceği ve zaman kilidinin timestamp olarak ne zaman açılacağı belirtilir. Zaman kilidi dolduktan sonra herhangi bir adresten tetikleme sağlandığında ilgili adreslere token dağıtımı yapılır.)

# Kurulum aşamaları
Aşağıdaki işlemlerin hepsi remix ide de yapılacaktır. https://remix.ethereum.org/
 1.  token derle
 2.  ön satış derle
 3.  ana satış derle
 4.  kilitler derle
 5.  TGE derle
 6.  TGE setUp funtion doldur
 7.  TOKEN distribute TGE adres gir
 8.  TGE distbrute et
 9.  TOKEN addWhitelistedBurn ekle ana satış
 10. TOKEN addWhitelistedBurn ekle ön satış
 11.  TOKEN addWhitelistedTransfer ekle ana satış
 12.  TOKEN addWhitelistedTransfer ekle ön satış
 13.  Ön satış owner transfer et
 14.   Ana satış owner transfer et
 
# Default tanımlar
 
```Token için default tanımlar...
+--------------+-------------------------------+
| Name         | TokenPay                      |
+--------------+-------------------------------+
| Symbol       | TKN                           |
+--------------+-------------------------------+
| Decimal      | 18                            |
+--------------+-------------------------------+
| Total Supply | 10.000.000,000000000000000000 |
+--------------+-------------------------------+

Anasatış 4. hafta fiyatı yani indirimsiz arz fiyatı
+---------------------+------------------------+
| 1 Ether / TKN %0   250.000000000000000000 tkn |
+---------------------+------------------------+

Satış tablosu örneği
+------------------+------------------------+----------------------------+----------------------------+
| Satış Türü       | İndirim Oranı          | 1 ETH Gidecek Token        | Fiyat                      |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 1. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 2. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 3. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 4. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 1. Week | 30,000000000000000000% | 325,000000000000000000 tkn | 0,003076923076923080 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 2. Week | 20,000000000000000000% | 300,000000000000000000 tkn | 0,003333333333333330 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 3. Week | 10,000000000000000000% | 275,000000000000000000 tkn | 0,003636363636363640 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 4. Week | 0,000000000000000000%  | 250,000000000000000000 tkn | 0,004000000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+


| Name         | ARZ                        | %      | 18 Decimal                    |
|--------------|----------------------------|--------|-------------------------------|
| Total Supply | 10000000000000000000000000 | 100%   | 10.000.000,000000000000000000 |
| Founder Team | 1000000000000000000000000  | 10%    | 1.000.000,000000000000000000  |
| Counselors   | 400000000000000000000000   | 4%     | 400.000,000000000000000000    |
| Team         | 300000000000000000000000   | 3%     | 300.000,000000000000000000    |
| Reference    | 700000000000000000000000   | 7%     | 700.000,000000000000000000    |
| PreSale      | 1000000000000000000000000  | 10%    | 1.000.000,000000000000000000  |
| MailSale     | 6600000000000000000000000  | 66%    | 6.600.000,000000000000000000  |
| Total Supply | 10000000000000000000000000 | 100%   | 10.000.000,000000000000000000 |
```

Vesting Örneği
```plain
+------------------------------+--------------------------------------------+---------------------------+
| Start Time   1519221600   Çarşamba | 21 Şubat 2018 17:00:00 GMT+03:00   Wednesday  | 21 February 2018 14:00:00 |
+------------------------------+--------------------------------------------+---------------------------+
| Duration   15780000      182 days     | 15 hours                                   | 20 minutes and 0 seconds. |
+------------------------------+--------------------------------------------+---------------------------+
| Final   1535001600   Perşembe      | 23 Ağustos 2018 08:20:00 GMT+03:00   Thursday | 23 August 2018 05:20:00   |
+------------------------------+--------------------------------------------+---------------------------+
```
7  Local / Proje Geliştirme / ICO Tokeni Kaynak Kodları > Open Souce Tam Destek on: March 14, 2019, 12:42:38 AM
# TokenPayToken!
LİNK : https://github.com/mrtersiyer/erc20Token
İletişim, Destek ve diğer herşey için mrtersiyer@gmail.com
Son zamanlar uzun uzun bitcointalk.org u inceledim ve gördüğüm kadarı ile işi iyi bilen yazılımcı kitlesi eksik kalmış. İşi bilen 3,5 kişi ise projelerini kendilerine saklıyorlar. Velakin ben buna çıkarak TokenPay adı altında oluşturduğum tokenin Ethereum Solidity kodlarını sizlerle paylaşmak istiyorum. Kodların açıklamalarını kurallarına uygun biçimde her fonksiyon ve değişkenin üzerine tanımladım.

# Detaylar
Bir ICO süreci için tüm detayları ile yönetmenizi sağlıyor. TGE kontratı Toplam arz, kurucu ekip ayrılan token, danışmanlara ayrılan token, ekibe ayrılan token, referans & bounty giderlerine ayrılan token, ön satışa ayrılan token ve ana satışa ayrılan tokeni ilgili adreslere dağıtıyor. TokenPayToken kontratı tokenin yakma ve kilidini açma gibi işlevleri sağlıyor. CrowdsalePre kontratı ön satışı gerçekleştiriyor (white list ve havuz yatırımları için adresleri kurucu tarafından set edebiliyorsunuz). CrowdsaleMain kontratı CrowdsalePre ile aynı işleri yapıyor tabi oranları farklı Smiley. TokenVesting kontratı TGE dağıtımı yapılmadan önce imzalandığında verilen zaman dilimleri içerisinde kurucular danışmanlanlar v.s tokeni kilitli tutuyor.

# Dosyalar

 1. TokenPayToken.sol  (Tokenin ana kontratı. Yani token diyebiliriz.)
 2. TokenPayTokenTGE.sol  (Tokeni adreslere dağıtacak kontrat. Yani Şöyle ki token imzalandıktan hemen sonra TGE kontratı oluşturulur. Tokenin arz miktrarı girilip TGE kontratına oluşturulan token transfer edilir. Bu işlemden sonra TGE kontratına crowedSale adresleri vesting te kalacak adresler girilir. ve token dağıtılır.)
 3. CrowdsaleMain.sol (Bu kontrat ana satışı gerçekleştirir. x-y süresi altında z fiyata sat gibi konfigurasyonları içerir. Satış bittikten sonra TokenPayToken dan burn yetkisi verileren kontrat üzerindeki tokenin süre bittikten sonra yanmasını otomatik olarak sağlaya bilirsiniz.)
 4. CrowdsalePre.sol  (Bu kontrat ön satışı gerçekleştirir. x-y süresi altında z fiyata sat gibi konfigurasyonları içerir. Satış bittikten sonra TokenPayToken dan burn yetkisi verileren kontrat üzerindeki tokenin süre bittikten sonra yanmasını otomatik olarak sağlaya bilirsiniz.)
 5. TokenVesting.sol (Bu kontrat ile danışmanlar & kurucular ve ekip üyeleri gibi tokenin zaman kilidinde kalması gerektiği hesapları tanımlaya bilirsiniz. Şöyle ki TGE kontratı ile dağıtım yapılmadan önce TokenVesting kontratı imzalanır. Owner tarafından ilgili adreslere kaç birim token gideceği ve zaman kilidinin timestamp olarak ne zaman açılacağı belirtilir. Zaman kilidi dolduktan sonra herhangi bir adresten tetikleme sağlandığında ilgili adreslere token dağıtımı yapılır.)

# Kurulum aşamaları
Aşağıdaki işlemlerin hepsi remix ide de yapılacaktır. https://remix.ethereum.org/
 1.  token derle
 2.  ön satış derle
 3.  ana satış derle
 4.  kilitler derle
 5.  TGE derle
 6.  TGE setUp funtion doldur
 7.  TOKEN distribute TGE adres gir
 8.  TGE distbrute et
 9.  TOKEN addWhitelistedBurn ekle ana satış
 10. TOKEN addWhitelistedBurn ekle ön satış
 11.  TOKEN addWhitelistedTransfer ekle ana satış
 12.  TOKEN addWhitelistedTransfer ekle ön satış
 13.  Ön satış owner transfer et
 14.   Ana satış owner transfer et
 
# Default tanımlar
 
```Token için default tanımlar...
+--------------+-------------------------------+
| Name         | TokenPay                      |
+--------------+-------------------------------+
| Symbol       | TKN                           |
+--------------+-------------------------------+
| Decimal      | 18                            |
+--------------+-------------------------------+
| Total Supply | 10.000.000,000000000000000000 |
+--------------+-------------------------------+

Anasatış 4. hafta fiyatı yani indirimsiz arz fiyatı
+---------------------+------------------------+
| 1 Ether / TKN %0   250.000000000000000000 tkn |
+---------------------+------------------------+

Satış tablosu örneği
+------------------+------------------------+----------------------------+----------------------------+
| Satış Türü       | İndirim Oranı          | 1 ETH Gidecek Token        | Fiyat                      |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 1. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 2. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 3. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| PreSale 4. Week  | 60,000000000000000000% | 400,000000000000000000 tkn | 0,002500000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 1. Week | 30,000000000000000000% | 325,000000000000000000 tkn | 0,003076923076923080 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 2. Week | 20,000000000000000000% | 300,000000000000000000 tkn | 0,003333333333333330 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 3. Week | 10,000000000000000000% | 275,000000000000000000 tkn | 0,003636363636363640 ether |
+------------------+------------------------+----------------------------+----------------------------+
| MainSale 4. Week | 0,000000000000000000%  | 250,000000000000000000 tkn | 0,004000000000000000 ether |
+------------------+------------------------+----------------------------+----------------------------+


| Name         | ARZ                        | %      | 18 Decimal                    |
|--------------|----------------------------|--------|-------------------------------|
| Total Supply | 10000000000000000000000000 | 100%   | 10.000.000,000000000000000000 |
| Founder Team | 1000000000000000000000000  | 10%    | 1.000.000,000000000000000000  |
| Counselors   | 400000000000000000000000   | 4%     | 400.000,000000000000000000    |
| Team         | 300000000000000000000000   | 3%     | 300.000,000000000000000000    |
| Reference    | 700000000000000000000000   | 7%     | 700.000,000000000000000000    |
| PreSale      | 1000000000000000000000000  | 10%    | 1.000.000,000000000000000000  |
| MailSale     | 6600000000000000000000000  | 66%    | 6.600.000,000000000000000000  |
| Total Supply | 10000000000000000000000000 | 100%   | 10.000.000,000000000000000000 |
```

Vesting Örneği
```plain
+------------------------------+--------------------------------------------+---------------------------+
| Start Time   1519221600   Çarşamba | 21 Şubat 2018 17:00:00 GMT+03:00   Wednesday  | 21 February 2018 14:00:00 |
+------------------------------+--------------------------------------------+---------------------------+
| Duration   15780000      182 days     | 15 hours                                   | 20 minutes and 0 seconds. |
+------------------------------+--------------------------------------------+---------------------------+
| Final   1535001600   Perşembe      | 23 Ağustos 2018 08:20:00 GMT+03:00   Thursday | 23 August 2018 05:20:00   |
+------------------------------+--------------------------------------------+---------------------------+
```
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!