(dissoc-name xs)(item->is-dynamic? {type :type :as item})(item->size {type :type :as item})Size, in hex chars, the item takes in the head of its container.
Size, in hex chars, the item takes in the head of its container.
(type-kind type)Classifies a solidity type: :vector, :tuple, :bool, :address, :string, :unumber, :number, :bytes (fixed size) or :dbytes (dynamic). Returns nil for unsupported types.
Classifies a solidity type: :vector, :tuple, :bool, :address, :string, :unumber, :number, :bytes (fixed size) or :dbytes (dynamic). Returns nil for unsupported types.
(vector-type type)Splits an array type on its outermost dimension, returning [child-type length], with a nil length for dynamic arrays. "uint256[3][]" => ["uint256[3]" nil], "uint256[3]" => ["uint256" 3]
Splits an array type on its outermost dimension, returning [child-type length], with a nil length for dynamic arrays. "uint256[3][]" => ["uint256[3]" nil], "uint256[3]" => ["uint256" 3]
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |