This bounty is no longer available
Web3 DAO | status-im Logo

Move abi-spec to status-go

Organization

status-im

Deadline

over 1 year ago

Status

ENDED

1000 USD

INSTRUCTIONS

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 %)