Move abi-spec to status-go
abi-spec/encode
sign-transaction-button-clicked-from-chat
:data (abi-spec/encode "transfer(address,uint256)" [to-norm amount-hex])
sign-transaction-button-clicked-from-request
(abi-spec/encode "transfer(address,uint256)" [to-norm amount-hex])
sign-transaction-button-clicked
(abi-spec/encode "transfer(address,uint256)" [to-norm amount-hex])
abi-spec/decode
get-transfer-token
(abi-spec/decode
(str "0x" (subs data 10))
(if (= type :approve-and-call) ["address" "uint256" "bytes"] ["address" "uint256"]))
other methods
hex-to-number
(abi-spec/hex-to-number %)
number-to-hex
(abi-spec/number-to-hex %)