SubVTData

0.16.0

iOS framework to communicate with the SubVT backend.
helikon-labs/subvt-data-swift

What's New

0.16.0

2024-02-11T08:14:51Z

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.15.0")
        )
    ],
    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.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Wed Apr 17 2024 07:13:00 GMT-0900 (Hawaii-Aleutian Daylight Time)