This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +coincooler is my openname (Bitcoin username). https://onename.com/coincooler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def url(network) | |
case network.to_sym | |
when :testnet | |
return 'wss://testnet3.toshi.io' | |
when :bitcoin | |
return 'wss://bitcoin.toshi.io' | |
else | |
return "'ws://localhost:5000'" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def url(network) | |
case network.to_sym | |
when :testnet | |
return 'wss://testnet3.toshi.io' | |
when :bitcoin | |
return 'wss://bitcoin.toshi.io' | |
else | |
return "'ws://localhost:5000'" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def url(network) | |
case network.to_sym | |
when :testnet | |
return 'wss://testnet3.toshi.io' | |
when :bitcoin | |
return 'wss://bitcoin.toshi.io' | |
else | |
return "'ws://localhost:5000'" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'terminal-table' | |
MAX_SATOSHIS = 21*(10**6)*(10**8) | |
def max_num(mantis_bits,available_bits) | |
mantis(mantis_bits)*(10**exponent(mantis_bits,available_bits)) | |
end | |
def mantis(mantis_bits) | |
2**mantis_bits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'terminal-table' | |
def max_num(mantis_bits,available_bits) | |
mantis(mantis_bits)*(10**exponent(mantis_bits,available_bits)) | |
end | |
def mantis(mantis_bits) | |
2**mantis_bits | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure to first bundle install gem 'terminal-table' | |
require 'terminal-table' | |
MAX_EXP = 16 | |
def max_num(mantis_bits,available_bits) | |
mantis(mantis_bits)*(10**exponent(mantis_bits,available_bits)) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying issuance of colored coins asset with asset_id: [LJEC6Q2h9JKNvZqEC87TbEXvxm4br1uivb2QX] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying issuance of colored coins asset with asset_id: [LGbocSa7jQ6egewe3bmEkqjFUEDvY6c4xetMR] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying issuance of colored coins asset with ID #U3uPyQeyNRafPy7popDfhZui8Hsw98B5XMUpP | |
Verifying issuance of colored coins asset with ID #LKUYHRCMbqUNgfNCGFnXv1AvB5Pv8Lkk2EjoF | |
Verifying issuance of colored coins asset with ID #U9a36XP1UwL5pxaYYiZYJ86sUqWAJ2dGbLaer | |
Verifying issuance of colored coins asset with ID #LE2v9RbnNr6EJFArY5HZYEeWZgQppxaEEu7XL | |
Verifying issuance of colored coins asset with ID #LH4noQ7f8dF2Q2jySihJTjK9NpoEKJ8sY575A | |
Verifying issuance of colored coins asset with ID #LHEQJbm21GGzpHzwwuoraZUQ8LuApHXRqCrwk |
OlderNewer