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, 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_hex ⇒ Object
(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 |
#endowment ⇒ Object
(integer) quantity of {} to be transfered to the contract (satoshis)
687 688 689 |
# File 'lib/counterparty/resources.rb', line 687 def endowment @endowment end |
#gasprice ⇒ Object
(integer) the price of gas
681 682 683 |
# File 'lib/counterparty/resources.rb', line 681 def gasprice @gasprice end |
#source ⇒ Object
(string) the source address
678 679 680 |
# File 'lib/counterparty/resources.rb', line 678 def source @source end |
#startgas ⇒ Object
(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 |