Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.15 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.15 KB

Ursus Atom

A library for manipulating Urbit atoms and auras.

Based on @dclelland's UrsusAtom CocoaPod.

Usage

Ursus Atom grants support for the urbit phonetic base, useful for representing Azimuth points ('ships'):

let ship = try! PatP(string: "~lanrus-rinfep")
let point = Int(ship) // 328448

There is an Aura protocol with an associated type Atom which can be any UnsignedInteger type, but in practice we use BigUInt types.

Current implementations:

  • PatP (@p)
  • PatQ (@q)
  • PatUV (@uv)

Installation

Ursus Atom can be installed using Swift Package Manager by adding this repository's URL to your project's packages:

https://github.com/alecananian/UrsusAtom

Other utilities

Dependencies