Skip to content
QORECHAIN
Register

Cross-VM

QoreCopy

Copy trading on QoreChain's native AMM. Every copied swap leaves a receipt on a second ledger, in the same transaction.

Share on X

About

Following a trader by hand means watching blocks and placing each swap yourself. You are late, the price has moved, nothing caps what you spend, and nothing ties your trade to theirs. QoreCopy copies the traders its users choose on the native AMM of qorechain-diana; three are followed as examples. A user signs in with the QoreX wallet and keeps their own keys. A deterministic daemon decides, for each swap of a followed trader, whether to copy it inside fixed limits: copy size, daily cap, cooldown, pool allowlist, price impact and slippage. A copy is one Cosmos transaction. The same transaction calls QoreCopyJournal, an EVM contract, which writes a receipt on the Native qday-receipts contract through the Cross-VM bridge. From the dashboard a user follows and unfollows traders, sees the leaderboard and each decision, and stops and restarts a copy. Today the watcher, the rules, the leaderboard and the API run against the public testnet, and the five attack tests of the lab have been run on it (evidence/lab.json). The journal contract is deployed on the testnet, and one transaction with a swap and a receipt written through the Cross-VM bridge has landed on chain. The production daemon uses the journal: a copy paid by a signed-in wallet (22E59D0ADDECE6D20BD8BC38DBDB312CC8203296F040BC81D7DC0C939175AA44) carries the swap and the Cross-VM receipt in one transaction, plus a receipt note in the memo. The authz grant and a copy under it are proven on chain; the QoreX sign-in itself is not recorded as evidence. Four copies have landed on the testnet during the lab, and one of them, C58DC93125E4476C6FFFBAEE6B87448FAE4F24898E9CE9065FEE6271A550E872, carries a verified hybrid signature (`pqc_hybrid_verify`).

How it's made

Four pieces. The eye subscribes to new transactions with @qorechain/sdk and filters the AMM swaps of the followed traders in its own code. The brain applies eight rules in pure TypeScript, with no model in the decision path. The hand signs each copy with a hybrid ML-DSA-87 signature and broadcasts it. The index rebuilds the trader leaderboard from chain history. A Hono API and a Next.js dashboard read that state. Writes go through the web app only: sign-in, follow, unfollow, stop and start. A user signs in with the QoreX wallet, and the daemon checks the signature with @qorechain/qoresign against the keys the chain holds for that address. The user then signs one authz grant for MsgSwapExactIn. To copy, a relayer account broadcasts MsgExec around a swap whose sender is the user and pays the fee, and the daemon checks the grant on chain before every copy. Each copy carries a receipt note in its memo, which the daemon reads back after a restart to rebuild the day's budgets. The second receipt path is QoreCopyJournal.sol, deployed on the testnet. It calls the Cross-VM precompile, which calls the approved Native receipts contract in the same transaction. The production daemon uses it: before each copy it renews the signer's EVM window, and a copy that still cannot carry its receipt fails instead of going out without one. The daemon enforces the limits in its own code: the chain adds only its price-impact cap and the minimum output. The authz grant names one message type and has no amount limit. A key whose limits the chain enforces was considered and is not built. Kits in the repo: @qorechain/sdk 0.14.0, @qorechain/evm 0.14.0, @qorechain/qoresign 0.2.0, and the create-qorechain-dapp 0.14.0 scaffold. A lab of five attacks ran on the testnet. Contracts are Foundry. Tests are Vitest and forge test. The build used the official QoreChain MCP server for chain reads. What the chain has and has not accepted is recorded in JUDGES.md. How the code was written with AI tools is in AI_USAGE.md.

Timeline

QoreCopyCross-VM

Pushed 16 commits to main

  • 6ca50a2 Count skipped copies as they arrive, and open your own page from the header. · ppezzull
  • 86c2367 Keep blocked copies across a restart, and describe the lab as feature tests. · ppezzull
  • 7b335c9 Run the attack lab from Dokploy's environment instead of a mounted env file. · ppezzull
  • e660dfe Publish the site on port 3001 so it does not collide with Dokploy. · ppezzull
  • 4a9bf59 Read the relayer key from the Dokploy environment instead of a mounted file. · ppezzull

and 11 more commits

QoreCopyCross-VM

Pushed 1 commit to main

  • bafead0 Cap the gas limit at 2,000,000 so the budget's 0.3 QOR fee is a real ceiling. · ppezzull(not counted: no real change)
QoreCopyCross-VM

Pushed 1 commit to main

  • 158e0cf Say the fee budget undercounts a copy that carries a journal receipt. · ppezzull(not counted: no real change)
QoreCopyCross-VM

Pushed 1 commit to main

  • 3e51224 Link the Recordly video, ignore .cursor/, and replace the stale TODO marks with what was built and measured. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • 89a95a8 Link the demo video in the README and the GitHub repo in the footer. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • 82122f9 Show 204 tests in the README badge. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • a2ad8ec Pin create-qorechain-dapp 0.14.0, the generator of packages/scaffold, as a dev dependency · ppezzull
QoreCopyCross-VM

Newly verified on chain: MCP server or qore CLI

QoreCopyCross-VM

Pushed 2 commits to main

  • df29800 Wire the official QoreChain MCP server in as a pinned dev dependency · ppezzull
  • 8068b75 Run the MCP server with pnpm -s so pnpm 10 keeps its banner off stdout · ppezzull
QoreCopyCross-VM

Earned a Ship Weeks badge.

QoreCopyCross-VM

Earned a Ship Weeks badge.

QoreCopyCross-VM

Earned a Ship Weeks badge.

QoreCopyCross-VM

Pushed 1 commit to main

  • bc7f685 Cap cheap-sale copies at the pool's price, rate-limit the API per visitor, and trim blocked.jsonl. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • 1f55524 Harden the daemon: never copy a copy, one attempt per challenge, body and stream limits, chain timeouts. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • 31ec245 Index swaps sent through authz, and show official token icons. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • 8d13185 Show your own wallet page as any trader's page, without the Follow button. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • 2edecdc Keep follow busy through sign-in, toast lab runs when signed out, and match the docs to the code. · ppezzull
QoreCopyCross-VM

Pushed 1 commit to main

  • 8dee941 Rewrite the README for judges, fix stale numbers, and drop the old screenshots. · ppezzull
QoreCopyCross-VM

First on-chain deployment detected on testnet.

QoreCopyCross-VM

Pushed 1 commit to main

  • a73a074 Say that the production daemon writes the journal receipt, with the lab copy that proves it. · ppezzull

Comments and questions

  • No comments yet.