Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omnes-tech/abi
Golang package that encodes parameters similarly to Solidity's `abi.encode`
https://github.com/omnes-tech/abi
abi evm go golang
Last synced: 2 months ago
JSON representation
Golang package that encodes parameters similarly to Solidity's `abi.encode`
- Host: GitHub
- URL: https://github.com/omnes-tech/abi
- Owner: omnes-tech
- License: mit
- Created: 2024-06-01T15:02:18.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T13:14:42.000Z (6 months ago)
- Last Synced: 2024-08-13T00:30:50.063Z (5 months ago)
- Topics: abi, evm, go, golang
- Language: Go
- Homepage:
- Size: 48.8 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `abi`: Easy to use ABI encoding and decoding functionalities from EVM blockchains
[![Go Reference](https://pkg.go.dev/badge/github.com/omnes-tech/abi.svg)](https://pkg.go.dev/github.com/omnes-tech/abi)
[![Go Report Card](https://goreportcard.com/badge/github.com/omnes-tech/abi)](https://goreportcard.com/report/github.com/omnes-tech/abi)
[![Coverage Status](https://coveralls.io/repos/github/omnes-tech/abi/badge.svg?branch=main)](https://coveralls.io/github/omnes-tech/abi?branch=main)
[![Latest Release](https://img.shields.io/github/v/release/omnes-tech/abi)](https://github.com/omnes-tech/abi/releases/latest)Encode to and decode from bytecode easily with `abi` package. Usage is similar to Solididy's `abi.encode`, `abi.encodePacked`, and `abi.decode` functions.
```shell
go get github.com/omnes-tech/abi
```## At a Glance
Encode functions:
- `Encode`
- `EncodePacked`
- `EncodeSelector`
- `EncodeWithSignature`
- `EncodeWithSelector`Decode functions:
- `Decode`
- `DecodePacked`
- `DecodeWithSignature`
- `DecodeWithSelector`