Sha256: ef94d6f0248117672e2ef7128c72f073234355ba0162dd300729f098f79b64b1
Contents?: true
Size: 684 Bytes
Versions: 5
Compression:
Stored size: 684 Bytes
Contents
module Glueby module Contract module Task module Timestamp module_function extend Glueby::Contract::TxBuilder def create timestamps = Glueby::Contract::AR::Timestamp.where(status: :init) fee_estimator = Glueby::Contract::FeeEstimator::Fixed.new timestamps.each { |t| t.save_with_broadcast(fee_estimator: fee_estimator) } end end end end end namespace :glueby do namespace :contract do namespace :timestamp do desc 'create and broadcast glueby timestamp tx' task :create, [] => [:environment] do |_, _| Glueby::Contract::Task::Timestamp.create end end end end
Version data entries
5 entries across 5 versions & 1 rubygems