Skip to content

Instantly share code, notes, and snippets.

@areshand
areshand / math.move
Created September 18, 2025 22:24
a sample move library
/// Standard math utilities missing in the Move Language.
module aptos_std::math128 {
/// Return the largest of two numbers.
public fun max(a: u128, b: u128): u128 {
if (a >= b) a else b
}
/// Return the smallest of two numbers.
public fun min(a: u128, b: u128): u128 {
#!/usr/bin/env python3
import subprocess
import json
import sys
# Feature flag definitions from types/src/on_chain_config/aptos_features.rs
FEATURE_FLAGS = {
1: "CODE_DEPENDENCY_CHECK",
2: "TREAT_FRIEND_AS_PRIVATE",
#!/usr/bin/env python3
import subprocess
import json
import sys
# Feature flag definitions from types/src/on_chain_config/aptos_features.rs
FEATURE_FLAGS = {
1: "CODE_DEPENDENCY_CHECK",
2: "TREAT_FRIEND_AS_PRIVATE",
025-06-20T18:03:11.190066Z [main] ERROR storage/db-tool/src/replay_on_archive.rs:83 Failed: TransactionOutput does not match TransactionInfo: version:3532, status:Keep(MiscellaneousError(Some(IO_LIMIT_REACHED))), auxiliary data:None, expected:Keep(MiscellaneousError(None))
2025-06-20T18:03:11.190073Z [main] ERROR storage/db-tool/src/replay_on_archive.rs:83 Failed: TransactionOutput does not match TransactionInfo: version:20777, status:Keep(MiscellaneousError(Some(CODE_DESERIALIZATION_ERROR))), auxiliary data:None, expected:Keep(MiscellaneousError(None))
2025-06-20T18:03:11.190075Z [main] ERROR storage/db-tool/src/replay_on_archive.rs:83 Failed: TransactionOutput does not match TransactionInfo: version:20780, status:Keep(MiscellaneousError(Some(CODE_DESERIALIZATION_ERROR))), auxiliary data:None, expected:Keep(MiscellaneousError(None))
2025-06-20T18:03:11.190076Z [main] ERROR storage/db-tool/src/replay_on_archive.rs:83 Failed: TransactionOutput does not match TransactionInfo: version:20783, status:Keep(Miscella
@areshand
areshand / gist:76f49d32dbe94456d7fe1eedf51fc16a
Last active October 16, 2025 15:00
feature comparison
#!/usr/bin/env python3
"""
Feature audit script to generate CSV comparison of Aptos and Movement features for testnet and mainnet
This Python script provides the same functionality as the comprehensive feature comparison shell script
"""
import urllib.request
import urllib.error
import json
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Memory - Your Personal Data Ecosystem</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* Memory Logo Styles */
.logo {
package main
import (
"context"
"fmt"
"log"
"math/big"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
~/projects/internal-ops/scripts- (main) $ kb describe pvc testnet-archive-27604-1 -n replay-verify
Name: testnet-archive-27604-1
Namespace: replay-verify
StorageClass: ssd-data-xfs
Status: Pending
Volume:
Labels: run=27604-testnet
Annotations: volume.kubernetes.io/selected-node: gke-devinfra-usce1-0-cast-pool-bb98a526
volume.kubernetes.io/storage-provisioner: pd.csi.storage.gke.io
Finalizers: [kubernetes.io/pvc-protection]
~/projects/internal-ops/scripts- (main) $ kb describe pod 27604-testnet-replay-verify-1226442074-1231442074 -n replay-verify
Name: 27604-testnet-replay-verify-1226442074-1231442074
Namespace: replay-verify
Priority: 0
Service Account: default
Node: gke-devinfra-usce1-0-cast-pool-ad76437a/10.78.64.90
Start Time: Fri, 27 Dec 2024 11:01:42 -0800
Labels: run=27604-testnet
scaleops.sh/managed-unevictable=true
Annotations: cloud.google.com/cluster_autoscaler_unhelpable_since: 2024-12-27T19:00:37+0000
Name: test-tesetnet-replay-verify-1000000000-1000001000
Namespace: default
Priority: 0
Service Account: default
Node: gke-devinfra-usce1-0-nap-e2-standard--be5e5b4b-l6hg/10.78.64.88
Start Time: Fri, 08 Nov 2024 11:40:05 -0800
Labels: run=test-tesetnet
Annotations: <none>
Status: Succeeded
IP: 10.96.2.6