Skip to content

Instantly share code, notes, and snippets.

View keroro520's full-sized avatar
🏠
Working from home

Kero keroro520

🏠
Working from home
View GitHub Profile
@keroro520
keroro520 / dify.app.dsl.yaml
Created June 13, 2025 14:45
dify.app.dsl.yaml
app:
description: ''
icon: 🔍
icon_background: '#D1E9FF'
mode: advanced-chat
name: DeepResearch
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace

// devnet

Transaction Summary Table

RPC Sent Duration(Client->Node) Tx Full Signature Tx Status
https://api.zan.top/node/v1/solana/devnet/ebd0bceef25b4df1b3cd2aa3b7d76725 436ms 5sPBpY1aS7TooRuXyDH5vTWdZsLCWwxjyGJPzidWx1RftosEPWKoxqq8sus4S4k5womb3FRbeQ6cUd4eZS6kGLug 🏆 Confirmed (6370ms)
https://few-stylish-sanctuary.solana-devnet.quiknode.pro/9da60d3851f306c2f6ffee306fd02cfa37e2e244 859ms 4Pwusa7nssqvc9y7Z57TNM2bpFTHYJrBmSZeUJbUz92SZHYmdg5Y8yA4CRjwRRLwot8VouaDNy5ATaUQGwXkrwnY Failed on-chain: InstructionError(0, Custom(1))
https://solana-devnet.g.alchemy.com/v2/nrWk_B4gDDCY_lvRbKPG-OzcXn40FBhG 6011ms 4qj7udFFvycocATovbXvsEHCWCoZYDPkJAVLLZQ2zNYdzyqhp2WVcvuY36mWTiVpUWPiYzEF5yCgRQ8EjAPFyaWu Failed on-chain: InstructionError(0, Custom(1))
https://devnet.helius-rpc.com/?api-key=62d4baa9-f668-4311-a736-b21fea80169e 5484ms 5NP57wwCyRAbLzyEudgjqnppBpkNv8A6hds2fx3u1CijMEBvCsigfBppk8XXaFxKteM1vjJA65FZnnyHXjHhzNd5 Failed on-chain: InstructionError(0,
curl -XPOST --data-binary '{
"id": 4379,
"method": "send_transaction",
"params": [
{
"version": "0x0",
"cell_deps": [
{
"out_point": {
"tx_hash": "0xc07844ce21b38e4b071dd0e1ee3b0e27afd8d7532491327f39b786343f558ab7",
{
"version": "0x0",
"cellDeps": [
{
"outPoint": {
"txHash": "0xc07844ce21b38e4b071dd0e1ee3b0e27afd8d7532491327f39b786343f558ab7",
"index": "0x0"
},
"depType": "code"
},
[
{
"version": "0x0",
"cell_deps": [
{
"out_point": {
"tx_hash": "0xc07844ce21b38e4b071dd0e1ee3b0e27afd8d7532491327f39b786343f558ab7",
"index": "0x0"
},
"dep_type": "code"
@keroro520
keroro520 / docker-compose.yml
Created April 10, 2024 07:36
run ckb and ckb-inedxer mainnet nodes using docker-compose
version: '3.8'
services:
ckb:
image: nervos/ckb:latest
user: root
ports:
- 8114:8114 # rpc
- 8115:8115 # p2p network
command: [ "run", "-C", "/var/lib/ckb" ]
import {
Script,
OutPoint,
CellProvider,
Cell,
utils,
values,
WitnessArgs,
Transaction,
blockchain,
#!/bin/bash
# Exit on error
set -e
# Check if required environment variables are set
required_vars=(
"L1_RPC" # L1's RPC
"OP_CHAIN_ID" # L2's chain id
@keroro520
keroro520 / discovery-intro.md
Created August 31, 2022 10:39
discovery-intro.md

Discovery 网络协议

用途

在去中心化的端到端网络里,discovery 协议用于节点之间相互发现。相连的节点之间共享自己已知的活跃节点列表,从而实现节点信息的传播,让非相连的节点之间也能相互发现。

通过 discovery 协议发现网络中的节点信息后,CKB 通过 feeler 等其它协议来判断目标节点是否可达、网络质量等,再收敛网络的拓扑结构,本文不涉及。

工作方式

@keroro520
keroro520 / 结合 kicker 与本地开发.md
Created May 30, 2022 04:35
结合 kicker 与本地开发.md

Examples

本地运行 godwoken,其它组件使用 kicker。这里假设 kicker 已经完成部署和生成配置的工作了

# 这里假设 kicker start 已经完成部署和生成配置的工作了,kicker stop 把组件都先关闭,之后再根据需要启动相应的组件
# kicker start && kicker stop