Module: Glueby

Defined in:
lib/glueby.rb,
lib/glueby/wallet.rb,
lib/glueby/railtie.rb,
lib/glueby/version.rb,
lib/glueby/contract.rb,
lib/glueby/internal.rb,
lib/glueby/constants.rb,
lib/glueby/generator.rb,
lib/glueby/util/digest.rb,
lib/glueby/block_syncer.rb,
lib/glueby/fee_provider.rb,
lib/glueby/internal/rpc.rb,
lib/glueby/active_record.rb,
lib/glueby/configuration.rb,
lib/glueby/utxo_provider.rb,
lib/glueby/contract/token.rb,
lib/glueby/contract/errors.rb,
lib/glueby/internal/wallet.rb,
lib/glueby/contract/payment.rb,
lib/glueby/contract/timestamp.rb,
lib/glueby/fee_provider/tasks.rb,
lib/glueby/contract/tx_builder.rb,
lib/glueby/utxo_provider/tasks.rb,
lib/glueby/contract/active_record.rb,
lib/glueby/contract/fee_estimator.rb,
lib/glueby/internal/wallet/errors.rb,
lib/glueby/contract/timestamp/syncer.rb,
lib/glueby/internal/contract_builder.rb,
lib/glueby/contract/fee_estimator/auto.rb,
lib/glueby/generator/migrate_generator.rb,
lib/glueby/contract/fee_estimator/fixed.rb,
lib/glueby/contract/timestamp/tx_builder.rb,
lib/glueby/internal/wallet/active_record.rb,
lib/glueby/active_record/system_information.rb,
lib/glueby/contract/active_record/timestamp.rb,
lib/glueby/internal/wallet/active_record/key.rb,
lib/glueby/internal/wallet/active_record/utxo.rb,
lib/generators/glueby/contract/token_generator.rb,
lib/glueby/contract/timestamp/tx_builder/simple.rb,
lib/glueby/internal/wallet/active_record/wallet.rb,
lib/glueby/internal/wallet/mysql_wallet_adapter.rb,
lib/glueby/contract/active_record/token_metadata.rb,
lib/generators/glueby/contract/timestamp_generator.rb,
lib/glueby/contract/active_record/reissuable_token.rb,
lib/glueby/contract/timestamp/tx_builder/trackable.rb,
lib/glueby/internal/wallet/abstract_wallet_adapter.rb,
lib/generators/glueby/contract/initializer_generator.rb,
lib/generators/glueby/contract/block_syncer_generator.rb,
lib/glueby/internal/wallet/tapyrus_core_wallet_adapter.rb,
lib/generators/glueby/contract/wallet_adapter_generator.rb,
lib/glueby/internal/wallet/active_record_wallet_adapter.rb,
lib/glueby/contract/timestamp/tx_builder/updating_trackable.rb,
lib/glueby/internal/wallet/active_record_wallet_adapter/syncer.rb

Defined Under Namespace

Modules: AR, Contract, Generator, GluebyLogger, Internal, Util Classes: ArgumentError, BlockSyncer, Configuration, Error, FeeProvider, Railtie, UtxoProvider, Wallet

Constant Summary collapse

VERSION =
"1.4.1"
DUST_LIMIT =

The minimum limit of transaction output value to avoid to be recognized as a dust output.

600

Class Method Summary collapse

Class Method Details

.configurationObject

Returns the global [Configuration](RSpec/Core/Configuration) object.



36
37
38
# File 'lib/glueby.rb', line 36

def self.configuration
  @configuration ||= Glueby::Configuration.new
end

.configure {|Configuration| ... } ⇒ Object

Yields the global configuration to a block.

Examples:

Glueby.configure do |config|
  config.wallet_adapter = :activerecord
  config.rpc_config = { schema: 'http', host: '127.0.0.1', port: 12381, user: 'user', password: 'pass' }
end

Yields:



48
49
50
# File 'lib/glueby.rb', line 48

def self.configure
  yield configuration if block_given?
end

.table_name_prefixObject

Add prefix to activerecord table names



31
32
33
# File 'lib/glueby.rb', line 31

def self.table_name_prefix
  'glueby_'
end