changeset

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

Apply applies the changeset applications to the environment and returns the updated environment. This is the variadic function equivalent of ApplyChangesets, but allowing you to simply pass in one or more changesets as parameters at the end of the function. e.g. `changeset.Apply(t, e, nil, configuredCS1, configuredCS2)` etc.

func ApplyChangesets

func ApplyChangesets(t *testing.T, e cldf.Environment, changesetApplications []ConfiguredChangeSet, opts ...ApplyChangesetsOptions) (cldf.Environment, []cldf.ChangesetOutput, error)

ApplyChangesets applies the changeset applications to the environment and returns the updated environment.

func ApproveToken

func ApproveToken(env cldf.Environment, src uint64, tokenAddress common.Address, routerAddress common.Address, amount *big.Int) error

ApproveToken approves routerAddress to pull up to amount of token from the deployer on chain src.

func MaybeGetLinkBalance

func MaybeGetLinkBalance(t *testing.T, e cldf.Environment, chain cldf_evm.Chain, linkAddr common.Address) *big.Int

MaybeGetLinkBalance returns the LINK balance of the given address on the given chain.

func MustFundAddressWithLink(t *testing.T, e cldf.Environment, chain cldf_evm.Chain, to common.Address, amount int64)

func RunChangeset

func RunChangeset[C any](
	operation deployment.ChangeSetV2[C],
	env deployment.Environment,
	config C,
) (deployment.ChangesetOutput, error)

RunChangeset is used to run a changeset in another changeset It executes VerifyPreconditions internally to handle changeset errors.

Types

type ApplyChangesetsOptions

type ApplyChangesetsOptions func(*applyChangesetOptions) *applyChangesetOptions

func WithRealBackend

func WithRealBackend() ApplyChangesetsOptions

type ConfiguredChangeSet

type ConfiguredChangeSet interface {
	Apply(e cldf.Environment) (cldf.ChangesetOutput, error)
}

func Configure

func Configure[C any](
	changeset cldf.ChangeSetV2[C],
	config C,
) ConfiguredChangeSet

type WrappedChangeSet

type WrappedChangeSet[C any] struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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