Documentation
¶
Index ¶
- func Apply(t *testing.T, e cldf.Environment, first ConfiguredChangeSet, ...) (cldf.Environment, error)
- func ApplyChangesets(t *testing.T, e cldf.Environment, changesetApplications []ConfiguredChangeSet, ...) (cldf.Environment, []cldf.ChangesetOutput, error)
- func ApproveToken(env cldf.Environment, src uint64, tokenAddress common.Address, ...) error
- func MaybeGetLinkBalance(t *testing.T, e cldf.Environment, chain cldf_evm.Chain, ...) *big.Int
- func MustFundAddressWithLink(t *testing.T, e cldf.Environment, chain cldf_evm.Chain, to common.Address, ...)
- func RunChangeset[C any](operation deployment.ChangeSetV2[C], env deployment.Environment, config C) (deployment.ChangesetOutput, error)
- type ApplyChangesetsOptions
- type ConfiguredChangeSet
- type WrappedChangeSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(t *testing.T, e cldf.Environment, first ConfiguredChangeSet, rest ...ConfiguredChangeSet) (cldf.Environment, error)
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 ¶
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 }