INNER CODE UNIT · Go

printETHKeyData

smartcontractkit/chainlink · core/scripts/common/vrf/setup-envs/main.go:412

func printETHKeyData(ethKeys []presenters.ETHKeyResource) {
	fmt.Println("------------- NODE INFORMATION -------------")
	for _, ethKey := range ethKeys {
		fmt.Println("-----------ETH Key-----------")
		fmt.Println("Address: ", ethKey.Address)
		fmt.Println("MaxGasPriceWei: ", ethKey.MaxGasPriceWei)
		fmt.Println("EthBalance: ", ethKey.EthBalance)
		fmt.Println("-----------------------------")
	}
}

func mapEthKeysToSendingKeyArr(ethKeys []presenters.ETHKeyResource) []model.SendingKey {
	sendingKeys := make([]model.SendingKey, 0, len(ethKeys))
	for _, ethKey := range ethKeys {
		sendingKey := model.SendingKey{Address: ethKey.Address, BalanceEth: ethKey.EthBalance.ToInt()}
		sendingKeys = append(sendingKeys, sendingKey)
	}
	return sendingKeys

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…