State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf file, include the -walletnotify command:
# Notify when receiving coins
| contract SingleNumRegister { | |
| uint storedData; | |
| function set(uint x) { | |
| storedData = x; | |
| } | |
| function get() constant returns (uint retVal) { | |
| return storedData; | |
| } | |
| } |
| receipts_root: ??? | |
| logs_bloom: ??? |
| pragma solidity ^0.4.0; | |
| contract TestTranster { | |
| address public ownerAddress; | |
| function TestTranster(address _ownerAddress) public { | |
| ownerAddress = _ownerAddress; | |
| } | |
| } |
State: Draft
Based on the Peatio Stable branch
To the coin daemon's {coin}.conf file, include the -walletnotify command:
# Notify when receiving coins
| require 'openssl' | |
| require 'base64' | |
| # ===== \/ sign ===== | |
| # generate keys | |
| key = OpenSSL::PKey::EC.new("secp256k1") | |
| key.generate_key | |
| public_key = key.public_key | |
| public_key_hex = public_key.to_bn.to_s(16).downcase # public key in hex format |
| require 'active_record' | |
| require 'active_hash' | |
| require 'minitest/autorun' | |
| ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' | |
| ActiveRecord::Base.connection.instance_eval do | |
| create_table(:posts) do |t| | |
| t.string :name | |
| end |
| require 'active_record' | |
| require 'minitest/autorun' | |
| ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' | |
| ActiveRecord::Base.connection.instance_eval do | |
| create_table(:cars) do |t| | |
| t.string :name | |
| t.string :type | |
| t.string :bicycle_column1 |
| gem 'platform-api', github: 'jalada/platform-api', branch: 'master' | |
| gem 'letsencrypt-rails-heroku', group: 'production' |
| # config/application.rb | |
| config.cache_store = :redis_store, 'redis://localhost:6379/1/redis_try/cache', { expires_in: 90.minutes } |