Skip to content

Commit

Permalink
create abi go binding
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen917 committed Sep 26, 2023
1 parent 9324f6c commit f2ca4cb
Show file tree
Hide file tree
Showing 2 changed files with 1,093 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/abibinding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
# See the file LICENSE for licensing terms.

name: ABI Go Binding

on:
push:
branches:
- main
pull_request:
branches:
- "*"

env:
GO_VERSION: "1.20.7"

jobs:
abi_binding:
name: abi_binding
runs-on: ubuntu-20.04

steps:
- name: Checkout go-ethereum repository
uses: actions/checkout@v4
with:
repository: ethereum/go-ethereum
ref: v1.13.1

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Install abigen tool
run: make
run: make devtools

- name: Create ABI Go bindings
run: mkdir -p abis/go/teleport-messenger
run: abigen --abi abis/TeleporterMessenger.json --pkg teleport_messenger --out teleport-messenger/teleport_messenger.go
Loading

0 comments on commit f2ca4cb

Please sign in to comment.