contracts_go

package module
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 0 Imported by: 0

README

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. Create a new GitHub Release here
  4. Use the same Git tag as world-chain-contracts (e.g v0.0.8)
  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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bindings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL