Swiftpack.co - helikon-labs/subvt-data-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by helikon-labs.
helikon-labs/subvt-data-swift 0.13.0
iOS framework to communicate with the SubVT backend.
⭐️ 1
🕓 4 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/helikon-labs/subvt-data-swift.git", from: "0.13.0")

Quality Gate Status

SubVT Data Access for Swift

SubVT (Substrate Validator Toolkit) data access library for Swift.

Please visit the top-level Subvt repository for project information.

Build & Test

  • Rename the file Sources/SubVTData/Resources/data-env-example.json to data-env.json, and edit the file contents with the service host and port details.
  • Run swift test in the root folder to test.
  • Run swift build in the root folder to build.

Installation

Swift Package Manager

let package = Package(
    // ...
    dependencies: [
        // ...
        .package(
            url: "https://github.com/helikon-labs/subvt-data-swift.git",
            .upToNextMinor(from: "0.3.1")
        )
    ],
    targets: [
        .target(
            name = "YourTarget",
            dependencies: [
                // ...
                .product(name: "SubVTData", package: "subvt-data-swift"),
                // ...
            ],
            // ...
        )
    ]
)

Usage

Please refer to the tests for information about how to use the report and application REST services, and network status, active/inactive validator list and validator details RPC pub/sub services.

GitHub

link
Stars: 1
Last commit: 3 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.13.0
4 weeks ago
  • e57dd19 - Reflect the recent changes related to the 1KV backend.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics