Class: Counterparty::Publish

Inherits:
CounterResource show all
Defined in:
lib/counterparty/resources.rb

Overview

An object that publishes a compiled serpent contract onto the Counterparty network

Instance Attribute Summary collapse

Attributes inherited from CounterResource

#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes

Method Summary

Methods inherited from CounterResource

#==, api_name, find, #initialize, #save!, to_create_request, to_do_request, to_get_request, #to_raw_tx, #to_signed_tx

Constructor Details

This class inherits a constructor from Counterparty::CounterResource

Instance Attribute Details

#code_hexObject

(string) the hex‐encoded contract (returned by ‘serpent compile’)



690
691
692
# File 'lib/counterparty/resources.rb', line 690

def code_hex
  @code_hex
end

#endowmentObject

(integer) quantity of {} to be transfered to the contract (satoshis)



687
688
689
# File 'lib/counterparty/resources.rb', line 687

def endowment
  @endowment
end

#gaspriceObject

(integer) the price of gas



681
682
683
# File 'lib/counterparty/resources.rb', line 681

def gasprice
  @gasprice
end

#sourceObject

(string) the source address



678
679
680
# File 'lib/counterparty/resources.rb', line 678

def source
  @source
end

#startgasObject

(integer) the maximum quantity of {} to be used to pay for the execution (satoshis)



684
685
686
# File 'lib/counterparty/resources.rb', line 684

def startgas
  @startgas
end