- π I build upgradeable smart contract systems and blockchain infrastructure
- ποΈ Working on Diamond proxy (EIP-2535) architecture at gnus.ai
- β‘ Building protocol backends with NestJS, indexers, and liquidation bots
- π¦ Systems work in Go and Rust β FFI boundaries, deterministic execution
- π Frontend with Next.js 14, Redux, Ethers.js, WalletConnect
- π BSc.Eng(Hons) in Computer Engineering β University of Jaffna
- π Sri Lanka
Maintained under the @ChainPrimitives organization β small, sharp building blocks for EVM & DeFi infrastructure.
| Package | Description | Registry |
|---|---|---|
wad-ray-math |
TypeScript BigInt implementation of Aave's wad/ray fixed-point math | |
reorg-safe-indexer |
Lightweight blockchain event indexer with reorg rollback | |
liquidation-monitor |
DeFi health-factor monitoring with gas guards | |
diamond-deployer-cli |
CLI for deploying & verifying Diamond proxy contracts | |
eth-event-decoder |
Type-safe Ethereum event log decoder with ABI-to-TS generation | |
diamond-storage-utils |
Safe Diamond storage layout helpers with collision detection | |
ffi-bridge |
Memory-safe GoβRust FFI boundary helpers (Rust crate + Go module) |
Six packages are live on npm (
npm i <name>) andffi-bridgeships as both a Rust crate and a Go module β all maintained under the @ChainPrimitives org.
|
Diamond upgradeable DAO with modular governance, quadratic voting, multi-chain deployment |
DeFi lending protocol with UUPS contracts, reorg-safe indexer, liquidation bot |
|
Go orchestration + Rust deterministic execution with FFI boundary isolation |
Rust blockchain node β PBFT consensus, libp2p, RocksDB, 10K+ TPS |
|
Ethereum β Polkadot bridge with threshold signatures (k-of-n Schnorr/ECDSA) |
W3C DID/VC system with BLS12-381 threshold cryptography & IPFS |



