PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

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/onbloc/int256/v0

Package
Open in gnoweb ↗

Overview

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

Files (12)

  • gnomod.tomltoml
  • arithmetic.gnogno
  • bitwise.gnogno
  • cmp.gnogno
  • conversion.gnogno
  • doc.gnogno
  • int256.gnogno
  • arithmetic_test.gnogno
  • bitwise_test.gnogno
  • cmp_test.gnogno
  • conversion_test.gnogno
  • int256_test.gnogno
  • cmp.gnogno
    1package int25623func (z *Int) Eq(x *Int) bool {4	return z.value.Eq(&x.value)5}67func (z *Int) Neq(x *Int) bool {8	return !z.Eq(x)9}1011// Cmp compares z and x and returns:12//13//   - 1 if z > x14//   - 0 if z == x15//   - -1 if z < x16func (z *Int) Cmp(x *Int) int {17	zSign, xSign := z.Sign(), x.Sign()1819	if zSign == xSign {20		return z.value.Cmp(&x.value)21	}2223	if zSign == 0 {24		return -xSign25	}2627	return zSign28}2930// IsZero returns true if z == 031func (z *Int) IsZero() bool {32	return z.value.IsZero()33}3435// IsNeg returns true if z < 036func (z *Int) IsNeg() bool {37	return z.Sign() < 038}3940func (z *Int) Lt(x *Int) bool {41	return z.Cmp(x) < 042}4344func (z *Int) Gt(x *Int) bool {45	return z.Cmp(x) > 046}4748func (z *Int) Le(x *Int) bool {49	return z.Cmp(x) <= 050}5152func (z *Int) Ge(x *Int) bool {53	return z.Cmp(x) >= 054}5556// Clone creates a new Int identical to z57func (z *Int) Clone() *Int {58	return New().FromUint256(&z.value)59}60

    Functions

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

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