Class: Runar::SDK::CallOptions

Inherits:
Struct
  • Object
show all
Defined in:
lib/runar/sdk/types.rb

Overview

Options for calling a contract method.

The outputs field supports multi-output patterns (e.g., token splits). The terminal_outputs field is used when a method verifies an exact output set on-chain — the transaction is built with no change output and no funding inputs beyond the contract UTXO.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(satoshis: 0, change_address: '', change_pub_key: '', new_state: nil, outputs: nil, additional_contract_inputs: nil, additional_contract_input_args: nil, terminal_outputs: nil) ⇒ CallOptions

Returns a new instance of CallOptions.



190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/runar/sdk/types.rb', line 190

def initialize(
  satoshis: 0,
  change_address: '',
  change_pub_key: '',
  new_state: nil,
  outputs: nil,
  additional_contract_inputs: nil,
  additional_contract_input_args: nil,
  terminal_outputs: nil
)
  super
end

Instance Attribute Details

#additional_contract_input_argsObject

Returns the value of attribute additional_contract_input_args

Returns:

  • (Object)

    the current value of additional_contract_input_args



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def additional_contract_input_args
  @additional_contract_input_args
end

#additional_contract_inputsObject

Returns the value of attribute additional_contract_inputs

Returns:

  • (Object)

    the current value of additional_contract_inputs



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def additional_contract_inputs
  @additional_contract_inputs
end

#change_addressObject

Returns the value of attribute change_address

Returns:

  • (Object)

    the current value of change_address



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def change_address
  @change_address
end

#change_pub_keyObject

Returns the value of attribute change_pub_key

Returns:

  • (Object)

    the current value of change_pub_key



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def change_pub_key
  @change_pub_key
end

#new_stateObject

Returns the value of attribute new_state

Returns:

  • (Object)

    the current value of new_state



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def new_state
  @new_state
end

#outputsObject

Returns the value of attribute outputs

Returns:

  • (Object)

    the current value of outputs



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def outputs
  @outputs
end

#satoshisObject

Returns the value of attribute satoshis

Returns:

  • (Object)

    the current value of satoshis



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def satoshis
  @satoshis
end

#terminal_outputsObject

Returns the value of attribute terminal_outputs

Returns:

  • (Object)

    the current value of terminal_outputs



179
180
181
# File 'lib/runar/sdk/types.rb', line 179

def terminal_outputs
  @terminal_outputs
end