This directory contains generated contract bindings and ABIs for the Pell Network contracts.
abis/
- Contract ABIs generated from Solidity contracts (via hardhat-abi-exporter)pkg/
- Go bindings generated from contract artifactsgo.mod
- Go module dependenciesgo.sum
- Go module checksums
- ABI Generation: When contracts are compiled, the
hardhat-abi-exporter
plugin automatically exports ABIs to this directory'sabis/
folder - Go Binding Generation: The
generate_go.sh
script (in parent repo) reads contract artifacts and generates Go bindings in thepkg/
directory - Submodule Updates: Changes are automatically committed to this submodule when contracts are updated
To generate and update bindings from the parent repository:
# Generate Go bindings and update submodule
yarn generate-bindings
# Or just update existing bindings
yarn update-bindings
If you need to manually generate Go bindings:
# From parent repository root
./scripts/generate_go.sh
- Go 1.22+
abigen
tool (part of go-ethereum)jq
for JSON processing
This submodule is automatically updated when:
- New contracts are deployed
- Contract ABIs are updated
- The main repository is released
The parent repository references this submodule and includes it in deployments and CI/CD pipelines.