Class: Types::Typed::UIntType
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Type
#array?, #check_and_normalize_literal, #eql?, #hash, #mapping?, #parse_integer, #pretty_print, #raise_type_error
Class Method Details
.instance ⇒ Object
220
|
# File 'lib/solidity/typed/metatypes/types.rb', line 220
def self.instance() @instance ||= new; end
|
Instance Method Details
#==(other) ⇒ Object
229
|
# File 'lib/solidity/typed/metatypes/types.rb', line 229
def ==(other) other.is_a?( UIntType ); end
|
#abi ⇒ Object
note abi requires uint256!!! (not uint) todo/check - rename to sig or abisig or selector or ???
227
|
# File 'lib/solidity/typed/metatypes/types.rb', line 227
def abi() 'uint256'; end
|
222
|
# File 'lib/solidity/typed/metatypes/types.rb', line 222
def format() 'uint'; end
|
#mut? ⇒ Boolean
235
|
# File 'lib/solidity/typed/metatypes/types.rb', line 235
def mut?() false; end
|
#new(initial_value) ⇒ Object
238
|
# File 'lib/solidity/typed/metatypes/types.rb', line 238
def new( initial_value ) UInt.new( initial_value ); end
|
#typedclass ⇒ Object
233
|
# File 'lib/solidity/typed/metatypes/types.rb', line 233
def typedclass() UInt; end
|
#typedclass_name ⇒ Object
232
|
# File 'lib/solidity/typed/metatypes/types.rb', line 232
def typedclass_name() UInt.name; end
|
#zero ⇒ Object
Also known as:
new_zero
236
|
# File 'lib/solidity/typed/metatypes/types.rb', line 236
def zero() UInt.zero; end
|