Sha256: 05ea81731a731c8352e08d0daeedfd5792a5b9ac835461dce1b0c9ecb609445d
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true require_relative "abi_coder_rb/version" require_relative "abi_coder_rb/utils" require_relative "abi_coder_rb/type/types" require_relative "abi_coder_rb/type/parse" require_relative "abi_coder_rb/decode" require_relative "abi_coder_rb/encode" require_relative "periphery/event_decoder" module AbiCoderRb class Error < StandardError; end class DecodingError < Error; end class EncodingError < Error; end class ValueError < Error; end class ValueOutOfBounds < Error; end class ParseError < Error; end BYTE_EMPTY = "".b.freeze BYTE_ZERO = "\x00".b.freeze BYTE_ONE = "\x01".b.freeze ## note: used for encoding bool for now UINT_MAX = 2**256 - 1 ## same as 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff UINT_MIN = 0 INT_MAX = 2**255 - 1 ## same as 57896044618658097711785492504343953926634992332820282019728792003956564819967 INT_MIN = -2**255 ## same as -57896044618658097711785492504343953926634992332820282019728792003956564819968 attr_accessor :before_encoding_action, :after_decoding_action def before_encoding(action) self.before_encoding_action = action end def after_decoding(action) self.after_decoding_action = action end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abi_coder_rb-0.2.9 | lib/abi_coder_rb.rb |