Skip to content

Instantly share code, notes, and snippets.

View 0xmountaintop's full-sized avatar
😈
POISONed

0xmountaintop 0xmountaintop

😈
POISONed
  • Gallifrey
View GitHub Profile
root@kvm12210 ~/g/s/jupiter-swap-api-docker-compose (feat/market_cache) [1]# docker compose logs -f
jup-ag-api | 2024-12-19T21:47:52.895618Z INFO jupiter_swap_api: Version: 6.0.35 40c12f0ab0121913a6828f61db872cfd5caad034
jup-ag-api | 2024-12-19T21:47:52.896686Z INFO jupiter_swap_api: Loading Jupiter router...
jup-ag-api | 2024-12-19T21:47:52.896710Z INFO jupiter_swap_api: Using market cache kind: File { path: "market_cache.json" }
jup-ag-api | 2024-12-19T21:47:52.896768Z INFO jupiter_swap_api: Running router with 2 threads in the CPU bound work thread pool
jup-ag-api | 2024-12-19T21:48:16.554160Z INFO jupiter_core::amms::loader: Excluded 0 AMMs based on dexes id selection: Exclude({6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P})
jup-ag-api | 2024-12-19T21:49:27.833831Z INFO jupiter_core::amms::loader: markets len(): 83574
jup-ag-api | 2024-12-19T21:49:28.396257Z INFO jupiter_core::amms::loader: Found 849 not supported markets for owners: {endoLNCKTqDn8gSVnN2hDdpgACUPWHZTwoYnnMybpAT, 11
@0xmountaintop
0xmountaintop / tokens.json
Created December 8, 2024 02:31
tokens.json
This file has been truncated, but you can view the full file.
[{"address":"So11111111111111111111111111111111111111112","name":"Wrapped SOL","symbol":"SOL","decimals":9,"logoURI":"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png","tags":["community","verified","strict"],"daily_volume":2873455332.377303,"created_at":"2024-04-26T10:56:58.893768Z","freeze_authority":null,"mint_authority":null,"permanent_delegate":null,"minted_at":null,"extensions":{"coingeckoId":"wrapped-solana"}},{"address":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","name":"USD Coin","symbol":"USDC","decimals":6,"logoURI":"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png","tags":["verified","community","strict"],"daily_volume":2309310895.5597363,"created_at":"2024-04-26T10:56:58.893768Z","freeze_authority":"7dGbd2QZcCKcTndnHcTL8q7SMVXAkp688NTQYwrRCrar","mint_authority":"BJE5MMbqXjVwjAF7oxwPYXnTXDyspzZyt4vwenNw5ruG","permanent_delegate":null,
@0xmountaintop
0xmountaintop / interface.rs
Last active September 18, 2024 07:42
proving extension interface
pub trait ProvingServiceExtension {
fn prove(&self, req: ProveRequest) -> ProveResponse;
fn get_task(&self, req: GetTaskRequest) -> GetTaskResponse;
fn is_local(&self) -> bool;
}
pub struct ProveRequest {
pub circuit_type: CircuitType,
pub circuit_version: String,
@0xmountaintop
0xmountaintop / main.ts
Created September 9, 2024 03:39
investigate tx broadcast
const rpcEndpoint = ''; // fill in rpc endpoint here
async function gethRPC(url: string, data: any): Promise<any> {
try {
const response = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
version: '3'
services:
prover:
image: scrolltech/cuda-prover:v4.1.45-69d2d2b-bd90176-728cf00
runtime: nvidia
container_name: prover
restart: unless-stopped
environment:
- LD_LIBRARY_PATH=/prover:/usr/local/cuda/lib64
- SCROLL_PROVER_ASSETS_DIR=/prover/volume/assets
INFO [01-13|04:14:20.757|scroll-tech/bridge/cmd/app/app.go:103] HTTP endpoint opened url=http://[::]:8290/
INFO [01-13|04:14:20.757|scroll-tech/bridge/cmd/app/app.go:106] Start bridge successfully
INFO [01-13|04:14:20.763|scroll-tech/bridge/l1/watcher.go:156] Received new L1 events fromBlock=175,146 toBlock=175,155 cnt=19
INFO [01-13|04:14:20.763|scroll-tech/bridge/l2/watcher.go:242] received new L2 messages fromBlock=654,858 toBlock=654,867 cnt=7
INFO [01-13|04:14:20.764|scroll-tech/bridge/l1/watcher.go:163] L1 events types SentMessageCount=19 RelayedMessageCount=0 RollupEventCount=0
INFO [01-13|04:14:20.787|scroll-tech/bridge/l1/watcher.go:156] Received new L1 events fromBlock=175,156 toBlock=175,165 cnt=48
INFO [01-13|04:14:20.788|scroll-tech/bridge/l1/watcher.go:163] L1 events types SentMessageCount=48 RelayedMessageCount=0 RollupEventCount=0
INFO [01-13|04:14:20.793|scroll-tech/
@0xmountaintop
0xmountaintop / rollup.md
Last active January 6, 2023 09:05
batch DA & proof & bridge
  1. addresses
  • staging: 0xf42f7133876878ac83b22d3b4FE6B92286B51833
  • main-prealpha: 0x27b5ce7d020545653488eF0FF0D25f362CE36f95
  1. DA

查看 contract call calldata

function commitBatch(Layer2Batch memory _batch) external;
@0xmountaintop
0xmountaintop / rollupscan.md
Last active October 12, 2022 12:01
DA & proof & bridge
  1. DA

查看 contract call calldata

function commitBlock(BlockHeader memory _header, Layer2Transaction[] memory _txn)

struct BlockHeader {
  bytes32 blockHash;
  bytes32 parentHash;
@0xmountaintop
0xmountaintop / 0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.new.json
Created September 12, 2022 05:27
0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.new.json
This file has been truncated, but you can view the full file.
{
"jsonrpc":"2.0",
"id":1,
"result":{
"gas":83985,
"failed":true,
"accountAfter":null,
"structLogs":[
{
"pc":0,
@0xmountaintop
0xmountaintop / 0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.old.json
Last active September 12, 2022 05:28
0x632c51227c2635d2d0b06ba962523e9b4fbc7c8f52798ea5f417ff61f4e98f78.old.json
This file has been truncated, but you can view the full file.
{
"jsonrpc":"2.0",
"id":1,
"result":{
"gas":83985,
"failed":true,
"accountAfter":null,
"structLogs":[
{
"pc":0,