This file contains hidden or 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
| [package] | |
| name = "playground" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| alloy = { git = "https://github.com/alloy-rs/alloy.git", features = ["contract", "provider-ws", "rpc-types-eth"] } | |
| anyhow = "1.0.82" | |
| tokio = { version = "1.37.0", features = ["full"] } | |
| tracing = "0.1.40" |
This file contains hidden or 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
| use std::str::FromStr; | |
| use hickory_client::client::{AsyncClient, ClientHandle}; | |
| use hickory_client::rr::{DNSClass, Name, RecordType}; | |
| use hickory_client::udp::UdpClientStream; | |
| use tokio::net::UdpSocket; | |
| #[tokio::test] | |
| async fn test() -> anyhow::Result<()> { | |
| let dns_socket_addr = ([223, 5, 5, 5], 53).into(); |
This file contains hidden or 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
| [package] | |
| name = "example" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| tokio = { version = "1.37.0", features = ["full"] } | |
| anyhow = "1.0.82" | |
| alloy = { git = "https://github.com/alloy-rs/alloy", features = ["provider-ws", "transport-ws", "rpc-types-trace", "eips"] } | |
| futures = "0.3.30" |
This file contains hidden or 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
| DEST-PORT,9000,DIRECT | |
| DEST-PORT,12000,DIRECT | |
| DEST-PORT,13000,DIRECT | |
| DEST-PORT,30301,DIRECT | |
| DEST-PORT,30303,DIRECT | |
| DEST-PORT,30304,DIRECT | |
| DEST-PORT,30311,DIRECT | |
| DEST-PORT,30404,DIRECT |
This file contains hidden or 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
| services: | |
| nitro-node: | |
| image: offchainlabs/nitro-node:v2.0.11-8e786ec | |
| volumes: | |
| - /data/arbitrum:/home/user/.arbitrum | |
| ports: | |
| - "8547:8547" | |
| - "8548:8548" | |
| - "9642:9642" | |
| command: |
This file contains hidden or 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
| package redis_test | |
| import ( | |
| "github.com/go-redis/redis" | |
| "golang.org/x/crypto/ssh" | |
| "io/ioutil" | |
| "net" | |
| "testing" | |
| ) |
This file contains hidden or 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
| package subscriber | |
| import ( | |
| "context" | |
| "github.com/ethereum/go-ethereum/core/types" | |
| "github.com/ethereum/go-ethereum/ethclient" | |
| "github.com/go-redis/redis/v8" | |
| "github.com/sirupsen/logrus" | |
| "github.com/spf13/cobra" | |
| ) |
This file contains hidden or 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
| package main | |
| import ( | |
| "crypto/ecdsa" | |
| "fmt" | |
| "github.com/ethereum/go-ethereum/common/hexutil" | |
| "github.com/ethereum/go-ethereum/crypto" | |
| "github.com/sirupsen/logrus" | |
| "os" | |
| "strings" |
NewerOlder