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, 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_hexObject

(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

#endowmentObject

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



706
707
708
# File 'lib/counterparty/resources.rb', line 706

def endowment
  @endowment
end

#gaspriceObject

(integer) the price of gas



700
701
702
# File 'lib/counterparty/resources.rb', line 700

def gasprice
  @gasprice
end

#sourceObject

(string) the source address



697
698
699
# File 'lib/counterparty/resources.rb', line 697

def source
  @source
end

#startgasObject

(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