- Implement SynorStorage class for decentralized storage operations including upload, download, pinning, and CAR file management. - Create supporting types and models for storage operations such as UploadOptions, Pin, and StorageConfig. - Implement SynorWallet class for wallet operations including wallet creation, address generation, transaction signing, and balance queries. - Create supporting types and models for wallet operations such as Wallet, Address, and Transaction. - Introduce error handling for both storage and wallet operations.
50 lines
1.4 KiB
Swift
50 lines
1.4 KiB
Swift
// swift-tools-version:5.9
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "SynorSDK",
|
|
platforms: [
|
|
.macOS(.v12),
|
|
.iOS(.v15),
|
|
.tvOS(.v15),
|
|
.watchOS(.v8)
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "SynorSDK",
|
|
targets: ["SynorCompute", "SynorWallet", "SynorRpc", "SynorStorage"]
|
|
),
|
|
.library(name: "SynorCompute", targets: ["SynorCompute"]),
|
|
.library(name: "SynorWallet", targets: ["SynorWallet"]),
|
|
.library(name: "SynorRpc", targets: ["SynorRpc"]),
|
|
.library(name: "SynorStorage", targets: ["SynorStorage"])
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(
|
|
name: "SynorCompute",
|
|
dependencies: [],
|
|
path: "Sources/SynorCompute"
|
|
),
|
|
.target(
|
|
name: "SynorWallet",
|
|
dependencies: [],
|
|
path: "Sources/Synor/Wallet"
|
|
),
|
|
.target(
|
|
name: "SynorRpc",
|
|
dependencies: [],
|
|
path: "Sources/Synor/Rpc"
|
|
),
|
|
.target(
|
|
name: "SynorStorage",
|
|
dependencies: [],
|
|
path: "Sources/Synor/Storage"
|
|
),
|
|
.testTarget(
|
|
name: "SynorTests",
|
|
dependencies: ["SynorCompute", "SynorWallet", "SynorRpc", "SynorStorage"],
|
|
path: "Tests/SynorTests"
|
|
)
|
|
]
|
|
)
|