GithubHelp home page GithubHelp logo

swiftylisk's Introduction

SwiftyLisk

SwiftyLisk allows you to add blockchain functionalities to any Swift app for iOS and macOS alike.

Requirements

  • iOS >= 8.0 || macOS >= 10.10 || tvOS >= 9.0+ || watchOS >= 2.0
  • Xcode >= 8.1
  • Swift >= 3

Compatibility

SwiftyLisk is designed to communicate with any Lisk node running Lisk 0.9.2. Before communicating with nodes running a version of Lisk other than 0.9.2, make sure all needed API calls are supported by the node's version of Lisk.

Integration

  1. Close your Xcode project
  2. Make sure CocoaPods is installed on your machine by running pod --version on the Terminal. If you get -bash: pod: command not found, please follow CocoaPods' installation guide
  3. cd to the directory containing your project's xcodeproj directory
  4. Add CocoaPods to your project by running pod init
  5. Open the newly created Podfile
  6. Ensure use_frameworks! is specified
  7. Add the following pods:
    • pod 'SwiftyJSON'
    • pod 'Alamofire'
  8. Save and close Podfile
  9. Install the newly specified pods by running pod install
  10. Open the newly created YOUR_PROJECT.xcworkspace (not YOUR_PROJECT.xcodeproj)
  11. Drag and drop the Lisk directory into your project's navigator (shortcut to show the navigator: Command-1)
  12. Build the project (shortcut: Command-B)

Usage

The Lisk API is composed of eight modules:

  • AccountAPI
  • BlockAPI
  • DelegateAPI
  • LoaderAPI
  • MultisignatureAPI
  • PeerAPI
  • SignatureAPI
  • TransactionAPI

Every available method is implemented as a class method. At the moment the Wiki for SwiftyLisk is not ready. Please refer to the comments preceding each method for documentation. Also, notice that SwiftyLisk implements all methods available in the Lisk API Reference, so, as a rule of thumb, to use a method from the reference reference type MODULE_NAME + API.METHOD_NAME. (Note: a few methods have been renamed to make code more readable.)

Support

SwiftyLisk is maintained by LiskUser1234 (Lisk Forum, Reddit).

To ensure SwiftyLisk a future, please consider voting LiskUser1234 for delegate on the Lisk mainnet.

For donations, these are SwiftyLisk's addresses:

  • Bitcoin: 1NCTZwBJF7ZFpwPeQKiSgci9r2pQV3G7RG
  • Lisk: 6137947831033853925L

Thank you for your support.

swiftylisk's People

Contributors

liskuser1234 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

atypical

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.