SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
# Autogenerated .env file | |
HOST_DOMAIN=web.web-templates.io | |
[email protected] | |
APP_NAME=web | |
IMAGE_REPO=netcoretemplates/web | |
RELEASE_VERSION=latest |
version: "3.9" | |
services: | |
nginx-proxy: | |
image: nginxproxy/nginx-proxy | |
container_name: nginx-proxy | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" |
version: "3.9" | |
services: | |
app: | |
image: ghcr.io/${IMAGE_REPO}:${RELEASE_VERSION} | |
restart: always | |
ports: !reset ["80"] | |
container_name: ${IMAGE_REPO}-app | |
environment: | |
VIRTUAL_HOST: ${HOST_DOMAIN} | |
LETSENCRYPT_HOST: ${HOST_DOMAIN} |
version: "3.9" | |
services: | |
nginx-proxy: | |
image: nginxproxy/nginx-proxy | |
container_name: nginx-proxy | |
restart: always | |
ports: | |
- "80:80" | |
- "443:443" |
sudo chmod 666 /var/run/docker.sock |
import { Pocket, HttpRpcProvider, RpcError, JailedStatus, StakingStatus } from '@pokt-network/pocket-js'; | |
import axios, { AxiosResponse } from 'axios'; | |
const DISPATCH_URL = new URL("https://mainnet-1.nodes.pokt.network:4201") | |
const POCKET_RPC_URL = new URL("https://mainnet-1.nodes.pokt.network:4201") | |
async function main() { | |
const pocket = new Pocket([DISPATCH_URL], new HttpRpcProvider(POCKET_RPC_URL)) | |
const queryNodesResponse = await pocket?.rpc()?.query.getNodes(StakingStatus.Staked, JailedStatus.NA, 74060n, "", 1, 30000, 60000, true) |
SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
function isHex(str) { | |
return /^[A-F0-9]+$/i.test(str) | |
} |
Bridge mode: MULTI_AMB_ERC_TO_ERC | |
[Home] Deploying Bridge Mediator storage | |
pending txHash 0xea0284c23078dbb3aa8c351546eea6e84a403a0543dcf9bb2446b126e144e767 | |
[Home] Bridge Mediator Storage: 0x920D59E4F79478D8A188b6736333535c765d50cd | |
[Home] Deploying Bridge Mediator implementation | |
pending txHash 0x8de2b923c19a97d3dfeb4a6747b6946b2a16d438b9ee873deb4841560cf3fa4b |
Bridge mode: ARBITRARY_MESSAGE | |
======================================== | |
Deploying Arbitrary Message Bridge at Home | |
======================================== | |
deploying storage for home validators | |
pending txHash 0x25de1b0afaf8672a30d3c43109057fc79f4a83c6920d86829aa7b15ae8cd688b | |
[Home] BridgeValidators Storage: 0x965769C9CeA8A7667246058504dcdcDb1E2975A5 | |
deploying implementation for home validators |