synapsecns/sanguine

View on GitHub
agents/contracts/origin/generate.go

Summary

Maintainability
A
0 mins
Test Coverage
package origin

//go:generate go run github.com/synapsecns/sanguine/tools/abigen generate --sol ../../../packages/contracts-core/flattened/Origin.sol --pkg origin --sol-version 0.8.17 --filename origin

// here we generate some interfaces we use in for our mocks. TODO this should be automated in abigen for all contracts + be condensed
//go:generate go run github.com/vburenin/ifacemaker -f origin.abigen.go -s OriginCaller -i IOriginCaller -p origin -o icaller_generated.go -c "autogenerated file"
//go:generate go run github.com/vburenin/ifacemaker -f origin.abigen.go -s OriginTransactor -i IOriginTransactor -p origin -o itransactor_generated.go -c "autogenerated file"
//go:generate go run github.com/vburenin/ifacemaker -f origin.abigen.go -s OriginFilterer  -i IOriginFilterer  -p origin  -o filterer_generated.go -c "autogenerated file"
//go:generate go run github.com/vektra/mockery/v2 --name IOrigin --output ./mocks --case=underscore
// last line must be null