8000 GitHub - projectawakening/contracts-go: Abigen generated Go packages from ABIs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

projectawakening/contracts-go

Repository files navigation

Go bindings for Ethereum smart contracts

Generated using abigen

How To Use

package main

import (
	"github.com/ethereum/go-ethereum/common"
	"github.com/projectawakening/contracts-go/bindings/world"
	"log"
)

func main() {
	w, err := world.NewWorld(common.HexToAddress("0x0000"), ethClient)
	if err != nil {
		log.Fatal(err)
	}

	w.EveworldBringOnline(...)
}

How To Release

  1. Wait for a new world-chain-contracts deployment
  2. Make sure the new ABIs are available on abi-export.projectawakening.io
  3. Update the world contract VERSION in .github/workflows/release.yml and get that merged
  4. Create a new GitHub Release here
  5. Publish Release
  6. CI will generate and push the new Go bindings to main

Generate Bindings Locally

  1. clone this repo and cd into it
  2. go install github.com/ethereum/go-ethereum/cmd/abigen@latest
  3. VERSION=v0.0.8 go generate (replace the version if needed)
0