Method: Hive::Broadcast.remove_proposal

Defined in:
lib/hive/broadcast.rb

.remove_proposal(options, &block) ⇒ Object

Parameters:

  • options (Hash)

    options

Options Hash (options):

  • :wif (String)

    Active wif

  • :params (Hash)
    • :proposal_owner (String) Creator of the proposal.

    • :proposal_ids (Array<Integer>) Proposals to remove.

  • :pretend (Boolean)

    Just validate, do not broadcast.

See Also:



1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
# File 'lib/hive/broadcast.rb', line 1351

def self.remove_proposal(options, &block)
  required_fields = %i(proposal_owner proposal_ids)
  params = options[:params]
  
  check_required_fields(params, *required_fields)
  
  ops = [[:remove_proposal, params]]
  
  process(options.merge(ops: ops), &block)
end