PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidators

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/gnoswap/int256/v1

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v1
Namespace
gnoswap / int256
Files
6 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/gnoswap/int256/v1
gno
0.9

Files (6)

  • README.mdmarkdown
  • gnomod.tomltoml
  • arithmetic.gnogno
  • conversion.gnogno
  • doc.gnogno
  • int256.gnogno
doc.gnogno
1// Package int256 implements 256-bit signed integer arithmetic for GnoSwap.2//3// This package provides an Int type that represents a 256-bit signed integer4// using two's complement representation. It supports the full range from5// -(2^255) to 2^255-1. The unsuffixed Add, Sub, and Mul methods return the6// truncated 256-bit result; AddOverflow, SubOverflow, and MulOverflow also7// return a signed-overflow flag.8//9// The implementation follows Ethereum's int256 semantics, ensuring compatibility10// for cross-chain DeFi protocols. Operations are optimized for common AMM11// calculations including tick math and price computations.12package int25613

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.