# README
CRIB Connector
This is a simple CRIB connector for OCRv1 CRIB This code is temporary and may be removed in the future if connection logic will be simplified with ARC
Example
Go to the CRIB repository and spin up a cluster.
./scripts/cribbit.sh crib-oh-my-crib
devspace deploy --debug --profile local-dev-simulated-core-ocr1
Run an example test
export CRIB_NAMESPACE=crib-oh-my-crib
export CRIB_NETWORK=geth # only "geth" is supported for now
export CRIB_NODES=5 # min 5 nodes
#export SETH_LOG_LEVEL=debug # these two can be enabled to debug connection issues
#export RESTY_DEBUG=true
export GAP_URL=https://localhost:8080/primary # only applicable in CI, unset the var to connect locally
go test -v -run TestCRIB
# Functions
CoreDONSimulatedConnection returns all vars required to connect to core DON Simulated CRIB connects in CI via GAP if GAP_URL is provided.
ReadCRIBVars read CRIB environment variables.
# Constants
DefaultSimulatedNetworkChainID is a default chainID we use for Geth/Hardhat/Anvil.
DefaultSimulatedPrivateKey is a first key used for Geth/Hardhat/Anvil.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
These are constants for simulated CRIB that should never change
Ideally, they should be placed into CRIB repository, however, for simplicity we keep all environment connectors in CTF
CRIB: https://github.com/smartcontractkit/crib/tree/main/core
Core Chart: https://github.com/smartcontractkit/infra-charts/tree/main/chainlink-cluster
*/.
# Structs
ConnectionVars common K8s connection vars.
CoreDONConnectionConfig Chainlink DON connection config.