v2plusscripts

package
v0.0.0-...-2729ef7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployBHS

func DeployBHS(e helpers.Environment) (blockhashStoreAddress common.Address)

func DeployBatchBHS

func DeployBatchBHS(e helpers.Environment, bhsAddress common.Address) (batchBHSAddress common.Address)

func DeployBatchCoordinatorV2

func DeployBatchCoordinatorV2(e helpers.Environment, coordinatorAddress common.Address) (batchCoordinatorAddress common.Address)

func DeployCoordinator

func DeployCoordinator(
	e helpers.Environment,
	linkAddress string,
	bhsAddress string,
	linkEthAddress string,
) (coordinatorAddress common.Address)

func DeployUniverseViaCLI

func DeployUniverseViaCLI(e helpers.Environment)

func DeployWrapperUniverse

func DeployWrapperUniverse(e helpers.Environment)

func EoaAddConsumerToSub

func EoaAddConsumerToSub(
	e helpers.Environment,
	coordinator vrf_coordinator_v2_5.VRFCoordinatorV25,
	subID *big.Int,
	consumerAddress string,
)

func EoaCreateSub

func EoaCreateSub(e helpers.Environment, coordinator vrf_coordinator_v2_5.VRFCoordinatorV25)

func EoaDeployConsumer

func EoaDeployConsumer(e helpers.Environment,
	coordinatorAddress string,
	linkAddress string) (
	consumerAddress common.Address)
func EoaFundSubWithLink(
	e helpers.Environment,
	coordinator vrf_coordinator_v2_5.VRFCoordinatorV25,
	linkAddress string, amount,
	subID *big.Int,
)

func EoaFundSubWithNative

func EoaFundSubWithNative(e helpers.Environment, coordinatorAddress common.Address, subID *big.Int, amount *big.Int)

func EoaV2PlusLoadTestConsumerWithMetricsDeploy

func EoaV2PlusLoadTestConsumerWithMetricsDeploy(e helpers.Environment, consumerCoordinator string) (consumerAddress common.Address)

func FindSubscriptionID

func FindSubscriptionID(e helpers.Environment, coordinator *vrf_coordinator_v2_5.VRFCoordinatorV25) *big.Int

returns subscription ID that belongs to the given owner. Returns result found first

func MigrateSub

func MigrateSub(
	e helpers.Environment,
	coordinatorMigrateSubFrom vrf_coordinator_v2_5.VRFCoordinatorV25,
	coordinatorMigrateSubTo common.Address,
	subID *big.Int,
)

func PrintCoordinatorConfig

func PrintCoordinatorConfig(coordinator *vrf_coordinator_v2_5.VRFCoordinatorV25)

func RegisterCoordinatorProvingKey

func RegisterCoordinatorProvingKey(e helpers.Environment,
	coordinator vrf_coordinator_v2_5.VRFCoordinatorV25, uncompressed string, gasLaneMaxGas uint64)

func RegisterMigratableCoordinator

func RegisterMigratableCoordinator(
	e helpers.Environment,
	coordinator vrf_coordinator_v2_5.VRFCoordinatorV25,
	coordinatorMigrateToAddress common.Address,
)

func SetCoordinatorConfig

func SetCoordinatorConfig(
	e helpers.Environment,
	coordinator vrf_coordinator_v2_5.VRFCoordinatorV25,
	minConfs uint16,
	maxGasLimit uint32,
	stalenessSeconds uint32,
	gasAfterPayment uint32,
	fallbackWeiPerUnitLink *big.Int,
	fulfillmentFlatFeeNativePPM uint32,
	fulfillmentFlatFeeLinkDiscountPPM uint32,
	nativePremiumPercentage uint8,
	linkPremiumPercentage uint8,
)

func SmokeTestBHS

func SmokeTestBHS(e helpers.Environment)

func SmokeTestVRF

func SmokeTestVRF(e helpers.Environment)

func VRFV2PlusDeployUniverse

func VRFV2PlusDeployUniverse(e helpers.Environment,
	subscriptionBalanceJuels *big.Int,
	subscriptionBalanceNativeWei *big.Int,
	vrfKeyRegistrationConfig model.VRFKeyRegistrationConfig,
	contractAddresses model.ContractAddresses,
	coordinatorConfig CoordinatorConfigV2Plus,
	nativeOnly bool,
	nodesMap map[string]model.Node,
	provingKeyMaxGasPrice uint64,
	coordinatorJobSpecConfig model.CoordinatorJobSpecConfig,
	bhsJobSpecConfig model.BHSJobSpecConfig,
	simulationBlock string,
) model.JobSpecs

func WrapperConfigure

func WrapperConfigure(
	e helpers.Environment,
	wrapperAddress common.Address,
	wrapperGasOverhead uint,
	coordinatorGasOverheadNative, coordinatorGasOverheadLink uint,
	coordinatorGasOverheadPerWord uint,
	nativePremiumPercentage, linkPremiumPercentage uint,
	keyHash string,
	maxNumWords uint,
	fallbackWeiPerUnitLink *big.Int,
	stalenessSeconds uint32,
	fulfillmentFlatFeeNativePPM uint32,
	fulfillmentFlatFeeLinkDiscountPPM uint32,
)

func WrapperConsumerDeploy

func WrapperConsumerDeploy(
	e helpers.Environment,
	link, wrapper common.Address,
) common.Address

func WrapperDeploy

func WrapperDeploy(
	e helpers.Environment,
	link, linkEthFeed, coordinator common.Address, subID *big.Int,
) common.Address

Types

type CoordinatorConfigV2Plus

type CoordinatorConfigV2Plus struct {
	MinConfs                          int
	MaxGasLimit                       int64
	StalenessSeconds                  int64
	GasAfterPayment                   int64
	FallbackWeiPerUnitLink            *big.Int
	FulfillmentFlatFeeNativePPM       uint32
	FulfillmentFlatFeeLinkDiscountPPM uint32
	NativePremiumPercentage           uint8
	LinkPremiumPercentage             uint8
}

Jump to

Keyboard shortcuts

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