Latest 0.1.8
Homepage https://github.com/Ryucoin/neovm-utils
License MIT
Platforms ios 12.0
Authors

Build Status
codecov
Version
License
Platform

neovmUtils is a native iOS framework for interacting with the NEO and Ontology blockchains. It is a compiled version of the neo-utils project by O3 Labs written in Go.

Installation

neovmUtils is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'neovmUtils'

Usage

You must import the neovmUtils pod as well as the compiled neo-utils Go framework.

import neovmUtils
import Neoutils

Note: the functions imported by Neoutils are used slightly differently than their implementations in Go. Additionally, the functions supplied by neovmUtils further simplify the compiled code.

Example

neo-utils (Go implementation):

wif := "<SOME VALID WIF>"
account, err := neoutils.GenerateFromWIF(wif)
if err != nil {
  log.Printf("There was an error: %v", err)
}

Neoutils (Compiled Swift):

let wif = "<SOME VALID WIF>"
let err = NSErrorPointer(nilLiteral: ())
let account = NeoutilsGenerateFromWIF(wif, err) // account is of type NeoutilsWallet?
if err != nil {
  print("There was an error: (err!)")
}

neovmUtils (Swift Abstraction):

let wif = "<SOME VALID WIF>"
let account = generateFromWIF(wif: wif) // account is of type NeoutilsWallet?

The full implementation of the neovmUtils abstraction is available here. Not all of the functions and types made available by importing Neoutils are simplified by importing neovmUtils.

Documentation for the Go implementation is available here.

Authors

neovmUtils – Wyatt Mufson, [email protected]

neo-utils – Apisit Toompakdee, [email protected]

License

neovmUtils is available under the MIT license.

Latest podspec

{
    "name": "neovmUtils",
    "version": "0.1.8",
    "summary": "Useful functions for the NEO and Ontology blockchains for iOS.",
    "homepage": "https://github.com/Ryucoin/neovm-utils",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "WyattMufson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Ryucoin/neovm-utils.git",
        "tag": "0.1.8"
    },
    "platforms": {
        "ios": "12.0"
    },
    "swift_version": "4.2",
    "source_files": "neovmUtils/Classes/**/*",
    "vendored_frameworks": "neoutils.framework"
}

Pin It on Pinterest

Share This