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
221
|
# File 'lib/solidity/typed/metatypes/types.rb', line 221
def self.instance() @instance ||= new; end
|
Instance Method Details
#==(other) ⇒ Object
230
|
# File 'lib/solidity/typed/metatypes/types.rb', line 230
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 ???
228
|
# File 'lib/solidity/typed/metatypes/types.rb', line 228
def abi() 'uint256'; end
|
223
|
# File 'lib/solidity/typed/metatypes/types.rb', line 223
def format() 'uint'; end
|
#mut? ⇒ Boolean
236
|
# File 'lib/solidity/typed/metatypes/types.rb', line 236
def mut?() false; end
|
#new(initial_value) ⇒ Object
239
|
# File 'lib/solidity/typed/metatypes/types.rb', line 239
def new( initial_value ) UInt.new( initial_value ); end
|
#typedclass ⇒ Object
234
|
# File 'lib/solidity/typed/metatypes/types.rb', line 234
def typedclass() UInt; end
|
#typedclass_name ⇒ Object
233
|
# File 'lib/solidity/typed/metatypes/types.rb', line 233
def typedclass_name() UInt.name; end
|
#zero ⇒ Object
Also known as:
new_zero
237
|
# File 'lib/solidity/typed/metatypes/types.rb', line 237
def zero() UInt.zero; end
|