이것저것 다하는 방
3.33K subscribers
115 photos
5 videos
2 files
89 links
그냥 잡다한거 하는걸 기록하는 방입니다.
Download Telegram
privasea rank per 1 feb 2025.xls
10.1 MB
Privasea Node 순위표가 나왔네요.

해당 순위표는 1일 기준인거같습니다.
저는 그냥 제 노드 올라와있는지 확인하는 용도로 사용했습니다.
👍1
**Hyperlane** 노드 구축 자동화
https://github.com/kooroot/Node_Executor-Hyperlane

사용법
- Linux & MacOS

wget https://raw.githubusercontent.com/kooroot/Node_Executor-Hyperlane/refs/heads/main/hyperlane_node_setup.sh
chmod 755 hyperlane_node_setup.sh
./hyperlane_node_setup.sh

총 2번의 입력창이 등장합니다.
1. 생성할 Validator 이름 설정:
2. Base 체인의 RPC URL: alchemy나 infura 등을 이용해 Base 체인 메인넷의 RPC 주소를 입력해주세요.

노드 설정이 끝난 후
cat hyperlane_wallet 명령어를 이용해 지갑 주소를 확인해주세요.
노드 세팅 후 **생성된 지갑 주소로 소량의 Base 체인 ETH 수수료를 전송해주세요.**

노드가 제대로 작동하는 것을 확인하려면 docker logs -f hyperlane 명령어와 Base 스캔(https://basescan.org/)에서 생성된 지갑 주소의 트랜잭션을 확인해주세요.
주의사항: 해당 스크립트는 2번 이상 실행하면 기존의 hyperlane_wallet이 변경되어 기존 노드의 주소를 찾을 수 없습니다.
1👍1
Hyperlane 노드 자동화 구축
https://github.com/kooroot/Node_Executor-Hyperlane

사용법
- Linux & MacOS

wget https://raw.githubusercontent.com/kooroot/Node_Executor-Hyperlane/refs/heads/main/hyperlane_node_setup.sh
chmod 755 hyperlane_node_setup.sh
./hyperlane_node_setup.sh

총 2번의 입력창이 등장합니다.
1. 생성할 Validator 이름 설정:
2. Base 체인의 RPC URL: alchemy나 infura 등을 이용해 Base 체인 메인넷의 RPC 주소를 입력해주세요.

노드 설정이 끝난 후
cat hyperlane_wallet 명령어를 이용해 지갑 주소를 확인해주세요.
노드 세팅 후
생성된 지갑 주소로 소량의 Base 체인 ETH 수수료를 전송해주세요.

노드가 제대로 작동하는 것을 확인하려면 docker logs -f hyperlane 명령어와 Base 스캔(https://basescan.org/)에서 생성된 지갑 주소의 트랜잭션을 확인해주세요.


주의사항: 해당 스크립트는 2번 이상 실행하면 기존의 hyperlane_wallet이 변경되어 기존 노드의 주소를 찾을 수 없습니다.
👍1🕊1
굳 스크립트
Forwarded from kkda
// 1. 대상 요소 선택자 (제공된 HTML 기준)
const CHAT_INPUT_SELECTOR = 'textarea.bg-fontLight.pr-20.pl-5.h-\\[56px\\]';
const SEND_BUTTON_SELECTOR = 'button.absolute.right-2.top-2.bg-fontPrimary.rounded-2xl'; // 고유 클래스 조합

// 2. 설정값
const MESSAGES = ["Paris beautiful", "Let'go paris", "Tell me more please", "Thank you, Next hot place", "Wow, So good. Next?"];
const DELAY_BETWEEN_CHARS = 50;
const DELAY_BEFORE_SEND = 500;

// 3. 이벤트 생성 함수 (isTrusted 제거)
function createHumanLikeEvent(type, key, keyCode) {
return new KeyboardEvent(type, {
key: key,
code: key,
keyCode: keyCode,
which: keyCode,
bubbles: true,
cancelable: true,
composed: true
});
}

// 4. 완벽한 전송 함수
async function sendMessageLikeHuman(text) {
const input = document.querySelector(CHAT_INPUT_SELECTOR);
const sendBtn = document.querySelector(SEND_BUTTON_SELECTOR);

// 버튼 추가 검증 (SVG + 텍스트)
const isValidButton = sendBtn?.querySelector('svg.tabler-icon-send') &&
sendBtn?.querySelector('p')?.textContent === 'Send';

if (!input || !sendBtn || !isValidButton) {
console.error(' 요소 검증 실패!');
return;
}

// 1단계: 입력 초기화
input.focus();
input.click();

// 2단계: React/Vue 상태 강제 업데이트
const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
HTMLTextAreaElement.prototype,
'value'
).set;
nativeInputValueSetter.call(input, text);
input.dispatchEvent(new Event('input', { bubbles: true }));

// 3단계: 실제 타자 효과
for (let i = 0; i < text.length; i++) {
input.dispatchEvent(createHumanLikeEvent('keydown', text[i], text.charCodeAt(i)));
input.dispatchEvent(createHumanLikeEvent('keypress', text[i], text.charCodeAt(i)));
await new Promise(r => setTimeout(r, DELAY_BETWEEN_CHARS));
input.dispatchEvent(createHumanLikeEvent('keyup', text[i], text.charCodeAt(i)));
}

// 4단계: 최종 전송 (이중 트리거)
await new Promise(r => setTimeout(r, DELAY_BEFORE_SEND));

// 엔터 키 + 버튼 클릭 동시 실행
input.dispatchEvent(createHumanLikeEvent('keydown', 'Enter', 13));
sendBtn.click();

console.log(` [${new Date().toLocaleTimeString()}] 전송 성공: ${text}`);
}

// 5. 1분 간격 실행 시스템
let messageIndex = 0;
let isSending = false;

const intervalId = setInterval(async () => {
if (isSending) return;
isSending = true;

await sendMessageLikeHuman(MESSAGES[messageIndex % MESSAGES.length]);
messageIndex++;

isSending = false;
}, 60 * 1000);

// ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
// ■ 사용법 ■
// 1. 전체 코드 복사 → 콘솔에 붙여넣기
// 2. 중지: clearInterval(intervalId);
// ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
넥서스 노드 현재 웹으로만 가능한가보네요.
Docs의 CLI는 Coming Soon으로 변경.
근데 웹이 간헐적으로 끊기네요.
👍1
Earnings 탭 > View previous points 확인하시면 페이즈1때 포인트 확인할 수 있습니다.
Nexus 노드 구축 자동화
Link: https://github.com/kooroot/Node_Executor-Nexus

사용법
- Linux
wget https://raw.githubusercontent.com/kooroot/Node_Executor-Nexus/refs/heads/main/nexus_node.sh
chmod +x nexus_node.sh
./nexus_node.sh

- MacOS
wget https://raw.githubusercontent.com/kooroot/Node_Executor-Nexus/refs/heads/main/nexus_node_mac.sh
chmod +x nexus_node_mac.sh
./nexus_node_mac.sh


1. Do you agree to the Nexus Beta Terms of Use (https://nexus.xyz/terms-of-use)? (Y/n)
Y + 엔터

2. [2] 입력
https://app.nexus.xyz/nodes 접속 후 Add node 시 나오는 코드를 입력

현재는 노드 세팅을 완료해도 500번대 에러가 발생합니다. 우선 세팅해놓으면 향후 서버가 안정되면 돌아갈 것 같습니다.
3
현재 웹에서 Node ID가 하드코딩 되어있는것 같습니다. 향후 업데이트 되면 알려드리겠습니다!
👍1
이제 Node ID가 정상적으로 나오는 것 같습니다!!
Node ID가 바뀌는게 정상인가보네요...? — 확인중....

Node ID 수정은 다시 스크립트 돌리시면
This node is already connected to an account using node id: dEfAuLT1
Do you want to use the existing user account? (y/n)

에서 n을 입력하고 다시 2 Node ID 입력하시면 됩니다!

Nexus측 코드가 조금 바뀌어 스크립트가 수정되었습니다.
이전에 스크립트를 받으신분은 삭제 후 다시 시도해주세요.
👍2
Nexus가 이제 잘 구동되네요!
근데 코드를 확인해보니까

fn anonymous_proving() -> Result<(), Box<dyn std::error::Error>> {

함수로 들어가서 proof가 들어가서 anonymous채굴이라 NEX 포인트가 안쌓일것같습니다..
nodeType": 2가 CLI 노드네요
Nexus CLI upgrade(Not official)
Nexus CLI 노드를 굴리면서 orchestrator 서버가 너무 불안정해서 1. Fetching a task to prove from Nexus Orchestrator... 과정에서 무한 로딩이 걸리거나 너무 오래 기다려야 상황이 발생해서 proof가 원활하게 생성이 잘되지않는 문제가 있었습니다.
사실 이 방법으로 노드를 굴려도 100%로 완벽하게 돌아가진 않습니다. (5번 활동에서 마찬가지로 Nexus Orchestrator와 통신이 있기 때문에)
그리고 해당 코드는 Nexus 코드에서 get_proof_task 함수에 임의로 timeout을 적용시킨 코드입니다.
사용하실분들만 참고하시면 될 것 같습니다.
Link: https://github.com/kooroot/Node_Executor-Nexus

사용법
[Linux]

wget https://raw.githubusercontent.com/kooroot/Node_Executor-Nexus/refs/heads/main/nexus_upgrade.sh
chmod +x nexus_upgrade.sh
./nexus_upgrade.sh

[MacOS]

wget https://raw.githubusercontent.com/kooroot/Node_Executor-Nexus/refs/heads/main/nexus_upgrade_mac.sh
chmod +x nexus_upgrade_mac.sh
./nexus_upgrade_mac.sh


저도 현재 Contabo와 Mac Mini에 적용시킨 상태인데 혹시 에러가 발생하시면 Chat에 문의주시면 저도 한번 확인해볼게요~
👍2
Ritual Node one-enter setup
Link: https://github.com/kooroot/Node_Executor-Ritual
리추얼 노드의 자동구축 스크립트를 제작했습니다. 본 노드를 구동하기 위해서는 Base 네트워크의 수수료 사용할 ETH가 소량 필요합니다.
본 스크립트는 Ubuntu 기반으로만 작동합니다.

사용법

wget https://raw.githubusercontent.com/kooroot/Node_Executor-Ritual/refs/heads/main/ritual_node.sh
chmod +x ritual_node_linux.sh
./ritual_node_linux.sh

스크립트가 진행되면서 사용자의 지갑 Private key를 묻는 프롬프트가 1번 등장합니다.
이때 0x를 포함한 개인키를 입력해주시면됩니다. 반드시 버너지갑을 사용해주세요.

구동 확인은 Basescan으로 구동한 지갑을 검색해주세요. Contract Creation과 Say GM이 호출되어 있으면 정상 동작한겁니다.

구동이 완료 후 노드등록을 완료해주세요. registerNode (0x672d7a0d) 이후 약 1시간 경과 후 activateNode (0x105ddd1d) 실행.
자세한 내용은 README.md를 참고해주세요.
👍5