Solidity: calldata, memory, and storage
If you can, try to use calldata as data location because it will avoid copies, reduce gas usage, and also make sure that the data cannot be modified.
If you can, try to use calldata as data location because it will avoid copies, reduce gas usage, and also make sure that the data cannot be modified.
Whenever the library is changed, hardhat-deploy will deploy a new implementation and upgrade the proxy.
To achieve high availability and better performance, we could build a HAProxy load balancer in front of multiple Ethereum RPC providers, and also automatically adjust traffic weights based on the latency and block timestamp of each RPC endpoints. ref: https://www.haproxy.org/ Configurations In haproxy.cfg, we have a backend named rpc-backend, and two RPC endpoints: quicknode and… Read More
graph-node is an open source software that indexes blockchain data, as known as indexer. Though the cost of running a self-hosted graph node could be pretty high. We're going to deploy a self-hosted graph node on Amazon Elastic Kubernetes Service (EKS). In this article, we have two approaches to deploy self-hosted graph node: A single… Read More
The Kubernetes's Cluster Autoscaler automatically adjusts the number of nodes in your cluster when pods fail or are rescheduled onto other nodes. Here we're going to deploy the AWS implementation that implements the decisions of Cluster Autoscaler by communicating with AWS products and services such as Amazon EC2. ref: https://docs.aws.amazon.com/eks/latest/userguide/cluster-autoscaler.html Configure IAM Permissions If your… Read More