Class: Counterparty::Publish
- Inherits:
-
CounterResource
- Object
- CounterResource
- Counterparty::Publish
- Defined in:
- lib/counterparty/resources.rb
Overview
An object that publishes a compiled serpent contract onto the Counterparty network
Instance Attribute Summary collapse
-
#code_hex ⇒ Object
(string) the hex‐encoded contract (returned by ‘serpent compile’).
-
#endowment ⇒ Object
(integer) quantity of {} to be transfered to the contract (satoshis).
-
#gasprice ⇒ Object
(integer) the price of gas.
-
#source ⇒ Object
(string) the source address.
-
#startgas ⇒ Object
(integer) the maximum quantity of {} to be used to pay for the execution (satoshis).
Attributes inherited from CounterResource
#allow_unconfirmed_inputs, #encoding, #fee, #fee_per_kb, #pubkey, #result_attributes
Method Summary
Methods inherited from CounterResource
#==, api_name, bitcoin, find, #initialize, #save!, to_create_request, to_get_request, #to_raw_tx, #to_signed_tx
Constructor Details
This class inherits a constructor from Counterparty::CounterResource
Instance Attribute Details
#code_hex ⇒ Object
(string) the hex‐encoded contract (returned by ‘serpent compile’)
709 710 711 |
# File 'lib/counterparty/resources.rb', line 709 def code_hex @code_hex end |
#endowment ⇒ Object
(integer) quantity of {} to be transfered to the contract (satoshis)
706 707 708 |
# File 'lib/counterparty/resources.rb', line 706 def endowment @endowment end |
#gasprice ⇒ Object
(integer) the price of gas
700 701 702 |
# File 'lib/counterparty/resources.rb', line 700 def gasprice @gasprice end |
#source ⇒ Object
(string) the source address
697 698 699 |
# File 'lib/counterparty/resources.rb', line 697 def source @source end |
#startgas ⇒ Object
(integer) the maximum quantity of {} to be used to pay for the execution (satoshis)
703 704 705 |
# File 'lib/counterparty/resources.rb', line 703 def startgas @startgas end |