-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VRF-586: add env setup script for VRF V2 Plus (#10892)
* VRF-586: add env setup script for VRF V2 Plus * VRF-586: deleting debug logs
- Loading branch information
1 parent
dfb97e5
commit e499700
Showing
28 changed files
with
665 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package constants | ||
|
||
import ( | ||
"math/big" | ||
) | ||
|
||
var ( | ||
SubscriptionBalanceJuels = "1e19" | ||
SubscriptionBalanceNativeWei = "1e18" | ||
|
||
// optional flags | ||
FallbackWeiPerUnitLink = big.NewInt(6e16) | ||
BatchFulfillmentEnabled = true | ||
MinConfs = 3 | ||
NodeSendingKeyFundingAmount = "1e17" | ||
MaxGasLimit = int64(2.5e6) | ||
StalenessSeconds = int64(86400) | ||
GasAfterPayment = int64(33285) | ||
|
||
//vrfv2 | ||
FlatFeeTier1 = int64(500) | ||
FlatFeeTier2 = int64(500) | ||
FlatFeeTier3 = int64(500) | ||
FlatFeeTier4 = int64(500) | ||
FlatFeeTier5 = int64(500) | ||
ReqsForTier2 = int64(0) | ||
ReqsForTier3 = int64(0) | ||
ReqsForTier4 = int64(0) | ||
ReqsForTier5 = int64(0) | ||
|
||
//vrfv2plus | ||
FlatFeeLinkPPM = int64(500) | ||
FlatFeeNativePPM = int64(500) | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../toml-config/vrf-backup-other-chains.toml → .../toml-config/vrf-backup-other-chains.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...stnet/docker/toml-config/vrf-primary.toml → ...n/vrf/docker/toml-config/vrf-primary.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package model | ||
|
||
import ( | ||
"github.com/ethereum/go-ethereum/common" | ||
"math/big" | ||
) | ||
|
||
var ( | ||
VRFPrimaryNodeName = "vrf-primary-node" | ||
VRFBackupNodeName = "vrf-backup-node" | ||
BHSNodeName = "bhs-node" | ||
BHSBackupNodeName = "bhs-backup-node" | ||
BHFNodeName = "bhf-node" | ||
) | ||
|
||
type Node struct { | ||
URL string | ||
CredsFile string | ||
SendingKeys []SendingKey | ||
NumberOfSendingKeysToCreate int | ||
SendingKeyFundingAmount *big.Int | ||
VrfKeys []string | ||
jobSpec string | ||
} | ||
|
||
type SendingKey struct { | ||
Address string | ||
BalanceEth *big.Int | ||
} | ||
|
||
type JobSpecs struct { | ||
VRFPrimaryNode string | ||
VRFBackupyNode string | ||
BHSNode string | ||
BHSBackupNode string | ||
BHFNode string | ||
} | ||
|
||
type ContractAddresses struct { | ||
LinkAddress string | ||
LinkEthAddress string | ||
BhsContractAddress common.Address | ||
BatchBHSAddress common.Address | ||
CoordinatorAddress common.Address | ||
BatchCoordinatorAddress common.Address | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.