Documentation
¶
Index ¶
- Variables
- func ConvertAnonStructToTyped[T any](anonStruct interface{}) (T, error)
- func GoStructToABITuple(structType reflect.Type, tupleName string) (abi.Type, error)
- func GoTypeToABIType(goType reflect.Type) (string, error)
- type Bin
- type Binary
- type BytesScriptDecoder
- type BytesScriptEncoder
- type Client
- func (c *Client) Build(ctx context.Context, opts ...string) error
- func (c *Client) Clean(ctx context.Context, opts ...string) error
- func (c *Client) RunScript(ctx context.Context, script string, sig string, args []byte, opts ...string) (string, error)
- func (c *Client) VerifyContract(ctx context.Context, opts ...string) (string, error)
- func (c *Client) Version(ctx context.Context) (VersionInfo, error)
- type PathBin
- type ScriptCallDecoder
- type ScriptCallEncoder
- type ScriptCaller
- type StandardBin
- type StandardBinOpt
- type VersionConfig
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var StandardVersion string
StandardVersion is the Foundry version that op-deployer will download if it's not found on PATH.
Functions ¶
func ConvertAnonStructToTyped ¶ added in v1.13.7
func GoStructToABITuple ¶ added in v1.13.7
Types ¶
type BytesScriptDecoder ¶ added in v1.13.7
func (*BytesScriptDecoder[T]) Decode ¶ added in v1.13.7
func (d *BytesScriptDecoder[T]) Decode(rawOutput []byte) (T, error)
type BytesScriptEncoder ¶ added in v1.13.7
func (*BytesScriptEncoder[T]) Encode ¶ added in v1.13.7
func (e *BytesScriptEncoder[T]) Encode(input T) ([]byte, error)
type Client ¶
func NewStandardClient ¶ added in v1.16.0
func (*Client) VerifyContract ¶ added in v1.16.3
type ScriptCallDecoder ¶
type ScriptCallEncoder ¶
type ScriptCaller ¶
ScriptCaller is a function that calls a forge script Ouputs: - Return value of the script (decoded into go type) - Bool indicating if the script was recompiled (mostly used for testing) - Error if the script fails to run
func NewScriptCaller ¶
func NewScriptCaller[I any, O any](client *Client, script string, sig string, encoder ScriptCallEncoder[I], decoder ScriptCallDecoder[O]) ScriptCaller[I, O]
type StandardBin ¶
type StandardBin struct {
// contains filtered or unexported fields
}
StandardBin forces the use of the standard forge binary version by first checking for the version locally, then downloading from github if needed
func NewStandardBinary ¶
func NewStandardBinary(opts ...StandardBinOpt) (*StandardBin, error)
func (*StandardBin) Path ¶
func (b *StandardBin) Path() string
type StandardBinOpt ¶
type StandardBinOpt func(s *StandardBin)
func WithCachePather ¶
func WithCachePather(pather func() (string, error)) StandardBinOpt
func WithChecksummer ¶
func WithChecksummer(checksummer func(r io.Reader) error) StandardBinOpt
func WithProgressor ¶
func WithProgressor(p ioutil.Progressor) StandardBinOpt
func WithURL ¶
func WithURL(url string) StandardBinOpt
type VersionConfig ¶ added in v1.13.7
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.